@webitel/ui-sdk 24.12.29 → 24.12.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +271 -131
- package/README.md +6 -0
- package/dist/img/sprite/index.js +8 -2
- package/dist/img/sprite/tree-collapse.svg +4 -0
- package/dist/img/sprite/tree-cross.svg +5 -0
- package/dist/img/sprite/tree-line.svg +10 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +7736 -7442
- package/dist/ui-sdk.umd.cjs +17 -17
- package/package.json +13 -6
- package/src/api/axios/generateInstance.js +6 -2
- package/src/api/clients/agents/agentChats.js +18 -19
- package/src/api/clients/agents/agents.js +29 -7
- package/src/api/clients/buckets/buckets.js +16 -3
- package/src/api/clients/calendars/calendars.js +21 -3
- package/src/api/clients/catalog/catalog.js +1 -3
- package/src/api/clients/chatGateways/chatGateways.js +41 -12
- package/src/api/clients/communications/communications.js +25 -6
- package/src/api/clients/configurations/configurations.js +13 -3
- package/src/api/clients/flows/flow.js +20 -9
- package/src/api/clients/gateways/gateways.js +12 -3
- package/src/api/clients/lists/blacklists.js +16 -3
- package/src/api/clients/media/media.js +16 -3
- package/src/api/clients/queues/queues.js +16 -6
- package/src/api/clients/roles/roles.js +3 -1
- package/src/api/clients/skills/skills.js +16 -3
- package/src/api/clients/teams/teams.js +17 -7
- package/src/api/clients/users/__tests__/users.spec.js +3 -1
- package/src/api/clients/users/users.js +8 -2
- package/src/api/clients//321/201ontacts/contactChatMessagesHistory.js +21 -13
- package/src/api/clients//321/201ontacts/contacts.js +38 -15
- package/src/api/history/transcript/callTranscript.js +10 -2
- package/src/api/interceptors/request/updateToken.interceptor.js +2 -1
- package/src/api/transformers/applyTransform.js +5 -1
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +2 -1
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +2 -1
- package/src/assets/icons/sprite/index.js +8 -2
- package/src/assets/icons/sprite/tree-collapse.svg +4 -0
- package/src/assets/icons/sprite/tree-cross.svg +5 -0
- package/src/assets/icons/sprite/tree-line.svg +10 -0
- package/src/components/index.js +8 -12
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +4 -2
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +3 -4
- package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +6 -6
- package/src/components/on-demand/wt-route-transition/wt-route-transition.vue +12 -12
- package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +1 -3
- package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +3 -3
- package/src/components/on-demand/wt-start-page/components/start-page-card.vue +4 -2
- package/src/components/on-demand/wt-start-page/components/start-page-logo.vue +1 -1
- package/src/components/on-demand/wt-start-page/components/wt-start-page.vue +2 -3
- package/src/components/on-demand/wt-table-transition/wt-table-transition.vue +7 -7
- package/src/components/wt-action-bar/wt-action-bar.vue +16 -12
- package/src/components/wt-app-header/__tests__/WtHeaderActions.spec.js +3 -1
- package/src/components/wt-app-header/_variables.scss +0 -1
- package/src/components/wt-app-header/wt-app-header.vue +4 -4
- package/src/components/wt-app-header/wt-app-navigator.vue +6 -7
- package/src/components/wt-app-header/wt-header-actions.vue +6 -8
- package/src/components/wt-avatar/wt-avatar.vue +4 -3
- package/src/components/wt-badge/wt-badge.vue +1 -2
- package/src/components/wt-button/wt-button.vue +3 -5
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +6 -2
- package/src/components/wt-button-select/wt-button-select.vue +3 -4
- package/src/components/wt-checkbox/_variables.scss +1 -2
- package/src/components/wt-checkbox/wt-checkbox.vue +1 -2
- package/src/components/wt-chip/_variables.scss +0 -1
- package/src/components/wt-confirm-dialog/wt-confirm-dialog.vue +15 -5
- package/src/components/wt-context-menu/_variables.scss +3 -1
- package/src/components/wt-context-menu/wt-context-menu.vue +1 -3
- package/src/components/wt-copy-action/wt-copy-action.vue +1 -2
- package/src/components/wt-datepicker/_variables.scss +17 -5
- package/src/components/wt-datepicker/wt-datepicker.vue +2 -7
- package/src/components/wt-divider/_variables.scss +0 -1
- package/src/components/wt-divider/wt-divider.vue +5 -3
- package/src/components/wt-dual-panel/__tests__/WtDualPanel.js +2 -2
- package/src/components/wt-dual-panel/wt-dual-panel.vue +6 -5
- package/src/components/wt-dummy/_variables.scss +0 -1
- package/src/components/wt-dummy/wt-dummy.vue +1 -1
- package/src/components/wt-empty/wt-empty.vue +42 -34
- package/src/components/wt-error-page/_variables.scss +0 -1
- package/src/components/wt-error-page/wt-error-page.vue +2 -4
- package/src/components/wt-expansion-panel/_variables.scss +0 -1
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +3 -8
- package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +12 -4
- package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +8 -7
- package/src/components/wt-headline/_variables.scss +0 -1
- package/src/components/wt-headline-nav/_variables.scss +0 -1
- package/src/components/wt-headline-nav/wt-headline-nav.vue +2 -1
- package/src/components/wt-hint/wt-hint.vue +1 -3
- package/src/components/wt-icon/_variables.scss +0 -1
- package/src/components/wt-icon-action/wt-icon-action.vue +13 -12
- package/src/components/wt-icon-btn/_variables.scss +0 -2
- package/src/components/wt-icon-btn/wt-icon-btn.vue +4 -6
- package/src/components/wt-image/wt-image.vue +14 -13
- package/src/components/wt-indicator/wt-indicator.vue +2 -7
- package/src/components/wt-input/_variables.scss +1 -2
- package/src/components/wt-input/wt-input.vue +13 -10
- package/src/components/wt-input-info/_variables.scss +0 -1
- package/src/components/wt-intersection-observer/__tests__/WtIntersectionObserver.spec.js +1 -1
- package/src/components/wt-intersection-observer/wt-intersection-observer.vue +9 -8
- package/src/components/wt-item-link/_variables.scss +0 -1
- package/src/components/wt-label/_variables.scss +0 -1
- package/src/components/wt-label/wt-label.vue +1 -4
- package/src/components/wt-load-bar/_variables.scss +0 -1
- package/src/components/wt-load-bar/wt-load-bar.vue +0 -1
- package/src/components/wt-loader/_variables.scss +0 -2
- package/src/components/wt-loader/wt-loader.vue +1 -3
- package/src/components/wt-logo/wt-logo.vue +1 -1
- package/src/components/wt-navigation-bar/__tests__/WtNavigationBar.spec.js +9 -3
- package/src/components/wt-navigation-bar/_variables.scss +9 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +27 -11
- package/src/components/wt-notification/_variables.scss +0 -1
- package/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +1 -1
- package/src/components/wt-notifications-bar/_variables.scss +1 -2
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +4 -2
- package/src/components/wt-page-header/wt-page-header.vue +3 -2
- package/src/components/wt-page-wrapper/__tests__/WtPageWrapper.spec.js +3 -1
- package/src/components/wt-page-wrapper/_variables.scss +0 -1
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +0 -2
- package/src/components/wt-pagination/_variables.scss +1 -2
- package/src/components/wt-pagination/wt-pagination.vue +2 -1
- package/src/components/wt-player/_variables.scss +6 -2
- package/src/components/wt-player/wt-player.vue +52 -53
- package/src/components/wt-popup/_variables.scss +0 -1
- package/src/components/wt-popup/wt-popup.vue +2 -8
- package/src/components/wt-progress-bar/_variables.scss +0 -1
- package/src/components/wt-progress-bar/wt-progress-bar.vue +7 -6
- package/src/components/wt-radio/_variables.scss +1 -2
- package/src/components/wt-radio/wt-radio.vue +1 -2
- package/src/components/wt-rounded-action/_variables.scss +3 -1
- package/src/components/wt-search-bar/_variables.scss +4 -2
- package/src/components/wt-search-bar/wt-search-bar.vue +10 -4
- package/src/components/wt-select/_multiselect.scss +9 -15
- package/src/components/wt-select/_variables.scss +3 -2
- package/src/components/wt-select/mixins/multiselectMixin.js +2 -1
- package/src/components/wt-select/wt-select.vue +25 -26
- package/src/components/wt-slider/_variables.scss +0 -1
- package/src/components/wt-slider/wt-slider.vue +3 -3
- package/src/components/wt-status-select/_variables.scss +8 -4
- package/src/components/wt-stepper/_variables.scss +0 -1
- package/src/components/wt-stepper/wt-stepper.vue +5 -5
- package/src/components/wt-switcher/_variables.scss +0 -1
- package/src/components/wt-switcher/wt-switcher.vue +2 -3
- package/src/components/wt-table/__tests__/WtTable.spec.js +8 -2
- package/src/components/wt-table/_variables.scss +0 -1
- package/src/components/wt-table/types/table-header.ts +8 -0
- package/src/components/wt-table/wt-table.vue +111 -109
- package/src/components/wt-table-actions/_variables.scss +1 -2
- package/src/components/wt-table-actions/wt-table-actions.vue +1 -2
- package/src/components/wt-table-column-select/wt-table-column-select.vue +11 -8
- package/src/components/wt-tabs/_variables.scss +0 -1
- package/src/components/wt-tabs/wt-tabs.vue +6 -6
- package/src/components/wt-tags-input/__tests__/WtTagsInput.spec.js +6 -6
- package/src/components/wt-tags-input/mixin/taggableMixin.js +3 -1
- package/src/components/wt-tags-input/wt-tags-input.vue +8 -10
- package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +6 -2
- package/src/components/wt-textarea/_variables.scss +0 -1
- package/src/components/wt-textarea/wt-textarea.vue +6 -7
- package/src/components/wt-time-input/wt-time-input.vue +1 -2
- package/src/components/wt-timepicker/_variables.scss +1 -2
- package/src/components/wt-timepicker/wt-timepicker.vue +10 -8
- package/src/components/wt-tooltip/_internals/useTooltipTriggerSubscriptions.js +6 -1
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +1 -3
- package/src/components/wt-tooltip/_variables.scss +0 -1
- package/src/components/wt-tooltip/wt-tooltip.vue +13 -2
- package/src/components/wt-tree-table/_variables.scss +19 -0
- package/src/components/wt-tree-table/wt-tree-table.vue +323 -0
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +171 -0
- package/src/composables/useAccessControl/useAccessControl.js +12 -4
- package/src/composables/useCachedInterval/useCachedInterval.js +6 -2
- package/src/composables/useCachedItemInstanceName/useCachedItemInstanceName.js +4 -1
- package/src/composables/useCard/useCardComponent.js +10 -9
- package/src/composables/useCard/useCardTabs.js +6 -3
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +20 -10
- package/src/composables/useValidate/useValidate.js +1 -1
- package/src/composables/useWtTable/useWtTable.ts +25 -0
- package/src/css/main.scss +7 -1
- package/src/css/pages/table-page.scss +1 -2
- package/src/css/styleguide/border-radius/_border-radius.scss +1 -1
- package/src/css/styleguide/colors/_deprecated.scss +83 -24
- package/src/css/styleguide/colors/_palette.scss +1340 -251
- package/src/css/styleguide/colors/reusable/_text-field.scss +6 -2
- package/src/css/styleguide/fonts/_fonts.scss +36 -18
- package/src/css/styleguide/spacings/_spacings.scss +1 -1
- package/src/css/styleguide/transitions/_transitions.scss +1 -1
- package/src/css/styleguide/transitions/fade/_fade.scss +5 -4
- package/src/css/styleguide/viewport-breakpoints/_viewport-breakpoints.scss +0 -1
- package/src/enums/WebitelApplications/WebitelApplications.enum.js +7 -7
- package/src/enums/index.js +5 -10
- package/src/locale/en/en.js +5 -2
- package/src/locale/ru/ru.js +7 -3
- package/src/locale/ua/ua.js +7 -3
- package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +2 -1
- package/src/mixins/dataFilterMixins/apiFilterMixin.js +3 -1
- package/src/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.js +2 -1
- package/src/mixins/dataFilterMixins/enumFilterMixin.js +2 -1
- package/src/mixins/dataFilterMixins/paginationFilterMixin.js +4 -1
- package/src/mixins/dataFilterMixins/sortFilterMixin.js +2 -1
- package/src/mixins/validationMixin/useValidation.js +17 -7
- package/src/mixins/validationMixin/validationMixin.js +16 -8
- package/src/modules/AgentStatusSelect/api/pause-cause.js +4 -1
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +18 -6
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +3 -2
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +5 -2
- package/src/modules/Appearance/components/__tests__/wt-dark-mode-switcher.spec.js +6 -2
- package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +12 -4
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +18 -5
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +4 -2
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +15 -5
- package/src/modules/AuditForm/components/audit-form-question.vue +10 -4
- package/src/modules/AuditForm/components/audit-form.vue +24 -7
- package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options.spec.js +6 -2
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +5 -5
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +9 -4
- package/src/modules/CSVExport/CSVExport.js +5 -2
- package/src/modules/CSVExport/XLSExport.js +7 -7
- package/src/modules/CSVExport/__tests__/CSVExport.spec.js +4 -1
- package/src/modules/CSVExport/mixins/exportCSVMixin.js +3 -1
- package/src/modules/CSVExport/mixins/exportXLSMixin.js +3 -1
- package/src/modules/CardStoreModule/composables/useCardStore.js +6 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +3 -3
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +6 -3
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -2
- package/src/modules/FilesExport/mixins/exportFilesMixin.js +6 -2
- package/src/modules/FilesExport/scripts/generateMediaURL.js +2 -1
- package/src/modules/Filters/classes/BaseFilterSchema.js +15 -6
- package/src/modules/Filters/components/filter-datetime.vue +7 -5
- package/src/modules/Filters/components/filter-pagination.vue +7 -5
- package/src/modules/Filters/components/filter-search.vue +4 -4
- package/src/modules/Filters/components/filter-select.vue +33 -24
- package/src/modules/Filters/components/filter-table-fields.vue +1 -3
- package/src/modules/Filters/composables/useTableFilters.js +3 -1
- package/src/modules/Filters/scripts/getters/localStorageGetter.js +6 -2
- package/src/modules/Filters/scripts/getters/queryGetter.js +2 -1
- package/src/modules/Filters/scripts/setters/localStorageSetter.js +6 -2
- package/src/modules/Filters/scripts/setters/querySetter.js +2 -1
- package/src/modules/Filters/scripts/utils/changeRouteQuery.js +2 -1
- package/src/modules/Filters/store/FiltersStoreModule.js +3 -3
- package/src/modules/Notifications/store/NotificationsStoreModule.js +14 -5
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +10 -3
- package/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue +1 -3
- package/src/modules/ObjectPermissions/_internals/components/permissions-role-select.vue +1 -3
- package/src/modules/ObjectPermissions/_internals/components/permissions-tab-role-popup.vue +8 -5
- package/src/modules/ObjectPermissions/_internals/modules/filters/store/filters.store.js +3 -4
- package/src/modules/ObjectPermissions/_internals/store/helpers/createObjectPermissionsStoreModule.js +1 -2
- package/src/modules/ObjectPermissions/_internals/store/modules/objectPermissionsStoreModule.js +10 -14
- package/src/modules/ObjectPermissions/components/permissions-tab.vue +12 -12
- package/src/modules/ObjectPermissions/store/index.js +2 -6
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +3 -1
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +6 -2
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +7 -2
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +15 -5
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +15 -5
- package/src/modules/QueryFilters/components/filter-datetime.vue +1 -3
- package/src/modules/QueryFilters/components/filter-from-to.vue +1 -1
- package/src/modules/QueryFilters/components/filter-search.vue +1 -3
- package/src/modules/QueryFilters/components/filter-table-fields.vue +1 -3
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +4 -1
- package/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js +9 -3
- package/src/modules/QueryFilters/mixins/enumFilterMixin.js +10 -3
- package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +4 -2
- package/src/modules/QueryFilters/mixins/sortFilterMixin.js +2 -1
- package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +2 -1
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +10 -3
- package/src/modules/TableComponentModule/composables/useTableEmpty.js +13 -4
- package/src/modules/TableStoreModule/composables/useTableStore.js +18 -6
- package/src/modules/TableStoreModule/store/TableStoreModule.js +36 -21
- package/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +7 -2
- package/src/modules/Userinfo/api/userinfo.js +4 -1
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +3 -1
- package/src/modules/Userinfo/store/UserinfoStoreModule.js +25 -9
- package/src/plugins/breakpoint/breakpoint.plugin.js +2 -1
- package/src/scripts/__tests__/caseConverters.spec.js +4 -1
- package/src/scripts/__tests__/updateObject.spec.js +6 -2
- package/src/scripts/caseConverters.js +37 -29
- package/src/scripts/compareSize.ts +9 -6
- package/src/scripts/debounce.js +2 -1
- package/src/scripts/index.js +2 -8
- package/src/scripts/logger.js +4 -4
- package/src/scripts/preventHiddenPageCallsDecorator.js +6 -2
- package/src/scripts/saveAsJSON.js +3 -1
- package/src/scripts/sortQueryAdapters.js +11 -0
- package/src/store/BaseStoreModules/ApiStoreModule.js +26 -7
- package/src/store/BaseStoreModules/BaseStoreModule.js +2 -1
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +28 -7
- package/src/store/helpers/getNamespacedState.js +3 -1
- package/src/store/new/modules/apiStoreModule/apiStoreModule.js +19 -14
- package/src/store/new/modules/cardStoreModule/useCardStore.js +6 -2
- package/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js +6 -8
- package/src/store/new/modules/tableStoreModule/tableStoreModule.js +31 -28
- package/src/store/new/modules/tableStoreModule/useTableStore.js +18 -6
- package/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +2 -1
- package/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +3 -1
- package/src/components/wt-table/_internals/getSortOrder.js +0 -12
- /package/dist/img/sprite/{plus.svg → tree-expand.svg} +0 -0
- /package/src/assets/icons/sprite/{plus.svg → tree-expand.svg} +0 -0
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
/*General*/
|
|
3
3
|
--dp-font-family: 'Montserrat';
|
|
4
4
|
--dp-border-radius: var(--border-radius); /*Configurable border-radius*/
|
|
5
|
-
--dp-cell-border-radius: var(
|
|
5
|
+
--dp-cell-border-radius: var(
|
|
6
|
+
--border-radius
|
|
7
|
+
); /*Specific border radius for the calendar cell*/
|
|
6
8
|
|
|
7
9
|
/*Sizing*/
|
|
8
10
|
--dp-button-heigh: 32px; /*Size for buttons in overlays*/
|
|
@@ -12,11 +14,16 @@
|
|
|
12
14
|
--dp-cell-size: 24px; /*Width and height of calendar cell*/
|
|
13
15
|
--dp-cell-padding: var(--spacing-2xs); /*Padding in the cell*/
|
|
14
16
|
--dp-common-padding: var(--spacing-xs); /*Common padding used*/
|
|
15
|
-
--dp-input-icon-padding: calc(
|
|
16
|
-
|
|
17
|
+
--dp-input-icon-padding: calc(
|
|
18
|
+
var(--icon-md-size) + 2 * var(--spacing-xs)
|
|
19
|
+
); /*Padding on the left side of the input if icon is present*/
|
|
20
|
+
--dp-input-padding: calc(var(--spacing-xs) - 1px)
|
|
21
|
+
calc(var(--icon-md-size) + 2 * var(--spacing-xs)); /*Padding in the input*/
|
|
17
22
|
//--dp-menu-min-width: 260px; /*Adjust the min width of the menu*/
|
|
18
23
|
--dp-action-buttons-padding: 2px 5px; /*Adjust padding for the action buttons in action row*/
|
|
19
|
-
--dp-row-maring: var(
|
|
24
|
+
--dp-row-maring: var(
|
|
25
|
+
--spacing-3xs
|
|
26
|
+
); /*Adjust the spacing between rows in the calendar*/
|
|
20
27
|
--dp-calendar-header-cell-padding: 0.5rem; /*Adjust padding in calendar header cells*/
|
|
21
28
|
--dp-two-calendars-spacing: 10px; /*Space between multiple calendars*/
|
|
22
29
|
--dp-overlay-col-padding: 3px; /*Padding in the overlay column*/
|
|
@@ -29,7 +36,12 @@
|
|
|
29
36
|
|
|
30
37
|
/*Transitions*/
|
|
31
38
|
--dp-animation-duration: var(--transition); /*Transition duration*/
|
|
32
|
-
--dp-menu-appear-transition-timing: cubic-bezier(
|
|
39
|
+
--dp-menu-appear-transition-timing: cubic-bezier(
|
|
40
|
+
0.4,
|
|
41
|
+
0,
|
|
42
|
+
1,
|
|
43
|
+
1
|
|
44
|
+
); /*Timing on menu appear animation*/
|
|
33
45
|
--dp-transition-timing: ease-out; /*Timing on slide animations*/
|
|
34
46
|
}
|
|
35
47
|
|
|
@@ -46,14 +46,10 @@
|
|
|
46
46
|
/>
|
|
47
47
|
</template>
|
|
48
48
|
<template #arrow-left>
|
|
49
|
-
<wt-icon-btn
|
|
50
|
-
icon="arrow-left"
|
|
51
|
-
/>
|
|
49
|
+
<wt-icon-btn icon="arrow-left" />
|
|
52
50
|
</template>
|
|
53
51
|
<template #arrow-right>
|
|
54
|
-
<wt-icon-btn
|
|
55
|
-
icon="arrow-right"
|
|
56
|
-
/>
|
|
52
|
+
<wt-icon-btn icon="arrow-right" />
|
|
57
53
|
</template>
|
|
58
54
|
<template
|
|
59
55
|
v-if="isDateTime"
|
|
@@ -83,7 +79,6 @@ import '@vuepic/vue-datepicker/dist/main.css';
|
|
|
83
79
|
import { computed, ref } from 'vue';
|
|
84
80
|
|
|
85
81
|
const props = defineProps({
|
|
86
|
-
|
|
87
82
|
/**
|
|
88
83
|
* [`'date'`, `'datetime'`]
|
|
89
84
|
* */
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<hr
|
|
2
|
+
<hr
|
|
3
|
+
class="wt-divider"
|
|
4
|
+
:class="`wt-divider-${variant}`"
|
|
5
|
+
/>
|
|
3
6
|
</template>
|
|
4
7
|
|
|
5
8
|
<script>
|
|
@@ -10,7 +13,7 @@ export default {
|
|
|
10
13
|
type: String,
|
|
11
14
|
default: 'horizontal',
|
|
12
15
|
},
|
|
13
|
-
}
|
|
16
|
+
},
|
|
14
17
|
};
|
|
15
18
|
</script>
|
|
16
19
|
|
|
@@ -19,7 +22,6 @@ export default {
|
|
|
19
22
|
</style>
|
|
20
23
|
|
|
21
24
|
<style lang="scss" scoped>
|
|
22
|
-
|
|
23
25
|
.wt-divider {
|
|
24
26
|
display: block;
|
|
25
27
|
box-sizing: border-box;
|
|
@@ -34,7 +34,7 @@ describe('WtDualPanel', () => {
|
|
|
34
34
|
it('renders dual panel side panel via side panel slot', () => {
|
|
35
35
|
const content = 'Dual Panel side panel';
|
|
36
36
|
const wrapper = shallowMount(WtDualPanel, {
|
|
37
|
-
slots: {
|
|
37
|
+
slots: { side: content },
|
|
38
38
|
});
|
|
39
39
|
expect(wrapper.find('.wt-dual-panel__side-panel').text()).toBe(content);
|
|
40
40
|
});
|
|
@@ -42,7 +42,7 @@ describe('WtDualPanel', () => {
|
|
|
42
42
|
it('renders dual panel main panel via main panel slot', () => {
|
|
43
43
|
const content = 'Dual Panel main panel';
|
|
44
44
|
const wrapper = shallowMount(WtDualPanel, {
|
|
45
|
-
slots: {
|
|
45
|
+
slots: { main: content },
|
|
46
46
|
});
|
|
47
47
|
expect(wrapper.find('.wt-dual-panel__main-panel').text()).toBe(content);
|
|
48
48
|
});
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
<div class="wt-dual-panel__content">
|
|
13
13
|
<div
|
|
14
|
-
:class="[
|
|
15
|
-
`wt-dual-panel__side-panel--${sidePanelSize}`
|
|
16
|
-
]"
|
|
14
|
+
:class="[`wt-dual-panel__side-panel--${sidePanelSize}`]"
|
|
17
15
|
class="wt-dual-panel__side-panel"
|
|
18
16
|
>
|
|
19
17
|
<wt-icon-action
|
|
@@ -57,7 +55,9 @@ const toggleSidePanel = () => {
|
|
|
57
55
|
emit('update:side-panel-size', sidePanelSize.value);
|
|
58
56
|
};
|
|
59
57
|
|
|
60
|
-
const sidePanelSize = computed(() =>
|
|
58
|
+
const sidePanelSize = computed(() =>
|
|
59
|
+
sidePanelCollapsed.value ? ComponentSize.SM : ComponentSize.MD,
|
|
60
|
+
);
|
|
61
61
|
</script>
|
|
62
62
|
|
|
63
63
|
<style lang="scss">
|
|
@@ -91,7 +91,8 @@ $side-panel-md-width: 320px;
|
|
|
91
91
|
flex: 1 1 auto;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
&__header,
|
|
94
|
+
&__header,
|
|
95
|
+
&__actions-panel {
|
|
95
96
|
flex: 0 0 auto;
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
<!-- @slot for custom media, replaces image
|
|
11
11
|
@scope `{ size: mediaSize }`
|
|
12
12
|
-->
|
|
13
|
-
<slot
|
|
13
|
+
<slot
|
|
14
|
+
name="media"
|
|
15
|
+
v-bind="{ size: mediaSize }"
|
|
16
|
+
>
|
|
14
17
|
<wt-image
|
|
15
18
|
:size="mediaSize"
|
|
16
19
|
:src="image"
|
|
@@ -23,45 +26,50 @@
|
|
|
23
26
|
v-if="showHeadline || showTitle || showText"
|
|
24
27
|
class="wt-empty__info"
|
|
25
28
|
>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<!-- @slot for custom headline, replaces headline
|
|
29
|
+
<h2
|
|
30
|
+
v-if="showHeadline"
|
|
31
|
+
class="wt-empty__headline"
|
|
32
|
+
>
|
|
33
|
+
<!-- @slot for custom headline, replaces headline
|
|
33
34
|
@scope `{ headline }`
|
|
34
35
|
-->
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
class="wt-empty__title"
|
|
43
|
-
>
|
|
36
|
+
<slot
|
|
37
|
+
name="headline"
|
|
38
|
+
v-bind="{ headline }"
|
|
39
|
+
>
|
|
40
|
+
{{ headline }}
|
|
41
|
+
</slot>
|
|
42
|
+
</h2>
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
<h3
|
|
45
|
+
v-if="showTitle"
|
|
46
|
+
class="wt-empty__title"
|
|
47
|
+
>
|
|
48
|
+
<!-- @slot for custom title, replaces title
|
|
46
49
|
@scope `{ title }`
|
|
47
50
|
-->
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
class="wt-empty__text"
|
|
56
|
-
>
|
|
51
|
+
<slot
|
|
52
|
+
name="title"
|
|
53
|
+
v-bind="{ title }"
|
|
54
|
+
>
|
|
55
|
+
{{ title }}
|
|
56
|
+
</slot>
|
|
57
|
+
</h3>
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
<p
|
|
60
|
+
v-if="showText"
|
|
61
|
+
class="wt-empty__text"
|
|
62
|
+
>
|
|
63
|
+
<!-- @slot for custom text, replaces text
|
|
59
64
|
@scope `{ text }`
|
|
60
65
|
-->
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
<slot
|
|
67
|
+
name="text"
|
|
68
|
+
v-bind="{ text }"
|
|
69
|
+
>
|
|
70
|
+
{{ text }}
|
|
71
|
+
</slot>
|
|
72
|
+
</p>
|
|
65
73
|
</div>
|
|
66
74
|
|
|
67
75
|
<!-- @slot custom content, between text and actions
|
|
@@ -80,7 +88,6 @@
|
|
|
80
88
|
name="actions"
|
|
81
89
|
v-bind="{ onPrimaryClick, onSecondaryClick }"
|
|
82
90
|
>
|
|
83
|
-
|
|
84
91
|
<!-- @slot for custom primary action, replaces primaryAction
|
|
85
92
|
@scope `{ onPrimaryClick }`
|
|
86
93
|
-->
|
|
@@ -137,7 +144,8 @@ const props = defineProps({
|
|
|
137
144
|
size: {
|
|
138
145
|
type: String,
|
|
139
146
|
default: ComponentSize.MD,
|
|
140
|
-
validator: (v) =>
|
|
147
|
+
validator: (v) =>
|
|
148
|
+
[ComponentSize.SM, ComponentSize.MD, ComponentSize.LG].includes(v),
|
|
141
149
|
},
|
|
142
150
|
/**
|
|
143
151
|
* shown only if prop or slot is provided
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@keypress.enter="toggle"
|
|
11
11
|
>
|
|
12
12
|
<slot name="title" />
|
|
13
|
-
<div
|
|
13
|
+
<div class="wt-expansion-panel-actions">
|
|
14
14
|
<slot
|
|
15
15
|
name="actions"
|
|
16
16
|
v-bind="{ open, opened }"
|
|
@@ -22,12 +22,8 @@
|
|
|
22
22
|
/>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
<wt-expand-transition
|
|
26
|
-
|
|
27
|
-
>
|
|
28
|
-
<div
|
|
29
|
-
class="wt-expansion-panel-body"
|
|
30
|
-
>
|
|
25
|
+
<wt-expand-transition v-show="opened">
|
|
26
|
+
<div class="wt-expansion-panel-body">
|
|
31
27
|
<slot />
|
|
32
28
|
</div>
|
|
33
29
|
</wt-expand-transition>
|
|
@@ -121,7 +117,6 @@ watch(
|
|
|
121
117
|
|
|
122
118
|
&--opened {
|
|
123
119
|
transform: rotate(90deg);
|
|
124
|
-
|
|
125
120
|
}
|
|
126
121
|
}
|
|
127
122
|
|
|
@@ -8,15 +8,23 @@ describe('Filters Panel Wrapper', () => {
|
|
|
8
8
|
});
|
|
9
9
|
it('emits "reset" event at wt-table-actions "filterReset" event', () => {
|
|
10
10
|
const wrapper = shallowMount(FiltersPanelWrapper);
|
|
11
|
-
wrapper
|
|
11
|
+
wrapper
|
|
12
|
+
.findComponent({ name: 'wt-table-actions' })
|
|
13
|
+
.vm.$emit('input', 'filterReset');
|
|
12
14
|
expect(wrapper.emitted().reset).toBeTruthy();
|
|
13
15
|
});
|
|
14
16
|
it(`toggles "filters-panel-wrapper--opened" class at
|
|
15
17
|
wt-table-actions "settings" event`, async () => {
|
|
16
18
|
const wrapper = shallowMount(FiltersPanelWrapper);
|
|
17
|
-
expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(
|
|
18
|
-
|
|
19
|
+
expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(
|
|
20
|
+
false,
|
|
21
|
+
);
|
|
22
|
+
wrapper
|
|
23
|
+
.findComponent({ name: 'wt-table-actions' })
|
|
24
|
+
.vm.$emit('input', 'settings');
|
|
19
25
|
await wrapper.vm.$nextTick();
|
|
20
|
-
expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(
|
|
26
|
+
expect(wrapper.classes().includes('filters-panel-wrapper--opened')).toBe(
|
|
27
|
+
true,
|
|
28
|
+
);
|
|
21
29
|
});
|
|
22
30
|
});
|
|
@@ -79,7 +79,8 @@ $filter-width: 230px;
|
|
|
79
79
|
$filter-gap: 10px; // var(--spacing-xs)
|
|
80
80
|
@function filters-width($num) {
|
|
81
81
|
// 1px corrects max width
|
|
82
|
-
@return ($filter-width * $num) + $filter-gap * $num + $width-except-filters -
|
|
82
|
+
@return ($filter-width * $num) + $filter-gap * $num + $width-except-filters -
|
|
83
|
+
1px;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
.filters-wrap {
|
|
@@ -93,7 +94,7 @@ $filter-gap: 10px; // var(--spacing-xs)
|
|
|
93
94
|
& {
|
|
94
95
|
grid-template-columns: repeat(6, 1fr);
|
|
95
96
|
|
|
96
|
-
> *:nth-child(n+7) {
|
|
97
|
+
> *:nth-child(n + 7) {
|
|
97
98
|
display: none;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
@@ -102,7 +103,7 @@ $filter-gap: 10px; // var(--spacing-xs)
|
|
|
102
103
|
& {
|
|
103
104
|
grid-template-columns: repeat(5, 1fr);
|
|
104
105
|
|
|
105
|
-
:deep(> *:nth-child(n+6)) {
|
|
106
|
+
:deep(> *:nth-child(n + 6)) {
|
|
106
107
|
display: none;
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -112,7 +113,7 @@ $filter-gap: 10px; // var(--spacing-xs)
|
|
|
112
113
|
& {
|
|
113
114
|
grid-template-columns: repeat(4, 1fr);
|
|
114
115
|
|
|
115
|
-
:deep(> *:nth-child(n+5)) {
|
|
116
|
+
:deep(> *:nth-child(n + 5)) {
|
|
116
117
|
display: none;
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -122,7 +123,7 @@ $filter-gap: 10px; // var(--spacing-xs)
|
|
|
122
123
|
& {
|
|
123
124
|
grid-template-columns: repeat(3, 1fr);
|
|
124
125
|
|
|
125
|
-
:deep(> *:nth-child(n+4)) {
|
|
126
|
+
:deep(> *:nth-child(n + 4)) {
|
|
126
127
|
display: none;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
@@ -132,7 +133,7 @@ $filter-gap: 10px; // var(--spacing-xs)
|
|
|
132
133
|
& {
|
|
133
134
|
grid-template-columns: repeat(2, 1fr);
|
|
134
135
|
|
|
135
|
-
:deep(> *:nth-child(n+3)) {
|
|
136
|
+
:deep(> *:nth-child(n + 3)) {
|
|
136
137
|
display: none;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
@@ -142,7 +143,7 @@ $filter-gap: 10px; // var(--spacing-xs)
|
|
|
142
143
|
& {
|
|
143
144
|
grid-template-columns: repeat(1, 1fr);
|
|
144
145
|
|
|
145
|
-
:deep(> *:nth-child(n+2)) {
|
|
146
|
+
:deep(> *:nth-child(n + 2)) {
|
|
146
147
|
display: none;
|
|
147
148
|
}
|
|
148
149
|
}
|
|
@@ -24,14 +24,15 @@ const props = defineProps({
|
|
|
24
24
|
action: {
|
|
25
25
|
type: String,
|
|
26
26
|
required: true,
|
|
27
|
-
validator: (v) =>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
validator: (v) =>
|
|
28
|
+
Object.values([
|
|
29
|
+
IconAction.DELETE,
|
|
30
|
+
IconAction.EDIT,
|
|
31
|
+
IconAction.ADD,
|
|
32
|
+
IconAction.HISTORY,
|
|
33
|
+
IconAction.DOWNLOAD,
|
|
34
|
+
IconAction.REFRESH,
|
|
35
|
+
]).includes(v),
|
|
35
36
|
},
|
|
36
37
|
disabled: {
|
|
37
38
|
type: Boolean,
|
|
@@ -47,7 +48,9 @@ const iconAction = computed(() => {
|
|
|
47
48
|
const data = IActionData[props.action];
|
|
48
49
|
|
|
49
50
|
if (!data) {
|
|
50
|
-
console.error(
|
|
51
|
+
console.error(
|
|
52
|
+
`Unknown action for wt-icon-action component: ${props.action}`,
|
|
53
|
+
);
|
|
51
54
|
return { icon: 'edit', hint: props.action };
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -55,6 +58,4 @@ const iconAction = computed(() => {
|
|
|
55
58
|
});
|
|
56
59
|
</script>
|
|
57
60
|
|
|
58
|
-
<style lang="scss" scoped>
|
|
59
|
-
|
|
60
|
-
</style>
|
|
61
|
+
<style lang="scss" scoped></style>
|
|
@@ -17,15 +17,13 @@
|
|
|
17
17
|
<script setup lang="ts">
|
|
18
18
|
import WtIcon from '../wt-icon/wt-icon.vue';
|
|
19
19
|
|
|
20
|
-
const {
|
|
21
|
-
disabled
|
|
22
|
-
} = defineProps<{
|
|
23
|
-
disabled?: boolean
|
|
20
|
+
const { disabled = false } = defineProps<{
|
|
21
|
+
disabled?: boolean;
|
|
24
22
|
}>();
|
|
25
23
|
|
|
26
24
|
const emit = defineEmits<{
|
|
27
|
-
click: MouseEvent[]
|
|
28
|
-
mousedown: MouseEvent[]
|
|
25
|
+
click: MouseEvent[];
|
|
26
|
+
mousedown: MouseEvent[];
|
|
29
27
|
}>();
|
|
30
28
|
</script>
|
|
31
29
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:style="{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
width,
|
|
5
|
+
height,
|
|
6
|
+
minWidth,
|
|
7
|
+
minHeight,
|
|
8
|
+
maxWidth,
|
|
9
|
+
maxHeight,
|
|
10
10
|
}"
|
|
11
11
|
class="wt-image"
|
|
12
12
|
>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:alt="alt"
|
|
19
19
|
:src="src"
|
|
20
20
|
class="wt-image__img"
|
|
21
|
-
|
|
21
|
+
/>
|
|
22
22
|
</slot>
|
|
23
23
|
</div>
|
|
24
24
|
</template>
|
|
@@ -29,11 +29,11 @@ import { computed } from 'vue';
|
|
|
29
29
|
const sizeToUnits = {
|
|
30
30
|
'3xs': '32px',
|
|
31
31
|
'2xs': '64px',
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
xs: '92px',
|
|
33
|
+
sm: '128px',
|
|
34
|
+
md: '192px',
|
|
35
|
+
lg: '256px',
|
|
36
|
+
xl: '380px',
|
|
37
37
|
'2xl': '512px',
|
|
38
38
|
'3xl': '600px',
|
|
39
39
|
};
|
|
@@ -51,7 +51,8 @@ const props = defineProps({
|
|
|
51
51
|
type: String,
|
|
52
52
|
// default: 'md',
|
|
53
53
|
// required: true,
|
|
54
|
-
validator: (v) =>
|
|
54
|
+
validator: (v) =>
|
|
55
|
+
['3xs', '2xs', 'xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'].includes(v),
|
|
55
56
|
},
|
|
56
57
|
alt: {
|
|
57
58
|
type: String,
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:class="[
|
|
4
|
-
`wt-indicator--size-${size}`
|
|
5
|
-
]"
|
|
3
|
+
:class="[`wt-indicator--size-${size}`]"
|
|
6
4
|
class="wt-indicator"
|
|
7
5
|
>
|
|
8
6
|
<span
|
|
9
|
-
:class="[
|
|
10
|
-
`wt-indicator__indicator--${color}`,
|
|
11
|
-
]"
|
|
7
|
+
:class="[`wt-indicator__indicator--${color}`]"
|
|
12
8
|
class="wt-indicator__indicator"
|
|
13
9
|
/>
|
|
14
10
|
<div
|
|
@@ -67,7 +63,6 @@ export default {
|
|
|
67
63
|
},
|
|
68
64
|
},
|
|
69
65
|
|
|
70
|
-
|
|
71
66
|
computed: {
|
|
72
67
|
isText() {
|
|
73
68
|
return this.text !== undefined && this.text !== null && this.text !== '';
|