@koobiq/components 18.36.0 → 18.38.0
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/autocomplete/autocomplete.scss +2 -17
- package/breadcrumbs/breadcrumbs.d.ts +2 -1
- package/breadcrumbs/breadcrumbs.scss +4 -4
- package/button/button.component.d.ts +1 -0
- package/button-toggle/button-toggle.scss +0 -2
- package/content-panel/content-panel.d.ts +1 -1
- package/content-panel/index.d.ts +0 -1
- package/core/common-behaviors/hover.d.ts +15 -0
- package/core/common-behaviors/index.d.ts +1 -1
- package/core/locales/en-US.d.ts +6 -0
- package/core/locales/es-LA.d.ts +6 -0
- package/core/locales/formatters.d.ts +0 -72
- package/core/locales/index.d.ts +0 -2
- package/core/locales/locale-service.d.ts +24 -386
- package/core/locales/pt-BR.d.ts +6 -0
- package/core/locales/ru-RU.d.ts +6 -0
- package/core/locales/tk-TM.d.ts +6 -0
- package/core/option/option.d.ts +3 -2
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/pop-up/pop-up.d.ts +1 -0
- package/core/select/common.d.ts +3 -1
- package/core/styles/common/_select.scss +20 -0
- package/core/styles/typography/_typography.scss +23 -82
- package/datepicker/datepicker-module.d.ts +2 -1
- package/dropdown/dropdown-item.scss +8 -7
- package/dropdown/dropdown.scss +5 -14
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +4 -4
- package/esm2022/breadcrumbs/breadcrumbs.mjs +46 -37
- package/esm2022/button/button.component.mjs +6 -4
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/code-block/code-block-highlight.mjs +6 -1
- package/esm2022/content-panel/content-panel.mjs +2 -2
- package/esm2022/content-panel/index.mjs +1 -2
- package/esm2022/core/common-behaviors/color.mjs +2 -1
- package/esm2022/core/common-behaviors/common-module.mjs +2 -1
- package/esm2022/core/common-behaviors/disabled.mjs +2 -1
- package/esm2022/core/common-behaviors/error-state.mjs +2 -1
- package/esm2022/core/common-behaviors/hover.mjs +34 -0
- package/esm2022/core/common-behaviors/index.mjs +2 -2
- package/esm2022/core/common-behaviors/tabindex.mjs +2 -1
- package/esm2022/core/form-field/field-sizing-content.mjs +5 -2
- package/esm2022/core/formatters/number/formatter.mjs +2 -2
- package/esm2022/core/locales/en-US.mjs +7 -1
- package/esm2022/core/locales/es-LA.mjs +16 -10
- package/esm2022/core/locales/formatters.mjs +1 -73
- package/esm2022/core/locales/index.mjs +1 -3
- package/esm2022/core/locales/locale-service.mjs +5 -8
- package/esm2022/core/locales/pt-BR.mjs +25 -19
- package/esm2022/core/locales/ru-RU.mjs +7 -1
- package/esm2022/core/locales/tk-TM.mjs +30 -24
- package/esm2022/core/option/option.mjs +10 -6
- package/esm2022/core/pop-up/pop-up-trigger.mjs +2 -1
- package/esm2022/core/pop-up/pop-up.mjs +36 -2
- package/esm2022/core/select/common.mjs +10 -4
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +5 -4
- package/esm2022/datepicker/datepicker-module.mjs +7 -4
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +5 -2
- package/esm2022/file-upload/file-drop.mjs +5 -3
- package/esm2022/file-upload/multiple-file-upload.component.mjs +9 -13
- package/esm2022/file-upload/single-file-upload.component.mjs +9 -4
- package/esm2022/filter-bar/filter-bar.mjs +6 -2
- package/esm2022/filter-bar/filter-search.mjs +3 -3
- package/esm2022/filter-bar/filters.mjs +10 -5
- package/esm2022/filter-bar/pipe-add.mjs +3 -2
- package/esm2022/filter-bar/pipes/base-pipe.mjs +11 -3
- package/esm2022/filter-bar/pipes/pipe-date.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +5 -4
- package/esm2022/filter-bar/pipes/pipe-multi-tree-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-text.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-title.mjs +24 -19
- package/esm2022/filter-bar/pipes/pipe-tree-select.mjs +2 -2
- package/esm2022/form-field/fieldset.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/stepper.mjs +41 -10
- package/esm2022/inline-edit/inline-edit.mjs +9 -5
- package/esm2022/input/input-number.mjs +7 -6
- package/esm2022/input/input.module.mjs +7 -4
- package/esm2022/list/list-selection.component.mjs +31 -15
- package/esm2022/markdown/markdown.component.mjs +7 -7
- package/esm2022/modal/modal-util.mjs +7 -3
- package/esm2022/modal/modal.component.mjs +2 -2
- package/esm2022/modal/modal.service.mjs +2 -1
- package/esm2022/navbar/navbar-brand.component.mjs +105 -0
- package/esm2022/navbar/navbar-item.component.mjs +18 -170
- package/esm2022/navbar/navbar-toggle.component.mjs +88 -0
- package/esm2022/navbar/navbar.component.mjs +8 -4
- package/esm2022/navbar/navbar.module.mjs +4 -2
- package/esm2022/navbar/public-api.mjs +3 -1
- package/esm2022/navbar/vertical-navbar.component.mjs +28 -6
- package/esm2022/navbar-ic/navbar-ic-header.mjs +20 -4
- package/esm2022/navbar-ic/navbar-ic-item.mjs +7 -8
- package/esm2022/navbar-ic/navbar-ic.animation.mjs +10 -2
- package/esm2022/navbar-ic/navbar-ic.mjs +33 -9
- package/esm2022/notification-center/notification-center.mjs +9 -33
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +24 -5
- package/esm2022/resizer/index.mjs +3 -0
- package/esm2022/resizer/koobiq-components-resizer.mjs +5 -0
- package/esm2022/resizer/module.mjs +17 -0
- package/esm2022/resizer/resizer.mjs +135 -0
- package/esm2022/scrollbar/scrollbar.directive.mjs +4 -3
- package/esm2022/search-expandable/search-expandable.mjs +5 -5
- package/esm2022/select/select.component.mjs +2 -14
- package/esm2022/select/select.module.mjs +8 -4
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/split-button/split-button.mjs +47 -6
- package/esm2022/tags/tag-input.mjs +24 -28
- package/esm2022/tags/tag-list.component.mjs +76 -87
- package/esm2022/tags/tag.component.mjs +29 -34
- package/esm2022/textarea/textarea.module.mjs +5 -4
- package/esm2022/time-range/constants.mjs +22 -1
- package/esm2022/time-range/time-range-editor.mjs +11 -6
- package/esm2022/time-range/time-range-title-as-form-field.mjs +2 -1
- package/esm2022/time-range/time-range.mjs +8 -3
- package/esm2022/time-range/time-range.service.mjs +43 -106
- package/esm2022/time-range/types.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +5 -4
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone.module.mjs +6 -4
- package/esm2022/title/title.directive.mjs +6 -2
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/top-bar/top-bar.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +7 -6
- package/esm2022/tree/tree-selection.component.mjs +23 -13
- package/esm2022/tree-select/tree-select.component.mjs +97 -79
- package/esm2022/tree-select/tree-select.module.mjs +7 -4
- package/fesm2022/koobiq-components-autocomplete.mjs +3 -3
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +45 -36
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +5 -3
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +5 -0
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-content-panel.mjs +3 -137
- package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +156 -478
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +8 -5
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +4 -4
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +4 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +19 -17
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +64 -41
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +44 -17
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-inline-edit.mjs +8 -4
- package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +12 -9
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +30 -14
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +6 -6
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +9 -4
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar-ic.mjs +70 -26
- package/fesm2022/koobiq-components-navbar-ic.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +792 -740
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +8 -32
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +25 -6
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-resizer.mjs +156 -0
- package/fesm2022/koobiq-components-resizer.mjs.map +1 -0
- package/fesm2022/koobiq-components-scrollbar.mjs +3 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-search-expandable.mjs +4 -4
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +8 -17
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +2 -2
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-split-button.mjs +46 -5
- package/fesm2022/koobiq-components-split-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +125 -146
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +4 -4
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +81 -112
- package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +4 -4
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +7 -5
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +5 -1
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +2 -2
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +102 -82
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +28 -17
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +32 -34
- package/file-upload/file-upload-tokens.scss +1 -2
- package/file-upload/file-upload.scss +4 -7
- package/file-upload/multiple-file-upload.component.d.ts +1 -1
- package/file-upload/multiple-file-upload.component.scss +12 -14
- package/file-upload/single-file-upload.component.d.ts +1 -0
- package/file-upload/single-file-upload.component.scss +5 -7
- package/filter-bar/filter-bar.d.ts +3 -1
- package/filter-bar/filter-search.scss +1 -3
- package/filter-bar/filters.d.ts +1 -0
- package/filter-bar/pipes/base-pipe.d.ts +5 -1
- package/filter-bar/pipes/pipe-date.scss +4 -2
- package/filter-bar/pipes/pipe-title.d.ts +2 -0
- package/form-field/fieldset-tokens.scss +2 -1
- package/form-field/form-field-tokens.scss +2 -2
- package/form-field/form-field.scss +9 -1
- package/form-field/stepper.d.ts +28 -6
- package/inline-edit/inline-edit.d.ts +5 -1
- package/input/input.module.d.ts +2 -1
- package/list/list-selection.component.d.ts +12 -1
- package/markdown/_markdown-theme.scss +0 -1
- package/markdown/markdown.scss +2 -4
- package/modal/modal-tokens.scss +2 -1
- package/modal/modal-util.d.ts +5 -2
- package/modal/modal.scss +3 -4
- package/navbar/_navbar-item_vertical.scss +44 -43
- package/navbar/_navbar-theme.scss +14 -35
- package/navbar/navbar-brand.component.d.ts +39 -0
- package/navbar/navbar-brand.scss +78 -45
- package/navbar/navbar-divider.scss +1 -1
- package/navbar/navbar-item.component.d.ts +4 -36
- package/navbar/navbar-toggle.component.d.ts +23 -0
- package/navbar/navbar-toggle.scss +64 -0
- package/navbar/navbar-tokens.scss +1 -0
- package/navbar/navbar.module.d.ts +8 -6
- package/navbar/public-api.d.ts +2 -0
- package/navbar/vertical-navbar.component.d.ts +20 -2
- package/navbar/vertical-navbar.scss +14 -9
- package/navbar-ic/navbar-ic-header.d.ts +3 -2
- package/navbar-ic/navbar-ic-header.scss +0 -4
- package/navbar-ic/navbar-ic-item.d.ts +1 -0
- package/navbar-ic/navbar-ic-item.scss +0 -4
- package/navbar-ic/navbar-ic.animation.d.ts +1 -0
- package/navbar-ic/navbar-ic.d.ts +7 -0
- package/notification-center/notification-center.d.ts +12 -9
- package/package.json +16 -10
- package/popover/popover-tokens.scss +1 -0
- package/popover/popover.component.d.ts +12 -1
- package/popover/popover.scss +3 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/resizer/index.d.ts +2 -0
- package/resizer/module.d.ts +7 -0
- package/{content-panel/resizable.d.ts → resizer/resizer.d.ts} +18 -13
- package/schematics/collection.json +5 -0
- package/schematics/migrations/icons-replacement/README.md +93 -0
- package/schematics/migrations/icons-replacement/data.js +92 -0
- package/schematics/migrations/icons-replacement/index.js +84 -0
- package/schematics/migrations/icons-replacement/schema.json +32 -0
- package/schematics/ng-add/index.js +6 -6
- package/scrollbar/scrollbar.component.scss +2 -3
- package/select/select.module.d.ts +2 -1
- package/select/select.scss +1 -17
- package/sidepanel/sidepanel-tokens.scss +2 -0
- package/sidepanel/sidepanel.scss +2 -0
- package/split-button/_split-button-theme.scss +89 -34
- package/split-button/split-button.d.ts +11 -5
- package/split-button/split-button.scss +40 -51
- package/tags/tag-input.d.ts +16 -7
- package/tags/tag-list.component.d.ts +44 -21
- package/tags/tag-list.scss +13 -14
- package/tags/tag.component.d.ts +20 -15
- package/textarea/textarea-tokens.scss +6 -1
- package/textarea/textarea.module.d.ts +2 -1
- package/textarea/textarea.scss +4 -0
- package/time-range/constants.d.ts +12 -1
- package/time-range/time-range-editor.d.ts +7 -9
- package/time-range/time-range-title-as-form-field.d.ts +1 -0
- package/time-range/time-range.d.ts +5 -2
- package/time-range/time-range.service.d.ts +7 -11
- package/time-range/types.d.ts +37 -11
- package/timepicker/timepicker.module.d.ts +2 -1
- package/timezone/timezone-option.component.scss +6 -0
- package/timezone/timezone.module.d.ts +1 -1
- package/toggle/_toggle-theme.scss +8 -5
- package/toggle/toggle-tokens.scss +0 -1
- package/toggle/toggle.scss +11 -15
- package/top-bar/top-bar-tokens.scss +1 -1
- package/top-bar/top-bar.scss +3 -0
- package/tree/tree-option.component.d.ts +1 -0
- package/tree/tree-selection.component.d.ts +11 -2
- package/tree-select/tree-select.component.d.ts +5 -5
- package/tree-select/tree-select.module.d.ts +2 -1
- package/tree-select/tree-select.scss +4 -0
- package/core/common-behaviors/hovered.d.ts +0 -13
- package/core/locales/fa-IR.d.ts +0 -162
- package/core/locales/zh-CN.d.ts +0 -162
- package/esm2022/content-panel/resizable.mjs +0 -138
- package/esm2022/core/common-behaviors/hovered.mjs +0 -31
- package/esm2022/core/locales/fa-IR.mjs +0 -173
- package/esm2022/core/locales/zh-CN.mjs +0 -161
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
|
|
2
|
-
/* stylelint-disable selector-class-pattern */
|
|
3
1
|
@use '../core/styles/common/tokens';
|
|
4
2
|
|
|
5
3
|
@mixin kbq-file-upload-theme() {
|
|
@@ -19,11 +17,11 @@
|
|
|
19
17
|
color: var(--kbq-file-upload-single-default-icon-button-color);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
.kbq-dropzone__icon {
|
|
20
|
+
.kbq-file-dropzone__icon {
|
|
23
21
|
color: var(--kbq-file-upload-single-default-upload-icon-color);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
.file-item__text-wrapper .kbq-icon.kbq-empty {
|
|
24
|
+
.kbq-file-item__text-wrapper .kbq-icon.kbq-empty {
|
|
27
25
|
color: var(--kbq-file-upload-single-default-left-icon-color);
|
|
28
26
|
}
|
|
29
27
|
|
|
@@ -32,27 +30,27 @@
|
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
&.
|
|
33
|
+
&.kbq-file-drop_dragover {
|
|
36
34
|
background-color: var(--kbq-file-upload-single-states-on-drag-container-background);
|
|
37
35
|
border-color: var(--kbq-file-upload-single-states-on-drag-container-border) !important;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
&.kbq-error:not(.kbq-disabled) {
|
|
41
|
-
&:not(.
|
|
39
|
+
&:not(.kbq-file-drop_dragover) {
|
|
42
40
|
background-color: var(--kbq-file-upload-single-states-error-container-background);
|
|
43
41
|
border-color: var(--kbq-file-upload-single-states-error-container-border) !important;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
.kbq-dropzone__icon {
|
|
44
|
+
.kbq-file-dropzone__icon {
|
|
47
45
|
color: var(--kbq-file-upload-single-states-error-upload-icon-color);
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
.file-item__text-wrapper .kbq-icon.kbq-empty {
|
|
48
|
+
.kbq-file-item__text-wrapper .kbq-icon.kbq-empty {
|
|
51
49
|
color: var(--kbq-file-upload-single-states-error-left-icon-color);
|
|
52
50
|
}
|
|
53
51
|
|
|
54
|
-
.file-item__text,
|
|
55
|
-
.dropzone__text:not(.kbq-link) {
|
|
52
|
+
.kbq-file-item__text,
|
|
53
|
+
.kbq-file-dropzone__text:not(.kbq-link) {
|
|
56
54
|
color: var(--kbq-file-upload-single-states-error-text-block-color);
|
|
57
55
|
}
|
|
58
56
|
|
|
@@ -69,16 +67,16 @@
|
|
|
69
67
|
background-color: var(--kbq-file-upload-single-states-disabled-container-background);
|
|
70
68
|
border-color: var(--kbq-file-upload-single-states-disabled-container-border) !important;
|
|
71
69
|
|
|
72
|
-
.kbq-dropzone__icon {
|
|
70
|
+
.kbq-file-dropzone__icon {
|
|
73
71
|
color: var(--kbq-file-upload-single-states-disabled-upload-icon-color);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
.file-item__text-wrapper .kbq-icon.kbq-empty {
|
|
74
|
+
.kbq-file-item__text-wrapper .kbq-icon.kbq-empty {
|
|
77
75
|
color: var(--kbq-file-upload-single-states-disabled-left-icon-color);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
.dropzone__text,
|
|
81
|
-
.file-item__text {
|
|
78
|
+
.kbq-file-dropzone__text,
|
|
79
|
+
.kbq-file-item__text {
|
|
82
80
|
color: var(--kbq-file-upload-single-states-disabled-text-block-color);
|
|
83
81
|
}
|
|
84
82
|
|
|
@@ -103,7 +101,7 @@
|
|
|
103
101
|
border: 2px solid var(--kbq-file-upload-multiple-states-focused-focus-outline-color);
|
|
104
102
|
}
|
|
105
103
|
|
|
106
|
-
.btn-upload {
|
|
104
|
+
.kbq-file-btn-upload {
|
|
107
105
|
border-top-color: var(--kbq-file-upload-multiple-default-container-border);
|
|
108
106
|
}
|
|
109
107
|
|
|
@@ -113,16 +111,16 @@
|
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
&:not(.kbq-disabled, .kbq-error) {
|
|
116
|
-
.kbq-dropzone__icon {
|
|
114
|
+
.kbq-file-dropzone__icon {
|
|
117
115
|
color: var(--kbq-file-upload-multiple-default-upload-icon-color);
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
|
|
121
|
-
&.
|
|
119
|
+
&.kbq-file-drop_dragover {
|
|
122
120
|
background-color: var(--kbq-file-upload-multiple-states-on-drag-container-background);
|
|
123
121
|
border-color: var(--kbq-file-upload-multiple-states-on-drag-container-border) !important;
|
|
124
122
|
|
|
125
|
-
.btn-upload {
|
|
123
|
+
.kbq-file-btn-upload {
|
|
126
124
|
border-top-color: var(--kbq-file-upload-multiple-states-on-drag-container-border);
|
|
127
125
|
}
|
|
128
126
|
|
|
@@ -130,7 +128,7 @@
|
|
|
130
128
|
border-bottom-color: var(--kbq-file-upload-multiple-states-on-drag-grid-divider-color) !important;
|
|
131
129
|
}
|
|
132
130
|
|
|
133
|
-
.kbq-dropzone__icon {
|
|
131
|
+
.kbq-file-dropzone__icon {
|
|
134
132
|
color: var(--kbq-file-upload-multiple-states-on-drag-upload-icon-color);
|
|
135
133
|
}
|
|
136
134
|
}
|
|
@@ -139,11 +137,11 @@
|
|
|
139
137
|
background-color: var(--kbq-file-upload-multiple-states-disabled-container-background);
|
|
140
138
|
border-color: var(--kbq-file-upload-multiple-states-disabled-container-border) !important;
|
|
141
139
|
|
|
142
|
-
.kbq-dropzone__icon {
|
|
140
|
+
.kbq-file-dropzone__icon {
|
|
143
141
|
color: var(--kbq-file-upload-multiple-states-disabled-upload-icon-color);
|
|
144
142
|
}
|
|
145
143
|
|
|
146
|
-
.dropzone__text,
|
|
144
|
+
.kbq-file-dropzone__text,
|
|
147
145
|
.kbq-file-multiple-uploaded__header {
|
|
148
146
|
color: var(--kbq-file-upload-multiple-states-disabled-text-block-color);
|
|
149
147
|
}
|
|
@@ -152,12 +150,12 @@
|
|
|
152
150
|
border-bottom-color: var(--kbq-file-upload-multiple-states-disabled-grid-divider-color) !important;
|
|
153
151
|
}
|
|
154
152
|
|
|
155
|
-
.multiple__uploaded-item {
|
|
153
|
+
.kbq-file-multiple__uploaded-item {
|
|
156
154
|
.kbq-file-upload__file .kbq-icon.kbq-empty {
|
|
157
155
|
color: var(--kbq-file-upload-multiple-states-disabled-left-icon-color);
|
|
158
156
|
}
|
|
159
157
|
|
|
160
|
-
.file-item__text,
|
|
158
|
+
.kbq-file-item__text,
|
|
161
159
|
.kbq-file-upload__size {
|
|
162
160
|
color: var(--kbq-file-upload-multiple-states-disabled-text-block-color);
|
|
163
161
|
}
|
|
@@ -173,21 +171,21 @@
|
|
|
173
171
|
background-color: var(--kbq-background-error-less);
|
|
174
172
|
border-color: var(--kbq-line-error) !important;
|
|
175
173
|
|
|
176
|
-
.kbq-dropzone__icon {
|
|
174
|
+
.kbq-file-dropzone__icon {
|
|
177
175
|
color: var(--kbq-file-upload-multiple-states-error-upload-icon-color);
|
|
178
176
|
}
|
|
179
177
|
|
|
180
|
-
.dropzone__text:not(.kbq-link),
|
|
178
|
+
.kbq-file-dropzone__text:not(.kbq-link),
|
|
181
179
|
.kbq-file-multiple-uploaded__header {
|
|
182
180
|
color: var(--kbq-file-upload-multiple-states-error-text-block-color);
|
|
183
181
|
}
|
|
184
182
|
}
|
|
185
183
|
|
|
186
|
-
.multiple__uploaded-item {
|
|
187
|
-
&:has(.kbq-file-upload__row.error) {
|
|
184
|
+
.kbq-file-multiple__uploaded-item {
|
|
185
|
+
&:has(.kbq-file-upload__row.kbq-error) {
|
|
188
186
|
background-color: var(--kbq-background-error-less);
|
|
189
187
|
|
|
190
|
-
.file-item__text,
|
|
188
|
+
.kbq-file-item__text,
|
|
191
189
|
.kbq-file-upload__size {
|
|
192
190
|
color: var(--kbq-foreground-error);
|
|
193
191
|
}
|
|
@@ -203,7 +201,7 @@
|
|
|
203
201
|
}
|
|
204
202
|
}
|
|
205
203
|
|
|
206
|
-
.multiple__uploaded-item {
|
|
204
|
+
.kbq-file-multiple__uploaded-item {
|
|
207
205
|
.kbq-file-upload__file .kbq-icon.kbq-empty {
|
|
208
206
|
color: var(--kbq-file-upload-multiple-default-left-icon-color);
|
|
209
207
|
}
|
|
@@ -233,19 +231,19 @@
|
|
|
233
231
|
|
|
234
232
|
// @TODO: remove when redesign applied, use default font (#DS-3858)
|
|
235
233
|
.kbq-single-file-upload {
|
|
236
|
-
& .file-item__text-wrapper,
|
|
237
|
-
& .dropzone__text {
|
|
234
|
+
& .kbq-file-item__text-wrapper,
|
|
235
|
+
& .kbq-file-dropzone__text {
|
|
238
236
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
239
237
|
}
|
|
240
238
|
}
|
|
241
239
|
|
|
242
240
|
.kbq-multiple-file-upload {
|
|
243
|
-
.multiple__header {
|
|
241
|
+
.kbq-file-multiple__header {
|
|
244
242
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, subheading);
|
|
245
243
|
}
|
|
246
244
|
|
|
247
245
|
// @TODO: remove when redesign applied, use default font (#DS-3858)
|
|
248
|
-
.multiple__caption {
|
|
246
|
+
.kbq-file-multiple__caption {
|
|
249
247
|
&,
|
|
250
248
|
.kbq-link {
|
|
251
249
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
@@ -258,7 +256,7 @@
|
|
|
258
256
|
}
|
|
259
257
|
|
|
260
258
|
// @TODO: remove when redesign applied, use default font (#DS-3858)
|
|
261
|
-
.multiple__uploaded-item {
|
|
259
|
+
.kbq-file-multiple__uploaded-item {
|
|
262
260
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
263
261
|
}
|
|
264
262
|
|
|
@@ -87,8 +87,7 @@
|
|
|
87
87
|
--kbq-file-upload-multiple-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
:where(.kbq-file-upload.compact) {
|
|
90
|
+
:where(.kbq-file-upload.kbq-file-upload_compact) {
|
|
92
91
|
--kbq-file-upload-multiple-compact-container-content-gap-horizontal: var(--kbq-size-s);
|
|
93
92
|
--kbq-file-upload-multiple-compact-text-block-padding-vertical: var(--kbq-size-3xs);
|
|
94
93
|
--kbq-file-upload-multiple-compact-container-padding-vertical: 11px;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
|
|
2
|
-
/* stylelint-disable selector-class-pattern */
|
|
3
|
-
|
|
4
1
|
@use './file-upload-theme' as theme;
|
|
5
2
|
|
|
6
3
|
.kbq-file-upload {
|
|
@@ -9,8 +6,8 @@
|
|
|
9
6
|
align-items: center;
|
|
10
7
|
position: relative;
|
|
11
8
|
|
|
12
|
-
.dropzone,
|
|
13
|
-
.file-item {
|
|
9
|
+
.kbq-file-dropzone,
|
|
10
|
+
.kbq-file-item {
|
|
14
11
|
display: flex;
|
|
15
12
|
align-items: center;
|
|
16
13
|
}
|
|
@@ -19,14 +16,14 @@
|
|
|
19
16
|
position: relative;
|
|
20
17
|
display: flex;
|
|
21
18
|
|
|
22
|
-
.
|
|
19
|
+
.kbq-ellipsis-center_data-text-start {
|
|
23
20
|
flex: 0 1 auto;
|
|
24
21
|
overflow: hidden;
|
|
25
22
|
text-overflow: ellipsis;
|
|
26
23
|
white-space: pre;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
|
-
.
|
|
26
|
+
.kbq-ellipsis-center_data-text-end {
|
|
30
27
|
flex: 1 0 auto;
|
|
31
28
|
overflow: hidden;
|
|
32
29
|
white-space: pre;
|
|
@@ -59,7 +59,6 @@ export declare class KbqMultipleFileUploadComponent extends KbqFileUploadBase im
|
|
|
59
59
|
protected readonly customFileIcon: TemplateRef<HTMLElement>;
|
|
60
60
|
/** @docs-private */
|
|
61
61
|
readonly input: ElementRef<HTMLInputElement>;
|
|
62
|
-
private readonly listSelection?;
|
|
63
62
|
private readonly fileSizeHeaderCell;
|
|
64
63
|
/** @docs-private */
|
|
65
64
|
protected readonly hint: QueryList<TemplateRef<any>>;
|
|
@@ -107,6 +106,7 @@ export declare class KbqMultipleFileUploadComponent extends KbqFileUploadBase im
|
|
|
107
106
|
/** @docs-private */
|
|
108
107
|
readonly configuration: KbqInputFileMultipleLabel | null;
|
|
109
108
|
private readonly focusMonitor;
|
|
109
|
+
private readonly platformId;
|
|
110
110
|
constructor();
|
|
111
111
|
ngDoCheck(): void;
|
|
112
112
|
ngAfterViewInit(): void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
|
|
2
|
-
/* stylelint-disable selector-class-pattern */
|
|
3
1
|
@use '../core/styles/common/tokens' as *;
|
|
4
2
|
|
|
5
3
|
// todo нужно рефакторить со стилями тут сложно
|
|
@@ -8,7 +6,7 @@
|
|
|
8
6
|
border-width: var(--kbq-file-upload-size-multiple-big-container-border-width);
|
|
9
7
|
border-style: dashed;
|
|
10
8
|
|
|
11
|
-
&.
|
|
9
|
+
&.kbq-file-upload_default:not(.kbq-selected) {
|
|
12
10
|
justify-content: center;
|
|
13
11
|
|
|
14
12
|
padding: var(--kbq-file-upload-size-multiple-big-container-padding-vertical)
|
|
@@ -18,25 +16,25 @@
|
|
|
18
16
|
|
|
19
17
|
min-width: var(--kbq-file-upload-size-multiple-big-container-min-width);
|
|
20
18
|
|
|
21
|
-
.dropzone {
|
|
19
|
+
.kbq-file-dropzone {
|
|
22
20
|
gap: var(--kbq-file-upload-size-multiple-big-container-content-gap-horizontal);
|
|
23
21
|
}
|
|
24
22
|
|
|
25
|
-
.dropzone__text {
|
|
26
|
-
.multiple__caption {
|
|
23
|
+
.kbq-file-dropzone__text {
|
|
24
|
+
.kbq-file-multiple__caption {
|
|
27
25
|
padding-top: var(--kbq-file-upload-size-multiple-big-text-block-content-gap-vertical);
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
&.
|
|
30
|
+
&.kbq-file-upload_compact:not(.kbq-selected) {
|
|
33
31
|
padding: var(--kbq-file-upload-multiple-compact-container-padding-vertical)
|
|
34
32
|
var(--kbq-file-upload-multiple-compact-container-padding-horizontal);
|
|
35
33
|
|
|
36
|
-
.dropzone {
|
|
34
|
+
.kbq-file-dropzone {
|
|
37
35
|
gap: var(--kbq-file-upload-multiple-compact-container-content-gap-horizontal);
|
|
38
36
|
|
|
39
|
-
.dropzone__text.multiple__caption {
|
|
37
|
+
.kbq-file-dropzone__text.kbq-file-multiple__caption {
|
|
40
38
|
padding-top: var(--kbq-file-upload-multiple-compact-text-block-padding-vertical);
|
|
41
39
|
|
|
42
40
|
padding-bottom: var(--kbq-file-upload-multiple-compact-text-block-padding-vertical);
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
.kbq-list-option.multiple__uploaded-item {
|
|
45
|
+
.kbq-list-option.kbq-file-multiple__uploaded-item {
|
|
48
46
|
border-radius: 0;
|
|
49
47
|
padding: 0 calc(var(--kbq-size-3xs) - var(--kbq-file-upload-size-multiple-big-container-border-width));
|
|
50
48
|
|
|
@@ -86,7 +84,7 @@
|
|
|
86
84
|
align-items: center;
|
|
87
85
|
gap: var(--kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal);
|
|
88
86
|
|
|
89
|
-
.file-item__text {
|
|
87
|
+
.kbq-file-item__text {
|
|
90
88
|
width: 90%;
|
|
91
89
|
}
|
|
92
90
|
}
|
|
@@ -134,7 +132,7 @@
|
|
|
134
132
|
}
|
|
135
133
|
}
|
|
136
134
|
|
|
137
|
-
.btn-upload {
|
|
135
|
+
.kbq-file-btn-upload {
|
|
138
136
|
margin: -1px;
|
|
139
137
|
padding: calc(var(--kbq-size-m) - var(--kbq-file-upload-size-multiple-big-container-border-width))
|
|
140
138
|
var(--kbq-size-m) var(--kbq-size-m) var(--kbq-size-m);
|
|
@@ -142,12 +140,12 @@
|
|
|
142
140
|
border-top-width: var(--kbq-file-upload-size-multiple-big-container-border-width);
|
|
143
141
|
border-top-style: dashed;
|
|
144
142
|
|
|
145
|
-
.dropzone {
|
|
143
|
+
.kbq-file-dropzone {
|
|
146
144
|
gap: var(--kbq-file-upload-size-multiple-big-dropzone-content-gap-horizontal);
|
|
147
145
|
}
|
|
148
146
|
}
|
|
149
147
|
|
|
150
|
-
.file-upload__dropzone {
|
|
148
|
+
.kbq-file-upload__dropzone {
|
|
151
149
|
width: 100%;
|
|
152
150
|
height: 100%;
|
|
153
151
|
}
|
|
@@ -66,6 +66,7 @@ export declare class KbqSingleFileUploadComponent extends KbqFileUploadBase impl
|
|
|
66
66
|
/** @docs-private */
|
|
67
67
|
readonly configuration: KbqInputFileLabel | null;
|
|
68
68
|
private readonly focusMonitor;
|
|
69
|
+
private readonly platformId;
|
|
69
70
|
constructor();
|
|
70
71
|
ngDoCheck(): void;
|
|
71
72
|
ngAfterViewInit(): void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// @TODO should remove "selector-class-pattern" rule ignore (#DS-3753)
|
|
2
|
-
/* stylelint-disable selector-class-pattern */
|
|
3
1
|
@use '../core/styles/common/tokens' as *;
|
|
4
2
|
|
|
5
3
|
.kbq-single-file-upload .kbq-file-upload {
|
|
@@ -17,7 +15,7 @@
|
|
|
17
15
|
border-width: var(--kbq-file-upload-size-single-container-border-width);
|
|
18
16
|
border-style: dashed;
|
|
19
17
|
|
|
20
|
-
& .dropzone__text {
|
|
18
|
+
& .kbq-file-dropzone__text {
|
|
21
19
|
padding-top: var(--kbq-file-upload-size-single-text-block-padding-vertical);
|
|
22
20
|
|
|
23
21
|
padding-bottom: var(--kbq-file-upload-size-single-text-block-padding-vertical);
|
|
@@ -25,21 +23,21 @@
|
|
|
25
23
|
gap: var(--kbq-file-upload-size-single-text-block-content-gap-horizontal);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
& .dropzone {
|
|
26
|
+
& .kbq-file-dropzone {
|
|
29
27
|
gap: var(--kbq-file-upload-size-single-container-content-gap-horizontal);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
.file-item {
|
|
30
|
+
.kbq-file-item {
|
|
33
31
|
width: 100%;
|
|
34
32
|
|
|
35
|
-
.file-item__text-wrapper {
|
|
33
|
+
.kbq-file-item__text-wrapper {
|
|
36
34
|
display: flex;
|
|
37
35
|
align-items: center;
|
|
38
36
|
width: 100%;
|
|
39
37
|
|
|
40
38
|
gap: var(--kbq-file-upload-size-single-container-content-gap-horizontal);
|
|
41
39
|
|
|
42
|
-
.file-item__text {
|
|
40
|
+
.kbq-file-item__text {
|
|
43
41
|
width: 120px;
|
|
44
42
|
flex-grow: 1;
|
|
45
43
|
}
|
|
@@ -38,6 +38,8 @@ export declare class KbqFilterBar {
|
|
|
38
38
|
readonly onChangePipe: EventEmitter<KbqPipe>;
|
|
39
39
|
/** Event that emits whenever the pipe deleted. */
|
|
40
40
|
readonly onRemovePipe: EventEmitter<KbqPipe>;
|
|
41
|
+
/** Event that emits whenever the pipe cleared. */
|
|
42
|
+
readonly onClearPipe: EventEmitter<KbqPipe>;
|
|
41
43
|
/** Event that emits whenever the select or multiselect pipe closed. */
|
|
42
44
|
readonly onClosePipe: EventEmitter<KbqPipe>;
|
|
43
45
|
/** Whether the current filter is saved and changed */
|
|
@@ -74,6 +76,6 @@ export declare class KbqFilterBar {
|
|
|
74
76
|
private updateLocaleParams;
|
|
75
77
|
private initDefaultParams;
|
|
76
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFilterBar, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqFilterBar, "kbq-filter-bar, [kbq-filter-bar]", never, { "selectedAllEqualsSelectedNothing": { "alias": "selectedAllEqualsSelectedNothing"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "pipeTemplates": { "alias": "pipeTemplates"; "required": false; }; }, { "filterChange": "filterChange"; "onChangePipe": "onChangePipe"; "onRemovePipe": "onRemovePipe"; "onClosePipe": "onClosePipe"; }, ["filters", "filterReset"], ["kbq-filters", "*", "kbq-pipe-add", "kbq-filter-reset", "kbq-filter-search, [kbq-filter-search]", "kbq-filter-refresher, [kbq-filter-refresher]"], true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqFilterBar, "kbq-filter-bar, [kbq-filter-bar]", never, { "selectedAllEqualsSelectedNothing": { "alias": "selectedAllEqualsSelectedNothing"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "pipeTemplates": { "alias": "pipeTemplates"; "required": false; }; }, { "filterChange": "filterChange"; "onChangePipe": "onChangePipe"; "onRemovePipe": "onRemovePipe"; "onClearPipe": "onClearPipe"; "onClosePipe": "onClosePipe"; }, ["filters", "filterReset"], ["kbq-filters", "*", "kbq-pipe-add", "kbq-filter-reset", "kbq-filter-search, [kbq-filter-search]", "kbq-filter-refresher, [kbq-filter-refresher]"], true, never>;
|
|
78
80
|
static ngAcceptInputType_selectedAllEqualsSelectedNothing: unknown;
|
|
79
81
|
}
|
package/filter-bar/filters.d.ts
CHANGED
|
@@ -23,7 +23,11 @@ export declare abstract class KbqBasePipe<V> implements AfterViewInit {
|
|
|
23
23
|
protected values: any;
|
|
24
24
|
/** TemplateRef for selecting an option */
|
|
25
25
|
protected valueTemplate?: TemplateRef<any> | string;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Whether the current platform is a Mac.
|
|
28
|
+
*
|
|
29
|
+
* @docs-private
|
|
30
|
+
*/
|
|
27
31
|
isMac: boolean;
|
|
28
32
|
/** Data for the pipe.
|
|
29
33
|
* @docs-private */
|
|
@@ -87,15 +87,17 @@
|
|
|
87
87
|
display: flex;
|
|
88
88
|
|
|
89
89
|
& .kbq-date-period__date {
|
|
90
|
+
min-width: 136px;
|
|
91
|
+
|
|
90
92
|
& .kbq-form-field__container {
|
|
91
93
|
border-top-right-radius: unset;
|
|
92
94
|
border-bottom-right-radius: unset;
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
& .kbq-date-period__time {
|
|
98
|
+
& .kbq-date-period__time.kbq-form-field-type-timepicker {
|
|
97
99
|
margin-left: -1px;
|
|
98
|
-
|
|
100
|
+
width: unset;
|
|
99
101
|
|
|
100
102
|
& .kbq-form-field__container {
|
|
101
103
|
border-top-left-radius: unset;
|
|
@@ -15,10 +15,12 @@ export declare class KbqPipeTitleDirective extends KbqTooltipTrigger implements
|
|
|
15
15
|
private focusMonitorSubscription;
|
|
16
16
|
private childContainer;
|
|
17
17
|
private parentContainer;
|
|
18
|
+
constructor();
|
|
18
19
|
ngAfterViewInit(): void;
|
|
19
20
|
ngOnDestroy(): void;
|
|
20
21
|
handleElementEnter(): void;
|
|
21
22
|
hideTooltip(): void;
|
|
23
|
+
private listenToMutationObserver;
|
|
22
24
|
private createMutationObserver;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPipeTitleDirective, never>;
|
|
24
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqPipeTitleDirective, "[kbqPipeTitle]", ["kbqPipeTitle"], { "viewValue": { "alias": "kbqPipeTitle"; "required": false; }; }, {}, ["parentContainer", "childContainer"], never, true, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.kbq-fieldset {
|
|
2
2
|
--kbq-fieldset-legend-margin: var(--kbq-size-s);
|
|
3
|
-
--kbq-form-field-hint-size-margin-top: var(--kbq-size-
|
|
3
|
+
--kbq-form-field-hint-size-margin-top: var(--kbq-size-xs);
|
|
4
4
|
--kbq-form-field-hint-text: var(--kbq-foreground-contrast-secondary);
|
|
5
|
+
--kbq-form-field-hint-size-gap: var(--kbq-size-xxs);
|
|
5
6
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
--kbq-form-field-size-icon-button-size: var(--kbq-size-xxl);
|
|
11
11
|
--kbq-form-field-size-icon-button-margin-left: var(--kbq-size-xxs);
|
|
12
12
|
|
|
13
|
-
--kbq-form-field-hint-size-margin-top: var(--kbq-size-
|
|
14
|
-
--kbq-form-field-hint-size-gap: var(--kbq-size-
|
|
13
|
+
--kbq-form-field-hint-size-margin-top: var(--kbq-size-xs);
|
|
14
|
+
--kbq-form-field-hint-size-gap: var(--kbq-size-xxs);
|
|
15
15
|
|
|
16
16
|
--kbq-form-field-size-container-vertical-padding: calc(var(--kbq-size-xs) - var(--kbq-size-border-width));
|
|
17
17
|
--kbq-form-field-size-container-left-padding: calc(var(--kbq-size-xs) - var(--kbq-size-border-width));
|
|
@@ -4,8 +4,16 @@
|
|
|
4
4
|
@mixin kbq-form-field-hint-geometry {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
gap: var(--kbq-size-
|
|
7
|
+
gap: var(--kbq-form-field-hint-size-gap);
|
|
8
8
|
margin-top: var(--kbq-form-field-hint-size-margin-top);
|
|
9
|
+
|
|
10
|
+
&:has(.kbq-reactive-password-hint, .kbq-password-hint) {
|
|
11
|
+
--kbq-form-field-hint-size-gap: var(--kbq-size-s);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:has(:is(.kbq-reactive-password-hint, .kbq-password-hint):first-child) {
|
|
15
|
+
--kbq-form-field-hint-size-margin-top: var(--kbq-size-m);
|
|
16
|
+
}
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
.kbq-form-field {
|
package/form-field/stepper.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import { KbqFormFieldControl } from './form-field-control';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
type KbqNumberInput = KbqFormFieldControl<unknown> & {
|
|
@@ -6,13 +7,37 @@ type KbqNumberInput = KbqFormFieldControl<unknown> & {
|
|
|
6
7
|
stepDown: (step: number) => void;
|
|
7
8
|
step: number;
|
|
8
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Timeout duration when clicking the up/down arrow
|
|
12
|
+
* @docs-private
|
|
13
|
+
*/
|
|
14
|
+
export declare const KBQ_STEPPER_INITIAL_TIMEOUT = 300;
|
|
15
|
+
/**
|
|
16
|
+
* Interval delay when clicking the up/down arrow
|
|
17
|
+
* @docs-private
|
|
18
|
+
*/
|
|
19
|
+
export declare const KBQ_STEPPER_INTERVAL_DELAY = 75;
|
|
9
20
|
/** Component which allow to increment or decrement number value. */
|
|
10
21
|
export declare class KbqStepper {
|
|
11
22
|
private readonly formField;
|
|
23
|
+
private readonly document;
|
|
12
24
|
/** Emitted when the stepper is incremented. */
|
|
13
25
|
readonly stepUp: EventEmitter<void>;
|
|
14
26
|
/** Emitted when the stepper is decremented. */
|
|
15
27
|
readonly stepDown: EventEmitter<void>;
|
|
28
|
+
/** @docs-private */
|
|
29
|
+
protected readonly mouseUp: Subject<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Timing observable simulating long press in native input-number.
|
|
32
|
+
* - Value increases/decreases by step immediately.
|
|
33
|
+
* - Brief pause (`300ms`)
|
|
34
|
+
* - Numbers start running upward/downward with selected speed
|
|
35
|
+
* (controlled by interval period)
|
|
36
|
+
* @see KBQ_STEPPER_INTERVAL_DELAY
|
|
37
|
+
* @see KBQ_STEPPER_INITIAL_TIMEOUT
|
|
38
|
+
* @docs-private
|
|
39
|
+
*/
|
|
40
|
+
private readonly longPress;
|
|
16
41
|
/**
|
|
17
42
|
* Form field number control.
|
|
18
43
|
*
|
|
@@ -23,14 +48,11 @@ export declare class KbqStepper {
|
|
|
23
48
|
* @docs-private
|
|
24
49
|
*/
|
|
25
50
|
connectTo(numberInput: KbqNumberInput): void;
|
|
26
|
-
/**
|
|
27
|
-
* @docs-private
|
|
28
|
-
*/
|
|
51
|
+
/** @docs-private */
|
|
29
52
|
onStepUp($event: MouseEvent): void;
|
|
30
|
-
/**
|
|
31
|
-
* @docs-private
|
|
32
|
-
*/
|
|
53
|
+
/** @docs-private */
|
|
33
54
|
onStepDown($event: MouseEvent): void;
|
|
55
|
+
private handleStep;
|
|
34
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqStepper, never>;
|
|
35
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqStepper, "kbq-stepper", ["kbqStepper"], {}, { "stepUp": "stepUp"; "stepDown": "stepDown"; }, never, never, true, never>;
|
|
36
58
|
}
|
|
@@ -65,6 +65,10 @@ export declare class KbqInlineEdit {
|
|
|
65
65
|
readonly getValueHandler: import("@angular/core").InputSignal<(() => unknown) | undefined>;
|
|
66
66
|
/** Handler function to update the value */
|
|
67
67
|
readonly setValueHandler: import("@angular/core").InputSignal<((value: any) => void) | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Customizable function that checks if saving on enter available.
|
|
70
|
+
*/
|
|
71
|
+
readonly canSaveOnEnter: import("@angular/core").InputSignal<(event: KeyboardEvent) => boolean>;
|
|
68
72
|
/** Emitted when the inline edit is saved successfully. */
|
|
69
73
|
protected readonly saved: import("@angular/core").OutputEmitterRef<void>;
|
|
70
74
|
/** Emitted when the inline edit is canceled and changes are discarded. */
|
|
@@ -132,5 +136,5 @@ export declare class KbqInlineEdit {
|
|
|
132
136
|
private openPanel;
|
|
133
137
|
private getInputNativeElement;
|
|
134
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqInlineEdit, never>;
|
|
135
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqInlineEdit, "kbq-inline-edit", ["kbqInlineEdit"], { "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; "showTooltipOnError": { "alias": "showTooltipOnError"; "required": false; "isSignal": true; }; "validationTooltip": { "alias": "validationTooltip"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "editModeWidth": { "alias": "editModeWidth"; "required": false; "isSignal": true; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; "isSignal": true; }; "getValueHandler": { "alias": "getValueHandler"; "required": false; "isSignal": true; }; "setValueHandler": { "alias": "setValueHandler"; "required": false; "isSignal": true; }; }, { "saved": "saved"; "canceled": "canceled"; "modeChange": "modeChange"; }, ["menu", "label", "formFieldRef"], ["kbq-label", "[kbqInlineEditViewMode]", "[kbqInlineEditMenu]", "[kbqInlineEditEditMode]"], true, [{ directive: typeof i1.KbqFocusMonitor; inputs: {}; outputs: {}; }]>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqInlineEdit, "kbq-inline-edit", ["kbqInlineEdit"], { "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; "showTooltipOnError": { "alias": "showTooltipOnError"; "required": false; "isSignal": true; }; "validationTooltip": { "alias": "validationTooltip"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "editModeWidth": { "alias": "editModeWidth"; "required": false; "isSignal": true; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; "isSignal": true; }; "getValueHandler": { "alias": "getValueHandler"; "required": false; "isSignal": true; }; "setValueHandler": { "alias": "setValueHandler"; "required": false; "isSignal": true; }; "canSaveOnEnter": { "alias": "canSaveOnEnter"; "required": false; "isSignal": true; }; }, { "saved": "saved"; "canceled": "canceled"; "modeChange": "modeChange"; }, ["menu", "label", "formFieldRef"], ["kbq-label", "[kbqInlineEditViewMode]", "[kbqInlineEditMenu]", "[kbqInlineEditEditMode]"], true, [{ directive: typeof i1.KbqFocusMonitor; inputs: {}; outputs: {}; }]>;
|
|
136
140
|
}
|
package/input/input.module.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ import * as i4 from "./input-number-validators";
|
|
|
6
6
|
import * as i5 from "@angular/cdk/a11y";
|
|
7
7
|
import * as i6 from "@angular/forms";
|
|
8
8
|
import * as i7 from "@koobiq/components/icon";
|
|
9
|
+
import * as i8 from "@koobiq/components/form-field";
|
|
9
10
|
export declare class KbqInputModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqInputModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqInputModule, [typeof i1.KbqInput, typeof i2.KbqNumberInput, typeof i3.KbqInputPassword, typeof i1.KbqInputMono, typeof i4.MinValidator, typeof i4.MaxValidator], [typeof i5.A11yModule, typeof i6.FormsModule, typeof i7.KbqIconModule], [typeof i1.KbqInput, typeof i2.KbqNumberInput, typeof i3.KbqInputPassword, typeof i1.KbqInputMono, typeof i4.MinValidator, typeof i4.MaxValidator]>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqInputModule, [typeof i1.KbqInput, typeof i2.KbqNumberInput, typeof i3.KbqInputPassword, typeof i1.KbqInputMono, typeof i4.MinValidator, typeof i4.MaxValidator], [typeof i5.A11yModule, typeof i6.FormsModule, typeof i7.KbqIconModule], [typeof i1.KbqInput, typeof i2.KbqNumberInput, typeof i3.KbqInputPassword, typeof i1.KbqInputMono, typeof i4.MinValidator, typeof i4.MaxValidator, typeof i8.KbqFormFieldModule]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqInputModule>;
|
|
13
14
|
}
|