diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index d45cd5ed2..17b3178f6 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -17,8 +17,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit - fetch-depth: 0 # a full history is required for pull request analysis + ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit + fetch-depth: 0 # a full history is required for pull request analysis - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2023.3 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aeb9889c4..8a588a051 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ name: Webitel UI release with docs on: push: - branches: [ master ] + branches: [master] jobs: install_deps: @@ -63,9 +63,9 @@ jobs: - name: get prevTag id: prevTag - uses: "WyriHaximus/github-action-get-previous-tag@v1" + uses: 'WyriHaximus/github-action-get-previous-tag@v1' -# for release notes // why 2 changelogs? see NOTES + # for release notes // why 2 changelogs? see NOTES - name: generate Release Changelog id: changelog uses: requarks/changelog-action@v1 @@ -86,20 +86,20 @@ jobs: id: create_release uses: softprops/action-gh-release@v1 with: - tag_name: "v${{ steps.package-version.outputs.current-version}}" - name: "@webitel/ui-sdk v${{ steps.package-version.outputs.current-version}}" + tag_name: 'v${{ steps.package-version.outputs.current-version}}' + name: '@webitel/ui-sdk v${{ steps.package-version.outputs.current-version}}' body: ${{ steps.changelog.outputs.changes }} -# update tags list after prev step release, so that we fetch new tag, created by prev step + # update tags list after prev step release, so that we fetch new tag, created by prev step - uses: actions/checkout@v4 with: fetch-depth: 0 - name: get newTag id: newTag - uses: "WyriHaximus/github-action-get-previous-tag@v1" + uses: 'WyriHaximus/github-action-get-previous-tag@v1' -# update CHANGELOG.md file // why 2 changelogs? see NOTES + # update CHANGELOG.md file // why 2 changelogs? see NOTES - name: update Release Changelog id: update-changelog uses: requarks/changelog-action@v1 @@ -181,19 +181,18 @@ jobs: path: docs/.vitepress/dist deploy: - needs: [build_docs] - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - runs-on: ubuntu-latest - steps: - - name: setup Github Pages - id: setup_pages - uses: actions/configure-pages@v4 - - - name: deploy to Github Pages - id: deploy_pages - uses: actions/deploy-pages@v4 - with: - artifact_name: docs + needs: [build_docs] + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + runs-on: ubuntu-latest + steps: + - name: setup Github Pages + id: setup_pages + uses: actions/configure-pages@v4 + - name: deploy to Github Pages + id: deploy_pages + uses: actions/deploy-pages@v4 + with: + artifact_name: docs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba9520364..7bb4aaffb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,18 +2,18 @@ name: Webitel UI run tests on: pull_request: - branches: [ master ] + branches: [master] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - check-latest: true - - run: npm ci - - run: npm run test:unit + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + check-latest: true + - run: npm ci + - run: npm run test:unit diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..8ae28f7b2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +node_modules +*.log* +.nitro +.output +.env +dist \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..6b6d74c1d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "arrowParens": "always", + "trailingComma": "all", + "printWidth": 80, + "singleAttributePerLine": true, + "endOfLine": "auto" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index fd3a1a6ea..8d60cd7b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,323 +1,452 @@ +## [v24.12.37] - 2025-01-02 +### :bug: Bug Fixes +- [`f909155`](https://github.com/webitel/webitel-ui-sdk/commit/f909155cac0a29ebd30c24a22febf12ae9da311d) - wt-select value prop [WTEL-5622] *(commit by [@dlohvinov](https://github.com/dlohvinov))* + + +## [v24.12.36] - 2025-01-02 +### :bug: Bug Fixes +- [`3a4d3e5`](https://github.com/webitel/webitel-ui-sdk/commit/3a4d3e5fd4d999ef90a99f094791c5be11fea284) - wt-select useValueFromOptionsByProp, + docs [WTEL-5622] *(commit by [@dlohvinov](https://github.com/dlohvinov))* + + +## [v24.12.35] - 2024-12-31 +### :sparkles: New Features +- [`cedd5e7`](https://github.com/webitel/webitel-ui-sdk/commit/cedd5e71d1aa78124731a28db3f5a986919ba750) - wt-select useValueFromOptionsByProp [WTEL-5622] *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +### :white_check_mark: Tests +- [`309a6f9`](https://github.com/webitel/webitel-ui-sdk/commit/309a6f9b4426d1407f0c9b70bb6cbddb8f960e85) - fixed tests, related to wt-select useValueFromOptionsByProp [WTEL-5622] *(commit by [@dlohvinov](https://github.com/dlohvinov))* + + +## [v24.12.34] - 2024-12-31 +### :sparkles: New Features +- [`2d057c6`](https://github.com/webitel/webitel-ui-sdk/commit/2d057c64a444d3b76b9080fdd7967fe36f15ed97) - add draggable locale[WTEL-4740](https://webitel.atlassian.net/browse/WTEL-4740) *(commit by [@Lera24](https://github.com/Lera24))* + + +## [v24.12.33] - 2024-12-30 +### :bug: Bug Fixes +- [`72dc591`](https://github.com/webitel/webitel-ui-sdk/commit/72dc591809131afd51323631bfe8fc809ea48296) - fix comments on wt-select after running fix lint error + + +## [v24.12.32] - 2024-12-30 +### :sparkles: New Features +- [`4b0b0b1`](https://github.com/webitel/webitel-ui-sdk/commit/4b0b0b1416498a72aabbb8496a32a85181798997) - update package version to 24.12.32 +- [`66362bf`](https://github.com/webitel/webitel-ui-sdk/commit/66362bf41fdd29b1a81f61e3f763d57548bce0cd) - update wt-tree-table row props declared [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`e4e58be`](https://github.com/webitel/webitel-ui-sdk/commit/e4e58bef0736f12f746b6de7e2d2cb17928ec41a) - update set key for child elements [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`0a36419`](https://github.com/webitel/webitel-ui-sdk/commit/0a36419822ba6c3be11e465abbc71673daf021cc) - disable wrap text in tree table header [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`4cfd312`](https://github.com/webitel/webitel-ui-sdk/commit/4cfd312f555029b8e7d88b6f655e8cbe7ef3078b) - fix types for selectedElements [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`2d9e154`](https://github.com/webitel/webitel-ui-sdk/commit/2d9e1545865844471f64ea1750e8da2d9d2b1f56) - rollback changes with unknown types to any, for fix error with build application [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`3085b75`](https://github.com/webitel/webitel-ui-sdk/commit/3085b750667f7b8626e1f3cf69b62179964a8d8a) - implement docs for tree table [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`14feaeb`](https://github.com/webitel/webitel-ui-sdk/commit/14feaeb925bb29fc94043c550c8de0547fecf132) - implement custom slots for cell in tree table. Update display for tree table for display columns with related size from header and body. Implement styles for display zebra colors in table body [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`30b0ada`](https://github.com/webitel/webitel-ui-sdk/commit/30b0ada08cde69fe1ce5c5d6e8bb875d3300769d) - work on width for columns, update styles for wt-tree-table, update template for display wt-tree-table-row [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`e334ab2`](https://github.com/webitel/webitel-ui-sdk/commit/e334ab27a533dc43308f05d7ecfc94c0c821fcae) - update styles for display row in tree table [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`62d8fb8`](https://github.com/webitel/webitel-ui-sdk/commit/62d8fb8681ba5a352e3a6a27a84f7510fde34594) - implement new icons minus, tree-cross, tree-line. Implement display elements in tree table with we-expansion-panel, start working on display tree icons on displayed elements [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`eb18d9e`](https://github.com/webitel/webitel-ui-sdk/commit/eb18d9ec924a7ad8030fe61372d28104ac4a3d99) - started working on create custom slots for table [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`308eded`](https://github.com/webitel/webitel-ui-sdk/commit/308eded322e62e8efaf3622a90a24e8a5a3319dd) - Implement base logic for display wt-tree-table-row with option to select elements and select\deselect all elements [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`cd114f6`](https://github.com/webitel/webitel-ui-sdk/commit/cd114f64ffe3d601d27ac5d7784fd4d3d1d3cdda) - implement playground with selectable items from table, fix error with this in wt-tree-table [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`2db75e3`](https://github.com/webitel/webitel-ui-sdk/commit/2db75e336f6934b63dc2edcdc61ea216e2cb0ecc) - Implement base component wt-tree-table from wt-table with mock array services + +### :bug: Bug Fixes +- [`e031288`](https://github.com/webitel/webitel-ui-sdk/commit/e0312883373b2ad43924b1b027be29abe2a2c414) - update package version to 24.12.30 [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`ba9049e`](https://github.com/webitel/webitel-ui-sdk/commit/ba9049e6c1dd36432b03de90f3905541da127436) - replace any type to unknown [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`a727657`](https://github.com/webitel/webitel-ui-sdk/commit/a727657a803102e7bd223e3c4d664ff6ca528aa4) - Update useTable composable [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`1119ee5`](https://github.com/webitel/webitel-ui-sdk/commit/1119ee5a753f19550290f3a4b2cb17b64d4b52df) - remove unused classes, fix code styles for props [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`7b047b9`](https://github.com/webitel/webitel-ui-sdk/commit/7b047b998825ac7052ff5e5615cb00b49ca16b15) - update name of icons for tree +- [`bc59539`](https://github.com/webitel/webitel-ui-sdk/commit/bc595395b1a86f873d80031de907e057bd3d8411) - Update wt-table and wt-tree-table classes. Implement composable useTable. Update sortQueryAdapters script. Update functions in wt-tree-table. Update name of variables for wt-tree-table [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) +- [`2957fa1`](https://github.com/webitel/webitel-ui-sdk/commit/2957fa1335d8b40f730c2010fff64e5565064dcd) - remove hide title props from wt-expansion-panel +- [`e982b86`](https://github.com/webitel/webitel-ui-sdk/commit/e982b8607858f530174a4267dacd04ce13cacb58) - implement fixes by code styles and remove unused code [WTEL-5569](https://webitel.atlassian.net/browse/WTEL-5569) + + +## [v24.12.31] - 2024-12-27 +### :sparkles: New Features +- [`16a6aca`](https://github.com/webitel/webitel-ui-sdk/commit/16a6acadf46f1c16a3548e82698116dc738172bd) - update prettier config +- [`eae9dc4`](https://github.com/webitel/webitel-ui-sdk/commit/eae9dc4be79ba6b6a9e92cf8496a4563d28791d8) - run fix eslint errors +- [`2ca8e63`](https://github.com/webitel/webitel-ui-sdk/commit/2ca8e63b9293e7539b736827d4a5a9ad0f3b28a0) - update lint scripts +- [`dae2b8b`](https://github.com/webitel/webitel-ui-sdk/commit/dae2b8b80031794e7e1e951e134d9aea166e22f4) - add @eslint/js package +- [`e6d2bcf`](https://github.com/webitel/webitel-ui-sdk/commit/e6d2bcf1b4bba7ae3be77649c51f67d50f13cc0f) - update package version to 24.12.30 +- [`b8c5fe2`](https://github.com/webitel/webitel-ui-sdk/commit/b8c5fe2ec60df84bcc4bc701e0fd128489681b49) - run fix eslint errors +- [`aa7f3ab`](https://github.com/webitel/webitel-ui-sdk/commit/aa7f3ab45786b9e0f7aa7e38c9818bf9c352b502) - Implement Eslint lint and prettier configs. Remove Biome ## [v24.12.29] - 2024-12-18 + ### :sparkles: New Features -- [`680ad53`](https://github.com/webitel/webitel-ui-sdk/commit/680ad530949ffeca8643b25b89177111ff28e9a6) - stop sign icon added [WTEL-5511](https://webitel.atlassian.net/browse/WTEL-5511) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`680ad53`](https://github.com/webitel/webitel-ui-sdk/commit/680ad530949ffeca8643b25b89177111ff28e9a6) - stop sign icon added [WTEL-5511](https://webitel.atlassian.net/browse/WTEL-5511) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.12.28] - 2024-12-18 + ### :sparkles: New Features -- [`e3e3f7b`](https://github.com/webitel/webitel-ui-sdk/commit/e3e3f7b9099f66c0b95fef141bff88342ef1a379) - add filtersValue computed in useTableFilters[WTEL-5744](https://webitel.atlassian.net/browse/WTEL-5744) *(commit by [@Lera24](https://github.com/Lera24))* +- [`e3e3f7b`](https://github.com/webitel/webitel-ui-sdk/commit/e3e3f7b9099f66c0b95fef141bff88342ef1a379) - add filtersValue computed in useTableFilters[WTEL-5744](https://webitel.atlassian.net/browse/WTEL-5744) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.27] - 2024-12-18 + ### :bug: Bug Fixes -- [`74140f6`](https://github.com/webitel/webitel-ui-sdk/commit/74140f63285437deae1105c35962dd4ab5953c68) - card-page-style[WTEL-5694](https://webitel.atlassian.net/browse/WTEL-5694) *(commit by [@Lera24](https://github.com/Lera24))* +- [`74140f6`](https://github.com/webitel/webitel-ui-sdk/commit/74140f63285437deae1105c35962dd4ab5953c68) - card-page-style[WTEL-5694](https://webitel.atlassian.net/browse/WTEL-5694) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.26] - 2024-12-16 + ### :sparkles: New Features -- [`c8aab36`](https://github.com/webitel/webitel-ui-sdk/commit/c8aab36db364f05ec01b3daffba69904b0d420b3) - case icons added [WTEL-5510] (https://webitel.atlassian.net/browse/WTEL-5510) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`c8aab36`](https://github.com/webitel/webitel-ui-sdk/commit/c8aab36db364f05ec01b3daffba69904b0d420b3) - case icons added [WTEL-5510] (https://webitel.atlassian.net/browse/WTEL-5510) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :recycle: Refactors -- [`21b5b81`](https://github.com/webitel/webitel-ui-sdk/commit/21b5b81985b0487e403348a03ca7285aaa40d71f) - version incremented [WTEL-5510] (https://webitel.atlassian.net/browse/WTEL-5510) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`21b5b81`](https://github.com/webitel/webitel-ui-sdk/commit/21b5b81985b0487e403348a03ca7285aaa40d71f) - version incremented [WTEL-5510] (https://webitel.atlassian.net/browse/WTEL-5510) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.12.25] - 2024-12-16 + ### :bug: Bug Fixes + - [`33dce9b`](https://github.com/webitel/webitel-ui-sdk/commit/33dce9bbcde8d0ec76ab18e06ebbb00487c51a8d) - update version to 24.12.25 [WTEL-5645](https://webitel.atlassian.net/browse/WTEL-5645) - [`4716561`](https://github.com/webitel/webitel-ui-sdk/commit/4716561bab8442d63ae11060f9c509d0727d7842) - resolve merge conflict [WTEL-5645](https://webitel.atlassian.net/browse/WTEL-5645) - [`cb4dbc8`](https://github.com/webitel/webitel-ui-sdk/commit/cb4dbc85092a7b8a17a1a9a9b07554bb672ab9e1) - update docs for teams and skills api [WTEL-5645](https://webitel.atlassian.net/browse/WTEL-5645) - [`fc6c001`](https://github.com/webitel/webitel-ui-sdk/commit/fc6c001f109259479729851da5fca632c1b2049f) - Implement skills and teams api from admin app [WTEL-5645](https://webitel.atlassian.net/browse/WTEL-5645) - ## [v24.12.24] - 2024-12-16 + ### :bug: Bug Fixes -- [`c7d7ff0`](https://github.com/webitel/webitel-ui-sdk/commit/c7d7ff055337c16350ca8c56b306fa897326b984) - add required prop in time-date picker conponents[WTEL-5684](https://webitel.atlassian.net/browse/WTEL-5684) *(commit by [@Lera24](https://github.com/Lera24))* +- [`c7d7ff0`](https://github.com/webitel/webitel-ui-sdk/commit/c7d7ff055337c16350ca8c56b306fa897326b984) - add required prop in time-date picker conponents[WTEL-5684](https://webitel.atlassian.net/browse/WTEL-5684) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.23] - 2024-12-16 + ### :sparkles: New Features -- [`60c918a`](https://github.com/webitel/webitel-ui-sdk/commit/60c918a4a7e738a399190c29da8c21fddcad1932) - implimented version [WTEL-5503](https://webitel.atlassian.net/browse/WTEL-5503) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* -- [`1a19bd1`](https://github.com/webitel/webitel-ui-sdk/commit/1a19bd1bc799ea984598b7b99d75486fead1943a) - update agent chats api params [WTEL-5503](https://webitel.atlassian.net/browse/WTEL-5503) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* + +- [`60c918a`](https://github.com/webitel/webitel-ui-sdk/commit/60c918a4a7e738a399190c29da8c21fddcad1932) - implimented version [WTEL-5503](https://webitel.atlassian.net/browse/WTEL-5503) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ +- [`1a19bd1`](https://github.com/webitel/webitel-ui-sdk/commit/1a19bd1bc799ea984598b7b99d75486fead1943a) - update agent chats api params [WTEL-5503](https://webitel.atlassian.net/browse/WTEL-5503) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ ### :bug: Bug Fixes -- [`dbeb016`](https://github.com/webitel/webitel-ui-sdk/commit/dbeb01682efe411da4197a24933a22bdea98294e) - clear selected arr in delete record[WTEL-5730](https://webitel.atlassian.net/browse/WTEL-5730) *(commit by [@Lera24](https://github.com/Lera24))* +- [`dbeb016`](https://github.com/webitel/webitel-ui-sdk/commit/dbeb01682efe411da4197a24933a22bdea98294e) - clear selected arr in delete record[WTEL-5730](https://webitel.atlassian.net/browse/WTEL-5730) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.22] - 2024-12-13 + ### :bug: Bug Fixes -- [`d7fc38d`](https://github.com/webitel/webitel-ui-sdk/commit/d7fc38d3c46998df9e79b932460ca96f8b9335f2) - conflict[WTEL-5711](https://webitel.atlassian.net/browse/WTEL-5711) *(commit by [@Lera24](https://github.com/Lera24))* -- [`31a9aeb`](https://github.com/webitel/webitel-ui-sdk/commit/31a9aeb6b0a5b029503893f76278471745b49224) - change resetTableState action[WTEL-5711](https://webitel.atlassian.net/browse/WTEL-5711) *(commit by [@Lera24](https://github.com/Lera24))* -- [`98f30da`](https://github.com/webitel/webitel-ui-sdk/commit/98f30da2b20c5b9347e225c3213ab6136ea16b5e) - add resetState in tableStoreModule[WTEL-5711](https://webitel.atlassian.net/browse/WTEL-5711) *(commit by [@Lera24](https://github.com/Lera24))* +- [`d7fc38d`](https://github.com/webitel/webitel-ui-sdk/commit/d7fc38d3c46998df9e79b932460ca96f8b9335f2) - conflict[WTEL-5711](https://webitel.atlassian.net/browse/WTEL-5711) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`31a9aeb`](https://github.com/webitel/webitel-ui-sdk/commit/31a9aeb6b0a5b029503893f76278471745b49224) - change resetTableState action[WTEL-5711](https://webitel.atlassian.net/browse/WTEL-5711) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`98f30da`](https://github.com/webitel/webitel-ui-sdk/commit/98f30da2b20c5b9347e225c3213ab6136ea16b5e) - add resetState in tableStoreModule[WTEL-5711](https://webitel.atlassian.net/browse/WTEL-5711) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.21] - 2024-12-13 + ### :bug: Bug Fixes -- [`55398a0`](https://github.com/webitel/webitel-ui-sdk/commit/55398a0397d2923a5a99400887378834053fe440) - implement locales for useTableEmpty [WTEL-5642](https://webitel.atlassian.net/browse/WTEL-5642) +- [`55398a0`](https://github.com/webitel/webitel-ui-sdk/commit/55398a0397d2923a5a99400887378834053fe440) - implement locales for useTableEmpty [WTEL-5642](https://webitel.atlassian.net/browse/WTEL-5642) ## [v24.12.20] - 2024-12-12 + ### :bug: Bug Fixes -- [`e3a0342`](https://github.com/webitel/webitel-ui-sdk/commit/e3a0342b485c8aefa4ee23c6eb49ebe3bd6ae560) - order action in wt-action-bar component[WTEL-5721](https://webitel.atlassian.net/browse/WTEL-5721) *(commit by [@Lera24](https://github.com/Lera24))* +- [`e3a0342`](https://github.com/webitel/webitel-ui-sdk/commit/e3a0342b485c8aefa4ee23c6eb49ebe3bd6ae560) - order action in wt-action-bar component[WTEL-5721](https://webitel.atlassian.net/browse/WTEL-5721) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.19] - 2024-12-11 + ### :sparkles: New Features -- [`96eb87f`](https://github.com/webitel/webitel-ui-sdk/commit/96eb87f71c090b25007742337f3d46c1ed334d39) - new colors added for wt-indicator [WTEL-5507] (https://webitel.atlassian.net/browse/WTEL-5507) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`96eb87f`](https://github.com/webitel/webitel-ui-sdk/commit/96eb87f71c090b25007742337f3d46c1ed334d39) - new colors added for wt-indicator [WTEL-5507] (https://webitel.atlassian.net/browse/WTEL-5507) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :bug: Bug Fixes -- [`f626e42`](https://github.com/webitel/webitel-ui-sdk/commit/f626e4244000e8fd0b6e36a4a80924876a3388ca) - styles fixed [WTEL-5507] (https://webitel.atlassian.net/browse/WTEL-5507) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`f626e42`](https://github.com/webitel/webitel-ui-sdk/commit/f626e4244000e8fd0b6e36a4a80924876a3388ca) - styles fixed [WTEL-5507] (https://webitel.atlassian.net/browse/WTEL-5507) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :recycle: Refactors -- [`8cce0ff`](https://github.com/webitel/webitel-ui-sdk/commit/8cce0ff8416ca0d68d55202173f35d6b59ff31f7) - version incremented [WTEL-5507] (https://webitel.atlassian.net/browse/WTEL-5507) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`8cce0ff`](https://github.com/webitel/webitel-ui-sdk/commit/8cce0ff8416ca0d68d55202173f35d6b59ff31f7) - version incremented [WTEL-5507] (https://webitel.atlassian.net/browse/WTEL-5507) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.12.18] - 2024-12-11 + ### :sparkles: New Features + - [`86c61d7`](https://github.com/webitel/webitel-ui-sdk/commit/86c61d79eba9d97eb5bb6dc277470f4a0003482b) - update version to 24.12.18 [WTEL-5639](https://webitel.atlassian.net/browse/WTEL-5639) - [`71ca481`](https://github.com/webitel/webitel-ui-sdk/commit/71ca48197160d529026a001db87f4542814a8c2b) - implement locales for Applications access [WTEL-5639](https://webitel.atlassian.net/browse/WTEL-5639) - [`bbf0917`](https://github.com/webitel/webitel-ui-sdk/commit/bbf0917450e751721ac30d3854a54d1bf6be1e17) - update name for crmSections service catalogs [WTEL-5639](https://webitel.atlassian.net/browse/WTEL-5639) - ## [v24.12.17] - 2024-12-10 + ### :sparkles: New Features -- [`75b822f`](https://github.com/webitel/webitel-ui-sdk/commit/75b822faa06e8b221c369a931cde3aed3480e7ca) - add new params in contacts api[WTEL-4740](https://webitel.atlassian.net/browse/WTEL-4740) *(commit by [@Lera24](https://github.com/Lera24))* +- [`75b822f`](https://github.com/webitel/webitel-ui-sdk/commit/75b822faa06e8b221c369a931cde3aed3480e7ca) - add new params in contacts api[WTEL-4740](https://webitel.atlassian.net/browse/WTEL-4740) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.16] - 2024-12-09 + ### :sparkles: New Features -- [`68e5042`](https://github.com/webitel/webitel-ui-sdk/commit/68e5042da187ec4dfc2fb587bef453e728be6d2a) - adding additional initializeCard return [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`68e5042`](https://github.com/webitel/webitel-ui-sdk/commit/68e5042da187ec4dfc2fb587bef453e728be6d2a) - adding additional initializeCard return [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :bug: Bug Fixes -- [`8689d62`](https://github.com/webitel/webitel-ui-sdk/commit/8689d624c778158e29c56ffb26f664bd939863da) - useCardComponent composable initialize function changes [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`8689d62`](https://github.com/webitel/webitel-ui-sdk/commit/8689d624c778158e29c56ffb26f664bd939863da) - useCardComponent composable initialize function changes [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :recycle: Refactors -- [`bd52b70`](https://github.com/webitel/webitel-ui-sdk/commit/bd52b70268a5928fc8a0a41470168bd6219889e7) - trying to fix git action [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`1d121b2`](https://github.com/webitel/webitel-ui-sdk/commit/1d121b272515f2a63313f77b754afaa04416a614) - version incremented [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`bd52b70`](https://github.com/webitel/webitel-ui-sdk/commit/bd52b70268a5928fc8a0a41470168bd6219889e7) - trying to fix git action [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`1d121b2`](https://github.com/webitel/webitel-ui-sdk/commit/1d121b272515f2a63313f77b754afaa04416a614) - version incremented [WTEL-5509] (https://webitel.atlassian.net/browse/WTEL-5509) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.12.15] - 2024-12-06 + ### :sparkles: New Features -- [`e8e17bd`](https://github.com/webitel/webitel-ui-sdk/commit/e8e17bdd2368db9c4d1cf56b8f7e6d19918d0825) - add wt-selection-popup[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) *(commit by [@Lera24](https://github.com/Lera24))* + +- [`e8e17bd`](https://github.com/webitel/webitel-ui-sdk/commit/e8e17bdd2368db9c4d1cf56b8f7e6d19918d0825) - add wt-selection-popup[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) _(commit by [@Lera24](https://github.com/Lera24))_ ### :bug: Bug Fixes -- [`2c30ec3`](https://github.com/webitel/webitel-ui-sdk/commit/2c30ec31915cddd8f3c0b10072f7bef58ea918bd) - docs and delete shown prop[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) *(commit by [@Lera24](https://github.com/Lera24))* -- [`afe77f0`](https://github.com/webitel/webitel-ui-sdk/commit/afe77f02cd1b227307029cf7c9ca054bfa1c1d99) - merge master[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) *(commit by [@Lera24](https://github.com/Lera24))* -- [`0d5bb81`](https://github.com/webitel/webitel-ui-sdk/commit/0d5bb8171d896b0bb78ec6679be93819baa958b9) - doc[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) *(commit by [@Lera24](https://github.com/Lera24))* +- [`2c30ec3`](https://github.com/webitel/webitel-ui-sdk/commit/2c30ec31915cddd8f3c0b10072f7bef58ea918bd) - docs and delete shown prop[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`afe77f0`](https://github.com/webitel/webitel-ui-sdk/commit/afe77f02cd1b227307029cf7c9ca054bfa1c1d99) - merge master[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`0d5bb81`](https://github.com/webitel/webitel-ui-sdk/commit/0d5bb8171d896b0bb78ec6679be93819baa958b9) - doc[WTEL-5610](https://webitel.atlassian.net/browse/WTEL-5610) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.14] - 2024-12-06 + ### :bug: Bug Fixes -- [`6bf7c96`](https://github.com/webitel/webitel-ui-sdk/commit/6bf7c9606ce59fd584f192268dc000d54f8cb61d) - node version in package.json *(commit by [@Lera24](https://github.com/Lera24))* -- [`b44baed`](https://github.com/webitel/webitel-ui-sdk/commit/b44baed54b04007e1adee2dbca08e1f5e51fc7ad) - permissions-tab component[WTEL-3392](https://webitel.atlassian.net/browse/WTEL-3392) *(commit by [@Lera24](https://github.com/Lera24))* -- [`68cce7c`](https://github.com/webitel/webitel-ui-sdk/commit/68cce7c36f006868b51c1bfead4157f250abef6b) - doc[WTEL-3392](https://webitel.atlassian.net/browse/WTEL-3392) *(commit by [@Lera24](https://github.com/Lera24))* + +- [`6bf7c96`](https://github.com/webitel/webitel-ui-sdk/commit/6bf7c9606ce59fd584f192268dc000d54f8cb61d) - node version in package.json _(commit by [@Lera24](https://github.com/Lera24))_ +- [`b44baed`](https://github.com/webitel/webitel-ui-sdk/commit/b44baed54b04007e1adee2dbca08e1f5e51fc7ad) - permissions-tab component[WTEL-3392](https://webitel.atlassian.net/browse/WTEL-3392) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`68cce7c`](https://github.com/webitel/webitel-ui-sdk/commit/68cce7c36f006868b51c1bfead4157f250abef6b) - doc[WTEL-3392](https://webitel.atlassian.net/browse/WTEL-3392) _(commit by [@Lera24](https://github.com/Lera24))_ ### :recycle: Refactors -- [`a29f08c`](https://github.com/webitel/webitel-ui-sdk/commit/a29f08c548f7a49d7336c8e112ef222a5079382a) - permission module[WTEL-3392](https://webitel.atlassian.net/browse/WTEL-3392) *(commit by [@Lera24](https://github.com/Lera24))* +- [`a29f08c`](https://github.com/webitel/webitel-ui-sdk/commit/a29f08c548f7a49d7336c8e112ef222a5079382a) - permission module[WTEL-3392](https://webitel.atlassian.net/browse/WTEL-3392) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.13] - 2024-12-03 + ### :bug: Bug Fixes -- [`75bd888`](https://github.com/webitel/webitel-ui-sdk/commit/75bd888be9e2dbf9966fb1301766fb79e611781a) - conflict[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) *(commit by [@Lera24](https://github.com/Lera24))* -- [`22905da`](https://github.com/webitel/webitel-ui-sdk/commit/22905dad808ba29286c4e8d844d514c5414d3e23) - update package.json version[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) *(commit by [@Lera24](https://github.com/Lera24))* -- [`8f1ef4c`](https://github.com/webitel/webitel-ui-sdk/commit/8f1ef4c27a81a23c835549bbb7e60de5a7325644) - conflict[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) *(commit by [@Lera24](https://github.com/Lera24))* -- [`dbac3aa`](https://github.com/webitel/webitel-ui-sdk/commit/dbac3aa98806754573ce233e85140641b2f046b7) - delete actions prop in wt-action-bar[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) *(commit by [@Lera24](https://github.com/Lera24))* +- [`75bd888`](https://github.com/webitel/webitel-ui-sdk/commit/75bd888be9e2dbf9966fb1301766fb79e611781a) - conflict[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`22905da`](https://github.com/webitel/webitel-ui-sdk/commit/22905dad808ba29286c4e8d844d514c5414d3e23) - update package.json version[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`8f1ef4c`](https://github.com/webitel/webitel-ui-sdk/commit/8f1ef4c27a81a23c835549bbb7e60de5a7325644) - conflict[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`dbac3aa`](https://github.com/webitel/webitel-ui-sdk/commit/dbac3aa98806754573ce233e85140641b2f046b7) - delete actions prop in wt-action-bar[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.12] - 2024-11-29 + ### :bug: Bug Fixes -- [`967e35f`](https://github.com/webitel/webitel-ui-sdk/commit/967e35fd9dc274ee0e388d7f375fe9c2859a38cc) - returned next value from agent chats api [WTEL-5503](https://webitel.atlassian.net/browse/WTEL-5503) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* +- [`967e35f`](https://github.com/webitel/webitel-ui-sdk/commit/967e35fd9dc274ee0e388d7f375fe9c2859a38cc) - returned next value from agent chats api [WTEL-5503](https://webitel.atlassian.net/browse/WTEL-5503) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ ## [v24.12.11] - 2024-11-28 + ### :sparkles: New Features -- [`32c7669`](https://github.com/webitel/webitel-ui-sdk/commit/32c7669136e4d0fef396e092ac2700b0fe672a95) - add contact groups page[WTEL-4740](https://webitel.atlassian.net/browse/WTEL-4740) *(commit by [@Lera24](https://github.com/Lera24))* +- [`32c7669`](https://github.com/webitel/webitel-ui-sdk/commit/32c7669136e4d0fef396e092ac2700b0fe672a95) - add contact groups page[WTEL-4740](https://webitel.atlassian.net/browse/WTEL-4740) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.10] - 2024-11-27 + ### :sparkles: New Features -- [`972c6cd`](https://github.com/webitel/webitel-ui-sdk/commit/972c6cda702008cbd2629ea82c688ff463b2685d) - add sources page[WTEL-4754](https://webitel.atlassian.net/browse/WTEL-4754) *(commit by [@Lera24](https://github.com/Lera24))* +- [`972c6cd`](https://github.com/webitel/webitel-ui-sdk/commit/972c6cda702008cbd2629ea82c688ff463b2685d) - add sources page[WTEL-4754](https://webitel.atlassian.net/browse/WTEL-4754) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.9] - 2024-11-27 + ### :sparkles: New Features -- [`333f3b8`](https://github.com/webitel/webitel-ui-sdk/commit/333f3b8ee8d364a8148884f71c54946ab2c28524) - add calendar locale[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) *(commit by [@Lera24](https://github.com/Lera24))* +- [`333f3b8`](https://github.com/webitel/webitel-ui-sdk/commit/333f3b8ee8d364a8148884f71c54946ab2c28524) - add calendar locale[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.8] - 2024-11-26 + ### :bug: Bug Fixes -- [`024a2bb`](https://github.com/webitel/webitel-ui-sdk/commit/024a2bb5d786c06833c370dcd90dee8a556365d3) - datepicker version [WTEL-5596](https://webitel.atlassian.net/browse/WTEL-5596) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`024a2bb`](https://github.com/webitel/webitel-ui-sdk/commit/024a2bb5d786c06833c370dcd90dee8a556365d3) - datepicker version [WTEL-5596](https://webitel.atlassian.net/browse/WTEL-5596) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.12.7] - 2024-11-26 + ### :bug: Bug Fixes -- [`510db8d`](https://github.com/webitel/webitel-ui-sdk/commit/510db8dcc0a86da3608312ff305ab3ec36feade3) - small refactor useTableEmpty component[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* -- [`cc2cfb3`](https://github.com/webitel/webitel-ui-sdk/commit/cc2cfb344fc469d5295d30909b0666f9fa259309) - checker biome breaks build *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`67574b7`](https://github.com/webitel/webitel-ui-sdk/commit/67574b79c6a65e9272ade2430b143c249e2a42e4) - typescript declarations *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`510db8d`](https://github.com/webitel/webitel-ui-sdk/commit/510db8dcc0a86da3608312ff305ab3ec36feade3) - small refactor useTableEmpty component[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`cc2cfb3`](https://github.com/webitel/webitel-ui-sdk/commit/cc2cfb344fc469d5295d30909b0666f9fa259309) - checker biome breaks build _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`67574b7`](https://github.com/webitel/webitel-ui-sdk/commit/67574b79c6a65e9272ade2430b143c249e2a42e4) - typescript declarations _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.12.6] - 2024-11-23 + ### :sparkles: New Features -- [`b284960`](https://github.com/webitel/webitel-ui-sdk/commit/b28496024428f1b3f5010df2ff4539331cec61af) - typescript support *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`b284960`](https://github.com/webitel/webitel-ui-sdk/commit/b28496024428f1b3f5010df2ff4539331cec61af) - typescript support _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ### :recycle: Refactors -- [`2e03a0e`](https://github.com/webitel/webitel-ui-sdk/commit/2e03a0eb4ee21acda8a6f9ba3fcb378f5689cb67) - tsc! *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`2e03a0e`](https://github.com/webitel/webitel-ui-sdk/commit/2e03a0eb4ee21acda8a6f9ba3fcb378f5689cb67) - tsc! _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.12.5] - 2024-11-22 + ### :bug: Bug Fixes -- [`ccb6d0d`](https://github.com/webitel/webitel-ui-sdk/commit/ccb6d0d0f8c48c8127f0868ed9ff49e61fd6f0c9) - filter-from-to.vue set null at falsy input value [WTEL-5576](https://webitel.atlassian.net/browse/WTEL-5576) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`ccb6d0d`](https://github.com/webitel/webitel-ui-sdk/commit/ccb6d0d0f8c48c8127f0868ed9ff49e61fd6f0c9) - filter-from-to.vue set null at falsy input value [WTEL-5576](https://webitel.atlassian.net/browse/WTEL-5576) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.12.4] - 2024-11-22 + ### :bug: Bug Fixes -- [`1daec47`](https://github.com/webitel/webitel-ui-sdk/commit/1daec473121791c6e35b8e794a2528ee9e65eacf) - catalog client chat history [WTEL-5515](https://webitel.atlassian.net/browse/WTEL-5515) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`1daec47`](https://github.com/webitel/webitel-ui-sdk/commit/1daec473121791c6e35b8e794a2528ee9e65eacf) - catalog client chat history [WTEL-5515](https://webitel.atlassian.net/browse/WTEL-5515) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.12.3] - 2024-11-21 + ### :bug: Bug Fixes -- [`7082c36`](https://github.com/webitel/webitel-ui-sdk/commit/7082c36e16ecb4f195fec4bc58da6de1263571a2) - value in useCardTabs and useValidate composables[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* +- [`7082c36`](https://github.com/webitel/webitel-ui-sdk/commit/7082c36e16ecb4f195fec4bc58da6de1263571a2) - value in useCardTabs and useValidate composables[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.2] - 2024-11-21 + ### :sparkles: New Features -- [`5477157`](https://github.com/webitel/webitel-ui-sdk/commit/5477157b4c1956c11a0c89e3f2b1354f829a3590) - add convertDurationWithMinutes[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) *(commit by [@Lera24](https://github.com/Lera24))* + +- [`5477157`](https://github.com/webitel/webitel-ui-sdk/commit/5477157b4c1956c11a0c89e3f2b1354f829a3590) - add convertDurationWithMinutes[WTEL-4883](https://webitel.atlassian.net/browse/WTEL-4883) _(commit by [@Lera24](https://github.com/Lera24))_ ### :recycle: Refactors -- [`d95500e`](https://github.com/webitel/webitel-ui-sdk/commit/d95500e5011e122a38e5dec90198960958ebcc0e) - deprecated :deep() selector usages [WTEL-5568](https://webitel.atlassian.net/browse/WTEL-5568) *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`545437b`](https://github.com/webitel/webitel-ui-sdk/commit/545437b016e51a785ae6e8688753d746af3e7120) - upd packages [WTEL-5568](https://webitel.atlassian.net/browse/WTEL-5568) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`d95500e`](https://github.com/webitel/webitel-ui-sdk/commit/d95500e5011e122a38e5dec90198960958ebcc0e) - deprecated :deep() selector usages [WTEL-5568](https://webitel.atlassian.net/browse/WTEL-5568) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`545437b`](https://github.com/webitel/webitel-ui-sdk/commit/545437b016e51a785ae6e8688753d746af3e7120) - upd packages [WTEL-5568](https://webitel.atlassian.net/browse/WTEL-5568) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.12.1] - 2024-11-20 + ### :sparkles: New Features -- [`6c6cca7`](https://github.com/webitel/webitel-ui-sdk/commit/6c6cca7e9c64d49c9dd1058bbe8a7c4cdca10352) - add locale and default img in useTableEmpty[WTEL-5284](https://webitel.atlassian.net/browse/WTEL-5284) *(commit by [@Lera24](https://github.com/Lera24))* +- [`6c6cca7`](https://github.com/webitel/webitel-ui-sdk/commit/6c6cca7e9c64d49c9dd1058bbe8a7c4cdca10352) - add locale and default img in useTableEmpty[WTEL-5284](https://webitel.atlassian.net/browse/WTEL-5284) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.12.0] - 2024-11-20 + ### :sparkles: New Features -- [`281778c`](https://github.com/webitel/webitel-ui-sdk/commit/281778c1fda716f307fc1febe304ff0b5744d5f8) - Update package version to 24.12.0 +- [`281778c`](https://github.com/webitel/webitel-ui-sdk/commit/281778c1fda716f307fc1febe304ff0b5744d5f8) - Update package version to 24.12.0 ## [v24.10.88] - 2024-11-20 + ### :bug: Bug Fixes -- [`cf746a0`](https://github.com/webitel/webitel-ui-sdk/commit/cf746a0173603767adbeffea4e970fd790aea782) - return wfm pages in release 24.10 *(commit by [@Lera24](https://github.com/Lera24))* +- [`cf746a0`](https://github.com/webitel/webitel-ui-sdk/commit/cf746a0173603767adbeffea4e970fd790aea782) - return wfm pages in release 24.10 _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.87] - 2024-11-19 + ### :bug: Bug Fixes -- [`12df75b`](https://github.com/webitel/webitel-ui-sdk/commit/12df75b9427d3c75804993671835c2ffadbc0fbd) - hiding wfm pages before release *(commit by [@Lera24](https://github.com/Lera24))* +- [`12df75b`](https://github.com/webitel/webitel-ui-sdk/commit/12df75b9427d3c75804993671835c2ffadbc0fbd) - hiding wfm pages before release _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.86] - 2024-11-19 + ### :sparkles: New Features -- [`f75077a`](https://github.com/webitel/webitel-ui-sdk/commit/f75077a83057cb8c337aec8fa02b9ead08e05865) - styles for opened-card-tabs added [WTEL-5512] (https://webitel.atlassian.net/browse/WTEL-5512) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`f75077a`](https://github.com/webitel/webitel-ui-sdk/commit/f75077a83057cb8c337aec8fa02b9ead08e05865) - styles for opened-card-tabs added [WTEL-5512] (https://webitel.atlassian.net/browse/WTEL-5512) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.10.84] - 2024-11-19 + ### :bug: Bug Fixes -- [`062e676`](https://github.com/webitel/webitel-ui-sdk/commit/062e6764e47c42c7a3de4ec6e3c39ad9632536f7) - update color for --primary-light-color variable in light and dark theme [WTEL-5557](https://webitel.atlassian.net/browse/WTEL-5557) +- [`062e676`](https://github.com/webitel/webitel-ui-sdk/commit/062e6764e47c42c7a3de4ec6e3c39ad9632536f7) - update color for --primary-light-color variable in light and dark theme [WTEL-5557](https://webitel.atlassian.net/browse/WTEL-5557) ## [v24.10.83] - 2024-11-18 + ### :bug: Bug Fixes -- [`e89907d`](https://github.com/webitel/webitel-ui-sdk/commit/e89907d8b732630b534dcf72208202bf5851b417) - sortFilterMixin.js restore sort [WTEL-5520](https://webitel.atlassian.net/browse/WTEL-5520) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`e89907d`](https://github.com/webitel/webitel-ui-sdk/commit/e89907d8b732630b534dcf72208202bf5851b417) - sortFilterMixin.js restore sort [WTEL-5520](https://webitel.atlassian.net/browse/WTEL-5520) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.82] - 2024-11-18 + ### :sparkles: New Features -- [`67d4d6f`](https://github.com/webitel/webitel-ui-sdk/commit/67d4d6f7ff9bd575e8dce97693a75472ca8ca4c5) - new components wt-collapse-action and wt-page-wrapper-dual-pane added [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`2ec2fe9`](https://github.com/webitel/webitel-ui-sdk/commit/2ec2fe9b122da685c35f1a0e7bb2f9c6c2feb554) - wt-page-wrapper-dual-pane component added [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`67d4d6f`](https://github.com/webitel/webitel-ui-sdk/commit/67d4d6f7ff9bd575e8dce97693a75472ca8ca4c5) - new components wt-collapse-action and wt-page-wrapper-dual-pane added [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`2ec2fe9`](https://github.com/webitel/webitel-ui-sdk/commit/2ec2fe9b122da685c35f1a0e7bb2f9c6c2feb554) - wt-page-wrapper-dual-pane component added [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :recycle: Refactors -- [`a0c150c`](https://github.com/webitel/webitel-ui-sdk/commit/a0c150c80e8cd6c6c8a82f586fb8813d59efb7b6) - rm .reverse() from chat messages-related client api's [WTEL-5544](https://webitel.atlassian.net/browse/WTEL-5544) *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`80b5b0a`](https://github.com/webitel/webitel-ui-sdk/commit/80b5b0a8925e348ade1ee0485497dceab9956aa3) - actionsSticky deleted from wt-table [WTEL-5506] (https://webitel.atlassian.net/browse/WTEL-5506) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`bc00cda`](https://github.com/webitel/webitel-ui-sdk/commit/bc00cda63ef4425f68f9db9a1bcc9d740945a30c) - merge with master [WTEL-5506] (https://webitel.atlassian.net/browse/WTEL-5506) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`e42c89d`](https://github.com/webitel/webitel-ui-sdk/commit/e42c89d4d71672be34bd957a36a184eb0f01c1ef) - refactor due to code review [WTEL-5506] (https://webitel.atlassian.net/browse/WTEL-5506) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`8cca843`](https://github.com/webitel/webitel-ui-sdk/commit/8cca84309e02bb3a36df301ef9108741baa3c47c) - refactor due to code review [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`9b7e90f`](https://github.com/webitel/webitel-ui-sdk/commit/9b7e90f4fa853c3d376af75d5c2ac4665d01df83) - actions sticky props added to wt-table [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`3c770dc`](https://github.com/webitel/webitel-ui-sdk/commit/3c770dce0bfd7bad97abde69a94211ffcb53da13) - refactor due to code review [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`99b7a5d`](https://github.com/webitel/webitel-ui-sdk/commit/99b7a5d28e3b5d8f8f464ca733819a06bbc1a608) - refactor due to code review [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`55899e2`](https://github.com/webitel/webitel-ui-sdk/commit/55899e2cb3f1edc16a3956995505bd939497a777) - scroll added for dual panel [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`5093fcd`](https://github.com/webitel/webitel-ui-sdk/commit/5093fcd76fabb46154dad4c6bbd9b13fb11ecdcf) - version increment [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`2cc14a7`](https://github.com/webitel/webitel-ui-sdk/commit/2cc14a7055b99692f3ff20dc44c07c8b6fa6b615) - merge with master [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`7fbda82`](https://github.com/webitel/webitel-ui-sdk/commit/7fbda827bfd2bde7969a73a4da5cf1dc64f40b05) - dual-panel component naming changed [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`e2dcbd3`](https://github.com/webitel/webitel-ui-sdk/commit/e2dcbd3b8abad6f125bea86447f8591c4cf1f7e6) - package.json rollback [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`762d1de`](https://github.com/webitel/webitel-ui-sdk/commit/762d1de466d16111fd81990bdb74b12750e03387) - tests for WtCollapseAction added [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* -- [`cd3a9a4`](https://github.com/webitel/webitel-ui-sdk/commit/cd3a9a4d477395801de7b4f7f8f0aad5eacb068a) - version incremented [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`a0c150c`](https://github.com/webitel/webitel-ui-sdk/commit/a0c150c80e8cd6c6c8a82f586fb8813d59efb7b6) - rm .reverse() from chat messages-related client api's [WTEL-5544](https://webitel.atlassian.net/browse/WTEL-5544) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`80b5b0a`](https://github.com/webitel/webitel-ui-sdk/commit/80b5b0a8925e348ade1ee0485497dceab9956aa3) - actionsSticky deleted from wt-table [WTEL-5506] (https://webitel.atlassian.net/browse/WTEL-5506) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`bc00cda`](https://github.com/webitel/webitel-ui-sdk/commit/bc00cda63ef4425f68f9db9a1bcc9d740945a30c) - merge with master [WTEL-5506] (https://webitel.atlassian.net/browse/WTEL-5506) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`e42c89d`](https://github.com/webitel/webitel-ui-sdk/commit/e42c89d4d71672be34bd957a36a184eb0f01c1ef) - refactor due to code review [WTEL-5506] (https://webitel.atlassian.net/browse/WTEL-5506) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`8cca843`](https://github.com/webitel/webitel-ui-sdk/commit/8cca84309e02bb3a36df301ef9108741baa3c47c) - refactor due to code review [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`9b7e90f`](https://github.com/webitel/webitel-ui-sdk/commit/9b7e90f4fa853c3d376af75d5c2ac4665d01df83) - actions sticky props added to wt-table [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`3c770dc`](https://github.com/webitel/webitel-ui-sdk/commit/3c770dce0bfd7bad97abde69a94211ffcb53da13) - refactor due to code review [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`99b7a5d`](https://github.com/webitel/webitel-ui-sdk/commit/99b7a5d28e3b5d8f8f464ca733819a06bbc1a608) - refactor due to code review [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`55899e2`](https://github.com/webitel/webitel-ui-sdk/commit/55899e2cb3f1edc16a3956995505bd939497a777) - scroll added for dual panel [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`5093fcd`](https://github.com/webitel/webitel-ui-sdk/commit/5093fcd76fabb46154dad4c6bbd9b13fb11ecdcf) - version increment [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`2cc14a7`](https://github.com/webitel/webitel-ui-sdk/commit/2cc14a7055b99692f3ff20dc44c07c8b6fa6b615) - merge with master [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`7fbda82`](https://github.com/webitel/webitel-ui-sdk/commit/7fbda827bfd2bde7969a73a4da5cf1dc64f40b05) - dual-panel component naming changed [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`e2dcbd3`](https://github.com/webitel/webitel-ui-sdk/commit/e2dcbd3b8abad6f125bea86447f8591c4cf1f7e6) - package.json rollback [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`762d1de`](https://github.com/webitel/webitel-ui-sdk/commit/762d1de466d16111fd81990bdb74b12750e03387) - tests for WtCollapseAction added [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ +- [`cd3a9a4`](https://github.com/webitel/webitel-ui-sdk/commit/cd3a9a4d477395801de7b4f7f8f0aad5eacb068a) - version incremented [WTEL-5485] (https://webitel.atlassian.net/browse/WTEL-5485) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.10.81] - 2024-11-17 + ### :bug: Bug Fixes -- [`9113858`](https://github.com/webitel/webitel-ui-sdk/commit/9113858c25979cf03f0f619a33d6f5b1090848bd) - fixed contacts client empty result [WTEL-5537](https://webitel.atlassian.net/browse/WTEL-5537) *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`261a0e3`](https://github.com/webitel/webitel-ui-sdk/commit/261a0e3e77c8f3063f2d1a9eae048117d3e1d379) - error in useCardComponent[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* +- [`9113858`](https://github.com/webitel/webitel-ui-sdk/commit/9113858c25979cf03f0f619a33d6f5b1090848bd) - fixed contacts client empty result [WTEL-5537](https://webitel.atlassian.net/browse/WTEL-5537) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`261a0e3`](https://github.com/webitel/webitel-ui-sdk/commit/261a0e3e77c8f3063f2d1a9eae048117d3e1d379) - error in useCardComponent[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.80] - 2024-11-15 + ### :sparkles: New Features -- [`add6f93`](https://github.com/webitel/webitel-ui-sdk/commit/add6f9397de8664e1db6328318633edf79dc6ca4) - add desabled prop in wt-action-bar[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* + +- [`add6f93`](https://github.com/webitel/webitel-ui-sdk/commit/add6f9397de8664e1db6328318633edf79dc6ca4) - add desabled prop in wt-action-bar[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ### :bug: Bug Fixes -- [`6265f77`](https://github.com/webitel/webitel-ui-sdk/commit/6265f77d3ba419e28b4ebf67255d87d27399afb2) - package.json version[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* -- [`a592314`](https://github.com/webitel/webitel-ui-sdk/commit/a59231463ad31f54109282c0508c642f8afbc4dc) - doc for wt-action-bar[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* +- [`6265f77`](https://github.com/webitel/webitel-ui-sdk/commit/6265f77d3ba419e28b4ebf67255d87d27399afb2) - package.json version[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`a592314`](https://github.com/webitel/webitel-ui-sdk/commit/a59231463ad31f54109282c0508c642f8afbc4dc) - doc for wt-action-bar[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.79] - 2024-11-15 + ### :bug: Bug Fixes -- [`7a214f6`](https://github.com/webitel/webitel-ui-sdk/commit/7a214f6d3973180ab62dcc960808d6bea3ea3284) - version in package.json[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* -- [`74ee12f`](https://github.com/webitel/webitel-ui-sdk/commit/74ee12f4418fa98e37a3ec9cc2c73ab9308b6481) - display isNew param in useCardComponent[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* +- [`7a214f6`](https://github.com/webitel/webitel-ui-sdk/commit/7a214f6d3973180ab62dcc960808d6bea3ea3284) - version in package.json[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`74ee12f`](https://github.com/webitel/webitel-ui-sdk/commit/74ee12f4418fa98e37a3ec9cc2c73ab9308b6481) - display isNew param in useCardComponent[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.78] - 2024-11-14 + ### :bug: Bug Fixes -- [`d3b9b92`](https://github.com/webitel/webitel-ui-sdk/commit/d3b9b927a63f6c06f0c8f817aa2e159db6696ec4) - implimented version [WTEL-5437](https://webitel.atlassian.net/browse/WTEL-5437) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* -- [`211dff4`](https://github.com/webitel/webitel-ui-sdk/commit/211dff4a97e1203318982a460178c1de4d32d0a4) - bug with error in chat history api if message underfined [WTEL-5437](https://webitel.atlassian.net/browse/WTEL-5437) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* +- [`d3b9b92`](https://github.com/webitel/webitel-ui-sdk/commit/d3b9b927a63f6c06f0c8f817aa2e159db6696ec4) - implimented version [WTEL-5437](https://webitel.atlassian.net/browse/WTEL-5437) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ +- [`211dff4`](https://github.com/webitel/webitel-ui-sdk/commit/211dff4a97e1203318982a460178c1de4d32d0a4) - bug with error in chat history api if message underfined [WTEL-5437](https://webitel.atlassian.net/browse/WTEL-5437) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ ## [v24.10.77] - 2024-11-13 + ### :bug: Bug Fixes -- [`0f67887`](https://github.com/webitel/webitel-ui-sdk/commit/0f67887cd5949e7edf943d79fa1eb0b99be0df15) - fix error with not throw emit from delete-confirmation-popup [WTEL-5522](https://webitel.atlassian.net/browse/WTEL-5522) +- [`0f67887`](https://github.com/webitel/webitel-ui-sdk/commit/0f67887cd5949e7edf943d79fa1eb0b99be0df15) - fix error with not throw emit from delete-confirmation-popup [WTEL-5522](https://webitel.atlassian.net/browse/WTEL-5522) ## [v24.10.76] - 2024-11-13 + ### :sparkles: New Features -- [`c73fefb`](https://github.com/webitel/webitel-ui-sdk/commit/c73fefbd50cd6bd981a49d83700ad7256fd2cdf3) - add composables in docs[WTEL-5282] *(commit by [@Lera24](https://github.com/Lera24))* + +- [`c73fefb`](https://github.com/webitel/webitel-ui-sdk/commit/c73fefbd50cd6bd981a49d83700ad7256fd2cdf3) - add composables in docs[WTEL-5282] _(commit by [@Lera24](https://github.com/Lera24))_ ### :bug: Bug Fixes -- [`f1d9ff6`](https://github.com/webitel/webitel-ui-sdk/commit/f1d9ff6812e826a75eba7dc530038901f1e48f7f) - queryfilters module sort filters set/reset [WTEL-5520](https://webitel.atlassian.net/browse/WTEL-5520) *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`99b7026`](https://github.com/webitel/webitel-ui-sdk/commit/99b7026d48f41dce49401a1d0a16d70b77c6b553) - style code in composables docs[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* -- [`49a0c72`](https://github.com/webitel/webitel-ui-sdk/commit/49a0c72898e733fb8941e33cc92c19a20079cb2a) - docs after code review[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* +- [`f1d9ff6`](https://github.com/webitel/webitel-ui-sdk/commit/f1d9ff6812e826a75eba7dc530038901f1e48f7f) - queryfilters module sort filters set/reset [WTEL-5520](https://webitel.atlassian.net/browse/WTEL-5520) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`99b7026`](https://github.com/webitel/webitel-ui-sdk/commit/99b7026d48f41dce49401a1d0a16d70b77c6b553) - style code in composables docs[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`49a0c72`](https://github.com/webitel/webitel-ui-sdk/commit/49a0c72898e733fb8941e33cc92c19a20079cb2a) - docs after code review[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.75] - 2024-11-13 + ### :bug: Bug Fixes -- [`66327ee`](https://github.com/webitel/webitel-ui-sdk/commit/66327ee37bc3e08ac5837483a15aa2e3e5ab1cc9) - locale in useCardComponent composable[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) *(commit by [@Lera24](https://github.com/Lera24))* + +- [`66327ee`](https://github.com/webitel/webitel-ui-sdk/commit/66327ee37bc3e08ac5837483a15aa2e3e5ab1cc9) - locale in useCardComponent composable[WTEL-5282](https://webitel.atlassian.net/browse/WTEL-5282) _(commit by [@Lera24](https://github.com/Lera24))_ ### :memo: Documentation Changes -- [`f43310f`](https://github.com/webitel/webitel-ui-sdk/commit/f43310f82a001035704109b487342223ce0ff479) - manual testing proposals docs [WTEL-5501](https://webitel.atlassian.net/browse/WTEL-5501) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`f43310f`](https://github.com/webitel/webitel-ui-sdk/commit/f43310f82a001035704109b487342223ce0ff479) - manual testing proposals docs [WTEL-5501](https://webitel.atlassian.net/browse/WTEL-5501) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.74] - 2024-11-13 + ### :bug: Bug Fixes -- [`a5ee794`](https://github.com/webitel/webitel-ui-sdk/commit/a5ee79439ddd1f88512b3666a9a66a3c19b26f9f) - conflict and change lib version and rename props in wt-navigation-menu and wt-start-page[WTEL-4710](https://webitel.atlassian.net/browse/WTEL-4710) *(commit by [@Lera24](https://github.com/Lera24))* -- [`bac8466`](https://github.com/webitel/webitel-ui-sdk/commit/bac8466080703da8d395e105e237df0b844dd9c6) - navigation-menu and start-page component after codereview(change docs, style, add new prop)[WTEL-4710](https://webitel.atlassian.net/browse/WTEL-4710) *(commit by [@Lera24](https://github.com/Lera24))* + +- [`a5ee794`](https://github.com/webitel/webitel-ui-sdk/commit/a5ee79439ddd1f88512b3666a9a66a3c19b26f9f) - conflict and change lib version and rename props in wt-navigation-menu and wt-start-page[WTEL-4710](https://webitel.atlassian.net/browse/WTEL-4710) _(commit by [@Lera24](https://github.com/Lera24))_ +- [`bac8466`](https://github.com/webitel/webitel-ui-sdk/commit/bac8466080703da8d395e105e237df0b844dd9c6) - navigation-menu and start-page component after codereview(change docs, style, add new prop)[WTEL-4710](https://webitel.atlassian.net/browse/WTEL-4710) _(commit by [@Lera24](https://github.com/Lera24))_ ### :recycle: Refactors -- [`7b48cb6`](https://github.com/webitel/webitel-ui-sdk/commit/7b48cb6ac851deb4786d9618c2e26a62c45a88d1) - navigation menu - change styles,layout,documentation [WTEL-4710](https://webitel.atlassian.net/browse/WTEL-4710) *(commit by [@Lera24](https://github.com/Lera24))* +- [`7b48cb6`](https://github.com/webitel/webitel-ui-sdk/commit/7b48cb6ac851deb4786d9618c2e26a62c45a88d1) - navigation menu - change styles,layout,documentation [WTEL-4710](https://webitel.atlassian.net/browse/WTEL-4710) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.73] - 2024-11-12 + ### :bug: Bug Fixes -- [`5746c8c`](https://github.com/webitel/webitel-ui-sdk/commit/5746c8ca063af834eb36f20afd1ba21ac03da7e2) - caseConverters.js scripts import fix [WTEL-5516](https://webitel.atlassian.net/browse/WTEL-5516) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`5746c8c`](https://github.com/webitel/webitel-ui-sdk/commit/5746c8ca063af834eb36f20afd1ba21ac03da7e2) - caseConverters.js scripts import fix [WTEL-5516](https://webitel.atlassian.net/browse/WTEL-5516) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.72] - 2024-11-12 + ### :sparkles: New Features -- [`a1eb8be`](https://github.com/webitel/webitel-ui-sdk/commit/a1eb8bebdff83061e3ef81fe55166108efd8e44b) - FilesExport.js skipFilesWithError config added [WTEL-5173](https://webitel.atlassian.net/browse/WTEL-5173) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`a1eb8be`](https://github.com/webitel/webitel-ui-sdk/commit/a1eb8bebdff83061e3ef81fe55166108efd8e44b) - FilesExport.js skipFilesWithError config added [WTEL-5173](https://webitel.atlassian.net/browse/WTEL-5173) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.71] - 2024-11-12 + ### :sparkles: New Features + - [`d0bcba0`](https://github.com/webitel/webitel-ui-sdk/commit/d0bcba0b49949566e9487da167b6557f76218585) - Update version [WTEL-5432](https://webitel.atlassian.net/browse/WTEL-5432) - [`e09911a`](https://github.com/webitel/webitel-ui-sdk/commit/e09911a2ddfdf5479c8c1eeac102d9f8bba78c2e) - Update usage confirm dialog. Implement callback function [WTEL-5432](https://webitel.atlassian.net/browse/WTEL-5432) - [`323aa43`](https://github.com/webitel/webitel-ui-sdk/commit/323aa4392fb59d15d9f16e8d5b75a5f2724d9ea8) - Remove docs and use specs for wt-confirm-dialog [WTEL-5432](https://webitel.atlassian.net/browse/WTEL-5432) @@ -326,46 +455,55 @@ - [`ac269ce`](https://github.com/webitel/webitel-ui-sdk/commit/ac269ce83b1f7f2d95afeae7b5edb4a911722753) - Implement wt-confirm-dialog component. Update delete-confirmation-popup module [WTEL-5432](https://webitel.atlassian.net/browse/WTEL-5432) ### :bug: Bug Fixes -- [`fc8b838`](https://github.com/webitel/webitel-ui-sdk/commit/fc8b838984b68f4d8b198394f7b8c567da3d3e56) - implement fix for delete-confirmation-popup [WTEL-5432](https://webitel.atlassian.net/browse/WTEL-5432) +- [`fc8b838`](https://github.com/webitel/webitel-ui-sdk/commit/fc8b838984b68f4d8b198394f7b8c567da3d3e56) - implement fix for delete-confirmation-popup [WTEL-5432](https://webitel.atlassian.net/browse/WTEL-5432) ## [v24.10.69] - 2024-11-11 + ### :recycle: Refactors -- [`f9f6155`](https://github.com/webitel/webitel-ui-sdk/commit/f9f615521aadf07c279f40f0bf937ec0c33439d5) - simplified plyr icons SO MUCH! (upd webitel-ui) [WTEL-5475](https://webitel.atlassian.net/browse/WTEL-5475) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`f9f6155`](https://github.com/webitel/webitel-ui-sdk/commit/f9f615521aadf07c279f40f0bf937ec0c33439d5) - simplified plyr icons SO MUCH! (upd webitel-ui) [WTEL-5475](https://webitel.atlassian.net/browse/WTEL-5475) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.67] - 2024-11-11 + ### :bug: Bug Fixes -- [`7d1172d`](https://github.com/webitel/webitel-ui-sdk/commit/7d1172d89e3e42fc86c47614d04ab99e1bba68e3) - wt-button-select.vue arrow [WTEL-5475](https://webitel.atlassian.net/browse/WTEL-5425) *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`7d1172d`](https://github.com/webitel/webitel-ui-sdk/commit/7d1172d89e3e42fc86c47614d04ab99e1bba68e3) - wt-button-select.vue arrow [WTEL-5475](https://webitel.atlassian.net/browse/WTEL-5425) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ### :memo: Documentation Changes -- [`1cd2628`](https://github.com/webitel/webitel-ui-sdk/commit/1cd2628f2e6ea23e75c132cb9589ac53f2fa8688) - logger.js docs [WTEL-5425](https://webitel.atlassian.net/browse/WTEL-5425) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`1cd2628`](https://github.com/webitel/webitel-ui-sdk/commit/1cd2628f2e6ea23e75c132cb9589ac53f2fa8688) - logger.js docs [WTEL-5425](https://webitel.atlassian.net/browse/WTEL-5425) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.66] - 2024-11-11 + ### :sparkles: New Features -- [`2d00667`](https://github.com/webitel/webitel-ui-sdk/commit/2d006673df1befc50fbd506018046baef48934b6) - logger script [WTEL-5425](https://webitel.atlassian.net/browse/WTEL-5425) *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`2d00667`](https://github.com/webitel/webitel-ui-sdk/commit/2d006673df1befc50fbd506018046baef48934b6) - logger script [WTEL-5425](https://webitel.atlassian.net/browse/WTEL-5425) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ### :bug: Bug Fixes -- [`e589872`](https://github.com/webitel/webitel-ui-sdk/commit/e589872d3f28026ccede040021ef59f26f246320) - tests [WTEL-5425](https://webitel.atlassian.net/browse/WTEL-5425) *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`070a54e`](https://github.com/webitel/webitel-ui-sdk/commit/070a54e4baf5e1902a62c6518ba205e1dc1a53d9) - added @rollup/rollup-linux-x64-gnu dependency to fix tests run and build on github actions [WTEL-5425] *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`50efdf8`](https://github.com/webitel/webitel-ui-sdk/commit/50efdf89521a5eb83ffa3a664d3e149d0bfedd2d) - docs build fix [WTEL-5425] *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`e589872`](https://github.com/webitel/webitel-ui-sdk/commit/e589872d3f28026ccede040021ef59f26f246320) - tests [WTEL-5425](https://webitel.atlassian.net/browse/WTEL-5425) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`070a54e`](https://github.com/webitel/webitel-ui-sdk/commit/070a54e4baf5e1902a62c6518ba205e1dc1a53d9) - added @rollup/rollup-linux-x64-gnu dependency to fix tests run and build on github actions [WTEL-5425] _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`50efdf8`](https://github.com/webitel/webitel-ui-sdk/commit/50efdf89521a5eb83ffa3a664d3e149d0bfedd2d) - docs build fix [WTEL-5425] _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.65] - 2024-11-11 + ### :bug: Bug Fixes -- [`f409687`](https://github.com/webitel/webitel-ui-sdk/commit/f40968736c808f37dbee27956faabf12318332ab) - exposed install.js script for applications docs [WTEL-5425] *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`f409687`](https://github.com/webitel/webitel-ui-sdk/commit/f40968736c808f37dbee27956faabf12318332ab) - exposed install.js script for applications docs [WTEL-5425] _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.64] - 2024-11-08 + ### :sparkles: New Features -- [`e599e2b`](https://github.com/webitel/webitel-ui-sdk/commit/e599e2babe86f75b5a6aa95db39b6cfcb993cddd) - node and npm engines restriction *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`e599e2b`](https://github.com/webitel/webitel-ui-sdk/commit/e599e2babe86f75b5a6aa95db39b6cfcb993cddd) - node and npm engines restriction _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ### :bug: Bug Fixes -- [`01852a5`](https://github.com/webitel/webitel-ui-sdk/commit/01852a5a7481a4523ecc9d1646364d99a9ccc93f) - workflows node version *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`bdc72a4`](https://github.com/webitel/webitel-ui-sdk/commit/bdc72a437b90572f94fb8ca6164f9c5bd3b486f4) - workflows node version *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`294327b`](https://github.com/webitel/webitel-ui-sdk/commit/294327bf52e32de2f0675da97682dec0f8e2e351) - workflows node version *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`0291fe0`](https://github.com/webitel/webitel-ui-sdk/commit/0291fe0759f45344fb21f01c9feefdce7bb8d98e) - workflows node version *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`01852a5`](https://github.com/webitel/webitel-ui-sdk/commit/01852a5a7481a4523ecc9d1646364d99a9ccc93f) - workflows node version _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`bdc72a4`](https://github.com/webitel/webitel-ui-sdk/commit/bdc72a437b90572f94fb8ca6164f9c5bd3b486f4) - workflows node version _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`294327b`](https://github.com/webitel/webitel-ui-sdk/commit/294327bf52e32de2f0675da97682dec0f8e2e351) - workflows node version _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`0291fe0`](https://github.com/webitel/webitel-ui-sdk/commit/0291fe0759f45344fb21f01c9feefdce7bb8d98e) - workflows node version _(commit by [@dlohvinov](https://github.com/dlohvinov))_ - [`08e91c8`](https://github.com/webitel/webitel-ui-sdk/commit/08e91c82ac9c3e7c773f66e940fcdc2b4241e0d8) - Remove from docs taggable input with value.[WTEL-5463](https://webitel.atlassian.net/browse/WTEL-5463) - [`37dfa1f`](https://github.com/webitel/webitel-ui-sdk/commit/37dfa1f0942e85a108c9deda06d0c248e52e27f4) - update initialize function for options. Remove from docs taggable input with value. Implement unit test [WTEL-5463](https://webitel.atlassian.net/browse/WTEL-5463) - [`3aa1180`](https://github.com/webitel/webitel-ui-sdk/commit/3aa118028d21956fe14959d90948950165e69936) - implement method for set options from value with exist options without duplicate options [WTEL-5463](https://webitel.atlassian.net/browse/WTEL-5463) @@ -373,84 +511,100 @@ - [`8760c50`](https://github.com/webitel/webitel-ui-sdk/commit/8760c503e13aab3b4819bba6341748a1d75b4bdc) - update package version [WTEL-5463](https://webitel.atlassian.net/browse/WTEL-5463) - [`3739fac`](https://github.com/webitel/webitel-ui-sdk/commit/3739fac8833ad23d371ac5d168aaf18f5eef2647) - implement set options from value on multiselect component [WTEL-5463](https://webitel.atlassian.net/browse/WTEL-5463) - ## [v24.10.63] - 2024-11-07 + ### :bug: Bug Fixes -- [`6f1531b`](https://github.com/webitel/webitel-ui-sdk/commit/6f1531b75f4d64cb6c7f74642fa8f05c484618bf) - props mode and add new props include/exclude[WTEL-5282] *(commit by [@Lera24](https://github.com/Lera24))* +- [`6f1531b`](https://github.com/webitel/webitel-ui-sdk/commit/6f1531b75f4d64cb6c7f74642fa8f05c484618bf) - props mode and add new props include/exclude[WTEL-5282] _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.62] - 2024-11-07 + ### :sparkles: New Features -- [`d153ba8`](https://github.com/webitel/webitel-ui-sdk/commit/d153ba813e0d9b60050004dddbd172720aa5191d) - changed agent chat service in agent chat api [WTEL-5456](https://webitel.atlassian.net/browse/WTEL-5456) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* +- [`d153ba8`](https://github.com/webitel/webitel-ui-sdk/commit/d153ba813e0d9b60050004dddbd172720aa5191d) - changed agent chat service in agent chat api [WTEL-5456](https://webitel.atlassian.net/browse/WTEL-5456) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ ## [v24.10.61] - 2024-11-06 + ### :bug: Bug Fixes -- [`be1b3a2`](https://github.com/webitel/webitel-ui-sdk/commit/be1b3a25d6b6e6b3c0a5d3287556bc775d6bef8e) - fix import agent chat service +- [`be1b3a2`](https://github.com/webitel/webitel-ui-sdk/commit/be1b3a25d6b6e6b3c0a5d3287556bc775d6bef8e) - fix import agent chat service ## [v24.10.60] - 2024-11-06 + ### :sparkles: New Features + - [`1968f0c`](https://github.com/webitel/webitel-ui-sdk/commit/1968f0ca73eba9be929b31f50570553037245559) - update version [WTEL-5443](https://webitel.atlassian.net/browse/WTEL-5443) - [`8bd5487`](https://github.com/webitel/webitel-ui-sdk/commit/8bd54879265262cfd1831e02f876a82be4da5075) - update save icon, implement save as icon [WTEL-5443](https://webitel.atlassian.net/browse/WTEL-5443) - ## [v24.10.59] - 2024-11-05 + ### :recycle: Refactors -- [`2d14f6e`](https://github.com/webitel/webitel-ui-sdk/commit/2d14f6e0c8f3378aa535f4409ad64766f37f0131) - version increment [WTEL-5310] (https://webitel.atlassian.net/browse/WTEL-5310) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* +- [`2d14f6e`](https://github.com/webitel/webitel-ui-sdk/commit/2d14f6e0c8f3378aa535f4409ad64766f37f0131) - version increment [WTEL-5310] (https://webitel.atlassian.net/browse/WTEL-5310) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ## [v24.10.57] - 2024-11-05 + ### :sparkles: New Features -- [`f5938a4`](https://github.com/webitel/webitel-ui-sdk/commit/f5938a4bfebd725c115b453d7c26837fb8edaedd) - cases section added to CRM enum [WTEL-5310] (https://webitel.atlassian.net/browse/WTEL-5310) *(commit by [@VladimirBeria](https://github.com/VladimirBeria))* + +- [`f5938a4`](https://github.com/webitel/webitel-ui-sdk/commit/f5938a4bfebd725c115b453d7c26837fb8edaedd) - cases section added to CRM enum [WTEL-5310] (https://webitel.atlassian.net/browse/WTEL-5310) _(commit by [@VladimirBeria](https://github.com/VladimirBeria))_ ### :memo: Documentation Changes -- [`d6516e7`](https://github.com/webitel/webitel-ui-sdk/commit/d6516e7e30e97bd4a7db8c597e5c55be9e67c121) - added wt-action-bar slots docs [WTEL-5307](https://webitel.atlassian.net/browse/WTEL-5307) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`d6516e7`](https://github.com/webitel/webitel-ui-sdk/commit/d6516e7e30e97bd4a7db8c597e5c55be9e67c121) - added wt-action-bar slots docs [WTEL-5307](https://webitel.atlassian.net/browse/WTEL-5307) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.56] - 2024-10-31 + ### :sparkles: New Features -- [`d0565ac`](https://github.com/webitel/webitel-ui-sdk/commit/d0565ac468e9dc441a38d7250dfed140c26e52b4) - add edit icon in wt-action-bar[WTEL-4686](https://webitel.atlassian.net/browse/WTEL-4686)] *(commit by [@Lera24](https://github.com/Lera24))* +- [`d0565ac`](https://github.com/webitel/webitel-ui-sdk/commit/d0565ac468e9dc441a38d7250dfed140c26e52b4) - add edit icon in wt-action-bar[WTEL-4686](https://webitel.atlassian.net/browse/WTEL-4686)] _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.55] - 2024-10-30 + ### :bug: Bug Fixes -- [`125309f`](https://github.com/webitel/webitel-ui-sdk/commit/125309fe2bafa7ad5228c34371daacae64a470b2) - changed version [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* -- [`ff316c1`](https://github.com/webitel/webitel-ui-sdk/commit/ff316c1638aaa4dcadd730c15491f4fc4111d4da) - import i18n.js to agentChats api file [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* -- [`d957dee`](https://github.com/webitel/webitel-ui-sdk/commit/d957dee98c58b77cf8a362eb994b355b7cf1a9f5) - implemented version [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* -- [`d0406b5`](https://github.com/webitel/webitel-ui-sdk/commit/d0406b57b27eb001121bc540deb07e1690f2a229) - added catalog api and added new method to agentChats api [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) *(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))* +- [`125309f`](https://github.com/webitel/webitel-ui-sdk/commit/125309fe2bafa7ad5228c34371daacae64a470b2) - changed version [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ +- [`ff316c1`](https://github.com/webitel/webitel-ui-sdk/commit/ff316c1638aaa4dcadd730c15491f4fc4111d4da) - import i18n.js to agentChats api file [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ +- [`d957dee`](https://github.com/webitel/webitel-ui-sdk/commit/d957dee98c58b77cf8a362eb994b355b7cf1a9f5) - implemented version [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ +- [`d0406b5`](https://github.com/webitel/webitel-ui-sdk/commit/d0406b57b27eb001121bc540deb07e1690f2a229) - added catalog api and added new method to agentChats api [WTEL-5335](https://webitel.atlassian.net/browse/WTEL-5335) _(commit by [@liza-pohranichna](https://github.com/liza-pohranichna))_ ## [v24.10.54] - 2024-10-30 + ### :bug: Bug Fixes -- [`e3c0907`](https://github.com/webitel/webitel-ui-sdk/commit/e3c0907c4c5993879e8add14439f0c5c0c1cd25e) - rename slas page[WTEL-5379](https://webitel.atlassian.net/browse/WTEL-5379) *(commit by [@Lera24](https://github.com/Lera24))* +- [`e3c0907`](https://github.com/webitel/webitel-ui-sdk/commit/e3c0907c4c5993879e8add14439f0c5c0c1cd25e) - rename slas page[WTEL-5379](https://webitel.atlassian.net/browse/WTEL-5379) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.53] - 2024-10-30 + ### :sparkles: New Features -- [`6eed211`](https://github.com/webitel/webitel-ui-sdk/commit/6eed21158f3e5114ea10449d9593ec7ecd172565) - add sla page in crm section and delete crmConfigurationSections enum [WTEL-5379](https://webitel.atlassian.net/browse/WTEL-5379) *(commit by [@Lera24](https://github.com/Lera24))* +- [`6eed211`](https://github.com/webitel/webitel-ui-sdk/commit/6eed21158f3e5114ea10449d9593ec7ecd172565) - add sla page in crm section and delete crmConfigurationSections enum [WTEL-5379](https://webitel.atlassian.net/browse/WTEL-5379) _(commit by [@Lera24](https://github.com/Lera24))_ ## [v24.10.52] - 2024-10-29 + ### :bug: Bug Fixes -- [`77fdd56`](https://github.com/webitel/webitel-ui-sdk/commit/77fdd5681aa103f3771c90b8d0dfaf377f1d103b) - fixed vue-multiselect-based components placeholder color [WTEL-5387](https://webitel.atlassian.net/browse/WTEL-5373) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`77fdd56`](https://github.com/webitel/webitel-ui-sdk/commit/77fdd5681aa103f3771c90b8d0dfaf377f1d103b) - fixed vue-multiselect-based components placeholder color [WTEL-5387](https://webitel.atlassian.net/browse/WTEL-5373) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.51] - 2024-10-29 + ### :sparkles: New Features -- [`b7b5fda`](https://github.com/webitel/webitel-ui-sdk/commit/b7b5fda8b945b12f7e126f756ac43590aa13d54c) - useTableEmpty.js locale in progress [WTEL-5284] *(commit by [@dlohvinov](https://github.com/dlohvinov))* -- [`1d58fed`](https://github.com/webitel/webitel-ui-sdk/commit/1d58fedceed27b999683ed1843edd4fd9d1130d3) - TableComponentModule useTableEmpty.js, + docs [WTEL-5284] *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`b7b5fda`](https://github.com/webitel/webitel-ui-sdk/commit/b7b5fda8b945b12f7e126f756ac43590aa13d54c) - useTableEmpty.js locale in progress [WTEL-5284] _(commit by [@dlohvinov](https://github.com/dlohvinov))_ +- [`1d58fed`](https://github.com/webitel/webitel-ui-sdk/commit/1d58fedceed27b999683ed1843edd4fd9d1130d3) - TableComponentModule useTableEmpty.js, + docs [WTEL-5284] _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ### :bug: Bug Fixes -- [`cd88706`](https://github.com/webitel/webitel-ui-sdk/commit/cd88706b3e44ce6f257c6e4e031cae3205dd9a7c) - fixed wt-table.vue default column name [WTEL-5373](https://webitel.atlassian.net/browse/WTEL-5373) *(commit by [@dlohvinov](https://github.com/dlohvinov))* +- [`cd88706`](https://github.com/webitel/webitel-ui-sdk/commit/cd88706b3e44ce6f257c6e4e031cae3205dd9a7c) - fixed wt-table.vue default column name [WTEL-5373](https://webitel.atlassian.net/browse/WTEL-5373) _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ## [v24.10.50] - 2024-10-25 + ### :sparkles: New Features -- [`652b695`](https://github.com/webitel/webitel-ui-sdk/commit/652b695c8baf21fec5823711d68e31b317e5d649) - CHANGELOG.md auto generation *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`652b695`](https://github.com/webitel/webitel-ui-sdk/commit/652b695c8baf21fec5823711d68e31b317e5d649) - CHANGELOG.md auto generation _(commit by [@dlohvinov](https://github.com/dlohvinov))_ ### :bug: Bug Fixes -- [`49d1c26`](https://github.com/webitel/webitel-ui-sdk/commit/49d1c268eda81654d920bc86c2f3c5a93fc2c338) - CHANGELOG.md auto generation *(commit by [@dlohvinov](https://github.com/dlohvinov))* + +- [`49d1c26`](https://github.com/webitel/webitel-ui-sdk/commit/49d1c268eda81654d920bc86c2f3c5a93fc2c338) - CHANGELOG.md auto generation _(commit by [@dlohvinov](https://github.com/dlohvinov))_ [v24.10.50]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.49-10...v24.10.50 [v24.10.51]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.50...v24.10.51 @@ -517,3 +671,10 @@ [v24.12.27]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.26...v24.12.27 [v24.12.28]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.27...v24.12.28 [v24.12.29]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.28...v24.12.29 +[v24.12.31]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.29...v24.12.31 +[v24.12.32]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.31...v24.12.32 +[v24.12.33]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.32...v24.12.33 +[v24.12.34]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.33...v24.12.34 +[v24.12.35]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.34...v24.12.35 +[v24.12.36]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.35...v24.12.36 +[v24.12.37]: https://github.com/webitel/webitel-ui-sdk/compare/v24.12.36...v24.12.37 diff --git a/README.md b/README.md index bc5eeac4f..34572db50 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,35 @@ # webitel-ui-sdk (1.0.46) ## Project setup + ``` npm install ``` ### Compiles and hot-reloads for development + ``` npm run serve-lib ``` ### Compiles and minifies for production + ``` npm run build ``` ### Run your unit tests + ``` npm run test:unit ``` ### Lints and fixes files + ``` npm run lint ``` ### Customize configuration + See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/docs/.vitepress/config.mjs b/docs/.vitepress/config.mjs index 419e834a1..073058311 100644 --- a/docs/.vitepress/config.mjs +++ b/docs/.vitepress/config.mjs @@ -30,6 +30,13 @@ export default defineConfig({ ssr: { noExternal: ['@vuelidate/core', 'vue-multiselect', 'webitel-sdk'], }, + css: { + preprocessorOptions: { + scss: { + api: 'modern', // or "modern-compiler", "legacy", + }, + }, + }, plugins: [ nodePolyfills({ globals: { @@ -68,7 +75,8 @@ export default defineConfig({ // https://vitepress.dev/reference/default-theme-edit-link#site-level-config editLink: { // https://vitepress.dev/reference/runtime-api#usedata - pattern: 'https://github.com/webitel/webitel-ui-sdk/tree/master/docs/:path', + pattern: + 'https://github.com/webitel/webitel-ui-sdk/tree/master/docs/:path', }, }, }); diff --git a/docs/.vitepress/routes.js b/docs/.vitepress/routes.js index 517962fa0..31a416ba9 100644 --- a/docs/.vitepress/routes.js +++ b/docs/.vitepress/routes.js @@ -110,11 +110,15 @@ const sidebarNav = [ ...useDocsPattern(['webitel-ui/modules/ObjectPermissions/index.md']), { text: 'Components', - items: useDocsPattern(['webitel-ui/modules/ObjectPermissions/components/**/*.md']), + items: useDocsPattern([ + 'webitel-ui/modules/ObjectPermissions/components/**/*.md', + ]), }, { text: 'Store', - items: useDocsPattern(['webitel-ui/modules/ObjectPermissions/store/**/*.md']), + items: useDocsPattern([ + 'webitel-ui/modules/ObjectPermissions/store/**/*.md', + ]), }, ], }, @@ -125,7 +129,9 @@ const sidebarNav = [ ...useDocsPattern('webitel-ui/modules/TableComponentModule/index.md'), { text: 'Composables', - items: useDocsPattern('webitel-ui/modules/TableComponentModule/composables/**/*.md'), + items: useDocsPattern( + 'webitel-ui/modules/TableComponentModule/composables/**/*.md', + ), }, ], }, @@ -136,7 +142,10 @@ const sidebarNav = [ text: 'Scripts', items: [ ...useDocsPattern('webitel-ui/scripts/index.md'), - ...useDocsPattern(['webitel-ui/scripts/**/*.md', '!webitel-ui/scripts/index.md']), + ...useDocsPattern([ + 'webitel-ui/scripts/**/*.md', + '!webitel-ui/scripts/index.md', + ]), ], collapsed: true, }, @@ -181,7 +190,9 @@ const linkify = (nav) => { const getFilename = (nav) => nav.split('/').pop().replace(/\.md$/, ''); const getLink = (nav) => '/pages/'.concat(nav.replace('.md', '.html')); - const text = nav.endsWith('Readme.md') ? getParentDirName(nav) : getFilename(nav); + const text = nav.endsWith('Readme.md') + ? getParentDirName(nav) + : getFilename(nav); const link = getLink(nav); return { text, link }; diff --git a/docs/index.md b/docs/index.md index c7dff6839..d715f5fff 100644 --- a/docs/index.md +++ b/docs/index.md @@ -13,7 +13,6 @@ hero: alt: VitePress actions: - - theme: brand text: Старт link: /pages/docs/faq/faq/Readme @@ -30,17 +29,14 @@ hero: text: не натискати link: https://www.youtube.com/watch?v=BU005EjDm2g -# https://vitepress.dev/reference/default-theme-home-page#features-section +# https://vitepress.dev/reference/default-theme-home-page#features-section features: - - icon: 🛠️ title: TODO - - icon: 🛠️ title: TODO - - icon: 🛠️ title: TODO --- diff --git a/docs/pages/docs/architecture-and-structures/Applications structure and intercommunication/Readme.md b/docs/pages/docs/architecture-and-structures/Applications structure and intercommunication/Readme.md index 48492fb86..bbb222d76 100644 --- a/docs/pages/docs/architecture-and-structures/Applications structure and intercommunication/Readme.md +++ b/docs/pages/docs/architecture-and-structures/Applications structure and intercommunication/Readme.md @@ -51,6 +51,7 @@ _(на прикладі [адмінки](#admin))_ для всіх попередніх роутів. Кожен модуль може містити в собі такі штуки (і відповідно папки), як: + - `api` - `components` - `css` @@ -69,45 +70,54 @@ _(на прикладі [адмінки](#admin))_ _Note: store має бути ієрархічним, тобто, модуль-чайлд має бути так само чайлдом стор-модуля._ - ## Applications list ### Auth + - repository: [web-client-auth](https://github.com/webitel/web-client-auth) - dev: [dev.webitel.com/app/auth](https://dev.webitel.com/app/auth) ### Admin + - repository: [client](https://github.com/webitel/client) - dev: [dev.webitel.com](https://dev.webitel.com/) ### Workspace + - repository: [cc-workslace](https://github.com/webitel/cc-workspaces) - dev: [dev.webitel.com/workspace](https://dev.webitel.com/workspace) ### Supervisor + - repository: [cc-supervisor](https://github.com/webitel/cc-supervisor) - dev: [dev.webitel.com/supervisor](https://dev.webitel.com/supervisor) ### Audit + - repository: [cc-quality-auditor](https://github.com/webitel/cc-quality-auditor) - dev: [dev.webitel.com/audit](https://dev.webitel.com/audit) ### History + - repository: [cc-history](https://github.com/webitel/cc-history) - dev: [dev.webitel.com/history](https://dev.webitel.com/history) ### CRM + - repository: [crm](https://github.com/webitel/crm) - dev: [dev.webitel.com/crm](https://dev.webitel.com/crm) ### Webitel UI + - repository: [webitel-ui-sdk](https://github.com/webitel/webitel-ui-sdk) - docs: [webitel.github.io/webitel-ui-sdk](https://webitel.github.io/webitel-ui-sdk) ### Flow + - repository: [webitel-flow-diagram](https://git.webitel.com/projects/CORE/repos/webitel-flow-diagram/browse) - dev: [dev.webitel.com/flow/:id](https://dev.webitel.com/flow/767) ### Omni-Widget + - repository: [omnichannel-widget](https://github.com/webitel/omnichannel-widget) - dev: [tst.webitel.ua](https://tst.webitel.ua/) diff --git a/docs/pages/docs/architecture-and-structures/Filters-preserving routing/Readme.md b/docs/pages/docs/architecture-and-structures/Filters-preserving routing/Readme.md index 56364fd67..79af2fac8 100644 --- a/docs/pages/docs/architecture-and-structures/Filters-preserving routing/Readme.md +++ b/docs/pages/docs/architecture-and-structures/Filters-preserving routing/Readme.md @@ -2,20 +2,20 @@ ## Вимоги -* Фільтри у системі мають відтворюватись після перезавантаження сторінки. +- Фільтри у системі мають відтворюватись після перезавантаження сторінки. -* Після натиснення кнопки "Close" "вкладеної" сутності (наприклад, карточки контакта у реєстрі контактів), -роутинг має вертати на список контактів, а не на попередню сторінку. При поверненні фільтри - відтворюються. +- Після натиснення кнопки "Close" "вкладеної" сутності (наприклад, карточки контакта у реєстрі контактів), + роутинг має вертати на список контактів, а не на попередню сторінку. При поверненні фільтри - відтворюються. ## TLDR; -* Щоб зберегти фільтри у роуті, використовуємо `query` параметри. +- Щоб зберегти фільтри у роуті, використовуємо `query` параметри. -* При закритті "вкладеної" сутності, повертаємось на список, а не на попередню сторінку через роутинг на конкретну сторінку, -а не на `.back()`. +- При закритті "вкладеної" сутності, повертаємось на список, а не на попередню сторінку через роутинг на конкретну сторінку, + а не на `.back()`. -* Для цього необхідно зберігати фільтри також у `localStorage`, та відтворювати їх при відкритті сторінки, навіть якщо -вони були видалені з `query` параметрів. +- Для цього необхідно зберігати фільтри також у `localStorage`, та відтворювати їх при відкритті сторінки, навіть якщо + вони були видалені з `query` параметрів. ## FAQ @@ -44,6 +44,7 @@ #### А чому? Варіанти 2: + - Або, в цьому місці ще не було реалізовано збереження фільтрів у `query` параметрах (якщо роутер вертає на попередню сторінку). - Або, не було реалізовано відновлення фільтрів з `localStorage` у `query`. (якщо роутер вертає на таблицю). diff --git a/docs/pages/docs/faq/branching/Readme.md b/docs/pages/docs/faq/branching/Readme.md index 1ab740069..fba3d0903 100644 --- a/docs/pages/docs/faq/branching/Readme.md +++ b/docs/pages/docs/faq/branching/Readme.md @@ -1,23 +1,24 @@ # Branching ## Git Flow + Спершу, читаємо про Git Flow methodology. Далі, по бренчах: ![branching](./assets/Webitel%20branching_page-0001.jpg) -## Основні +## Основні - `master` - головна гілка, в яку мерджаться тільки готові фічі. - `vYY.MM.XX` - гілки для релізів. (Наприклад, `v24.04.2`), де `24` - рік релізу, -`04` - місяць релізу, а `2` - номер хотфікс патча. + `04` - місяць релізу, а `2` - номер хотфікс патча. ## Додаткові - `feat/` - гілки для фіч, наприклад, `feat/feature-name`. - `fix/` - гілки для фіксів, наприклад, `fix/fix-name`. - `hotfix/` - гілки для хотфіксів, які бренчуються **ВІД РЕЛІЗУ (НЕ ВІД МАСТЕРА)**. -Наприклад, `hotfix/hotfix-name`. + Наприклад, `hotfix/hotfix-name`. - `refactor/` - гілки для рефакторингів, наприклад, `refactor/refactor-name`. - `test/` - гілки для тестів, наприклад, `test/test-name`. diff --git a/docs/pages/docs/how-to/Integration between store modules/Readme.md b/docs/pages/docs/how-to/Integration between store modules/Readme.md index 1f47faa83..bed7ed473 100644 --- a/docs/pages/docs/how-to/Integration between store modules/Readme.md +++ b/docs/pages/docs/how-to/Integration between store modules/Readme.md @@ -2,11 +2,11 @@ ## Prerequisites -* [Store Introduction](../../../webitel-ui/store/_Introduction/Readme.md) -* [createTableStoreModule](../../../webitel-ui/store/createTableStoreModule/Readme.md) -* [createCardStoreModule](../../../webitel-ui/store/createCardStoreModule/Readme.md) -* [createApiStoreModule](../../../webitel-ui/store/createApiStoreModule/Readme.md) -* [modules/Filters](../../../webitel-ui/modules/Filters/Readme.md) +- [Store Introduction](../../../webitel-ui/store/_Introduction/Readme.md) +- [createTableStoreModule](../../../webitel-ui/store/createTableStoreModule/Readme.md) +- [createCardStoreModule](../../../webitel-ui/store/createCardStoreModule/Readme.md) +- [createApiStoreModule](../../../webitel-ui/store/createApiStoreModule/Readme.md) +- [modules/Filters](../../../webitel-ui/modules/Filters/Readme.md) ## Опис @@ -82,4 +82,3 @@ const contacts = createBaseStoreModule({ export default contacts; ``` - diff --git a/docs/pages/docs/how-to/add-a-REST-API-module/Readme.md b/docs/pages/docs/how-to/add-a-REST-API-module/Readme.md index 7cdd913ca..0c4ea71cf 100644 --- a/docs/pages/docs/how-to/add-a-REST-API-module/Readme.md +++ b/docs/pages/docs/how-to/add-a-REST-API-module/Readme.md @@ -22,6 +22,7 @@ ## Як додати Webitel SDK Endpoint модуль? ### TLDR; + Піддивіться у souce code якогось з `api/clients` 🙂 ### Довгий та розумний шлях @@ -55,16 +56,15 @@ const service = new SomeEntityApiFactory(instance, '', openAPIConfig); ```javascript const addItem = ({ itemInstance }) => { - const body = applyTransform(itemInstance, [ camelToSnake, // (1) sanitize(fieldsToSend), // (2) ({ id, ...rest }) => ({ itemId: id, - ...rest + ...rest, }), // (3) ]); -} +}; ``` Далі, ми викликаємо наш api метод @@ -72,36 +72,32 @@ const addItem = ({ itemInstance }) => { ```javascript const addItem = async ({ itemInstance }) => { // ... - + const response = await service.add(body); -} +}; ``` Обробляємо відповідь, наприклад, дописуючи `counter: 0` ```javascript () => { - // ... - - const item = applyTransform(response, [ - (item) => ({ ...item, counter: 0 }), - ]); -} + // ... + + const item = applyTransform(response, [(item) => ({ ...item, counter: 0 })]); +}; ``` Ну і, обробляєм потенційну помилку ```javascript () => { + // ... + try { // ... - try { - // ... - } catch (err) { - throw applyTransform(err, [ - log, - ]); + } catch (err) { + throw applyTransform(err, [log]); } -} +}; ``` ### Тонкощі @@ -113,6 +109,7 @@ const addItem = async ({ itemInstance }) => { **Щодо методів**, Webitel SDK на TypeScript, тож IDE має підказати вам, які там є методи. Зазвичай це: + - `getList` це `search...`, - `get` це `read...`, - `add` це `create...`, @@ -135,13 +132,15 @@ async (id) => { const url = `${baseUrl}/${id}`; const response = await instance.get(url); -} +}; ``` ### TLDR; + Піддивіться у souce code якогось з `api/clients` 🙂 ### Довгий та розумний шлях ### Тонкощі + Тут - немає. Берете, формуєте `url`'ку, викликаєте http метод, обробляєте відповідь. diff --git a/docs/pages/docs/how-to/add-docs-section/Readme.md b/docs/pages/docs/how-to/add-docs-section/Readme.md index a474d7b53..9c5b2f17d 100644 --- a/docs/pages/docs/how-to/add-docs-section/Readme.md +++ b/docs/pages/docs/how-to/add-docs-section/Readme.md @@ -1,38 +1,43 @@ # How to add Docs section to (new) Webitel UI docs ## Adding new component + _By new component we mean "New component" == has `.vue` extension and stored in `components` folder_ ### Theory + 1. [How Vue Styleguidist locates components](https://vue-styleguidist.github.io/docs/Components.html#finding-components) 2. [How to add docs to a component](https://vue-styleguidist.github.io/docs/Documenting.html#usage-examples-and-readme-files) -2. How to document component -[props](https://vue-styleguidist.github.io/docs/Documenting.html#code-comments), -[events](https://vue-styleguidist.github.io/docs/Documenting.html#events), -[slots](https://vue-styleguidist.github.io/docs/Documenting.html#slots) +3. How to document component + [props](https://vue-styleguidist.github.io/docs/Documenting.html#code-comments), + [events](https://vue-styleguidist.github.io/docs/Documenting.html#events), + [slots](https://vue-styleguidist.github.io/docs/Documenting.html#slots) -2. [How to add examples to a component](https://vue-styleguidist.github.io/docs/Documenting.html#writing-code-examples) +4. [How to add examples to a component](https://vue-styleguidist.github.io/docs/Documenting.html#writing-code-examples) ### Practice + 1. Create `Readme.md` file (capitalized!) in the same folder as component 2. If styleguide is already running, restart it to locale new `Readme.md` file -2. Comment props, events and slots as listed in [Theory](#theory) section +3. Comment props, events and slots as listed in [Theory](#theory) section -3. Add code examples as described in [Theory](#theory) section +4. Add code examples as described in [Theory](#theory) section ## Adding new docs page, not related to any component + ### Theory + 1. Sections [docs](https://vue-styleguidist.github.io/docs/Components.html#sections) ### Practice + 1. Add `.md` file anywhere you need it. It would be great to store it in the same folder as documented entity 2. In `styleguide.config.js` add new section to `sections` array. As `.md` files, not related to components, doesn't detect automatically, -you need to specify its direct location + you need to specify its direct location 3. Restart styleguide to see changes - diff --git a/docs/pages/docs/how-to/estimate-a-task/Readme.md b/docs/pages/docs/how-to/estimate-a-task/Readme.md index 2a1816b19..0041f5c58 100644 --- a/docs/pages/docs/how-to/estimate-a-task/Readme.md +++ b/docs/pages/docs/how-to/estimate-a-task/Readme.md @@ -1,6 +1,7 @@ # Як оцінювати задачі? ## TL;DR + 1. Перевірити вхідні дані задачі та заестімейтити естімейт. 2. Розбити задачу на підзадачі. 3. Планувати, як реалізувати кожну з підзадач. @@ -34,6 +35,7 @@ _Чому? — тому що для того щоб ми надали інфор а отже краще знати перед початком планування як умога більше_ Чек-ліст: + - Чи є апі? (поверхнева оцінка) - Чи є макет? (поверхнева оцінка) - Чи є специфічні вхідні дані — якщо вони потрібні? (репродакшен степс, середовище, етс) @@ -93,6 +95,7 @@ _Бажано до цього етапу не допускати, тому що спосіб, зручний вам і зрозумілий іншим. Чек-ліст питань, які допоможуть спланувати задачу: + - які апішки потрібні (на беці) чи вони є? - розібратись в нюансах апішек, якщо вони є - розбити роботу предметно на те, що саме треба робити: які блоки верстати, які компоненти створювати, які компоненти з потрібних є в нашій лібє (ВАЖЛИВО: опираючись на макет) @@ -105,6 +108,7 @@ _Бажано до цього етапу не допускати, тому що ## Етап переведення плану у складність **На цьому етапі кожна з підзадач оцінюється по 5-бальній шкалі складності:** + - 1 — дуже просто - 2 — просто - 3 — середньо @@ -140,11 +144,13 @@ _Втім, повторення цього етапу, після поверне Також, рекомендую закладати певний коефіціент невизначеності на задачу: умовно, мультиплікатор часу, від 1 до 2х. ## Кінцеві артефакти + - План задачі, описаний у таску. - Дуже бажано, щоб таска була розбита на підтаски (як правило, має бути завжди, але можуть бути виключення). - Проставлений реальний (з закладеними ризиками) часовий естімейт у кожну з тасок. ## Чек-лісти + ### Чек-ліст перед плануванням задачі - Чи є апі? (поверхнева оцінка) @@ -165,4 +171,3 @@ _Втім, повторення цього етапу, після поверне ## Розумні думки, які я не придумав куди запхати - **Краще оцінити задачу більше, ніж менше. Головне - оцінити.** - diff --git a/docs/pages/docs/how-to/make-fix-in-release/Readme.md b/docs/pages/docs/how-to/make-fix-in-release/Readme.md index 6e670fc9d..119455da2 100644 --- a/docs/pages/docs/how-to/make-fix-in-release/Readme.md +++ b/docs/pages/docs/how-to/make-fix-in-release/Readme.md @@ -1,17 +1,19 @@ # How to make fix in release ## Sometimes there is a situation when you need to make a fix in an already released version of the application. + In this example, I'll use v23.09 as the current release (the one in which I want to make changes). Your version probably will be different. ### Follow these steps + 1. Check out to the v23.09 branch. 2. Make a new branch from v23.09. 3. Make your changes and push them to the repository. - + 4. Make a pull request to the v23.09 branch. ### Important!!! -The pull request changes should only contain fixes for the old functionality. Changing the code formatting is not allowed. Keep an eye on this. +The pull request changes should only contain fixes for the old functionality. Changing the code formatting is not allowed. Keep an eye on this. diff --git a/docs/pages/docs/how-to/manual-testing-proposals/Readme.md b/docs/pages/docs/how-to/manual-testing-proposals/Readme.md index d10a5f4e9..9c7149e01 100644 --- a/docs/pages/docs/how-to/manual-testing-proposals/Readme.md +++ b/docs/pages/docs/how-to/manual-testing-proposals/Readme.md @@ -1,11 +1,11 @@ # Manual Testing Proposals > [!IMPORTANT] -> Цільова аудиторія доки – QA-інженери, які виконують ручне тестування. +> Цільова аудиторія доки – QA-інженери, які виконують ручне тестування. Тут фіксуватимуться пропозиції-прохання щодо ручного тестування: -* Як оформлювати? +- Як оформлювати? ## Тестування з консоллю @@ -34,7 +34,7 @@ Ми (принаймні, фронтенд команда) більше працюємо з кодом, ніж з ui, через що нам може бути важко створити умови відтворення баги (наприклад, нам треба виправити відображення емейла у воркспейсі, а щоб відтворити -це нам треба з самого початку налаштувати емейли). +це нам треба з самого початку налаштувати емейли). В такому разі, може виникати ситуація, коли налаштувати все для відтворення баги займає більше часу, ніж виправити саму багу. @@ -49,11 +49,10 @@ Щодо того, що саме додавати, то тут як вам буде зручно. Це можуть бути: -* Посилання на, скажімо, налаштовані обʼєкти (наприклад, на флов, на якому це відтворюється, або на налаштовану чергу) -– якщо їх треба просто засетати на свого юзера/чергу/етс. -* Можна додавати креди для входу (логін/пароль) на користувача, на якому це відтворюється. +- Посилання на, скажімо, налаштовані обʼєкти (наприклад, на флов, на якому це відтворюється, або на налаштовану чергу) + – якщо їх треба просто засетати на свого юзера/чергу/етс. +- Можна додавати креди для входу (логін/пароль) на користувача, на якому це відтворюється. > [!NOTE] > Якщо ви даєте користувача, на якому може сидіти декілька користувачів одночасно (наприклад, я, та хтось з QA) – то > може бути ризик того, що ми одне одному заважатимемо і впливатимемо на результати одне одного. Зважайте на це. - diff --git a/docs/pages/docs/how-to/typical-workspace-queue-cases/Readme.md b/docs/pages/docs/how-to/typical-workspace-queue-cases/Readme.md index 68de25e70..2ae91cb3a 100644 --- a/docs/pages/docs/how-to/typical-workspace-queue-cases/Readme.md +++ b/docs/pages/docs/how-to/typical-workspace-queue-cases/Readme.md @@ -34,6 +34,7 @@ TODO _Виконані пункти можна пропустити._ ### [How to setup agent account and assign it to queue?](#how-to-setup-agent-account-and-assign-it-to-queue) + Чергу треба створити вхідну. ### How to setup member account? @@ -55,6 +56,7 @@ _Виконані пункти можна пропустити._ [Приклад діалплану](https://dev.webitel.com/routing/dialplan/109) ### How to call, actually? + 1. Зайти у обидва аккаунти з різних браузерів. 2. У акаунті оператора ввійти в режим Contact Center. 3. У аккаунті мембера подзвонити на номер, вказаний в діалплані. @@ -75,6 +77,7 @@ _Виконані пункти можна пропустити._ 2. Створити мембера. Будь-якого. ### How to receive a task in Workspace? + 1. Зайти у Contact-center з акаунта агента. 2. Задача має прийти автоматично. diff --git a/docs/pages/docs/tests-cookbook/mocking-modules/Readme.md b/docs/pages/docs/tests-cookbook/mocking-modules/Readme.md index 207438ecb..7daf3a0bf 100644 --- a/docs/pages/docs/tests-cookbook/mocking-modules/Readme.md +++ b/docs/pages/docs/tests-cookbook/mocking-modules/Readme.md @@ -15,16 +15,16 @@ ## Mock vs doMock Vitest пропонує два методи для мокання модулів: -`mock` [(docs)](https://vitest.dev/api/vi.html#vi-mock) +`mock` [(docs)](https://vitest.dev/api/vi.html#vi-mock) та `doMock` [(docs)](https://vitest.dev/api/vi.html#vi-domock). ### Mock Різниця в тому, що `mock` мокає модуль глобально, тобто, хойстить [(hoisting)](https://developer.mozilla.org/en-US/docs/Glossary/Hoisting) -мок наверх файла, перед імпортом. +мок наверх файла, перед імпортом. З одного боку, це означає, що мок працюватиме для імпортів, оголошених на початку -файла, так як викликається перед цим імпортом. +файла, так як викликається перед цим імпортом. З іншого ж боку, це означає, що в цей мок не можна передати зовнішню змінну, щоб потім її тестувати - тому що вона, на відміну від мока, не хойститься. @@ -46,9 +46,9 @@ Vitest пропонує два методи для мокання модулів ```javascript const request = vi.fn(); -vi.doMock('axios', axiosMock( { default: { request } })); +vi.doMock('axios', axiosMock({ default: { request } })); -const missedAPI = (await import ('../missed.js')).default; +const missedAPI = (await import('../missed.js')).default; ``` ## То що ж використовувати? @@ -58,4 +58,3 @@ const missedAPI = (await import ('../missed.js')).default; Але, з іншого боку, так ми можемо протестити його виклик - якщо нам це потрібно. (Якщо не потрібно - звісно, використовуємо `mock` і не сумніваємось). - diff --git a/docs/pages/docs/tests-cookbook/testing-REST-API/Readme.md b/docs/pages/docs/tests-cookbook/testing-REST-API/Readme.md index eba7b4c97..da2d7b42b 100644 --- a/docs/pages/docs/tests-cookbook/testing-REST-API/Readme.md +++ b/docs/pages/docs/tests-cookbook/testing-REST-API/Readme.md @@ -9,10 +9,11 @@ Prerequisites: ## Що ми тестуємо? Як правило, тестуючи API файлики, ми хочемо перевірити 2 речі: -* чи правильно надсилається -запит відносно вхідних параметрів API метода -* чи правильно обробляється response запиту, -і, що вертається на виході з API метода відносно відповіді на запит. + +- чи правильно надсилається + запит відносно вхідних параметрів API метода +- чи правильно обробляється response запиту, + і, що вертається на виході з API метода відносно відповіді на запит. ## То як же це робиться? @@ -28,11 +29,11 @@ Prerequisites: ```javascript it('My API method calls axios with right params', async () => { const request = vi.fn(() => Promise.resolve({ data: {} })); - vi.doMock('axios', axiosMock( { default: { request } })); + vi.doMock('axios', axiosMock({ default: { request } })); const id = '123'; - const API = (await import ('../API.js')).default; + const API = (await import('../API.js')).default; await API.patch({ id }); @@ -54,11 +55,11 @@ it('My API method handles API response with right transformations', async () => const input = { my_field: 'true', }; - + const output = { myField: true, }; - + const request = vi.fn(() => Promise.resolve({ data: { items: [input] } })); vi.doMock('axios', axiosMock( { default: { request } })); diff --git a/docs/pages/webitel-flow-ui/enums/enums-docs.vue b/docs/pages/webitel-flow-ui/enums/enums-docs.vue index bd3aee294..a0a15446d 100644 --- a/docs/pages/webitel-flow-ui/enums/enums-docs.vue +++ b/docs/pages/webitel-flow-ui/enums/enums-docs.vue @@ -8,6 +8,4 @@ export default { }; - + diff --git a/docs/pages/webitel-flow-ui/enums/flow-app/flow-app-enum-docs.vue b/docs/pages/webitel-flow-ui/enums/flow-app/flow-app-enum-docs.vue index ca881a6d6..f1666cf65 100644 --- a/docs/pages/webitel-flow-ui/enums/flow-app/flow-app-enum-docs.vue +++ b/docs/pages/webitel-flow-ui/enums/flow-app/flow-app-enum-docs.vue @@ -2,8 +2,9 @@

Flow Apps

- Webitel Applications enum is used for applications identifying across - projects. Enum is used in wt-app-navigator.vue + Webitel Applications enum is used + for applications identifying across projects. Enum is used in + wt-app-navigator.vue

{{ enums }}
@@ -19,13 +20,12 @@ export default { name: 'FlowAppEnumDocs', computed: { enums() { - const _import = 'import FlowApp from \'@webitel/flow-ui-sdk/src/enums/FlowApp.enum\';\n'; + const _import = + "import FlowApp from '@webitel/flow-ui-sdk/src/enums/FlowApp.enum';\n"; return enumReducer(FlowApp, _import); }, }, }; - + diff --git a/docs/pages/webitel-flow-ui/locale/locale-docs.vue b/docs/pages/webitel-flow-ui/locale/locale-docs.vue index 241dad4ba..ab740aea4 100644 --- a/docs/pages/webitel-flow-ui/locale/locale-docs.vue +++ b/docs/pages/webitel-flow-ui/locale/locale-docs.vue @@ -18,6 +18,4 @@ export default { }; - + diff --git a/docs/pages/webitel-flow-ui/lookups/flow-type-applications/flow-type-applications-lookup-docs.vue b/docs/pages/webitel-flow-ui/lookups/flow-type-applications/flow-type-applications-lookup-docs.vue index 38605e3d5..d93f0bfba 100644 --- a/docs/pages/webitel-flow-ui/lookups/flow-type-applications/flow-type-applications-lookup-docs.vue +++ b/docs/pages/webitel-flow-ui/lookups/flow-type-applications/flow-type-applications-lookup-docs.vue @@ -15,13 +15,12 @@ export default { name: 'FlowTypeApplicationsLookupDocs', computed: { lookup() { - const _import = 'import FlowTypeApplications from \'@webitel/flow-ui-sdk/src/lookups/FlowTypeApplications.lookup\';\n'; + const _import = + "import FlowTypeApplications from '@webitel/flow-ui-sdk/src/lookups/FlowTypeApplications.lookup';\n"; return enumReducer(FlowTypeApplications, _import); }, }, }; - + diff --git a/docs/pages/webitel-flow-ui/lookups/lookups-docs.vue b/docs/pages/webitel-flow-ui/lookups/lookups-docs.vue index e4a79a45f..a212e3587 100644 --- a/docs/pages/webitel-flow-ui/lookups/lookups-docs.vue +++ b/docs/pages/webitel-flow-ui/lookups/lookups-docs.vue @@ -8,6 +8,4 @@ export default { }; - + diff --git a/docs/pages/webitel-flow-ui/quick-start/quick-start.vue b/docs/pages/webitel-flow-ui/quick-start/quick-start.vue index db503a1a6..5ab45aa24 100644 --- a/docs/pages/webitel-flow-ui/quick-start/quick-start.vue +++ b/docs/pages/webitel-flow-ui/quick-start/quick-start.vue @@ -29,20 +29,20 @@ diff --git a/docs/pages/webitel-ui/api/clients/Readme.md b/docs/pages/webitel-ui/api/clients/Readme.md index 127f294e5..d84000993 100644 --- a/docs/pages/webitel-ui/api/clients/Readme.md +++ b/docs/pages/webitel-ui/api/clients/Readme.md @@ -76,13 +76,7 @@ const { ```js import { media } from '@webitel/ui-sdk/src/api/clients'; -const { - getList, - get, - add, - delete: _delete, - getLookup, -} = media; +const { getList, get, add, delete: _delete, getLookup } = media; ``` ## Lists @@ -90,15 +84,7 @@ const { ```js import { lists } from '@webitel/ui-sdk/src/api/clients'; -const { - getList, - get, - add, - patch, - update, - delete: _delete, - getLookup, -} = lists; +const { getList, get, add, patch, update, delete: _delete, getLookup } = lists; ``` ## Gateways @@ -118,7 +104,7 @@ const { ``` ## Flows - + ```js import { flows } from '@webitel/ui-sdk/src/api/clients'; @@ -130,7 +116,7 @@ const { update, delete: _delete, getLookup, - + getFlowTags, } = flows; ``` @@ -185,20 +171,12 @@ const { } = calendars; ``` - ## Buckets ```js import { buckets } from '@webitel/ui-sdk/src/api/clients'; -const { - getList, - get, - add, - update, - delete: _delete, - getLookup, -} = buckets; +const { getList, get, add, update, delete: _delete, getLookup } = buckets; ``` ## Agents @@ -214,7 +192,7 @@ const { update, delete: _delete, getLookup, - + getAgentHistory, getRegularAgentsOptions, getAgentUsersOptions, @@ -227,14 +205,7 @@ const { ```js import { teams } from '@webitel/ui-sdk/src/api/clients'; -const { - getList, - get, - add, - update, - delete: _delete, - getLookup, -} = teams; +const { getList, get, add, update, delete: _delete, getLookup } = teams; ``` ## Skills @@ -242,12 +213,5 @@ const { ```js import { skills } from '@webitel/ui-sdk/src/api/clients'; -const { - getList, - get, - add, - update, - delete: _delete, - getLookup, -} = skills; -``` \ No newline at end of file +const { getList, get, add, update, delete: _delete, getLookup } = skills; +``` diff --git a/docs/pages/webitel-ui/api/clients/_shared/generatePermissionsApi.js.md b/docs/pages/webitel-ui/api/clients/_shared/generatePermissionsApi.js.md index 325d4a1cc..bc2668b48 100644 --- a/docs/pages/webitel-ui/api/clients/_shared/generatePermissionsApi.js.md +++ b/docs/pages/webitel-ui/api/clients/_shared/generatePermissionsApi.js.md @@ -13,7 +13,7 @@ return { getPermissionsList, patchPermissions, -} +}; ``` ## Використання diff --git a/docs/pages/webitel-ui/api/transformers/Readme.md b/docs/pages/webitel-ui/api/transformers/Readme.md index fd86cc6d8..9ecb6c863 100644 --- a/docs/pages/webitel-ui/api/transformers/Readme.md +++ b/docs/pages/webitel-ui/api/transformers/Readme.md @@ -117,9 +117,9 @@ import { notify } from '@webitel/ui-sdk/src/api/transformers'; // case 1 const notificationCallback = ({ - // callback which actually emits event with received - callback, - }) => { + // callback which actually emits event with received + callback, +}) => { callback({ type: 'success', text: 'custom message' }); }; @@ -139,11 +139,14 @@ Sanitize passed data. ```js import { sanitize } from '@webitel/ui-sdk/src/api/transformers'; - const fieldsToSend = ['field1', 'field2']; // => { field1: 'value1', field2: 'value2' } -sanitize(fieldsToSend)({ field1: 'value1', field2: 'value2', field3: 'value3' }); +sanitize(fieldsToSend)({ + field1: 'value1', + field2: 'value2', + field3: 'value3', +}); ``` ## starToSearch @@ -165,23 +168,24 @@ starToSearch('search')({ search: 'string*' }); You can pass withContext option to pass context into transformer function as a second argument. example: + ```js const context = { - value: '1' - // ... -} + value: '1', + // ... +}; convert = () => { - return applyTransform({}, [ - transformSchema - ], { - withContext: context, - }) -} + return applyTransform({}, [transformSchema], { + withContext: context, + }); +}; ``` How it passes context into transformer function: + ```js -transformer(result, withContext) +transformer(result, withContext); ``` + That give you option to work with node context into transformer. diff --git a/docs/pages/webitel-ui/assets/icons/icons-table.vue b/docs/pages/webitel-ui/assets/icons/icons-table.vue index 708e98c55..d7496dac8 100644 --- a/docs/pages/webitel-ui/assets/icons/icons-table.vue +++ b/docs/pages/webitel-ui/assets/icons/icons-table.vue @@ -4,7 +4,7 @@ :track-by="null" :value="size" label="Size" - style="width: 400px; margin-bottom: var(--spacing-md);" + style="width: 400px; margin-bottom: var(--spacing-md)" @input="size = $event" /> @@ -14,9 +14,7 @@ :selectable="false" > - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-navigation-menu/examples/example-navigation-menu.vue b/docs/pages/webitel-ui/components/on-demand/wt-navigation-menu/examples/example-navigation-menu.vue index f70903dee..80c9b3255 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-navigation-menu/examples/example-navigation-menu.vue +++ b/docs/pages/webitel-ui/components/on-demand/wt-navigation-menu/examples/example-navigation-menu.vue @@ -1,9 +1,11 @@ - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-route-transition/Readme.md b/docs/pages/webitel-ui/components/on-demand/wt-route-transition/Readme.md index 594357a92..9e78b5e93 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-route-transition/Readme.md +++ b/docs/pages/webitel-ui/components/on-demand/wt-route-transition/Readme.md @@ -1,6 +1,6 @@ # WtRouteTransition -Компонент для "плавного роутингу" +Компонент для "плавного роутингу" ## Приклад використання @@ -8,16 +8,14 @@ // the-crm-workspace.vue ``` diff --git a/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/Readme.md b/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/Readme.md index a9845d3a9..07a9852e6 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/Readme.md +++ b/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/Readme.md @@ -6,11 +6,13 @@ import ExampleSaveFailedPopup from './examples/example-save-failed-popup.vue'; # WtSaveFailedPopup ## Events + ::: raw ::: ## Save failed popup example: + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/examples/example-save-failed-popup.vue b/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/examples/example-save-failed-popup.vue index aa54ce5d3..fe5c8e17e 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/examples/example-save-failed-popup.vue +++ b/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/examples/example-save-failed-popup.vue @@ -6,20 +6,16 @@ import WtSaveFailedPopup from '../../../../../../../src/components/on-demand/wt- let isSaveFailedPopup = ref(false); function close() { - isSaveFailedPopup.value = false + isSaveFailedPopup.value = false; } - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue b/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue index 5cef56a4a..353047cf9 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +++ b/docs/pages/webitel-ui/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue @@ -1,7 +1,5 @@ - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/component-specs.vue b/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/component-specs.vue index 9c2d2647b..1ab93da2f 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/component-specs.vue +++ b/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/component-specs.vue @@ -6,5 +6,4 @@ import Component from '../../../../../../src/components/on-demand/wt-selection-p - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/examples/example-selection-popup.vue b/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/examples/example-selection-popup.vue index 2d3ea7e1f..401fe6845 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/examples/example-selection-popup.vue +++ b/docs/pages/webitel-ui/components/on-demand/wt-selection-popup/examples/example-selection-popup.vue @@ -1,9 +1,6 @@ - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-start-page/examples/example-start-page.vue b/docs/pages/webitel-ui/components/on-demand/wt-start-page/examples/example-start-page.vue index 9e430aaaa..3c2107aaa 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-start-page/examples/example-start-page.vue +++ b/docs/pages/webitel-ui/components/on-demand/wt-start-page/examples/example-start-page.vue @@ -1,9 +1,12 @@ - + diff --git a/docs/pages/webitel-ui/components/on-demand/wt-table-transition/Readme.md b/docs/pages/webitel-ui/components/on-demand/wt-table-transition/Readme.md index bbc1af04f..b03309384 100644 --- a/docs/pages/webitel-ui/components/on-demand/wt-table-transition/Readme.md +++ b/docs/pages/webitel-ui/components/on-demand/wt-table-transition/Readme.md @@ -1,4 +1,5 @@ # WtTableTransition + Компонент для "плавної появи" таблиць ## Приклад використання @@ -8,11 +9,9 @@ diff --git a/docs/pages/webitel-ui/components/wt-action-bar/Readme.md b/docs/pages/webitel-ui/components/wt-action-bar/Readme.md index 5ddbbb6aa..f1523f828 100644 --- a/docs/pages/webitel-ui/components/wt-action-bar/Readme.md +++ b/docs/pages/webitel-ui/components/wt-action-bar/Readme.md @@ -17,6 +17,7 @@ import ExampleDisabledTableActionBar from './examples/example-disabled-action-ba ## Events + Events are built dynamically on `click:[IconAction]` pattern for all available [IconActions](../../enums/IconAction/Readme.md). ## Actions Order, depending on `mode` prop diff --git a/docs/pages/webitel-ui/components/wt-action-bar/component-specs.vue b/docs/pages/webitel-ui/components/wt-action-bar/component-specs.vue index 5b3ab6d3e..a775f10f3 100644 --- a/docs/pages/webitel-ui/components/wt-action-bar/component-specs.vue +++ b/docs/pages/webitel-ui/components/wt-action-bar/component-specs.vue @@ -6,6 +6,4 @@ import Component from '__lib__/components/wt-action-bar/wt-action-bar.vue'; - + diff --git a/docs/pages/webitel-ui/components/wt-action-bar/examples/example-disabled-action-bar.vue b/docs/pages/webitel-ui/components/wt-action-bar/examples/example-disabled-action-bar.vue index c81429915..d4847f63d 100644 --- a/docs/pages/webitel-ui/components/wt-action-bar/examples/example-disabled-action-bar.vue +++ b/docs/pages/webitel-ui/components/wt-action-bar/examples/example-disabled-action-bar.vue @@ -14,6 +14,5 @@ import { tableActionsOrder } from '__lib__/components/wt-action-bar/WtActionBarA diff --git a/docs/pages/webitel-ui/components/wt-action-bar/examples/example-slotted-table-action-bar.vue b/docs/pages/webitel-ui/components/wt-action-bar/examples/example-slotted-table-action-bar.vue index d9b0887cf..f756fdac7 100644 --- a/docs/pages/webitel-ui/components/wt-action-bar/examples/example-slotted-table-action-bar.vue +++ b/docs/pages/webitel-ui/components/wt-action-bar/examples/example-slotted-table-action-bar.vue @@ -3,17 +3,9 @@ :include="tableActionsOrder" mode="table" > - - - + + + @@ -23,6 +15,5 @@ import { tableActionsOrder } from '__lib__/components/wt-action-bar/WtActionBarA diff --git a/docs/pages/webitel-ui/components/wt-action-bar/examples/example-table-action-bar.vue b/docs/pages/webitel-ui/components/wt-action-bar/examples/example-table-action-bar.vue index 86c81d1f1..1c86487e8 100644 --- a/docs/pages/webitel-ui/components/wt-action-bar/examples/example-table-action-bar.vue +++ b/docs/pages/webitel-ui/components/wt-action-bar/examples/example-table-action-bar.vue @@ -1,7 +1,5 @@ + - + diff --git a/docs/pages/webitel-ui/components/wt-app-header/examples/example-app-navigator.vue b/docs/pages/webitel-ui/components/wt-app-header/examples/example-app-navigator.vue index abaf324fd..2eff2e746 100644 --- a/docs/pages/webitel-ui/components/wt-app-header/examples/example-app-navigator.vue +++ b/docs/pages/webitel-ui/components/wt-app-header/examples/example-app-navigator.vue @@ -26,6 +26,4 @@ const apps = [ - + diff --git a/docs/pages/webitel-ui/components/wt-app-header/examples/example-header-actions.vue b/docs/pages/webitel-ui/components/wt-app-header/examples/example-header-actions.vue index 742537bfc..2976f945d 100644 --- a/docs/pages/webitel-ui/components/wt-app-header/examples/example-header-actions.vue +++ b/docs/pages/webitel-ui/components/wt-app-header/examples/example-header-actions.vue @@ -19,6 +19,4 @@ const buildInfo = { - + diff --git a/docs/pages/webitel-ui/components/wt-app-header/wt-app-header-docs.vue b/docs/pages/webitel-ui/components/wt-app-header/wt-app-header-docs.vue index f5d85cd4f..0c5f4cfc7 100644 --- a/docs/pages/webitel-ui/components/wt-app-header/wt-app-header-docs.vue +++ b/docs/pages/webitel-ui/components/wt-app-header/wt-app-header-docs.vue @@ -2,24 +2,16 @@

App Header

- +

App Navigator

- +

Header Actions

- - + +
@@ -62,7 +54,7 @@ export default { }, { value: 'buildInfo', - code: '', + code: "", type: 'Object', description: `Build info object. Should have "release" and "build" string fields for representation.`, @@ -85,6 +77,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/components/wt-avatar/Readme.md b/docs/pages/webitel-ui/components/wt-avatar/Readme.md index a5938870b..eded77775 100644 --- a/docs/pages/webitel-ui/components/wt-avatar/Readme.md +++ b/docs/pages/webitel-ui/components/wt-avatar/Readme.md @@ -7,11 +7,13 @@ import ExampleAvatarWithStatus from './examples/example-avatar-with-status.vue'; # WtAvatar ## Props + ::: raw ::: ## Example Avatar Letters + ::: raw ::: @@ -21,6 +23,7 @@ import ExampleAvatarWithStatus from './examples/example-avatar-with-status.vue'; ::: ## Example Avatar With Status + ::: raw ::: @@ -28,4 +31,3 @@ import ExampleAvatarWithStatus from './examples/example-avatar-with-status.vue'; ::: details Code <<< ./examples/example-avatar-with-status.vue ::: - diff --git a/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-letters.vue b/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-letters.vue index ee0b6b9f1..97e5ac97f 100644 --- a/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-letters.vue +++ b/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-letters.vue @@ -1,17 +1,9 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-with-status.vue b/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-with-status.vue index 3a5efec50..238d51570 100644 --- a/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-with-status.vue +++ b/docs/pages/webitel-ui/components/wt-avatar/examples/example-avatar-with-status.vue @@ -4,7 +4,7 @@ import pic from './pic.jpg'; - + diff --git a/docs/pages/webitel-ui/components/wt-avatar/wt-avatar-docs.vue b/docs/pages/webitel-ui/components/wt-avatar/wt-avatar-docs.vue index 23ec34ec5..665627f66 100644 --- a/docs/pages/webitel-ui/components/wt-avatar/wt-avatar-docs.vue +++ b/docs/pages/webitel-ui/components/wt-avatar/wt-avatar-docs.vue @@ -1,7 +1,5 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-checkbox/Readme.md b/docs/pages/webitel-ui/components/wt-checkbox/Readme.md index 61ed19637..619bdb80b 100644 --- a/docs/pages/webitel-ui/components/wt-checkbox/Readme.md +++ b/docs/pages/webitel-ui/components/wt-checkbox/Readme.md @@ -8,11 +8,13 @@ import ExampleMultipleCheckboxes from './examples/example-multiple-checkboxes.vu # WtCheckbox ## Props + ::: raw ::: ## Example Checkbox + ::: raw ::: @@ -22,6 +24,7 @@ import ExampleMultipleCheckboxes from './examples/example-multiple-checkboxes.vu ::: ## Example Disabled Checkbox + ::: raw ::: @@ -31,6 +34,7 @@ import ExampleMultipleCheckboxes from './examples/example-multiple-checkboxes.vu ::: ## Example Multiple Checkboxes + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-checkbox/examples/example-checkbox.vue b/docs/pages/webitel-ui/components/wt-checkbox/examples/example-checkbox.vue index a14360131..92b866c70 100644 --- a/docs/pages/webitel-ui/components/wt-checkbox/examples/example-checkbox.vue +++ b/docs/pages/webitel-ui/components/wt-checkbox/examples/example-checkbox.vue @@ -12,6 +12,4 @@ const selected = ref(false); /> - + diff --git a/docs/pages/webitel-ui/components/wt-checkbox/examples/example-disabled-checkbox.vue b/docs/pages/webitel-ui/components/wt-checkbox/examples/example-disabled-checkbox.vue index 44356ffd3..c2486853e 100644 --- a/docs/pages/webitel-ui/components/wt-checkbox/examples/example-disabled-checkbox.vue +++ b/docs/pages/webitel-ui/components/wt-checkbox/examples/example-disabled-checkbox.vue @@ -12,6 +12,4 @@ const selected = ref(true); /> - + diff --git a/docs/pages/webitel-ui/components/wt-checkbox/examples/example-multiple-checkboxes.vue b/docs/pages/webitel-ui/components/wt-checkbox/examples/example-multiple-checkboxes.vue index 622ca0b41..39fa03c18 100644 --- a/docs/pages/webitel-ui/components/wt-checkbox/examples/example-multiple-checkboxes.vue +++ b/docs/pages/webitel-ui/components/wt-checkbox/examples/example-multiple-checkboxes.vue @@ -20,6 +20,4 @@ const selectedList = ref([options[0]]); /> - + diff --git a/docs/pages/webitel-ui/components/wt-checkbox/wt-checkbox-docs.vue b/docs/pages/webitel-ui/components/wt-checkbox/wt-checkbox-docs.vue index e56fe546f..9eeaebf28 100644 --- a/docs/pages/webitel-ui/components/wt-checkbox/wt-checkbox-docs.vue +++ b/docs/pages/webitel-ui/components/wt-checkbox/wt-checkbox-docs.vue @@ -3,15 +3,9 @@ event="change" prop="selected" /> - - - + + + - + diff --git a/docs/pages/webitel-ui/components/wt-chip/Readme.md b/docs/pages/webitel-ui/components/wt-chip/Readme.md index fd560a4f6..72955422e 100644 --- a/docs/pages/webitel-ui/components/wt-chip/Readme.md +++ b/docs/pages/webitel-ui/components/wt-chip/Readme.md @@ -8,11 +8,13 @@ import ExampleChipWithExtendedStyle from './examples/example-chip-with-extended- # WtChip ## Props + ::: raw ::: ## Example Chip + ::: raw ::: @@ -22,6 +24,7 @@ import ExampleChipWithExtendedStyle from './examples/example-chip-with-extended- ::: ## Example Chip with different colors + ::: raw ::: @@ -31,7 +34,9 @@ import ExampleChipWithExtendedStyle from './examples/example-chip-with-extended- ::: ## Example Chip with extended style + ### Chip style can be extended and re-used on any element + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-different-colors.vue b/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-different-colors.vue index 988a371e6..4bdd033a7 100644 --- a/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-different-colors.vue +++ b/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-different-colors.vue @@ -1,25 +1,24 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-with-extended-style.vue b/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-with-extended-style.vue index 89c76694b..f5d4aafdd 100644 --- a/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-with-extended-style.vue +++ b/docs/pages/webitel-ui/components/wt-chip/examples/example-chip-with-extended-style.vue @@ -1,13 +1,12 @@ - + + diff --git a/docs/pages/webitel-ui/components/wt-chip/wt-chip-docs.vue b/docs/pages/webitel-ui/components/wt-chip/wt-chip-docs.vue index 37a7db619..517dec678 100644 --- a/docs/pages/webitel-ui/components/wt-chip/wt-chip-docs.vue +++ b/docs/pages/webitel-ui/components/wt-chip/wt-chip-docs.vue @@ -1,7 +1,5 @@ @@ -16,7 +14,16 @@ export default { value: 'color', code: '', type: 'String', - options: ['main', 'outline', 'accent', 'secondary', 'secondary-50', 'success', 'danger', 'transfer'], + options: [ + 'main', + 'outline', + 'accent', + 'secondary', + 'secondary-50', + 'success', + 'danger', + 'transfer', + ], default: 'main', description: '"main" and "outline" are chip-specific colors', }, @@ -28,6 +35,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/components/wt-confirm-dialog/Readme.md b/docs/pages/webitel-ui/components/wt-confirm-dialog/Readme.md index 956f2d388..c5fad793e 100644 --- a/docs/pages/webitel-ui/components/wt-confirm-dialog/Readme.md +++ b/docs/pages/webitel-ui/components/wt-confirm-dialog/Readme.md @@ -7,9 +7,11 @@ import ExampleDeleteDialog from './examples/example-delete-dialog.vue'; # WtConfirmDialog ## Specs + ## Confirm delete dialog + ::: raw ::: @@ -19,6 +21,7 @@ import ExampleDeleteDialog from './examples/example-delete-dialog.vue'; ::: ## Table Confirm delete dialog + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-confirm-dialog/component-specs.vue b/docs/pages/webitel-ui/components/wt-confirm-dialog/component-specs.vue index dc66cb0df..f50b866e9 100644 --- a/docs/pages/webitel-ui/components/wt-confirm-dialog/component-specs.vue +++ b/docs/pages/webitel-ui/components/wt-confirm-dialog/component-specs.vue @@ -1,12 +1,9 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-confirm-dialog/examples/example-delete-dialog.vue b/docs/pages/webitel-ui/components/wt-confirm-dialog/examples/example-delete-dialog.vue index 41f046e67..b107319ab 100644 --- a/docs/pages/webitel-ui/components/wt-confirm-dialog/examples/example-delete-dialog.vue +++ b/docs/pages/webitel-ui/components/wt-confirm-dialog/examples/example-delete-dialog.vue @@ -1,13 +1,15 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-image/examples/example-image-sizes.vue b/docs/pages/webitel-ui/components/wt-image/examples/example-image-sizes.vue index 5b23d7216..6a808638e 100644 --- a/docs/pages/webitel-ui/components/wt-image/examples/example-image-sizes.vue +++ b/docs/pages/webitel-ui/components/wt-image/examples/example-image-sizes.vue @@ -1,8 +1,11 @@ diff --git a/docs/pages/webitel-ui/components/wt-input/examples/example-invalid-input.vue b/docs/pages/webitel-ui/components/wt-input/examples/example-invalid-input.vue index 03a7b76cc..5c1ee0ea2 100644 --- a/docs/pages/webitel-ui/components/wt-input/examples/example-invalid-input.vue +++ b/docs/pages/webitel-ui/components/wt-input/examples/example-invalid-input.vue @@ -13,11 +13,14 @@ import { useVuelidate } from '@vuelidate/core'; const value = ref('invalid value'); -const v$ = useVuelidate(computed(() => ({ - value: { - required: () => false, - }, -})), { value }); +const v$ = useVuelidate( + computed(() => ({ + value: { + required: () => false, + }, + })), + { value }, +); v$.value.$touch(); diff --git a/docs/pages/webitel-ui/components/wt-input/wt-input-docs.vue b/docs/pages/webitel-ui/components/wt-input/wt-input-docs.vue index a01297eca..712e2b7a8 100644 --- a/docs/pages/webitel-ui/components/wt-input/wt-input-docs.vue +++ b/docs/pages/webitel-ui/components/wt-input/wt-input-docs.vue @@ -1,137 +1,137 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-item-link/Readme.md b/docs/pages/webitel-ui/components/wt-item-link/Readme.md index e64519dfb..1f53235f5 100644 --- a/docs/pages/webitel-ui/components/wt-item-link/Readme.md +++ b/docs/pages/webitel-ui/components/wt-item-link/Readme.md @@ -5,6 +5,7 @@ import Specs from './component-specs.vue'; # WtItemLink ## Specs + ## Example Item Link diff --git a/docs/pages/webitel-ui/components/wt-item-link/component-specs.vue b/docs/pages/webitel-ui/components/wt-item-link/component-specs.vue index 57f98181e..b5db8881d 100644 --- a/docs/pages/webitel-ui/components/wt-item-link/component-specs.vue +++ b/docs/pages/webitel-ui/components/wt-item-link/component-specs.vue @@ -1,12 +1,9 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-item-link/examples/example-item-link.vue b/docs/pages/webitel-ui/components/wt-item-link/examples/example-item-link.vue index 2841fdd40..36d7f0d13 100644 --- a/docs/pages/webitel-ui/components/wt-item-link/examples/example-item-link.vue +++ b/docs/pages/webitel-ui/components/wt-item-link/examples/example-item-link.vue @@ -1,16 +1,12 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-label/Readme.md b/docs/pages/webitel-ui/components/wt-label/Readme.md index e5ddbf84c..f2fdf2aed 100644 --- a/docs/pages/webitel-ui/components/wt-label/Readme.md +++ b/docs/pages/webitel-ui/components/wt-label/Readme.md @@ -9,11 +9,13 @@ import ExampleHintedLabel from './examples/example-hinted-label.vue'; # WtLabel ## Props + ::: raw ::: ## Example label + ::: raw ::: @@ -21,7 +23,9 @@ import ExampleHintedLabel from './examples/example-hinted-label.vue'; ::: details Code <<< ./examples/example-label.vue ::: + ## Error label + ::: raw ::: @@ -31,6 +35,7 @@ import ExampleHintedLabel from './examples/example-hinted-label.vue'; ::: ## Disabled label + ::: raw ::: @@ -40,6 +45,7 @@ import ExampleHintedLabel from './examples/example-hinted-label.vue'; ::: ## Hinted label + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-label/examples/example-disabled-label.vue b/docs/pages/webitel-ui/components/wt-label/examples/example-disabled-label.vue index a4f2eb507..96c9b9aa8 100644 --- a/docs/pages/webitel-ui/components/wt-label/examples/example-disabled-label.vue +++ b/docs/pages/webitel-ui/components/wt-label/examples/example-disabled-label.vue @@ -1,15 +1,7 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-label/examples/example-error-label.vue b/docs/pages/webitel-ui/components/wt-label/examples/example-error-label.vue index 09123003c..2007ddc25 100644 --- a/docs/pages/webitel-ui/components/wt-label/examples/example-error-label.vue +++ b/docs/pages/webitel-ui/components/wt-label/examples/example-error-label.vue @@ -1,15 +1,7 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-label/examples/example-hinted-label.vue b/docs/pages/webitel-ui/components/wt-label/examples/example-hinted-label.vue index b5c9bfd35..b3568a528 100644 --- a/docs/pages/webitel-ui/components/wt-label/examples/example-hinted-label.vue +++ b/docs/pages/webitel-ui/components/wt-label/examples/example-hinted-label.vue @@ -1,15 +1,7 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-label/examples/example-label.vue b/docs/pages/webitel-ui/components/wt-label/examples/example-label.vue index 97e20cf60..8a0232e92 100644 --- a/docs/pages/webitel-ui/components/wt-label/examples/example-label.vue +++ b/docs/pages/webitel-ui/components/wt-label/examples/example-label.vue @@ -1,13 +1,7 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-label/wt-label-docs.vue b/docs/pages/webitel-ui/components/wt-label/wt-label-docs.vue index 2233d3466..6e2124715 100644 --- a/docs/pages/webitel-ui/components/wt-label/wt-label-docs.vue +++ b/docs/pages/webitel-ui/components/wt-label/wt-label-docs.vue @@ -1,59 +1,56 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-load-bar/Readme.md b/docs/pages/webitel-ui/components/wt-load-bar/Readme.md index 3e4e40d53..9e5e5eea3 100644 --- a/docs/pages/webitel-ui/components/wt-load-bar/Readme.md +++ b/docs/pages/webitel-ui/components/wt-load-bar/Readme.md @@ -6,11 +6,13 @@ import ExampleLoadBar from './examples/example-load-bar.vue'; # WtLoadBar ## Props + ::: raw ::: ## Example Load Bar + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-load-bar/examples/example-load-bar.vue b/docs/pages/webitel-ui/components/wt-load-bar/examples/example-load-bar.vue index 6d4fc2c3e..bd4e8dbd5 100644 --- a/docs/pages/webitel-ui/components/wt-load-bar/examples/example-load-bar.vue +++ b/docs/pages/webitel-ui/components/wt-load-bar/examples/example-load-bar.vue @@ -1,6 +1,4 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-load-bar/wt-load-bar-docs.vue b/docs/pages/webitel-ui/components/wt-load-bar/wt-load-bar-docs.vue index 74864ddf8..8cf44f61f 100644 --- a/docs/pages/webitel-ui/components/wt-load-bar/wt-load-bar-docs.vue +++ b/docs/pages/webitel-ui/components/wt-load-bar/wt-load-bar-docs.vue @@ -1,7 +1,5 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-loader/Readme.md b/docs/pages/webitel-ui/components/wt-loader/Readme.md index a72a401ce..62703751d 100644 --- a/docs/pages/webitel-ui/components/wt-loader/Readme.md +++ b/docs/pages/webitel-ui/components/wt-loader/Readme.md @@ -7,11 +7,13 @@ import ExampleSmLoaderDifferentColors from './examples/example-sm-loader-differe # WtLoader ## Props + ::: raw ::: ## Example Loader Different Sizes + ::: raw ::: @@ -21,6 +23,7 @@ import ExampleSmLoaderDifferentColors from './examples/example-sm-loader-differe ::: ## Example Sm Loader Different Colors + ::: raw ::: @@ -28,4 +31,3 @@ import ExampleSmLoaderDifferentColors from './examples/example-sm-loader-differe ::: details Code <<< ./examples/example-sm-loader-different-colors.vue ::: - diff --git a/docs/pages/webitel-ui/components/wt-loader/examples/example-loader-different-sizes.vue b/docs/pages/webitel-ui/components/wt-loader/examples/example-loader-different-sizes.vue index 4174d920d..878d5a697 100644 --- a/docs/pages/webitel-ui/components/wt-loader/examples/example-loader-different-sizes.vue +++ b/docs/pages/webitel-ui/components/wt-loader/examples/example-loader-different-sizes.vue @@ -1,12 +1,8 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-loader/examples/example-sm-loader-different-colors.vue b/docs/pages/webitel-ui/components/wt-loader/examples/example-sm-loader-different-colors.vue index 11f9f49e8..d415c51bf 100644 --- a/docs/pages/webitel-ui/components/wt-loader/examples/example-sm-loader-different-colors.vue +++ b/docs/pages/webitel-ui/components/wt-loader/examples/example-sm-loader-different-colors.vue @@ -1,10 +1,5 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-loader/wt-loader-docs.vue b/docs/pages/webitel-ui/components/wt-loader/wt-loader-docs.vue index 98935e82c..8d3181f9a 100644 --- a/docs/pages/webitel-ui/components/wt-loader/wt-loader-docs.vue +++ b/docs/pages/webitel-ui/components/wt-loader/wt-loader-docs.vue @@ -1,7 +1,5 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-logo/Readme.md b/docs/pages/webitel-ui/components/wt-logo/Readme.md index 3faeb7921..5729fdd3b 100644 --- a/docs/pages/webitel-ui/components/wt-logo/Readme.md +++ b/docs/pages/webitel-ui/components/wt-logo/Readme.md @@ -7,17 +7,19 @@ import ExampleLogo from './examples/example-logo.vue'; ## Props | Prop | Type | Default | Description | -|-----------|---------|---------|---------------------------------------| +| --------- | ------- | ------- | ------------------------------------- | | dark-mode | Boolean | false | changes logo depending on color theme | ## Examples ::: raw -::: +::: ::: details Code <<< ./examples/example-logo.vue ::: + ``` +``` diff --git a/docs/pages/webitel-ui/components/wt-logo/examples/example-logo.vue b/docs/pages/webitel-ui/components/wt-logo/examples/example-logo.vue index 93a55cd00..310e1f991 100644 --- a/docs/pages/webitel-ui/components/wt-logo/examples/example-logo.vue +++ b/docs/pages/webitel-ui/components/wt-logo/examples/example-logo.vue @@ -1,12 +1,8 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-navigation-bar/Readme.md b/docs/pages/webitel-ui/components/wt-navigation-bar/Readme.md index 8b69bd6f9..7442c32db 100644 --- a/docs/pages/webitel-ui/components/wt-navigation-bar/Readme.md +++ b/docs/pages/webitel-ui/components/wt-navigation-bar/Readme.md @@ -6,11 +6,13 @@ import ExampleNavigationBar from './examples/example-navigation-bar.vue'; # WtNavigationBar ## Props + ::: raw ::: ## Example NavigationBar + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-navigation-bar/examples/example-navigation-bar.vue b/docs/pages/webitel-ui/components/wt-navigation-bar/examples/example-navigation-bar.vue index 322e1d36e..4b823ffc5 100644 --- a/docs/pages/webitel-ui/components/wt-navigation-bar/examples/example-navigation-bar.vue +++ b/docs/pages/webitel-ui/components/wt-navigation-bar/examples/example-navigation-bar.vue @@ -4,13 +4,17 @@ const currentApp = 'history'; const nav = [ { value: '1', name: 'Name 1', route: '/1' }, { - value: 'exp1', name: 'Expansion 1', subNav: [ + value: 'exp1', + name: 'Expansion 1', + subNav: [ { value: '2', name: 'Name 2', route: '/2' }, { value: '3', name: 'Name 3', route: '/3' }, ], }, { - value: 'exp2', name: 'Expansion 2', subNav: [ + value: 'exp2', + name: 'Expansion 2', + subNav: [ { value: '4', name: 'Name 4', route: '/4' }, { value: '5', name: 'Name 5', route: '/5' }, ], diff --git a/docs/pages/webitel-ui/components/wt-navigation-bar/wt-navigation-bar-docs.vue b/docs/pages/webitel-ui/components/wt-navigation-bar/wt-navigation-bar-docs.vue index 552991cc3..87d3f9fc5 100644 --- a/docs/pages/webitel-ui/components/wt-navigation-bar/wt-navigation-bar-docs.vue +++ b/docs/pages/webitel-ui/components/wt-navigation-bar/wt-navigation-bar-docs.vue @@ -1,7 +1,5 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-notification/Readme.md b/docs/pages/webitel-ui/components/wt-notification/Readme.md index 73ea42d10..15faed48b 100644 --- a/docs/pages/webitel-ui/components/wt-notification/Readme.md +++ b/docs/pages/webitel-ui/components/wt-notification/Readme.md @@ -7,13 +7,13 @@ import ExampleNotification from './examples/example-notification.vue'; ## Props | Prop | Type | Default | Code | Description | Options | -|------|--------|---------|------------------------------------------------------|-------------|-------------------------------| +| ---- | ------ | ------- | ---------------------------------------------------- | ----------- | ----------------------------- | | type | String | success | `` | | info, error, warning, success | ## Events | Value | Params | Description | -|-------|--------|-------------| +| ----- | ------ | ----------- | | close | | | ## Example Notification diff --git a/docs/pages/webitel-ui/components/wt-notification/examples/example-notification.vue b/docs/pages/webitel-ui/components/wt-notification/examples/example-notification.vue index 615cfa31d..0ae5c35f6 100644 --- a/docs/pages/webitel-ui/components/wt-notification/examples/example-notification.vue +++ b/docs/pages/webitel-ui/components/wt-notification/examples/example-notification.vue @@ -1,14 +1,10 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-notifications-bar/Readme.md b/docs/pages/webitel-ui/components/wt-notifications-bar/Readme.md index 00ce911ac..4621d75cc 100644 --- a/docs/pages/webitel-ui/components/wt-notifications-bar/Readme.md +++ b/docs/pages/webitel-ui/components/wt-notifications-bar/Readme.md @@ -5,26 +5,32 @@ import ExampleNotificationsBar from './examples/example-notifications-bar.vue'; # WtNotificationsBar ## Code + <wt-notifications-bar></wt-notifications-bar> ## Specification + Notification bar listens to eventBus 'notification' event and represents sent notifications using wt-notification component. 'notification' events should have the following format: + ```json { "type": "success", "message": "Notification message", - "timeout": 4000, //not required, default 4000ms + "timeout": 4000 //not required, default 4000ms } ``` + If 'timeout' is not specified notifications-bar message will be discarded after 4s. ## Important + Notifications bar won't work without eventBus, registered in plugin (check "Quick start" page). ## Example Notifications bar + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-notifications-bar/examples/example-notifications-bar.vue b/docs/pages/webitel-ui/components/wt-notifications-bar/examples/example-notifications-bar.vue index 7054eaf74..cabed46f9 100644 --- a/docs/pages/webitel-ui/components/wt-notifications-bar/examples/example-notifications-bar.vue +++ b/docs/pages/webitel-ui/components/wt-notifications-bar/examples/example-notifications-bar.vue @@ -10,21 +10,18 @@ function sendNotification(type) { - + diff --git a/docs/pages/webitel-ui/components/wt-page-header/Readme.md b/docs/pages/webitel-ui/components/wt-page-header/Readme.md index 6eec2b277..7e572bea0 100644 --- a/docs/pages/webitel-ui/components/wt-page-header/Readme.md +++ b/docs/pages/webitel-ui/components/wt-page-header/Readme.md @@ -6,11 +6,13 @@ import ExamplePageHeader from './examples/example-page-header.vue'; # WtPageHeader ## Props + ::: raw ::: ## Example Page Header + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-page-header/examples/example-page-header.vue b/docs/pages/webitel-ui/components/wt-page-header/examples/example-page-header.vue index 7673f6af0..2f5400465 100644 --- a/docs/pages/webitel-ui/components/wt-page-header/examples/example-page-header.vue +++ b/docs/pages/webitel-ui/components/wt-page-header/examples/example-page-header.vue @@ -1,17 +1,9 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-page-header/wt-page-header-docs.vue b/docs/pages/webitel-ui/components/wt-page-header/wt-page-header-docs.vue index 331f354d3..82b8e54f6 100644 --- a/docs/pages/webitel-ui/components/wt-page-header/wt-page-header-docs.vue +++ b/docs/pages/webitel-ui/components/wt-page-header/wt-page-header-docs.vue @@ -1,11 +1,6 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-page-wrapper/Readme.md b/docs/pages/webitel-ui/components/wt-page-wrapper/Readme.md index 6fbb094cc..aecc6bb5e 100644 --- a/docs/pages/webitel-ui/components/wt-page-wrapper/Readme.md +++ b/docs/pages/webitel-ui/components/wt-page-wrapper/Readme.md @@ -6,11 +6,13 @@ import ExamplePageWrapper from './examples/example-page-wrapper.vue'; # WtPageWrapper ## Props + ::: raw ::: ## Example Page Wrapper + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-page-wrapper/examples/example-page-wrapper.vue b/docs/pages/webitel-ui/components/wt-page-wrapper/examples/example-page-wrapper.vue index dbb60066d..5dcc71c24 100644 --- a/docs/pages/webitel-ui/components/wt-page-wrapper/examples/example-page-wrapper.vue +++ b/docs/pages/webitel-ui/components/wt-page-wrapper/examples/example-page-wrapper.vue @@ -1,21 +1,17 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-page-wrapper/wt-page-wrapper-docs.vue b/docs/pages/webitel-ui/components/wt-page-wrapper/wt-page-wrapper-docs.vue index 56cb66e69..2fd2de5e7 100644 --- a/docs/pages/webitel-ui/components/wt-page-wrapper/wt-page-wrapper-docs.vue +++ b/docs/pages/webitel-ui/components/wt-page-wrapper/wt-page-wrapper-docs.vue @@ -1,10 +1,6 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-pagination/Readme.md b/docs/pages/webitel-ui/components/wt-pagination/Readme.md index e1c782513..b0368e1e0 100644 --- a/docs/pages/webitel-ui/components/wt-pagination/Readme.md +++ b/docs/pages/webitel-ui/components/wt-pagination/Readme.md @@ -6,11 +6,13 @@ import ExamplePagination from './examples/example-pagination.vue'; # WtPagination ## Props + ::: raw ::: ## Example Pagination + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-pagination/examples/example-pagination.vue b/docs/pages/webitel-ui/components/wt-pagination/examples/example-pagination.vue index c6a32892f..37212d32c 100644 --- a/docs/pages/webitel-ui/components/wt-pagination/examples/example-pagination.vue +++ b/docs/pages/webitel-ui/components/wt-pagination/examples/example-pagination.vue @@ -1,5 +1,4 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-player/Readme.md b/docs/pages/webitel-ui/components/wt-player/Readme.md index 303cda534..ad62d7dee 100644 --- a/docs/pages/webitel-ui/components/wt-player/Readme.md +++ b/docs/pages/webitel-ui/components/wt-player/Readme.md @@ -6,11 +6,13 @@ import ExamplePlayer from './examples/example-player.vue'; # WtPlayer ## Props + ::: raw ::: ## Example Player + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-player/examples/example-player.vue b/docs/pages/webitel-ui/components/wt-player/examples/example-player.vue index e48cc0ad8..5bed7cea0 100644 --- a/docs/pages/webitel-ui/components/wt-player/examples/example-player.vue +++ b/docs/pages/webitel-ui/components/wt-player/examples/example-player.vue @@ -1,18 +1,17 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-player/wt-player-docs.vue b/docs/pages/webitel-ui/components/wt-player/wt-player-docs.vue index 012b3f8ae..472ae441a 100644 --- a/docs/pages/webitel-ui/components/wt-player/wt-player-docs.vue +++ b/docs/pages/webitel-ui/components/wt-player/wt-player-docs.vue @@ -1,14 +1,19 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-popup/Readme.md b/docs/pages/webitel-ui/components/wt-popup/Readme.md index a982a9476..ba888d03b 100644 --- a/docs/pages/webitel-ui/components/wt-popup/Readme.md +++ b/docs/pages/webitel-ui/components/wt-popup/Readme.md @@ -6,9 +6,11 @@ import ExamplePopup from './examples/example-popup.vue'; # WtPopup ## Specs + ## Example Popup + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-popup/component-specs.vue b/docs/pages/webitel-ui/components/wt-popup/component-specs.vue index fbe0d855e..183e3a10e 100644 --- a/docs/pages/webitel-ui/components/wt-popup/component-specs.vue +++ b/docs/pages/webitel-ui/components/wt-popup/component-specs.vue @@ -1,12 +1,9 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-popup/examples/example-popup.vue b/docs/pages/webitel-ui/components/wt-popup/examples/example-popup.vue index 4cac99bdf..48da089cc 100644 --- a/docs/pages/webitel-ui/components/wt-popup/examples/example-popup.vue +++ b/docs/pages/webitel-ui/components/wt-popup/examples/example-popup.vue @@ -5,26 +5,20 @@ const isPopup = ref(false); - + diff --git a/docs/pages/webitel-ui/components/wt-search-bar/examples/example-search-bar-with-search-modes.vue b/docs/pages/webitel-ui/components/wt-search-bar/examples/example-search-bar-with-search-modes.vue index 73a0998e8..8eccdd0be 100644 --- a/docs/pages/webitel-ui/components/wt-search-bar/examples/example-search-bar-with-search-modes.vue +++ b/docs/pages/webitel-ui/components/wt-search-bar/examples/example-search-bar-with-search-modes.vue @@ -1,5 +1,4 @@ # WtSelect @@ -13,7 +14,7 @@ import ExampleCustomValuesSelect from './examples/example-custom-values-select.v ## Props | Prop | Type | Default | Code | Description | -|-------------------|----------|-------------|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| ----------------- | -------- | ----------- | -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | value | Any | | `` | | | options | Array | [] | `` | | | label | String | '' | `` | | @@ -34,7 +35,7 @@ import ExampleCustomValuesSelect from './examples/example-custom-values-select.v ## Events | Value | Params | Description | -|--------------|------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------| +| ------------ | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | input | `[{ name: 'value', type: ['String', 'Array'] }]` | | | reset | `[{ name: 'value', type: '[\'String\', \'Array\', \'Object\'] -- depends on value prop datatype' }]` | Emitted on "reset" icon click, along with "input" (input is emitted first) event with empty value | | closed | | | @@ -45,7 +46,7 @@ import ExampleCustomValuesSelect from './examples/example-custom-values-select.v ## Slots | Name | Scope | Description | -|-------------|----------------------------------------------------------------------------------------------------------------|----------------------------------------| +| ----------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------- | | label | `[{ name: 'label' }]` | Custom label slot | | option | `[{ name: 'option', description: 'option itself' },{ name: 'optionLabel', description: 'optionLabel prop' }]` | Watch vue-multiselect option slot | | singleLabel | `[{ name: 'option', description: 'option itself' },{ name: 'optionLabel', description: 'optionLabel prop' },]` | Watch vue-multiselect singleLabel slot | @@ -102,12 +103,22 @@ import ExampleCustomValuesSelect from './examples/example-custom-values-select.v <<< ./examples/example-custom-values-select.vue ::: +## Example Select With Value From Options By Prop + +::: raw + +::: + +::: details Code +<<< ./examples/example-value-from-options-by-prop-select.vue +::: + ## How to close Select programmatically? [Issue](https://github.com/shentao/vue-multiselect/pull/947/files/05760bd1e92ce53353a1733aee054a996738f181) ```js -closeSelect() +closeSelect(); { this.$refs['wt-select'].$refs['vue-multiselect'].deactivate(); // 'vue-multiselect' ref is always present } diff --git a/docs/pages/webitel-ui/components/wt-select/examples/example-custom-values-select.vue b/docs/pages/webitel-ui/components/wt-select/examples/example-custom-values-select.vue index 608ab7449..82ad7eedb 100644 --- a/docs/pages/webitel-ui/components/wt-select/examples/example-custom-values-select.vue +++ b/docs/pages/webitel-ui/components/wt-select/examples/example-custom-values-select.vue @@ -49,6 +49,4 @@ const singleValue = ref(''); - + diff --git a/docs/pages/webitel-ui/components/wt-select/examples/example-disabled-select.vue b/docs/pages/webitel-ui/components/wt-select/examples/example-disabled-select.vue index 0c28e2033..d9d5c4fee 100644 --- a/docs/pages/webitel-ui/components/wt-select/examples/example-disabled-select.vue +++ b/docs/pages/webitel-ui/components/wt-select/examples/example-disabled-select.vue @@ -37,6 +37,4 @@ const value = ref(options[0]); /> - + diff --git a/docs/pages/webitel-ui/components/wt-select/examples/example-invalid-select.vue b/docs/pages/webitel-ui/components/wt-select/examples/example-invalid-select.vue index 17177db1c..03055a12e 100644 --- a/docs/pages/webitel-ui/components/wt-select/examples/example-invalid-select.vue +++ b/docs/pages/webitel-ui/components/wt-select/examples/example-invalid-select.vue @@ -20,11 +20,14 @@ const options = [ const value = ref(options[0]); const empty = ref(''); -const v$ = useVuelidate(computed(() => ({ - value: { - required: () => false, - }, -})), { value }); +const v$ = useVuelidate( + computed(() => ({ + value: { + required: () => false, + }, + })), + { value }, +); v$.value.$touch(); @@ -47,6 +50,4 @@ v$.value.$touch(); /> - + diff --git a/docs/pages/webitel-ui/components/wt-select/examples/example-multiple-select.vue b/docs/pages/webitel-ui/components/wt-select/examples/example-multiple-select.vue index 949471dd3..5b24cec51 100644 --- a/docs/pages/webitel-ui/components/wt-select/examples/example-multiple-select.vue +++ b/docs/pages/webitel-ui/components/wt-select/examples/example-multiple-select.vue @@ -16,10 +16,7 @@ const options = [ { name: 'Phoenix12', language: 'Elixir' }, ]; -const value = ref([ - options[0], - options[1], -]); +const value = ref([options[0], options[1]]); - + diff --git a/docs/pages/webitel-ui/components/wt-select/examples/example-select.vue b/docs/pages/webitel-ui/components/wt-select/examples/example-select.vue index 24ce64160..f1f1c96e8 100644 --- a/docs/pages/webitel-ui/components/wt-select/examples/example-select.vue +++ b/docs/pages/webitel-ui/components/wt-select/examples/example-select.vue @@ -36,6 +36,4 @@ const empty = ref(''); /> - + diff --git a/docs/pages/webitel-ui/components/wt-select/examples/example-value-from-options-by-prop-select.vue b/docs/pages/webitel-ui/components/wt-select/examples/example-value-from-options-by-prop-select.vue new file mode 100644 index 000000000..53bfc2082 --- /dev/null +++ b/docs/pages/webitel-ui/components/wt-select/examples/example-value-from-options-by-prop-select.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/docs/pages/webitel-ui/components/wt-slider/Readme.md b/docs/pages/webitel-ui/components/wt-slider/Readme.md index d44bec406..420931b90 100644 --- a/docs/pages/webitel-ui/components/wt-slider/Readme.md +++ b/docs/pages/webitel-ui/components/wt-slider/Readme.md @@ -8,11 +8,13 @@ import ExampleVerticalSlider from './examples/example-vertical-slider.vue'; # WtSlider ## Props + ::: raw ::: ## Example Slider + ::: raw ::: @@ -22,6 +24,7 @@ import ExampleVerticalSlider from './examples/example-vertical-slider.vue'; ::: ## Example Disabled Slider + ::: raw ::: @@ -31,6 +34,7 @@ import ExampleVerticalSlider from './examples/example-vertical-slider.vue'; ::: ## Example Vertical Slider + ::: raw ::: @@ -38,4 +42,3 @@ import ExampleVerticalSlider from './examples/example-vertical-slider.vue'; ::: details Code <<< ./examples/example-vertical-slider.vue ::: - diff --git a/docs/pages/webitel-ui/components/wt-slider/examples/example-disabled-slider.vue b/docs/pages/webitel-ui/components/wt-slider/examples/example-disabled-slider.vue index b9203ff1a..6c56de973 100644 --- a/docs/pages/webitel-ui/components/wt-slider/examples/example-disabled-slider.vue +++ b/docs/pages/webitel-ui/components/wt-slider/examples/example-disabled-slider.vue @@ -1,6 +1,4 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-slider/examples/example-slider.vue b/docs/pages/webitel-ui/components/wt-slider/examples/example-slider.vue index 36645862f..c0d180259 100644 --- a/docs/pages/webitel-ui/components/wt-slider/examples/example-slider.vue +++ b/docs/pages/webitel-ui/components/wt-slider/examples/example-slider.vue @@ -14,6 +14,4 @@ const number = ref(70); /> - + diff --git a/docs/pages/webitel-ui/components/wt-slider/examples/example-vertical-slider.vue b/docs/pages/webitel-ui/components/wt-slider/examples/example-vertical-slider.vue index c08b5c7cc..67e5ea67f 100644 --- a/docs/pages/webitel-ui/components/wt-slider/examples/example-vertical-slider.vue +++ b/docs/pages/webitel-ui/components/wt-slider/examples/example-vertical-slider.vue @@ -16,6 +16,4 @@ const number = ref(70); /> - + diff --git a/docs/pages/webitel-ui/components/wt-slider/wt-slider-docs.vue b/docs/pages/webitel-ui/components/wt-slider/wt-slider-docs.vue index 47011e529..7eeb59f84 100644 --- a/docs/pages/webitel-ui/components/wt-slider/wt-slider-docs.vue +++ b/docs/pages/webitel-ui/components/wt-slider/wt-slider-docs.vue @@ -1,11 +1,7 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-status-select/wt-status-select-docs.vue b/docs/pages/webitel-ui/components/wt-status-select/wt-status-select-docs.vue index a77056c8e..1e4411dee 100644 --- a/docs/pages/webitel-ui/components/wt-status-select/wt-status-select-docs.vue +++ b/docs/pages/webitel-ui/components/wt-status-select/wt-status-select-docs.vue @@ -5,8 +5,9 @@ import AgentStatus from '@webitel/ui-sdk/src/enums/AgentStatus/AgentStatus.enum';

- Enumerate with ONLINE ('online'), PAUSE ('pause'), OFFLINE ('offline'), BREAK_OUT ('break_out') values. Used - for agent status identifying and recommended for use in app logic + Enumerate with ONLINE ('online'), PAUSE ('pause'), OFFLINE ('offline'), + BREAK_OUT ('break_out') values. Used for agent status identifying and + recommended for use in app logic

@@ -23,12 +24,8 @@ prop="status" event="change" /> - - + + - + diff --git a/docs/pages/webitel-ui/components/wt-stepper/Readme.md b/docs/pages/webitel-ui/components/wt-stepper/Readme.md index c3092aa45..0cefcfb8c 100644 --- a/docs/pages/webitel-ui/components/wt-stepper/Readme.md +++ b/docs/pages/webitel-ui/components/wt-stepper/Readme.md @@ -6,11 +6,13 @@ import ExampleStepper from './examples/example-stepper.vue'; # WtStepper ## Props + ::: raw ::: ## Example Stepper + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-stepper/examples/example-stepper.vue b/docs/pages/webitel-ui/components/wt-stepper/examples/example-stepper.vue index fb33da5fd..659376aa8 100644 --- a/docs/pages/webitel-ui/components/wt-stepper/examples/example-stepper.vue +++ b/docs/pages/webitel-ui/components/wt-stepper/examples/example-stepper.vue @@ -1,11 +1,7 @@ @@ -16,13 +12,9 @@ const active = ref(1); :steps="steps" /> - + Next step - + diff --git a/docs/pages/webitel-ui/components/wt-stepper/wt-stepper-docs.vue b/docs/pages/webitel-ui/components/wt-stepper/wt-stepper-docs.vue index 9db505249..4814bec67 100644 --- a/docs/pages/webitel-ui/components/wt-stepper/wt-stepper-docs.vue +++ b/docs/pages/webitel-ui/components/wt-stepper/wt-stepper-docs.vue @@ -1,10 +1,6 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-switcher/Readme.md b/docs/pages/webitel-ui/components/wt-switcher/Readme.md index b19108cff..558d816a1 100644 --- a/docs/pages/webitel-ui/components/wt-switcher/Readme.md +++ b/docs/pages/webitel-ui/components/wt-switcher/Readme.md @@ -8,11 +8,13 @@ import ExampleSwitcherLabelLeft from './examples/example-switcher-label-left.vue # WtSwitcher ## Props + ::: raw ::: ## Example Switcher + ::: raw ::: @@ -22,6 +24,7 @@ import ExampleSwitcherLabelLeft from './examples/example-switcher-label-left.vue ::: ## Example Disabled Switcher + ::: raw ::: @@ -31,6 +34,7 @@ import ExampleSwitcherLabelLeft from './examples/example-switcher-label-left.vue ::: ## Example Switcher with Label Left + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-switcher/examples/example-disabled-switcher.vue b/docs/pages/webitel-ui/components/wt-switcher/examples/example-disabled-switcher.vue index 6d5ae0256..7e7016169 100644 --- a/docs/pages/webitel-ui/components/wt-switcher/examples/example-disabled-switcher.vue +++ b/docs/pages/webitel-ui/components/wt-switcher/examples/example-disabled-switcher.vue @@ -1,5 +1,4 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher-label-left.vue b/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher-label-left.vue index bbb85ccce..15f423d6a 100644 --- a/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher-label-left.vue +++ b/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher-label-left.vue @@ -13,6 +13,4 @@ const value = ref(false); /> - + diff --git a/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher.vue b/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher.vue index 98f4766d5..be67ef5ed 100644 --- a/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher.vue +++ b/docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher.vue @@ -12,6 +12,4 @@ const value = ref(false); /> - + diff --git a/docs/pages/webitel-ui/components/wt-switcher/wt-switcher-docs.vue b/docs/pages/webitel-ui/components/wt-switcher/wt-switcher-docs.vue index fb99d0a1a..ea452f8f3 100644 --- a/docs/pages/webitel-ui/components/wt-switcher/wt-switcher-docs.vue +++ b/docs/pages/webitel-ui/components/wt-switcher/wt-switcher-docs.vue @@ -1,16 +1,8 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-table-actions/Readme.md b/docs/pages/webitel-ui/components/wt-table-actions/Readme.md index 1b394a72e..87e3dc35b 100644 --- a/docs/pages/webitel-ui/components/wt-table-actions/Readme.md +++ b/docs/pages/webitel-ui/components/wt-table-actions/Readme.md @@ -8,11 +8,13 @@ > і заюзайте [`wt-actions-bar`](../wt-action-bar/Readme.md). ## Props + ::: raw ::: ## Example Table Actions + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-table-actions/examples/example-table-actions.vue b/docs/pages/webitel-ui/components/wt-table-actions/examples/example-table-actions.vue index 3c47bb6bc..f209ca980 100644 --- a/docs/pages/webitel-ui/components/wt-table-actions/examples/example-table-actions.vue +++ b/docs/pages/webitel-ui/components/wt-table-actions/examples/example-table-actions.vue @@ -4,11 +4,16 @@ const callAlert = (arg) => alert(arg); - + diff --git a/docs/pages/webitel-ui/components/wt-table-actions/wt-table-actions-docs.vue b/docs/pages/webitel-ui/components/wt-table-actions/wt-table-actions-docs.vue index cb95f2876..02da53acc 100644 --- a/docs/pages/webitel-ui/components/wt-table-actions/wt-table-actions-docs.vue +++ b/docs/pages/webitel-ui/components/wt-table-actions/wt-table-actions-docs.vue @@ -1,10 +1,6 @@ @@ -19,8 +15,15 @@ export default { value: 'icons', code: '', type: 'Array', - options: ['import', 'export', 'filter-reset', 'column-select', 'refresh', 'settings'], - default: '[\'refresh\']', + options: [ + 'import', + 'export', + 'filter-reset', + 'column-select', + 'refresh', + 'settings', + ], + default: "['refresh']", }, ], events: [ @@ -41,5 +44,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/components/wt-table-column-select/Readme.md b/docs/pages/webitel-ui/components/wt-table-column-select/Readme.md index 98638c42e..adfa24d00 100644 --- a/docs/pages/webitel-ui/components/wt-table-column-select/Readme.md +++ b/docs/pages/webitel-ui/components/wt-table-column-select/Readme.md @@ -6,11 +6,13 @@ import ExampleTableColumnSelect from './examples/example-table-column-select.vue # WtTableColumnSelect ## Props + ::: raw ::: ## Example Table Column Select + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-table-column-select/examples/example-table-column-select.vue b/docs/pages/webitel-ui/components/wt-table-column-select/examples/example-table-column-select.vue index 52ab32944..e3d2a5cd4 100644 --- a/docs/pages/webitel-ui/components/wt-table-column-select/examples/example-table-column-select.vue +++ b/docs/pages/webitel-ui/components/wt-table-column-select/examples/example-table-column-select.vue @@ -22,6 +22,4 @@ const headers = ref([ /> - + diff --git a/docs/pages/webitel-ui/components/wt-table-column-select/wt-table-column-select-docs.vue b/docs/pages/webitel-ui/components/wt-table-column-select/wt-table-column-select-docs.vue index 9e33d2d1f..74f7e01b8 100644 --- a/docs/pages/webitel-ui/components/wt-table-column-select/wt-table-column-select-docs.vue +++ b/docs/pages/webitel-ui/components/wt-table-column-select/wt-table-column-select-docs.vue @@ -3,12 +3,8 @@ event="change" prop="headers" /> - - + + - + diff --git a/docs/pages/webitel-ui/components/wt-table/Readme.md b/docs/pages/webitel-ui/components/wt-table/Readme.md index a62dc0565..123c0f8c6 100644 --- a/docs/pages/webitel-ui/components/wt-table/Readme.md +++ b/docs/pages/webitel-ui/components/wt-table/Readme.md @@ -6,9 +6,11 @@ import Specs from './component-specs.vue'; # WtTable ## Specs + ## Example Table + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-table/component-specs.vue b/docs/pages/webitel-ui/components/wt-table/component-specs.vue index c382adcc8..9cc68a1df 100644 --- a/docs/pages/webitel-ui/components/wt-table/component-specs.vue +++ b/docs/pages/webitel-ui/components/wt-table/component-specs.vue @@ -1,12 +1,9 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-table/examples/example-table.vue b/docs/pages/webitel-ui/components/wt-table/examples/example-table.vue index c6f44eb16..48a04f668 100644 --- a/docs/pages/webitel-ui/components/wt-table/examples/example-table.vue +++ b/docs/pages/webitel-ui/components/wt-table/examples/example-table.vue @@ -52,6 +52,4 @@ const data = [ /> - + diff --git a/docs/pages/webitel-ui/components/wt-tabs/Readme.md b/docs/pages/webitel-ui/components/wt-tabs/Readme.md index 68546670a..4b20df684 100644 --- a/docs/pages/webitel-ui/components/wt-tabs/Readme.md +++ b/docs/pages/webitel-ui/components/wt-tabs/Readme.md @@ -8,20 +8,20 @@ import ExampleWideTabs from './examples/example-wide-tabs.vue'; ## Props | Name | Type | Default | Description | -|---------|----------|---------|-----------------------------------------------| +| ------- | -------- | ------- | --------------------------------------------- | | current | `Object` | `{}` | The value of the selected tab | | tabs | `Array` | `[]` | The list of tabs. Tracked by `value` property | ## Events | Name | Params | Description | -|--------|-----------------|--------------------------------------| +| ------ | --------------- | ------------------------------------ | | change | `tab`: `Object` | Returns tab object from list of tabs | ## Slots -| Name | Scope | Description | -|--------------|--------------------|--------------------------------------------------------------------------| +| Name | Scope | Description | +| ------------ | ------------------ | -------------------------------------------------------------------------- | | `:tab-value` | `{ tab, current }` | Override tab contents with passed tab from `tabs` object and `current` tab | ## Example Tabs diff --git a/docs/pages/webitel-ui/components/wt-tabs/examples/example-tabs.vue b/docs/pages/webitel-ui/components/wt-tabs/examples/example-tabs.vue index fb89a5710..f8df8f9d9 100644 --- a/docs/pages/webitel-ui/components/wt-tabs/examples/example-tabs.vue +++ b/docs/pages/webitel-ui/components/wt-tabs/examples/example-tabs.vue @@ -1,5 +1,5 @@ - # WtTagsInput ### This component is built on top of [Vue Multiselect](https://vue-multiselect.js.org/), like wt-select component. + **There will be described only differences from wt-select component. Same props, events and slots are listed on wt-select page. For more information, see WtSelect Docs** ## Props + ::: raw ::: ## Example Tags Input + ::: raw ::: @@ -28,6 +30,7 @@ For more information, see WtSelect Docs** ::: ## Example Taggable Tags Input + ::: raw ::: @@ -37,6 +40,7 @@ For more information, see WtSelect Docs** ::: ## Example Disabled Tags Input + ::: raw ::: @@ -46,6 +50,7 @@ For more information, see WtSelect Docs** ::: ## Example Invalid Tags Input + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-disabled-tags-input.vue b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-disabled-tags-input.vue index 4ad5f31bd..5f342075b 100644 --- a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-disabled-tags-input.vue +++ b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-disabled-tags-input.vue @@ -7,10 +7,7 @@ const autocomplete = [ { name: 'Rails', language: 'Ruby' }, ]; -const value = ref([ - autocomplete[0], - autocomplete[1], -]); +const value = ref([autocomplete[0], autocomplete[1]]); - + diff --git a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-invalid-tags-input.vue b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-invalid-tags-input.vue index 5a3791b15..cc06f17bf 100644 --- a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-invalid-tags-input.vue +++ b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-invalid-tags-input.vue @@ -8,17 +8,16 @@ const autocomplete = [ { name: 'Rails', language: 'Ruby' }, ]; -const value = ref([ - autocomplete[0], - autocomplete[1], -]); +const value = ref([autocomplete[0], autocomplete[1]]); - -const v$ = useVuelidate(computed(() => ({ - value: { - required: () => false, - }, -})), { value }); +const v$ = useVuelidate( + computed(() => ({ + value: { + required: () => false, + }, + })), + { value }, +); v$.value.$touch(); @@ -43,6 +42,4 @@ v$.value.$touch(); /> - + diff --git a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-taggable-tags-input.vue b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-taggable-tags-input.vue index 7b851b2b0..f25b57c56 100644 --- a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-taggable-tags-input.vue +++ b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-taggable-tags-input.vue @@ -18,6 +18,4 @@ const autocomplete = []; /> - + diff --git a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-tags-input.vue b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-tags-input.vue index 4c8d49389..61fd3db74 100644 --- a/docs/pages/webitel-ui/components/wt-tags-input/examples/example-tags-input.vue +++ b/docs/pages/webitel-ui/components/wt-tags-input/examples/example-tags-input.vue @@ -28,6 +28,4 @@ const autocomplete = [ /> - + diff --git a/docs/pages/webitel-ui/components/wt-tags-input/wt-tags-input-docs.vue b/docs/pages/webitel-ui/components/wt-tags-input/wt-tags-input-docs.vue index 0cb431358..20af14e5b 100644 --- a/docs/pages/webitel-ui/components/wt-tags-input/wt-tags-input-docs.vue +++ b/docs/pages/webitel-ui/components/wt-tags-input/wt-tags-input-docs.vue @@ -1,11 +1,7 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-textarea/Readme.md b/docs/pages/webitel-ui/components/wt-textarea/Readme.md index 3e489e404..7eae4a753 100644 --- a/docs/pages/webitel-ui/components/wt-textarea/Readme.md +++ b/docs/pages/webitel-ui/components/wt-textarea/Readme.md @@ -13,6 +13,7 @@ import ExampleInvalidTextarea from './examples/example-invalid-textarea.vue'; ::: ## Example Textarea + :::raw ::: @@ -22,6 +23,7 @@ import ExampleInvalidTextarea from './examples/example-invalid-textarea.vue'; ::: ## Example Disabled Textarea + :::raw ::: @@ -31,6 +33,7 @@ import ExampleInvalidTextarea from './examples/example-invalid-textarea.vue'; ::: ## Example Invalid Textarea + :::raw ::: diff --git a/docs/pages/webitel-ui/components/wt-textarea/examples/example-invalid-textarea.vue b/docs/pages/webitel-ui/components/wt-textarea/examples/example-invalid-textarea.vue index 69e7d5f3f..17ba8e6d5 100644 --- a/docs/pages/webitel-ui/components/wt-textarea/examples/example-invalid-textarea.vue +++ b/docs/pages/webitel-ui/components/wt-textarea/examples/example-invalid-textarea.vue @@ -14,11 +14,14 @@ import { useVuelidate } from '@vuelidate/core'; const value = ref('invalid value'); -const v$ = useVuelidate(computed(() => ({ - value: { - required: () => false, - }, -})), { value }); +const v$ = useVuelidate( + computed(() => ({ + value: { + required: () => false, + }, + })), + { value }, +); v$.value.$touch(); diff --git a/docs/pages/webitel-ui/components/wt-textarea/wt-textarea-docs.vue b/docs/pages/webitel-ui/components/wt-textarea/wt-textarea-docs.vue index 67806deb6..c962fb907 100644 --- a/docs/pages/webitel-ui/components/wt-textarea/wt-textarea-docs.vue +++ b/docs/pages/webitel-ui/components/wt-textarea/wt-textarea-docs.vue @@ -1,14 +1,8 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-time-input/Readme.md b/docs/pages/webitel-ui/components/wt-time-input/Readme.md index 98e69b70b..17f591173 100644 --- a/docs/pages/webitel-ui/components/wt-time-input/Readme.md +++ b/docs/pages/webitel-ui/components/wt-time-input/Readme.md @@ -7,11 +7,13 @@ import ExampleMinTimeInput from './examples/example-min-time-input.vue'; # WtTimeInput ## Props + ::: raw ::: ## Example Hour Time Input + ::: raw ::: @@ -21,6 +23,7 @@ import ExampleMinTimeInput from './examples/example-min-time-input.vue'; ::: ## Example Min Time Input + ::: raw ::: @@ -28,5 +31,3 @@ import ExampleMinTimeInput from './examples/example-min-time-input.vue'; ::: details Code <<< ./examples/example-min-time-input.vue ::: - - diff --git a/docs/pages/webitel-ui/components/wt-time-input/examples/example-hour-time-input.vue b/docs/pages/webitel-ui/components/wt-time-input/examples/example-hour-time-input.vue index 040005d0a..ef4af61fd 100644 --- a/docs/pages/webitel-ui/components/wt-time-input/examples/example-hour-time-input.vue +++ b/docs/pages/webitel-ui/components/wt-time-input/examples/example-hour-time-input.vue @@ -2,7 +2,6 @@ import { ref } from 'vue'; const value = ref(14); - - + diff --git a/docs/pages/webitel-ui/components/wt-time-input/examples/example-min-time-input.vue b/docs/pages/webitel-ui/components/wt-time-input/examples/example-min-time-input.vue index 23660dcc1..1224afc09 100644 --- a/docs/pages/webitel-ui/components/wt-time-input/examples/example-min-time-input.vue +++ b/docs/pages/webitel-ui/components/wt-time-input/examples/example-min-time-input.vue @@ -2,7 +2,6 @@ import { ref } from 'vue'; const value = ref(25); - - + diff --git a/docs/pages/webitel-ui/components/wt-time-input/wt-time-input-docs.vue b/docs/pages/webitel-ui/components/wt-time-input/wt-time-input-docs.vue index 4835d1c18..32512c114 100644 --- a/docs/pages/webitel-ui/components/wt-time-input/wt-time-input-docs.vue +++ b/docs/pages/webitel-ui/components/wt-time-input/wt-time-input-docs.vue @@ -1,15 +1,8 @@ - + diff --git a/docs/pages/webitel-ui/components/wt-timepicker/Readme.md b/docs/pages/webitel-ui/components/wt-timepicker/Readme.md index 9b1221bce..21ca17111 100644 --- a/docs/pages/webitel-ui/components/wt-timepicker/Readme.md +++ b/docs/pages/webitel-ui/components/wt-timepicker/Readme.md @@ -10,7 +10,7 @@ import ExampleTimepickerDateMode from './examples/example-timepicker-date-mode.v ## Props | Prop | Type | Default | Code | Description | -|------------|----------------|------------|-------------------------------------------------------|--------------------------------------------------------------------------------------------------| +| ---------- | -------------- | ---------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | value | String, Number | 0 | `` | Time value in seconds (not milliseconds!) | | label | String | '' | `` | if passed, replaces "hour", "min", "sec" with a single label + format prop value | | format | String | 'hh:mm:ss' | `` | Controls visibility of inputs, depending on presence of h, m, s letters | @@ -23,10 +23,11 @@ import ExampleTimepickerDateMode from './examples/example-timepicker-date-mode.v ## Events | Value | Type | Description | -|-------|------------------------------------------------------------------|----------------------------------------------------| +| ----- | ---------------------------------------------------------------- | -------------------------------------------------- | | input | Number sec value or timestamp, depending on date-mode prop value | Event is triggered immediately after value change. | ## Example Timepicker + ::: raw ::: @@ -36,6 +37,7 @@ import ExampleTimepickerDateMode from './examples/example-timepicker-date-mode.v ::: ## Timepicker Date Mode + ::: raw ::: @@ -45,6 +47,7 @@ import ExampleTimepickerDateMode from './examples/example-timepicker-date-mode.v ::: ## Disabled Timepicker + ::: raw ::: @@ -54,6 +57,7 @@ import ExampleTimepickerDateMode from './examples/example-timepicker-date-mode.v ::: ## Invalid Timepicker + ::: raw ::: diff --git a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-disabled-timepicker.vue b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-disabled-timepicker.vue index cfe04a867..b7c3f9a1b 100644 --- a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-disabled-timepicker.vue +++ b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-disabled-timepicker.vue @@ -1,6 +1,4 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-invalid-timepicker.vue b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-invalid-timepicker.vue index 62f697645..35dd47524 100644 --- a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-invalid-timepicker.vue +++ b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-invalid-timepicker.vue @@ -4,11 +4,14 @@ import { computed, ref } from 'vue'; const value = ref(322); -const v$ = useVuelidate(computed(() => ({ - value: { - required: () => false, - }, -})), { value }); +const v$ = useVuelidate( + computed(() => ({ + value: { + required: () => false, + }, + })), + { value }, +); v$.value.$touch(); @@ -22,6 +25,4 @@ v$.value.$touch(); /> - + diff --git a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker-date-mode.vue b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker-date-mode.vue index ae8ad78bf..7cca1e9bc 100644 --- a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker-date-mode.vue +++ b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker-date-mode.vue @@ -12,6 +12,4 @@ const value = ref(Date.now()); value: {{ value }} - + diff --git a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker.vue b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker.vue index 7efd46e78..ed7b32e06 100644 --- a/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker.vue +++ b/docs/pages/webitel-ui/components/wt-timepicker/examples/example-timepicker.vue @@ -13,6 +13,4 @@ const value = ref(332); value: {{ value }} - + diff --git a/docs/pages/webitel-ui/components/wt-tooltip/Readme.md b/docs/pages/webitel-ui/components/wt-tooltip/Readme.md index 16c07668b..71b07f1e4 100644 --- a/docs/pages/webitel-ui/components/wt-tooltip/Readme.md +++ b/docs/pages/webitel-ui/components/wt-tooltip/Readme.md @@ -9,7 +9,7 @@ import ExampleTooltip from './examples/example-tooltip.vue'; ## Props | Prop | Type | Default | Code | Description | -|-----------------|---------|-----------------------------|----------------------------------------------------------|------------------------------------------------------------------------------------------------------| +| --------------- | ------- | --------------------------- | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | placement | String | auto | `` | see [Floating UI](https://floating-ui.com/docs/tutorial#placements) docs, + "auto" for autoPlacement | | popper-class | String | | `` | add special class to a floating part of tooltip | | triggers | Array | ['hover', 'focus', 'touch'] | `` | see [Floating Vue](https://floating-vue.starpad.dev/api/#triggers) docs | @@ -20,10 +20,9 @@ import ExampleTooltip from './examples/example-tooltip.vue'; ## Slots | Name | Scope | Description | -|---------|-------|----------------------| +| ------- | ----- | -------------------- | | default | | Default content slot | - ## Example Tooltip ::: raw diff --git a/docs/pages/webitel-ui/components/wt-tooltip/examples/example-tooltip.vue b/docs/pages/webitel-ui/components/wt-tooltip/examples/example-tooltip.vue index 8d7966afb..8d6d131b4 100644 --- a/docs/pages/webitel-ui/components/wt-tooltip/examples/example-tooltip.vue +++ b/docs/pages/webitel-ui/components/wt-tooltip/examples/example-tooltip.vue @@ -1,18 +1,12 @@ - + - + diff --git a/docs/pages/webitel-ui/components/wt-tree-table/Readme.md b/docs/pages/webitel-ui/components/wt-tree-table/Readme.md new file mode 100644 index 000000000..3a53996cb --- /dev/null +++ b/docs/pages/webitel-ui/components/wt-tree-table/Readme.md @@ -0,0 +1,19 @@ + + +# WtTreeTable + +## Specs + + +## Tree Table +::: raw + +::: + +::: details Code +<<< ./examples/example-tree-table.vue +::: + diff --git a/docs/pages/webitel-ui/components/wt-tree-table/component-specs.vue b/docs/pages/webitel-ui/components/wt-tree-table/component-specs.vue new file mode 100644 index 000000000..f6389e19c --- /dev/null +++ b/docs/pages/webitel-ui/components/wt-tree-table/component-specs.vue @@ -0,0 +1,8 @@ + + + diff --git a/docs/pages/webitel-ui/components/wt-tree-table/examples/example-tree-table.vue b/docs/pages/webitel-ui/components/wt-tree-table/examples/example-tree-table.vue new file mode 100644 index 000000000..393153b4e --- /dev/null +++ b/docs/pages/webitel-ui/components/wt-tree-table/examples/example-tree-table.vue @@ -0,0 +1,41 @@ + + + diff --git a/docs/pages/webitel-ui/components/wt-tree-table/examples/service.json b/docs/pages/webitel-ui/components/wt-tree-table/examples/service.json new file mode 100644 index 000000000..335280a61 --- /dev/null +++ b/docs/pages/webitel-ui/components/wt-tree-table/examples/service.json @@ -0,0 +1,408 @@ +{ + "page":1, + "items":[ + { + "id":"30", + "name":"Patch test", + "description":"description", + "prefix":"0-000120", + "code":"00-1214", + "sla":{ + "id":"2", + "name":"SLA - testing new2" + }, + "status":{ + "id":"4", + "name":"Fishiiiiiiiiikaaaa Status" + }, + "close_reason":{ + "id":"8", + "name":"name upd" + }, + "created_at":"1726240515960", + "updated_at":"1730426039302", + "created_by":{ + "id":"3", + "name":"Admооо" + }, + "updated_by":{ + "id":"3", + "name":"Admооо" + }, + "service":[ + { + "id":"31", + "name":"Upd child name", + "root_id":"30", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30", + "service":[ + { + "id":"38", + "name":"3rd", + "root_id":"31", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30", + "service":[ + { + "id":"39", + "name":"4th", + "root_id":"38", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30", + "service":[ + { + "id":"40", + "name":"name update for service", + "root_id":"39", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30", + "service":[ + { + "id":"41", + "name":"6th level", + "root_id":"40", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30" + } + ] + } + ] + } + ] + } + ] + }, + { + "id":"34", + "name":"new test 3", + "root_id":"30", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30", + "service": [ + { + "id":"51", + "name":"new test 6", + "root_id":"34", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30", + "service": [ + { + "id":"54", + "name":"new test 8", + "root_id":"51", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30" + } + ] + }, + { + "id":"52", + "name":"new test 7", + "root_id":"34", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30" + } + ] + }, + { + "id":"32", + "name":"new test", + "root_id":"30", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"30" + } + ] + }, + { + "id":"36", + "name":"upd", + "description":"cat", + "prefix":"0000-111", + "code":"0000-111", + "sla":{ + "id":"2", + "name":"SLA - testing new2" + }, + "status":{ + "id":"4", + "name":"Fishiiiiiiiiikaaaa Status" + }, + "close_reason":{ + "id":"3", + "name":"Delivery was not sent" + }, + "created_at":"1728402613207", + "updated_at":"1730390103606", + "created_by":{ + "id":"3", + "name":"Admооо" + }, + "updated_by":{ + "id":"3", + "name":"Admооо" + }, + "service":[ + { + "id":"42", + "name":"another service", + "root_id":"36", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"36", + "service":[ + { + "id":"43", + "name":"another service 2", + "root_id":"42", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"36", + "service":[ + { + "id":"44", + "name":"another service 3", + "root_id":"43", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"36", + "service":[ + { + "id":"33", + "name":"new test 2", + "root_id":"44", + "sla":{ + + }, + "group":{ + + }, + "assignee":{ + + }, + "created_by":{ + + }, + "updated_by":{ + + }, + "catalog_id":"36" + } + ] + } + ] + } + ] + } + ] + }, + { + "id":"45", + "name":"another service 5", + "description":"another description", + "prefix":"000-1111", + "code":"000-1111", + "sla":{ + "id":"1", + "name":"new name55" + }, + "status":{ + "id":"4", + "name":"Fishiiiiiiiiikaaaa Status" + }, + "close_reason":{ + "id":"3", + "name":"Delivery was not sent" + }, + "created_at":"1728920735481", + "updated_at":"1728920735481", + "created_by":{ + "id":"3", + "name":"Admооо" + }, + "updated_by":{ + "id":"3", + "name":"Admооо" + } + } + ] +} \ No newline at end of file diff --git a/docs/pages/webitel-ui/composables/use-access-control/Readme.md b/docs/pages/webitel-ui/composables/use-access-control/Readme.md index 26e327aa7..b248f3fd8 100644 --- a/docs/pages/webitel-ui/composables/use-access-control/Readme.md +++ b/docs/pages/webitel-ui/composables/use-access-control/Readme.md @@ -5,18 +5,17 @@ ## Return | Params | Description | -|---------------------|-----------------------------------| +| ------------------- | --------------------------------- | | hasReadAccess | чи є доступ на перегляд запису | | hasCreateAccess | чи є доступ на створення запису | | hasDeleteAccess | чи є доступ на видалення запису | | hasEditAccess | чи є доступ на редагування запису | | hasSaveActionAccess | чи є доступ на збереження запису | -| disableUserInput | заборона керування певним полем | +| disableUserInput | заборона керування певним полем | -Параметри `hasReadAccess`, `hasCreateAccess`, `hasDeleteAccess`, `hasEditAccess` розраховуються в +Параметри `hasReadAccess`, `hasCreateAccess`, `hasDeleteAccess`, `hasEditAccess` розраховуються в залежності від `route` сторінки, а саме його значення прокидується у `getter userinfo` і всередині аналізується на наявність доступів - ## Використання ```js @@ -28,7 +27,6 @@ const { hasDeleteAccess, hasEditAccess, hasSaveActionAccess, - disableUserInput + disableUserInput, } = useAccessControl(); - ``` diff --git a/docs/pages/webitel-ui/composables/use-cached-interval/Readme.md b/docs/pages/webitel-ui/composables/use-cached-interval/Readme.md index 64d86d20f..6e61e857c 100644 --- a/docs/pages/webitel-ui/composables/use-cached-interval/Readme.md +++ b/docs/pages/webitel-ui/composables/use-cached-interval/Readme.md @@ -6,7 +6,7 @@ We take startup time from parameter timeout, or localStorageKey, or 5 minutes by ## Input params | Params | Default | Description | -|-----------------|--------------|---------------------------------------------------| +| --------------- | ------------ | ------------------------------------------------- | | timeout | 5min | frequency of function calls | | localStorageKey | auto-refresh | key from localStorage where the timeout is stored | diff --git a/docs/pages/webitel-ui/composables/use-cached-item-instance-name/Readme.md b/docs/pages/webitel-ui/composables/use-cached-item-instance-name/Readme.md index 3258db93e..7c91062f8 100644 --- a/docs/pages/webitel-ui/composables/use-cached-item-instance-name/Readme.md +++ b/docs/pages/webitel-ui/composables/use-cached-item-instance-name/Readme.md @@ -8,14 +8,14 @@ ## Input params | Params | Default | Description | -|--------------|---------|-------------| +| ------------ | ------- | ----------- | | itemInstance | | | | namePath | name | | ## Return | Params | Description | -|--------|--------------------------------------------------------------------------------| +| ------ | ------------------------------------------------------------------------------ | | name | Значенння name з сутності itemInstance, яке було до редагування `itemInstance` | ## Приклад використання diff --git a/docs/pages/webitel-ui/composables/use-card-component/Readme.md b/docs/pages/webitel-ui/composables/use-card-component/Readme.md index d3474ccfd..1ee14d72a 100644 --- a/docs/pages/webitel-ui/composables/use-card-component/Readme.md +++ b/docs/pages/webitel-ui/composables/use-card-component/Readme.md @@ -10,7 +10,7 @@ Обєкт параметрів який має включати наступні значення: | Params | Description | -|--------------|--------------------------------------------------------------------| +| ------------ | ------------------------------------------------------------------ | | id | | | itemInstance | | | invalid | Boolean значення, яке вертається з перевірки на валідацію сторінки | @@ -23,7 +23,7 @@ ## Return | Params | Description | -|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | id | | | itemInstance | | | isNew | Якщо запис не має `id`, він вважаєаться новим (ще не створеним) | @@ -38,18 +38,11 @@ ```js import { useCardComponent } from '@webitel/ui-sdk/src/composables/useCard/useCardComponent.js'; -сonst +сonst; namespace = 'some-namespace'; -const { - id, - itemInstance, - loadItem, - addItem, - updateItem, - setId, - resetState, -} = useCardStore(namespace); +const { id, itemInstance, loadItem, addItem, updateItem, setId, resetState } = + useCardStore(namespace); const { id, @@ -59,7 +52,7 @@ const { disabledSave, saveText, save, - initialize + initialize, } = useCardComponent({ id, itemInstance, @@ -68,6 +61,6 @@ const { updateItem, setId, resetState, - invalid + invalid, }); ``` diff --git a/docs/pages/webitel-ui/composables/use-card-tabs/Readme.md b/docs/pages/webitel-ui/composables/use-card-tabs/Readme.md index 993123e57..c928bcd7c 100644 --- a/docs/pages/webitel-ui/composables/use-card-tabs/Readme.md +++ b/docs/pages/webitel-ui/composables/use-card-tabs/Readme.md @@ -6,13 +6,13 @@ ## Input params | Params | Description | -|--------|------------------------------------------------| +| ------ | ---------------------------------------------- | | tabs | Масив табів, які є наявні на сторінці сутності | ## Return | Params | Description | -|------------|-------------------------------------------------------------------------------| +| ---------- | ----------------------------------------------------------------------------- | | currentTab | Поточна відкрита таба. Розраховується від значення `route.name` або `tabs[0]` | | changeTab | Метод для зміни таби. Викликає `router` і пушить нове значення в нього | @@ -35,5 +35,4 @@ const tabs = [ ]; const { currentTab, changeTab } = useCardTabs(tabs); - ``` diff --git a/docs/pages/webitel-ui/composables/use-close/Readme.md b/docs/pages/webitel-ui/composables/use-close/Readme.md index cdf5141ea..61add6739 100644 --- a/docs/pages/webitel-ui/composables/use-close/Readme.md +++ b/docs/pages/webitel-ui/composables/use-close/Readme.md @@ -6,13 +6,13 @@ ## Input params | Params | Description | -|--------|--------------------------------------------------------------| +| ------ | ------------------------------------------------------------ | | name | Імя сторінки, куди треба повернутись після закриття поточної | ## Return | Params | Description | -|--------|-------------| +| ------ | ----------- | | close | | ## Використання @@ -21,6 +21,4 @@ import { useClose } from '@webitel/ui-sdk/src/composables/useClose/useClose.js'; const { close } = useClose('some-route'); - ``` - diff --git a/docs/pages/webitel-ui/composables/use-destroyable-sortable/Readme.md b/docs/pages/webitel-ui/composables/use-destroyable-sortable/Readme.md index 24118790f..c086be2dc 100644 --- a/docs/pages/webitel-ui/composables/use-destroyable-sortable/Readme.md +++ b/docs/pages/webitel-ui/composables/use-destroyable-sortable/Readme.md @@ -16,26 +16,27 @@ Bad decision, but I haven't come up with a better one ## Input params | Params | Description | -|---------|-------------| +| ------- | ----------- | | elRef | | | options | | ## Return | Params | Description | -|----------------|-------------| +| -------------- | ----------- | | reloadSortable | | ## Використання ```js // template -
+
; // script -import { - useDestroyableSortable, -} from '@webitel/ui-sdk/src/composables/useDestroyableSortable/useDestroyableSortable'; +import { useDestroyableSortable } from '@webitel/ui-sdk/src/composables/useDestroyableSortable/useDestroyableSortable'; const SortableWrapper = ref(null); @@ -46,4 +47,3 @@ const { reloadSortable } = useDestroyableSortable(SortableWrapper, { }, }); ``` - diff --git a/docs/pages/webitel-ui/composables/use-representable-agent-pause-cause/Readme.md b/docs/pages/webitel-ui/composables/use-representable-agent-pause-cause/Readme.md index 5ebe25e33..2b2ed1dbd 100644 --- a/docs/pages/webitel-ui/composables/use-representable-agent-pause-cause/Readme.md +++ b/docs/pages/webitel-ui/composables/use-representable-agent-pause-cause/Readme.md @@ -5,39 +5,38 @@ ## Input params | Params | Description | -|-------------|-------------| +| ----------- | ----------- | | pauseCauses | array | ## Return | Params | Description | -|-------------------------|-----------------------------------------------------------------------------------------------------------------------| +| ----------------------- | --------------------------------------------------------------------------------------------------------------------- | | representablePauseCause | Computed property that contains additionally calculated properties `duration`, `progressColor`, `isOverflow`, `limit` | ## Використання ```js -import { - useRepresentableAgentPauseCause -} from '@webitel/ui-sdk/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause'; +import { useRepresentableAgentPauseCause } from '@webitel/ui-sdk/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause'; const pauseCauses = ref([ { id: 30, name: 'Технічна перерва', - limit_min: 60 + limit_min: 60, }, { id: 69, name: 'Навчання', - limit_min: 120 + limit_min: 120, }, { id: 37, name: 'Обід', - limit_min: 23 + limit_min: 23, }, -]) +]); -const { representablePauseCause } = useRepresentableAgentPauseCause(pauseCauses); +const { representablePauseCause } = + useRepresentableAgentPauseCause(pauseCauses); ``` diff --git a/docs/pages/webitel-ui/composables/use-validate/Readme.md b/docs/pages/webitel-ui/composables/use-validate/Readme.md index 402d8d342..cc2e7ee86 100644 --- a/docs/pages/webitel-ui/composables/use-validate/Readme.md +++ b/docs/pages/webitel-ui/composables/use-validate/Readme.md @@ -7,14 +7,14 @@ ## Input params | Params | Description | -|--------|-----------------------------------------------------| +| ------ | --------------------------------------------------- | | schema | Схема, за якою треба перевірити данні на валідність | | data | Обєкт, який треба валідувати | ## Return | Params | Description | -|---------|-------------------------------------| +| ------- | ----------------------------------- | | v$ | Обєкт з результатом валідації форми | | invalid | Boolean значення `v$.$invalid` | @@ -23,7 +23,7 @@ ```js import { useValidate } from '@webitel/ui-sdk/src/composables/useValidate/useValidate.js'; -сonst +сonst; schema = { name: { required: true, @@ -39,12 +39,11 @@ schema = { }, }; -сonst +сonst; data = { name: 'some name', description: 'some description', }; const { v$, invalid } = useValidate(schema, { data }); - ``` diff --git a/docs/pages/webitel-ui/css/card-page/card-page.css.md b/docs/pages/webitel-ui/css/card-page/card-page.css.md index 8411029aa..ca3f3e5c2 100644 --- a/docs/pages/webitel-ui/css/card-page/card-page.css.md +++ b/docs/pages/webitel-ui/css/card-page/card-page.css.md @@ -1,53 +1,50 @@ # Card page styles ##### ! Стилі додаються автоматично в main.scss ! + #### Що це -Це стилі для сторінки-картки (після таблиці, накриклад: створення чи редагування запису) +Це стилі для сторінки-картки (після таблиці, накриклад: створення чи редагування запису) ## Які класи використовуються -- `opened-card` - загальний клас та обгортка сторінки, використовується з `wt-page-wrapper` +- `opened-card` - загальний клас та обгортка сторінки, використовується з `wt-page-wrapper` - `opened-card-form` - форма-обгортка для табів та прихованого інпуту - `opened-card-tabs` - обгортка для табів -- `opened-card-tabs__tab` - таб `router-view` +- `opened-card-tabs__tab` - таб `router-view` - `opened-card-header` - обгортка назви табу - `opened-card-header__title` - назву табу -- `opened-card-input-grid` - грід стилі таблиці +- `opened-card-input-grid` - грід стилі таблиці - `opened-card-input-grid--1-col` - модифікатор грід стилів - одна колонка (без розділень) - `opened-card-input-grid--w50` - модифікатор грід стилів - половина ширини - `opened-card-input-grid--w100` - модифікатор грід стилів - повна ширина - + ## Приклад використання ```vue -// crm, opened-sources.vue +// crm, opened-sources.vue -// crm, opened-sources-general.vue +// crm, opened-sources-general.vue diff --git a/docs/pages/webitel-ui/scripts/case-converter-scripts/case-converter-scripts-docs.vue b/docs/pages/webitel-ui/scripts/case-converter-scripts/case-converter-scripts-docs.vue index 5b0df7d0a..79b2147cd 100644 --- a/docs/pages/webitel-ui/scripts/case-converter-scripts/case-converter-scripts-docs.vue +++ b/docs/pages/webitel-ui/scripts/case-converter-scripts/case-converter-scripts-docs.vue @@ -12,7 +12,12 @@
Available converters: -
Important: to convert complex structure like Object or Array, use obj- prefixed scripts
+
+ Important: to convert complex structure like Object or Array, use + obj- prefixed scripts +
  • snakeToCamel
  • kebabToCamel
  • @@ -26,10 +31,11 @@

    Skipped keys

    - obj- case converters have 2nd optional param, which accepts array of keys to prevent from - converting like: + obj- case converters have 2nd optional param, which accepts array of + keys to prevent from converting like: - console.log(objCamelToSnake({ doNotConvertMe: 'helloThere!' }, ['doNotConvertMe'])) + console.log(objCamelToSnake({ doNotConvertMe: 'helloThere!' }, + ['doNotConvertMe']))

    @@ -47,6 +53,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/caseConverters/Readme.md b/docs/pages/webitel-ui/scripts/caseConverters/Readme.md index fd75b9ac8..9aab99506 100644 --- a/docs/pages/webitel-ui/scripts/caseConverters/Readme.md +++ b/docs/pages/webitel-ui/scripts/caseConverters/Readme.md @@ -3,14 +3,16 @@ Includes: **String (!)** converters: -* `camelToSnake`, -* `camelToKebab`, -* `snakeToCamel`, -* `snakeToKebab`, -* `kebabToCamel`, -* `kebabToSnake`, + +- `camelToSnake`, +- `camelToKebab`, +- `snakeToCamel`, +- `snakeToKebab`, +- `kebabToCamel`, +- `kebabToSnake`, **Object-like structures** converters: -* `objSnakeToCamel`, -* `objCamelToSnake`, -* `objCamelToKebab`, + +- `objSnakeToCamel`, +- `objCamelToSnake`, +- `objCamelToKebab`, diff --git a/docs/pages/webitel-ui/scripts/convert-duration-script/convert-duration-script-docs.vue b/docs/pages/webitel-ui/scripts/convert-duration-script/convert-duration-script-docs.vue index ba22b00b3..56fe904a9 100644 --- a/docs/pages/webitel-ui/scripts/convert-duration-script/convert-duration-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/convert-duration-script/convert-duration-script-docs.vue @@ -3,7 +3,9 @@

    convertDuration

    import Script from '@webitel/ui-sdk/src/scripts/Script'
    -

    Converts duration from seconds (or null/undefined) to hh:mm:ss value.

    +

    + Converts duration from seconds (or null/undefined) to hh:mm:ss value. +

    Params:
    • duration: [String, Number, any false value]
    • @@ -23,6 +25,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/debounce-script/debounce-script-docs.vue b/docs/pages/webitel-ui/scripts/debounce-script/debounce-script-docs.vue index 6c29d41d2..57f1ae6c8 100644 --- a/docs/pages/webitel-ui/scripts/debounce-script/debounce-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/debounce-script/debounce-script-docs.vue @@ -36,6 +36,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/edit-proxy-script/edit-proxy-script-docs.vue b/docs/pages/webitel-ui/scripts/edit-proxy-script/edit-proxy-script-docs.vue index d0d79573c..9d44fcfc1 100644 --- a/docs/pages/webitel-ui/scripts/edit-proxy-script/edit-proxy-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/edit-proxy-script/edit-proxy-script-docs.vue @@ -3,11 +3,14 @@

      editProxy

      - Proxies passed object and after each object property assigning marks this object + Proxies passed object and after each object property assigning marks + this object _dirty flag to true

      - Note: if you want _dirty property to be reactive, it should declared - before this object will be set to store or component data + Note: if you want _dirty property to be reactive, it should declared + before this object will be set to store or component data

      Example usage:

      @@ -32,6 +35,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/event-bus-script/event-bus-script-docs.vue b/docs/pages/webitel-ui/scripts/event-bus-script/event-bus-script-docs.vue index eddc1e4be..e770b094e 100644 --- a/docs/pages/webitel-ui/scripts/event-bus-script/event-bus-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/event-bus-script/event-bus-script-docs.vue @@ -18,6 +18,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/is-empty-script/is-empty-script-docs.vue b/docs/pages/webitel-ui/scripts/is-empty-script/is-empty-script-docs.vue index 08309e751..83328f948 100644 --- a/docs/pages/webitel-ui/scripts/is-empty-script/is-empty-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/is-empty-script/is-empty-script-docs.vue @@ -2,7 +2,10 @@

      isEmpty

      -

      Checks if value is "empty". Truthy for empty array, empty object, and falsy primitives, ex. (!!0, !!'')

      +

      + Checks if value is "empty". Truthy for empty array, empty object, and + falsy primitives, ex. (!!0, !!'') +

      @@ -18,6 +21,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/logger/logger.js.md b/docs/pages/webitel-ui/scripts/logger/logger.js.md index 4c05d76cb..28d292854 100644 --- a/docs/pages/webitel-ui/scripts/logger/logger.js.md +++ b/docs/pages/webitel-ui/scripts/logger/logger.js.md @@ -15,7 +15,9 @@ // import { wtlog } from '@webitel/ui-sdk/scripts'; // with metadata -wtlog.warn({ entity: 'component', module: 'wt-notifications-bar' })('Some warning message'); +wtlog.warn({ entity: 'component', module: 'wt-notifications-bar' })( + 'Some warning message', +); // without metadata wtlog.log('Some warning message'); @@ -25,10 +27,10 @@ wtlog.log('Some warning message'); Так само, як і у обʼєкта `console`: -* `.log(...)` -* `.warn(...)` -* `.error(...)` -* `.info(...)` +- `.log(...)` +- `.warn(...)` +- `.error(...)` +- `.info(...)` ### Params @@ -43,11 +45,10 @@ wtlog.log('Some warning message'); > [!WARNING] > В такому разі, логер повертає лог-функцію, а там вже все [те саме](#message). -* `entity` - назва сутності, яка викликала лог (компонент, стор, апі, етс) -* `module` - назва модуля, який викликає лог (наразі, не придумав точного визначення, -тому, на ваш розсуд – але має бути чітко зрозуміло, куди лізти) -* `app` – назва апплікейшена. якщо передана, може переписати дефолтне (задане глобально). - +- `entity` - назва сутності, яка викликала лог (компонент, стор, апі, етс) +- `module` - назва модуля, який викликає лог (наразі, не придумав точного визначення, + тому, на ваш розсуд – але має бути чітко зрозуміло, куди лізти) +- `app` – назва апплікейшена. якщо передана, може переписати дефолтне (задане глобально). ## Installation @@ -74,7 +75,7 @@ window.wtlog = wtlog('appname'); import { _wtUiLog } from '../scripts/logger.js'; // зашитий ui-sdk app namespace // ... -_wtUiLog.warn({ entity: 'component', module: 'wt-notifications-bar' })('Some warning message'); +_wtUiLog.warn({ entity: 'component', module: 'wt-notifications-bar' })( + 'Some warning message', +); ``` - - diff --git a/docs/pages/webitel-ui/scripts/prettify-file-size-script/prettify-file-size-script.vue b/docs/pages/webitel-ui/scripts/prettify-file-size-script/prettify-file-size-script.vue index 02cf0411c..df3789e86 100644 --- a/docs/pages/webitel-ui/scripts/prettify-file-size-script/prettify-file-size-script.vue +++ b/docs/pages/webitel-ui/scripts/prettify-file-size-script/prettify-file-size-script.vue @@ -2,13 +2,15 @@

      prettifyFileSize

      -

      prettifies bytes number to string size script:

      +

      prettifies bytes number to string size script:

      -
      Prettified size is: {{ output }}
      +
      + Prettified size is: {{ output }} +
      @@ -33,6 +35,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/prettify-time-script/prettify-time-script-docs.vue b/docs/pages/webitel-ui/scripts/prettify-time-script/prettify-time-script-docs.vue index 8a0aae4ec..b65c3c4f2 100644 --- a/docs/pages/webitel-ui/scripts/prettify-time-script/prettify-time-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/prettify-time-script/prettify-time-script-docs.vue @@ -2,7 +2,10 @@

      prettifyTime

      -

      prettifies Date object or timestamp to time in format hh:mm (AM/PM, if locale is US)

      +

      + prettifies Date object or timestamp to time in format hh:mm (AM/PM, if + locale is US) +

      @@ -18,6 +21,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/prevent-hidden-page-calls-decorator-script/prevent-hidden-page-calls-decorator-script-docs.vue b/docs/pages/webitel-ui/scripts/prevent-hidden-page-calls-decorator-script/prevent-hidden-page-calls-decorator-script-docs.vue index 6457a530a..46528b110 100644 --- a/docs/pages/webitel-ui/scripts/prevent-hidden-page-calls-decorator-script/prevent-hidden-page-calls-decorator-script-docs.vue +++ b/docs/pages/webitel-ui/scripts/prevent-hidden-page-calls-decorator-script/prevent-hidden-page-calls-decorator-script-docs.vue @@ -31,6 +31,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/scripts-docs.vue b/docs/pages/webitel-ui/scripts/scripts-docs.vue index 73f734866..5f766353b 100644 --- a/docs/pages/webitel-ui/scripts/scripts-docs.vue +++ b/docs/pages/webitel-ui/scripts/scripts-docs.vue @@ -8,6 +8,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/scripts/sort-query-adapter-scripts/sort-query-adapter-scripts-docs.vue b/docs/pages/webitel-ui/scripts/sort-query-adapter-scripts/sort-query-adapter-scripts-docs.vue index 1668923e4..eeb2c417d 100644 --- a/docs/pages/webitel-ui/scripts/sort-query-adapter-scripts/sort-query-adapter-scripts-docs.vue +++ b/docs/pages/webitel-ui/scripts/sort-query-adapter-scripts/sort-query-adapter-scripts-docs.vue @@ -3,9 +3,9 @@

      sortQueryAdapters

      - has SortSymbols values enum, - sortToQueryAdapter and queryToSortAdapter to convert '+', '-', and '' - (url and request formal) to 'asc', 'desc', null -- code logic format + has SortSymbols values enum, sortToQueryAdapter and queryToSortAdapter + to convert '+', '-', and '' (url and request formal) to 'asc', 'desc', + null -- code logic format

@@ -22,6 +22,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/store/_Introduction/Readme.md b/docs/pages/webitel-ui/store/_Introduction/Readme.md index a7498fe83..63c36073d 100644 --- a/docs/pages/webitel-ui/store/_Introduction/Readme.md +++ b/docs/pages/webitel-ui/store/_Introduction/Readme.md @@ -27,7 +27,7 @@ import { createBaseStoreModule, useTableStore } from '@webitel/ui-sdk/store'; ### Також, важливо: -* **State НЕ копіюється**. Відповідно, при кожному створенні кастомного модуля в декількох кейсах треба передавати +- **State НЕ копіюється**. Відповідно, при кожному створенні кастомного модуля в декількох кейсах треба передавати окремий, новий, обʼєкт state в кожен кейс - тому що інакше це буде один обʼєкт між всіма стор модулями, який буде між ними шейритись. @@ -36,8 +36,7 @@ import { createBaseStoreModule, useTableStore } from '@webitel/ui-sdk/store'; має в собі пермішени. Якщо ми передамо один і той же обʼєкт state в кожен модуль, то при зміні стейту в одному модулі, він мінятиметься у інших._ - -* **State мерджиться глибоко**. Тобто, мерджиться навіть глибока вкладеність. АЛЕ! Не мерджаться обʼєкти, які не є +- **State мерджиться глибоко**. Тобто, мерджиться навіть глибока вкладеність. АЛЕ! Не мерджаться обʼєкти, які не є обʼєктами (наприклад, не змерджиться 2 мапи в одну, з ключами з обох мап) @@ -102,25 +101,22 @@ const createCustomStoreModule = (modules) => { На момент написання доки: -* `createBaseStoreModule` - базовий метод для створення стор модуля, який має в собі дефолтні методи для роботи зі +- `createBaseStoreModule` - базовий метод для створення стор модуля, який має в собі дефолтні методи для роботи зі стором. - -* `createTableStoreModule` + `useTableStoreModule` - метод для створення стора для таблиці сутностей, та компоузабл для +- `createTableStoreModule` + `useTableStoreModule` - метод для створення стора для таблиці сутностей, та компоузабл для інтеграції з компонентом. +- `createCardStoreModule` + `useCardStoreModule` - метод для створення стора для карточки сутності, + компоузабл. -* `createCardStoreModule` + `useCardStoreModule` - метод для створення стора для карточки сутності, + компоузабл. - - -* `createApiStoreModule` - метод для створення стора для апі, який вже має в собі методи для роботи з апі. +- `createApiStoreModule` - метод для створення стора для апі, який вже має в собі методи для роботи з апі. ## Коли що використовувати? ### Типовий розділ -* Робите складний розділ з таблицею та карточкою сутності? Вам треба майже все, дивіться +- Робите складний розділ з таблицею та карточкою сутності? Вам треба майже все, дивіться [how to: Integration between store modules](../../../docs/how-to/Integration%20between%20store%20modules/Readme.md). ### Тільки табличка diff --git a/docs/pages/webitel-ui/store/createApiStoreModule/Readme.md b/docs/pages/webitel-ui/store/createApiStoreModule/Readme.md index f9b4b9443..4edecda78 100644 --- a/docs/pages/webitel-ui/store/createApiStoreModule/Readme.md +++ b/docs/pages/webitel-ui/store/createApiStoreModule/Readme.md @@ -56,11 +56,15 @@ Зазвичай апі стор модуль використовується як чайлд іншого модуля зі своїм контекстом, який його викликає. ```js -import { createApiStoreModule, createBaseStoreModule } from '@webitel/ui-sdk/store'; +import { + createApiStoreModule, + createBaseStoreModule, +} from '@webitel/ui-sdk/store'; import smthApi from '../api/smth'; // { getList, get, ... } const actions = { - GET_LIST_OF_SMTH: (context) => context.dispatch('api/GET_LIST', { context, params: { smth: 'smth' } }), + GET_LIST_OF_SMTH: (context) => + context.dispatch('api/GET_LIST', { context, params: { smth: 'smth' } }), }; const apiModule = createApiStoreModule({ @@ -79,4 +83,3 @@ const baseModule = createBaseStoreModule({ export default baseModule; ``` - diff --git a/docs/pages/webitel-ui/store/createCardStoreModule/Readme.md b/docs/pages/webitel-ui/store/createCardStoreModule/Readme.md index 3c8da55f6..acc1a533d 100644 --- a/docs/pages/webitel-ui/store/createCardStoreModule/Readme.md +++ b/docs/pages/webitel-ui/store/createCardStoreModule/Readme.md @@ -53,7 +53,7 @@ i `createApiStoreModule` [дока](../createApiStoreModule/Readme.md). ### Params -* `namespace`: неймспейс сутності. +- `namespace`: неймспейс сутності. _Примітка: якщо неймспейс вже закінчується на `card`, то ще раз `card` дописуватись не буде._ @@ -64,16 +64,16 @@ _Примітка: якщо неймспейс вже закінчується ```javascript const { namespace: cardNamespace, - id, - itemInstance, - - loadItem, - addItem, - updateItem, - setId, - resetState, - setItemProp, - deleteItem, + id, + itemInstance, + + loadItem, + addItem, + updateItem, + setId, + resetState, + setItemProp, + deleteItem, } = useCardStore(namespace); ``` @@ -87,7 +87,10 @@ i [доку](../../../docs/how-to/Integration%20between%20store%20modules/Readme ```javascript // storeModule.js -import { createCardStoreModule, createApiStoreModule } from '@webitel/ui-sdk/store'; +import { + createCardStoreModule, + createApiStoreModule, +} from '@webitel/ui-sdk/store'; // import, setup api module diff --git a/docs/pages/webitel-ui/store/createTableStoreModule/Readme.md b/docs/pages/webitel-ui/store/createTableStoreModule/Readme.md index 29d4dbd19..5fac85ab8 100644 --- a/docs/pages/webitel-ui/store/createTableStoreModule/Readme.md +++ b/docs/pages/webitel-ui/store/createTableStoreModule/Readme.md @@ -4,8 +4,8 @@ This module contains the necessary tools for organizing data in a table view. **It includes:** -* `createTableStoreModule` -* `useTableStore` +- `createTableStoreModule` +- `useTableStore` **For integration with other store modules (like [API](../createApiStoreModule/Readme.md), @@ -23,19 +23,19 @@ Vuex store module which contains all necessary logic for working with tables. It contains all required state to power a table view: -* `dataList` - list of data items from the API -* `headers` - list of table headers -* `selected` - list of selected items from dataList (preserves original items references) -* `error` - error response object if error during dataList fetching was occured -* `isLoading` - boolean flag to indicate `dataList` loading state -* `isNextPage` - boolean flag to indicate if there is more data to load +- `dataList` - list of data items from the API +- `headers` - list of table headers +- `selected` - list of selected items from dataList (preserves original items references) +- `error` - error response object if error during dataList fetching was occured +- `isLoading` - boolean flag to indicate `dataList` loading state +- `isNextPage` - boolean flag to indicate if there is more data to load ### Getters -* `PARENT_ID` - **if table is nested, should be overriden**. -* `REQUIRED_FIELDS` - list of fields, which should always be included in `FIELDS` getter. `['id']` by default -* `FIELDS` - list of fields to get from API, depending on visible `headers` columns and `REQUIRED_FIELDS` -* `GET_LIST_PARAMS`: accepts override object and returns all request filters as params +- `PARENT_ID` - **if table is nested, should be overriden**. +- `REQUIRED_FIELDS` - list of fields, which should always be included in `FIELDS` getter. `['id']` by default +- `FIELDS` - list of fields to get from API, depending on visible `headers` columns and `REQUIRED_FIELDS` +- `GET_LIST_PARAMS`: accepts override object and returns all request filters as params **with overrides priority** ### Actions @@ -50,33 +50,33 @@ See source code ### Receives -* `namespace` - Vuex module namespace, **without `/table` suffix** +- `namespace` - Vuex module namespace, **without `/table` suffix** ### Returns #### Properties -* `tableNamespace` - Vuex table module namespace +- `tableNamespace` - Vuex table module namespace for others, see [store/state](#state) -* `dataList` -* `selected` -* `isLoading` -* `headers` -* `isNext` -* `error` +- `dataList` +- `selected` +- `isLoading` +- `headers` +- `isNext` +- `error` #### Methods see [store/actions](#actions) -* `loadData` -* `onFilterEvent` -* `patchProperty` -* `deleteData` -* `sort` -* `setSelected` +- `loadData` +- `onFilterEvent` +- `patchProperty` +- `deleteData` +- `sort` +- `setSelected` ## Details and design considerations @@ -89,5 +89,3 @@ However, it would be great to have them injected in table store, because they are used together inside one table namespace. So, I've not came up with a better decision than just to left them inside TableStoreModule. - - diff --git a/docs/pages/webitel-ui/store/helpers/get-namespaced-state-docs.vue b/docs/pages/webitel-ui/store/helpers/get-namespaced-state-docs.vue index 9884d264d..80d1b4e8c 100644 --- a/docs/pages/webitel-ui/store/helpers/get-namespaced-state-docs.vue +++ b/docs/pages/webitel-ui/store/helpers/get-namespaced-state-docs.vue @@ -24,6 +24,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/store/modules/reactive-now-store-module-docs.vue b/docs/pages/webitel-ui/store/modules/reactive-now-store-module-docs.vue index 497c3e59a..ecc3ad0a8 100644 --- a/docs/pages/webitel-ui/store/modules/reactive-now-store-module-docs.vue +++ b/docs/pages/webitel-ui/store/modules/reactive-now-store-module-docs.vue @@ -2,7 +2,10 @@

Reactive Now

-

Module provides client with reactive now property from Date.now()

+

+ Module provides client with reactive now property from + Date.now() +

         
           // store/index.js
@@ -48,6 +51,4 @@ onMounted(() => {
 });
 
 
-
+
diff --git a/docs/pages/webitel-ui/store/store-docs.vue b/docs/pages/webitel-ui/store/store-docs.vue
index 39db1f418..176642a59 100644
--- a/docs/pages/webitel-ui/store/store-docs.vue
+++ b/docs/pages/webitel-ui/store/store-docs.vue
@@ -8,6 +8,4 @@ export default {
 };
 
 
-
+
diff --git a/docs/pages/webitel-ui/style/border-radius/border-radius.vue b/docs/pages/webitel-ui/style/border-radius/border-radius.vue
index d69671a7a..62a7684f7 100644
--- a/docs/pages/webitel-ui/style/border-radius/border-radius.vue
+++ b/docs/pages/webitel-ui/style/border-radius/border-radius.vue
@@ -5,7 +5,7 @@
       
@@ -23,11 +23,15 @@ export default { bRadius: [ { name: '--border-radius', - value: getComputedStyle(document.documentElement).getPropertyValue('--border-radius'), + value: getComputedStyle(document.documentElement).getPropertyValue( + '--border-radius', + ), }, { name: '--border-radius--pill', - value: getComputedStyle(document.documentElement).getPropertyValue('--border-radius--pill'), + value: getComputedStyle(document.documentElement).getPropertyValue( + '--border-radius--pill', + ), }, ], }), diff --git a/docs/pages/webitel-ui/style/breakpoints/breakpoints.vue b/docs/pages/webitel-ui/style/breakpoints/breakpoints.vue index 2a52b153f..5c26c69b3 100644 --- a/docs/pages/webitel-ui/style/breakpoints/breakpoints.vue +++ b/docs/pages/webitel-ui/style/breakpoints/breakpoints.vue @@ -8,25 +8,23 @@ href="https://material.io/design/layout/responsive-layout-grid.html#breakpoints" > Material Design docs - (or + + (or Vuetify + >Vuetify simplified docs)

-

- App has 4 main breakpoints: -

+

App has 4 main breakpoints:

  • xs: 600px (phones)
  • sm: 992px (tablets)
  • md: 1264px (tablets -> laptops)
  • lg: 1904px (laptops -> desktop)
-

- and 5 @media queries: -

+

and 5 @media queries:

$media: only screen @@ -59,6 +57,4 @@ export default { }; - + diff --git a/docs/pages/webitel-ui/style/colors/colors.vue b/docs/pages/webitel-ui/style/colors/colors.vue index 7cebc4c23..1e7158257 100644 --- a/docs/pages/webitel-ui/style/colors/colors.vue +++ b/docs/pages/webitel-ui/style/colors/colors.vue @@ -1,8 +1,6 @@ - + diff --git a/src/modules/Filters/components/filter-table-fields.vue b/src/modules/Filters/components/filter-table-fields.vue index 7a8e891bc..1c4ab2694 100644 --- a/src/modules/Filters/components/filter-table-fields.vue +++ b/src/modules/Filters/components/filter-table-fields.vue @@ -45,6 +45,4 @@ function handleChange(headers) { } - + diff --git a/src/modules/Filters/composables/useTableFilters.js b/src/modules/Filters/composables/useTableFilters.js index 2b5d5a5e9..eed1037f1 100644 --- a/src/modules/Filters/composables/useTableFilters.js +++ b/src/modules/Filters/composables/useTableFilters.js @@ -6,7 +6,9 @@ export const useTableFilters = (namespace) => { const filtersNamespace = `${namespace}/filters`; - const filtersValue = computed(() => store.getters[`${filtersNamespace}/GET_FILTERS`]()); + const filtersValue = computed(() => + store.getters[`${filtersNamespace}/GET_FILTERS`](), + ); function subscribe(payload) { return store.dispatch(`${filtersNamespace}/SUBSCRIBE`, payload); diff --git a/src/modules/Filters/scripts/getters/localStorageGetter.js b/src/modules/Filters/scripts/getters/localStorageGetter.js index 3909575f8..c46ecf87c 100644 --- a/src/modules/Filters/scripts/getters/localStorageGetter.js +++ b/src/modules/Filters/scripts/getters/localStorageGetter.js @@ -1,10 +1,14 @@ // context === filter "this" const localStorageGetter = (context) => () => { - if (!context) throw new Error('Filter context is required for localStorageGetter!'); + if (!context) + throw new Error('Filter context is required for localStorageGetter!'); const key = context.localStorageKey; - if (!key) throw new Error(`Please provide "localStorageKey" for ${context.name} filter!`); + if (!key) + throw new Error( + `Please provide "localStorageKey" for ${context.name} filter!`, + ); const value = localStorage.getItem(key); if (!value) return null; diff --git a/src/modules/Filters/scripts/getters/queryGetter.js b/src/modules/Filters/scripts/getters/queryGetter.js index 7d38d0d64..c35107927 100644 --- a/src/modules/Filters/scripts/getters/queryGetter.js +++ b/src/modules/Filters/scripts/getters/queryGetter.js @@ -2,7 +2,8 @@ const queryGetter = (context) => (router) => () => { if (!router) throw new Error('Router is required for queryGetter!'); - const query = router.currentRoute.value?.query || router.currentRoute.query || {}; + const query = + router.currentRoute.value?.query || router.currentRoute.query || {}; const value = query[context.name]; diff --git a/src/modules/Filters/scripts/setters/localStorageSetter.js b/src/modules/Filters/scripts/setters/localStorageSetter.js index 49757391a..de2b3a6c0 100644 --- a/src/modules/Filters/scripts/setters/localStorageSetter.js +++ b/src/modules/Filters/scripts/setters/localStorageSetter.js @@ -1,11 +1,15 @@ // context === filter "this" const localStorageSetter = (context) => (rawValue) => { - if (!context) throw new Error('Filter context is required for localStorageSetter!'); + if (!context) + throw new Error('Filter context is required for localStorageSetter!'); const key = context.localStorageKey; - if (!key) throw new Error(`Please provide "localStorageKey" for ${context.name} filter!`); + if (!key) + throw new Error( + `Please provide "localStorageKey" for ${context.name} filter!`, + ); const value = Array.isArray(rawValue) ? rawValue.join(',') : rawValue; localStorage.setItem(key, value); diff --git a/src/modules/Filters/scripts/setters/querySetter.js b/src/modules/Filters/scripts/setters/querySetter.js index 48d06e40b..56ffbbc21 100644 --- a/src/modules/Filters/scripts/setters/querySetter.js +++ b/src/modules/Filters/scripts/setters/querySetter.js @@ -1,6 +1,7 @@ import changeRouteQuery from '../utils/changeRouteQuery.js'; -const isObject = (value) => typeof value === 'object' && !Array.isArray(value) && value !== null; +const isObject = (value) => + typeof value === 'object' && !Array.isArray(value) && value !== null; const handlePrimitive = ({ value }) => value; diff --git a/src/modules/Filters/scripts/utils/changeRouteQuery.js b/src/modules/Filters/scripts/utils/changeRouteQuery.js index e8f7a181a..aec1c929c 100644 --- a/src/modules/Filters/scripts/utils/changeRouteQuery.js +++ b/src/modules/Filters/scripts/utils/changeRouteQuery.js @@ -4,7 +4,8 @@ const changeRouteQuery = (router) => ({ filterQuery, value }) => { const name = router.currentRoute?.value?.name || router.currentRoute?.name; - const query = router.currentRoute?.value?.query || router.currentRoute?.query || {}; + const query = + router.currentRoute?.value?.query || router.currentRoute?.query || {}; if (deepEqual(query[filterQuery], value)) return; diff --git a/src/modules/Filters/store/FiltersStoreModule.js b/src/modules/Filters/store/FiltersStoreModule.js index beb5083ab..d5317f914 100644 --- a/src/modules/Filters/store/FiltersStoreModule.js +++ b/src/modules/Filters/store/FiltersStoreModule.js @@ -1,7 +1,6 @@ import mitt from 'mitt'; import isEmpty from '../../../scripts/isEmpty.js'; -import BaseStoreModule - from '../../../store/BaseStoreModules/BaseStoreModule.js'; +import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js'; import BaseFilterSchema from '../classes/BaseFilterSchema.js'; import FilterEvent from '../enums/FilterEvent.enum.js'; @@ -23,7 +22,8 @@ export default class FiltersStoreModule extends BaseStoreModule { _STATE_FILTER_NAMES: (state) => { return Object.values(state).reduce( - (names, prop) => (prop.value || prop.name ? [...names, prop.name] : names), + (names, prop) => + prop.value || prop.name ? [...names, prop.name] : names, [], ); }, diff --git a/src/modules/Notifications/store/NotificationsStoreModule.js b/src/modules/Notifications/store/NotificationsStoreModule.js index 65750f53a..a05a4b565 100644 --- a/src/modules/Notifications/store/NotificationsStoreModule.js +++ b/src/modules/Notifications/store/NotificationsStoreModule.js @@ -45,7 +45,8 @@ export default class NotificationsStoreModule extends BaseStoreModule { getters = { IS_MAIN_TAB: (state) => state.thisTabId === state.currentTabId, - IS_SOUND_ALLOWED: (state, getters) => getters.IS_MAIN_TAB && !state.currentlyPlaying, + IS_SOUND_ALLOWED: (state, getters) => + getters.IS_MAIN_TAB && !state.currentlyPlaying, }; actions = { @@ -114,9 +115,16 @@ export default class NotificationsStoreModule extends BaseStoreModule { context.dispatch('_REMOVE_CURRENT_TAB_ID'), ]), - PLAY_SOUND: async (context, { action, sound = getNotificationSound(action), volume = 1.0 }) => { - if (context.getters.IS_SOUND_ALLOWED && !localStorage.getItem('wtIsPlaying')) { - const audio = sound instanceof Audio || sound.play ? sound : new Audio(sound); + PLAY_SOUND: async ( + context, + { action, sound = getNotificationSound(action), volume = 1.0 }, + ) => { + if ( + context.getters.IS_SOUND_ALLOWED && + !localStorage.getItem('wtIsPlaying') + ) { + const audio = + sound instanceof Audio || sound.play ? sound : new Audio(sound); audio.volume = volume; audio.addEventListener( @@ -137,7 +145,8 @@ export default class NotificationsStoreModule extends BaseStoreModule { STOP_SOUND: (context) => { const { currentlyPlaying } = context.state; - if (currentlyPlaying && currentlyPlaying instanceof Audio) currentlyPlaying.pause(); + if (currentlyPlaying && currentlyPlaying instanceof Audio) + currentlyPlaying.pause(); localStorage.removeItem('wtIsPlaying'); context.commit('RESET_CURRENTLY_PLAYING'); }, diff --git a/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js b/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js index 43cfd5730..dae1a7f01 100644 --- a/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +++ b/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js @@ -38,7 +38,9 @@ describe('features/notifications store: actions', () => { it('INITIALIZE action dispatches _SETUP_UNREAD_COUND_BROADCAST_LISTENING action', () => { notificationsModule.actions.INITIALIZE(context); - expect(context.dispatch.mock.calls[1][0]).toContain('_SETUP_UNREAD_COUND_BROADCAST_LISTENING'); + expect(context.dispatch.mock.calls[1][0]).toContain( + '_SETUP_UNREAD_COUND_BROADCAST_LISTENING', + ); }); it('INITIALIZE action dispatches _SETUP_THIS_TAB_ID action', () => { @@ -65,7 +67,9 @@ describe('features/notifications store: actions', () => { }); it('_SETUP_UNREAD_COUND_BROADCAST_LISTENING action commits SET_BROADCAST_CHANNEL mutation', () => { - notificationsModule.actions._SETUP_UNREAD_COUND_BROADCAST_LISTENING(context); + notificationsModule.actions._SETUP_UNREAD_COUND_BROADCAST_LISTENING( + context, + ); expect(context.commit.mock.calls[0][0]).toContain('SET_BROADCAST_CHANNEL'); }); @@ -100,7 +104,10 @@ describe('features/notifications store: actions', () => { it('_SET_UNREAD_COUNT action commits _SET_UNREAD_COUNT mutation with count', () => { const unreadCount = 5; notificationsModule.actions._SET_UNREAD_COUNT(context, unreadCount); - expect(context.commit).toHaveBeenCalledWith('SET_UNREAD_COUNT', unreadCount); + expect(context.commit).toHaveBeenCalledWith( + 'SET_UNREAD_COUNT', + unreadCount, + ); }); it('_RESET_UNREAD_COUNT action does not dispatch if unread count is 0', () => { diff --git a/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue b/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue index 5bbf6eada..9342f8fbb 100644 --- a/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue +++ b/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue @@ -1,8 +1,6 @@ @@ -28,6 +40,4 @@ export default { }; - + diff --git a/src/modules/QueryFilters/components/filter-datetime.vue b/src/modules/QueryFilters/components/filter-datetime.vue index 5fa1da33b..8aec1b099 100644 --- a/src/modules/QueryFilters/components/filter-datetime.vue +++ b/src/modules/QueryFilters/components/filter-datetime.vue @@ -35,6 +35,4 @@ export default { }; - + diff --git a/src/modules/QueryFilters/components/filter-from-to.vue b/src/modules/QueryFilters/components/filter-from-to.vue index 28d29fc28..5f5309b07 100644 --- a/src/modules/QueryFilters/components/filter-from-to.vue +++ b/src/modules/QueryFilters/components/filter-from-to.vue @@ -110,6 +110,8 @@ export default { + diff --git a/src/modules/QueryFilters/components/filter-table-fields.vue b/src/modules/QueryFilters/components/filter-table-fields.vue index 195d1ccbb..d2b91238b 100644 --- a/src/modules/QueryFilters/components/filter-table-fields.vue +++ b/src/modules/QueryFilters/components/filter-table-fields.vue @@ -92,6 +92,4 @@ export default { }; - + diff --git a/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js b/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js index ab02eb4d4..5c36285f6 100644 --- a/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +++ b/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js @@ -42,7 +42,10 @@ describe('Enum filter mixin', () => { global: { plugins: [router] }, }); await wrapper.vm.$nextTick(); - expect(setValue).toHaveBeenCalledWith({ filter: 'direction', value: options[0] }); + expect(setValue).toHaveBeenCalledWith({ + filter: 'direction', + value: options[0], + }); }); it('Sets empty array value if $route query is empty', async () => { diff --git a/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js b/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js index 3ce65f23c..a9cc76e7b 100644 --- a/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js +++ b/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js @@ -15,8 +15,12 @@ export default { computed: { filterSchema() { if (!this.$store) - throw new Error('Vuex is required for default filterSchema baseFilterMixin property'); - return getNamespacedState(this.$store.state, this.namespace)[this.filterQuery]; + throw new Error( + 'Vuex is required for default filterSchema baseFilterMixin property', + ); + return getNamespacedState(this.$store.state, this.namespace)[ + this.filterQuery + ]; }, value() { return this.filterSchema.value; @@ -29,7 +33,9 @@ export default { }, setValue(payload) { if (!this.$store) - throw new Error('Vuex is required for default setValue() baseFilterMixin method'); + throw new Error( + 'Vuex is required for default setValue() baseFilterMixin method', + ); return this.$store.dispatch(`${this.namespace}/SET_FILTER`, payload); }, }, diff --git a/src/modules/QueryFilters/mixins/enumFilterMixin.js b/src/modules/QueryFilters/mixins/enumFilterMixin.js index d13cc3189..b5a3565df 100644 --- a/src/modules/QueryFilters/mixins/enumFilterMixin.js +++ b/src/modules/QueryFilters/mixins/enumFilterMixin.js @@ -35,7 +35,9 @@ export default { if (optsHaveLocale) { return this.options.map((opt) => ({ ...opt, - name: Array.isArray(opt.locale) ? this.$tc(...opt.locale) : this.$t(opt.locale), + name: Array.isArray(opt.locale) + ? this.$tc(...opt.locale) + : this.$t(opt.locale), })); } return this.options; @@ -60,7 +62,10 @@ export default { newValue = newValue.concat( value .filter( - (val) => !this.localizedOptions.some((option) => val === option[this.storedProp]), + (val) => + !this.localizedOptions.some( + (option) => val === option[this.storedProp], + ), ) .map((val) => ({ [this.storedProp]: val, name: val })), ); @@ -69,7 +74,9 @@ export default { /* see comments above */ - newValue = this.localizedOptions.find((option) => value === option[this.storedProp]); + newValue = this.localizedOptions.find( + (option) => value === option[this.storedProp], + ); if (this.allowCustomValues) { newValue = newValue || { [this.storedProp]: value, name: value }; } diff --git a/src/modules/QueryFilters/mixins/paginationFilterMixin.js b/src/modules/QueryFilters/mixins/paginationFilterMixin.js index dc7fbd65e..4d48ec7fa 100644 --- a/src/modules/QueryFilters/mixins/paginationFilterMixin.js +++ b/src/modules/QueryFilters/mixins/paginationFilterMixin.js @@ -24,13 +24,15 @@ export default { restorePage() { const defaultPage = 1; - const value = +this.getValueFromQuery({ filterQuery: 'page' }) || defaultPage; + const value = + +this.getValueFromQuery({ filterQuery: 'page' }) || defaultPage; this.setPage(value); }, restoreSize() { const defaultSize = 10; - const value = +this.getValueFromQuery({ filterQuery: 'size' }) || defaultSize; + const value = + +this.getValueFromQuery({ filterQuery: 'size' }) || defaultSize; this.setSize(value); }, diff --git a/src/modules/QueryFilters/mixins/sortFilterMixin.js b/src/modules/QueryFilters/mixins/sortFilterMixin.js index eebf5ed82..1b56e4b90 100644 --- a/src/modules/QueryFilters/mixins/sortFilterMixin.js +++ b/src/modules/QueryFilters/mixins/sortFilterMixin.js @@ -18,7 +18,8 @@ const getNextSortOrder = (sort) => { } }; -const encodeSortQuery = ({ column, order }) => `${sortToQueryAdapter(order)}${column.field}`; +const encodeSortQuery = ({ column, order }) => + `${sortToQueryAdapter(order)}${column.field}`; const decodeSortQuery = ({ value }) => { const sort = queryToSortAdapter(value.slice(0, 1)); diff --git a/src/modules/QueryFilters/store/QueryFiltersStoreModule.js b/src/modules/QueryFilters/store/QueryFiltersStoreModule.js index 4a2897c96..79b8ef16d 100644 --- a/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +++ b/src/modules/QueryFilters/store/QueryFiltersStoreModule.js @@ -27,7 +27,8 @@ export default class QueryFiltersStoreModule extends BaseStoreModule { let newValue = value; if (newValue) { if (multiple && !Array.isArray(newValue)) newValue = [newValue]; - } else if (newValue === null || newValue === undefined) newValue = defaultValue; + } else if (newValue === null || newValue === undefined) + newValue = defaultValue; context.commit('SET_FILTER', { filter, value: newValue }); }, RESET_FILTERS: (context) => { diff --git a/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js b/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js index b1396bf26..66059e7ae 100644 --- a/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +++ b/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js @@ -66,7 +66,10 @@ describe('QueryFiltersStoreModule actions', () => { it('SET_FILTER: sets array value filter with null value to defaultValue', () => { const filter = { filter: arrayFilter, value: null }; module.actions.SET_FILTER(context, filter); - expect(context.commit).toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: [] }); + expect(context.commit).toHaveBeenCalledWith('SET_FILTER', { + filter: filter.filter, + value: [], + }); }); it('SET_FILTER: sets "false" value filter', () => { const filter = { filter: valueFilter, value: false }; @@ -86,11 +89,15 @@ describe('QueryFiltersStoreModule mutations', () => { const module = new QueryFiltersStoreModule().getModule(); it('correctly mutates state at RESET_FILTERS call', () => { expect( - Object.values(state).every((filter) => filter.value === filter.defaultValue), + Object.values(state).every( + (filter) => filter.value === filter.defaultValue, + ), ).toBeFalsy(); module.mutations.RESET_FILTERS(state); expect( - Object.values(state).every((filter) => filter.value === filter.defaultValue), + Object.values(state).every( + (filter) => filter.value === filter.defaultValue, + ), ).toBeTruthy(); }); }); diff --git a/src/modules/TableComponentModule/composables/useTableEmpty.js b/src/modules/TableComponentModule/composables/useTableEmpty.js index 667e781d3..6d6e54391 100644 --- a/src/modules/TableComponentModule/composables/useTableEmpty.js +++ b/src/modules/TableComponentModule/composables/useTableEmpty.js @@ -8,7 +8,10 @@ import EmptyTableLight from '../_internals/assets/empty-table-light.svg'; import EmptyFiltersDark from '../_internals/assets/empty-filters-dark.svg'; import EmptyFiltersLight from '../_internals/assets/empty-filters-light.svg'; -export const useTableEmpty = ({ dataList, filters, error, isLoading }, overrides = {}) => { +export const useTableEmpty = ( + { dataList, filters, error, isLoading }, + overrides = {}, +) => { const store = useStore(); const { t } = useI18n(); @@ -98,11 +101,17 @@ export const useTableEmpty = ({ dataList, filters, error, isLoading }, overrides const image = computed(() => { switch (emptyCause.value) { case EmptyCause.ERROR: - return darkMode?.value ? merged.value.image.error.dark : merged.value.image.error.light; + return darkMode?.value + ? merged.value.image.error.dark + : merged.value.image.error.light; case EmptyCause.FILTERS: - return darkMode?.value ? merged.value.image.filters.dark : merged.value.image.filters.light; + return darkMode?.value + ? merged.value.image.filters.dark + : merged.value.image.filters.light; case EmptyCause.EMPTY: - return darkMode?.value ? merged.value.image.empty.dark : merged.value.image.empty.light; + return darkMode?.value + ? merged.value.image.empty.dark + : merged.value.image.empty.light; default: return null; } diff --git a/src/modules/TableStoreModule/composables/useTableStore.js b/src/modules/TableStoreModule/composables/useTableStore.js index ccfa6cfd8..8cbebd46e 100644 --- a/src/modules/TableStoreModule/composables/useTableStore.js +++ b/src/modules/TableStoreModule/composables/useTableStore.js @@ -7,17 +7,29 @@ export const useTableStore = (namespace) => { const tableNamespace = `${namespace}/table`; - const dataList = computed(() => getNamespacedState(store.state, tableNamespace).dataList); + const dataList = computed( + () => getNamespacedState(store.state, tableNamespace).dataList, + ); - const selected = computed(() => getNamespacedState(store.state, tableNamespace).selected); + const selected = computed( + () => getNamespacedState(store.state, tableNamespace).selected, + ); - const isLoading = computed(() => getNamespacedState(store.state, tableNamespace).isLoading); + const isLoading = computed( + () => getNamespacedState(store.state, tableNamespace).isLoading, + ); - const headers = computed(() => getNamespacedState(store.state, tableNamespace).headers); + const headers = computed( + () => getNamespacedState(store.state, tableNamespace).headers, + ); - const isNext = computed(() => getNamespacedState(store.state, tableNamespace).isNextPage); + const isNext = computed( + () => getNamespacedState(store.state, tableNamespace).isNextPage, + ); - const error = computed(() => getNamespacedState(store.state, tableNamespace).errors); + const error = computed( + () => getNamespacedState(store.state, tableNamespace).errors, + ); function loadData(payload) { return store.dispatch(`${tableNamespace}/LOAD_DATA_LIST`, payload); diff --git a/src/modules/TableStoreModule/store/TableStoreModule.js b/src/modules/TableStoreModule/store/TableStoreModule.js index 7ca437232..fe24c0289 100644 --- a/src/modules/TableStoreModule/store/TableStoreModule.js +++ b/src/modules/TableStoreModule/store/TableStoreModule.js @@ -2,8 +2,7 @@ import { queryToSortAdapter, sortToQueryAdapter, } from '../../../scripts/sortQueryAdapters.js'; -import BaseStoreModule - from '../../../store/BaseStoreModules/BaseStoreModule.js'; +import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js'; import FilterEvent from '../../Filters/enums/FilterEvent.enum.js'; export default class TableStoreModule extends BaseStoreModule { @@ -48,7 +47,8 @@ export default class TableStoreModule extends BaseStoreModule { actions = { // FIXME: maybe move to filters module? - SET_FILTER: (context, payload) => context.dispatch('filters/SET_FILTER', payload), + SET_FILTER: (context, payload) => + context.dispatch('filters/SET_FILTER', payload), // FIXME: maybe move to filters module? ON_FILTER_EVENT: async (context, { event, payload }) => { @@ -67,14 +67,16 @@ export default class TableStoreModule extends BaseStoreModule { // FIXME: maybe move to filters module? HANDLE_FILTERS_RESTORE: async (context, { fields, sort }) => { if (sort) await context.dispatch('HANDLE_SORT_CHANGE', { value: sort }); - if (fields?.length) await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); + if (fields?.length) + await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); return context.dispatch('LOAD_DATA_LIST'); }, // FIXME: maybe move to filters module? HANDLE_FILTER_RESET: async (context, { fields, sort }) => { if (sort) await context.dispatch('HANDLE_SORT_CHANGE', { value: sort }); - if (fields?.length) await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); + if (fields?.length) + await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); return context.dispatch('LOAD_DATA_LIST'); }, @@ -112,17 +114,19 @@ export default class TableStoreModule extends BaseStoreModule { const nextSort = queryToSortAdapter(value?.slice(0, 1) || ''); const field = nextSort ? value.slice(1) : value; - const headers = context.state.headers.map(({ sort: currentSort, ...header }) => { - let sort; + const headers = context.state.headers.map( + ({ sort: currentSort, ...header }) => { + let sort; - if (field) { - sort = field === header.field ? nextSort : currentSort; - } else { - sort = nextSort; // null - } + if (field) { + sort = field === header.field ? nextSort : currentSort; + } else { + sort = nextSort; // null + } - return { ...header, sort }; - }); + return { ...header, sort }; + }, + ); context.commit('SET', { path: 'headers', value: headers }); }, @@ -133,10 +137,13 @@ export default class TableStoreModule extends BaseStoreModule { const params = context.getters.GET_LIST_PARAMS(query); try { - const { items = [], next = false } = await context.dispatch('api/GET_LIST', { - context, - params, - }); + const { items = [], next = false } = await context.dispatch( + 'api/GET_LIST', + { + context, + params, + }, + ); context.commit('SET', { path: 'dataList', value: items }); context.commit('SET', { path: 'isNextPage', value: next }); @@ -159,7 +166,10 @@ export default class TableStoreModule extends BaseStoreModule { }); }, - PATCH_ITEM_PROPERTY: async (context, { item: _item, index, prop, value }) => { + PATCH_ITEM_PROPERTY: async ( + context, + { item: _item, index, prop, value }, + ) => { const item = _item || context.state.dataList[index]; const { id, etag } = item; @@ -198,7 +208,10 @@ export default class TableStoreModule extends BaseStoreModule { await context.dispatch('LOAD_DATA_LIST'); /* if no items on current page after DELETE, move to prev page [WTEL-3793] */ - if (!context.state.dataList.length && context.getters.FILTERS.page > 1) { + if ( + !context.state.dataList.length && + context.getters.FILTERS.page > 1 + ) { await context.dispatch('SET_FILTER', { name: 'page', value: context.getters.FILTERS.page - 1, @@ -216,7 +229,9 @@ export default class TableStoreModule extends BaseStoreModule { }, DELETE_BULK: async (context, deleted) => - Promise.allSettled(deleted.map((item) => context.dispatch('DELETE_SINGLE', item))), + Promise.allSettled( + deleted.map((item) => context.dispatch('DELETE_SINGLE', item)), + ), SET_SELECTED: (context, selected) => { context.commit('SET', { path: 'selected', value: selected }); diff --git a/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js b/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js index 11b3e369f..f58d4dee1 100644 --- a/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +++ b/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js @@ -15,7 +15,10 @@ describe('TableStoreModule', () => { const state = { headers }; - expect(new TableStoreModule({}).getters.FIELDS(state)).toEqual(['id', 'age']); + expect(new TableStoreModule({}).getters.FIELDS(state)).toEqual([ + 'id', + 'age', + ]); }); }); @@ -230,7 +233,9 @@ describe('TableStoreModule integration with FiltersStoreModule', () => { value: ['surname'], }); - expect(store.getters['table/filters/GET_FILTER']('fields')).toEqual(['surname']); + expect(store.getters['table/filters/GET_FILTER']('fields')).toEqual([ + 'surname', + ]); expect(store.getters['table/FIELDS']).toEqual(['id', 'included']); diff --git a/src/modules/Userinfo/api/userinfo.js b/src/modules/Userinfo/api/userinfo.js index 5e7eab51b..b383ec71c 100644 --- a/src/modules/Userinfo/api/userinfo.js +++ b/src/modules/Userinfo/api/userinfo.js @@ -1,4 +1,7 @@ -import applyTransform, { notify, snakeToCamel } from '../../../api/transformers/index.js'; +import applyTransform, { + notify, + snakeToCamel, +} from '../../../api/transformers/index.js'; const userinfo = (instance) => ({ async getSession() { diff --git a/src/modules/Userinfo/classes/ApplicationsAccess.js b/src/modules/Userinfo/classes/ApplicationsAccess.js index 7c846ca05..8301a79a1 100644 --- a/src/modules/Userinfo/classes/ApplicationsAccess.js +++ b/src/modules/Userinfo/classes/ApplicationsAccess.js @@ -220,7 +220,9 @@ export default class ApplicationsAccess { constructor({ access, value } = { value: true }) { /* if access, deeply merge with falsy values schema if no access, "not configured => full permissions" */ - this.access = access ? ApplicationsAccess.restore(access) : applicationsAccess(value); + this.access = access + ? ApplicationsAccess.restore(access) + : applicationsAccess(value); } // minify schema for API sending diff --git a/src/modules/Userinfo/store/UserinfoStoreModule.js b/src/modules/Userinfo/store/UserinfoStoreModule.js index 2d8ad6be3..9277d55d7 100644 --- a/src/modules/Userinfo/store/UserinfoStoreModule.js +++ b/src/modules/Userinfo/store/UserinfoStoreModule.js @@ -29,11 +29,15 @@ export default class UserinfoStoreModule extends BaseStoreModule { getters = { THIS_APP: (state) => state.thisApp, // if no access[app] => accessed by default - CHECK_APP_ACCESS: (state) => (app) => !state.access[app] || state.access[app]?._enabled, + CHECK_APP_ACCESS: (state) => (app) => + !state.access[app] || state.access[app]?._enabled, CHECK_OBJECT_ACCESS: (state, getters) => ({ name, route }) => { - if (!state.access[getters.THIS_APP] || !state.access[getters.THIS_APP]._enabled) + if ( + !state.access[getters.THIS_APP] || + !state.access[getters.THIS_APP]._enabled + ) return false; if (route) return getters.CHECK_OBJECT_ACCESS_BY_ROUTE(route); return getters.CHECK_OBJECT_ACCESS_BY_NAME(name); @@ -41,8 +45,8 @@ export default class UserinfoStoreModule extends BaseStoreModule { CHECK_OBJECT_ACCESS_BY_NAME: (state, getters) => (name) => state.access[getters.THIS_APP][name]?._enabled, CHECK_OBJECT_ACCESS_BY_ROUTE: (state, getters) => (route) => { - const accessKey = Object.keys(state.access[getters.THIS_APP]).find((object) => - route.name.includes(object), + const accessKey = Object.keys(state.access[getters.THIS_APP]).find( + (object) => route.name.includes(object), ); return state.access[getters.THIS_APP][accessKey]?._enabled; }, @@ -55,7 +59,9 @@ export default class UserinfoStoreModule extends BaseStoreModule { GET_OBJECT_SCOPE_BY_NAME: (state) => (name) => Object.values(state.scope).find((object) => name === object.name), GET_OBJECT_SCOPE_BY_ROUTE: (state) => (route) => - Object.values(state.scope).find((object) => route.name.includes(object.route)), + Object.values(state.scope).find((object) => + route.name.includes(object.route), + ), HAS_READ_ACCESS: (state, getters) => (checkedObject) => { if (!getters.CHECK_OBJECT_ACCESS(checkedObject)) return false; if (state.permissions[Permissions.READ]) return true; @@ -131,8 +137,14 @@ export default class UserinfoStoreModule extends BaseStoreModule { try { await context.dispatch('RESET_STATE'); const session = { ...defaultSession, ..._session }; - const scope = await context.dispatch('CONVERT_USER_SCOPE', session.scope); - const permissions = await context.dispatch('CONVERT_USER_PERMISSIONS', session.permissions); + const scope = await context.dispatch( + 'CONVERT_USER_SCOPE', + session.scope, + ); + const permissions = await context.dispatch( + 'CONVERT_USER_PERMISSIONS', + session.permissions, + ); context.commit('SET_SESSION', { ...session, scope, permissions }); await context.dispatch('SET_LOADING', false); } catch (err) { @@ -140,13 +152,17 @@ export default class UserinfoStoreModule extends BaseStoreModule { } }, - LOGOUT: async (context, { authUrl = import.meta.env.VITE_AUTH_URL } = {}) => { + LOGOUT: async ( + context, + { authUrl = import.meta.env.VITE_AUTH_URL } = {}, + ) => { if (!authUrl) throw new Error('No authUrl for LOGOUT provided'); await userinfo.logout(); window.location.href = authUrl; }, - SET_APPLICATIONS_ACCESS: (context, access) => context.commit('SET_APPLICATIONS_ACCESS', access), + SET_APPLICATIONS_ACCESS: (context, access) => + context.commit('SET_APPLICATIONS_ACCESS', access), SET_LOADING: (context, isLoading) => { context.commit('SET_LOADING', isLoading); diff --git a/src/playground.vue b/src/playground.vue index 2bc7d8aa3..4ddf9f1b4 100644 --- a/src/playground.vue +++ b/src/playground.vue @@ -1,719 +1,5 @@ - - - - - - diff --git a/src/plugins/breakpoint/breakpoint.plugin.js b/src/plugins/breakpoint/breakpoint.plugin.js index cb7a85471..6cb4043d5 100644 --- a/src/plugins/breakpoint/breakpoint.plugin.js +++ b/src/plugins/breakpoint/breakpoint.plugin.js @@ -37,7 +37,8 @@ const breakpoint = reactive({ width: 0, }); -const getClientWidth = () => Math.max(document.documentElement.clientWidth, window.innerWidth || 0); +const getClientWidth = () => + Math.max(document.documentElement.clientWidth, window.innerWidth || 0); const getClientHeight = () => Math.max(document.documentElement.clientHeight, window.innerHeight || 0); diff --git a/src/scripts/__tests__/caseConverters.spec.js b/src/scripts/__tests__/caseConverters.spec.js index 2b4366f2c..8d7970ed5 100644 --- a/src/scripts/__tests__/caseConverters.spec.js +++ b/src/scripts/__tests__/caseConverters.spec.js @@ -60,7 +60,10 @@ describe('Case converters', () => { it('Camel-Snake Arrays', () => { const camelArr = ['camelToSnake', { camelToSnake: { camelToSnake: null } }]; - const snakeArr = ['camel_to_snake', { camel_to_snake: { camel_to_snake: null } }]; + const snakeArr = [ + 'camel_to_snake', + { camel_to_snake: { camel_to_snake: null } }, + ]; expect(objCamelToSnake(camelArr)).toEqual(snakeArr); expect(objSnakeToCamel(snakeArr)).toEqual(camelArr); }); diff --git a/src/scripts/__tests__/updateObject.spec.js b/src/scripts/__tests__/updateObject.spec.js index 715bf04f8..3d119fd2a 100644 --- a/src/scripts/__tests__/updateObject.spec.js +++ b/src/scripts/__tests__/updateObject.spec.js @@ -9,11 +9,15 @@ describe('updateObject', () => { it('changes shallow value', () => { const original = { jest: 'jest' }; const result = { jest: 'huest' }; - expect(updateObject({ obj: original, path: 'jest', value: 'huest' })).toEqual(result); + expect( + updateObject({ obj: original, path: 'jest', value: 'huest' }), + ).toEqual(result); }); it('changes deep value', () => { const original = { jest: { deep: 'jest' } }; const result = { jest: { deep: 'huest' } }; - expect(updateObject({ obj: original, path: 'jest.deep', value: 'huest' })).toEqual(result); + expect( + updateObject({ obj: original, path: 'jest.deep', value: 'huest' }), + ).toEqual(result); }); }); diff --git a/src/scripts/caseConverters.js b/src/scripts/caseConverters.js index 6c0aea15e..33172356a 100644 --- a/src/scripts/caseConverters.js +++ b/src/scripts/caseConverters.js @@ -1,8 +1,12 @@ export const snakeToCamel = (str) => - str.replace(/([a-z])([_])([a-z])/g, (group, p1, p2, p3) => [p1, p3.toUpperCase()].join('')); + str.replace(/([a-z])([_])([a-z])/g, (group, p1, p2, p3) => + [p1, p3.toUpperCase()].join(''), + ); export const camelToSnake = (str) => - str.replace(/([a-z])([A-Z])/g, (group, p1, p2) => [p1, '_', p2.toLowerCase()].join('')); + str.replace(/([a-z])([A-Z])/g, (group, p1, p2) => + [p1, '_', p2.toLowerCase()].join(''), + ); export const kebabToCamel = (str) => str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '')); @@ -16,36 +20,40 @@ export const kebabToSnake = (str) => export const snakeToKebab = (str) => str.replace(/([-_][a-z])/g, (group) => group.replace('_', '-')); -const convertObject = ({ self, converter }) => (obj, skipKeys) => { - if (!obj) return obj; - const newObj = {}; - if (Array.isArray(obj)) { - return obj.map((value) => { - if (typeof value === 'object') { - return self(value, skipKeys); +const convertObject = + ({ self, converter }) => + (obj, skipKeys) => { + if (!obj) return obj; + const newObj = {}; + if (Array.isArray(obj)) { + return obj.map((value) => { + if (typeof value === 'object') { + return self(value, skipKeys); + } + if (typeof value === 'string') return converter(value); + return value; // number + }); + } + Object.keys(obj).forEach((oldKey) => { + if (skipKeys.includes(oldKey)) { + newObj[oldKey] = obj[oldKey]; + } else { + const newKey = converter(oldKey); + let value = obj[oldKey]; + if ( + Array.isArray(value) || + (value !== null && + value !== undefined && + value.constructor === Object) + ) { + value = self(value, skipKeys); + } + newObj[newKey] = value; } - if (typeof value === 'string') return converter(value); - return value; // number }); - } - Object.keys(obj).forEach((oldKey) => { - if (skipKeys.includes(oldKey)) { - newObj[oldKey] = obj[oldKey]; - } else { - const newKey = converter(oldKey); - let value = obj[oldKey]; - if ( - Array.isArray(value) || - (value !== null && value !== undefined && value.constructor === Object) - ) { - value = self(value, skipKeys); - } - newObj[newKey] = value; - } - }); - return newObj; -}; + return newObj; + }; export const objSnakeToCamel = (obj, skipKeys = []) => { return convertObject({ diff --git a/src/scripts/compareSize.ts b/src/scripts/compareSize.ts index 3ff894b42..cbd6a1299 100644 --- a/src/scripts/compareSize.ts +++ b/src/scripts/compareSize.ts @@ -1,11 +1,11 @@ import ComponentSize from '../enums/ComponentSize/ComponentSize.enum.js'; export enum eComponentSize { - XS = 'xs', - SM = 'sm', - MD = 'md', - LG = 'lg', - XL = 'xl', + XS = 'xs', + SM = 'sm', + MD = 'md', + LG = 'lg', + XL = 'xl', } const numerics = Object.values(ComponentSize).reduce((nums, size, index) => { @@ -67,6 +67,9 @@ export const greaterThen = (s1, s2) => { * @param s2 * @returns {boolean} */ -export const greaterOrEqual = (s1: eComponentSize, s2: eComponentSize): boolean => { +export const greaterOrEqual = ( + s1: eComponentSize, + s2: eComponentSize, +): boolean => { return compareSize(s1, s2) >= 0; }; diff --git a/src/scripts/debounce.js b/src/scripts/debounce.js index c16cb29ee..438815def 100644 --- a/src/scripts/debounce.js +++ b/src/scripts/debounce.js @@ -1,5 +1,6 @@ import lodashDebounce from 'lodash/debounce.js'; -const debounce = (fn, options, wait = 1000) => lodashDebounce(fn, wait, options); +const debounce = (fn, options, wait = 1000) => + lodashDebounce(fn, wait, options); export default debounce; diff --git a/src/scripts/index.js b/src/scripts/index.js index b615d98d9..78c1b2c19 100644 --- a/src/scripts/index.js +++ b/src/scripts/index.js @@ -4,14 +4,10 @@ import eventBus from './eventBus.js'; import isEmpty from './isEmpty.js'; import prettifyFileSize from './prettifyFileSize.js'; import prettifyTime from './prettifyTime.js'; -import preventHiddenPageCallsDecorator - from './preventHiddenPageCallsDecorator.js'; +import preventHiddenPageCallsDecorator from './preventHiddenPageCallsDecorator.js'; import saveAsJSON from './saveAsJSON.js'; import { wtlog } from './logger.js'; -import { - sortToQueryAdapter, - queryToSortAdapter, -} from './sortQueryAdapters.js'; +import { sortToQueryAdapter, queryToSortAdapter } from './sortQueryAdapters.js'; import updateObject from './updateObject.js'; import { compareSize, @@ -32,12 +28,10 @@ import { objCamelToKebab, } from './caseConverters.js'; - export { // sortQueryAdapters.js sortToQueryAdapter, queryToSortAdapter, - updateObject, preventHiddenPageCallsDecorator, saveAsJSON, diff --git a/src/scripts/logger.js b/src/scripts/logger.js index 93219793d..9c64ce670 100644 --- a/src/scripts/logger.js +++ b/src/scripts/logger.js @@ -6,8 +6,8 @@ const validateConfig = (config) => { const logger = (globalApp) => - (type) => - (...params) => { + (type) => + (...params) => { if (validateConfig(params[0])) { const config = params[0]; @@ -16,9 +16,9 @@ const logger = const path = window?.location?.href || 'non-browser env'; return (...msgs) => { - const prependix = `@webitel/${app}:${entity}:${module}:`; + const prependix = `@webitel/${app}:${entity}:${module}:`; - const appendix = `[${timestamp}][${path}]`; + const appendix = `[${timestamp}][${path}]`; return console[type](prependix, ...msgs, appendix); }; diff --git a/src/scripts/preventHiddenPageCallsDecorator.js b/src/scripts/preventHiddenPageCallsDecorator.js index 83eb00c3e..4e7812520 100644 --- a/src/scripts/preventHiddenPageCallsDecorator.js +++ b/src/scripts/preventHiddenPageCallsDecorator.js @@ -1,5 +1,9 @@ const isPageHidden = () => - document.hidden || document.msHidden || document.webkitHidden || document.mozHidden; + document.hidden || + document.msHidden || + document.webkitHidden || + document.mozHidden; -const preventHiddenPageCallsDecorator = (method) => (args) => isPageHidden() || method(args); +const preventHiddenPageCallsDecorator = (method) => (args) => + isPageHidden() || method(args); export default preventHiddenPageCallsDecorator; diff --git a/src/scripts/saveAsJSON.js b/src/scripts/saveAsJSON.js index 02ce81d7c..c772900a0 100644 --- a/src/scripts/saveAsJSON.js +++ b/src/scripts/saveAsJSON.js @@ -2,7 +2,9 @@ import { saveAs } from 'file-saver-es'; const saveAsJSON = (name, content) => { const fileName = name.replace(/[ ,]+/g, '-'); - const file = new Blob([JSON.stringify(content, null, 4)], { type: 'application/json' }); + const file = new Blob([JSON.stringify(content, null, 4)], { + type: 'application/json', + }); saveAs(file, fileName); }; diff --git a/src/scripts/sortQueryAdapters.js b/src/scripts/sortQueryAdapters.js index 930c3a5d8..1d37b2a22 100644 --- a/src/scripts/sortQueryAdapters.js +++ b/src/scripts/sortQueryAdapters.js @@ -25,3 +25,14 @@ export const queryToSortAdapter = (order) => { return SortSymbols.NONE; } }; + +export const getNextSortOrder = (sort) => { + switch (sort) { + case SortSymbols.ASC: + return SortSymbols.DESC; + case SortSymbols.DESC: + return SortSymbols.NONE; + default: + return SortSymbols.ASC; + } +}; diff --git a/src/store/BaseStoreModules/ApiStoreModule.js b/src/store/BaseStoreModules/ApiStoreModule.js index 350a7cfbb..03812fdb6 100644 --- a/src/store/BaseStoreModules/ApiStoreModule.js +++ b/src/store/BaseStoreModules/ApiStoreModule.js @@ -1,11 +1,15 @@ import BaseStoreModule from './BaseStoreModule.js'; -const getParentIdFromContext = (context) => context?.getters?.PARENT_ID || context?.state?.parentId; +const getParentIdFromContext = (context) => + context?.getters?.PARENT_ID || context?.state?.parentId; export default class ApiStoreModule extends BaseStoreModule { generateAPIActions(api) { if (!api) throw new ReferenceError('pass API module!'); - this.actions.GET_LIST = (_, { context: callerContext = {}, params = {} }) => { + this.actions.GET_LIST = ( + _, + { context: callerContext = {}, params = {} }, + ) => { if (!api.getList) throw Error('No API "getList" method provided'); return api.getList({ ...callerContext.state, @@ -14,7 +18,10 @@ export default class ApiStoreModule extends BaseStoreModule { }); }; - this.actions.GET_ITEM = (_, { context: callerContext = {}, params = {} } = {}) => { + this.actions.GET_ITEM = ( + _, + { context: callerContext = {}, params = {} } = {}, + ) => { if (!api.get) throw Error('No API "get" method provided'); return api.get({ ...callerContext.state, @@ -23,7 +30,10 @@ export default class ApiStoreModule extends BaseStoreModule { }); }; - this.actions.POST_ITEM = (_, { context: callerContext = {}, ...rest } = {}) => { + this.actions.POST_ITEM = ( + _, + { context: callerContext = {}, ...rest } = {}, + ) => { if (!api.add) throw Error('No API "add" method provided'); return api.add({ ...callerContext.state, @@ -32,7 +42,10 @@ export default class ApiStoreModule extends BaseStoreModule { }); }; - this.actions.PATCH_ITEM = (_, { context: callerContext = {}, id, changes, ...rest }) => { + this.actions.PATCH_ITEM = ( + _, + { context: callerContext = {}, id, changes, ...rest }, + ) => { if (!api.patch) throw Error('No API "patch" method provided'); return api.patch({ ...callerContext.state, @@ -43,7 +56,10 @@ export default class ApiStoreModule extends BaseStoreModule { }); }; - this.actions.UPD_ITEM = (_, { context: callerContext = {}, ...rest } = {}) => { + this.actions.UPD_ITEM = ( + _, + { context: callerContext = {}, ...rest } = {}, + ) => { if (!api.update) throw Error('No API "update" method provided'); return api.update({ ...callerContext.state, @@ -52,7 +68,10 @@ export default class ApiStoreModule extends BaseStoreModule { }); }; - this.actions.DELETE_ITEM = (_, { context: callerContext = {}, id, ...rest }) => { + this.actions.DELETE_ITEM = ( + _, + { context: callerContext = {}, id, ...rest }, + ) => { if (!api.delete) throw Error('No API "delete" method provided'); return api.delete({ ...callerContext.state, diff --git a/src/store/BaseStoreModules/BaseStoreModule.js b/src/store/BaseStoreModules/BaseStoreModule.js index 8cd5b6b64..a635fb316 100644 --- a/src/store/BaseStoreModules/BaseStoreModule.js +++ b/src/store/BaseStoreModules/BaseStoreModule.js @@ -26,7 +26,8 @@ export default class BaseStoreModule { this.actions.PATCH_ITEM = (context, { id, changes }) => this._APIModule.patch({ ...context.state, id, changes }); this.actions.UPD_ITEM = (context) => this._APIModule.update(context.state); - this.actions.DELETE_ITEM = (context, id) => this._APIModule.delete({ ...context.state, id }); + this.actions.DELETE_ITEM = (context, id) => + this._APIModule.delete({ ...context.state, id }); return this; } diff --git a/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js b/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js index 2f2c84910..ede6984dc 100644 --- a/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +++ b/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js @@ -15,7 +15,10 @@ describe('Base Store Module', () => { module = new BaseStoreModule(); }); it('attaches api module and generates API actions from it', () => { - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); expect(_module.actions.GET_LIST).toBeTruthy(); expect(_module.actions.GET_ITEM).toBeTruthy(); expect(_module.actions.POST_ITEM).toBeTruthy(); @@ -28,7 +31,10 @@ describe('Base Store Module', () => { const params = { jest2: 'jest1' }; const context = { state }; const expectedParams = { jest: 'jest', jest2: 'jest1' }; - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); _module.actions.GET_LIST(context, params); expect(APIModule.getList).toHaveBeenCalledWith(expectedParams); }); @@ -37,7 +43,10 @@ describe('Base Store Module', () => { const params = { jest2: 'jest1' }; const context = { state }; const expectedParams = { jest: 'jest', jest2: 'jest1' }; - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); _module.actions.GET_ITEM(context, params); expect(APIModule.get).toHaveBeenCalledWith(expectedParams); }); @@ -45,7 +54,10 @@ describe('Base Store Module', () => { const state = { jest: 'jest' }; const context = { state }; const expectedParams = { jest: 'jest' }; - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); _module.actions.POST_ITEM(context); expect(APIModule.add).toHaveBeenCalledWith(expectedParams); }); @@ -58,7 +70,10 @@ describe('Base Store Module', () => { id: '1', changes: { jest: 'my change!' }, }; - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); _module.actions.PATCH_ITEM(context, params); expect(APIModule.patch).toHaveBeenCalledWith(expectedParams); }); @@ -66,7 +81,10 @@ describe('Base Store Module', () => { const state = { jest: 'jest' }; const context = { state }; const expectedParams = { jest: 'jest' }; - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); _module.actions.UPD_ITEM(context); expect(APIModule.update).toHaveBeenCalledWith(expectedParams); }); @@ -75,7 +93,10 @@ describe('Base Store Module', () => { const params = '1'; const context = { state }; const expectedParams = { jest: 'jest', id: '1' }; - const _module = module.attachAPIModule(APIModule).generateAPIActions().getModule(); + const _module = module + .attachAPIModule(APIModule) + .generateAPIActions() + .getModule(); _module.actions.DELETE_ITEM(context, params); expect(APIModule.delete).toHaveBeenCalledWith(expectedParams); }); diff --git a/src/store/helpers/getNamespacedState.js b/src/store/helpers/getNamespacedState.js index 5f21aa82a..b0976b88b 100644 --- a/src/store/helpers/getNamespacedState.js +++ b/src/store/helpers/getNamespacedState.js @@ -1,4 +1,6 @@ const getNamespacedState = (state, namespace) => - namespace.split('/').reduce((subState, subNamespace) => subState[subNamespace], state); + namespace + .split('/') + .reduce((subState, subNamespace) => subState[subNamespace], state); export default getNamespacedState; diff --git a/src/store/new/modules/apiStoreModule/apiStoreModule.js b/src/store/new/modules/apiStoreModule/apiStoreModule.js index 9f3397f27..b5e513d20 100644 --- a/src/store/new/modules/apiStoreModule/apiStoreModule.js +++ b/src/store/new/modules/apiStoreModule/apiStoreModule.js @@ -1,4 +1,5 @@ -const getParentIdFromContext = (context) => context?.getters?.PARENT_ID || context?.state?.parentId; +const getParentIdFromContext = (context) => + context?.getters?.PARENT_ID || context?.state?.parentId; const state = () => ({ api: null, @@ -8,7 +9,8 @@ const getters = {}; const actions = { GET_LIST: (apiContext, { context: callerContext = {}, params = {} }) => { - if (!apiContext.state.api.getList) throw Error('No API "getList" method provided'); + if (!apiContext.state.api.getList) + throw Error('No API "getList" method provided'); return apiContext.state.api.getList({ ...callerContext.state, parentId: getParentIdFromContext(callerContext), @@ -35,7 +37,8 @@ const actions = { }, UPD_ITEM: (apiContext, { context: callerContext = {}, ...rest } = {}) => { - if (!apiContext.state.api.update) throw Error('No API "update" method provided'); + if (!apiContext.state.api.update) + throw Error('No API "update" method provided'); return apiContext.state.api.update({ ...callerContext.state, parentId: getParentIdFromContext(callerContext), @@ -43,8 +46,12 @@ const actions = { }); }, - PATCH_ITEM: (apiContext, { context: callerContext = {}, id, changes, ...rest }) => { - if (!apiContext.state.api.patch) throw Error('No API "patch" method provided'); + PATCH_ITEM: ( + apiContext, + { context: callerContext = {}, id, changes, ...rest }, + ) => { + if (!apiContext.state.api.patch) + throw Error('No API "patch" method provided'); return apiContext.state.api.patch({ ...callerContext.state, parentId: getParentIdFromContext(callerContext), @@ -55,7 +62,8 @@ const actions = { }, DELETE_ITEM: (apiContext, { context: callerContext = {}, id, ...rest }) => { - if (!apiContext.state.api.delete) throw Error('No API "delete" method provided'); + if (!apiContext.state.api.delete) + throw Error('No API "delete" method provided'); return apiContext.state.api.delete({ ...callerContext.state, parentId: getParentIdFromContext(callerContext), @@ -68,7 +76,8 @@ const actions = { apiContext, { context: callerContext = {}, params = {} }, ) => { - if (!apiContext.state.api.getList) throw Error('No API "getPermissionsList" method provided'); + if (!apiContext.state.api.getList) + throw Error('No API "getPermissionsList" method provided'); return apiContext.state.api.getPermissionsList({ ...callerContext.state, parentId: getParentIdFromContext(callerContext), @@ -78,14 +87,10 @@ const actions = { PATCH_OBJECT_PERMISSIONS_ITEM: ( apiContext, - { - context: callerContext = {}, - id, - changes, - ...rest - }, + { context: callerContext = {}, id, changes, ...rest }, ) => { - if (!apiContext.state.api.patch) throw Error('No API "patchPermissions" method provided'); + if (!apiContext.state.api.patch) + throw Error('No API "patchPermissions" method provided'); return apiContext.state.api.patchPermissions({ ...callerContext.state, parentId: getParentIdFromContext(callerContext), diff --git a/src/store/new/modules/cardStoreModule/useCardStore.js b/src/store/new/modules/cardStoreModule/useCardStore.js index 90c335bcc..295a40891 100644 --- a/src/store/new/modules/cardStoreModule/useCardStore.js +++ b/src/store/new/modules/cardStoreModule/useCardStore.js @@ -9,8 +9,12 @@ export const useCardStore = (namespace) => { ? namespace : `${namespace}/card`; - const id = computed(() => getNamespacedState(store.state, cardNamespace).itemId); - const itemInstance = computed(() => getNamespacedState(store.state, cardNamespace).itemInstance); + const id = computed( + () => getNamespacedState(store.state, cardNamespace).itemId, + ); + const itemInstance = computed( + () => getNamespacedState(store.state, cardNamespace).itemInstance, + ); function loadItem(payload) { return store.dispatch(`${cardNamespace}/LOAD_ITEM`, payload); diff --git a/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js b/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js index 3bd7d6bdc..971f78eb2 100644 --- a/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js +++ b/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js @@ -1,13 +1,9 @@ import { createRouter, createWebHistory } from 'vue-router'; import { createStore } from 'vuex'; -import FilterEvent - from '../../../../../modules/Filters/enums/FilterEvent.enum.js'; -import FiltersStoreModule - from '../../../../../modules/Filters/store/FiltersStoreModule.js'; +import FilterEvent from '../../../../../modules/Filters/enums/FilterEvent.enum.js'; +import FiltersStoreModule from '../../../../../modules/Filters/store/FiltersStoreModule.js'; import { SortSymbols } from '../../../../../scripts/sortQueryAdapters.js'; -import { - createTableStoreModule, -} from '../../../helpers/createTableStoreModule.js'; +import { createTableStoreModule } from '../../../helpers/createTableStoreModule.js'; describe('TableStoreModule', () => { it('correctly computes FIELDS getter', () => { @@ -240,7 +236,9 @@ describe('TableStoreModule integration with FiltersStoreModule', () => { value: ['surname'], }); - expect(store.getters['table/filters/GET_FILTER']('fields')).toEqual(['surname']); + expect(store.getters['table/filters/GET_FILTER']('fields')).toEqual([ + 'surname', + ]); expect(store.getters['table/FIELDS']).toEqual(['id', 'included']); diff --git a/src/store/new/modules/tableStoreModule/tableStoreModule.js b/src/store/new/modules/tableStoreModule/tableStoreModule.js index 94050f7f7..ff8ceb204 100644 --- a/src/store/new/modules/tableStoreModule/tableStoreModule.js +++ b/src/store/new/modules/tableStoreModule/tableStoreModule.js @@ -48,7 +48,8 @@ const getters = { const actions = { // FIXME: maybe move to filters module? - SET_FILTER: (context, payload) => context.dispatch('filters/SET_FILTER', payload), + SET_FILTER: (context, payload) => + context.dispatch('filters/SET_FILTER', payload), // FIXME: maybe move to filters module? ON_FILTER_EVENT: async (context, { event, payload }) => { @@ -67,14 +68,16 @@ const actions = { // FIXME: maybe move to filters module? HANDLE_FILTERS_RESTORE: async (context, { fields, sort }) => { if (sort) await context.dispatch('HANDLE_SORT_CHANGE', { value: sort }); - if (fields?.length) await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); + if (fields?.length) + await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); return context.dispatch('LOAD_DATA_LIST'); }, // FIXME: maybe move to filters module? HANDLE_FILTER_RESET: async (context, { fields, sort }) => { if (sort) await context.dispatch('HANDLE_SORT_CHANGE', { value: sort }); - if (fields?.length) await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); + if (fields?.length) + await context.dispatch('HANDLE_FIELDS_CHANGE', { value: fields }); return context.dispatch('LOAD_DATA_LIST'); }, @@ -112,17 +115,19 @@ const actions = { const nextSort = queryToSortAdapter(value?.slice(0, 1) || ''); const field = nextSort ? value.slice(1) : value; - const headers = context.state.headers.map(({ sort: currentSort, ...header }) => { - let sort; + const headers = context.state.headers.map( + ({ sort: currentSort, ...header }) => { + let sort; - if (field) { - sort = field === header.field ? nextSort : currentSort; - } else { - sort = nextSort; // null - } + if (field) { + sort = field === header.field ? nextSort : currentSort; + } else { + sort = nextSort; // null + } - return { ...header, sort }; - }); + return { ...header, sort }; + }, + ); context.commit('SET', { path: 'headers', value: headers }); }, @@ -133,13 +138,13 @@ const actions = { const params = context.getters.GET_LIST_PARAMS(query); try { - const { - items = [], - next = false, - } = await context.dispatch('GET_LIST_API', { - context, - params, - }); + const { items = [], next = false } = await context.dispatch( + 'GET_LIST_API', + { + context, + params, + }, + ); context.commit('SET', { path: 'dataList', value: items }); context.commit('SET', { path: 'isNextPage', value: next }); @@ -222,21 +227,19 @@ const actions = { }, DELETE_BULK: async (context, deleted) => - Promise.allSettled(deleted.map((item) => context.dispatch('DELETE_SINGLE', item))), + Promise.allSettled( + deleted.map((item) => context.dispatch('DELETE_SINGLE', item)), + ), SET_SELECTED: (context, selected) => { context.commit('SET', { path: 'selected', value: selected }); }, GET_LIST_API: (context, payload) => context.dispatch('api/GET_LIST', payload), - PATCH_ITEM_API: ( - context, - payload, - ) => context.dispatch('api/PATCH_ITEM', payload), - DELETE_ITEM_API: ( - context, - payload, - ) => context.dispatch('api/DELETE_ITEM', payload), + PATCH_ITEM_API: (context, payload) => + context.dispatch('api/PATCH_ITEM', payload), + DELETE_ITEM_API: (context, payload) => + context.dispatch('api/DELETE_ITEM', payload), RESET_TABLE_STATE: async (context) => { context.commit('RESET_TABLE_STATE'); diff --git a/src/store/new/modules/tableStoreModule/useTableStore.js b/src/store/new/modules/tableStoreModule/useTableStore.js index f7f8b17b0..bacd72ba4 100644 --- a/src/store/new/modules/tableStoreModule/useTableStore.js +++ b/src/store/new/modules/tableStoreModule/useTableStore.js @@ -7,17 +7,29 @@ export const useTableStore = (namespace) => { const tableNamespace = `${namespace}/table`; - const dataList = computed(() => getNamespacedState(store.state, tableNamespace).dataList); + const dataList = computed( + () => getNamespacedState(store.state, tableNamespace).dataList, + ); - const selected = computed(() => getNamespacedState(store.state, tableNamespace).selected); + const selected = computed( + () => getNamespacedState(store.state, tableNamespace).selected, + ); - const isLoading = computed(() => getNamespacedState(store.state, tableNamespace).isLoading); + const isLoading = computed( + () => getNamespacedState(store.state, tableNamespace).isLoading, + ); - const headers = computed(() => getNamespacedState(store.state, tableNamespace).headers); + const headers = computed( + () => getNamespacedState(store.state, tableNamespace).headers, + ); - const isNext = computed(() => getNamespacedState(store.state, tableNamespace).isNextPage); + const isNext = computed( + () => getNamespacedState(store.state, tableNamespace).isNextPage, + ); - const error = computed(() => getNamespacedState(store.state, tableNamespace).errors); + const error = computed( + () => getNamespacedState(store.state, tableNamespace).errors, + ); function loadData(payload) { return store.dispatch(`${tableNamespace}/LOAD_DATA_LIST`, payload); diff --git a/src/the-app.vue b/src/the-app.vue index fd6d3b4de..2256f5dcf 100644 --- a/src/the-app.vue +++ b/src/the-app.vue @@ -16,5 +16,5 @@ export default { diff --git a/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js b/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js index 6bf8ae0fe..a3dfb40b4 100644 --- a/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +++ b/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js @@ -42,7 +42,8 @@ describe('Variable search validator', () => { expect(variableSearchValidator(searchValue)).toBe(true); }); it('Multiple "=" search', () => { - const searchValue = 'height=5 feet 5½ inches (166 cm), age=1231, fin=123231'; + const searchValue = + 'height=5 feet 5½ inches (166 cm), age=1231, fin=123231'; expect(variableSearchValidator(searchValue)).toBe(false); }); }); diff --git a/src/validators/websocketValidator/__tests__/websocketValidator.spec.js b/src/validators/websocketValidator/__tests__/websocketValidator.spec.js index 2feaaa557..9af5cf3b1 100644 --- a/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +++ b/src/validators/websocketValidator/__tests__/websocketValidator.spec.js @@ -20,7 +20,9 @@ describe('websocketValidator', () => { expect(websocketValidator('wss://example.com/ws')).toBe(true); }); it('truthy case 7: dns name', () => { - expect(websocketValidator('wss://socket.socket.com/v3/channel_123?api_key=123')).toBe(true); + expect( + websocketValidator('wss://socket.socket.com/v3/channel_123?api_key=123'), + ).toBe(true); }); it('falsy case 1: empty string', () => { expect(websocketValidator('')).toBe(false); diff --git a/tests/config/config.js b/tests/config/config.js index d6d2d3e48..c856915d6 100644 --- a/tests/config/config.js +++ b/tests/config/config.js @@ -2,7 +2,4 @@ import { config } from '@vue/test-utils'; import WebitelUi from '../../src/install.ts'; import i18n from '../../src/locale/i18n.js'; -config.global.plugins = [ - [WebitelUi, {}], - i18n, -]; +config.global.plugins = [[WebitelUi, {}], i18n]; diff --git a/tsconfig.json b/tsconfig.json index bab9be2b2..c7f7b006c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + "noUncheckedSideEffectImports": true, }, "include": ["src", "docs/pages"] } diff --git a/vite.config.ts b/vite.config.ts index eed860951..5154b570f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,9 @@ import vue from '@vitejs/plugin-vue'; -import {resolve} from 'path'; +import { resolve } from 'path'; +import { defineConfig, loadEnv } from 'vite'; import checker from 'vite-plugin-checker'; -import {defineConfig, loadEnv} from 'vite'; -import {nodePolyfills} from 'vite-plugin-node-polyfills'; -import {viteStaticCopy} from 'vite-plugin-static-copy'; +import { nodePolyfills } from 'vite-plugin-node-polyfills'; +import { viteStaticCopy } from 'vite-plugin-static-copy'; import createSvgSpritePlugin from 'vite-plugin-svg-sprite'; // https://vitejs.dev/config/ @@ -22,7 +22,7 @@ export default ({ mode }) => { rollupOptions: { // make sure to externalize deps that shouldn't be bundled // into your library - external: ['vue'], + external: ['vue', '@webitel/fonts'], output: { // Provide global variables to use in the UMD build // for externalized deps @@ -38,7 +38,9 @@ export default ({ mode }) => { }, }, define: { - 'process.env': JSON.parse(JSON.stringify(env).replaceAll('VITE_', 'VUE_APP_')), + 'process.env': JSON.parse( + JSON.stringify(env).replaceAll('VITE_', 'VUE_APP_'), + ), }, server: { port: 8080, @@ -92,5 +94,28 @@ export default ({ mode }) => { environment: 'happy-dom', setupFiles: ['./tests/config/config.js'], }, + css: { + preprocessorOptions: { + scss: { + api: 'modern', // or "modern-compiler", "legacy", + sassOptions: { + quietDeps: true, + }, + // DETAILED ANSWER FOR THIS STRANGE STRUCTURE + // FOR additionalData CAN BE FOUND AT THE LINK https://webitel.atlassian.net/browse/WTEL-5778?focusedCommentId=647516 + additionalData: (content, filename) => { + // Suppress warnings for specific files or packages + if (/node_modules\/plyr/.test(filename)) { + return ` + @import "plyr/src/sass/plyr.scss"; + /* suppress warnings for this file */ + $disable-import-warning: true; + `; + } + return content; + }, + }, + }, + }, }); };