@koobiq/components 16.0.0-beta.6 → 16.0.0-beta.8
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-trigger.directive.d.ts +5 -15
- package/button-toggle/_button-toggle-theme.scss +26 -45
- package/button-toggle/button-toggle.component.d.ts +2 -2
- package/button-toggle/button-toggle.scss +40 -87
- package/card/_card-theme.scss +1 -1
- package/checkbox/_checkbox-theme.scss +10 -2
- package/checkbox/checkbox.d.ts +1 -1
- package/code-block/README.md +14 -14
- package/code-block/_code-block-theme.scss +8 -0
- package/code-block/code-block.component.d.ts +1 -1
- package/core/animation/index.d.ts +1 -1
- package/core/animation/select-animations.d.ts +1 -1
- package/core/formatters/index.d.ts +1 -1
- package/core/formatters/number/formatter.d.ts +56 -1
- package/core/forms/forms.directive.d.ts +2 -2
- package/core/locales/en-US.d.ts +19 -1
- package/core/locales/es-LA.d.ts +27 -0
- package/core/locales/fa-IR.d.ts +28 -0
- package/core/locales/locale-service.d.ts +148 -3
- package/core/locales/pt-BR.d.ts +27 -0
- package/core/locales/ru-RU.d.ts +20 -1
- package/core/locales/zh-CN.d.ts +26 -0
- package/core/option/_optgroup-theme.scss +1 -1
- package/core/option/_option-theme.scss +2 -2
- package/core/option/action.d.ts +1 -1
- package/core/option/optgroup.d.ts +1 -1
- package/core/option/option.d.ts +37 -8
- package/core/option/option.scss +4 -4
- package/core/overlay/overlay-position-map.d.ts +7 -1
- package/core/pop-up/constants.d.ts +2 -1
- package/core/public-api.d.ts +1 -0
- package/core/select/constants.d.ts +2 -2
- package/core/services/theme.service.d.ts +23 -0
- package/core/styles/_koobiq-theme.scss +6 -0
- package/core/styles/_variables.scss +1 -0
- package/core/styles/common/_animation.scss +10 -6
- package/core/styles/common/_overlay.scss +1 -1
- package/core/styles/common/_select.scss +79 -65
- package/core/styles/theming/_components-theming.scss +205 -23
- package/core/styles/theming/_theming.scss +2 -2
- package/datepicker/_datepicker-theme.scss +43 -57
- package/datepicker/calendar-body.component.d.ts +1 -1
- package/datepicker/calendar-body.scss +11 -26
- package/datepicker/calendar-header.component.d.ts +9 -3
- package/datepicker/calendar-header.scss +7 -31
- package/datepicker/calendar.component.d.ts +4 -5
- package/datepicker/calendar.scss +20 -25
- package/datepicker/datepicker-animations.d.ts +1 -1
- package/datepicker/datepicker-content.scss +17 -10
- package/datepicker/datepicker-input.directive.d.ts +4 -4
- package/datepicker/datepicker-input.scss +1 -1
- package/datepicker/datepicker-toggle.component.d.ts +3 -3
- package/datepicker/datepicker.component.d.ts +2 -2
- package/datepicker/month-view.component.d.ts +5 -6
- package/dl/_dl-theme.scss +2 -56
- package/dl/dl.component.d.ts +1 -2
- package/dl/dl.scss +10 -47
- package/dropdown/_dropdown-theme.scss +2 -2
- package/dropdown/dropdown-animations.d.ts +1 -1
- package/dropdown/dropdown-content.directive.d.ts +1 -1
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-item.scss +1 -1
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +27 -24
- package/esm2022/button/button.component.mjs +3 -2
- package/esm2022/button-toggle/button-toggle.component.mjs +15 -15
- package/esm2022/checkbox/checkbox.mjs +3 -3
- package/esm2022/code-block/actionbar.component.mjs +1 -1
- package/esm2022/code-block/code-block.component.mjs +3 -3
- package/esm2022/core/animation/index.mjs +2 -2
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/formatters/index.mjs +10 -2
- package/esm2022/core/formatters/number/formatter.mjs +224 -3
- package/esm2022/core/forms/forms.directive.mjs +5 -5
- package/esm2022/core/locales/en-US.mjs +22 -4
- package/esm2022/core/locales/es-LA.mjs +31 -2
- package/esm2022/core/locales/fa-IR.mjs +30 -2
- package/esm2022/core/locales/locale-service.mjs +4 -4
- package/esm2022/core/locales/pt-BR.mjs +29 -2
- package/esm2022/core/locales/ru-RU.mjs +23 -2
- package/esm2022/core/locales/zh-CN.mjs +28 -2
- package/esm2022/core/option/action.mjs +3 -3
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +47 -10
- package/esm2022/core/overlay/overlay-position-map.mjs +7 -1
- package/esm2022/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/select/constants.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +60 -0
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +7 -5
- package/esm2022/datepicker/calendar-header.component.mjs +9 -8
- package/esm2022/datepicker/calendar.component.mjs +8 -17
- package/esm2022/datepicker/datepicker-animations.mjs +2 -2
- package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
- package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
- package/esm2022/datepicker/datepicker.component.mjs +12 -12
- package/esm2022/datepicker/month-view.component.mjs +9 -18
- package/esm2022/dl/dl.component.mjs +3 -7
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-errors.mjs +6 -6
- package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +10 -9
- package/esm2022/dropdown/dropdown.component.mjs +8 -8
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/file-upload/file-drop.mjs +4 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +13 -9
- package/esm2022/file-upload/single-file-upload.component.mjs +16 -13
- package/esm2022/form-field/cleaner.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +7 -7
- package/esm2022/form-field/hint.mjs +4 -4
- package/esm2022/form-field/password-hint.mjs +11 -11
- package/esm2022/form-field/password-toggle.mjs +21 -8
- package/esm2022/form-field/suffix.mjs +3 -3
- package/esm2022/form-field/validate.directive.mjs +4 -4
- package/esm2022/input/input-number.mjs +259 -43
- package/esm2022/link/link.component.mjs +3 -3
- package/esm2022/list/list-selection.component.mjs +8 -8
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/modal/modal-control.service.mjs +5 -5
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +124 -111
- package/esm2022/modal/modal.service.mjs +23 -23
- package/esm2022/modal/modal.type.mjs +1 -3
- package/esm2022/navbar/navbar-item.component.mjs +6 -6
- package/esm2022/navbar/navbar.component.mjs +18 -9
- package/esm2022/navbar/vertical-navbar.component.mjs +9 -6
- package/esm2022/popover/popover-animations.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +9 -9
- package/esm2022/popover/popover.component.mjs +24 -24
- package/esm2022/radio/radio.component.mjs +10 -8
- package/esm2022/select/select-option.directive.mjs +15 -3
- package/esm2022/select/select.component.mjs +37 -21
- package/esm2022/sidebar/sidebar-animations.mjs +2 -2
- package/esm2022/sidebar/sidebar.component.mjs +9 -9
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +2 -2
- package/esm2022/splitter/splitter.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/tabs/tab-body.component.mjs +7 -7
- package/esm2022/tabs/tab-content.directive.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +6 -6
- package/esm2022/tabs/tab.component.mjs +14 -5
- package/esm2022/tabs/tabs-animations.mjs +2 -2
- package/esm2022/tags/tag-input.mjs +3 -3
- package/esm2022/tags/tag-list.component.mjs +5 -5
- package/esm2022/tags/tag.component.mjs +10 -10
- package/esm2022/timepicker/timepicker.directive.mjs +10 -10
- package/esm2022/timezone/timezone-option.component.mjs +4 -4
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +5 -5
- package/esm2022/toast/toast.module.mjs +10 -4
- package/esm2022/toggle/toggle.component.mjs +4 -4
- package/esm2022/tooltip/tooltip.component.mjs +18 -17
- package/esm2022/tree/control/base-tree-control.mjs +1 -1
- package/esm2022/tree/control/flat-tree-control.mjs +4 -4
- package/esm2022/tree/control/tree-control.mjs +1 -1
- package/esm2022/tree/node.mjs +5 -5
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +7 -7
- package/esm2022/tree/toggle.mjs +9 -11
- package/esm2022/tree/tree-base.mjs +3 -3
- package/esm2022/tree/tree-option.component.mjs +8 -5
- package/esm2022/tree/tree-selection.component.mjs +8 -6
- package/esm2022/tree/tree.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +14 -15
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +27 -24
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +14 -14
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +2 -1
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +3 -3
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +526 -39
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +72 -78
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -6
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +30 -29
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +26 -19
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +46 -34
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +257 -43
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +2 -2
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +9 -9
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +149 -140
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +28 -20
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +31 -31
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +9 -7
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +50 -22
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +8 -8
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +3 -3
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +2 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +29 -20
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +15 -15
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +9 -9
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +7 -7
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +4 -4
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +8 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +3 -3
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +17 -16
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +13 -14
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +42 -38
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +54 -40
- package/file-upload/file-drop.d.ts +1 -1
- package/file-upload/file-upload.scss +2 -9
- package/file-upload/multiple-file-upload.component.d.ts +4 -3
- package/file-upload/multiple-file-upload.component.scss +170 -59
- package/file-upload/single-file-upload.component.d.ts +4 -3
- package/file-upload/single-file-upload.component.scss +42 -22
- package/form-field/_hint-theme.scss +1 -1
- package/form-field/cleaner.d.ts +1 -1
- package/form-field/form-field.d.ts +2 -2
- package/form-field/form-field.scss +2 -2
- package/form-field/hint.d.ts +1 -1
- package/form-field/password-hint.d.ts +2 -1
- package/form-field/password-toggle.d.ts +11 -6
- package/form-field/suffix.d.ts +1 -1
- package/form-field/validate.directive.d.ts +1 -1
- package/icon/_icon-theme.scss +12 -22
- package/input/input-number.d.ts +61 -10
- package/link/_link-theme.scss +6 -2
- package/link/link.component.d.ts +1 -1
- package/list/_list-theme.scss +2 -2
- package/list/list-selection.component.d.ts +1 -1
- package/list/list.scss +1 -5
- package/loader-overlay/loader-overlay.scss +3 -0
- package/markdown/_markdown-theme.scss +2 -2
- package/modal/README.md +5 -5
- package/modal/_modal-theme.scss +10 -18
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.component.d.ts +51 -47
- package/modal/modal.scss +0 -1
- package/modal/modal.type.d.ts +35 -36
- package/navbar/_navbar-theme.scss +1 -1
- package/navbar/navbar-item.component.d.ts +2 -2
- package/navbar/navbar.component.d.ts +5 -2
- package/navbar/vertical-navbar.component.d.ts +4 -2
- package/package.json +28 -30
- package/popover/README.md +14 -14
- package/popover/_popover-theme.scss +15 -78
- package/popover/popover-animations.d.ts +1 -1
- package/popover/popover-confirm.component.d.ts +1 -1
- package/popover/popover.component.d.ts +3 -3
- package/popover/popover.scss +60 -50
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/radio/_radio-theme.scss +17 -4
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.scss +13 -0
- package/select/_select-theme.scss +1 -1
- package/select/select-option.directive.d.ts +2 -0
- package/select/select.component.d.ts +14 -11
- package/sidebar/sidebar-animations.d.ts +1 -1
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/_sidepanel-theme.scss +5 -0
- package/splitter/splitter.component.d.ts +1 -1
- package/table/_table-theme.scss +1 -1
- package/table/table.component.d.ts +1 -1
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-content.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -2
- package/tabs/tab.component.d.ts +1 -1
- package/tabs/tabs-animations.d.ts +1 -1
- package/tags/_tag-theme.scss +1 -1
- package/tags/tag-input.d.ts +2 -2
- package/tags/tag-list.component.d.ts +2 -2
- package/tags/tag-list.scss +2 -0
- package/tags/tag.component.d.ts +3 -3
- package/timepicker/timepicker.directive.d.ts +2 -2
- package/timezone/timezone-option.component.d.ts +1 -1
- package/timezone/timezone-select.component.d.ts +1 -1
- package/title/title.directive.d.ts +1 -1
- package/toggle/_toggle-theme.scss +9 -1
- package/toggle/toggle.component.d.ts +1 -1
- package/toggle/toggle.scss +5 -2
- package/tooltip/tooltip.component.d.ts +3 -3
- package/tree/_tree-theme.scss +2 -2
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/tree-control.d.ts +1 -1
- package/tree/node.d.ts +1 -1
- package/tree/outlet.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +3 -3
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-option.scss +2 -0
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree-select/_tree-select-theme.scss +1 -1
- package/tree-select/tree-select.component.d.ts +1 -1
package/form-field/cleaner.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class KbqCleaner {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCleaner, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCleaner, "kbq-cleaner", ["
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCleaner, "kbq-cleaner", ["kbqCleaner"], {}, {}, never, never, false, never>;
|
|
5
5
|
}
|
|
@@ -65,11 +65,11 @@ export declare class KbqFormField extends KbqFormFieldMixinBase implements After
|
|
|
65
65
|
/** Throws an error if the form field's control is missing. */
|
|
66
66
|
protected validateControlChild(): void;
|
|
67
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFormField, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqFormField, "kbq-form-field", ["
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqFormField, "kbq-form-field", ["kbqFormField"], { "color": { "alias": "color"; "required": false; }; }, {}, ["control", "stepper", "cleaner", "passwordToggle", "hint", "passwordHints", "suffix", "prefix"], ["[kbqPrefix]", "*", "[kbqSuffix]", "kbq-cleaner", "kbq-password-toggle", "kbq-stepper", "kbq-hint, kbq-password-hint"], false, never>;
|
|
69
69
|
}
|
|
70
70
|
export declare class KbqFormFieldWithoutBorders {
|
|
71
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFormFieldWithoutBorders, never>;
|
|
72
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFormFieldWithoutBorders, "kbq-form-field[
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFormFieldWithoutBorders, "kbq-form-field[kbqFormFieldWithoutBorders]", ["kbqFormFieldWithoutBorders"], {}, {}, never, never, false, never>;
|
|
73
73
|
}
|
|
74
74
|
export declare class KbqTrim {
|
|
75
75
|
private readonly noTrim;
|
|
@@ -38,8 +38,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&.kbq-form-field_without-borders .kbq-form-field__container {
|
|
41
|
-
border-color: transparent;
|
|
42
|
-
box-shadow: none;
|
|
41
|
+
border-color: transparent !important;
|
|
42
|
+
box-shadow: none !important;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&.kbq-form-field_has-prefix {
|
package/form-field/hint.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export declare class KbqHint extends KbqHintMixinBase {
|
|
|
13
13
|
fillTextOff: boolean;
|
|
14
14
|
constructor(elementRef: ElementRef);
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqHint, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqHint, "kbq-hint", ["
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqHint, "kbq-hint", ["kbqHint"], { "color": { "alias": "color"; "required": false; }; "id": { "alias": "id"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; }, {}, never, ["[kbq-icon]", "*"], false, never>;
|
|
17
17
|
}
|
|
@@ -24,6 +24,7 @@ export declare class KbqPasswordHint implements AfterContentInit {
|
|
|
24
24
|
min: number;
|
|
25
25
|
max: number;
|
|
26
26
|
regex: RegExp | null;
|
|
27
|
+
customCheckRule: (value: string) => boolean;
|
|
27
28
|
viewFormField?: KbqFormField;
|
|
28
29
|
hasError: boolean;
|
|
29
30
|
checked: boolean;
|
|
@@ -39,5 +40,5 @@ export declare class KbqPasswordHint implements AfterContentInit {
|
|
|
39
40
|
private checkSpecialSymbolsRegexRule;
|
|
40
41
|
private isValueChanged;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordHint, [null, { optional: true; }]>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordHint, "kbq-password-hint", never, { "id": { "alias": "id"; "required": false; }; "rule": { "alias": "rule"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "regex": { "alias": "regex"; "required": false; }; "viewFormField": { "alias": "viewFormField"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordHint, "kbq-password-hint", never, { "id": { "alias": "id"; "required": false; }; "rule": { "alias": "rule"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "regex": { "alias": "regex"; "required": false; }; "customCheckRule": { "alias": "checkRule"; "required": false; }; "viewFormField": { "alias": "viewFormField"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
43
44
|
}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
3
|
-
import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
4
4
|
import { KbqFormFieldRef } from '@koobiq/components/core';
|
|
5
|
+
import { KbqIconButton } from '@koobiq/components/icon';
|
|
5
6
|
import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class KbqPasswordToggle extends KbqTooltipTrigger {
|
|
8
|
+
export declare class KbqPasswordToggle extends KbqTooltipTrigger implements AfterViewInit {
|
|
8
9
|
private formField;
|
|
10
|
+
private changeDetector;
|
|
11
|
+
icon: KbqIconButton;
|
|
9
12
|
get content(): string | TemplateRef<any>;
|
|
10
13
|
set content(content: string | TemplateRef<any>);
|
|
11
14
|
kbqTooltipHidden: string | TemplateRef<any>;
|
|
12
15
|
get hidden(): boolean;
|
|
13
|
-
get
|
|
16
|
+
get iconClass(): string;
|
|
14
17
|
get visibility(): string;
|
|
15
|
-
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, formField: KbqFormFieldRef);
|
|
18
|
+
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, formField: KbqFormFieldRef, changeDetector: ChangeDetectorRef);
|
|
19
|
+
ngAfterViewInit(): void;
|
|
16
20
|
toggle(event: KeyboardEvent): void;
|
|
17
|
-
|
|
18
|
-
static
|
|
21
|
+
private updateState;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordToggle, [null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordToggle, "kbq-password-toggle", ["kbqPasswordToggle"], { "content": { "alias": "kbqTooltipNotHidden"; "required": false; }; "kbqTooltipHidden": { "alias": "kbqTooltipHidden"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
24
|
}
|
package/form-field/suffix.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class KbqSuffix {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSuffix, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSuffix, "[
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSuffix, "[kbqSuffix]", never, {}, {}, never, never, false, never>;
|
|
5
5
|
}
|
|
@@ -29,5 +29,5 @@ export declare class KbqValidateDirective implements AfterContentInit {
|
|
|
29
29
|
setMosaicValidationForModelControl(): void;
|
|
30
30
|
setMosaicValidationForFormControl(): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqValidateDirective, [null, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqValidateDirective, " input[kbqInput], input[kbqInputPassword], input[
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqValidateDirective, " input[kbqInput], input[kbqInputPassword], input[kbqTimepicker], input[kbqDatepicker], textarea[kbqTextarea], kbq-select, kbq-tree-select, kbq-tag-list ", ["KbqValidate"], {}, {}, never, never, false, never>;
|
|
33
33
|
}
|
package/icon/_icon-theme.scss
CHANGED
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
color: map.get($success, color);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
&[disabled],
|
|
37
36
|
&.kbq-disabled {
|
|
38
37
|
cursor: default;
|
|
38
|
+
|
|
39
|
+
pointer-events: none;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
background: map.get($success, background);
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
&[disabled],
|
|
79
79
|
&.kbq-disabled {
|
|
80
80
|
cursor: default;
|
|
81
81
|
}
|
|
@@ -98,11 +98,10 @@
|
|
|
98
98
|
color: map.get($theme, state-active);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
&:not(
|
|
101
|
+
&:not(.kbq-disabled):hover {
|
|
102
102
|
color: map.get($theme, state-hover);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
&[disabled],
|
|
106
105
|
&.kbq-disabled {
|
|
107
106
|
color: map.get($theme, state-disabled);
|
|
108
107
|
}
|
|
@@ -114,11 +113,10 @@
|
|
|
114
113
|
color: map.get($contrast, state-active);
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
&:not(
|
|
116
|
+
&:not(.kbq-disabled):hover {
|
|
118
117
|
color: map.get($contrast, state-hover);
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
&[disabled],
|
|
122
120
|
&.kbq-disabled {
|
|
123
121
|
color: map.get($contrast, state-disabled);
|
|
124
122
|
}
|
|
@@ -130,11 +128,10 @@
|
|
|
130
128
|
color: map.get($fade-contrast, state-active);
|
|
131
129
|
}
|
|
132
130
|
|
|
133
|
-
&:not(
|
|
131
|
+
&:not(.kbq-disabled):hover {
|
|
134
132
|
color: map.get($fade-contrast, state-hover);
|
|
135
133
|
}
|
|
136
134
|
|
|
137
|
-
&[disabled],
|
|
138
135
|
&.kbq-disabled {
|
|
139
136
|
color: map.get($fade-contrast, state-disabled);
|
|
140
137
|
}
|
|
@@ -146,11 +143,10 @@
|
|
|
146
143
|
color: map.get($error, state-active);
|
|
147
144
|
}
|
|
148
145
|
|
|
149
|
-
&:not(
|
|
146
|
+
&:not(.kbq-disabled):hover {
|
|
150
147
|
color: map.get($error, state-hover);
|
|
151
148
|
}
|
|
152
149
|
|
|
153
|
-
&[disabled],
|
|
154
150
|
&.kbq-disabled {
|
|
155
151
|
color: map.get($error, state-disabled);
|
|
156
152
|
}
|
|
@@ -162,11 +158,10 @@
|
|
|
162
158
|
color: map.get($success, state-active);
|
|
163
159
|
}
|
|
164
160
|
|
|
165
|
-
&:not(
|
|
161
|
+
&:not(.kbq-disabled):hover {
|
|
166
162
|
color: map.get($success, state-hover);
|
|
167
163
|
}
|
|
168
164
|
|
|
169
|
-
&[disabled],
|
|
170
165
|
&.kbq-disabled {
|
|
171
166
|
color: map.get($success, state-disabled);
|
|
172
167
|
}
|
|
@@ -180,11 +175,10 @@
|
|
|
180
175
|
color: map.get($theme, state-active);
|
|
181
176
|
}
|
|
182
177
|
|
|
183
|
-
&:not(
|
|
178
|
+
&:not(.kbq-disabled):hover {
|
|
184
179
|
color: map.get($theme, state-hover);
|
|
185
180
|
}
|
|
186
181
|
|
|
187
|
-
&[disabled],
|
|
188
182
|
&.kbq-disabled {
|
|
189
183
|
color: map.get($theme, state-disabled);
|
|
190
184
|
}
|
|
@@ -196,11 +190,10 @@
|
|
|
196
190
|
color: map.get($contrast, state-active);
|
|
197
191
|
}
|
|
198
192
|
|
|
199
|
-
&:not(
|
|
193
|
+
&:not(.kbq-disabled):hover {
|
|
200
194
|
color: map.get($contrast, state-hover);
|
|
201
195
|
}
|
|
202
196
|
|
|
203
|
-
&[disabled],
|
|
204
197
|
&.kbq-disabled {
|
|
205
198
|
color: map.get($contrast, state-disabled);
|
|
206
199
|
}
|
|
@@ -212,11 +205,10 @@
|
|
|
212
205
|
color: map.get($fade-contrast, state-active);
|
|
213
206
|
}
|
|
214
207
|
|
|
215
|
-
&:not(
|
|
208
|
+
&:not(.kbq-disabled):hover {
|
|
216
209
|
color: map.get($fade-contrast, state-hover);
|
|
217
210
|
}
|
|
218
211
|
|
|
219
|
-
&[disabled],
|
|
220
212
|
&.kbq-disabled {
|
|
221
213
|
color: map.get($fade-contrast, state-disabled);
|
|
222
214
|
}
|
|
@@ -228,11 +220,10 @@
|
|
|
228
220
|
color: map.get($error, state-active);
|
|
229
221
|
}
|
|
230
222
|
|
|
231
|
-
&:not(
|
|
223
|
+
&:not(.kbq-disabled):hover {
|
|
232
224
|
color: map.get($error, state-hover);
|
|
233
225
|
}
|
|
234
226
|
|
|
235
|
-
&[disabled],
|
|
236
227
|
&.kbq-disabled {
|
|
237
228
|
color: map.get($error, state-disabled);
|
|
238
229
|
}
|
|
@@ -244,11 +235,10 @@
|
|
|
244
235
|
color: map.get($success, state-active);
|
|
245
236
|
}
|
|
246
237
|
|
|
247
|
-
&:not(
|
|
238
|
+
&:not(.kbq-disabled):hover {
|
|
248
239
|
color: map.get($success, state-hover);
|
|
249
240
|
}
|
|
250
241
|
|
|
251
|
-
&[disabled],
|
|
252
242
|
&.kbq-disabled {
|
|
253
243
|
color: map.get($success, state-disabled);
|
|
254
244
|
}
|
package/input/input-number.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { KbqLocaleService } from '@koobiq/components/core';
|
|
4
|
+
import { KbqFormFieldControl } from '@koobiq/components/form-field';
|
|
3
5
|
import { Subject } from 'rxjs';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare const BIG_STEP = 10;
|
|
@@ -10,24 +12,73 @@ export declare function isInt(value: string): boolean;
|
|
|
10
12
|
export declare function isDigit(value: string): boolean;
|
|
11
13
|
export declare function getPrecision(value: number): number;
|
|
12
14
|
export declare function add(value1: number, value2: number): number;
|
|
13
|
-
export declare
|
|
15
|
+
export declare const KBQ_NUMBER_INPUT_VALUE_ACCESSOR: any;
|
|
16
|
+
export declare class KbqNumberInput implements KbqFormFieldControl<any>, ControlValueAccessor, OnDestroy {
|
|
14
17
|
private elementRef;
|
|
15
|
-
private
|
|
18
|
+
private readonly renderer;
|
|
19
|
+
private localeService;
|
|
20
|
+
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
21
|
+
valueChange: EventEmitter<number | null>;
|
|
22
|
+
/** Emits when the disabled state has changed */
|
|
23
|
+
disabledChange: EventEmitter<boolean>;
|
|
24
|
+
readonly stateChanges: Subject<void>;
|
|
25
|
+
id: string;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
empty: boolean;
|
|
28
|
+
required: boolean;
|
|
29
|
+
errorState: boolean;
|
|
30
|
+
controlType?: string | undefined;
|
|
16
31
|
bigStep: number;
|
|
17
32
|
step: number;
|
|
18
33
|
min: number;
|
|
19
34
|
max: number;
|
|
20
|
-
|
|
35
|
+
withThousandSeparator: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Include thousand separator from custom index. For example, it will be useful in tables.
|
|
38
|
+
*/
|
|
39
|
+
startFormattingFrom?: number;
|
|
40
|
+
get value(): number | null;
|
|
41
|
+
set value(value: number | null);
|
|
42
|
+
private _value;
|
|
43
|
+
get disabled(): boolean;
|
|
44
|
+
set disabled(value: boolean);
|
|
45
|
+
private _disabled;
|
|
21
46
|
focused: boolean;
|
|
22
|
-
readonly stateChanges: Subject<void>;
|
|
23
47
|
get nativeElement(): HTMLInputElement;
|
|
24
|
-
|
|
48
|
+
get viewValue(): string;
|
|
49
|
+
get ngControl(): any;
|
|
50
|
+
private control;
|
|
51
|
+
private readonly allNumberLocaleConfigs;
|
|
52
|
+
private numberLocaleConfig;
|
|
53
|
+
private valueFromPaste;
|
|
54
|
+
private localeSubscription;
|
|
55
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, step: string, bigStep: string, min: string, max: string, localeService: KbqLocaleService);
|
|
56
|
+
ngOnDestroy(): void;
|
|
57
|
+
onContainerClick(): void;
|
|
58
|
+
focus(): void;
|
|
59
|
+
writeValue(value: number | null): void;
|
|
60
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
61
|
+
registerOnTouched(fn: () => void): void;
|
|
62
|
+
setDisabledState(isDisabled: boolean): void;
|
|
25
63
|
focusChanged(isFocused: boolean): void;
|
|
64
|
+
onTouched: () => void;
|
|
26
65
|
onKeyDown(event: KeyboardEvent): void;
|
|
27
|
-
|
|
66
|
+
onInput(event: InputEvent): void;
|
|
67
|
+
onPaste(event: ClipboardEvent): void;
|
|
28
68
|
stepUp(step: number): void;
|
|
29
69
|
stepDown(step: number): void;
|
|
70
|
+
private cvaOnChange;
|
|
71
|
+
private setViewValue;
|
|
30
72
|
private viewToModelUpdate;
|
|
31
|
-
|
|
32
|
-
|
|
73
|
+
private formatViewValue;
|
|
74
|
+
private formatNumber;
|
|
75
|
+
private createLocalizedNumberFromParts;
|
|
76
|
+
/**
|
|
77
|
+
* Method that returns a string representation of a number without localized separators
|
|
78
|
+
*/
|
|
79
|
+
private normalizeNumber;
|
|
80
|
+
private updateLocaleParams;
|
|
81
|
+
private checkAndNormalizeLocalizedNumber;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNumberInput, [null, null, { attribute: "step"; }, { attribute: "big-step"; }, { attribute: "min"; }, { attribute: "max"; }, { optional: true; }]>;
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqNumberInput, "input[kbqInput][type=\"number\"]", ["kbqNumericalInput"], { "bigStep": { "alias": "bigStep"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "withThousandSeparator": { "alias": "withThousandSeparator"; "required": false; }; "startFormattingFrom": { "alias": "startFormattingFrom"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
84
|
}
|
package/link/_link-theme.scss
CHANGED
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
|
|
147
147
|
@media print {
|
|
148
148
|
.kbq-link_print:not([disabled]) {
|
|
149
|
-
color: map.get($foreground,
|
|
149
|
+
color: map.get($foreground, contrast);
|
|
150
150
|
|
|
151
151
|
&.kbq-text-only,
|
|
152
152
|
&.kbq-text-with-icon .kbq-link__text {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
&::after {
|
|
157
|
-
color: map.get($foreground,
|
|
157
|
+
color: map.get($foreground, contrast);
|
|
158
158
|
|
|
159
159
|
content: ":\a" attr(print);
|
|
160
160
|
white-space: pre;
|
|
@@ -168,6 +168,10 @@
|
|
|
168
168
|
|
|
169
169
|
.kbq-link {
|
|
170
170
|
@include kbq-typography-level-to-styles($config, map.get($tokens, link-font-normal));
|
|
171
|
+
|
|
172
|
+
& .kbq-icon {
|
|
173
|
+
line-height: inherit;
|
|
174
|
+
}
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
.kbq-link.kbq-link_big {
|
package/link/link.component.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export declare class KbqLink extends KbqLinkMixinBase implements OnDestroy, HasT
|
|
|
40
40
|
getHostElement(): any;
|
|
41
41
|
private updatePrintUrl;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqLink, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqLink, "[kbq-link]", ["
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqLink, "[kbq-link]", ["kbqLink"], { "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "pseudo": { "alias": "pseudo"; "required": false; }; "noUnderline": { "alias": "noUnderline"; "required": false; }; "big": { "alias": "big"; "required": false; }; "useVisited": { "alias": "useVisited"; "required": false; }; "print": { "alias": "print"; "required": false; }; }, {}, ["icon"], never, false, never>;
|
|
44
44
|
}
|
package/list/_list-theme.scss
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
.kbq-list-option {
|
|
31
31
|
@include kbq-list-item(map.get($list-item, default));
|
|
32
32
|
|
|
33
|
-
&:hover:not(.kbq-disabled)
|
|
33
|
+
&:hover:not(.kbq-disabled) {
|
|
34
34
|
@include kbq-list-item(map.get($list-item, hover));
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
&.kbq-selected {
|
|
42
42
|
@include kbq-list-item(map.get($list-item, selected));
|
|
43
43
|
|
|
44
|
-
&:hover:not(.kbq-disabled)
|
|
44
|
+
&:hover:not(.kbq-disabled) {
|
|
45
45
|
@include kbq-list-item(map.get($list-item, selected-hover));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -114,7 +114,7 @@ export declare class KbqListSelection extends KbqListSelectionMixinBase implemen
|
|
|
114
114
|
private selectAllOptions;
|
|
115
115
|
private copyActiveOption;
|
|
116
116
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqListSelection, [null, null, { attribute: "multiple"; }, { optional: true; }]>;
|
|
117
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqListSelection, "kbq-list-selection", ["
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqListSelection, "kbq-list-selection", ["kbqListSelection"], { "disabled": { "alias": "disabled"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "noUnselectLast": { "alias": "noUnselectLast"; "required": false; }; "horizontal": { "alias": "horizontal"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; }, { "onSelectAll": "onSelectAll"; "onCopy": "onCopy"; "selectionChange": "selectionChange"; }, ["options"], ["*"], false, never>;
|
|
118
118
|
}
|
|
119
119
|
export declare class KbqListOptionCaption {
|
|
120
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqListOptionCaption, never>;
|
package/list/list.scss
CHANGED
|
@@ -21,7 +21,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
21
21
|
|
|
22
22
|
@include list.kbq-list-item-base();
|
|
23
23
|
|
|
24
|
-
&:not(.kbq-disabled)
|
|
24
|
+
&:not(.kbq-disabled) {
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -37,7 +37,3 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
.kbq-list-option:not([disabled]):not(.kbq-disabled){
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/tokens';
|
|
5
|
+
@use '../core/styles/variables';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -30,6 +31,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
30
31
|
bottom: 0;
|
|
31
32
|
left: 0;
|
|
32
33
|
|
|
34
|
+
z-index: variables.$z-index-loader-overlay;
|
|
35
|
+
|
|
33
36
|
& .kbq-loader-overlay__container {
|
|
34
37
|
display: flex;
|
|
35
38
|
flex-direction: column;
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
$markdown: map.get(map.get($theme, components), markdown);
|
|
15
15
|
|
|
16
16
|
.kbq-markdown {
|
|
17
|
-
color: map.get($foreground,
|
|
18
|
-
background: map.get($background,
|
|
17
|
+
color: map.get($foreground, contrast);
|
|
18
|
+
background: map.get($background, bg);
|
|
19
19
|
|
|
20
20
|
// h1, h2, h3, h4, h5, h6
|
|
21
21
|
@for $i from 1 through 6 {
|
package/modal/README.md
CHANGED
|
@@ -6,10 +6,10 @@ The dialog is currently divided into 3 modes - `default`, `confirm box`, `custom
|
|
|
6
6
|
```ts
|
|
7
7
|
showConfirm() {
|
|
8
8
|
this.modalService.success({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
kbqContent : 'Save changes made to the request "All assets with Windows"?',
|
|
10
|
+
kbqOkText : 'Save',
|
|
11
|
+
kbqCancelText: 'Cancel',
|
|
12
|
+
kbqOnOk : () => console.log('OK')
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
```
|
|
@@ -18,7 +18,7 @@ showConfirm() {
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
let dialogRef = modalService.open({
|
|
21
|
-
|
|
21
|
+
kbqComponent: CustomComponent
|
|
22
22
|
});
|
|
23
23
|
```
|
|
24
24
|
|
package/modal/_modal-theme.scss
CHANGED
|
@@ -5,29 +5,24 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@mixin kbq-modal-theme($theme) {
|
|
8
|
-
$tokens: map.get($theme, tokens);
|
|
9
|
-
|
|
10
|
-
$foreground: map.get($theme, foreground);
|
|
11
|
-
$background: map.get($theme, background);
|
|
12
|
-
|
|
13
8
|
$modal: map.get(map.get($theme, components), modal);
|
|
14
9
|
|
|
15
10
|
.kbq-modal {
|
|
16
11
|
background: map.get($modal, container-background);
|
|
17
12
|
box-shadow: map.get($modal, container-box-shadow);
|
|
18
13
|
|
|
19
|
-
.kbq-modal-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
box-shadow: map.get($modal, shadow);
|
|
24
|
-
}
|
|
14
|
+
.kbq-modal-header {
|
|
15
|
+
& .kbq-modal-title {
|
|
16
|
+
color: map.get($modal, header);
|
|
17
|
+
}
|
|
25
18
|
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
& .kbq-modal-close {
|
|
20
|
+
color: map.get($modal, close-button);
|
|
21
|
+
}
|
|
28
22
|
}
|
|
29
23
|
|
|
30
|
-
.kbq-modal-
|
|
24
|
+
.kbq-modal-content {
|
|
25
|
+
color: map.get($modal, content);
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
.kbq-modal-header.kbq-modal-body_top-overflow {
|
|
@@ -37,13 +32,10 @@
|
|
|
37
32
|
.kbq-modal-footer.kbq-modal-body_bottom-overflow {
|
|
38
33
|
box-shadow: map.get($modal, body-bottom-shadow);
|
|
39
34
|
}
|
|
40
|
-
|
|
41
|
-
.kbq-modal-footer {
|
|
42
|
-
}
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
.kbq-modal-mask {
|
|
46
|
-
background-color: map.get($modal,
|
|
38
|
+
background-color: map.get($modal, overlay);
|
|
47
39
|
}
|
|
48
40
|
}
|
|
49
41
|
|
|
@@ -11,12 +11,12 @@ export declare abstract class KbqModalRef<T = any, R = any> {
|
|
|
11
11
|
abstract close(result?: R): void;
|
|
12
12
|
abstract destroy(result?: R): void;
|
|
13
13
|
/**
|
|
14
|
-
* Trigger the
|
|
14
|
+
* Trigger the kbqOnOk/kbqOnCancel by manual
|
|
15
15
|
*/
|
|
16
16
|
abstract triggerOk(): void;
|
|
17
17
|
abstract triggerCancel(): void;
|
|
18
18
|
/**
|
|
19
|
-
* Return the component instance of
|
|
19
|
+
* Return the component instance of kbqContent when specify kbqContent as a Component
|
|
20
20
|
* Note: this method may return undefined if the Component has not ready yet.
|
|
21
21
|
* (it only available after Modal's ngOnInit)
|
|
22
22
|
*/
|