@koobiq/components 16.0.0-beta.1 → 16.0.0-beta.11
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/LICENSE +1 -1
- package/README.md +2 -2
- package/autocomplete/_autocomplete-theme.scss +3 -10
- package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/autocomplete/autocomplete.scss +0 -8
- package/badge/README.md +0 -0
- package/{core/styles/theming/_badges-theme.scss → badge/_badge-theme.scss} +14 -13
- package/badge/badge.component.d.ts +44 -0
- package/badge/badge.component.scss +83 -0
- package/badge/badge.module.d.ts +10 -0
- package/badge/index.d.ts +1 -0
- package/badge/public-api.d.ts +2 -0
- package/button/_button-base.scss +1 -1
- package/button/_button-theme.scss +35 -27
- package/button/button.scss +5 -2
- package/button-toggle/_button-toggle-theme.scss +26 -45
- package/button-toggle/button-toggle.component.d.ts +2 -2
- package/button-toggle/button-toggle.scss +40 -87
- package/card/_card-theme.scss +1 -1
- package/checkbox/README.md +1 -1
- package/checkbox/_checkbox-theme.scss +10 -2
- package/checkbox/checkbox.d.ts +2 -2
- package/code-block/README.md +14 -14
- package/code-block/_code-block-theme.scss +49 -10
- package/code-block/actionbar.component.scss +34 -6
- package/code-block/code-block.component.d.ts +2 -2
- package/code-block/code-block.scss +101 -27
- package/core/animation/index.d.ts +1 -1
- package/core/animation/select-animations.d.ts +1 -1
- package/core/common-behaviors/color.d.ts +1 -1
- package/core/common-behaviors/common-module.d.ts +1 -1
- package/core/formatters/index.d.ts +1 -1
- package/core/formatters/number/formatter.d.ts +56 -1
- package/core/forms/_forms-theme.scss +4 -4
- package/core/forms/_forms.scss +1 -3
- package/core/forms/forms.directive.d.ts +2 -2
- package/core/locales/en-US.d.ts +19 -1
- package/core/locales/es-LA.d.ts +27 -0
- package/core/locales/fa-IR.d.ts +28 -0
- package/core/locales/locale-service.d.ts +148 -3
- package/core/locales/pt-BR.d.ts +27 -0
- package/core/locales/ru-RU.d.ts +20 -1
- package/core/locales/zh-CN.d.ts +26 -0
- package/core/option/_optgroup-theme.scss +1 -1
- package/core/option/_option-action-theme.scss +1 -1
- package/core/option/_option-theme.scss +37 -14
- package/core/option/action.d.ts +1 -1
- package/core/option/action.scss +4 -5
- package/core/option/optgroup.d.ts +1 -1
- package/core/option/option.d.ts +37 -8
- package/core/option/option.scss +5 -50
- package/core/overlay/overlay-position-map.d.ts +7 -1
- package/core/pop-up/constants.d.ts +2 -1
- package/core/public-api.d.ts +1 -0
- package/core/select/constants.d.ts +2 -2
- package/core/services/theme.service.d.ts +23 -0
- package/core/styles/_koobiq-theme.scss +12 -1
- package/core/styles/_tokens.kbq.import.scss +4 -4
- package/core/styles/_tokens.scss +4 -4
- package/core/styles/_variables.scss +1 -0
- package/core/styles/common/_animation.scss +10 -6
- package/core/styles/common/_list.scss +123 -0
- package/core/styles/common/_overlay.scss +1 -1
- package/core/styles/common/_select.scss +232 -0
- package/core/styles/theming/_components-theming.scss +716 -102
- package/core/styles/theming/_theming.scss +201 -30
- package/core/styles/typography/_typography.scss +176 -5
- package/datepicker/_datepicker-theme.scss +43 -57
- package/datepicker/calendar-body.component.d.ts +1 -1
- package/datepicker/calendar-body.scss +11 -26
- package/datepicker/calendar-header.component.d.ts +9 -3
- package/datepicker/calendar-header.scss +7 -31
- package/datepicker/calendar.component.d.ts +4 -5
- package/datepicker/calendar.scss +20 -25
- package/datepicker/datepicker-animations.d.ts +2 -2
- package/datepicker/datepicker-content.scss +17 -10
- package/datepicker/datepicker-input.directive.d.ts +4 -4
- package/datepicker/datepicker-input.scss +1 -1
- package/datepicker/datepicker-toggle.component.d.ts +3 -3
- package/datepicker/datepicker.component.d.ts +2 -2
- package/datepicker/month-view.component.d.ts +5 -6
- package/dl/_dl-theme.scss +2 -56
- package/dl/dl.component.d.ts +1 -2
- package/dl/dl.scss +10 -47
- package/dropdown/_dropdown-theme.scss +29 -37
- package/dropdown/dropdown-animations.d.ts +1 -1
- package/dropdown/dropdown-content.directive.d.ts +1 -1
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-item.scss +18 -40
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/dropdown.scss +16 -39
- package/dropdown/dropdown.types.d.ts +1 -1
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +34 -31
- package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
- package/esm2022/badge/badge.component.mjs +122 -0
- package/esm2022/badge/badge.module.mjs +40 -0
- package/esm2022/badge/index.mjs +2 -0
- package/esm2022/badge/koobiq-components-badge.mjs +5 -0
- package/esm2022/badge/public-api.mjs +3 -0
- package/esm2022/button/button.component.mjs +4 -3
- package/esm2022/button-toggle/button-toggle.component.mjs +15 -15
- package/esm2022/checkbox/checkbox.mjs +4 -4
- package/esm2022/code-block/actionbar.component.mjs +3 -3
- package/esm2022/code-block/code-block.component.mjs +11 -9
- package/esm2022/core/animation/index.mjs +2 -2
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/common-behaviors/color.mjs +1 -1
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/formatters/index.mjs +10 -2
- package/esm2022/core/formatters/number/formatter.mjs +224 -3
- package/esm2022/core/forms/forms.directive.mjs +5 -5
- package/esm2022/core/locales/en-US.mjs +22 -4
- package/esm2022/core/locales/es-LA.mjs +31 -2
- package/esm2022/core/locales/fa-IR.mjs +30 -2
- package/esm2022/core/locales/locale-service.mjs +4 -4
- package/esm2022/core/locales/pt-BR.mjs +29 -2
- package/esm2022/core/locales/ru-RU.mjs +23 -2
- package/esm2022/core/locales/zh-CN.mjs +28 -2
- package/esm2022/core/option/action.mjs +8 -7
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +47 -10
- package/esm2022/core/overlay/overlay-position-map.mjs +8 -1
- package/esm2022/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/select/constants.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +60 -0
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +7 -5
- package/esm2022/datepicker/calendar-header.component.mjs +9 -8
- package/esm2022/datepicker/calendar.component.mjs +8 -17
- package/esm2022/datepicker/datepicker-animations.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
- package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
- package/esm2022/datepicker/datepicker.component.mjs +12 -12
- package/esm2022/datepicker/month-view.component.mjs +9 -18
- package/esm2022/dl/dl.component.mjs +3 -7
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-errors.mjs +6 -6
- package/esm2022/dropdown/dropdown-item.component.mjs +7 -6
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +10 -9
- package/esm2022/dropdown/dropdown.component.mjs +9 -9
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/file-upload/file-drop.mjs +43 -6
- package/esm2022/file-upload/file-upload.mjs +1 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +13 -9
- package/esm2022/file-upload/single-file-upload.component.mjs +16 -13
- package/esm2022/form-field/cleaner.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +12 -15
- package/esm2022/form-field/hint.mjs +16 -6
- package/esm2022/form-field/password-hint.mjs +25 -16
- package/esm2022/form-field/password-toggle.mjs +29 -12
- package/esm2022/form-field/prefix.mjs +3 -3
- package/esm2022/form-field/suffix.mjs +3 -3
- package/esm2022/form-field/validate.directive.mjs +15 -9
- package/esm2022/icon/icon-button.component.mjs +68 -0
- package/esm2022/icon/icon-item.component.mjs +27 -0
- package/esm2022/icon/icon.component.mjs +5 -90
- package/esm2022/icon/icon.module.mjs +4 -2
- package/esm2022/icon/public-api.mjs +3 -1
- package/esm2022/input/input-errors.mjs +2 -2
- package/esm2022/input/input-number.mjs +260 -44
- package/esm2022/input/input-password.mjs +5 -5
- package/esm2022/input/input.mjs +7 -7
- package/esm2022/link/link.component.mjs +14 -13
- package/esm2022/list/list-selection.component.mjs +23 -10
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/list/list.module.mjs +8 -4
- package/esm2022/loader-overlay/loader-overlay.component.mjs +20 -19
- package/esm2022/modal/modal-control.service.mjs +5 -5
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +129 -134
- package/esm2022/modal/modal.module.mjs +13 -7
- package/esm2022/modal/modal.service.mjs +23 -23
- package/esm2022/modal/modal.type.mjs +1 -3
- package/esm2022/navbar/navbar-item.component.mjs +19 -18
- package/esm2022/navbar/navbar.component.mjs +20 -11
- package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +11 -8
- package/esm2022/popover/popover-animations.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +9 -11
- package/esm2022/popover/popover.component.mjs +24 -24
- package/esm2022/progress-spinner/progress-spinner.component.mjs +3 -3
- package/esm2022/radio/radio.component.mjs +11 -8
- package/esm2022/risk-level/index.mjs +2 -0
- package/esm2022/risk-level/koobiq-components-risk-level.mjs +5 -0
- package/esm2022/risk-level/public-api.mjs +3 -0
- package/esm2022/risk-level/risk-level.component.mjs +40 -0
- package/esm2022/risk-level/risk-level.module.mjs +28 -0
- package/esm2022/select/select-option.directive.mjs +15 -3
- package/esm2022/select/select.component.mjs +47 -29
- package/esm2022/sidebar/sidebar-animations.mjs +2 -2
- package/esm2022/sidebar/sidebar.component.mjs +9 -9
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +8 -10
- package/esm2022/sidepanel/sidepanel.module.mjs +10 -4
- package/esm2022/splitter/splitter.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/tabs/paginated-tab-header.mjs +11 -2
- package/esm2022/tabs/tab-body.component.mjs +7 -7
- package/esm2022/tabs/tab-content.directive.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +16 -21
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-label-wrapper.directive.mjs +4 -3
- package/esm2022/tabs/tab-label.directive.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +21 -10
- package/esm2022/tabs/tab.component.mjs +14 -5
- package/esm2022/tabs/tabs-animations.mjs +2 -2
- package/esm2022/tabs/tabs.module.mjs +2 -6
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -15
- package/esm2022/tags/tag-list.component.mjs +15 -10
- package/esm2022/tags/tag.component.mjs +16 -16
- package/esm2022/textarea/textarea.component.mjs +4 -4
- package/esm2022/timepicker/timepicker.directive.mjs +10 -10
- package/esm2022/timezone/timezone-option.component.mjs +4 -4
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +6 -6
- package/esm2022/toast/toast-animations.mjs +2 -1
- package/esm2022/toast/toast-container.component.mjs +22 -8
- package/esm2022/toast/toast.component.mjs +30 -13
- package/esm2022/toast/toast.module.mjs +23 -8
- package/esm2022/toast/toast.service.mjs +2 -1
- package/esm2022/toast/toast.type.mjs +6 -1
- package/esm2022/toggle/toggle.component.mjs +4 -4
- package/esm2022/tooltip/tooltip.animations.mjs +2 -2
- package/esm2022/tooltip/tooltip.component.mjs +31 -30
- package/esm2022/tree/control/base-tree-control.mjs +1 -1
- package/esm2022/tree/control/flat-tree-control.mjs +4 -4
- package/esm2022/tree/control/tree-control.mjs +1 -1
- package/esm2022/tree/node.mjs +5 -5
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +9 -9
- package/esm2022/tree/toggle.mjs +11 -12
- package/esm2022/tree/tree-base.mjs +3 -3
- package/esm2022/tree/tree-option.component.mjs +12 -10
- package/esm2022/tree/tree-selection.component.mjs +8 -6
- package/esm2022/tree/tree.mjs +3 -3
- package/esm2022/tree/tree.module.mjs +13 -4
- package/esm2022/tree-select/tree-select.component.mjs +28 -23
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +40 -37
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +166 -0
- package/fesm2022/koobiq-components-badge.mjs.map +1 -0
- package/fesm2022/koobiq-components-button-toggle.mjs +14 -14
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +3 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +3 -3
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +10 -9
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +535 -46
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +73 -79
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -6
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +33 -31
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +65 -21
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +96 -59
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +10 -8
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +269 -55
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +13 -12
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +31 -14
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +19 -18
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +164 -167
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +46 -37
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +32 -33
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +10 -7
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-risk-level.mjs +72 -0
- package/fesm2022/koobiq-components-risk-level.mjs.map +1 -0
- package/fesm2022/koobiq-components-select.mjs +60 -30
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +8 -8
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +19 -14
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +2 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +74 -53
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +45 -38
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +3 -3
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +9 -9
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +7 -7
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +5 -5
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +71 -22
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +3 -3
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +31 -30
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +27 -22
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +67 -54
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +54 -40
- package/file-upload/file-drop.d.ts +3 -2
- package/file-upload/file-upload.d.ts +4 -1
- package/file-upload/file-upload.scss +2 -9
- package/file-upload/multiple-file-upload.component.d.ts +6 -5
- package/file-upload/multiple-file-upload.component.scss +170 -59
- package/file-upload/single-file-upload.component.d.ts +6 -5
- package/file-upload/single-file-upload.component.scss +42 -22
- package/form-field/_form-field-theme.scss +3 -6
- package/form-field/_hint-theme.scss +6 -2
- package/form-field/cleaner.d.ts +1 -1
- package/form-field/form-field.d.ts +3 -4
- package/form-field/form-field.scss +2 -2
- package/form-field/hint.d.ts +4 -1
- package/form-field/hint.scss +9 -1
- package/form-field/password-hint.d.ts +7 -3
- package/form-field/password-hint.scss +6 -0
- package/form-field/password-toggle.d.ts +13 -7
- package/form-field/prefix.d.ts +1 -1
- package/form-field/suffix.d.ts +1 -1
- package/form-field/validate.directive.d.ts +1 -1
- package/icon/_icon-button-theme.scss +129 -0
- package/icon/_icon-item-theme.scss +41 -0
- package/icon/_icon-theme.scss +1 -232
- package/icon/icon-button.component.d.ts +22 -0
- package/icon/icon-button.scss +33 -0
- package/icon/icon-item.component.d.ts +10 -0
- package/icon/icon-item.scss +18 -0
- package/icon/icon.component.d.ts +1 -25
- package/icon/icon.module.d.ts +6 -4
- package/icon/icon.scss +0 -41
- package/icon/public-api.d.ts +2 -0
- package/input/_input-theme.scss +2 -1
- package/input/input-number.d.ts +61 -10
- package/input/input-password.d.ts +1 -1
- package/input/input.d.ts +2 -2
- package/input/input.scss +3 -1
- package/link/_link-theme.scss +101 -92
- package/link/link.component.d.ts +4 -4
- package/list/_list-theme.scss +36 -17
- package/list/list-selection.component.d.ts +6 -2
- package/list/list.module.d.ts +1 -1
- package/list/list.scss +6 -19
- package/loader-overlay/_loader-overlay-theme.scss +43 -11
- package/loader-overlay/loader-overlay.component.d.ts +6 -5
- package/loader-overlay/loader-overlay.scss +56 -22
- package/markdown/_markdown-theme.scss +2 -2
- package/modal/README.md +5 -5
- package/modal/_modal-confirm.scss +5 -37
- package/modal/_modal-theme.scss +14 -52
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.component.d.ts +53 -52
- package/modal/modal.module.d.ts +2 -1
- package/modal/modal.scss +50 -31
- package/modal/modal.type.d.ts +35 -36
- package/navbar/_navbar-theme.scss +2 -2
- package/navbar/navbar-item.component.d.ts +4 -3
- package/navbar/navbar.component.d.ts +5 -2
- package/navbar/vertical-navbar.component.d.ts +4 -2
- package/package.json +48 -38
- package/popover/README.md +14 -14
- package/popover/_popover-theme.scss +15 -78
- package/popover/popover-animations.d.ts +1 -1
- package/popover/popover-confirm.component.d.ts +1 -3
- package/popover/popover.component.d.ts +3 -3
- package/popover/popover.scss +60 -50
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-spinner/progress-spinner.component.d.ts +2 -2
- package/progress-spinner/progress-spinner.scss +10 -5
- package/radio/_radio-theme.scss +17 -4
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.scss +13 -0
- package/risk-level/README.md +0 -0
- package/risk-level/_risk-level-theme.scss +88 -0
- package/risk-level/index.d.ts +1 -0
- package/risk-level/public-api.d.ts +2 -0
- package/risk-level/risk-level.component.d.ts +18 -0
- package/risk-level/risk-level.component.scss +26 -0
- package/risk-level/risk-level.module.d.ts +10 -0
- package/select/_select-theme.scss +12 -4
- package/select/select-option.directive.d.ts +2 -0
- package/select/select.component.d.ts +15 -12
- package/select/select.scss +6 -190
- package/sidebar/sidebar-animations.d.ts +1 -1
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/_sidepanel-theme.scss +11 -41
- package/sidepanel/sidepanel-directives.d.ts +0 -2
- package/sidepanel/sidepanel.scss +33 -35
- package/splitter/_splitter-theme.scss +1 -0
- package/splitter/splitter.component.d.ts +1 -1
- package/table/_table-theme.scss +1 -1
- package/table/table.component.d.ts +1 -1
- package/tabs/_tabs-common.scss +28 -147
- package/tabs/_tabs-theme.scss +81 -175
- package/tabs/paginated-tab-header.d.ts +1 -0
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-content.directive.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +5 -8
- package/tabs/tab-group.scss +10 -10
- package/tabs/tab-header.scss +2 -24
- package/tabs/tab-label-wrapper.directive.d.ts +1 -1
- package/tabs/tab-label.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +4 -2
- package/tabs/tab-nav-bar/tab-nav-bar.scss +9 -16
- package/tabs/tab.component.d.ts +1 -1
- package/tabs/tabs-animations.d.ts +1 -1
- package/tabs/tabs.module.d.ts +1 -1
- package/tags/_tag-theme.scss +1 -25
- package/tags/tag-default-options.d.ts +4 -0
- package/tags/tag-input.d.ts +2 -2
- package/tags/tag-list.component.d.ts +3 -2
- package/tags/tag-list.scss +26 -16
- package/tags/tag.component.d.ts +6 -6
- package/textarea/textarea.component.d.ts +1 -1
- package/timepicker/timepicker.directive.d.ts +2 -2
- package/timezone/timezone-option.component.d.ts +1 -1
- package/timezone/timezone-select.component.d.ts +1 -1
- package/title/title.directive.d.ts +1 -1
- package/toast/_toast-theme.scss +21 -33
- package/toast/toast-animations.d.ts +1 -0
- package/toast/toast-container.component.d.ts +7 -3
- package/toast/toast-container.component.scss +2 -1
- package/toast/toast.component.d.ts +6 -1
- package/toast/toast.component.scss +41 -34
- package/toast/toast.module.d.ts +1 -1
- package/toast/toast.service.d.ts +2 -0
- package/toast/toast.type.d.ts +8 -5
- package/toggle/_toggle-theme.scss +9 -1
- package/toggle/toggle.component.d.ts +1 -1
- package/toggle/toggle.scss +5 -2
- package/tooltip/tooltip.animations.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +5 -5
- package/tree/_tree-theme.scss +46 -34
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/tree-control.d.ts +1 -1
- package/tree/node.d.ts +1 -1
- package/tree/outlet.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +3 -3
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -2
- package/tree/tree-option.scss +40 -27
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree/tree.module.d.ts +2 -1
- package/tree-select/_tree-select-theme.scss +13 -3
- package/tree-select/tree-select.component.d.ts +6 -4
- package/tree-select/tree-select.scss +5 -194
- package/core/styles/theming/_badges.scss +0 -57
- package/core/styles/theming/prebuilt/light-theme.scss +0 -20
- package/list/_list-base.scss +0 -54
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
$markdown: map.get(map.get($theme, components), markdown);
|
|
15
15
|
|
|
16
16
|
.kbq-markdown {
|
|
17
|
-
color: map.get($foreground,
|
|
18
|
-
background: map.get($background,
|
|
17
|
+
color: map.get($foreground, contrast);
|
|
18
|
+
background: map.get($background, bg);
|
|
19
19
|
|
|
20
20
|
// h1, h2, h3, h4, h5, h6
|
|
21
21
|
@for $i from 1 through 6 {
|
package/modal/README.md
CHANGED
|
@@ -6,10 +6,10 @@ The dialog is currently divided into 3 modes - `default`, `confirm box`, `custom
|
|
|
6
6
|
```ts
|
|
7
7
|
showConfirm() {
|
|
8
8
|
this.modalService.success({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
kbqContent : 'Save changes made to the request "All assets with Windows"?',
|
|
10
|
+
kbqOkText : 'Save',
|
|
11
|
+
kbqCancelText: 'Cancel',
|
|
12
|
+
kbqOnOk : () => console.log('OK')
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
```
|
|
@@ -18,7 +18,7 @@ showConfirm() {
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
let dialogRef = modalService.open({
|
|
21
|
-
|
|
21
|
+
kbqComponent: CustomComponent
|
|
22
22
|
});
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -7,47 +7,15 @@
|
|
|
7
7
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
8
|
|
|
9
9
|
.kbq-confirm {
|
|
10
|
-
.kbq-modal-header {
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
10
|
.kbq-modal-close {
|
|
15
11
|
display: none;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
|
-
.kbq-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// TODO
|
|
23
|
-
&-body-wrapper {
|
|
24
|
-
//.clearfix()
|
|
25
|
-
zoom: 1;
|
|
26
|
-
|
|
27
|
-
&:before,
|
|
28
|
-
&:after {
|
|
29
|
-
content: "";
|
|
30
|
-
display: table;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:after {
|
|
34
|
-
clear: both;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&-body {
|
|
39
|
-
.kbq-confirm-title {
|
|
40
|
-
display: block;
|
|
41
|
-
overflow: auto;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.kbq-confirm-btns {
|
|
46
|
-
border-radius: var(--kbq-modal-footer-size-border-radius, map.get($tokens, modal-footer-size-border-radius));
|
|
47
|
-
text-align: right;
|
|
14
|
+
.kbq-confirm-footer {
|
|
15
|
+
display: flex;
|
|
48
16
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
17
|
+
gap: var(
|
|
18
|
+
--kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
|
|
19
|
+
);
|
|
52
20
|
}
|
|
53
21
|
}
|
package/modal/_modal-theme.scss
CHANGED
|
@@ -5,30 +5,24 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@mixin kbq-modal-theme($theme) {
|
|
8
|
-
$tokens: map.get($theme, tokens);
|
|
9
|
-
|
|
10
|
-
$foreground: map.get($theme, foreground);
|
|
11
|
-
$background: map.get($theme, background);
|
|
12
|
-
|
|
13
8
|
$modal: map.get(map.get($theme, components), modal);
|
|
14
|
-
$popup: map.get(map.get($theme, components), popup);
|
|
15
9
|
|
|
16
10
|
.kbq-modal {
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
background-color: map.get($background, background);
|
|
11
|
+
background: map.get($modal, container-background);
|
|
12
|
+
box-shadow: map.get($modal, container-box-shadow);
|
|
20
13
|
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
.kbq-modal-header {
|
|
15
|
+
& .kbq-modal-title {
|
|
16
|
+
color: map.get($modal, header);
|
|
17
|
+
}
|
|
23
18
|
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
& .kbq-modal-close {
|
|
20
|
+
color: map.get($modal, close-button);
|
|
21
|
+
}
|
|
26
22
|
}
|
|
27
23
|
|
|
28
|
-
.kbq-modal-
|
|
29
|
-
|
|
30
|
-
border-bottom-style: solid;
|
|
31
|
-
border-bottom-color: map.get($modal, header-border);
|
|
24
|
+
.kbq-modal-content {
|
|
25
|
+
color: map.get($modal, content);
|
|
32
26
|
}
|
|
33
27
|
|
|
34
28
|
.kbq-modal-header.kbq-modal-body_top-overflow {
|
|
@@ -38,42 +32,10 @@
|
|
|
38
32
|
.kbq-modal-footer.kbq-modal-body_bottom-overflow {
|
|
39
33
|
box-shadow: map.get($modal, body-bottom-shadow);
|
|
40
34
|
}
|
|
41
|
-
|
|
42
|
-
.kbq-modal-footer {
|
|
43
|
-
border-top-width: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width));
|
|
44
|
-
border-top-style: solid;
|
|
45
|
-
border-top-color: map.get($modal, footer-border);
|
|
46
|
-
|
|
47
|
-
background-color: map.get($popup, footer-background);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.kbq-modal-close {
|
|
51
|
-
border: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width)) solid transparent;
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
.kbq-button-overlay {
|
|
55
|
-
background: map.get($background, overlay-hover);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.kbq-icon {
|
|
59
|
-
color: inherit;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
35
|
}
|
|
64
36
|
|
|
65
37
|
.kbq-modal-mask {
|
|
66
|
-
background-color: map.get($modal,
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.kbq-confirm {
|
|
70
|
-
.kbq-confirm-btns {
|
|
71
|
-
border-top-width: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width));
|
|
72
|
-
border-top-style: solid;
|
|
73
|
-
border-top-color: map.get($modal, footer-border);
|
|
74
|
-
|
|
75
|
-
background-color: map.get($popup, footer-background);
|
|
76
|
-
}
|
|
38
|
+
background-color: map.get($modal, overlay);
|
|
77
39
|
}
|
|
78
40
|
}
|
|
79
41
|
|
|
@@ -81,10 +43,10 @@
|
|
|
81
43
|
$tokens: map.get($config, tokens);
|
|
82
44
|
|
|
83
45
|
.kbq-modal-title {
|
|
84
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, modal-
|
|
46
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, modal-font-header));
|
|
85
47
|
}
|
|
86
48
|
|
|
87
49
|
.kbq-modal-body {
|
|
88
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, modal-
|
|
50
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, modal-font-content));
|
|
89
51
|
}
|
|
90
52
|
}
|
|
@@ -11,12 +11,12 @@ export declare abstract class KbqModalRef<T = any, R = any> {
|
|
|
11
11
|
abstract close(result?: R): void;
|
|
12
12
|
abstract destroy(result?: R): void;
|
|
13
13
|
/**
|
|
14
|
-
* Trigger the
|
|
14
|
+
* Trigger the kbqOnOk/kbqOnCancel by manual
|
|
15
15
|
*/
|
|
16
16
|
abstract triggerOk(): void;
|
|
17
17
|
abstract triggerCancel(): void;
|
|
18
18
|
/**
|
|
19
|
-
* Return the component instance of
|
|
19
|
+
* Return the component instance of kbqContent when specify kbqContent as a Component
|
|
20
20
|
* Note: this method may return undefined if the Component has not ready yet.
|
|
21
21
|
* (it only available after Modal's ngOnInit)
|
|
22
22
|
*/
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
1
2
|
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
2
3
|
import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
+
import { KbqComponentColors } from '@koobiq/components/core';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import { KbqModalControlService } from './modal-control.service';
|
|
6
7
|
import { KbqModalRef } from './modal-ref.class';
|
|
7
|
-
import { IModalButtonOptions,
|
|
8
|
+
import { IModalButtonOptions, ModalOptions, ModalSize, ModalType, OnClickCallback } from './modal.type';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare const MODAL_ANIMATE_DURATION = 200;
|
|
10
|
-
export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T, R> implements OnInit, OnChanges, AfterViewInit, OnDestroy,
|
|
11
|
+
export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T, R> implements OnInit, OnChanges, AfterViewInit, OnDestroy, ModalOptions {
|
|
11
12
|
private overlay;
|
|
12
13
|
private renderer;
|
|
13
14
|
private cfr;
|
|
@@ -15,56 +16,55 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
15
16
|
private viewContainer;
|
|
16
17
|
private modalControl;
|
|
17
18
|
private changeDetector;
|
|
19
|
+
private focusMonitor;
|
|
18
20
|
private document;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
get
|
|
26
|
-
set
|
|
27
|
-
private
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
get
|
|
38
|
-
set
|
|
39
|
-
private
|
|
40
|
-
get
|
|
41
|
-
set
|
|
42
|
-
private
|
|
43
|
-
get
|
|
44
|
-
set
|
|
45
|
-
private
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
get
|
|
54
|
-
set
|
|
55
|
-
private
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
get
|
|
59
|
-
set
|
|
60
|
-
private
|
|
61
|
-
|
|
21
|
+
componentColors: typeof KbqComponentColors;
|
|
22
|
+
kbqModalType: ModalType;
|
|
23
|
+
kbqComponent: Type<T>;
|
|
24
|
+
kbqContent: string | TemplateRef<{}> | Type<T>;
|
|
25
|
+
kbqComponentParams: any;
|
|
26
|
+
kbqFooter: string | TemplateRef<{}> | IModalButtonOptions<T>[];
|
|
27
|
+
get kbqVisible(): boolean;
|
|
28
|
+
set kbqVisible(value: boolean);
|
|
29
|
+
private _kbqVisible;
|
|
30
|
+
kbqVisibleChange: EventEmitter<boolean>;
|
|
31
|
+
kbqZIndex: number;
|
|
32
|
+
kbqWidth: number | string;
|
|
33
|
+
kbqSize: ModalSize;
|
|
34
|
+
kbqWrapClassName: string;
|
|
35
|
+
kbqClassName: string;
|
|
36
|
+
kbqStyle: object;
|
|
37
|
+
kbqTitle: string | TemplateRef<{}>;
|
|
38
|
+
kbqCloseByESC: boolean;
|
|
39
|
+
get kbqClosable(): boolean;
|
|
40
|
+
set kbqClosable(value: boolean);
|
|
41
|
+
private _kbqClosable;
|
|
42
|
+
get kbqMask(): boolean;
|
|
43
|
+
set kbqMask(value: boolean);
|
|
44
|
+
private _kbqMask;
|
|
45
|
+
get kbqMaskClosable(): boolean;
|
|
46
|
+
set kbqMaskClosable(value: boolean);
|
|
47
|
+
private _kbqMaskClosable;
|
|
48
|
+
kbqMaskStyle: object;
|
|
49
|
+
kbqBodyStyle: object;
|
|
50
|
+
kbqAfterOpen: EventEmitter<void>;
|
|
51
|
+
kbqAfterClose: EventEmitter<R>;
|
|
52
|
+
kbqOkText: string;
|
|
53
|
+
kbqOkType: KbqComponentColors;
|
|
54
|
+
kbqRestoreFocus: boolean;
|
|
55
|
+
get kbqOkLoading(): boolean;
|
|
56
|
+
set kbqOkLoading(value: boolean);
|
|
57
|
+
private _kbqOkLoading;
|
|
58
|
+
kbqOnOk: EventEmitter<T> | OnClickCallback<T>;
|
|
59
|
+
kbqCancelText: string;
|
|
60
|
+
get kbqCancelLoading(): boolean;
|
|
61
|
+
set kbqCancelLoading(value: boolean);
|
|
62
|
+
private _kbqCancelLoading;
|
|
63
|
+
kbqOnCancel: EventEmitter<T> | OnClickCallback<T>;
|
|
62
64
|
modalContainer: ElementRef;
|
|
63
65
|
bodyContainer: ViewContainerRef;
|
|
64
66
|
autoFocusedButtons: QueryList<ElementRef>;
|
|
65
67
|
modalBody: ElementRef;
|
|
66
|
-
isTopOverflow: boolean;
|
|
67
|
-
isBottomOverflow: boolean;
|
|
68
68
|
maskAnimationClassMap: object;
|
|
69
69
|
modalAnimationClassMap: object;
|
|
70
70
|
transformOrigin: string;
|
|
@@ -74,16 +74,16 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
74
74
|
get cancelText(): string;
|
|
75
75
|
get hidden(): boolean;
|
|
76
76
|
private focusedElementBeforeOpen;
|
|
77
|
+
private previouslyFocusedElementOrigin;
|
|
77
78
|
private contentComponentRef;
|
|
78
79
|
private animationState;
|
|
79
80
|
private container;
|
|
80
|
-
constructor(overlay: Overlay, renderer: Renderer2, cfr: ComponentFactoryResolver, elementRef: ElementRef, viewContainer: ViewContainerRef, modalControl: KbqModalControlService, changeDetector: ChangeDetectorRef, document: any);
|
|
81
|
-
|
|
81
|
+
constructor(overlay: Overlay, renderer: Renderer2, cfr: ComponentFactoryResolver, elementRef: ElementRef, viewContainer: ViewContainerRef, modalControl: KbqModalControlService, changeDetector: ChangeDetectorRef, focusMonitor: FocusMonitor, document: any);
|
|
82
|
+
kbqGetContainer: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef);
|
|
82
83
|
ngOnInit(): void;
|
|
83
84
|
ngOnChanges(changes: SimpleChanges): void;
|
|
84
85
|
ngAfterViewInit(): void;
|
|
85
86
|
ngOnDestroy(): void;
|
|
86
|
-
checkOverflow(): void;
|
|
87
87
|
open(): void;
|
|
88
88
|
close(result?: R): void;
|
|
89
89
|
destroy(result?: R): void;
|
|
@@ -100,6 +100,7 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
100
100
|
onKeyDown(event: KeyboardEvent): void;
|
|
101
101
|
onClickCloseBtn(): void;
|
|
102
102
|
onClickOkCancel(type: 'ok' | 'cancel'): void;
|
|
103
|
+
handleCloseResult(triggerType: 'ok' | 'cancel', canClose: (doClose: boolean | void | {}) => boolean): void;
|
|
103
104
|
isNonEmptyString(value: {}): boolean;
|
|
104
105
|
isTemplateRef(value: {}): boolean;
|
|
105
106
|
isComponent(value: {}): boolean;
|
|
@@ -124,5 +125,5 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
124
125
|
*/
|
|
125
126
|
private changeBodyOverflow;
|
|
126
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqModalComponent<any, any>, never>;
|
|
127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqModalComponent<any, any>, "kbq-modal", never, { "
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqModalComponent<any, any>, "kbq-modal", never, { "kbqModalType": { "alias": "kbqModalType"; "required": false; }; "kbqComponent": { "alias": "kbqComponent"; "required": false; }; "kbqContent": { "alias": "kbqContent"; "required": false; }; "kbqComponentParams": { "alias": "kbqComponentParams"; "required": false; }; "kbqFooter": { "alias": "kbqFooter"; "required": false; }; "kbqVisible": { "alias": "kbqVisible"; "required": false; }; "kbqZIndex": { "alias": "kbqZIndex"; "required": false; }; "kbqWidth": { "alias": "kbqWidth"; "required": false; }; "kbqSize": { "alias": "kbqSize"; "required": false; }; "kbqWrapClassName": { "alias": "kbqWrapClassName"; "required": false; }; "kbqClassName": { "alias": "kbqClassName"; "required": false; }; "kbqStyle": { "alias": "kbqStyle"; "required": false; }; "kbqTitle": { "alias": "kbqTitle"; "required": false; }; "kbqCloseByESC": { "alias": "kbqCloseByESC"; "required": false; }; "kbqClosable": { "alias": "kbqClosable"; "required": false; }; "kbqMask": { "alias": "kbqMask"; "required": false; }; "kbqMaskClosable": { "alias": "kbqMaskClosable"; "required": false; }; "kbqMaskStyle": { "alias": "kbqMaskStyle"; "required": false; }; "kbqBodyStyle": { "alias": "kbqBodyStyle"; "required": false; }; "kbqOkText": { "alias": "kbqOkText"; "required": false; }; "kbqOkType": { "alias": "kbqOkType"; "required": false; }; "kbqRestoreFocus": { "alias": "kbqRestoreFocus"; "required": false; }; "kbqOkLoading": { "alias": "kbqOkLoading"; "required": false; }; "kbqOnOk": { "alias": "kbqOnOk"; "required": false; }; "kbqCancelText": { "alias": "kbqCancelText"; "required": false; }; "kbqCancelLoading": { "alias": "kbqCancelLoading"; "required": false; }; "kbqOnCancel": { "alias": "kbqOnCancel"; "required": false; }; "kbqGetContainer": { "alias": "kbqGetContainer"; "required": false; }; }, { "kbqVisibleChange": "kbqVisibleChange"; "kbqAfterOpen": "kbqAfterOpen"; "kbqAfterClose": "kbqAfterClose"; "kbqOnOk": "kbqOnOk"; "kbqOnCancel": "kbqOnCancel"; }, never, ["*"], false, never>;
|
|
128
129
|
}
|
package/modal/modal.module.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import * as i5 from "@angular/cdk/overlay";
|
|
|
7
7
|
import * as i6 from "@angular/cdk/a11y";
|
|
8
8
|
import * as i7 from "@koobiq/components/button";
|
|
9
9
|
import * as i8 from "@koobiq/components/icon";
|
|
10
|
+
import * as i9 from "@koobiq/components/title";
|
|
10
11
|
export declare class KbqModalModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqModalModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqModalModule, [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i3.CssUnitPipe, typeof i2.KbqModalMainAction], [typeof i4.CommonModule, typeof i5.OverlayModule, typeof i6.A11yModule, typeof i7.KbqButtonModule, typeof i8.KbqIconModule], [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i2.KbqModalMainAction]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqModalModule, [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i3.CssUnitPipe, typeof i2.KbqModalMainAction], [typeof i4.CommonModule, typeof i5.OverlayModule, typeof i6.A11yModule, typeof i7.KbqButtonModule, typeof i8.KbqIconModule, typeof i9.KbqTitleModule], [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i2.KbqModalMainAction]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqModalModule>;
|
|
14
15
|
}
|
package/modal/modal.scss
CHANGED
|
@@ -14,7 +14,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
14
14
|
|
|
15
15
|
position: relative;
|
|
16
16
|
|
|
17
|
-
top:
|
|
17
|
+
top: 48px;
|
|
18
|
+
|
|
19
|
+
border-radius: var(--kbq-modal-size-border-radius, map.get($tokens, modal-size-border-radius));
|
|
18
20
|
|
|
19
21
|
width: auto;
|
|
20
22
|
|
|
@@ -31,26 +33,30 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
&.kbq-modal_small {
|
|
34
|
-
width: var(--kbq-modal-size-small, map.get($tokens, modal-size-small));
|
|
36
|
+
width: var(--kbq-modal-size-small-width, map.get($tokens, modal-size-small-width));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
&.kbq-modal_medium {
|
|
38
|
-
width: var(--kbq-modal-size-medium, map.get($tokens, modal-size-medium));
|
|
40
|
+
width: var(--kbq-modal-size-medium-width, map.get($tokens, modal-size-medium-width));
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
&.kbq-modal_large {
|
|
42
|
-
width: var(--kbq-modal-size-large, map.get($tokens, modal-size-large));
|
|
44
|
+
width: var(--kbq-modal-size-large-width, map.get($tokens, modal-size-large-width));
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
// todo реализуем когда будем делать 2.0, пока нет возможности отслеживать наличие/отстутствие футера
|
|
48
|
+
//&.kbq-modal_no-footer .kbq-modal-body {
|
|
49
|
+
// padding-bottom: var(
|
|
50
|
+
// --kbq-modal-size-content-padding-bottom-without-footer,
|
|
51
|
+
// map.get($tokens, modal-size-content-padding-bottom-without-footer)
|
|
52
|
+
// );
|
|
53
|
+
//}
|
|
54
|
+
|
|
45
55
|
& .kbq-modal-close {
|
|
46
56
|
position: absolute;
|
|
47
57
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
right: 0;
|
|
51
|
-
|
|
52
|
-
width: var(--kbq-modal-size-close-width, map.get($tokens, modal-size-close-width));
|
|
53
|
-
height: var(--kbq-modal-size-close-width, map.get($tokens, modal-size-close-width));
|
|
58
|
+
top: 16px;
|
|
59
|
+
right: 8px;
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -69,56 +75,69 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
69
75
|
outline: 0;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
|
-
.kbq-modal-title {
|
|
73
|
-
margin: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
78
|
.kbq-modal-content {
|
|
77
79
|
position: relative;
|
|
78
80
|
|
|
79
81
|
border-radius: var(--kbq-modal-size-border-radius, map.get($tokens, modal-size-border-radius));
|
|
80
82
|
|
|
81
83
|
background-clip: padding-box;
|
|
82
|
-
background-color: white;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
.kbq-modal-header {
|
|
86
87
|
display: flex;
|
|
87
88
|
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
padding:
|
|
92
|
+
var(--kbq-modal-size-header-padding-vertical, map.get($tokens, modal-size-header-padding-vertical))
|
|
93
|
+
var(--kbq-modal-size-header-padding-right, map.get($tokens, modal-size-header-padding-right))
|
|
94
|
+
var(--kbq-modal-size-header-padding-vertical, map.get($tokens, modal-size-header-padding-vertical))
|
|
95
|
+
var(--kbq-modal-size-header-padding-left, map.get($tokens, modal-size-header-padding-left));
|
|
90
96
|
|
|
91
|
-
|
|
97
|
+
& + .kbq-modal-body {
|
|
98
|
+
padding-top: var(--kbq-modal-size-content-padding-top, map.get($tokens, modal-size-content-padding-top));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
92
101
|
|
|
93
|
-
|
|
102
|
+
.kbq-modal-title {
|
|
103
|
+
display: -webkit-box;
|
|
104
|
+
-webkit-box-orient: vertical;
|
|
105
|
+
-webkit-line-clamp: 2;
|
|
106
|
+
overflow: hidden;
|
|
94
107
|
}
|
|
95
108
|
|
|
109
|
+
/* stylelint-disable no-descending-specificity */
|
|
96
110
|
.kbq-modal-body {
|
|
97
111
|
display: block;
|
|
98
112
|
overflow-y: auto;
|
|
99
113
|
|
|
100
|
-
max-height:
|
|
114
|
+
max-height: calc(100vh - 260px);
|
|
101
115
|
|
|
102
|
-
padding:
|
|
116
|
+
padding:
|
|
117
|
+
var(
|
|
118
|
+
--kbq-modal-size-content-padding-top-without-header,
|
|
119
|
+
map.get($tokens, modal-size-content-padding-top-without-header)
|
|
120
|
+
)
|
|
121
|
+
var(--kbq-modal-size-content-padding-horizontal, map.get($tokens, modal-size-content-padding-horizontal))
|
|
122
|
+
var(--kbq-modal-size-content-padding-bottom, map.get($tokens, modal-size-content-padding-bottom))
|
|
123
|
+
var(--kbq-modal-size-content-padding-horizontal, map.get($tokens, modal-size-content-padding-horizontal));
|
|
103
124
|
|
|
104
125
|
word-wrap: break-word;
|
|
105
126
|
}
|
|
127
|
+
/* stylelint-enable no-descending-specificity */
|
|
106
128
|
|
|
107
|
-
.kbq-modal-footer
|
|
129
|
+
.kbq-modal-footer,
|
|
130
|
+
.kbq-confirm-footer {
|
|
108
131
|
display: flex;
|
|
109
132
|
align-items: center;
|
|
110
|
-
justify-content: flex-end;
|
|
111
133
|
|
|
112
|
-
|
|
134
|
+
padding:
|
|
135
|
+
var(--kbq-modal-size-footer-padding-vertical, map.get($tokens, modal-size-footer-padding-vertical))
|
|
136
|
+
var(--kbq-modal-size-footer-padding-horizontal, map.get($tokens, modal-size-footer-padding-horizontal));
|
|
113
137
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
button + button {
|
|
119
|
-
margin-left: 16px;
|
|
120
|
-
margin-bottom: 0;
|
|
121
|
-
}
|
|
138
|
+
gap: var(
|
|
139
|
+
--kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
|
|
140
|
+
);
|
|
122
141
|
}
|
|
123
142
|
|
|
124
143
|
.kbq-modal-mask {
|
package/modal/modal.type.d.ts
CHANGED
|
@@ -6,44 +6,43 @@ export type ConfirmType = 'confirm' | 'success' | 'warn';
|
|
|
6
6
|
export declare enum ModalSize {
|
|
7
7
|
Small = "small",
|
|
8
8
|
Medium = "medium",
|
|
9
|
-
Normal = "medium",
|
|
10
9
|
Large = "large"
|
|
11
10
|
}
|
|
12
|
-
export interface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
11
|
+
export interface ModalOptions<T = any, R = any> {
|
|
12
|
+
kbqModalType?: ModalType;
|
|
13
|
+
kbqVisible?: boolean;
|
|
14
|
+
kbqZIndex?: number;
|
|
15
|
+
kbqWidth?: number | string;
|
|
16
|
+
kbqSize?: ModalSize;
|
|
17
|
+
kbqWrapClassName?: string;
|
|
18
|
+
kbqClassName?: string;
|
|
19
|
+
kbqStyle?: object;
|
|
20
|
+
kbqTitle?: string | TemplateRef<{}>;
|
|
21
|
+
kbqContent?: string | TemplateRef<{}> | Type<T>;
|
|
22
|
+
kbqComponent?: Type<T>;
|
|
23
|
+
kbqComponentParams?: any;
|
|
24
|
+
kbqClosable?: boolean;
|
|
25
|
+
kbqMask?: boolean;
|
|
26
|
+
kbqMaskClosable?: boolean;
|
|
27
|
+
kbqMaskStyle?: object;
|
|
28
|
+
kbqBodyStyle?: object;
|
|
29
|
+
kbqFooter?: string | TemplateRef<{}> | IModalButtonOptions<T>[];
|
|
30
|
+
kbqGetContainer?: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef) | null;
|
|
31
|
+
kbqAfterOpen?: EventEmitter<void>;
|
|
32
|
+
kbqAfterClose?: EventEmitter<R>;
|
|
33
|
+
kbqCloseByESC?: boolean;
|
|
34
|
+
kbqRestoreFocus?: boolean;
|
|
35
|
+
kbqOkText?: string;
|
|
36
|
+
kbqOkType?: string;
|
|
37
|
+
kbqOkLoading?: boolean;
|
|
38
|
+
kbqOnOk?: EventEmitter<T> | OnClickCallback<T>;
|
|
39
|
+
kbqCancelText?: string;
|
|
40
|
+
kbqCancelLoading?: boolean;
|
|
41
|
+
kbqOnCancel?: EventEmitter<T> | OnClickCallback<T>;
|
|
43
42
|
}
|
|
44
|
-
export interface IModalOptionsForService<T = any> extends
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
export interface IModalOptionsForService<T = any> extends ModalOptions<T> {
|
|
44
|
+
kbqOnOk?: OnClickCallback<T>;
|
|
45
|
+
kbqOnCancel?: OnClickCallback<T>;
|
|
47
46
|
}
|
|
48
47
|
export interface IModalButtonOptions<T = any> {
|
|
49
48
|
label: string;
|
|
@@ -56,6 +55,6 @@ export interface IModalButtonOptions<T = any> {
|
|
|
56
55
|
loading?: boolean | ((this: IModalButtonOptions<T>, contentComponentInstance?: T) => boolean);
|
|
57
56
|
disabled?: boolean | ((this: IModalButtonOptions<T>, contentComponentInstance?: T) => boolean);
|
|
58
57
|
autoFocus?: boolean;
|
|
59
|
-
|
|
58
|
+
kbqModalMainAction?: boolean;
|
|
60
59
|
onClick?(this: IModalButtonOptions<T>, contentComponentInstance?: T): (void | {}) | Promise<(void | {})>;
|
|
61
60
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
&.kbq-disabled {
|
|
65
65
|
pointer-events: none;
|
|
66
66
|
cursor: default;
|
|
67
67
|
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
&.cdk-keyboard-focused .kbq-navbar-item__overlay {
|
|
80
80
|
box-shadow:
|
|
81
81
|
inset 0 0 0 2px map.get(map.get($theme, states), focused-color),
|
|
82
|
-
inset 0 0 0 3px map.get($background,
|
|
82
|
+
inset 0 0 0 3px map.get($background, bg);
|
|
83
83
|
}
|
|
84
84
|
/* stylelint-enable no-descending-specificity */
|
|
85
85
|
}
|