@webitel/ui-sdk 0.1.2-vue3 → 0.1.3-vite
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/README.md +1 -1
- package/dist/img/sprite/arrow-mix.svg +5 -0
- package/dist/img/sprite/azure.svg +19 -0
- package/dist/img/sprite/email.svg +3 -0
- package/dist/img/sprite/index.js +1 -1
- package/dist/img/sprite/meta.svg +17 -0
- package/dist/img/sprite/options.svg +5 -0
- package/dist/img/sprite/role.svg +3 -0
- package/dist/img/sprite/scorecard.svg +4 -0
- package/dist/img/sprite/user.svg +3 -0
- package/dist/ui-sdk.common.js +36361 -11605
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +36342 -11586
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +27 -4
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +24 -8
- package/src/api/axios/generateInstance.js +25 -0
- package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.js +6 -0
- package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.js +9 -0
- package/src/api/defaults/index.js +7 -0
- package/src/api/interceptors/request/updateToken.interceptor.js +10 -0
- package/src/api/interceptors/response/handleUnauthorized.interceptor.js +12 -0
- package/src/api/transformers/applyTransform.js +8 -0
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +4 -0
- package/src/api/transformers/generateUrl/generateUrl.transformer.js +13 -0
- package/src/api/transformers/index.js +23 -0
- package/src/api/transformers/log/log.transformer.js +6 -0
- package/src/api/transformers/merge/merge.transformer.js +5 -0
- package/src/api/transformers/mergeEach/mergeEach.transformer.js +8 -0
- package/src/api/transformers/notify/notify.transformer.js +32 -0
- package/src/api/transformers/sanitize/sanitize.transformer.js +12 -0
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +4 -0
- package/src/api/transformers/starToSearch/starToSearch.transformer.js +12 -0
- package/src/components/index.js +63 -55
- package/src/components/on-demand/wt-cc-agent-status-timers/__tests__/wt-cc-agent-status-timers.spec.js +25 -0
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +48 -0
- package/src/components/transitions/wt-expand-transition.vue +41 -39
- package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppNavigator.spec.js +2 -2
- package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtHeaderActions.spec.js +1 -1
- package/src/{css/components/organisms → components}/wt-app-header/_variables.scss +3 -2
- package/src/components/wt-app-header/wt-app-header.vue +29 -0
- package/src/components/{organisms/wt-app-header → wt-app-header}/wt-app-navigator.vue +69 -40
- package/src/components/wt-avatar/_variables.scss +32 -0
- package/src/components/wt-avatar/wt-avatar.vue +187 -0
- package/src/components/{atoms/wt-badge → wt-badge}/wt-badge.vue +20 -13
- package/src/components/wt-button/Readme.md +23 -0
- package/src/components/{atoms/wt-button → wt-button}/__tests__/WtButton.spec.js +1 -1
- package/src/components/wt-button/_variables.scss +41 -0
- package/src/components/wt-button/wt-button.vue +205 -0
- package/src/components/wt-button-select/Readme.md +13 -0
- package/src/components/{molecules/wt-button-select → wt-button-select}/__tests__/WtButtonSelect.spec.js +16 -5
- package/src/components/wt-button-select/_variables.scss +7 -0
- package/src/components/wt-button-select/wt-button-select.vue +130 -0
- package/src/components/{molecules/wt-checkbox → wt-checkbox}/__tests__/WtCheckbox.spec.js +6 -6
- package/src/components/wt-checkbox/wt-checkbox.vue +191 -0
- package/src/{css/components/atoms → components}/wt-chip/wt-chip.scss +1 -1
- package/src/components/wt-chip/wt-chip.vue +24 -0
- package/src/components/{atoms/wt-context-menu → wt-context-menu}/__tests__/WtContextMenu.spec.js +1 -1
- package/src/{css/components/atoms → components}/wt-context-menu/_variables.scss +2 -0
- package/src/components/{atoms/wt-context-menu → wt-context-menu}/wt-context-menu.vue +68 -42
- package/src/components/{molecules/wt-datepicker → wt-datepicker}/__tests__/WtDatepicker.spec.js +4 -4
- package/src/components/wt-datepicker/_variables.scss +56 -0
- package/src/components/wt-datepicker/wt-datepicker.vue +240 -0
- package/src/components/wt-divider/wt-divider.vue +30 -0
- package/src/components/wt-dummy/__tests__/WtDummy.spec.js +9 -0
- package/src/components/wt-dummy/wt-dummy.vue +73 -0
- package/src/components/{organisms/wt-error-page → wt-error-page}/__tests__/wt-error-page.spec.js +3 -3
- package/src/components/{organisms/wt-error-page → wt-error-page}/wt-error-page.vue +2 -2
- package/src/components/wt-expansion-panel/__tests__/WtExpansionPanel.spec.js +9 -0
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +67 -0
- package/src/components/{organisms/wt-filters-panel-wrapper → wt-filters-panel-wrapper}/wt-filters-panel-wrapper.vue +6 -6
- package/src/components/{organisms/wt-headline → wt-headline}/wt-headline.vue +5 -0
- package/src/components/wt-headline-nav/Readme.md +9 -0
- package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/__tests__/wt-headline-nav.spec.js +1 -1
- package/src/components/wt-headline-nav/_variables.scss +8 -0
- package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/wt-headline-nav.vue +41 -29
- package/src/components/{molecules/wt-hint → wt-hint}/wt-hint.vue +7 -1
- package/src/components/wt-icon/Readme.md +327 -0
- package/src/components/{atoms/wt-icon → wt-icon}/__tests__/WtIcon.spec.js +2 -2
- package/src/components/wt-icon/_variables.scss +31 -0
- package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
- package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
- package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
- package/src/components/wt-icon/wt-icon.vue +172 -0
- package/src/components/wt-icon-action/__tests__/WtIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/__tests__/WtAddIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/__tests__/WtDeleteIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/__tests__/WtDownloadIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/__tests__/WtEditIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/__tests__/WtHistoryIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/__tests__/WtRefreshIconAction.spec.js +9 -0
- package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +27 -0
- package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +27 -0
- package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +27 -0
- package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +27 -0
- package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +27 -0
- package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +27 -0
- package/src/components/wt-icon-action/wt-icon-action.vue +54 -0
- package/src/components/wt-icon-btn/Readme.md +10 -0
- package/src/components/{molecules/wt-icon-btn → wt-icon-btn}/__tests__/WtIconBtn.spec.js +2 -2
- package/src/components/wt-icon-btn/_variables.scss +9 -0
- package/src/components/wt-icon-btn/wt-icon-btn.vue +47 -0
- package/src/components/{atoms/wt-indicator → wt-indicator}/__tests__/WtIndicator.spec.js +2 -2
- package/src/{css/components/atoms → components}/wt-indicator/_variables.scss +3 -3
- package/src/components/{atoms/wt-indicator → wt-indicator}/wt-indicator.vue +5 -0
- package/src/components/{molecules/wt-input → wt-input}/__tests__/WtInput.spec.js +3 -3
- package/src/components/{molecules/wt-input → wt-input}/wt-input.vue +40 -20
- package/src/{css/components/atoms → components}/wt-input-info/_variables.scss +2 -2
- package/src/components/wt-input-info/wt-input-info.vue +40 -0
- package/src/components/wt-item-link/__tests__/WtItemLink.spec.js +9 -0
- package/src/components/wt-item-link/wt-item-link.vue +57 -0
- package/src/components/{molecules/wt-label → wt-label}/wt-label.vue +5 -0
- package/src/components/{molecules/wt-load-bar → wt-load-bar}/wt-load-bar.vue +7 -2
- package/src/{css/components/atoms → components}/wt-loader/_variables.scss +2 -2
- package/src/components/{atoms/wt-loader → wt-loader}/wt-loader.vue +22 -17
- package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/__tests__/WtNavigationBar.spec.js +22 -18
- package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/wt-navigation-bar.vue +27 -16
- package/src/components/{molecules/wt-notification → wt-notification}/__tests__/WtNotification.spec.js +1 -1
- package/src/components/wt-notification/wt-notification.vue +86 -0
- package/src/components/{organisms/wt-notifications-bar → wt-notifications-bar}/__tests__/WtNotificationsBar.spec.js +6 -6
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +78 -0
- package/src/components/wt-page-header/__tests__/wt-page-header.spec.js +9 -0
- package/src/components/wt-page-header/wt-page-header.vue +83 -0
- package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/wt-page-wrapper.vue +6 -0
- package/src/components/{organisms/wt-pagination → wt-pagination}/__tests__/WtPagination.spec.js +2 -1
- package/src/components/{organisms/wt-pagination → wt-pagination}/wt-pagination.vue +7 -1
- package/src/{css/components/organisms → components}/wt-player/_variables.scss +1 -1
- package/src/components/{organisms/wt-player → wt-player}/wt-player.vue +10 -5
- package/src/components/{molecules/wt-popup → wt-popup}/wt-popup.vue +5 -0
- package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/__tests__/WtProgressBar.spec.js +2 -2
- package/src/{css/components/molecules → components}/wt-progress-bar/_variables.scss +2 -2
- package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/wt-progress-bar.vue +13 -3
- package/src/components/{molecules/wt-radio → wt-radio}/__tests__/WtRadio.spec.js +6 -6
- package/src/components/wt-radio/wt-radio.vue +180 -0
- package/src/components/wt-rounded-action/Readme.md +68 -0
- package/src/components/{atoms/wt-rounded-action → wt-rounded-action}/__tests__/WtRoundedAction.spec.js +1 -1
- package/src/components/wt-rounded-action/_variables.scss +14 -0
- package/src/components/wt-rounded-action/wt-rounded-action.vue +139 -0
- package/src/components/{molecules/wt-search-bar → wt-search-bar}/__tests__/WtSearchBar.spec.js +9 -0
- package/src/components/wt-search-bar/wt-search-bar.vue +222 -0
- package/src/components/{molecules/wt-select → wt-select}/__tests__/WtSelect.spec.js +3 -3
- package/src/components/{molecules/wt-select → wt-select}/mixins/__tests__/multiselectMixin.spec.js +4 -4
- package/src/components/{molecules/wt-select → wt-select}/mixins/multiselectMixin.js +9 -4
- package/src/components/{molecules/wt-select → wt-select}/wt-select.vue +23 -9
- package/src/components/{molecules/wt-slider → wt-slider}/wt-slider.vue +8 -3
- package/src/components/{organisms/wt-status-select → wt-status-select}/__tests__/WtStatusSelect.spec.js +1 -1
- package/src/components/{organisms/wt-status-select → wt-status-select}/_internals/StatusOptions.lookup.js +1 -1
- package/src/components/{organisms/wt-status-select → wt-status-select}/wt-status-select.vue +27 -23
- package/src/components/wt-stepper/__tests__/WtStepper.spec.vue.js +18 -0
- package/src/components/wt-stepper/wt-stepper.vue +89 -0
- package/src/components/{molecules/wt-switcher → wt-switcher}/__tests__/WtSwitcher.spec.js +5 -5
- package/src/components/wt-switcher/wt-switcher.vue +191 -0
- package/src/components/{organisms/wt-table → wt-table}/__tests__/WtTable.spec.js +11 -11
- package/src/components/{organisms/wt-table → wt-table}/wt-table.vue +20 -3
- package/src/components/{organisms/wt-table-actions → wt-table-actions}/wt-table-actions.vue +5 -0
- package/src/components/{organisms/wt-table-column-select → wt-table-column-select}/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/src/components/wt-table-column-select/wt-table-column-select.vue +178 -0
- package/src/components/{molecules/wt-tabs → wt-tabs}/__tests__/WtTabs.spec.js +3 -3
- package/src/{css/components/molecules → components}/wt-tabs/_variables.scss +1 -1
- package/src/components/{molecules/wt-tabs → wt-tabs}/wt-tabs.vue +9 -1
- package/src/components/{molecules/wt-tags-input → wt-tags-input}/__tests__/WtTagsInput.spec.js +7 -7
- package/src/components/{molecules/wt-tags-input → wt-tags-input}/wt-tags-input.vue +18 -7
- package/src/components/{molecules/wt-textarea → wt-textarea}/__tests__/WtTextarea.spec.js +4 -4
- package/src/components/wt-textarea/wt-textarea.vue +223 -0
- package/src/components/{molecules/wt-time-input → wt-time-input}/__tests__/WtTimeInput.spec.js +3 -3
- package/src/components/wt-time-input/wt-time-input.vue +187 -0
- package/src/components/{molecules/wt-timepicker → wt-timepicker}/__tests__/WtTimepicker.spec.js +13 -13
- package/src/components/{molecules/wt-timepicker → wt-timepicker}/wt-timepicker.vue +13 -5
- package/src/components/{atoms/wt-tooltip → wt-tooltip}/__tests__/WtTooltip.spec.js +1 -1
- package/src/components/wt-tooltip/_internals/useTooltipTriggerSubscriptions.js +68 -0
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +48 -0
- package/src/components/wt-tooltip/_variables.scss +11 -0
- package/src/components/wt-tooltip/wt-tooltip.vue +150 -0
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +14 -0
- package/src/composables/useCachedInterval/useCachedInterval.js +21 -0
- package/src/composables/useDestroyableSortable/useDestroyableSortable.js +66 -0
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +83 -0
- package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +37 -0
- package/src/css/main.scss +0 -3
- package/src/css/styleguide/colors/_colors.scss +177 -147
- package/src/css/styleguide/colors/_deprecated.scss +151 -0
- package/src/css/styleguide/colors/_palette.scss +358 -0
- package/src/directives/clickaway/clickaway.js +3 -0
- package/src/directives/index.js +7 -0
- package/src/enums/WebitelApplications/AdminSections.enum.js +4 -0
- package/src/enums/WebitelApplications/AuditorSections.enum.js +5 -0
- package/src/enums/WebitelApplications/CrmSections.enum.js +5 -0
- package/src/enums/WebitelApplications/WebitelApplications.enum.js +1 -0
- package/src/locale/.DS_Store +0 -0
- package/src/locale/en/en.js +96 -13
- package/src/locale/es/es.js +282 -0
- package/src/locale/i18n.js +4 -0
- package/src/locale/ru/ru.js +97 -12
- package/src/locale/ua/ua.js +98 -13
- package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +5 -7
- package/src/mixins/dataFilterMixins/__tests__/enumFilterMixin.spec.js +17 -13
- package/src/mixins/dataFilterMixins/__tests__/paginationFilterMixin.spec.js +23 -31
- package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +12 -15
- package/src/mixins/dataFilterMixins/__tests__/urlControllerMixin.spec.js +12 -12
- package/src/mixins/dataFilterMixins/_urlControllerMixin/_urlControllerMixin.js +2 -2
- package/src/mixins/dataFilterMixins/paginationFilterMixin.js +3 -3
- package/src/mixins/dataFilterMixins/sortFilterMixin.js +2 -2
- package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +5 -5
- package/src/mixins/validationMixin/useValidation.js +41 -0
- package/src/mixins/validationMixin/validationMixin.js +17 -12
- package/src/modules/AgentStatusSelect/api/agent-status.js +24 -0
- package/src/modules/AgentStatusSelect/api/pause-cause.js +47 -0
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +83 -0
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-pause-cause-popup.spec.js +18 -0
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +122 -0
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +55 -0
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +107 -0
- package/src/modules/AuditForm/components/__tests__/audit-form-question-read-wrapper.spec.js +14 -0
- package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +60 -0
- package/src/modules/AuditForm/components/__tests__/audit-form-question.spec.js +14 -0
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +70 -0
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +132 -0
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +154 -0
- package/src/modules/AuditForm/components/audit-form-question.vue +136 -0
- package/src/modules/AuditForm/components/audit-form.vue +183 -0
- package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options-write-row.spec.js +24 -0
- package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options.spec.js +45 -0
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +89 -0
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +97 -0
- package/src/modules/AuditForm/components/questions/score/__tests__/audit-form-question-score.spec.js +30 -0
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +132 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionOptionsSchema.js +13 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +8 -0
- package/src/modules/AuditForm/schemas/AuditFormQuestionScoreSchema.js +8 -0
- package/src/modules/CardStoreModule/composables/useCardStore.js +55 -0
- package/src/modules/CardStoreModule/store/CardStoreModule.js +84 -0
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +87 -0
- package/src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.js +28 -0
- package/src/modules/FilesExport/FilesExport.js +4 -1
- package/src/modules/FilesExport/scripts/generateMediaURL.js +1 -1
- package/src/modules/Filters/classes/BaseFilterSchema.js +13 -0
- package/src/modules/Filters/components/filter-pagination.vue +61 -0
- package/src/modules/Filters/components/filter-table-fields.vue +61 -0
- package/src/modules/Filters/composables/useTableFilters.js +17 -0
- package/src/modules/Filters/restores/filterFieldsRestore.js +9 -0
- package/src/modules/Filters/restores/readme.md +1 -0
- package/src/modules/Filters/store/FiltersStoreModule.js +181 -0
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +10 -12
- package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +10 -12
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +12 -12
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +10 -12
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +10 -12
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +1 -1
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +1 -1
- package/src/modules/QueryFilters/components/filter-datetime.vue +4 -3
- package/src/modules/QueryFilters/components/filter-from-to.vue +15 -8
- package/src/modules/QueryFilters/components/filter-table-fields.vue +101 -0
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +11 -11
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +11 -13
- package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +18 -25
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +14 -9
- package/src/modules/QueryFilters/mixins/__tests__/urlControllerMixin.spec.js +12 -14
- package/src/modules/QueryFilters/mixins/_urlControllerMixin/_urlControllerMixin.js +2 -2
- package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +4 -4
- package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +21 -8
- package/src/modules/TableStoreModule/composables/useTableStore.js +58 -0
- package/src/modules/TableStoreModule/store/TableStoreModule.js +207 -0
- package/src/modules/Userinfo/api/auth.js +6 -4
- package/src/modules/Userinfo/api/userinfo.js +16 -4
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +27 -0
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +11 -12
- package/src/modules/Userinfo/components/the-auth.vue +2 -1
- package/src/modules/Userinfo/enums/Permissions.enum.js +7 -0
- package/src/modules/Userinfo/store/UserinfoStoreModule.js +41 -1
- package/src/plugins/breakpoint/breakpoint.plugin.js +5 -4
- package/src/scripts/__tests__/updateObject.spec.js +19 -0
- package/src/scripts/caseConverters.js +2 -2
- package/src/scripts/debounce.js +3 -9
- package/src/scripts/eventBus.js +7 -3
- package/src/scripts/updateObject.js +6 -0
- package/src/store/BaseStoreModules/ApiStoreModule.js +93 -0
- package/src/store/ReactiveNowStoreModule/ReactiveNowStoreModule.js +27 -0
- package/src/validators/decimalValidator.js +9 -0
- package/src/validators/domainValidator.js +5 -0
- package/src/components/atoms/wt-avatar/wt-avatar.vue +0 -102
- package/src/components/atoms/wt-button/wt-button.vue +0 -288
- package/src/components/atoms/wt-chip/wt-chip.vue +0 -23
- package/src/components/atoms/wt-divider/wt-divider.vue +0 -25
- package/src/components/atoms/wt-icon/wt-icon.vue +0 -150
- package/src/components/atoms/wt-input-info/wt-input-info.vue +0 -35
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +0 -156
- package/src/components/atoms/wt-tooltip/wt-tooltip.vue +0 -48
- package/src/components/molecules/wt-button-select/wt-button-select.vue +0 -184
- package/src/components/molecules/wt-checkbox/wt-checkbox.vue +0 -179
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +0 -203
- package/src/components/molecules/wt-datetimepicker/__tests__/WtDatetimepicker.spec.js +0 -79
- package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +0 -300
- package/src/components/molecules/wt-icon-btn/wt-icon-btn.vue +0 -75
- package/src/components/molecules/wt-notification/wt-notification.vue +0 -75
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -170
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +0 -194
- package/src/components/molecules/wt-switcher/wt-switcher.vue +0 -182
- package/src/components/molecules/wt-textarea/wt-textarea.vue +0 -215
- package/src/components/molecules/wt-time-input/wt-time-input.vue +0 -190
- package/src/components/organisms/wt-app-header/wt-app-header.vue +0 -24
- package/src/components/organisms/wt-notifications-bar/wt-notifications-bar.vue +0 -71
- package/src/components/organisms/wt-table/__tests__/WtTableDeleteAction.spec.js +0 -9
- package/src/components/organisms/wt-table/__tests__/WtTableEditAction.spec.js +0 -9
- package/src/components/organisms/wt-table/table-cells/wt-table-delete-action.vue +0 -21
- package/src/components/organisms/wt-table/table-cells/wt-table-edit-action.vue +0 -22
- package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +0 -120
- package/src/css/components/_components.scss +0 -45
- package/src/css/components/atoms/wt-avatar/_variables.scss +0 -14
- package/src/css/components/atoms/wt-button/_variables.scss +0 -47
- package/src/css/components/atoms/wt-icon/_variables.scss +0 -8
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +0 -7
- package/src/css/components/atoms/wt-tooltip/_variables.scss +0 -29
- package/src/css/components/molecules/wt-button-select/_variables.scss +0 -18
- package/src/css/components/molecules/wt-datepicker/_variables.scss +0 -21
- package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +0 -90
- package/src/css/components/molecules/wt-datetimepicker/_variables.scss +0 -11
- package/src/css/components/molecules/wt-icon-btn/_variables.scss +0 -3
- package/src/css/components/organisms/wt-headline-nav/_variables.scss +0 -5
- /package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppHeader.spec.js +0 -0
- /package/src/components/{organisms/wt-app-header → wt-app-header}/wt-header-actions.vue +0 -0
- /package/src/components/{atoms/wt-avatar → wt-avatar}/__tests__/wt-avatar.spec.js +0 -0
- /package/src/components/{atoms/wt-badge → wt-badge}/__tests__/wt-badge.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-badge/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-checkbox/_variables.scss +0 -0
- /package/src/components/{atoms/wt-chip → wt-chip}/__tests__/WtChip.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-chip/_variables.scss +0 -0
- /package/src/components/{molecules/wt-copy-action → wt-copy-action}/__tests__/WtCopyAction.spec.js +0 -0
- /package/src/components/{molecules/wt-copy-action → wt-copy-action}/wt-copy-action.vue +0 -0
- /package/src/components/{atoms/wt-divider → wt-divider}/__tests__/WtDivider.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-divider/_variables.scss +0 -0
- /package/src/components/{organisms/wt-filters-panel-wrapper/__tests__/wt-filters-panel-wrapper.spec.js → wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js} +0 -0
- /package/src/components/{organisms/wt-headline → wt-headline}/__tests__/WtHeadline.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-headline/_variables.scss +0 -0
- /package/src/components/{molecules/wt-hint → wt-hint}/__tests__/WtHint.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-input/_variables.scss +0 -0
- /package/src/components/{atoms/wt-input-info → wt-input-info}/__tests__/WtInputInfo.spec.js +0 -0
- /package/src/components/{molecules/wt-label → wt-label}/__tests__/WtLabel.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-label/_variables.scss +0 -0
- /package/src/components/{molecules/wt-label → wt-label}/mixins/labelUsageMixin.js +0 -0
- /package/src/components/{molecules/wt-load-bar → wt-load-bar}/__tests__/WtLoadBar.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-load-bar/_variables.scss +0 -0
- /package/src/components/{atoms/wt-loader → wt-loader}/__tests__/WtLoader.spec.js +0 -0
- /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--md.vue +0 -0
- /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--sm.vue +0 -0
- /package/src/{css/components/organisms → components}/wt-navigation-bar/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-notification/_variables.scss +0 -0
- /package/src/{css/components/organisms → components}/wt-notifications-bar/_variables.scss +0 -0
- /package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/__tests__/WtPageWrapper.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-page-wrapper/_variables.scss +0 -0
- /package/src/{css/components/organisms → components}/wt-pagination/_variables.scss +0 -0
- /package/src/components/{organisms/wt-player → wt-player}/__tests__/WtPlayer.spec.js +0 -0
- /package/src/components/{molecules/wt-popup → wt-popup}/__tests__/WtPopup.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-popup/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-radio/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-search-bar/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-select/_multiselect.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-select/_variables.scss +0 -0
- /package/src/components/{molecules/wt-slider → wt-slider}/__tests__/WtSlider.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-slider/_variables.scss +0 -0
- /package/src/{css/components/organisms → components}/wt-status-select/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-switcher/_variables.scss +0 -0
- /package/src/components/{organisms/wt-table → wt-table}/_internals/getSortOrder.js +0 -0
- /package/src/{css/components/organisms → components}/wt-table/_variables.scss +0 -0
- /package/src/components/{organisms/wt-table-actions → wt-table-actions}/__tests__/WtTableActions.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-table-actions/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-tags-input/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-textarea/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-timepicker/_variables.scss +0 -0
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="wt-textarea"
|
|
4
|
-
:class="{
|
|
5
|
-
'wt-textarea--disabled': disabled,
|
|
6
|
-
'wt-textarea--invalid': invalid,
|
|
7
|
-
}"
|
|
8
|
-
>
|
|
9
|
-
<wt-label
|
|
10
|
-
:for="name"
|
|
11
|
-
:disabled="disabled"
|
|
12
|
-
:invalid="invalid"
|
|
13
|
-
v-bind="labelProps"
|
|
14
|
-
>
|
|
15
|
-
<!-- @slot Custom input label -->
|
|
16
|
-
<slot name="label" v-bind="{ label }">{{ requiredLabel }}</slot>
|
|
17
|
-
</wt-label>
|
|
18
|
-
<div class="wt-textarea__wrapper">
|
|
19
|
-
<textarea
|
|
20
|
-
:id="name"
|
|
21
|
-
ref="wt-textarea"
|
|
22
|
-
class="wt-textarea__textarea"
|
|
23
|
-
:value="value"
|
|
24
|
-
:placeholder="placeholder || label"
|
|
25
|
-
:disabled="disabled"
|
|
26
|
-
v-on="listeners"
|
|
27
|
-
></textarea>
|
|
28
|
-
<div class="wt-textarea__after-wrapper" ref="after-wrapper">
|
|
29
|
-
<slot name="after-input"></slot>
|
|
30
|
-
<wt-icon-btn
|
|
31
|
-
class="wt-textarea__reset-icon-btn"
|
|
32
|
-
:class="{ 'hidden': !value }"
|
|
33
|
-
icon="close--filled"
|
|
34
|
-
size="sm"
|
|
35
|
-
:disabled="disabled"
|
|
36
|
-
@click="$emit('input', '')"
|
|
37
|
-
></wt-icon-btn>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<wt-input-info
|
|
41
|
-
v-if="isValidation"
|
|
42
|
-
:invalid="invalid"
|
|
43
|
-
>{{ validationText }}
|
|
44
|
-
</wt-input-info>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
50
|
-
|
|
51
|
-
export default {
|
|
52
|
-
name: 'wt-textarea',
|
|
53
|
-
mixins: [validationMixin],
|
|
54
|
-
props: {
|
|
55
|
-
/**
|
|
56
|
-
* Current textarea value (`v-model`)
|
|
57
|
-
*/
|
|
58
|
-
value: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* textarea label
|
|
64
|
-
*/
|
|
65
|
-
label: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: '',
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* textarea placeholder
|
|
71
|
-
*/
|
|
72
|
-
placeholder: {
|
|
73
|
-
type: String,
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* Native textarea disabled attribute
|
|
77
|
-
*/
|
|
78
|
-
disabled: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false,
|
|
81
|
-
description: 'Native textarea disabled attribute',
|
|
82
|
-
},
|
|
83
|
-
/**
|
|
84
|
-
* textarea name
|
|
85
|
-
*/
|
|
86
|
-
name: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: '',
|
|
89
|
-
},
|
|
90
|
-
chatMode: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false,
|
|
93
|
-
},
|
|
94
|
-
labelProps: {
|
|
95
|
-
type: Object,
|
|
96
|
-
description: 'Object with props, passed down to wt-label as props',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
computed: {
|
|
101
|
-
listeners() {
|
|
102
|
-
return {
|
|
103
|
-
...this.$listeners,
|
|
104
|
-
input: (event) => this.$emit('input', event.target.value),
|
|
105
|
-
keypress: (event) => this.handleKeypress(event),
|
|
106
|
-
};
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
requiredLabel() {
|
|
110
|
-
return this.required ? `${this.label}*` : this.label;
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
methods: {
|
|
115
|
-
handleKeypress(event) {
|
|
116
|
-
if (!this.chatMode) return;
|
|
117
|
-
if (event.key === 'Enter' && !event.shiftKey) {
|
|
118
|
-
this.$emit('enter');
|
|
119
|
-
event.preventDefault();
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
updateInputPaddings() {
|
|
124
|
-
// cant test this thing cause vue test utils doesnt render elements width :/
|
|
125
|
-
const afterWrapperWidth = this.$refs['after-wrapper'].offsetWidth;
|
|
126
|
-
const inputEl = this.$refs['wt-textarea'];
|
|
127
|
-
const defaultInputPadding = getComputedStyle(document.documentElement)
|
|
128
|
-
.getPropertyValue('--textarea-padding');
|
|
129
|
-
inputEl.style.paddingRight = `calc(${defaultInputPadding} * 2 + ${afterWrapperWidth}px)`;
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
mounted() {
|
|
133
|
-
this.updateInputPaddings();
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
</script>
|
|
137
|
-
|
|
138
|
-
<style lang="scss" scoped>
|
|
139
|
-
.wt-textarea {
|
|
140
|
-
cursor: text;
|
|
141
|
-
|
|
142
|
-
&--disabled {
|
|
143
|
-
pointer-events: none;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.wt-textarea__wrapper {
|
|
148
|
-
position: relative;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.wt-label {
|
|
152
|
-
.wt-textarea:hover &,
|
|
153
|
-
.wt-textarea:focus-within & {
|
|
154
|
-
color: var(--form-label--hover-color);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.wt-textarea--invalid:hover &,
|
|
158
|
-
.wt-textarea--invalid:focus-within & {
|
|
159
|
-
color: var(--label--invalid-color);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.wt-textarea__textarea {
|
|
164
|
-
@extend %typo-body-1;
|
|
165
|
-
@extend %wt-scrollbar;
|
|
166
|
-
@include wt-placeholder;
|
|
167
|
-
|
|
168
|
-
display: block;
|
|
169
|
-
width: 100%;
|
|
170
|
-
min-height: var(--textarea-min-height);
|
|
171
|
-
box-sizing: border-box;
|
|
172
|
-
padding: var(--textarea-padding);
|
|
173
|
-
color: var(--form-input-color);
|
|
174
|
-
border: var(--input-border);
|
|
175
|
-
border-color: var(--form-border-color);
|
|
176
|
-
border-radius: var(--border-radius);
|
|
177
|
-
transition: var(--transition);
|
|
178
|
-
resize: none;
|
|
179
|
-
|
|
180
|
-
&:focus {
|
|
181
|
-
@include wt-placeholder('focus');
|
|
182
|
-
|
|
183
|
-
border-color: var(--form-border--hover-color);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.wt-textarea--disabled & {
|
|
187
|
-
@include wt-placeholder('disabled');
|
|
188
|
-
|
|
189
|
-
background: var(--form-border--disabled-color);
|
|
190
|
-
border-color: var(--form-border--disabled-color);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.wt-textarea--invalid &,
|
|
194
|
-
.wt-textarea--invalid:hover & {
|
|
195
|
-
border-color: var(--false-color);
|
|
196
|
-
outline: none; // prevent outline overlapping false color
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/* make icons black */
|
|
201
|
-
.wt-textarea:hover ::v-deep .wt-icon-btn:not(.wt-textarea__reset-icon-btn) .wt-icon__icon,
|
|
202
|
-
.wt-textarea:focus-within ::v-deep .wt-icon-btn:not(.wt-textarea__reset-icon-btn) .wt-icon__icon {
|
|
203
|
-
fill: var(--icon-color--hover);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.wt-textarea__after-wrapper {
|
|
207
|
-
display: flex;
|
|
208
|
-
gap: var(--input-after-wrapper-gap);
|
|
209
|
-
align-items: center;
|
|
210
|
-
position: absolute;
|
|
211
|
-
top: var(--input-icon-margin);
|
|
212
|
-
right: var(--input-icon-margin);
|
|
213
|
-
pointer-events: auto; // override --disabled p-events none
|
|
214
|
-
}
|
|
215
|
-
</style>
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="wt-time-input"
|
|
4
|
-
:class="{
|
|
5
|
-
'wt-time-input--outline': outline,
|
|
6
|
-
'wt-time-input--disabled': disabled,
|
|
7
|
-
'wt-time-input--invalid': invalid,
|
|
8
|
-
}"
|
|
9
|
-
>
|
|
10
|
-
<wt-label
|
|
11
|
-
v-if="hasLabel"
|
|
12
|
-
:for="name"
|
|
13
|
-
:outline="outline"
|
|
14
|
-
:disabled="disabled"
|
|
15
|
-
:invalid="invalid"
|
|
16
|
-
v-bind="labelProps"
|
|
17
|
-
>
|
|
18
|
-
<!-- @slot Custom input label -->
|
|
19
|
-
<slot name="label" v-bind="{ label }">{{ label }}</slot>
|
|
20
|
-
</wt-label>
|
|
21
|
-
<div class="wt-time-input__wrapper">
|
|
22
|
-
<input
|
|
23
|
-
:id="name"
|
|
24
|
-
class="wt-time-input__input"
|
|
25
|
-
:value="value"
|
|
26
|
-
:min="0"
|
|
27
|
-
:max="maxValue"
|
|
28
|
-
:disabled="disabled"
|
|
29
|
-
type="number"
|
|
30
|
-
v-on="listeners"
|
|
31
|
-
>
|
|
32
|
-
</div>
|
|
33
|
-
<wt-input-info
|
|
34
|
-
v-if="showInfo"
|
|
35
|
-
:invalid="invalid"
|
|
36
|
-
>{{ validationText }}
|
|
37
|
-
</wt-input-info>
|
|
38
|
-
</div>
|
|
39
|
-
</template>
|
|
40
|
-
|
|
41
|
-
<script>
|
|
42
|
-
import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
43
|
-
|
|
44
|
-
export default {
|
|
45
|
-
name: 'wt-time-input',
|
|
46
|
-
mixins: [validationMixin],
|
|
47
|
-
props: {
|
|
48
|
-
/**
|
|
49
|
-
* Current input value (`v-model`)
|
|
50
|
-
*/
|
|
51
|
-
value: {
|
|
52
|
-
type: Number,
|
|
53
|
-
default: 0,
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* Form input label
|
|
57
|
-
*/
|
|
58
|
-
label: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* Form input name
|
|
64
|
-
*/
|
|
65
|
-
name: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: '',
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* Time type: day, minute, second
|
|
71
|
-
*/
|
|
72
|
-
maxValue: {
|
|
73
|
-
type: Number,
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* Native input required attribute
|
|
77
|
-
*/
|
|
78
|
-
required: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false,
|
|
81
|
-
description: 'Native input required attribute',
|
|
82
|
-
},
|
|
83
|
-
/**
|
|
84
|
-
* Native input disabled attribute
|
|
85
|
-
*/
|
|
86
|
-
disabled: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: false,
|
|
89
|
-
description: 'Native input disabled attribute',
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
outline: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: false,
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
labelProps: {
|
|
98
|
-
type: Object,
|
|
99
|
-
description: 'Object with props, passed down to wt-label as props',
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
hideInputInfo: {
|
|
103
|
-
type: Boolean,
|
|
104
|
-
default: false,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
computed: {
|
|
108
|
-
hasLabel() {
|
|
109
|
-
return !!(this.label || this.$slots.label);
|
|
110
|
-
},
|
|
111
|
-
listeners() {
|
|
112
|
-
return {
|
|
113
|
-
...this.$listeners,
|
|
114
|
-
input: (event) => this.$emit('input', event.target.value),
|
|
115
|
-
};
|
|
116
|
-
},
|
|
117
|
-
showInfo() {
|
|
118
|
-
return this.isValidation && !this.hideInputInfo;
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
};
|
|
122
|
-
</script>
|
|
123
|
-
|
|
124
|
-
<style lang="scss" scoped>
|
|
125
|
-
.wt-time-input {
|
|
126
|
-
display: inline-block;
|
|
127
|
-
cursor: text;
|
|
128
|
-
|
|
129
|
-
&--disabled {
|
|
130
|
-
pointer-events: none;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.wt-time-input__wrapper {
|
|
135
|
-
position: relative;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.wt-label {
|
|
139
|
-
text-align: center;
|
|
140
|
-
|
|
141
|
-
.wt-time-input:hover &,
|
|
142
|
-
.wt-time-input:focus-within & {
|
|
143
|
-
color: var(--form-label--hover-color);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.wt-time-input--invalid:hover &,
|
|
147
|
-
.wt-time-input--invalid:focus-within & {
|
|
148
|
-
color: var(--label--invalid-color);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.wt-time-input__input {
|
|
153
|
-
@extend %typo-body-1;
|
|
154
|
-
|
|
155
|
-
display: block;
|
|
156
|
-
width: 100%;
|
|
157
|
-
box-sizing: border-box;
|
|
158
|
-
padding: var(--input-padding);
|
|
159
|
-
color: var(--form-input-color);
|
|
160
|
-
border: var(--input-border);
|
|
161
|
-
border-color: var(--form-border-color);
|
|
162
|
-
border-radius: var(--border-radius);
|
|
163
|
-
transition: var(--transition);
|
|
164
|
-
|
|
165
|
-
.wt-time-input:hover &,
|
|
166
|
-
&:focus {
|
|
167
|
-
border-color: var(--form-border--hover-color);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.wt-time-input--outline & {
|
|
171
|
-
border-color: var(--form-outline-border-color);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.wt-time-input--outline:hover &,
|
|
175
|
-
.wt-time-input--outline &:focus {
|
|
176
|
-
border-color: var(--form-outline-border--hover-color);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.wt-time-input--disabled & {
|
|
180
|
-
background: var(--form-border--disabled-color);
|
|
181
|
-
border-color: var(--form-border--disabled-color);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.wt-time-input--invalid &,
|
|
185
|
-
.wt-time-input--invalid:hover & {
|
|
186
|
-
border-color: var(--false-color);
|
|
187
|
-
outline: none; // prevent outline overlapping false color
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
</style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<header class="wt-app-header">
|
|
3
|
-
<slot></slot>
|
|
4
|
-
</header>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'wt-app-header',
|
|
10
|
-
};
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style lang="scss" scoped>
|
|
14
|
-
.wt-app-header {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: flex-end;
|
|
18
|
-
gap: var(--wt-app-header-content-gap);
|
|
19
|
-
min-height: var(--wt-app-header-min-height); // fixed height because anything can be put inside slot, so padding won't work properly
|
|
20
|
-
padding: var(--wt-app-header-padding);
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
background: var(--header-color);
|
|
23
|
-
}
|
|
24
|
-
</style>
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<aside class="wt-notifications-bar">
|
|
3
|
-
<transition-group name="wt-notifications-transition" tag="div">
|
|
4
|
-
<wt-notification
|
|
5
|
-
v-for="(notification, key) of notifications"
|
|
6
|
-
:type="notification.type"
|
|
7
|
-
:key="key+notification.text"
|
|
8
|
-
@close="closeNotification(notification)"
|
|
9
|
-
>{{notification.text}}
|
|
10
|
-
</wt-notification>
|
|
11
|
-
</transition-group>
|
|
12
|
-
</aside>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: 'wt-notifications-bar',
|
|
18
|
-
data: () => ({
|
|
19
|
-
notificationDuration: 4000,
|
|
20
|
-
notifications: [],
|
|
21
|
-
}),
|
|
22
|
-
created() {
|
|
23
|
-
try {
|
|
24
|
-
this.$eventBus.$on('notification', this.showNotification);
|
|
25
|
-
} catch (err) {
|
|
26
|
-
console.error('wt-notifications-bar cannot work without globally registered eventBus', err);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
destroyed() {
|
|
30
|
-
this.$eventBus.$off('notification', this.showNotification);
|
|
31
|
-
},
|
|
32
|
-
methods: {
|
|
33
|
-
showNotification(notification) {
|
|
34
|
-
this.notifications.unshift(notification);
|
|
35
|
-
setTimeout(() => this.closeNotification(notification), this.notificationDuration);
|
|
36
|
-
},
|
|
37
|
-
closeNotification(notification) {
|
|
38
|
-
const index = this.notifications.indexOf(notification);
|
|
39
|
-
this.notifications.splice(index, 1);
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<style lang="scss" scoped>
|
|
46
|
-
.wt-notifications-bar {
|
|
47
|
-
@extend %wt-scrollbar;
|
|
48
|
-
|
|
49
|
-
position: fixed;
|
|
50
|
-
top: var(--notifications-bar-corner-margin);
|
|
51
|
-
right: var(--notifications-bar-corner-margin);
|
|
52
|
-
max-height: var(--notifications-bar-max-height);
|
|
53
|
-
overflow-y: auto;
|
|
54
|
-
overflow-x: hidden;
|
|
55
|
-
z-index: var(--notifications-bar-z-index);
|
|
56
|
-
|
|
57
|
-
.wt-notification {
|
|
58
|
-
margin: var(--notifications-bar-notifications-margin);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.wt-notifications-transition-enter-active,
|
|
63
|
-
.wt-notifications-transition-leave-active {
|
|
64
|
-
transition: all var(--transition);
|
|
65
|
-
}
|
|
66
|
-
.wt-notifications-transition-enter,
|
|
67
|
-
.wt-notifications-transition-leave-to {
|
|
68
|
-
opacity: 0;
|
|
69
|
-
transform: translateX(60px);
|
|
70
|
-
}
|
|
71
|
-
</style>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtTableDeleteAction from '../table-cells/wt-table-delete-action.vue';
|
|
3
|
-
|
|
4
|
-
describe('WtTableDeleteAction', () => {
|
|
5
|
-
it('renders a component', () => {
|
|
6
|
-
const wrapper = shallowMount(WtTableDeleteAction);
|
|
7
|
-
expect(wrapper.exists()).toBe(true);
|
|
8
|
-
});
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtTableEditAction from '../table-cells/wt-table-edit-action.vue';
|
|
3
|
-
|
|
4
|
-
describe('WtTableEditAction', () => {
|
|
5
|
-
it('renders a component', () => {
|
|
6
|
-
const wrapper = shallowMount(WtTableEditAction);
|
|
7
|
-
expect(wrapper.exists()).toBe(true);
|
|
8
|
-
});
|
|
9
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-tooltip>
|
|
3
|
-
<template v-slot:activator>
|
|
4
|
-
<wt-icon-btn
|
|
5
|
-
icon="bucket"
|
|
6
|
-
@click="$emit('click')"
|
|
7
|
-
></wt-icon-btn>
|
|
8
|
-
</template>
|
|
9
|
-
{{ $t('webitelUI.table.tableCells.deleteActionHint') }}
|
|
10
|
-
</wt-tooltip>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
export default {
|
|
15
|
-
name: 'wt-table-delete-action',
|
|
16
|
-
};
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<style scoped>
|
|
20
|
-
|
|
21
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-tooltip>
|
|
3
|
-
<template v-slot:activator>
|
|
4
|
-
<wt-icon-btn
|
|
5
|
-
class="table-action"
|
|
6
|
-
icon="edit"
|
|
7
|
-
@click="$emit('click')"
|
|
8
|
-
></wt-icon-btn>
|
|
9
|
-
</template>
|
|
10
|
-
{{ $t('webitelUI.table.tableCells.editActionHint') }}
|
|
11
|
-
</wt-tooltip>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
export default {
|
|
16
|
-
name: 'wt-table-edit-action',
|
|
17
|
-
};
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<style scoped>
|
|
21
|
-
|
|
22
|
-
</style>
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="wt-table-column-select">
|
|
3
|
-
<wt-tooltip>
|
|
4
|
-
<template v-slot:activator>
|
|
5
|
-
<wt-icon-btn
|
|
6
|
-
icon="column-select"
|
|
7
|
-
@click="openPopup"
|
|
8
|
-
></wt-icon-btn>
|
|
9
|
-
</template>
|
|
10
|
-
{{ $t('webitelUI.tableColumnSelect.title') }}
|
|
11
|
-
</wt-tooltip>
|
|
12
|
-
<wt-popup
|
|
13
|
-
v-if="isColumnSelectPopup"
|
|
14
|
-
class="wt-table-column-select__popup"
|
|
15
|
-
@close="close"
|
|
16
|
-
>
|
|
17
|
-
<template slot="title">
|
|
18
|
-
{{ $t('webitelUI.tableColumnSelect.title') }}
|
|
19
|
-
</template>
|
|
20
|
-
<template slot="main">
|
|
21
|
-
<ul class="wt-table-column-select__popup__list">
|
|
22
|
-
<li
|
|
23
|
-
v-for="(col, key) of changeableDraft"
|
|
24
|
-
:key="key"
|
|
25
|
-
class="wt-table-column-select__popup__item"
|
|
26
|
-
@click.capture.prevent="col.show = !col.show"
|
|
27
|
-
>
|
|
28
|
-
<wt-checkbox v-model="col.show" :label="col.text" />
|
|
29
|
-
</li>
|
|
30
|
-
</ul>
|
|
31
|
-
</template>
|
|
32
|
-
<template slot="actions">
|
|
33
|
-
<wt-button
|
|
34
|
-
@click="setShownColumns"
|
|
35
|
-
>{{ $t('reusable.add') }}
|
|
36
|
-
</wt-button>
|
|
37
|
-
<wt-button
|
|
38
|
-
color="secondary"
|
|
39
|
-
@click="close"
|
|
40
|
-
>{{ $t('reusable.cancel') }}
|
|
41
|
-
</wt-button>
|
|
42
|
-
</template>
|
|
43
|
-
</wt-popup>
|
|
44
|
-
</div>
|
|
45
|
-
</template>
|
|
46
|
-
|
|
47
|
-
<script>
|
|
48
|
-
import deepCopy from 'deep-copy';
|
|
49
|
-
|
|
50
|
-
export default {
|
|
51
|
-
name: 'wt-table-column-select',
|
|
52
|
-
props: {
|
|
53
|
-
headers: {
|
|
54
|
-
type: Array,
|
|
55
|
-
required: true,
|
|
56
|
-
description: 'Each header should have following schema: { value: String, show: Boolean, text: String }',
|
|
57
|
-
},
|
|
58
|
-
staticHeaders: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default: () => [],
|
|
61
|
-
description: 'Header values to exclude from selection',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
model: {
|
|
66
|
-
prop: 'headers',
|
|
67
|
-
event: 'change',
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
data: () => ({
|
|
71
|
-
draft: [], // headers draft
|
|
72
|
-
isColumnSelectPopup: false,
|
|
73
|
-
}),
|
|
74
|
-
|
|
75
|
-
watch: {
|
|
76
|
-
isColumnSelectPopup: {
|
|
77
|
-
handler() {
|
|
78
|
-
this.fillHeadersDraft();
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
computed: {
|
|
83
|
-
changeableDraft() {
|
|
84
|
-
return this.draft.filter((header) => !this.staticHeaders.includes(header.value));
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
methods: {
|
|
88
|
-
openPopup() {
|
|
89
|
-
this.isColumnSelectPopup = true;
|
|
90
|
-
},
|
|
91
|
-
close() {
|
|
92
|
-
this.isColumnSelectPopup = false;
|
|
93
|
-
},
|
|
94
|
-
fillHeadersDraft() {
|
|
95
|
-
this.draft = deepCopy(this.headers);
|
|
96
|
-
},
|
|
97
|
-
setShownColumns() {
|
|
98
|
-
this.$emit('change', this.draft);
|
|
99
|
-
this.close();
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
</script>
|
|
104
|
-
|
|
105
|
-
<style lang="scss" scoped>
|
|
106
|
-
.wt-table-column-select {
|
|
107
|
-
line-height: 0; // prevent 24x28 icon heght :/
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.wt-table-column-select__popup__list {
|
|
111
|
-
@extend %wt-scrollbar;
|
|
112
|
-
overflow: auto;
|
|
113
|
-
width: 550px; // fixme popup fixed sizes
|
|
114
|
-
max-height: 35vh; // fixme popup fixed sizes
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.wt-table-column-select__popup__item {
|
|
118
|
-
margin-bottom: var(--spacing-xs);
|
|
119
|
-
}
|
|
120
|
-
</style>
|