@koobiq/components 16.0.0-beta.6 → 16.0.0-beta.7
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.component.d.ts +2 -2
- 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/action.d.ts +1 -1
- package/core/option/optgroup.d.ts +1 -1
- package/core/option/option.d.ts +37 -8
- 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/_variables.scss +1 -0
- package/core/styles/common/_select.scss +24 -24
- package/core/styles/theming/_components-theming.scss +31 -5
- package/datepicker/calendar-body.component.d.ts +1 -1
- package/datepicker/calendar-header.component.d.ts +9 -3
- package/datepicker/calendar.component.d.ts +4 -5
- package/datepicker/datepicker-animations.d.ts +1 -1
- package/datepicker/datepicker-input.directive.d.ts +4 -4
- 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-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-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 +24 -21
- package/esm2022/button-toggle/button-toggle.component.mjs +8 -8
- 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 +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +9 -8
- package/esm2022/datepicker/calendar.component.mjs +7 -16
- 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 +11 -11
- 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 +8 -8
- 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 +12 -8
- package/esm2022/file-upload/single-file-upload.component.mjs +12 -8
- 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 +6 -6
- 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 +23 -23
- package/esm2022/radio/radio.component.mjs +10 -8
- package/esm2022/select/select.component.mjs +32 -17
- package/esm2022/sidebar/sidebar-animations.mjs +2 -2
- package/esm2022/sidebar/sidebar.component.mjs +9 -9
- 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 +3 -3
- 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 +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +16 -16
- package/esm2022/tree/node.mjs +5 -5
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +6 -6
- package/esm2022/tree/toggle.mjs +8 -8
- 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 +13 -13
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +24 -21
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +7 -7
- package/fesm2022/koobiq-components-button-toggle.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 +66 -74
- 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 +28 -28
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +23 -15
- 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 +5 -5
- 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 +30 -30
- 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 +31 -16
- 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 +1 -1
- 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 +6 -6
- 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 +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +15 -15
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +12 -12
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +36 -31
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/file-drop.d.ts +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +4 -3
- package/file-upload/single-file-upload.component.d.ts +4 -3
- 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 +2 -1
- package/input/input-number.d.ts +61 -10
- package/link/_link-theme.scss +4 -0
- package/link/link.component.d.ts +1 -1
- package/list/list-selection.component.d.ts +1 -1
- package/loader-overlay/loader-overlay.scss +3 -0
- package/modal/README.md +5 -5
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.component.d.ts +51 -47
- package/modal/modal.type.d.ts +35 -36
- 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 +9 -11
- package/popover/README.md +14 -14
- package/popover/_popover-theme.scss +11 -11
- 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/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/radio/_radio-theme.scss +15 -2
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.scss +13 -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/splitter/splitter.component.d.ts +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.component.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +3 -3
- 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.component.d.ts +1 -1
package/core/locales/ru-RU.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const ruRULocaleData: {
|
|
2
|
-
ru: {
|
|
2
|
+
'ru-RU': {
|
|
3
3
|
select: {
|
|
4
4
|
hiddenItemsText: string;
|
|
5
5
|
};
|
|
@@ -7,5 +7,24 @@ export declare const ruRULocaleData: {
|
|
|
7
7
|
placeholder: string;
|
|
8
8
|
dateInput: string;
|
|
9
9
|
};
|
|
10
|
+
formatters: {
|
|
11
|
+
number: {
|
|
12
|
+
rounding: {
|
|
13
|
+
separator: string;
|
|
14
|
+
groupSeparator: string;
|
|
15
|
+
thousand: string;
|
|
16
|
+
million: string;
|
|
17
|
+
billion: string;
|
|
18
|
+
trillion: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
input: {
|
|
23
|
+
number: {
|
|
24
|
+
groupSeparator: string[];
|
|
25
|
+
fractionSeparator: string;
|
|
26
|
+
startFormattingFrom: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
10
29
|
};
|
|
11
30
|
};
|
package/core/locales/zh-CN.d.ts
CHANGED
|
@@ -3,5 +3,31 @@ export declare const znCNLocaleData: {
|
|
|
3
3
|
select: {
|
|
4
4
|
hiddenItemsText: string;
|
|
5
5
|
};
|
|
6
|
+
datepicker: {
|
|
7
|
+
placeholder: string;
|
|
8
|
+
};
|
|
9
|
+
timepicker: {
|
|
10
|
+
placeholder: {
|
|
11
|
+
full: string;
|
|
12
|
+
short: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
formatters: {
|
|
16
|
+
number: {
|
|
17
|
+
rounding: {
|
|
18
|
+
separator: string;
|
|
19
|
+
groupSeparator: string;
|
|
20
|
+
tenThousand: string;
|
|
21
|
+
oneHundredMillions: string;
|
|
22
|
+
trillion: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
input: {
|
|
27
|
+
number: {
|
|
28
|
+
groupSeparator: string[];
|
|
29
|
+
fractionSeparator: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
6
32
|
};
|
|
7
33
|
};
|
package/core/option/action.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export declare class KbqOptionActionComponent extends KbqOptionActionMixinBase i
|
|
|
40
40
|
onKeyDown($event: any): void;
|
|
41
41
|
private preventShowingTooltip;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptionActionComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptionActionComponent, "kbq-option-action", ["
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptionActionComponent, "kbq-option-action", ["kbqOptionAction"], { "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["customIcon"], ["[kbq-icon]"], false, never>;
|
|
44
44
|
}
|
|
@@ -12,5 +12,5 @@ export declare class KbqOptgroup extends KbqOptgroupMixinBase implements CanDisa
|
|
|
12
12
|
/** Unique id for the underlying label. */
|
|
13
13
|
labelId: string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptgroup, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptgroup, "kbq-optgroup", ["
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptgroup, "kbq-optgroup", ["kbqOptgroup"], { "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["kbq-option, kbq-list-option, kbq-timezone-option, ng-container"], false, never>;
|
|
16
16
|
}
|
package/core/option/option.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { KbqTitleTextRef } from '../title';
|
|
|
4
4
|
import { KbqOptgroup } from './optgroup';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/** Event object emitted by KbqOption when selected or deselected. */
|
|
7
|
-
export declare class KbqOptionSelectionChange {
|
|
8
|
-
source:
|
|
7
|
+
export declare class KbqOptionSelectionChange<T = KbqOption> {
|
|
8
|
+
source: T;
|
|
9
9
|
isUserInput: boolean;
|
|
10
|
-
constructor(source:
|
|
10
|
+
constructor(source: T, isUserInput?: boolean);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Describes a parent component that manages a list of options.
|
|
@@ -17,14 +17,45 @@ export declare class KbqOptionSelectionChange {
|
|
|
17
17
|
export interface KbqOptionParentComponent {
|
|
18
18
|
multiple?: boolean;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Handler that will update scroll position of elements inside overlay
|
|
22
|
+
*/
|
|
23
|
+
export interface KeyboardNavigationHandler {
|
|
24
|
+
/** Scrolls the active option into view. */
|
|
25
|
+
scrollActiveOptionIntoView(): void;
|
|
26
|
+
}
|
|
20
27
|
/**
|
|
21
28
|
* Injection token used to provide the parent component to options.
|
|
22
29
|
*/
|
|
23
30
|
export declare const KBQ_OPTION_PARENT_COMPONENT: InjectionToken<KbqOptionParentComponent>;
|
|
31
|
+
export declare abstract class KbqOptionBase {
|
|
32
|
+
value: any;
|
|
33
|
+
abstract get viewValue(): string;
|
|
34
|
+
abstract get disabled(): boolean;
|
|
35
|
+
abstract set disabled(value: any);
|
|
36
|
+
abstract readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<any>>;
|
|
37
|
+
abstract select(): void;
|
|
38
|
+
abstract deselect(): void;
|
|
39
|
+
/** Emits the selection change event. */
|
|
40
|
+
protected emitSelectionChangeEvent(isUserInput?: boolean): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class KbqVirtualOption extends KbqOptionBase {
|
|
43
|
+
value: any;
|
|
44
|
+
private _disabled;
|
|
45
|
+
get disabled(): any;
|
|
46
|
+
set disabled(value: any);
|
|
47
|
+
get selected(): boolean;
|
|
48
|
+
private _selected;
|
|
49
|
+
get viewValue(): string;
|
|
50
|
+
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<KbqVirtualOption>>;
|
|
51
|
+
constructor(value: any, _disabled?: boolean);
|
|
52
|
+
select(): void;
|
|
53
|
+
deselect(): void;
|
|
54
|
+
}
|
|
24
55
|
/**
|
|
25
56
|
* Single option inside of a `<kbq-select>` element.
|
|
26
57
|
*/
|
|
27
|
-
export declare class KbqOption implements AfterViewChecked, OnDestroy, KbqTitleTextRef {
|
|
58
|
+
export declare class KbqOption extends KbqOptionBase implements AfterViewChecked, OnDestroy, KbqTitleTextRef {
|
|
28
59
|
private readonly element;
|
|
29
60
|
private readonly changeDetectorRef;
|
|
30
61
|
private readonly parent;
|
|
@@ -36,7 +67,7 @@ export declare class KbqOption implements AfterViewChecked, OnDestroy, KbqTitleT
|
|
|
36
67
|
set showCheckbox(value: boolean | undefined);
|
|
37
68
|
private _showCheckbox;
|
|
38
69
|
/** Event emitted when the option is selected or deselected. */
|
|
39
|
-
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange
|
|
70
|
+
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<KbqOption>>;
|
|
40
71
|
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
41
72
|
readonly stateChanges: Subject<void>;
|
|
42
73
|
/**
|
|
@@ -92,10 +123,8 @@ export declare class KbqOption implements AfterViewChecked, OnDestroy, KbqTitleT
|
|
|
92
123
|
selectViaInteraction(): void;
|
|
93
124
|
getTabIndex(): string;
|
|
94
125
|
getHostElement(): HTMLElement;
|
|
95
|
-
/** Emits the selection change event. */
|
|
96
|
-
private emitSelectionChangeEvent;
|
|
97
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOption, [null, null, { optional: true; }, { optional: true; }]>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOption, "kbq-option", ["
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOption, "kbq-option", ["kbqOption"], { "value": { "alias": "value"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, ["*"], false, never>;
|
|
99
128
|
}
|
|
100
129
|
/**
|
|
101
130
|
* Counts the amount of option group labels that precede the specified option.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
1
|
+
import { ConnectionPositionPair, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
2
3
|
export declare const POSITION_MAP: {
|
|
3
4
|
[key: string]: ConnectionPositionPair;
|
|
4
5
|
};
|
|
@@ -32,3 +33,8 @@ export declare const POSITION_PRIORITY_STRATEGY: {
|
|
|
32
33
|
export declare const POSITION_TO_CSS_MAP: {
|
|
33
34
|
[key: string]: string;
|
|
34
35
|
};
|
|
36
|
+
export declare const KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER: <T>(token: InjectionToken<T>, factory: (overlay: Overlay) => () => ScrollStrategy) => {
|
|
37
|
+
provide: InjectionToken<T>;
|
|
38
|
+
deps: (typeof Overlay)[];
|
|
39
|
+
useFactory: (overlay: Overlay) => () => ScrollStrategy;
|
|
40
|
+
};
|
package/core/public-api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './selection/index';
|
|
|
16
16
|
export * from './locales/index';
|
|
17
17
|
export * from './title/index';
|
|
18
18
|
export * from './services/measure-scrollbar.service';
|
|
19
|
+
export * from './services/theme.service';
|
|
19
20
|
export * from './utils/index';
|
|
20
21
|
export * from './validation/index';
|
|
21
22
|
export * from './version';
|
|
@@ -14,10 +14,10 @@ export declare const SELECT_PANEL_VIEWPORT_PADDING = 8;
|
|
|
14
14
|
/** Injection token that determines the scroll handling while a select is open. */
|
|
15
15
|
export declare const KBQ_SELECT_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
16
16
|
/** @docs-private */
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function kbqSelectScrollStrategyProviderFactory(overlay: Overlay): () => RepositionScrollStrategy;
|
|
18
18
|
/** @docs-private */
|
|
19
19
|
export declare const KBQ_SELECT_SCROLL_STRATEGY_PROVIDER: {
|
|
20
20
|
provide: InjectionToken<() => ScrollStrategy>;
|
|
21
21
|
deps: (typeof Overlay)[];
|
|
22
|
-
useFactory: typeof
|
|
22
|
+
useFactory: typeof kbqSelectScrollStrategyProviderFactory;
|
|
23
23
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Renderer2, RendererFactory2 } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface KbqTheme {
|
|
5
|
+
name: string;
|
|
6
|
+
className: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const KbqDefaultThemes: KbqTheme[];
|
|
10
|
+
export declare class ThemeService<T extends KbqTheme | null = KbqTheme> {
|
|
11
|
+
private rendererFactory;
|
|
12
|
+
current: BehaviorSubject<T>;
|
|
13
|
+
themes: T[];
|
|
14
|
+
protected renderer: Renderer2;
|
|
15
|
+
protected subscription: Subscription;
|
|
16
|
+
constructor(rendererFactory: RendererFactory2);
|
|
17
|
+
setThemes(items: T[]): void;
|
|
18
|
+
setTheme(value: T | number): void;
|
|
19
|
+
getTheme(): T;
|
|
20
|
+
protected update: ([prev, current]: T[]) => void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService<any>, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService<any>>;
|
|
23
|
+
}
|
|
@@ -146,6 +146,30 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
&.kbq-disabled {
|
|
150
|
+
& .kbq-select__trigger {
|
|
151
|
+
@include vendor-prefixes.user-select(none);
|
|
152
|
+
|
|
153
|
+
cursor: default;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
%kbq-select-panel {
|
|
159
|
+
min-width: 100%; // prevents some animation twitching and test inconsistencies in IE11
|
|
160
|
+
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
|
|
163
|
+
border-radius: var(
|
|
164
|
+
--kbq-select-panel-size-border-radius, map.get($tokens, select-panel-size-border-radius)
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
// Override optgroup and option to scale based on font-size of the trigger.
|
|
168
|
+
.kbq-optgroup-label,
|
|
169
|
+
.kbq-option {
|
|
170
|
+
font-size: inherit;
|
|
171
|
+
}
|
|
172
|
+
|
|
149
173
|
.kbq-select__no-options-message {
|
|
150
174
|
display: flex;
|
|
151
175
|
flex-direction: row;
|
|
@@ -172,30 +196,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
172
196
|
style: solid;
|
|
173
197
|
}
|
|
174
198
|
}
|
|
175
|
-
|
|
176
|
-
&.kbq-disabled {
|
|
177
|
-
& .kbq-select__trigger {
|
|
178
|
-
@include vendor-prefixes.user-select(none);
|
|
179
|
-
|
|
180
|
-
cursor: default;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
%kbq-select-panel {
|
|
186
|
-
min-width: 100%; // prevents some animation twitching and test inconsistencies in IE11
|
|
187
|
-
|
|
188
|
-
overflow: hidden;
|
|
189
|
-
|
|
190
|
-
border-radius: var(
|
|
191
|
-
--kbq-select-panel-size-border-radius, map.get($tokens, select-panel-size-border-radius)
|
|
192
|
-
);
|
|
193
|
-
|
|
194
|
-
// Override optgroup and option to scale based on font-size of the trigger.
|
|
195
|
-
.kbq-optgroup-label,
|
|
196
|
-
.kbq-option {
|
|
197
|
-
font-size: inherit;
|
|
198
|
-
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
%kbq-select-content {
|
|
@@ -295,7 +295,8 @@
|
|
|
295
295
|
default: (
|
|
296
296
|
border: map-get($tokens, 'checkbox-#{$scheme}-theme-default-border'),
|
|
297
297
|
color: map-get($tokens, 'checkbox-#{$scheme}-theme-default-color'),
|
|
298
|
-
background: map-get($tokens, 'checkbox-#{$scheme}-theme-default-background')
|
|
298
|
+
background: map-get($tokens, 'checkbox-#{$scheme}-theme-default-background'),
|
|
299
|
+
caption: map-get($tokens, 'checkbox-#{$scheme}-theme-default-caption')
|
|
299
300
|
),
|
|
300
301
|
hover: (
|
|
301
302
|
border: map-get($tokens, 'checkbox-#{$scheme}-theme-states-hover-border'),
|
|
@@ -322,7 +323,8 @@
|
|
|
322
323
|
disabled: (
|
|
323
324
|
border: map-get($tokens, 'checkbox-#{$scheme}-theme-states-disabled-border'),
|
|
324
325
|
color: map-get($tokens, 'checkbox-#{$scheme}-theme-states-disabled-color'),
|
|
325
|
-
background: map-get($tokens, 'checkbox-#{$scheme}-theme-states-disabled-background')
|
|
326
|
+
background: map-get($tokens, 'checkbox-#{$scheme}-theme-states-disabled-background'),
|
|
327
|
+
caption: map-get($tokens, 'checkbox-#{$scheme}-theme-states-disabled-caption')
|
|
326
328
|
)
|
|
327
329
|
),
|
|
328
330
|
error: (
|
|
@@ -497,8 +499,8 @@
|
|
|
497
499
|
);
|
|
498
500
|
|
|
499
501
|
$dl: (
|
|
500
|
-
dt: map-get($tokens, 'description-list-#{$scheme}-
|
|
501
|
-
dd: map-get($tokens, 'description-list-#{$scheme}-
|
|
502
|
+
dt: map-get($tokens, 'description-list-#{$scheme}-term-color'),
|
|
503
|
+
dd: map-get($tokens, 'description-list-#{$scheme}-description-color')
|
|
502
504
|
);
|
|
503
505
|
|
|
504
506
|
$form-field: (
|
|
@@ -846,6 +848,7 @@
|
|
|
846
848
|
outer-circle-border: map-get($tokens, 'radio-#{$scheme}-theme-default-outer-circle-border'),
|
|
847
849
|
outer-circle-background: map-get($tokens, 'radio-#{$scheme}-theme-default-outer-circle-background'),
|
|
848
850
|
inner-circle-background: map-get($tokens, 'radio-#{$scheme}-theme-default-inner-circle-background'),
|
|
851
|
+
caption: map-get($tokens, 'radio-#{$scheme}-theme-default-caption')
|
|
849
852
|
),
|
|
850
853
|
|
|
851
854
|
hover: (
|
|
@@ -877,6 +880,17 @@
|
|
|
877
880
|
$tokens, 'radio-#{$scheme}-theme-states-checked-hover-inner-circle-background'
|
|
878
881
|
)
|
|
879
882
|
),
|
|
883
|
+
checked-disabled: (
|
|
884
|
+
outer-circle-border: map-get(
|
|
885
|
+
$tokens, 'radio-#{$scheme}-theme-states-checked-disabled-outer-circle-border'
|
|
886
|
+
),
|
|
887
|
+
outer-circle-background: map-get(
|
|
888
|
+
$tokens, 'radio-#{$scheme}-theme-states-checked-disabled-outer-circle-background'
|
|
889
|
+
),
|
|
890
|
+
inner-circle-background: map-get(
|
|
891
|
+
$tokens, 'radio-#{$scheme}-theme-states-checked-disabled-inner-circle-background'
|
|
892
|
+
)
|
|
893
|
+
),
|
|
880
894
|
focused: (
|
|
881
895
|
outer-circle-border: map-get($tokens, 'radio-#{$scheme}-theme-states-focused-outer-circle-border'),
|
|
882
896
|
outer-circle-background: map-get(
|
|
@@ -910,7 +924,8 @@
|
|
|
910
924
|
),
|
|
911
925
|
inner-circle-background: map-get(
|
|
912
926
|
$tokens, 'radio-#{$scheme}-theme-states-disabled-inner-circle-background'
|
|
913
|
-
)
|
|
927
|
+
),
|
|
928
|
+
caption: map-get($tokens, 'radio-#{$scheme}-theme-states-disabled-caption'),
|
|
914
929
|
)
|
|
915
930
|
),
|
|
916
931
|
error: (
|
|
@@ -949,6 +964,17 @@
|
|
|
949
964
|
$tokens, 'radio-#{$scheme}-error-states-checked-hover-inner-circle-background'
|
|
950
965
|
)
|
|
951
966
|
),
|
|
967
|
+
checked-disabled: (
|
|
968
|
+
outer-circle-border: map-get(
|
|
969
|
+
$tokens, 'radio-#{$scheme}-error-states-checked-disabled-outer-circle-border'
|
|
970
|
+
),
|
|
971
|
+
outer-circle-background: map-get(
|
|
972
|
+
$tokens, 'radio-#{$scheme}-error-states-checked-disabled-outer-circle-background'
|
|
973
|
+
),
|
|
974
|
+
inner-circle-background: map-get(
|
|
975
|
+
$tokens, 'radio-#{$scheme}-error-states-checked-disabled-inner-circle-background'
|
|
976
|
+
)
|
|
977
|
+
),
|
|
952
978
|
focused: (
|
|
953
979
|
outer-circle-border: map-get($tokens, 'radio-#{$scheme}-error-states-focused-outer-circle-border'),
|
|
954
980
|
outer-circle-background: map-get(
|
|
@@ -51,5 +51,5 @@ export declare class KbqCalendarBody implements OnChanges {
|
|
|
51
51
|
ngOnChanges(changes: SimpleChanges): void;
|
|
52
52
|
isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCalendarBody, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCalendarBody, "[kbq-calendar-body]", ["
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCalendarBody, "[kbq-calendar-body]", ["kbqCalendarBody"], { "rows": { "alias": "rows"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; "cellAspectRatio": { "alias": "cellAspectRatio"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, false, never>;
|
|
55
55
|
}
|
|
@@ -9,8 +9,14 @@ export declare class KbqCalendarHeader<D> implements AfterContentInit {
|
|
|
9
9
|
value: number;
|
|
10
10
|
}[];
|
|
11
11
|
selectedMonth: number;
|
|
12
|
-
years:
|
|
13
|
-
|
|
12
|
+
years: {
|
|
13
|
+
name: number;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
selectedYear: {
|
|
17
|
+
name: number;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
14
20
|
get activeDate(): D;
|
|
15
21
|
set activeDate(value: D);
|
|
16
22
|
private _activeDate;
|
|
@@ -41,5 +47,5 @@ export declare class KbqCalendarHeader<D> implements AfterContentInit {
|
|
|
41
47
|
private updateSelectedValues;
|
|
42
48
|
private updateYearsArray;
|
|
43
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCalendarHeader<any>, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCalendarHeader<any>, "kbq-calendar-header", ["
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCalendarHeader<any>, "kbq-calendar-header", ["kbqCalendarHeader"], { "activeDate": { "alias": "activeDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; }, { "activeDateChange": "activeDateChange"; "monthSelected": "monthSelected"; "yearSelected": "yearSelected"; }, never, never, false, never>;
|
|
45
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { DateAdapter
|
|
2
|
+
import { DateAdapter } from '@koobiq/components/core';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { KbqCalendarCellCssClasses } from './calendar-body.component';
|
|
5
5
|
import { KbqDatepickerIntl } from './datepicker-intl';
|
|
@@ -11,7 +11,6 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class KbqCalendar<D> implements AfterContentInit, OnDestroy, OnChanges {
|
|
13
13
|
private readonly adapter;
|
|
14
|
-
private readonly dateFormats;
|
|
15
14
|
private changeDetectorRef;
|
|
16
15
|
/** A date representing the period (month or year) to start the calendar in. */
|
|
17
16
|
get startAt(): D | null;
|
|
@@ -61,7 +60,7 @@ export declare class KbqCalendar<D> implements AfterContentInit, OnDestroy, OnCh
|
|
|
61
60
|
*/
|
|
62
61
|
stateChanges: Subject<void>;
|
|
63
62
|
private readonly intlChanges;
|
|
64
|
-
constructor(intl: KbqDatepickerIntl, adapter: DateAdapter<D>,
|
|
63
|
+
constructor(intl: KbqDatepickerIntl, adapter: DateAdapter<D>, changeDetectorRef: ChangeDetectorRef);
|
|
65
64
|
ngAfterContentInit(): void;
|
|
66
65
|
ngOnDestroy(): void;
|
|
67
66
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -76,6 +75,6 @@ export declare class KbqCalendar<D> implements AfterContentInit, OnDestroy, OnCh
|
|
|
76
75
|
*/
|
|
77
76
|
private getValidDateOrNull;
|
|
78
77
|
private getActiveDateDefault;
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCalendar<any>, [null, { optional: true; },
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCalendar<any>, "kbq-calendar", ["
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCalendar<any>, [null, { optional: true; }, null]>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCalendar<any>, "kbq-calendar", ["kbqCalendar"], { "startAt": { "alias": "startAt"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; }, { "selectedChange": "selectedChange"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "userSelection": "userSelection"; }, never, never, false, never>;
|
|
81
80
|
}
|
|
@@ -3,7 +3,7 @@ import { AnimationTriggerMetadata } from '@angular/animations';
|
|
|
3
3
|
* Animations used by the Koobiq datepicker.
|
|
4
4
|
* @docs-private
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const kbqDatepickerAnimations: {
|
|
7
7
|
readonly transformPanel: AnimationTriggerMetadata;
|
|
8
8
|
readonly fadeInCalendar: AnimationTriggerMetadata;
|
|
9
9
|
};
|
|
@@ -53,9 +53,9 @@ export declare class KbqDatepickerInput<D> implements KbqFormFieldControl<D>, Co
|
|
|
53
53
|
set required(value: boolean);
|
|
54
54
|
private _required;
|
|
55
55
|
/** The datepicker that this input is associated with. */
|
|
56
|
-
set
|
|
56
|
+
set kbqDatepicker(value: KbqDatepicker<D>);
|
|
57
57
|
/** Function that can be used to filter out dates within the datepicker. */
|
|
58
|
-
set
|
|
58
|
+
set kbqDatepickerFilter(value: (date: D | null) => boolean);
|
|
59
59
|
/** The value of the input. */
|
|
60
60
|
get value(): D | null;
|
|
61
61
|
set value(value: D | null);
|
|
@@ -75,7 +75,7 @@ export declare class KbqDatepickerInput<D> implements KbqFormFieldControl<D>, Co
|
|
|
75
75
|
get id(): string;
|
|
76
76
|
set id(value: string);
|
|
77
77
|
private _id;
|
|
78
|
-
set
|
|
78
|
+
set kbqValidationTooltip(tooltip: KbqWarningTooltipTrigger);
|
|
79
79
|
incorrectInput: EventEmitter<void>;
|
|
80
80
|
/** Emits when a `change` event is fired on this `<input>`. */
|
|
81
81
|
readonly dateChange: EventEmitter<KbqDatepickerInputEvent<D>>;
|
|
@@ -176,5 +176,5 @@ export declare class KbqDatepickerInput<D> implements KbqFormFieldControl<D>, Co
|
|
|
176
176
|
private createDateTime;
|
|
177
177
|
private correctCursorPosition;
|
|
178
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDatepickerInput<any>, [null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
179
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqDatepickerInput<any>, "input[
|
|
179
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqDatepickerInput<any>, "input[kbqDatepicker]", ["kbqDatepickerInput"], { "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "kbqDatepicker": { "alias": "kbqDatepicker"; "required": false; }; "kbqDatepickerFilter": { "alias": "kbqDatepickerFilter"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "kbqValidationTooltip": { "alias": "kbqValidationTooltip"; "required": false; }; }, { "incorrectInput": "incorrectInput"; "dateChange": "dateChange"; "dateInput": "dateInput"; }, never, never, false, never>;
|
|
180
180
|
}
|
|
@@ -3,10 +3,10 @@ import { KbqButton } from '@koobiq/components/button';
|
|
|
3
3
|
import { KbqDatepickerIntl } from './datepicker-intl';
|
|
4
4
|
import { KbqDatepicker } from './datepicker.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
/** Can be used to override the icon of a `
|
|
6
|
+
/** Can be used to override the icon of a `kbqDatepickerToggle`. */
|
|
7
7
|
export declare class KbqDatepickerToggleIcon {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDatepickerToggleIcon, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqDatepickerToggleIcon, "[
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqDatepickerToggleIcon, "[kbqDatepickerToggleIcon]", never, {}, {}, never, never, false, never>;
|
|
10
10
|
}
|
|
11
11
|
export declare class KbqDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
|
|
12
12
|
intl: KbqDatepickerIntl;
|
|
@@ -31,5 +31,5 @@ export declare class KbqDatepickerToggle<D> implements AfterContentInit, OnChang
|
|
|
31
31
|
open(event: Event): void;
|
|
32
32
|
private watchStateChanges;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDatepickerToggle<any>, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqDatepickerToggle<any>, "kbq-datepicker-toggle", ["
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqDatepickerToggle<any>, "kbq-datepicker-toggle", ["kbqDatepickerToggle"], { "disabled": { "alias": "disabled"; "required": false; }; "datepicker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["customIcon"], ["[kbqDatepickerToggleIcon]"], false, never>;
|
|
35
35
|
}
|
|
@@ -40,7 +40,7 @@ export declare class KbqDatepickerContent<D> implements OnDestroy {
|
|
|
40
40
|
ngOnDestroy(): void;
|
|
41
41
|
startExitAnimation(): void;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDatepickerContent<any>, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqDatepickerContent<any>, "kbq-datepicker__content", ["
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqDatepickerContent<any>, "kbq-datepicker__content", ["kbqDatepickerContent"], {}, {}, never, never, false, never>;
|
|
44
44
|
}
|
|
45
45
|
/** Component responsible for managing the datepicker popup/dialog. */
|
|
46
46
|
export declare class KbqDatepicker<D> implements OnDestroy {
|
|
@@ -144,5 +144,5 @@ export declare class KbqDatepicker<D> implements OnDestroy {
|
|
|
144
144
|
/** Create the popup PositionStrategy. */
|
|
145
145
|
private createPopupPositionStrategy;
|
|
146
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDatepicker<any>, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
147
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqDatepicker<any>, "kbq-datepicker", ["
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqDatepicker<any>, "kbq-datepicker", ["kbqDatepicker"], { "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "openedStream": "opened"; "closedStream": "closed"; }, never, never, false, never>;
|
|
148
148
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { DateAdapter
|
|
2
|
+
import { DateAdapter } from '@koobiq/components/core';
|
|
3
3
|
import { KbqCalendarBody, KbqCalendarCell, KbqCalendarCellCssClasses } from './calendar-body.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -8,7 +8,6 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class KbqMonthView<D> implements AfterContentInit {
|
|
10
10
|
private changeDetectorRef;
|
|
11
|
-
private readonly dateFormats;
|
|
12
11
|
adapter: DateAdapter<D>;
|
|
13
12
|
/**
|
|
14
13
|
* The date to display in this month view (everything other than the month and year is ignored).
|
|
@@ -35,7 +34,7 @@ export declare class KbqMonthView<D> implements AfterContentInit {
|
|
|
35
34
|
/** Emits when any date is activated. */
|
|
36
35
|
readonly activeDateChange: EventEmitter<D>;
|
|
37
36
|
/** The body of calendar table */
|
|
38
|
-
|
|
37
|
+
kbqCalendarBody: KbqCalendarBody;
|
|
39
38
|
/** Grid of calendar cells representing the dates of the month. */
|
|
40
39
|
weeks: KbqCalendarCell[][];
|
|
41
40
|
/** The number of blank cells in the first row before the 1st of the month. */
|
|
@@ -52,7 +51,7 @@ export declare class KbqMonthView<D> implements AfterContentInit {
|
|
|
52
51
|
long: string;
|
|
53
52
|
narrow: string;
|
|
54
53
|
}[];
|
|
55
|
-
constructor(changeDetectorRef: ChangeDetectorRef,
|
|
54
|
+
constructor(changeDetectorRef: ChangeDetectorRef, adapter: DateAdapter<D>);
|
|
56
55
|
ngAfterContentInit(): void;
|
|
57
56
|
/** Handles when a new date is selected. */
|
|
58
57
|
dateSelected(date: number): void;
|
|
@@ -69,6 +68,6 @@ export declare class KbqMonthView<D> implements AfterContentInit {
|
|
|
69
68
|
private getDateInCurrentMonth;
|
|
70
69
|
/** Checks whether the 2 dates are non-null and fall within the same month of the same year. */
|
|
71
70
|
private hasSameMonthAndYear;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqMonthView<any>, [null, { optional: true; }
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqMonthView<any>, "kbq-month-view", ["
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqMonthView<any>, [null, { optional: true; }]>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqMonthView<any>, "kbq-month-view", ["kbqMonthView"], { "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; }, { "selectedChange": "selectedChange"; "userSelection": "userSelection"; "activeDateChange": "activeDateChange"; }, never, never, false, never>;
|
|
74
73
|
}
|