@koobiq/components 16.0.0-beta.1 → 16.0.0-beta.10
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 +8 -0
- package/code-block/code-block.component.d.ts +1 -1
- 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 +685 -92
- package/core/styles/theming/_theming.scss +201 -30
- package/core/styles/typography/_typography.scss +175 -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 +4 -4
- 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 +18 -9
- package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +9 -6
- 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 +1 -1
- 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 +29 -28
- 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 +5 -5
- 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 +42 -33
- 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.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 +29 -28
- 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/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
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
9
9
|
|
|
10
|
+
/* stylelint-disable no-descending-specificity */
|
|
10
11
|
@mixin kbq-file-upload-text-color($states) {
|
|
11
|
-
&,
|
|
12
|
+
&,
|
|
13
|
+
.kbq-icon,
|
|
14
|
+
.kbq-link {
|
|
12
15
|
color: map.get($states, border);
|
|
13
16
|
}
|
|
14
17
|
}
|
|
@@ -20,15 +23,16 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
23
|
|
|
21
24
|
@mixin kbq-file-upload-theme($theme) {
|
|
22
25
|
$file-upload: map.get(map.get($theme, components), file-upload);
|
|
26
|
+
|
|
23
27
|
$single: map.get($file-upload, single);
|
|
24
28
|
$single-states: map.get($single, states);
|
|
29
|
+
|
|
25
30
|
$multiple: map.get($file-upload, multiple);
|
|
26
31
|
$multiple-states: map.get($multiple, states);
|
|
27
|
-
$foreground: map.get($theme, foreground);
|
|
28
32
|
|
|
29
33
|
.kbq-file-upload {
|
|
30
34
|
.kbq-focused, .kbq-link.kbq-focused {
|
|
31
|
-
border: 2px solid map.get(map.get($
|
|
35
|
+
border: 2px solid map.get(map.get($single, states), focused);
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
38
|
|
|
@@ -37,20 +41,23 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
37
41
|
@include kbq-file-upload-color(map.get($single, default));
|
|
38
42
|
|
|
39
43
|
&.dragover {
|
|
40
|
-
@include kbq-file-upload-color(map.get($single-states, drag
|
|
44
|
+
@include kbq-file-upload-color(map.get($single-states, on-drag));
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
&.kbq-error:not(.disabled) {
|
|
47
|
+
&.kbq-error:not(.kbq-disabled) {
|
|
48
|
+
$state-error: map.get($single-states, error);
|
|
49
|
+
|
|
44
50
|
&:not(.dragover) {
|
|
45
|
-
@include kbq-file-upload-color(
|
|
51
|
+
@include kbq-file-upload-color($state-error);
|
|
46
52
|
}
|
|
47
53
|
|
|
48
|
-
*,
|
|
49
|
-
|
|
54
|
+
*,
|
|
55
|
+
.kbq-icon {
|
|
56
|
+
color: map.get($state-error, text-block);
|
|
50
57
|
}
|
|
51
58
|
}
|
|
52
59
|
|
|
53
|
-
&.disabled {
|
|
60
|
+
&.kbq-disabled {
|
|
54
61
|
@include kbq-file-upload-color(map.get($single-states, disabled));
|
|
55
62
|
|
|
56
63
|
@include kbq-file-upload-text-color(map.get($single-states, disabled));
|
|
@@ -60,37 +67,37 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
60
67
|
|
|
61
68
|
.kbq-multiple-file-upload {
|
|
62
69
|
.kbq-file-upload {
|
|
63
|
-
|
|
70
|
+
$default: map.get($multiple, default);
|
|
71
|
+
|
|
72
|
+
@include kbq-file-upload-color($default);
|
|
64
73
|
|
|
65
74
|
.btn-upload {
|
|
66
|
-
.
|
|
67
|
-
border-top-color: map.get(map.get($multiple, default), border);
|
|
68
|
-
}
|
|
75
|
+
border-top-color: map.get($default, border);
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
.kbq-file-multiple-uploaded__header {
|
|
72
|
-
border-bottom-color: map.get(
|
|
79
|
+
border-bottom-color: map.get($default, grid-divider);
|
|
73
80
|
|
|
74
|
-
|
|
75
|
-
color: map.get($
|
|
81
|
+
.kbq-file-multiple-uploaded__header-inner {
|
|
82
|
+
//color: map.get(map.get($multiple, default), border);;
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
&.dragover {
|
|
80
|
-
@include kbq-file-upload-color(map.get($multiple-states, drag
|
|
87
|
+
@include kbq-file-upload-color(map.get($multiple-states, on-drag));
|
|
81
88
|
|
|
82
89
|
.kbq-file-multiple-uploaded__header {
|
|
83
|
-
border-bottom-color: map.get(map.get($multiple-states, drag
|
|
90
|
+
border-bottom-color: map.get(map.get($multiple-states, on-drag), background) !important;
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
&.selected {
|
|
87
94
|
.dropzone {
|
|
88
|
-
border-top-color: map.get(map.get($multiple-states, drag
|
|
95
|
+
border-top-color: map.get(map.get($multiple-states, on-drag), border);
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
98
|
}
|
|
92
99
|
|
|
93
|
-
&.disabled {
|
|
100
|
+
&.kbq-disabled {
|
|
94
101
|
@include kbq-file-upload-color(map.get($multiple-states, disabled));
|
|
95
102
|
|
|
96
103
|
@include kbq-file-upload-text-color(map.get($multiple-states, disabled));
|
|
@@ -102,25 +109,33 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
102
109
|
}
|
|
103
110
|
}
|
|
104
111
|
|
|
105
|
-
&:not(.disabled) {
|
|
112
|
+
&:not(.kbq-disabled) {
|
|
106
113
|
.kbq-file-upload__row.error {
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
$state-error: map.get($multiple-states, error);
|
|
115
|
+
|
|
116
|
+
*,
|
|
117
|
+
.kbq-icon {
|
|
118
|
+
color: map.get($state-error, text-block);
|
|
109
119
|
}
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
.multiple__uploaded-item {
|
|
114
|
-
.kbq-
|
|
115
|
-
|
|
124
|
+
& .kbq-file-upload__file .kbq-icon {
|
|
125
|
+
color: map.get($default, left-icon)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
& .kbq-file-upload__action .kbq-icon {
|
|
129
|
+
color: map.get($default, icon-button)
|
|
116
130
|
}
|
|
117
131
|
}
|
|
118
132
|
}
|
|
119
133
|
}
|
|
120
134
|
|
|
121
|
-
.kbq-single-file-upload,
|
|
135
|
+
.kbq-single-file-upload,
|
|
136
|
+
.kbq-multiple-file-upload {
|
|
122
137
|
.kbq-file-upload__hint:not(.kbq-error) {
|
|
123
|
-
color: map-get($foreground, text-less-contrast);
|
|
138
|
+
//color: map-get($foreground, text-less-contrast);
|
|
124
139
|
}
|
|
125
140
|
}
|
|
126
141
|
}
|
|
@@ -128,18 +143,22 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
128
143
|
|
|
129
144
|
@mixin kbq-file-upload-typography($config) {
|
|
130
145
|
.kbq-single-file-upload {
|
|
131
|
-
|
|
146
|
+
& .file-item__text-wrapper,
|
|
147
|
+
& .dropzone__text {
|
|
148
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-single-text-block));
|
|
149
|
+
}
|
|
132
150
|
}
|
|
133
151
|
|
|
134
152
|
.kbq-multiple-file-upload {
|
|
135
153
|
.multiple__header {
|
|
136
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-
|
|
154
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-title));
|
|
137
155
|
}
|
|
138
156
|
|
|
139
157
|
.multiple__caption {
|
|
140
|
-
&,
|
|
158
|
+
&,
|
|
159
|
+
.kbq-link {
|
|
141
160
|
@include kbq-typography-level-to-styles(
|
|
142
|
-
$config, map.get($tokens, file-upload-font-multiple-
|
|
161
|
+
$config, map.get($tokens, file-upload-font-multiple-text-block)
|
|
143
162
|
);
|
|
144
163
|
}
|
|
145
164
|
}
|
|
@@ -147,12 +166,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
147
166
|
.kbq-file-multiple-uploaded__header {
|
|
148
167
|
@include kbq-typography-level-to-styles(
|
|
149
168
|
$config,
|
|
150
|
-
map.get($tokens, file-upload-font-multiple-
|
|
169
|
+
map.get($tokens, file-upload-font-multiple-grid)
|
|
151
170
|
);
|
|
152
171
|
}
|
|
153
172
|
|
|
154
173
|
.multiple__uploaded-item {
|
|
155
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-
|
|
174
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-grid));
|
|
156
175
|
}
|
|
157
176
|
|
|
158
177
|
.kbq-file-upload {
|
|
@@ -160,15 +179,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
160
179
|
.kbq-list-option {
|
|
161
180
|
@include kbq-typography-level-to-styles(
|
|
162
181
|
$config,
|
|
163
|
-
map.get($tokens, file-upload-font-multiple-
|
|
182
|
+
map.get($tokens, file-upload-font-multiple-grid)
|
|
164
183
|
);
|
|
165
184
|
}
|
|
166
185
|
}
|
|
167
186
|
}
|
|
168
|
-
|
|
169
|
-
.kbq-single-file-upload, .kbq-multiple-file-upload {
|
|
170
|
-
.kbq-file-upload__hint {
|
|
171
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, form-field-hint-font-default));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
187
|
}
|
|
188
|
+
/* stylelint-enable no-descending-specificity */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { KbqFile } from './file-upload';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class KbqFileDropDirective {
|
|
4
5
|
dragover: boolean;
|
|
5
|
-
filesDropped: EventEmitter<FileList>;
|
|
6
|
+
filesDropped: EventEmitter<FileList | KbqFile[]>;
|
|
6
7
|
onDragOver(event: DragEvent): void;
|
|
7
8
|
onDragLeave(event: DragEvent): void;
|
|
8
9
|
onDrop(event: DragEvent): void;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFileDropDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFileDropDirective, "[
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFileDropDirective, "[kbqFileDrop]", ["kbqFileDrop"], {}, { "filesDropped": "filesDropped"; }, never, never, false, never>;
|
|
11
12
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
export interface KbqFile extends File {
|
|
4
|
+
fullPath: string;
|
|
5
|
+
}
|
|
3
6
|
export interface KbqFileItem {
|
|
4
7
|
file: File;
|
|
5
8
|
hasError?: boolean;
|
|
@@ -11,7 +14,7 @@ export interface KbqInputFile {
|
|
|
11
14
|
files: KbqFileItem[] | KbqFileItem | null;
|
|
12
15
|
accept?: string[];
|
|
13
16
|
onFileSelectedViaClick(event: Event): void;
|
|
14
|
-
onFileDropped(files: FileList): void;
|
|
17
|
+
onFileDropped(files: FileList | KbqFile[]): void;
|
|
15
18
|
}
|
|
16
19
|
export interface KbqInputFileLabel {
|
|
17
20
|
captionText: string;
|
|
@@ -6,26 +6,19 @@
|
|
|
6
6
|
@use '../core/styles/common';
|
|
7
7
|
|
|
8
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
9
|
-
$dropzone-text-margin-left: map.get($tokens, size-xs);
|
|
10
9
|
|
|
11
10
|
.kbq-file-upload {
|
|
12
11
|
box-sizing: border-box;
|
|
13
12
|
display: flex;
|
|
14
13
|
align-items: center;
|
|
15
14
|
position: relative;
|
|
16
|
-
cursor: pointer;
|
|
17
15
|
|
|
18
|
-
.dropzone,
|
|
16
|
+
.dropzone,
|
|
17
|
+
.file-item {
|
|
19
18
|
display: flex;
|
|
20
19
|
align-items: center;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
.dropzone {
|
|
24
|
-
.dropzone__text {
|
|
25
|
-
margin-left: $dropzone-text-margin-left;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
22
|
.kbq-ellipsis-center {
|
|
30
23
|
position: relative;
|
|
31
24
|
display: flex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
|
3
3
|
import { CanDisable } from '@koobiq/components/core';
|
|
4
|
-
import { KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
|
|
4
|
+
import { KbqFile, KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface KbqInputFileMultipleLabel extends KbqInputFileLabel {
|
|
7
7
|
captionTextWhenSelected: string;
|
|
@@ -16,6 +16,7 @@ export declare const KBQ_MULTIPLE_FILE_UPLOAD_DEFAULT_CONFIGURATION: KbqInputFil
|
|
|
16
16
|
export declare class KbqMultipleFileUploadComponent implements AfterViewInit, OnDestroy, KbqInputFile, CanDisable {
|
|
17
17
|
private focusMonitor;
|
|
18
18
|
private cdr;
|
|
19
|
+
private renderer;
|
|
19
20
|
config: KbqInputFileMultipleLabel;
|
|
20
21
|
accept?: string[];
|
|
21
22
|
disabled: boolean;
|
|
@@ -35,17 +36,17 @@ export declare class KbqMultipleFileUploadComponent implements AfterViewInit, On
|
|
|
35
36
|
private focusMonitorSubscription;
|
|
36
37
|
get acceptedFiles(): string;
|
|
37
38
|
get hasErrors(): boolean;
|
|
38
|
-
constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, config: KbqInputFileMultipleLabel);
|
|
39
|
+
constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, renderer: Renderer2, config: KbqInputFileMultipleLabel);
|
|
39
40
|
ngAfterViewInit(): void;
|
|
40
41
|
ngOnDestroy(): void;
|
|
41
42
|
onFileSelectedViaClick({ target }: Event): void;
|
|
42
|
-
onFileDropped(files: FileList): void;
|
|
43
|
+
onFileDropped(files: FileList | KbqFile[]): void;
|
|
43
44
|
deleteFile(index: number, event?: MouseEvent): void;
|
|
44
45
|
onFileListChange(): void;
|
|
45
46
|
onFocus(focusState: boolean): void;
|
|
46
47
|
private mapToFileItem;
|
|
47
48
|
private validateFile;
|
|
48
49
|
private isCorrectExtension;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqMultipleFileUploadComponent, [null, null, { optional: true; }]>;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqMultipleFileUploadComponent, [null, null, null, { optional: true; }]>;
|
|
50
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqMultipleFileUploadComponent, "kbq-multiple-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "files": { "alias": "files"; "required": false; }; "size": { "alias": "size"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "customValidation": { "alias": "customValidation"; "required": false; }; }, { "fileQueueChanged": "fileQueueChanged"; }, ["customFileIcon"], ["[hint]"], false, never>;
|
|
51
52
|
}
|
|
@@ -7,56 +7,119 @@
|
|
|
7
7
|
|
|
8
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
$horizontal-padding-item: var(
|
|
15
|
-
--kbq-file-upload-size-multiple-uploaded-item-horizontal-padding,
|
|
16
|
-
map.get($tokens, file-upload-size-multiple-uploaded-item-horizontal-padding)
|
|
17
|
-
);
|
|
18
|
-
$vertical-padding-item: var(
|
|
19
|
-
--kbq-file-upload-size-multiple-uploaded-item-vertical-padding,
|
|
20
|
-
map.get($tokens, file-upload-size-multiple-uploaded-item-vertical-padding)
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
.kbq-file-upload {
|
|
10
|
+
//todo нужно рефакторить со стилями тут сложно
|
|
11
|
+
/* stylelint-disable no-descending-specificity */
|
|
12
|
+
|
|
13
|
+
.kbq-multiple-file-upload .kbq-file-upload {
|
|
24
14
|
border-radius: var(
|
|
25
|
-
--kbq-file-upload-size-multiple-border-radius,
|
|
26
|
-
map.get($tokens, file-upload-size-multiple-border-radius)
|
|
15
|
+
--kbq-file-upload-size-multiple-big-container-border-radius,
|
|
16
|
+
map.get($tokens, file-upload-size-multiple-big-container-border-radius)
|
|
27
17
|
);
|
|
28
18
|
border-width: var(
|
|
29
|
-
--kbq-file-upload-size-multiple-border-width,
|
|
30
|
-
map.get($tokens, file-upload-size-multiple-border-width)
|
|
31
|
-
);
|
|
32
|
-
border-style: var(
|
|
33
|
-
--kbq-file-upload-size-multiple-border-style,
|
|
34
|
-
map.get($tokens, file-upload-size-multiple-border-style)
|
|
19
|
+
--kbq-file-upload-size-multiple-big-container-border-width,
|
|
20
|
+
map.get($tokens, file-upload-size-multiple-big-container-border-width)
|
|
35
21
|
);
|
|
22
|
+
border-style: dashed;
|
|
36
23
|
|
|
37
|
-
&.default {
|
|
38
|
-
min-height: $multiple-default-height;
|
|
24
|
+
&.default:not(.selected) {
|
|
39
25
|
justify-content: center;
|
|
40
|
-
}
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
padding:
|
|
28
|
+
var(
|
|
29
|
+
--kbq-file-upload-size-multiple-big-container-padding-vertical,
|
|
30
|
+
map.get($tokens, file-upload-size-multiple-big-container-padding-vertical)
|
|
31
|
+
)
|
|
32
|
+
var(
|
|
33
|
+
--kbq-file-upload-size-multiple-big-container-padding-vertical,
|
|
34
|
+
map.get($tokens, file-upload-size-multiple-big-container-padding-vertical)
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
min-height: var(
|
|
38
|
+
--kbq-file-upload-size-multiple-big-container-min-height,
|
|
39
|
+
map.get($tokens, file-upload-size-multiple-big-container-min-height)
|
|
50
40
|
);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
|
|
42
|
+
min-width: var(
|
|
43
|
+
--kbq-file-upload-size-multiple-big-container-min-width,
|
|
44
|
+
map.get($tokens, file-upload-size-multiple-big-container-min-width)
|
|
54
45
|
);
|
|
55
|
-
|
|
46
|
+
|
|
47
|
+
& .dropzone {
|
|
48
|
+
gap: var(
|
|
49
|
+
--kbq-file-upload-size-multiple-big-container-content-gap-horizontal,
|
|
50
|
+
map.get($tokens, file-upload-size-multiple-big-container-content-gap-horizontal)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& .dropzone__text {
|
|
55
|
+
& .multiple__caption {
|
|
56
|
+
padding-top: var(
|
|
57
|
+
--kbq-file-upload-size-multiple-big-text-block-content-gap-vertical,
|
|
58
|
+
map.get($tokens, file-upload-size-multiple-big-text-block-content-gap-vertical)
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
gap: var(
|
|
62
|
+
--kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal,
|
|
63
|
+
map.get($tokens, file-upload-size-multiple-big-text-block-content-gap-horizontal)
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
56
67
|
}
|
|
57
68
|
|
|
58
|
-
.
|
|
59
|
-
padding:
|
|
69
|
+
&.compact:not(.selected) {
|
|
70
|
+
padding:
|
|
71
|
+
var(
|
|
72
|
+
--kbq-file-upload-size-single-container-padding-vertical,
|
|
73
|
+
map.get($tokens, file-upload-size-single-container-padding-vertical)
|
|
74
|
+
)
|
|
75
|
+
var(
|
|
76
|
+
--kbq-file-upload-size-single-container-padding-horizontal,
|
|
77
|
+
map.get($tokens, file-upload-size-single-container-padding-horizontal)
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
& .dropzone {
|
|
81
|
+
gap: var(
|
|
82
|
+
--kbq-file-upload-size-single-container-content-gap-horizontal,
|
|
83
|
+
map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
& .dropzone__text.multiple__caption {
|
|
87
|
+
padding-top: var(
|
|
88
|
+
--kbq-file-upload-size-single-text-block-padding-vertical,
|
|
89
|
+
map.get($tokens, file-upload-size-single-text-block-padding-vertical)
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
padding-bottom: var(
|
|
93
|
+
--kbq-file-upload-size-single-text-block-padding-vertical,
|
|
94
|
+
map.get($tokens, file-upload-size-single-text-block-padding-vertical)
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
gap: var(
|
|
98
|
+
--kbq-file-upload-size-single-text-block-content-gap-horizontal,
|
|
99
|
+
map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
& .kbq-list-option.multiple__uploaded-item {
|
|
106
|
+
padding: 0;
|
|
107
|
+
|
|
108
|
+
& .kbq-list-text {
|
|
109
|
+
$padding-vertical: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-vertical);
|
|
110
|
+
$padding-horizontal: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-horizontal);
|
|
111
|
+
$outline-width: map.get($tokens, list-size-container-focus-outline-width);
|
|
112
|
+
|
|
113
|
+
padding:
|
|
114
|
+
calc(
|
|
115
|
+
var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, $padding-vertical) -
|
|
116
|
+
var(--kbq-list-size-container-focus-outline-width, $outline-width)
|
|
117
|
+
)
|
|
118
|
+
calc(
|
|
119
|
+
var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, $padding-horizontal) -
|
|
120
|
+
var(--kbq-list-size-container-focus-outline-width, $outline-width)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
60
123
|
|
|
61
124
|
.kbq-icon {
|
|
62
125
|
margin-right: 0;
|
|
@@ -75,6 +138,11 @@ $vertical-padding-item: var(
|
|
|
75
138
|
.kbq-file-upload__file {
|
|
76
139
|
width: 65%;
|
|
77
140
|
max-width: 65%;
|
|
141
|
+
|
|
142
|
+
gap: var(
|
|
143
|
+
--kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal,
|
|
144
|
+
map.get($tokens, file-upload-size-multiple-big-grid-cell-content-gap-horizontal)
|
|
145
|
+
);
|
|
78
146
|
}
|
|
79
147
|
|
|
80
148
|
.kbq-file-upload__size {
|
|
@@ -87,8 +155,8 @@ $vertical-padding-item: var(
|
|
|
87
155
|
.kbq-file-upload__file,
|
|
88
156
|
.kbq-file-upload__size,
|
|
89
157
|
.kbq-file-upload__action, {
|
|
90
|
-
padding-left: $horizontal-padding-item;
|
|
91
|
-
padding-right: $horizontal-padding-item;
|
|
158
|
+
//padding-left: $horizontal-padding-item;
|
|
159
|
+
//padding-right: $horizontal-padding-item;
|
|
92
160
|
}
|
|
93
161
|
}
|
|
94
162
|
|
|
@@ -106,30 +174,72 @@ $vertical-padding-item: var(
|
|
|
106
174
|
|
|
107
175
|
.kbq-file-multiple-uploaded__header {
|
|
108
176
|
border-bottom-width: 1px;
|
|
109
|
-
border-bottom-style:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
padding: $
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
177
|
+
border-bottom-style: solid;
|
|
178
|
+
|
|
179
|
+
.kbq-file-multiple-uploaded__header-inner {
|
|
180
|
+
$padding-vertical: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-vertical);
|
|
181
|
+
$padding-horizontal: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-horizontal);
|
|
182
|
+
$compensation: 3px;
|
|
183
|
+
|
|
184
|
+
padding:
|
|
185
|
+
calc(
|
|
186
|
+
var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, $padding-vertical) +
|
|
187
|
+
$compensation
|
|
188
|
+
)
|
|
189
|
+
calc(
|
|
190
|
+
var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, $padding-horizontal) +
|
|
191
|
+
$compensation
|
|
192
|
+
);
|
|
117
193
|
}
|
|
118
194
|
|
|
119
195
|
}
|
|
120
196
|
|
|
121
197
|
.btn-upload {
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
198
|
+
$padding-vertical: map.get($tokens, file-upload-size-single-container-padding-vertical);
|
|
199
|
+
$padding-horizontal: map.get($tokens, file-upload-size-single-container-padding-horizontal);
|
|
200
|
+
$border-width: map.get($tokens, file-upload-size-single-container-border-width);
|
|
201
|
+
|
|
202
|
+
padding:
|
|
203
|
+
calc(var(--kbq-file-upload-size-single-container-padding-vertical, $padding-vertical) - $border-width)
|
|
204
|
+
calc(var(--kbq-file-upload-size-single-container-padding-horizontal, $padding-horizontal) - $border-width);
|
|
205
|
+
|
|
206
|
+
border-top-left-radius: var(
|
|
207
|
+
--kbq-file-upload-size-single-container-border-radius,
|
|
208
|
+
map.get($tokens, file-upload-size-single-container-border-radius)
|
|
209
|
+
);
|
|
210
|
+
|
|
211
|
+
border-top-right-radius: var(
|
|
212
|
+
--kbq-file-upload-size-single-container-border-radius,
|
|
213
|
+
map.get($tokens, file-upload-size-single-container-border-radius)
|
|
214
|
+
);
|
|
215
|
+
border-top-width: var(
|
|
216
|
+
--kbq-file-upload-size-single-container-border-width,
|
|
217
|
+
map.get($tokens, file-upload-size-single-container-border-width)
|
|
218
|
+
);
|
|
219
|
+
border-top-style: dashed;
|
|
220
|
+
|
|
221
|
+
& .dropzone {
|
|
222
|
+
gap: var(
|
|
223
|
+
--kbq-file-upload-size-single-container-content-gap-horizontal,
|
|
224
|
+
map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
|
|
131
225
|
);
|
|
132
|
-
|
|
226
|
+
|
|
227
|
+
& .dropzone__text.multiple__caption {
|
|
228
|
+
padding-top: var(
|
|
229
|
+
--kbq-file-upload-size-single-text-block-padding-vertical,
|
|
230
|
+
map.get($tokens, file-upload-size-single-text-block-padding-vertical)
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
padding-bottom: var(
|
|
234
|
+
--kbq-file-upload-size-single-text-block-padding-vertical,
|
|
235
|
+
map.get($tokens, file-upload-size-single-text-block-padding-vertical)
|
|
236
|
+
);
|
|
237
|
+
|
|
238
|
+
gap: var(
|
|
239
|
+
--kbq-file-upload-size-single-text-block-content-gap-horizontal,
|
|
240
|
+
map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
|
|
241
|
+
);
|
|
242
|
+
}
|
|
133
243
|
}
|
|
134
244
|
}
|
|
135
245
|
|
|
@@ -146,3 +256,4 @@ $vertical-padding-item: var(
|
|
|
146
256
|
.kbq-file-upload__hint {
|
|
147
257
|
margin-top: var(--kbq-form-field-hint-size-margin-top, map.get($tokens, form-field-hint-size-margin-top));
|
|
148
258
|
}
|
|
259
|
+
/* stylelint-enable no-descending-specificity */
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
3
3
|
import { CanDisable } from '@koobiq/components/core';
|
|
4
|
-
import { KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
|
|
4
|
+
import { KbqFile, KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const KBQ_SINGLE_FILE_UPLOAD_DEFAULT_CONFIGURATION: KbqInputFileLabel;
|
|
7
7
|
export declare class KbqSingleFileUploadComponent implements AfterViewInit, OnDestroy, KbqInputFile, CanDisable {
|
|
8
8
|
private focusMonitor;
|
|
9
9
|
private cdr;
|
|
10
|
+
private renderer;
|
|
10
11
|
config: KbqInputFileLabel;
|
|
11
12
|
accept: string[];
|
|
12
13
|
disabled: boolean;
|
|
@@ -19,16 +20,16 @@ export declare class KbqSingleFileUploadComponent implements AfterViewInit, OnDe
|
|
|
19
20
|
hasFocus: boolean;
|
|
20
21
|
private focusMonitorSubscription;
|
|
21
22
|
get acceptedFiles(): string;
|
|
22
|
-
constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, config: KbqInputFileLabel);
|
|
23
|
+
constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, renderer: Renderer2, config: KbqInputFileLabel);
|
|
23
24
|
ngAfterViewInit(): void;
|
|
24
25
|
ngOnDestroy(): void;
|
|
25
26
|
onFileSelectedViaClick({ target }: Event): void;
|
|
26
27
|
deleteItem(event?: MouseEvent): void;
|
|
27
|
-
onFileDropped(files: FileList): void;
|
|
28
|
+
onFileDropped(files: FileList | KbqFile[]): void;
|
|
28
29
|
onFocus(focusState: boolean): void;
|
|
29
30
|
private mapToFileItem;
|
|
30
31
|
private validateFile;
|
|
31
32
|
private isCorrectExtension;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSingleFileUploadComponent, [null, null, { optional: true; }]>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSingleFileUploadComponent, [null, null, null, { optional: true; }]>;
|
|
33
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSingleFileUploadComponent, "kbq-single-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "files": { "alias": "files"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "customValidation": { "alias": "customValidation"; "required": false; }; }, { "fileQueueChanged": "fileQueueChanged"; }, never, ["[hint]", "[kbq-icon]"], false, never>;
|
|
34
35
|
}
|