@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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
### Icons replacement schematics
|
|
2
|
+
|
|
3
|
+
This schematic provides migration for new icons naming attribute. It includes:
|
|
4
|
+
|
|
5
|
+
- Replacement of old names with new based on info in `data.ts`;
|
|
6
|
+
|
|
7
|
+
[Params](schema.ts)
|
|
8
|
+
|
|
9
|
+
#### Usage for Angular Cli:
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
ng g @koobiq/components:icons-replacement --project <your project>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- with custom icon replacement mapping:
|
|
16
|
+
|
|
17
|
+
```shell
|
|
18
|
+
ng g @koobiq/components:icons-replacement --project <your project> --replacement-data-path <path-as-json>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```shell
|
|
22
|
+
ng g @koobiq/components:icons-replacement --project <your project>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### Usage for Nx:
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
nx g @koobiq/components:icons-replacement --project <your project>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- with custom icon replacement mapping:
|
|
32
|
+
|
|
33
|
+
```shell
|
|
34
|
+
nx g @koobiq/components:icons-replacement --project <your project> --replacement-data-path <path-as-json>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Run locally
|
|
38
|
+
|
|
39
|
+
Build package
|
|
40
|
+
|
|
41
|
+
```shell
|
|
42
|
+
yarn run build:schematics
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Run command (for example, for `koobiq-docs` project)
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
ng g ./dist/components/schematics/collection.json:icons-replacement --project koobiq-docs
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Result
|
|
52
|
+
|
|
53
|
+
#### Before
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { Component } from '@angular/core';
|
|
57
|
+
|
|
58
|
+
@Component({
|
|
59
|
+
template: `
|
|
60
|
+
<i kbq-icon="kbq-bolt-circle_16">...</i>
|
|
61
|
+
`,
|
|
62
|
+
styles: `
|
|
63
|
+
.custom-icon {
|
|
64
|
+
<!-- cspell:ignore xmark -->
|
|
65
|
+
@extend .kbq-xmark-circle_16;
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
})
|
|
69
|
+
export class MyComp {
|
|
70
|
+
iconName = 'kbq-bolt-circle_16';
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
#### After
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import { Component } from '@angular/core';
|
|
78
|
+
|
|
79
|
+
@Component({
|
|
80
|
+
template: `
|
|
81
|
+
<i kbq-icon="kbq-circle-bolt_16">...</i>
|
|
82
|
+
`,
|
|
83
|
+
styles: `
|
|
84
|
+
.custom-icon {
|
|
85
|
+
<!-- cspell:ignore xmark -->
|
|
86
|
+
@extend .kbq-circle-xmark_16;
|
|
87
|
+
}
|
|
88
|
+
`
|
|
89
|
+
})
|
|
90
|
+
export class MyComp {
|
|
91
|
+
iconName = 'kbq-circle-bolt_16';
|
|
92
|
+
}
|
|
93
|
+
```
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const iconReplacementData = [
|
|
4
|
+
{ from: 'anomaly-square_16', to: 'square-a_16' },
|
|
5
|
+
{ from: 'anomaly-square_24', to: 'square-a_24' },
|
|
6
|
+
{ from: 'arrow-circle-down_16', to: 'circle-arrow-down_16' },
|
|
7
|
+
{ from: 'arrow-circle-down_24', to: 'circle-arrow-down_24' },
|
|
8
|
+
{ from: 'arrow-circle-left_16', to: 'circle-arrow-left_16' },
|
|
9
|
+
{ from: 'arrow-circle-left_24', to: 'circle-arrow-left_24' },
|
|
10
|
+
{ from: 'arrow-circle-right_16', to: 'circle-arrow-right_16' },
|
|
11
|
+
{ from: 'arrow-circle-right_24', to: 'circle-arrow-right_24' },
|
|
12
|
+
{ from: 'arrow-circle-up_16', to: 'circle-arrow-up_16' },
|
|
13
|
+
{ from: 'arrow-circle-up_24', to: 'circle-arrow-up_24' },
|
|
14
|
+
{ from: 'arrow-right-circle-dot-o_16', to: 'circle-arrow-right-dot-o_16' },
|
|
15
|
+
{ from: 'arrow-right-circle-dot-o_24', to: 'circle-arrow-right-dot-o_24' },
|
|
16
|
+
{ from: 'bolt-circle_16', to: 'circle-bolt_16' },
|
|
17
|
+
{ from: 'bolt-circle_24', to: 'circle-bolt_24' },
|
|
18
|
+
{ from: 'bolt-rectangle-vertical_16', to: 'rectangle-vertical-bolt_16' },
|
|
19
|
+
{ from: 'bolt-rectangle-vertical_24', to: 'rectangle-vertical-bolt_24' },
|
|
20
|
+
{ from: 'bolt-rectangle-vertical-o_16', to: 'rectangle-vertical-bolt-o_16' },
|
|
21
|
+
{ from: 'bolt-rectangle-vertical-o_24', to: 'rectangle-vertical-bolt-o_24' },
|
|
22
|
+
{ from: 'check-circle_16', to: 'circle-check_16' },
|
|
23
|
+
{ from: 'check-circle_24', to: 'circle-check_24' },
|
|
24
|
+
{ from: 'chevron-circle-down_16', to: 'circle-chevron-down_16' },
|
|
25
|
+
{ from: 'chevron-circle-down_24', to: 'circle-chevron-down_24' },
|
|
26
|
+
{ from: 'chevron-circle-left_16', to: 'circle-chevron-left_16' },
|
|
27
|
+
{ from: 'chevron-circle-left_24', to: 'circle-chevron-left_24' },
|
|
28
|
+
{ from: 'chevron-circle-right_16', to: 'circle-chevron-right_16' },
|
|
29
|
+
{ from: 'chevron-circle-right_24', to: 'circle-chevron-right_24' },
|
|
30
|
+
{ from: 'chevron-circle-up_16', to: 'circle-chevron-up_16' },
|
|
31
|
+
{ from: 'chevron-circle-up_24', to: 'circle-chevron-up_24' },
|
|
32
|
+
{ from: 'compress_16', to: 'chevrons-compress_16' },
|
|
33
|
+
{ from: 'compress_24', to: 'chevrons-compress_24' },
|
|
34
|
+
{ from: 'ellipsis-horizontal-circle-o_16', to: 'circle-ellipsis-horizontal-o_16' },
|
|
35
|
+
{ from: 'ellipsis-horizontal-circle-o_24', to: 'circle-ellipsis-horizontal-o_24' },
|
|
36
|
+
{ from: 'exclamation-circle_16', to: 'circle-exclamation_16' },
|
|
37
|
+
{ from: 'exclamation-circle_24', to: 'circle-exclamation_24' },
|
|
38
|
+
{ from: 'exclamation-triangle_16', to: 'triangle-exclamation_16' },
|
|
39
|
+
{ from: 'exclamation-triangle_24', to: 'triangle-exclamation_24' },
|
|
40
|
+
{ from: 'info-circle_16', to: 'circle-info_16' },
|
|
41
|
+
{ from: 'info-circle_24', to: 'circle-info_24' },
|
|
42
|
+
{ from: 'ip4-rectangle_16', to: 'rectangle-ip4_16' },
|
|
43
|
+
{ from: 'ip4-rectangle_24', to: 'rectangle-ip4_24' },
|
|
44
|
+
{ from: 'ip6-rectangle_16', to: 'rectangle-ip6_16' },
|
|
45
|
+
{ from: 'ip6-rectangle_24', to: 'rectangle-ip6_24' },
|
|
46
|
+
{ from: 'location-arrow-circle-o_16', to: 'circle-location-arrow-o_16' },
|
|
47
|
+
{ from: 'location-arrow-circle-o_24', to: 'circle-location-arrow-o_24' },
|
|
48
|
+
{ from: 'minus-circle_16', to: 'circle-minus_16' },
|
|
49
|
+
{ from: 'minus-circle_24', to: 'circle-minus_24' },
|
|
50
|
+
{ from: 'minus-circle-o_16', to: 'circle-minus-o_16' },
|
|
51
|
+
{ from: 'minus-circle-o_24', to: 'circle-minus-o_24' },
|
|
52
|
+
{ from: 'minus-circle-s_16', to: 'circle-minus-s_16' },
|
|
53
|
+
{ from: 'minus-circle-s_24', to: 'circle-minus-s_24' },
|
|
54
|
+
{ from: 'minus-octagon_16', to: 'octagon-minus_16' },
|
|
55
|
+
{ from: 'minus-octagon_24', to: 'octagon-minus_24' },
|
|
56
|
+
{ from: 'minus-square_16', to: 'square-minus_16' },
|
|
57
|
+
{ from: 'minus-square_24', to: 'square-minus_24' },
|
|
58
|
+
{ from: 'pause-circle_16', to: 'circle-pause_16' },
|
|
59
|
+
{ from: 'pause-circle_24', to: 'circle-pause_24' },
|
|
60
|
+
{ from: 'play-circle_16', to: 'circle-play_16' },
|
|
61
|
+
{ from: 'play-circle_24', to: 'circle-play_24' },
|
|
62
|
+
{ from: 'plus-circle_16', to: 'circle-plus_16' },
|
|
63
|
+
{ from: 'plus-circle_24', to: 'circle-plus_24' },
|
|
64
|
+
{ from: 'plus-circle-s_16', to: 'circle-plus-s_16' },
|
|
65
|
+
{ from: 'plus-circle-s_24', to: 'circle-plus-s_24' },
|
|
66
|
+
{ from: 'plus-square_16', to: 'square-plus_16' },
|
|
67
|
+
{ from: 'plus-square_24', to: 'square-plus_24' },
|
|
68
|
+
{ from: 'question-circle_16', to: 'circle-question_16' },
|
|
69
|
+
{ from: 'question-circle_24', to: 'circle-question_24' },
|
|
70
|
+
{ from: 'stop-circle_16', to: 'circle-stop_16' },
|
|
71
|
+
{ from: 'stop-circle_24', to: 'circle-stop_24' },
|
|
72
|
+
{ from: 'telegram-circle_16', to: 'circle-telegram_16' },
|
|
73
|
+
{ from: 'telegram-circle_24', to: 'circle-telegram_24' },
|
|
74
|
+
{ from: 'user-arrow-triangle-up_16', to: 'user-badge-triangle-up_16' },
|
|
75
|
+
{ from: 'user-arrow-triangle-up_24', to: 'user-badge-triangle-up_24' },
|
|
76
|
+
{ from: 'windows-arrow-rotate-left_16', to: 'arrow-rotate-left-badge-windows_16' },
|
|
77
|
+
{ from: 'wrap-text_16', to: 'text-wrap_16' },
|
|
78
|
+
{ from: 'wrap-text_24', to: 'text-wrap_24' },
|
|
79
|
+
{ from: 'wrap-text-slash_16', to: 'text-overflow_16' },
|
|
80
|
+
{ from: 'wrap-text-slash_24', to: 'text-overflow_24' },
|
|
81
|
+
{ from: 'xmark-circle_16', to: 'circle-xmark_16' },
|
|
82
|
+
{ from: 'xmark-circle_24', to: 'circle-xmark_24' },
|
|
83
|
+
{ from: 'xmark-circle-s_16', to: 'circle-xmark-s_16' },
|
|
84
|
+
{ from: 'xmark-circle-s_24', to: 'circle-xmark-s_24' },
|
|
85
|
+
{ from: 'table-badge-arrow-down-circle_32', to: 'table-badge-circle-arrow-down_32' },
|
|
86
|
+
{ from: 'question-circle-o_32', to: 'circle-question-o_32' },
|
|
87
|
+
{ from: 'gear-badge-arrowtriangle-up-square_16', to: 'gear-badge-square-arrowtriangle-up_16' },
|
|
88
|
+
{ from: 'gear-badge-arrowtriangle-up-square_24', to: 'gear-badge-square-arrowtriangle-up_24' },
|
|
89
|
+
{ from: 'exclamation-triangle_32', to: 'triangle-exclamation_32' }
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
exports.iconReplacementData = iconReplacementData;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var utils_messages = require('../../utils/messages.js');
|
|
7
|
+
var utils_packageConfig = require('../../utils/package-config.js');
|
|
8
|
+
var migrations_iconsReplacement_data = require('./data.js');
|
|
9
|
+
require('@angular-devkit/schematics');
|
|
10
|
+
require('@schematics/angular/utility');
|
|
11
|
+
|
|
12
|
+
const replaceIcons = (contentToBeUpdated, replacementData) => {
|
|
13
|
+
let res = contentToBeUpdated;
|
|
14
|
+
for (const { from, to } of replacementData) {
|
|
15
|
+
res = res.replace(new RegExp(`kbq-${from}`, 'g'), `kbq-${to}`);
|
|
16
|
+
}
|
|
17
|
+
return res;
|
|
18
|
+
};
|
|
19
|
+
const logReplacement = ({ logger, replacementData, contentToBeUpdated, filePath }) => {
|
|
20
|
+
const foundIcons = replacementData.filter(({ from }) => contentToBeUpdated.indexOf(from) !== -1);
|
|
21
|
+
if (foundIcons.length) {
|
|
22
|
+
const parsedFilePath = path.relative(__dirname, `.${filePath}`).replace(/\\/g, '/');
|
|
23
|
+
utils_messages.logMessage(logger, [
|
|
24
|
+
`Please pay attention! Found deprecated icons in file: `,
|
|
25
|
+
parsedFilePath,
|
|
26
|
+
foundIcons.map(({ from, to }) => `\t${from} -> \t${to}`).join('\n')
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const processIconReplacement = ({ fileContent, filePath, fix, logger, replacementData }) => {
|
|
31
|
+
if (fix) {
|
|
32
|
+
const updatedContent = replaceIcons(fileContent, replacementData);
|
|
33
|
+
return { fileContent: updatedContent, changed: updatedContent !== fileContent, errors: [] };
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
logReplacement({
|
|
37
|
+
logger,
|
|
38
|
+
replacementData,
|
|
39
|
+
contentToBeUpdated: fileContent,
|
|
40
|
+
filePath
|
|
41
|
+
});
|
|
42
|
+
return { fileContent, changed: false, errors: [] };
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const resolveReplacementData = (projectRootPath, tree, customReplacementDataPath) => {
|
|
46
|
+
if (customReplacementDataPath) {
|
|
47
|
+
const replacementData = tree.get(`${projectRootPath}/${customReplacementDataPath}`);
|
|
48
|
+
if (!replacementData)
|
|
49
|
+
return migrations_iconsReplacement_data.iconReplacementData;
|
|
50
|
+
return JSON.parse(replacementData.content.toString());
|
|
51
|
+
}
|
|
52
|
+
return migrations_iconsReplacement_data.iconReplacementData;
|
|
53
|
+
};
|
|
54
|
+
function migrate(options) {
|
|
55
|
+
return async (tree, context) => {
|
|
56
|
+
const { logger } = context;
|
|
57
|
+
const { project, allowed, fix, replacementDataPath } = options;
|
|
58
|
+
const projectDefinition = await utils_packageConfig.setupOptions(project, tree);
|
|
59
|
+
const replacementData = resolveReplacementData(projectDefinition.root, tree, replacementDataPath);
|
|
60
|
+
tree.getDir(projectDefinition.root).visit((filePath, entry) => {
|
|
61
|
+
if (allowed.length === 0 || allowed.some((ext) => filePath.endsWith(ext))) {
|
|
62
|
+
const initialContent = entry?.content.toString();
|
|
63
|
+
if (!initialContent)
|
|
64
|
+
return;
|
|
65
|
+
const { fileContent, changed } = processIconReplacement({
|
|
66
|
+
fileContent: initialContent,
|
|
67
|
+
filePath,
|
|
68
|
+
fix,
|
|
69
|
+
logger,
|
|
70
|
+
replacementData
|
|
71
|
+
});
|
|
72
|
+
if (changed) {
|
|
73
|
+
tree.overwrite(filePath, fileContent);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
exports.default = migrate;
|
|
81
|
+
exports.logReplacement = logReplacement;
|
|
82
|
+
exports.processIconReplacement = processIconReplacement;
|
|
83
|
+
exports.replaceIcons = replaceIcons;
|
|
84
|
+
exports.resolveReplacementData = resolveReplacementData;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "koobiq-components-icons-replacement",
|
|
4
|
+
"title": "koobiq-components icons-replacement schematic",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"project": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Name of the project",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "projectName"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"fix": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "Whether overwrite icons prefixes or simply inform in console"
|
|
18
|
+
},
|
|
19
|
+
"allowed": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"default": [".html", ".ts", ".scss"],
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"description": "Allowed file extensions to check"
|
|
26
|
+
},
|
|
27
|
+
"replacementDataPath": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Custom replacement data path. Will be used as relative to `project.root`"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -27,16 +27,16 @@ function ngAdd(options) {
|
|
|
27
27
|
}
|
|
28
28
|
// Installing dependencies
|
|
29
29
|
utils_packageConfig.addPackageToPackageJson(tree, '@angular/cdk', "^18.2.14");
|
|
30
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^18.
|
|
31
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^18.
|
|
32
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.
|
|
33
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.
|
|
34
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^10.
|
|
30
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^18.38.0");
|
|
31
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^18.38.0");
|
|
32
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.4.0");
|
|
33
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.4.0");
|
|
34
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^10.10.0");
|
|
35
35
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.14.0");
|
|
36
36
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.14.0");
|
|
37
37
|
utils_packageConfig.addPackageToPackageJson(tree, '@messageformat/core', "^3.4.0");
|
|
38
38
|
utils_packageConfig.addPackageToPackageJson(tree, '@radix-ng/primitives', "^0.23.0");
|
|
39
|
-
utils_packageConfig.addPackageToPackageJson(tree, 'luxon', "^3.7.
|
|
39
|
+
utils_packageConfig.addPackageToPackageJson(tree, 'luxon', "^3.7.2");
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -1,7 +1,4 @@
|
|
|
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
|
-
|
|
5
2
|
@use './scrollbar-component-theme' as *;
|
|
6
3
|
|
|
7
4
|
.kbq-scrollbar-component {
|
|
@@ -143,11 +140,13 @@
|
|
|
143
140
|
transform: scale(calc(1 / 0.1));
|
|
144
141
|
}
|
|
145
142
|
|
|
143
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
146
144
|
.os-size-observer-listener.ltr {
|
|
147
145
|
margin-right: -266px;
|
|
148
146
|
margin-left: 0;
|
|
149
147
|
}
|
|
150
148
|
|
|
149
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
151
150
|
.os-size-observer-listener.rtl {
|
|
152
151
|
margin-left: -266px;
|
|
153
152
|
margin-right: 0;
|
|
@@ -8,8 +8,9 @@ import * as i6 from "@koobiq/components/tags";
|
|
|
8
8
|
import * as i7 from "@koobiq/components/tooltip";
|
|
9
9
|
import * as i8 from "@angular/common";
|
|
10
10
|
import * as i9 from "@angular/cdk/a11y";
|
|
11
|
+
import * as i10 from "@koobiq/components/form-field";
|
|
11
12
|
export declare class KbqSelectModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqSelectModule, [typeof i1.KbqSelect, typeof i2.KbqOptionTooltip], [typeof i3.OverlayModule, typeof i4.KbqOptionModule, typeof i5.KbqIconModule, typeof i6.KbqTagsModule, typeof i7.KbqToolTipModule, typeof i4.KbqSelectSearch, typeof i4.KbqSelectFooter, typeof i4.KbqSelectMatcher, typeof i4.KbqSelectTrigger, typeof i4.KbqSelectSearchEmptyResult, typeof i8.NgClass, typeof i8.NgTemplateOutlet, typeof i9.A11yModule], [typeof i1.KbqSelect, typeof i2.KbqOptionTooltip, typeof i4.KbqOptionModule, typeof i4.KbqSelectSearch, typeof i4.KbqSelectFooter, typeof i4.KbqSelectMatcher, typeof i4.KbqSelectTrigger, typeof i4.KbqSelectSearchEmptyResult]>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqSelectModule, [typeof i1.KbqSelect, typeof i2.KbqOptionTooltip], [typeof i3.OverlayModule, typeof i4.KbqOptionModule, typeof i5.KbqIconModule, typeof i6.KbqTagsModule, typeof i7.KbqToolTipModule, typeof i4.KbqSelectSearch, typeof i4.KbqSelectFooter, typeof i4.KbqSelectMatcher, typeof i4.KbqSelectTrigger, typeof i4.KbqSelectSearchEmptyResult, typeof i8.NgClass, typeof i8.NgTemplateOutlet, typeof i9.A11yModule], [typeof i1.KbqSelect, typeof i2.KbqOptionTooltip, typeof i4.KbqOptionModule, typeof i4.KbqSelectSearch, typeof i4.KbqSelectFooter, typeof i4.KbqSelectMatcher, typeof i4.KbqSelectTrigger, typeof i4.KbqSelectSearchEmptyResult, typeof i10.KbqFormFieldModule]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqSelectModule>;
|
|
15
16
|
}
|
package/select/select.scss
CHANGED
|
@@ -22,23 +22,7 @@
|
|
|
22
22
|
box-sizing: initial;
|
|
23
23
|
|
|
24
24
|
.kbq-option {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
&:before,
|
|
28
|
-
&:after {
|
|
29
|
-
position: absolute;
|
|
30
|
-
content: '';
|
|
31
|
-
width: var(--kbq-size-xxs);
|
|
32
|
-
height: calc(100% + var(--kbq-size-3xs) * 2); // outline size * 2
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:before {
|
|
36
|
-
right: calc(100% + var(--kbq-size-3xs)); // outline size
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:after {
|
|
40
|
-
left: calc(100% + var(--kbq-size-3xs)); // outline size
|
|
41
|
-
}
|
|
25
|
+
@include item-active-area(var(--kbq-size-3xs));
|
|
42
26
|
}
|
|
43
27
|
|
|
44
28
|
&:not(:has(> .kbq-select__no-options-message)) .cdk-virtual-scroll-viewport {
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
--kbq-sidepanel-size-close-button-margin-left: var(--kbq-size-s);
|
|
9
9
|
--kbq-sidepanel-size-content-padding-horizontal: var(--kbq-size-xxl);
|
|
10
10
|
--kbq-sidepanel-size-content-padding-bottom: var(--kbq-size-xxl);
|
|
11
|
+
// Added top padding to prevent the outline of the first focused field from being clipped
|
|
12
|
+
--kbq-sidepanel-size-content-padding-top: 1px;
|
|
11
13
|
--kbq-sidepanel-size-footer-padding-top: var(--kbq-size-s);
|
|
12
14
|
--kbq-sidepanel-size-footer-padding-bottom: var(--kbq-size-3xl);
|
|
13
15
|
--kbq-sidepanel-size-footer-padding-horizontal: var(--kbq-size-xxl);
|
package/sidepanel/sidepanel.scss
CHANGED
|
@@ -149,6 +149,8 @@
|
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
min-height: 0;
|
|
151
151
|
|
|
152
|
+
padding-top: var(--kbq-sidepanel-size-content-padding-top);
|
|
153
|
+
|
|
152
154
|
padding-right: var(--kbq-sidepanel-size-content-padding-horizontal);
|
|
153
155
|
|
|
154
156
|
padding-left: var(--kbq-sidepanel-size-content-padding-horizontal);
|
|
@@ -4,47 +4,33 @@
|
|
|
4
4
|
background: var(--kbq-states-background-transparent-hover, rgba(108, 115, 147, 0.08));
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
& .kbq-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
& + .kbq-button,
|
|
11
|
-
& + .kbq-button-icon {
|
|
12
|
-
&:not(:hover, .cdk-keyboard-focused, .kbq-active) {
|
|
13
|
-
&.kbq-contrast.kbq-button_filled::before {
|
|
14
|
-
background: var(--kbq-foreground-on-contrast);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.kbq-contrast.kbq-button_transparent,
|
|
18
|
-
&.kbq-contrast-fade.kbq-button_outline,
|
|
19
|
-
&.kbq-contrast-fade.kbq-button_filled {
|
|
20
|
-
&::before {
|
|
21
|
-
background: var(--kbq-line-contrast-fade);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.kbq-theme-fade.kbq-button_outline,
|
|
26
|
-
&.kbq-theme.kbq-button_transparent {
|
|
27
|
-
&::before {
|
|
28
|
-
background: var(--kbq-line-theme-fade);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
7
|
+
& .kbq-split-button_item {
|
|
8
|
+
&.kbq-contrast.kbq-button_filled::before {
|
|
9
|
+
background: var(--kbq-foreground-on-contrast);
|
|
33
10
|
}
|
|
34
11
|
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
&.kbq-contrast.kbq-button_transparent,
|
|
13
|
+
&.kbq-contrast-fade.kbq-button_outline,
|
|
14
|
+
&.kbq-contrast-fade.kbq-button_filled {
|
|
15
|
+
&::before {
|
|
16
|
+
background: var(--kbq-line-contrast-fade);
|
|
17
|
+
}
|
|
37
18
|
}
|
|
38
19
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
background: var(--kbq-
|
|
20
|
+
&.kbq-theme-fade.kbq-button_outline,
|
|
21
|
+
&.kbq-theme.kbq-button_transparent {
|
|
22
|
+
&::before {
|
|
23
|
+
background: var(--kbq-line-theme-fade);
|
|
43
24
|
}
|
|
44
25
|
}
|
|
45
26
|
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
&.kbq-split-button_first.cdk-keyboard-focused {
|
|
28
|
+
z-index: 1;
|
|
29
|
+
box-shadow: inset -1px 0 0 0 var(--kbq-states-line-focus-theme);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.kbq-split-button_second.cdk-keyboard-focused {
|
|
33
|
+
box-shadow: inset 1px 0 0 0 var(--kbq-states-line-focus-theme);
|
|
48
34
|
}
|
|
49
35
|
}
|
|
50
36
|
|
|
@@ -55,5 +41,74 @@
|
|
|
55
41
|
border-left: none;
|
|
56
42
|
}
|
|
57
43
|
}
|
|
44
|
+
|
|
45
|
+
&.kbq-split-button_first-disabled {
|
|
46
|
+
&.kbq-contrast-fade.kbq-button_filled,
|
|
47
|
+
&.kbq-contrast.kbq-button_filled {
|
|
48
|
+
& .kbq-split-button_item {
|
|
49
|
+
background: var(--kbq-states-background-disabled);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& .kbq-split-button_second:not(.kbq-disabled) {
|
|
53
|
+
&:hover {
|
|
54
|
+
background: var(--kbq-states-background-contrast-fade-hover);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:active {
|
|
58
|
+
background: var(--kbq-states-background-contrast-fade-active);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& .kbq-icon.kbq-empty {
|
|
62
|
+
color: var(--kbq-icon-contrast);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:before {
|
|
66
|
+
background: var(--kbq-line-contrast-fade);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.kbq-theme-fade.kbq-button_outline {
|
|
72
|
+
& .kbq-split-button_item {
|
|
73
|
+
border-color: var(--kbq-button-outline-theme-fade-on-states-disabled-border);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.kbq-split-button_second-disabled:not(.kbq-split-button_first-disabled) {
|
|
79
|
+
&.kbq-contrast.kbq-button_filled {
|
|
80
|
+
& .kbq-split-button_second {
|
|
81
|
+
background: var(--kbq-button-filled-contrast-fade-off-background);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.kbq-contrast-fade.kbq-button_filled {
|
|
86
|
+
& .kbq-split-button_first {
|
|
87
|
+
background: var(--kbq-states-background-disabled);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.kbq-theme-fade.kbq-button_outline {
|
|
92
|
+
& .kbq-split-button_item {
|
|
93
|
+
border-color: var(--kbq-button-outline-theme-fade-on-states-disabled-border);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.kbq-theme.kbq-button_transparent {
|
|
98
|
+
& .kbq-split-button_second:before {
|
|
99
|
+
background: var(--kbq-states-line-disabled);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& .kbq-split-button_second:before {
|
|
104
|
+
background: rgba(138, 143, 168, 0.6);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.kbq-split-button_first-disabled.kbq-split-button_second-disabled {
|
|
109
|
+
& .kbq-split-button_second:before {
|
|
110
|
+
background: var(--kbq-line-contrast-fade);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
58
113
|
}
|
|
59
114
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { KbqButtonStyles } from '@koobiq/components/button';
|
|
1
|
+
import { AfterContentInit, QueryList } from '@angular/core';
|
|
2
|
+
import { KbqButton, KbqButtonStyles } from '@koobiq/components/button';
|
|
3
3
|
import { KbqColorDirective, KbqComponentColors, ThemePalette } from '@koobiq/components/core';
|
|
4
|
+
import { KbqDropdownTrigger } from '@koobiq/components/dropdown';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class KbqSplitButton extends KbqColorDirective implements AfterContentInit {
|
|
6
7
|
private nativeElement;
|
|
7
|
-
private
|
|
8
|
-
|
|
8
|
+
/** @docs-private */
|
|
9
|
+
protected buttons: QueryList<KbqButton>;
|
|
10
|
+
/** @docs-private */
|
|
11
|
+
protected dropdownTrigger: KbqDropdownTrigger;
|
|
9
12
|
/** Sets the width of the dropdown to the width of the trigger. Default is false */
|
|
10
13
|
panelAutoWidth: boolean;
|
|
11
14
|
/** component style, will be set for nested buttons */
|
|
@@ -19,13 +22,16 @@ export declare class KbqSplitButton extends KbqColorDirective implements AfterCo
|
|
|
19
22
|
get disabled(): boolean;
|
|
20
23
|
set disabled(value: boolean);
|
|
21
24
|
protected _disabled: boolean;
|
|
25
|
+
get firstDisabled(): boolean;
|
|
26
|
+
get secondDisabled(): boolean;
|
|
22
27
|
constructor();
|
|
23
28
|
ngAfterContentInit(): void;
|
|
29
|
+
private updateClasses;
|
|
24
30
|
private updateColor;
|
|
25
31
|
private updateStyle;
|
|
26
32
|
private updateDisabledState;
|
|
27
33
|
private updateDropdownParams;
|
|
28
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSplitButton, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSplitButton, "kbq-split-button", never, { "panelAutoWidth": { "alias": "panelAutoWidth"; "required": false; }; "kbqStyle": { "alias": "kbqStyle"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["dropdownTrigger", "buttons"], ["[kbq-button]", "[kbq-button]"], true, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSplitButton, "kbq-split-button, [kbq-split-button]", never, { "panelAutoWidth": { "alias": "panelAutoWidth"; "required": false; }; "kbqStyle": { "alias": "kbqStyle"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["dropdownTrigger", "buttons"], ["[kbq-button]", "[kbq-button]"], true, never>;
|
|
30
36
|
static ngAcceptInputType_disabled: unknown;
|
|
31
37
|
}
|