@koobiq/components 17.8.1 → 18.0.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/alert/alert-tokens.scss +117 -118
- package/autocomplete/autocomplete-tokens.scss +8 -7
- package/badge/badge-tokens.scss +168 -166
- package/button/button-tokens.scss +238 -225
- package/button/button.scss +5 -9
- package/button-toggle/button-toggle-tokens.scss +69 -68
- package/checkbox/checkbox-tokens.scss +122 -124
- package/code-block/code-block-tokens.scss +92 -86
- package/core/common-behaviors/index.d.ts +1 -1
- package/core/forms/forms-tokens.scss +30 -30
- package/core/option/optgroup-tokens.scss +9 -23
- package/core/option/option-action-tokens.scss +3 -19
- package/core/option/option-tokens.scss +93 -101
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +122 -124
- package/core/styles/_koobiq-theme.scss +3 -7
- package/core/styles/theming/_theming.scss +4 -6
- package/core/styles/theming/scrollbar-tokens.scss +16 -14
- package/core/styles/typography/_typography.scss +1 -0
- package/datepicker/datepicker-tokens.scss +42 -44
- package/divider/divider-tokens.scss +6 -4
- package/dl/dl-tokens.scss +26 -24
- package/dropdown/dropdown-tokens.scss +91 -96
- package/empty-state/empty-state-tokens.scss +50 -58
- package/esm2022/alert/alert.component.mjs +13 -13
- package/esm2022/alert/alert.module.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-origin.directive.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.component.mjs +5 -5
- package/esm2022/autocomplete/autocomplete.module.mjs +4 -4
- package/esm2022/badge/badge.component.mjs +10 -10
- package/esm2022/badge/badge.module.mjs +4 -4
- package/esm2022/button/button.component.mjs +8 -8
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button-toggle/button-toggle.component.mjs +8 -8
- package/esm2022/button-toggle/button-toggle.module.mjs +4 -4
- package/esm2022/checkbox/checkbox-module.mjs +4 -4
- package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
- package/esm2022/checkbox/checkbox.mjs +5 -5
- package/esm2022/code-block/actionbar.component.mjs +5 -5
- package/esm2022/code-block/code-block.component.mjs +5 -5
- package/esm2022/code-block/code-block.module.mjs +4 -4
- package/esm2022/core/common-behaviors/common-module.mjs +4 -4
- package/esm2022/core/common-behaviors/index.mjs +2 -2
- package/esm2022/core/error/error-options.mjs +6 -6
- package/esm2022/core/formatters/date/formatter.mjs +3 -3
- package/esm2022/core/formatters/date/formatter.pipe.mjs +39 -39
- package/esm2022/core/formatters/index.mjs +4 -4
- package/esm2022/core/formatters/number/formatter.mjs +12 -12
- package/esm2022/core/forms/forms-module.mjs +4 -4
- package/esm2022/core/forms/forms.directive.mjs +6 -6
- package/esm2022/core/highlight/highlight.pipe.mjs +3 -3
- package/esm2022/core/highlight/index.mjs +4 -4
- package/esm2022/core/line/line.mjs +7 -7
- package/esm2022/core/locales/locale-service.mjs +3 -3
- package/esm2022/core/locales/locale-service.module.mjs +4 -4
- package/esm2022/core/option/action.mjs +8 -8
- package/esm2022/core/option/optgroup.mjs +4 -4
- package/esm2022/core/option/option-module.mjs +4 -4
- package/esm2022/core/option/option.mjs +5 -5
- package/esm2022/core/pop-up/pop-up-trigger.mjs +3 -3
- package/esm2022/core/pop-up/pop-up.mjs +3 -3
- package/esm2022/core/select/common.mjs +15 -15
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
- package/esm2022/core/services/measure-scrollbar.service.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +3 -3
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +3 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +5 -5
- package/esm2022/datepicker/calendar.component.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.directive.mjs +3 -3
- package/esm2022/datepicker/datepicker-intl.mjs +3 -3
- package/esm2022/datepicker/datepicker-module.mjs +4 -4
- package/esm2022/datepicker/datepicker-toggle.component.mjs +8 -8
- package/esm2022/datepicker/datepicker.component.mjs +8 -8
- package/esm2022/datepicker/month-view.component.mjs +3 -3
- package/esm2022/divider/divider.component.mjs +4 -4
- package/esm2022/divider/divider.module.mjs +4 -4
- package/esm2022/dl/dl.component.mjs +10 -10
- package/esm2022/dl/dl.module.mjs +4 -4
- package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-item.component.mjs +6 -6
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +6 -6
- package/esm2022/dropdown/dropdown.module.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -7
- package/esm2022/empty-state/empty-state.component.mjs +16 -16
- package/esm2022/empty-state/empty-state.module.mjs +4 -4
- package/esm2022/file-upload/file-drop.mjs +3 -3
- package/esm2022/file-upload/file-upload.module.mjs +4 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +5 -5
- package/esm2022/file-upload/single-file-upload.component.mjs +5 -5
- package/esm2022/form-field/cleaner.mjs +6 -6
- package/esm2022/form-field/form-field.mjs +11 -11
- package/esm2022/form-field/form-field.module.mjs +4 -4
- package/esm2022/form-field/hint.mjs +5 -5
- package/esm2022/form-field/password-hint.mjs +5 -5
- package/esm2022/form-field/password-toggle.mjs +5 -5
- package/esm2022/form-field/prefix.mjs +3 -3
- package/esm2022/form-field/stepper.mjs +8 -8
- package/esm2022/form-field/suffix.mjs +3 -3
- package/esm2022/form-field/validate.directive.mjs +3 -3
- package/esm2022/icon/icon-button.component.mjs +6 -6
- package/esm2022/icon/icon-item.component.mjs +6 -6
- package/esm2022/icon/icon.component.mjs +6 -6
- package/esm2022/icon/icon.module.mjs +4 -4
- package/esm2022/input/input-number-validators.mjs +6 -6
- package/esm2022/input/input-number.mjs +3 -3
- package/esm2022/input/input-password.mjs +3 -3
- package/esm2022/input/input.mjs +6 -6
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/link/link.component.mjs +3 -3
- package/esm2022/link/link.module.mjs +4 -4
- package/esm2022/list/list-selection.component.mjs +11 -11
- package/esm2022/list/list.component.mjs +7 -7
- package/esm2022/list/list.module.mjs +4 -4
- package/esm2022/loader-overlay/loader-overlay.component.mjs +13 -13
- package/esm2022/loader-overlay/loader-overlay.module.mjs +4 -4
- package/esm2022/markdown/markdown.component.mjs +5 -5
- package/esm2022/markdown/markdown.module.mjs +4 -4
- package/esm2022/markdown/markdown.service.mjs +3 -3
- package/esm2022/modal/css-unit.pipe.mjs +3 -3
- package/esm2022/modal/modal-control.service.mjs +3 -3
- package/esm2022/modal/modal.component.mjs +5 -5
- package/esm2022/modal/modal.directive.mjs +12 -12
- package/esm2022/modal/modal.module.mjs +4 -4
- package/esm2022/modal/modal.service.mjs +3 -3
- package/esm2022/navbar/navbar-item.component.mjs +33 -33
- package/esm2022/navbar/navbar.component.mjs +11 -11
- package/esm2022/navbar/navbar.module.mjs +4 -4
- package/esm2022/navbar/vertical-navbar.component.mjs +5 -5
- package/esm2022/popover/popover-confirm.component.mjs +8 -8
- package/esm2022/popover/popover.component.mjs +8 -8
- package/esm2022/popover/popover.module.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.component.mjs +10 -10
- package/esm2022/progress-bar/progress-bar.module.mjs +4 -4
- package/esm2022/progress-spinner/progress-spinner.component.mjs +10 -10
- package/esm2022/progress-spinner/progress-spinner.module.mjs +4 -4
- package/esm2022/radio/radio.component.mjs +7 -7
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/risk-level/risk-level.component.mjs +4 -4
- package/esm2022/risk-level/risk-level.module.mjs +4 -4
- package/esm2022/scrollbar/scrollbar.component.mjs +10 -8
- package/esm2022/scrollbar/scrollbar.directive.mjs +8 -4
- package/esm2022/scrollbar/scrollbar.module.mjs +13 -8
- package/esm2022/select/select-option.directive.mjs +3 -3
- package/esm2022/select/select.component.mjs +6 -6
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/sidebar/sidebar.component.mjs +9 -9
- package/esm2022/sidebar/sidebar.module.mjs +4 -4
- package/esm2022/sidepanel/sidepanel-container.component.mjs +5 -5
- package/esm2022/sidepanel/sidepanel-directives.mjs +18 -18
- package/esm2022/sidepanel/sidepanel.module.mjs +4 -4
- package/esm2022/sidepanel/sidepanel.service.mjs +3 -3
- package/esm2022/splitter/splitter.component.mjs +14 -14
- package/esm2022/splitter/splitter.module.mjs +4 -4
- package/esm2022/table/table.component.mjs +7 -7
- package/esm2022/table/table.module.mjs +4 -4
- package/esm2022/tabs/paginated-tab-header.mjs +3 -3
- package/esm2022/tabs/tab-body.component.mjs +6 -6
- package/esm2022/tabs/tab-content.directive.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +16 -16
- package/esm2022/tabs/tab-header.component.mjs +5 -5
- package/esm2022/tabs/tab-label-wrapper.directive.mjs +3 -3
- package/esm2022/tabs/tab-label.directive.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +7 -7
- package/esm2022/tabs/tab.component.mjs +3 -3
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tags/tag-input.mjs +3 -3
- package/esm2022/tags/tag-list.component.mjs +4 -4
- package/esm2022/tags/tag.component.mjs +12 -12
- package/esm2022/tags/tag.module.mjs +4 -4
- package/esm2022/textarea/textarea.component.mjs +3 -3
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/timepicker/timepicker.directive.mjs +3 -3
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timezone/cities-by-filter.pipe.mjs +3 -3
- package/esm2022/timezone/timezone-option.component.mjs +5 -5
- package/esm2022/timezone/timezone-option.directive.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +9 -9
- package/esm2022/timezone/timezone.module.mjs +4 -4
- package/esm2022/timezone/utc-offset.pipe.mjs +3 -3
- package/esm2022/title/title.directive.mjs +3 -3
- package/esm2022/title/title.module.mjs +4 -4
- package/esm2022/toast/toast-container.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +8 -8
- package/esm2022/toast/toast.module.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +6 -6
- package/esm2022/toggle/toggle.module.mjs +4 -4
- package/esm2022/tooltip/tooltip.component.mjs +14 -14
- package/esm2022/tooltip/tooltip.module.mjs +4 -4
- package/esm2022/tree/node.mjs +3 -3
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +3 -3
- package/esm2022/tree/toggle.mjs +14 -14
- package/esm2022/tree/tree-base.mjs +6 -6
- package/esm2022/tree/tree-option.component.mjs +5 -5
- package/esm2022/tree/tree-selection.component.mjs +5 -5
- package/esm2022/tree/tree.mjs +5 -5
- package/esm2022/tree/tree.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.component.mjs +6 -6
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/fesm2022/koobiq-components-alert.mjs +17 -17
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +15 -15
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +14 -14
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +12 -12
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -12
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +11 -11
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +12 -12
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +158 -158
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +37 -37
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +8 -8
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +14 -14
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +20 -20
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +7 -7
- package/fesm2022/koobiq-components-empty-state.mjs +20 -20
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +15 -15
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +49 -49
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +19 -19
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +22 -22
- package/fesm2022/koobiq-components-link.mjs +7 -7
- package/fesm2022/koobiq-components-list.mjs +22 -22
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +17 -17
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +12 -12
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +29 -29
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +52 -52
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +18 -18
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +14 -14
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +14 -14
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +11 -11
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-risk-level.mjs +8 -8
- package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +28 -16
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +12 -12
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +13 -13
- package/fesm2022/koobiq-components-sidepanel.mjs +28 -28
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +17 -17
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +11 -11
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +52 -52
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +23 -23
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +7 -7
- package/fesm2022/koobiq-components-timepicker.mjs +7 -7
- package/fesm2022/koobiq-components-timezone.mjs +26 -26
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +7 -7
- package/fesm2022/koobiq-components-toast.mjs +17 -17
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +9 -9
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +17 -17
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +9 -9
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +47 -47
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/file-upload-tokens.scss +147 -146
- package/file-upload/multiple-file-upload.component.scss +2 -8
- package/form-field/form-field-tokens.scss +72 -72
- package/form-field/hint-tokens.scss +51 -51
- package/icon/icon-button-tokens.scss +54 -56
- package/icon/icon-item-tokens.scss +46 -44
- package/icon/icon-tokens.scss +14 -12
- package/input/input-tokens.scss +11 -10
- package/link/link-tokens.scss +56 -57
- package/list/list-tokens.scss +84 -86
- package/loader-overlay/loader-overlay-tokens.scss +54 -50
- package/markdown/markdown-tokens.scss +214 -235
- package/modal/modal-tokens.scss +40 -41
- package/navbar/navbar-tokens.scss +50 -71
- package/navbar/vertical-navbar.scss +5 -0
- package/package.json +13 -10
- package/popover/popover-tokens.scss +40 -45
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -0
- package/progress-bar/progress-bar-tokens.scss +28 -28
- package/progress-spinner/progress-spinner-tokens.scss +28 -28
- package/radio/radio-tokens.scss +119 -127
- package/risk-level/risk-level-tokens.scss +57 -56
- package/schematics/collection.json +5 -0
- package/schematics/new-icons-pack/data.js +2303 -0
- package/schematics/new-icons-pack/index.js +120 -0
- package/schematics/new-icons-pack/schema.json +25 -0
- package/schematics/ng-add/index.js +14 -40
- package/schematics/utils/package-config.js +65 -0
- package/scrollbar/scrollbar-tokens.scss +16 -14
- package/scrollbar/scrollbar.component.d.ts +4 -1
- package/scrollbar/scrollbar.directive.d.ts +5 -25
- package/scrollbar/scrollbar.module.d.ts +1 -1
- package/select/select-tokens.scss +31 -48
- package/sidepanel/sidepanel-tokens.scss +36 -37
- package/splitter/splitter-tokens.scss +1 -7
- package/table/table-tokens.scss +18 -34
- package/tabs/tabs-tokens.scss +168 -107
- package/tags/tag-input-tokens.scss +13 -12
- package/tags/tag-tokens.scss +141 -141
- package/textarea/textarea-tokens.scss +11 -10
- package/timezone/timezone-option-tokens.scss +40 -38
- package/toast/toast-tokens.scss +61 -65
- package/toggle/toggle-tokens.scss +124 -128
- package/tooltip/tooltip-tokens.scss +50 -54
- package/tree/tree-tokens.scss +80 -80
- package/tree-select/tree-select-tokens.scss +14 -50
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chalk = require('chalk');
|
|
6
|
+
var path = require('path');
|
|
7
|
+
var utils_packageConfig = require('../utils/package-config.js');
|
|
8
|
+
var newIconsPack_data = require('./data.js');
|
|
9
|
+
require('@angular-devkit/schematics');
|
|
10
|
+
require('@schematics/angular/utility');
|
|
11
|
+
|
|
12
|
+
function _interopNamespaceDefault(e) {
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
30
|
+
|
|
31
|
+
const { italic, blue, bold } = chalk;
|
|
32
|
+
const data = newIconsPack_data.newIconsPackData;
|
|
33
|
+
function newIconsPack(options) {
|
|
34
|
+
let targetDir;
|
|
35
|
+
const breakingIconsVersionRegExp = /^\^|\~?9\.1\.0/;
|
|
36
|
+
const pkg = '@koobiq/icons';
|
|
37
|
+
return async (tree, context) => {
|
|
38
|
+
const { project, fix, stylesExt } = options;
|
|
39
|
+
try {
|
|
40
|
+
const projectDefinition = await utils_packageConfig.setupOptions(project, tree);
|
|
41
|
+
targetDir = projectDefinition ? tree.getDir(projectDefinition.root) : tree;
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
targetDir = tree;
|
|
45
|
+
}
|
|
46
|
+
const { logger } = context;
|
|
47
|
+
const handleDeprecatedIcons = (newContent, path) => {
|
|
48
|
+
if (fix) {
|
|
49
|
+
data.forEach(({ replace, replaceWith }) => {
|
|
50
|
+
newContent = newContent.replace(new RegExp(`kbq-${replace}`, 'g'), `kbq-${replaceWith}`);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const foundIcons = data.filter(({ replace }) => newContent.indexOf(replace) !== -1);
|
|
55
|
+
if (foundIcons.length) {
|
|
56
|
+
showWarning(path, foundIcons, logger);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return newContent;
|
|
60
|
+
};
|
|
61
|
+
// Check if breaking version is used indeed
|
|
62
|
+
if (tree.exists('package.json')) {
|
|
63
|
+
const sourceText = tree.read('package.json').toString('utf-8');
|
|
64
|
+
const json = JSON.parse(sourceText);
|
|
65
|
+
const isIconsBreakingVersionUsed = ['devDependencies', 'dependencies', 'peerDependencies'].some((type) => json[type] && json[type][pkg] && breakingIconsVersionRegExp.test(json[type][pkg]));
|
|
66
|
+
if (!isIconsBreakingVersionUsed) {
|
|
67
|
+
logger.warn('Breaking version of icons is not used. Everything is OK.');
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Update templates & components
|
|
72
|
+
targetDir.visit((path, entry) => {
|
|
73
|
+
// if project property not provided, provide node_modules to be changed
|
|
74
|
+
if (path.includes('node_modules')) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (path.endsWith('.html') || path.endsWith('.ts') || path.endsWith('.md')) {
|
|
78
|
+
const initialContent = entry?.content.toString();
|
|
79
|
+
let newContent = initialContent;
|
|
80
|
+
if (newContent) {
|
|
81
|
+
newIconsPack_data.iconReplacements.forEach(({ replace, replaceWith }) => {
|
|
82
|
+
newContent = newContent.replace(new RegExp(replace, 'g'), replaceWith);
|
|
83
|
+
});
|
|
84
|
+
newContent = handleDeprecatedIcons(newContent, path);
|
|
85
|
+
if (initialContent !== newContent) {
|
|
86
|
+
tree.overwrite(path, newContent || '');
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
// update styles
|
|
92
|
+
targetDir.visit((path, entry) => {
|
|
93
|
+
// if project property not provided, provide node_modules to be changed
|
|
94
|
+
if (path.includes('node_modules')) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (path.endsWith(stylesExt)) {
|
|
98
|
+
const initialContent = entry?.content.toString();
|
|
99
|
+
let newContent = initialContent;
|
|
100
|
+
if (newContent) {
|
|
101
|
+
// replace icons in styles
|
|
102
|
+
newContent = newContent.replace(new RegExp('mc-', 'g'), 'kbq-');
|
|
103
|
+
newContent = handleDeprecatedIcons(newContent, path);
|
|
104
|
+
}
|
|
105
|
+
if (initialContent !== newContent) {
|
|
106
|
+
tree.overwrite(path, newContent || '');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function showWarning(filePath, foundIcons, logger) {
|
|
113
|
+
logger.warn('-------------------------');
|
|
114
|
+
logger.warn(`Please pay attention! Found deprecated icons in file: `);
|
|
115
|
+
logger.info(`${bold(italic(blue(path__namespace.resolve(`.${filePath}`))))}`);
|
|
116
|
+
logger.warn(foundIcons.map(({ replace, replaceWith }) => `\t${replace} -> \t${replaceWith}`).join('\n'));
|
|
117
|
+
logger.warn('-------------------------');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
exports.default = newIconsPack;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "koobiq-components-new-icons-pack",
|
|
4
|
+
"title": "koobiq-components new-icons-pack 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
|
+
"description": "Whether overwrite icons prefixes or simply inform in console",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"stylesExt": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Use this option to specify styles extension preferred in your project",
|
|
22
|
+
"default": "scss"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -4,33 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var schematics = require('@angular-devkit/schematics');
|
|
6
6
|
var utility = require('@schematics/angular/utility');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Sorts the keys of the given object.
|
|
10
|
-
* @returns A new object instance with sorted keys
|
|
11
|
-
*/
|
|
12
|
-
function sortObjectByKeys(obj) {
|
|
13
|
-
return Object.keys(obj)
|
|
14
|
-
.sort()
|
|
15
|
-
.reduce((result, key) => (result[key] = obj[key]) && result, {});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Adds a package to the package.json in the given tree
|
|
19
|
-
*/
|
|
20
|
-
function addPackageToPackageJson(tree, pkg, version, devDependency = false) {
|
|
21
|
-
if (tree.exists('package.json')) {
|
|
22
|
-
const sourceText = tree.read('package.json').toString('utf-8');
|
|
23
|
-
const json = JSON.parse(sourceText);
|
|
24
|
-
const dependenciesType = devDependency ? 'devDependencies' : 'dependencies';
|
|
25
|
-
const dependencies = json[dependenciesType] || {};
|
|
26
|
-
if (!dependencies[pkg]) {
|
|
27
|
-
dependencies[pkg] = version;
|
|
28
|
-
json[dependenciesType] = sortObjectByKeys(dependencies);
|
|
29
|
-
}
|
|
30
|
-
tree.overwrite('package.json', JSON.stringify(json, null, 2));
|
|
31
|
-
}
|
|
32
|
-
return tree;
|
|
33
|
-
}
|
|
7
|
+
var utils_packageConfig = require('../utils/package-config.js');
|
|
34
8
|
|
|
35
9
|
function noProject(project) {
|
|
36
10
|
return `Unable to find project '${project}' in the workspace`;
|
|
@@ -51,19 +25,19 @@ function ngAdd(options) {
|
|
|
51
25
|
}
|
|
52
26
|
}
|
|
53
27
|
// Installing dependencies
|
|
54
|
-
addPackageToPackageJson(tree, '@angular/cdk', "^
|
|
55
|
-
addPackageToPackageJson(tree, '@koobiq/cdk', "^
|
|
56
|
-
addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^
|
|
57
|
-
addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
|
|
58
|
-
addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.2");
|
|
59
|
-
addPackageToPackageJson(tree, '@koobiq/icons', "^
|
|
60
|
-
addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.
|
|
61
|
-
addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.
|
|
62
|
-
addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
|
|
63
|
-
addPackageToPackageJson(tree, 'luxon', "^3.4.4");
|
|
64
|
-
addPackageToPackageJson(tree, 'marked', "^9.0.0");
|
|
65
|
-
addPackageToPackageJson(tree, 'overlayscrollbars', "^2.7.3");
|
|
66
|
-
addPackageToPackageJson(tree, 'ngx-highlightjs', "^10.0.0");
|
|
28
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@angular/cdk', "^18.2.5");
|
|
29
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^18.0.0");
|
|
30
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^18.0.0");
|
|
31
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
|
|
32
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.2");
|
|
33
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^9.1.0");
|
|
34
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.6.0");
|
|
35
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.6.0");
|
|
36
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
|
|
37
|
+
utils_packageConfig.addPackageToPackageJson(tree, 'luxon', "^3.4.4");
|
|
38
|
+
utils_packageConfig.addPackageToPackageJson(tree, 'marked', "^9.0.0");
|
|
39
|
+
utils_packageConfig.addPackageToPackageJson(tree, 'overlayscrollbars', "^2.7.3");
|
|
40
|
+
utils_packageConfig.addPackageToPackageJson(tree, 'ngx-highlightjs', "^10.0.0");
|
|
67
41
|
};
|
|
68
42
|
}
|
|
69
43
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var schematics = require('@angular-devkit/schematics');
|
|
4
|
+
var utility = require('@schematics/angular/utility');
|
|
5
|
+
|
|
6
|
+
function noProject(project) {
|
|
7
|
+
return `Unable to find project '${project}' in the workspace`;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Sorts the keys of the given object.
|
|
12
|
+
* @returns A new object instance with sorted keys
|
|
13
|
+
*/
|
|
14
|
+
function sortObjectByKeys(obj) {
|
|
15
|
+
return Object.keys(obj)
|
|
16
|
+
.sort()
|
|
17
|
+
.reduce((result, key) => (result[key] = obj[key]) && result, {});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Adds a package to the package.json in the given tree
|
|
21
|
+
*/
|
|
22
|
+
function addPackageToPackageJson(tree, pkg, version, devDependency = false) {
|
|
23
|
+
if (tree.exists('package.json')) {
|
|
24
|
+
const sourceText = tree.read('package.json').toString('utf-8');
|
|
25
|
+
const json = JSON.parse(sourceText);
|
|
26
|
+
const dependenciesType = devDependency ? 'devDependencies' : 'dependencies';
|
|
27
|
+
const dependencies = json[dependenciesType] || {};
|
|
28
|
+
if (!dependencies[pkg]) {
|
|
29
|
+
dependencies[pkg] = version;
|
|
30
|
+
json[dependenciesType] = sortObjectByKeys(dependencies);
|
|
31
|
+
}
|
|
32
|
+
tree.overwrite('package.json', JSON.stringify(json, null, 2));
|
|
33
|
+
}
|
|
34
|
+
return tree;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Gets the version of the specified package by looking at the package.json in the given tree
|
|
38
|
+
*/
|
|
39
|
+
function getPackageVersionFromPackageJson(tree, name, includeDevDependencies = false) {
|
|
40
|
+
if (!tree.exists('package.json')) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
const packageJson = JSON.parse(tree.read('package.json').toString('utf8'));
|
|
44
|
+
if (packageJson.dependencies && packageJson.dependencies[name]) {
|
|
45
|
+
return packageJson.dependencies[name];
|
|
46
|
+
}
|
|
47
|
+
if (includeDevDependencies && packageJson.devDependencies && packageJson.devDependencies[name]) {
|
|
48
|
+
return packageJson.devDependencies[name];
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
async function setupOptions(project, tree) {
|
|
53
|
+
if (project) {
|
|
54
|
+
const workspace = await utility.readWorkspace(tree);
|
|
55
|
+
const projectWorkspace = workspace.projects.get(project);
|
|
56
|
+
if (!projectWorkspace) {
|
|
57
|
+
throw new schematics.SchematicsException(noProject(project));
|
|
58
|
+
}
|
|
59
|
+
return projectWorkspace;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
exports.addPackageToPackageJson = addPackageToPackageJson;
|
|
64
|
+
exports.getPackageVersionFromPackageJson = getPackageVersionFromPackageJson;
|
|
65
|
+
exports.setupOptions = setupOptions;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
/* stylelint-disable no-unknown-custom-properties */
|
|
2
|
+
|
|
1
3
|
.kbq-scrollbar-component {
|
|
2
|
-
--kbq-scrollbar-size-track-dimension:
|
|
3
|
-
--kbq-scrollbar-size-track-padding-vertical:
|
|
4
|
-
--kbq-scrollbar-size-track-padding-horizontal:
|
|
5
|
-
--kbq-scrollbar-size-thumb-width:
|
|
6
|
-
--kbq-scrollbar-size-thumb-min-size:
|
|
7
|
-
--kbq-scrollbar-size-thumb-border-radius:
|
|
4
|
+
--kbq-scrollbar-size-track-dimension: var(--kbq-size-l);
|
|
5
|
+
--kbq-scrollbar-size-track-padding-vertical: var(--kbq-size-3xs);
|
|
6
|
+
--kbq-scrollbar-size-track-padding-horizontal: var(--kbq-size-3xs);
|
|
7
|
+
--kbq-scrollbar-size-thumb-width: var(--kbq-size-s);
|
|
8
|
+
--kbq-scrollbar-size-thumb-min-size: var(--kbq-size-xl);
|
|
9
|
+
--kbq-scrollbar-size-thumb-border-radius: var(--kbq-size-s);
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
11
|
-
--kbq-scrollbar-thumb-default-background:
|
|
12
|
-
--kbq-scrollbar-thumb-hover-background:
|
|
13
|
-
--kbq-scrollbar-thumb-active-background:
|
|
14
|
-
--kbq-scrollbar-thumb-disabled-background:
|
|
13
|
+
--kbq-scrollbar-thumb-default-background: var(--kbq-icon-contrast-fade);
|
|
14
|
+
--kbq-scrollbar-thumb-hover-background: var(--kbq-states-icon-contrast-fade-hover);
|
|
15
|
+
--kbq-scrollbar-thumb-active-background: var(--kbq-states-icon-contrast-fade-active);
|
|
16
|
+
--kbq-scrollbar-thumb-disabled-background: var(--kbq-states-icon-disabled);
|
|
15
17
|
--kbq-scrollbar-track-default-border: transparent;
|
|
16
18
|
--kbq-scrollbar-track-default-background: transparent;
|
|
17
19
|
--kbq-scrollbar-track-hover-border: transparent;
|
|
@@ -21,10 +23,10 @@
|
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
24
|
-
--kbq-scrollbar-thumb-default-background:
|
|
25
|
-
--kbq-scrollbar-thumb-hover-background:
|
|
26
|
-
--kbq-scrollbar-thumb-active-background:
|
|
27
|
-
--kbq-scrollbar-thumb-disabled-background:
|
|
26
|
+
--kbq-scrollbar-thumb-default-background: var(--kbq-icon-contrast-fade);
|
|
27
|
+
--kbq-scrollbar-thumb-hover-background: var(--kbq-states-icon-contrast-fade-hover);
|
|
28
|
+
--kbq-scrollbar-thumb-active-background: var(--kbq-states-icon-contrast-fade-active);
|
|
29
|
+
--kbq-scrollbar-thumb-disabled-background: var(--kbq-states-icon-disabled);
|
|
28
30
|
--kbq-scrollbar-track-default-border: transparent;
|
|
29
31
|
--kbq-scrollbar-track-default-background: transparent;
|
|
30
32
|
--kbq-scrollbar-track-hover-border: transparent;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
2
2
|
import { KbqScrollbarEvents, KbqScrollbarOptions, KbqScrollbarTarget } from './scrollbar.types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* The component-wrapper for `overlayscrollbars` library.
|
|
6
|
+
*/
|
|
4
7
|
export declare class KbqScrollbar implements AfterViewInit, OnDestroy {
|
|
5
8
|
private ngZone;
|
|
6
9
|
private targetElement;
|
|
@@ -29,5 +32,5 @@ export declare class KbqScrollbar implements AfterViewInit, OnDestroy {
|
|
|
29
32
|
mergeEvents(): KbqScrollbarEvents;
|
|
30
33
|
private dispatchEventIfHasObservers;
|
|
31
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqScrollbar, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqScrollbar, "kbq-scrollbar, [kbq-scrollbar]", ["kbqScrollbar"], { "initializationTarget": { "alias": "initializationTarget"; "required": false; }; "options": { "alias": "options"; "required": false; }; "events": { "alias": "events"; "required": false; }; "defer": { "alias": "defer"; "required": false; }; }, { "onInitialize": "onInitialize"; "onUpdate": "onUpdate"; "onDestroy": "onDestroy"; "onScroll": "onScroll"; }, never, ["*"],
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqScrollbar, "kbq-scrollbar, [kbq-scrollbar]", ["kbqScrollbar"], { "initializationTarget": { "alias": "initializationTarget"; "required": false; }; "options": { "alias": "options"; "required": false; }; "events": { "alias": "events"; "required": false; }; "defer": { "alias": "defer"; "required": false; }; }, { "onInitialize": "onInitialize"; "onUpdate": "onUpdate"; "onDestroy": "onDestroy"; "onScroll": "onScroll"; }, never, ["*"], true, never>;
|
|
33
36
|
}
|
|
@@ -2,6 +2,9 @@ import { NgZone, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { OverlayScrollbars } from 'overlayscrollbars';
|
|
3
3
|
import { KbqScrollbarEvents, KbqScrollbarOptions, KbqScrollbarTarget } from './scrollbar.types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* A directive for adding `overlayscrollbars` to an element.
|
|
7
|
+
*/
|
|
5
8
|
export declare class KbqScrollbarDirective implements OnDestroy {
|
|
6
9
|
private ngZone;
|
|
7
10
|
private scrollbarConfig?;
|
|
@@ -17,32 +20,9 @@ export declare class KbqScrollbarDirective implements OnDestroy {
|
|
|
17
20
|
/** Whether to defer the initialization to a point in time when the browser is idle. (or to the next frame if `window.requestIdleCallback` is not supported) */
|
|
18
21
|
defer?: boolean | IdleRequestOptions;
|
|
19
22
|
scrollbarInstance?: OverlayScrollbars;
|
|
20
|
-
constructor(ngZone: NgZone, scrollbarConfig?:
|
|
21
|
-
paddingAbsolute?: boolean | undefined;
|
|
22
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
23
|
-
update?: {
|
|
24
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
25
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
26
|
-
attributes?: string[] | null | undefined;
|
|
27
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
overflow?: {
|
|
30
|
-
x?: import("overlayscrollbars").OverflowBehavior | undefined;
|
|
31
|
-
y?: import("overlayscrollbars").OverflowBehavior | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
scrollbars?: {
|
|
34
|
-
theme?: string | null | undefined;
|
|
35
|
-
visibility?: import("overlayscrollbars").ScrollbarsVisibilityBehavior | undefined;
|
|
36
|
-
autoHide?: import("overlayscrollbars").ScrollbarsAutoHideBehavior | undefined;
|
|
37
|
-
autoHideDelay?: number | undefined;
|
|
38
|
-
autoHideSuspend?: boolean | undefined;
|
|
39
|
-
dragScroll?: boolean | undefined;
|
|
40
|
-
clickScroll?: boolean | undefined;
|
|
41
|
-
pointers?: string[] | null | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
} | undefined);
|
|
23
|
+
constructor(ngZone: NgZone, scrollbarConfig?: KbqScrollbarOptions | undefined);
|
|
44
24
|
initialize(target: KbqScrollbarTarget): void;
|
|
45
25
|
ngOnDestroy(): void;
|
|
46
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqScrollbarDirective, never>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqScrollbarDirective, "[kbqScrollbar]", never, { "options": { "alias": "options"; "required": false; }; "events": { "alias": "events"; "required": false; }; "defer": { "alias": "defer"; "required": false; }; }, {}, never, never,
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqScrollbarDirective, "[kbqScrollbar]", never, { "options": { "alias": "options"; "required": false; }; "events": { "alias": "events"; "required": false; }; "defer": { "alias": "defer"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
28
|
}
|
|
@@ -3,6 +3,6 @@ import * as i1 from "./scrollbar.component";
|
|
|
3
3
|
import * as i2 from "./scrollbar.directive";
|
|
4
4
|
export declare class KbqScrollbarModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqScrollbarModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqScrollbarModule, [typeof i1.KbqScrollbar, typeof i2.KbqScrollbarDirective],
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqScrollbarModule, never, [typeof i1.KbqScrollbar, typeof i2.KbqScrollbarDirective], [typeof i1.KbqScrollbar, typeof i2.KbqScrollbarDirective]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqScrollbarModule>;
|
|
8
8
|
}
|
|
@@ -1,59 +1,42 @@
|
|
|
1
|
+
/* stylelint-disable no-unknown-custom-properties */
|
|
2
|
+
|
|
1
3
|
.kbq-select,
|
|
2
4
|
.kbq-select__panel {
|
|
3
|
-
--kbq-size-
|
|
4
|
-
--kbq-size-
|
|
5
|
-
--kbq-option-size-horizontal-padding: 12px;
|
|
6
|
-
--kbq-option-size-height: 32px;
|
|
5
|
+
--kbq-option-size-horizontal-padding: var(--kbq-size-m);
|
|
6
|
+
--kbq-option-size-height: var(--kbq-size-3xl);
|
|
7
7
|
--kbq-option-size-border-width: 2px;
|
|
8
|
-
--kbq-select-size-single-padding-left:
|
|
9
|
-
--kbq-select-size-single-padding-right:
|
|
10
|
-
--kbq-select-size-single-padding-vertical:
|
|
11
|
-
--kbq-select-size-single-content-gap:
|
|
12
|
-
--kbq-select-size-multiple-padding-left:
|
|
13
|
-
--kbq-select-size-multiple-padding-right:
|
|
14
|
-
--kbq-select-size-multiple-padding-vertical:
|
|
15
|
-
--kbq-select-size-multiple-content-gap:
|
|
16
|
-
--kbq-select-font-default-font-size:
|
|
17
|
-
--kbq-select-font-default-line-height:
|
|
18
|
-
--kbq-select-font-default-letter-spacing: -
|
|
19
|
-
--kbq-select-font-default-font-weight: normal;
|
|
20
|
-
--kbq-select-font-default-font-family:
|
|
21
|
-
|
|
22
|
-
--kbq-select-font-default-
|
|
23
|
-
--kbq-select-
|
|
24
|
-
--kbq-select-panel-size-border-radius: 8px;
|
|
8
|
+
--kbq-select-size-single-padding-left: var(--kbq-size-m);
|
|
9
|
+
--kbq-select-size-single-padding-right: var(--kbq-size-xxs);
|
|
10
|
+
--kbq-select-size-single-padding-vertical: var(--kbq-size-xs);
|
|
11
|
+
--kbq-select-size-single-content-gap: var(--kbq-size-xxs);
|
|
12
|
+
--kbq-select-size-multiple-padding-left: var(--kbq-size-xxs);
|
|
13
|
+
--kbq-select-size-multiple-padding-right: var(--kbq-size-xxs);
|
|
14
|
+
--kbq-select-size-multiple-padding-vertical: var(--kbq-size-xxs);
|
|
15
|
+
--kbq-select-size-multiple-content-gap: var(--kbq-size-xxs);
|
|
16
|
+
--kbq-select-font-default-font-size: var(--kbq-typography-text-normal-font-size);
|
|
17
|
+
--kbq-select-font-default-line-height: var(--kbq-typography-text-normal-line-height);
|
|
18
|
+
--kbq-select-font-default-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
19
|
+
--kbq-select-font-default-font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
20
|
+
--kbq-select-font-default-font-family: var(--kbq-typography-text-normal-font-family);
|
|
21
|
+
--kbq-select-font-default-text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
22
|
+
--kbq-select-font-default-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
23
|
+
--kbq-select-panel-size-border-radius: var(--kbq-size-s);
|
|
25
24
|
--kbq-select-panel-size-max-height: 256px;
|
|
26
|
-
--kbq-select-panel-font-default-font-size:
|
|
27
|
-
--kbq-select-panel-font-default-line-height:
|
|
28
|
-
--kbq-select-panel-font-default-letter-spacing: -
|
|
29
|
-
--kbq-select-panel-font-default-font-weight: normal;
|
|
30
|
-
--kbq-select-panel-font-default-font-family:
|
|
31
|
-
|
|
32
|
-
--kbq-select-panel-font-default-
|
|
33
|
-
--kbq-select-panel-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
25
|
+
--kbq-select-panel-font-default-font-size: var(--kbq-typography-text-normal-font-size);
|
|
26
|
+
--kbq-select-panel-font-default-line-height: var(--kbq-typography-text-normal-line-height);
|
|
27
|
+
--kbq-select-panel-font-default-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
28
|
+
--kbq-select-panel-font-default-font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
29
|
+
--kbq-select-panel-font-default-font-family: var(--kbq-typography-text-normal-font-family);
|
|
30
|
+
--kbq-select-panel-font-default-text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
31
|
+
--kbq-select-panel-font-default-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
37
|
-
--kbq-
|
|
38
|
-
--kbq-
|
|
39
|
-
--kbq-foreground-contrast-secondary: hsla(229, 15%, 50%, 100%);
|
|
40
|
-
--kbq-foreground-contrast-tertiary: hsla(229, 15%, 60%, 100%);
|
|
41
|
-
--kbq-foreground-text-less-contrast: hsla(229, 15%, 50%, 100%);
|
|
42
|
-
--kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
|
|
43
|
-
--kbq-divider-color: hsla(229, 15%, 6%, 12%);
|
|
44
|
-
--kbq-select-panel-dropdown-background: hsla(229, 15%, 100%, 100%);
|
|
45
|
-
--kbq-select-panel-dropdown-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
46
|
-
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
35
|
+
--kbq-select-panel-dropdown-background: var(--kbq-background-card);
|
|
36
|
+
--kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
|
|
47
37
|
}
|
|
48
38
|
|
|
49
39
|
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
50
|
-
--kbq-
|
|
51
|
-
--kbq-
|
|
52
|
-
--kbq-foreground-contrast-secondary: hsla(229, 15%, 60%, 100%);
|
|
53
|
-
--kbq-foreground-contrast-tertiary: hsla(229, 15%, 45%, 100%);
|
|
54
|
-
--kbq-foreground-text-less-contrast: hsla(229, 15%, 50%, 100%);
|
|
55
|
-
--kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
|
|
56
|
-
--kbq-divider-color: hsla(229, 15%, 22%, 100%);
|
|
57
|
-
--kbq-select-panel-dropdown-background: hsla(229, 15%, 15%, 100%);
|
|
58
|
-
--kbq-select-panel-dropdown-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
40
|
+
--kbq-select-panel-dropdown-background: var(--kbq-background-card);
|
|
41
|
+
--kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
|
|
59
42
|
}
|
|
@@ -1,48 +1,47 @@
|
|
|
1
|
+
/* stylelint-disable no-unknown-custom-properties */
|
|
2
|
+
|
|
1
3
|
.kbq-sidepanel-container {
|
|
2
4
|
--kbq-sidepanel-size-small-width: 400px;
|
|
3
5
|
--kbq-sidepanel-size-medium-width: 640px;
|
|
4
6
|
--kbq-sidepanel-size-large-width: 960px;
|
|
5
|
-
--kbq-sidepanel-size-header-padding-vertical:
|
|
6
|
-
--kbq-sidepanel-size-header-padding-left:
|
|
7
|
-
--kbq-sidepanel-size-header-padding-right:
|
|
8
|
-
--kbq-sidepanel-size-close-button-margin-left:
|
|
9
|
-
--kbq-sidepanel-size-content-padding-horizontal:
|
|
10
|
-
--kbq-sidepanel-size-content-padding-bottom:
|
|
11
|
-
--kbq-sidepanel-size-footer-padding-top:
|
|
12
|
-
--kbq-sidepanel-size-footer-padding-bottom:
|
|
13
|
-
--kbq-sidepanel-size-footer-padding-horizontal:
|
|
14
|
-
--kbq-sidepanel-size-footer-content-gap-horizontal:
|
|
15
|
-
--kbq-sidepanel-font-header-font-size:
|
|
16
|
-
--kbq-sidepanel-font-header-line-height:
|
|
17
|
-
--kbq-sidepanel-font-header-letter-spacing:
|
|
18
|
-
--kbq-sidepanel-font-header-font-weight:
|
|
19
|
-
--kbq-sidepanel-font-header-font-family:
|
|
20
|
-
|
|
21
|
-
--kbq-sidepanel-font-header-
|
|
22
|
-
--kbq-sidepanel-font-
|
|
23
|
-
--kbq-sidepanel-font-content-
|
|
24
|
-
--kbq-sidepanel-font-content-
|
|
25
|
-
--kbq-sidepanel-font-content-
|
|
26
|
-
--kbq-sidepanel-font-content-font-
|
|
27
|
-
--kbq-sidepanel-font-content-
|
|
28
|
-
|
|
29
|
-
--kbq-sidepanel-font-content-text-transform: null;
|
|
30
|
-
--kbq-sidepanel-font-content-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
7
|
+
--kbq-sidepanel-size-header-padding-vertical: var(--kbq-size-l);
|
|
8
|
+
--kbq-sidepanel-size-header-padding-left: var(--kbq-size-3xl);
|
|
9
|
+
--kbq-sidepanel-size-header-padding-right: var(--kbq-size-m);
|
|
10
|
+
--kbq-sidepanel-size-close-button-margin-left: var(--kbq-size-s);
|
|
11
|
+
--kbq-sidepanel-size-content-padding-horizontal: var(--kbq-size-3xl);
|
|
12
|
+
--kbq-sidepanel-size-content-padding-bottom: var(--kbq-size-xxl);
|
|
13
|
+
--kbq-sidepanel-size-footer-padding-top: var(--kbq-size-s);
|
|
14
|
+
--kbq-sidepanel-size-footer-padding-bottom: var(--kbq-size-3xl);
|
|
15
|
+
--kbq-sidepanel-size-footer-padding-horizontal: var(--kbq-size-3xl);
|
|
16
|
+
--kbq-sidepanel-size-footer-content-gap-horizontal: var(--kbq-size-l);
|
|
17
|
+
--kbq-sidepanel-font-header-font-size: var(--kbq-typography-title-font-size);
|
|
18
|
+
--kbq-sidepanel-font-header-line-height: var(--kbq-typography-title-line-height);
|
|
19
|
+
--kbq-sidepanel-font-header-letter-spacing: var(--kbq-typography-title-letter-spacing);
|
|
20
|
+
--kbq-sidepanel-font-header-font-weight: var(--kbq-typography-title-font-weight);
|
|
21
|
+
--kbq-sidepanel-font-header-font-family: var(--kbq-typography-title-font-family);
|
|
22
|
+
--kbq-sidepanel-font-header-text-transform: var(--kbq-typography-title-text-transform);
|
|
23
|
+
--kbq-sidepanel-font-header-font-feature-settings: var(--kbq-typography-title-font-feature-settings);
|
|
24
|
+
--kbq-sidepanel-font-content-font-size: var(--kbq-typography-text-normal-font-size);
|
|
25
|
+
--kbq-sidepanel-font-content-line-height: var(--kbq-typography-text-normal-line-height);
|
|
26
|
+
--kbq-sidepanel-font-content-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
27
|
+
--kbq-sidepanel-font-content-font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
28
|
+
--kbq-sidepanel-font-content-font-family: var(--kbq-typography-text-normal-font-family);
|
|
29
|
+
--kbq-sidepanel-font-content-text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
30
|
+
--kbq-sidepanel-font-content-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
34
|
-
--kbq-sidepanel-overlay-background:
|
|
35
|
-
--kbq-sidepanel-container-background:
|
|
36
|
-
--kbq-sidepanel-container-box-shadow:
|
|
37
|
-
|
|
38
|
-
--kbq-sidepanel-
|
|
39
|
-
--kbq-sidepanel-content-text-color: hsla(229, 15%, 15%, 100%);
|
|
34
|
+
--kbq-sidepanel-overlay-background: var(--kbq-background-overlay);
|
|
35
|
+
--kbq-sidepanel-container-background: var(--kbq-background-card);
|
|
36
|
+
--kbq-sidepanel-container-box-shadow: var(--kbq-shadow-overlay);
|
|
37
|
+
--kbq-sidepanel-header-text-color: var(--kbq-foreground-contrast);
|
|
38
|
+
--kbq-sidepanel-content-text-color: var(--kbq-foreground-contrast);
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
43
|
-
--kbq-sidepanel-overlay-background:
|
|
44
|
-
--kbq-sidepanel-container-background:
|
|
45
|
-
--kbq-sidepanel-container-box-shadow:
|
|
46
|
-
--kbq-sidepanel-header-text-color:
|
|
47
|
-
--kbq-sidepanel-content-text-color:
|
|
42
|
+
--kbq-sidepanel-overlay-background: var(--kbq-background-overlay);
|
|
43
|
+
--kbq-sidepanel-container-background: var(--kbq-background-card);
|
|
44
|
+
--kbq-sidepanel-container-box-shadow: var(--kbq-shadow-overlay);
|
|
45
|
+
--kbq-sidepanel-header-text-color: var(--kbq-foreground-contrast);
|
|
46
|
+
--kbq-sidepanel-content-text-color: var(--kbq-foreground-contrast);
|
|
48
47
|
}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
--kbq-background-background-disabled: hsla(229, 15%, 95%, 100%);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
6
|
-
--kbq-background-background-disabled: hsla(229, 15%, 95%, 100%);
|
|
7
|
-
}
|
|
1
|
+
/* stylelint-disable no-unknown-custom-properties */
|