@koobiq/components 18.20.0 → 18.22.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/badge/badge.component.d.ts +0 -1
- package/breadcrumbs/breadcrumbs-tokens.scss +1 -0
- package/breadcrumbs/breadcrumbs.d.ts +27 -19
- package/breadcrumbs/breadcrumbs.scss +81 -18
- package/breadcrumbs/breadcrumbs.types.d.ts +22 -0
- package/breadcrumbs/public-api.d.ts +1 -0
- package/button/button-tokens.scss +1 -1
- package/button/button.component.d.ts +11 -16
- package/button/button.scss +2 -15
- package/checkbox/checkbox-tokens.scss +2 -0
- package/checkbox/checkbox.d.ts +13 -18
- package/checkbox/checkbox.scss +4 -4
- package/core/common-behaviors/color.d.ts +11 -0
- package/core/common-behaviors/index.d.ts +1 -1
- package/core/formatters/date/formatter.d.ts +3 -2
- package/core/locales/locale-service.d.ts +5 -1
- package/core/option/action.d.ts +5 -7
- package/core/option/optgroup.d.ts +6 -7
- package/core/pop-up/pop-up-trigger.d.ts +2 -2
- package/core/pop-up/pop-up.d.ts +8 -2
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -12
- package/core/styles/theming/scrollbar-tokens.scss +10 -4
- package/core/utils/utils.d.ts +3 -0
- package/dropdown/dropdown-item.component.d.ts +6 -8
- package/dropdown/dropdown.scss +20 -5
- package/empty-state/_empty-state-theme.scss +15 -5
- package/empty-state/empty-state-tokens.scss +12 -2
- package/empty-state/empty-state.component.d.ts +7 -2
- package/empty-state/empty-state.scss +29 -0
- package/esm2022/accordion/accordion-trigger.component.mjs +1 -1
- package/esm2022/actions-panel/actions-panel-container.mjs +2 -2
- package/esm2022/badge/badge.component.mjs +2 -5
- package/esm2022/breadcrumbs/breadcrumbs.mjs +68 -24
- package/esm2022/breadcrumbs/breadcrumbs.types.mjs +2 -0
- package/esm2022/breadcrumbs/public-api.mjs +2 -1
- package/esm2022/button/button.component.mjs +25 -29
- package/esm2022/button-toggle/button-toggle.component.mjs +4 -3
- package/esm2022/checkbox/checkbox.mjs +23 -24
- package/esm2022/code-block/code-block.mjs +2 -2
- package/esm2022/core/common-behaviors/color.mjs +35 -1
- package/esm2022/core/common-behaviors/disabled.mjs +2 -1
- package/esm2022/core/common-behaviors/error-state.mjs +2 -1
- package/esm2022/core/common-behaviors/index.mjs +2 -2
- package/esm2022/core/common-behaviors/tabindex.mjs +2 -1
- package/esm2022/core/formatters/date/formatter.mjs +13 -4
- package/esm2022/core/locales/en-US.mjs +29 -29
- package/esm2022/core/locales/es-LA.mjs +29 -29
- package/esm2022/core/locales/fa-IR.mjs +29 -29
- package/esm2022/core/locales/locale-service.mjs +38 -3
- package/esm2022/core/locales/pt-BR.mjs +29 -29
- package/esm2022/core/locales/tk-TM.mjs +29 -29
- package/esm2022/core/locales/zh-CN.mjs +29 -29
- package/esm2022/core/option/action.mjs +17 -12
- package/esm2022/core/option/optgroup.mjs +18 -12
- package/esm2022/core/option/option.mjs +1 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +8 -8
- package/esm2022/core/pop-up/pop-up.mjs +21 -5
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +10 -19
- package/esm2022/core/utils/utils.mjs +7 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/datepicker/datepicker-toggle.component.mjs +1 -1
- package/esm2022/dropdown/dropdown-item.component.mjs +19 -14
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/empty-state/empty-state.component.mjs +13 -8
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/filter-bar/filter-bar.mjs +3 -3
- package/esm2022/filter-bar/filter-refresher.mjs +2 -2
- package/esm2022/filter-bar/filter-reset.mjs +1 -1
- package/esm2022/filter-bar/filter-search.mjs +2 -2
- package/esm2022/filter-bar/filters.mjs +2 -2
- package/esm2022/filter-bar/pipe-add.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-button.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-date.mjs +37 -22
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +38 -23
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-text.mjs +4 -4
- package/esm2022/form-field/cleaner.mjs +1 -1
- package/esm2022/form-field/form-field.mjs +13 -22
- package/esm2022/form-field/hint.mjs +10 -18
- package/esm2022/form-field/password-hint.mjs +7 -7
- package/esm2022/form-field/password-toggle.mjs +1 -1
- package/esm2022/form-field/stepper.mjs +1 -1
- package/esm2022/form-field/validate.directive.mjs +19 -9
- package/esm2022/icon/icon-button.component.mjs +13 -21
- package/esm2022/icon/icon-item.component.mjs +8 -15
- package/esm2022/icon/icon.component.mjs +15 -27
- package/esm2022/input/input-number.mjs +2 -2
- package/esm2022/input/input-password.mjs +20 -5
- package/esm2022/input/input.mjs +21 -22
- package/esm2022/link/link.component.mjs +46 -14
- package/esm2022/list/list-selection.component.mjs +19 -15
- package/esm2022/loader-overlay/loader-overlay.component.mjs +14 -9
- package/esm2022/modal/modal.component.mjs +1 -1
- package/esm2022/modal/modal.directive.mjs +1 -1
- package/esm2022/navbar/navbar-item.component.mjs +8 -11
- package/esm2022/overflow-items/overflow-items.mjs +24 -3
- package/esm2022/popover/popover-confirm.component.mjs +2 -2
- package/esm2022/popover/popover.component.mjs +5 -4
- package/esm2022/progress-bar/progress-bar.component.mjs +14 -21
- package/esm2022/progress-spinner/progress-spinner.component.mjs +18 -25
- package/esm2022/radio/radio.component.mjs +25 -35
- package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +56 -37
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +17 -6
- package/esm2022/tabs/paginated-tab-header.mjs +7 -4
- package/esm2022/tabs/tab-group.component.mjs +23 -19
- package/esm2022/tabs/tab-header.component.mjs +3 -3
- package/esm2022/tabs/tab-label-wrapper.directive.mjs +16 -13
- package/esm2022/tabs/tab-nav-bar.mjs +2 -2
- package/esm2022/tabs/tab.component.mjs +17 -12
- package/esm2022/tags/tag-list.component.mjs +27 -22
- package/esm2022/tags/tag.component.mjs +7 -14
- package/esm2022/textarea/textarea.component.mjs +53 -28
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +2 -2
- package/esm2022/toggle/toggle.component.mjs +20 -19
- package/esm2022/top-bar/top-bar.mjs +2 -2
- package/esm2022/tree/toggle.mjs +19 -14
- package/esm2022/tree/tree-option.component.mjs +1 -1
- package/esm2022/tree/tree-selection.component.mjs +1 -1
- package/esm2022/tree-select/tree-select.component.mjs +58 -38
- package/fesm2022/koobiq-components-accordion.mjs +1 -1
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -5
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +68 -24
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +3 -3
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +25 -29
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +23 -24
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +1 -1
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1246 -1143
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +20 -15
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +12 -7
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +2 -2
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +86 -56
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +41 -49
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +33 -57
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +41 -26
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +46 -14
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +19 -15
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +13 -8
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +7 -10
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +24 -3
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +5 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +13 -20
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +17 -24
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +25 -35
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +56 -37
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +18 -7
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +60 -44
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +32 -34
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +53 -28
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +1 -1
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +20 -19
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +2 -2
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +57 -37
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +21 -15
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +2 -2
- package/file-upload/single-file-upload.component.d.ts +2 -2
- package/filter-bar/filter-bar.scss +1 -0
- package/filter-bar/pipes/pipe-date.d.ts +3 -1
- package/filter-bar/pipes/pipe-date.scss +7 -0
- package/filter-bar/pipes/pipe-datetime.d.ts +3 -1
- package/form-field/_form-field-theme.scss +7 -3
- package/form-field/form-field.d.ts +4 -12
- package/form-field/hint.d.ts +3 -12
- package/form-field/password-hint.d.ts +3 -3
- package/form-field/validate.directive.d.ts +4 -2
- package/icon/icon-button.component.d.ts +5 -8
- package/icon/icon-item.component.d.ts +3 -7
- package/icon/icon.component.d.ts +7 -14
- package/input/input-password.d.ts +8 -2
- package/input/input.d.ts +9 -18
- package/link/_link-theme.scss +23 -24
- package/link/link.component.d.ts +13 -9
- package/list/list-selection.component.d.ts +8 -10
- package/loader-overlay/_loader-overlay-theme.scss +18 -8
- package/loader-overlay/loader-overlay-tokens.scss +6 -3
- package/loader-overlay/loader-overlay.component.d.ts +7 -2
- package/loader-overlay/loader-overlay.scss +19 -5
- package/navbar/navbar-item.component.d.ts +1 -2
- package/overflow-items/overflow-items.d.ts +17 -1
- package/package.json +5 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/progress-bar.component.d.ts +4 -12
- package/progress-spinner/progress-spinner.component.d.ts +4 -12
- package/progress-spinner/progress-spinner.scss +10 -4
- package/radio/radio.component.d.ts +11 -25
- package/schematics/collection.json +10 -0
- package/schematics/migrations/css-selectors/README.md +19 -0
- package/schematics/migrations/deprecated-icons/README.md +21 -0
- package/schematics/migrations/empty-state-size-attr/README.md +62 -0
- package/schematics/migrations/empty-state-size-attr/index.js +74 -0
- package/schematics/migrations/empty-state-size-attr/schema.json +15 -0
- package/schematics/migrations/loader-overlay-size-attr/README.md +62 -0
- package/schematics/migrations/loader-overlay-size-attr/index.js +74 -0
- package/schematics/migrations/loader-overlay-size-attr/schema.json +15 -0
- package/schematics/migrations/new-icons-pack/README.md +21 -0
- package/schematics/ng-add/index.js +3 -3
- package/schematics/utils/angular-parsing.js +153 -0
- package/schematics/utils/ast.js +28 -0
- package/schematics/utils/package-config.js +46 -0
- package/schematics/utils/typescript.js +171 -0
- package/scrollbar/scrollbar-tokens.scss +10 -4
- package/select/_select-theme.scss +4 -1
- package/select/select.component.d.ts +26 -25
- package/sidepanel/sidepanel-directives.d.ts +6 -1
- package/sidepanel/sidepanel.scss +9 -3
- package/tabs/paginated-tab-header.d.ts +2 -1
- package/tabs/tab-group.component.d.ts +11 -13
- package/tabs/tab-header.component.d.ts +1 -1
- package/tabs/tab-label-wrapper.directive.d.ts +6 -8
- package/tabs/tab.component.d.ts +7 -8
- package/tags/tag-list.component.d.ts +15 -18
- package/tags/tag.component.d.ts +3 -10
- package/textarea/textarea.component.d.ts +24 -20
- package/textarea/textarea.scss +4 -0
- package/toggle/toggle.component.d.ts +8 -12
- package/top-bar/top-bar-tokens.scss +2 -2
- package/top-bar/top-bar.scss +1 -1
- package/tree/toggle.d.ts +7 -9
- package/tree/tree-selection.component.d.ts +2 -2
- package/tree-select/_tree-select-theme.scss +4 -1
- package/tree-select/tree-select.component.d.ts +24 -26
|
@@ -17,7 +17,6 @@ export declare class KbqBadgeCaption {
|
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBadgeCaption, never>;
|
|
18
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqBadgeCaption, "[kbq-badge-caption]", never, {}, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
20
|
-
export declare const getNodesWithoutComments: (nodes: NodeList) => Node[];
|
|
21
20
|
export declare const leftIconClassName = "kbq-icon_left";
|
|
22
21
|
export declare const rightIconClassName = "kbq-icon_right";
|
|
23
22
|
export declare const badgeLeftIconClassName = "kbq-badge-icon_left";
|
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
--kbq-breadcrumb-expand-icon-color: var(--kbq-icon-contrast-fade);
|
|
6
6
|
--kbq-breadcrumb-item-border-radius: var(--kbq-size-xs);
|
|
7
7
|
--kbq-breadcrumb-item-icon-color: var(--kbq-icon-contrast-fade);
|
|
8
|
+
--kbq-breadcrumb-item-negative-margin: calc(-1 * var(--kbq-size-xs));
|
|
8
9
|
--kbq-breadcrumbs-gap: 0;
|
|
9
10
|
}
|
|
@@ -2,21 +2,13 @@ import { AfterContentInit, InjectionToken, OnInit, Provider, QueryList, Template
|
|
|
2
2
|
import { RouterLink } from '@angular/router';
|
|
3
3
|
import { KbqButtonStyles } from '@koobiq/components/button';
|
|
4
4
|
import { KbqComponentColors, KbqDefaultSizes, PopUpPlacements } from '@koobiq/components/core';
|
|
5
|
+
import { KbqBreadcrumbsConfiguration, KbqBreadcrumbsWrapMode } from './breadcrumbs.types';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
import * as i1 from "@radix-ng/primitives/roving-focus";
|
|
7
|
-
export type KbqBreadcrumbsConfiguration = {
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the maximum number of breadcrumb items to display.
|
|
10
|
-
* - If a number is provided, only that many items will be shown.
|
|
11
|
-
* - If `null`, no limit is applied, and all breadcrumb items are displayed.
|
|
12
|
-
*/
|
|
13
|
-
max: number | null;
|
|
14
|
-
size: KbqDefaultSizes;
|
|
15
|
-
};
|
|
16
8
|
/** Breadcrumbs options global configuration provider. */
|
|
17
9
|
export declare const KBQ_BREADCRUMBS_CONFIGURATION: InjectionToken<KbqBreadcrumbsConfiguration>;
|
|
18
10
|
/** Utility provider for `KBQ_BREADCRUMBS_CONFIGURATION`. */
|
|
19
|
-
export declare const
|
|
11
|
+
export declare const kbqBreadcrumbsConfigurationProvider: (configuration: Partial<KbqBreadcrumbsConfiguration>) => Provider;
|
|
20
12
|
export declare class KbqBreadcrumbsSeparator {
|
|
21
13
|
readonly templateRef: TemplateRef<any>;
|
|
22
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBreadcrumbsSeparator, never>;
|
|
@@ -77,6 +69,12 @@ export declare class KbqBreadcrumbItem {
|
|
|
77
69
|
}
|
|
78
70
|
export declare class KbqBreadcrumbs implements AfterContentInit {
|
|
79
71
|
protected readonly configuration: KbqBreadcrumbsConfiguration;
|
|
72
|
+
/**
|
|
73
|
+
* Determines if a negative margin should be applied to the first breadcrumb item.
|
|
74
|
+
*
|
|
75
|
+
* @see KbqBreadcrumbsConfiguration
|
|
76
|
+
*/
|
|
77
|
+
firstItemNegativeMargin: boolean;
|
|
80
78
|
/**
|
|
81
79
|
* Size of the breadcrumbs. Affects font size.
|
|
82
80
|
* Default value is taken from the global configuration.
|
|
@@ -93,25 +91,35 @@ export declare class KbqBreadcrumbs implements AfterContentInit {
|
|
|
93
91
|
* When disabled, user interactions are blocked.
|
|
94
92
|
*/
|
|
95
93
|
disabled: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Wrapping behavior of the breadcrumb items.
|
|
96
|
+
*/
|
|
97
|
+
wrapMode: KbqBreadcrumbsWrapMode;
|
|
96
98
|
protected readonly separator?: TemplateRef<any>;
|
|
97
99
|
protected readonly items: QueryList<KbqBreadcrumbItem>;
|
|
100
|
+
private readonly result;
|
|
101
|
+
private readonly overflowItems;
|
|
98
102
|
/**
|
|
99
103
|
* Ensures at least minimum number of breadcrumb items are shown.
|
|
100
|
-
*
|
|
101
|
-
* This prevents the appearance of unnecessary expand button that would hide only a single breadcrumb.
|
|
102
104
|
*/
|
|
103
|
-
readonly minVisibleItems = 2;
|
|
104
|
-
private readonly destroyRef;
|
|
105
|
-
private readonly cdr;
|
|
105
|
+
protected readonly minVisibleItems = 2;
|
|
106
106
|
protected readonly KbqComponentColors: typeof KbqComponentColors;
|
|
107
107
|
protected readonly KbqButtonStyles: typeof KbqButtonStyles;
|
|
108
108
|
protected readonly PopUpPlacements: typeof PopUpPlacements;
|
|
109
|
+
private readonly cdr;
|
|
110
|
+
private readonly destroyRef;
|
|
109
111
|
/** @docs-private */
|
|
110
|
-
protected get
|
|
111
|
-
/**
|
|
112
|
-
|
|
112
|
+
protected get itemsExcludingEdges(): KbqBreadcrumbItem[];
|
|
113
|
+
/**
|
|
114
|
+
* Calculates the total width of visible items based on the `max` value and overflow items.
|
|
115
|
+
* @returns {number | null} The computed max width for overflow items or null if conditions are not met.
|
|
116
|
+
* @docs-private
|
|
117
|
+
*/
|
|
118
|
+
protected get maxWidth(): number | null;
|
|
113
119
|
ngAfterContentInit(): void;
|
|
120
|
+
private getItemWidth;
|
|
114
121
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBreadcrumbs, never>;
|
|
115
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqBreadcrumbs, "kbq-breadcrumbs,[kbq-breadcrumbs]", never, { "size": { "alias": "size"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["separator", "items"], never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: {}; outputs: {}; }]>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqBreadcrumbs, "kbq-breadcrumbs,[kbq-breadcrumbs]", never, { "firstItemNegativeMargin": { "alias": "firstItemNegativeMargin"; "required": false; }; "size": { "alias": "size"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "wrapMode": { "alias": "wrapMode"; "required": false; }; }, {}, ["separator", "items"], never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: {}; outputs: {}; }]>;
|
|
123
|
+
static ngAcceptInputType_firstItemNegativeMargin: unknown;
|
|
116
124
|
static ngAcceptInputType_disabled: unknown;
|
|
117
125
|
}
|
|
@@ -1,10 +1,63 @@
|
|
|
1
1
|
@use '../core/styles/common/tokens';
|
|
2
2
|
@use '../core/styles/common/vendor-prefixes';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
@mixin _kbq-breadcrumbs-geometry {
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
gap: var(--kbq-breadcrumbs-gap);
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
|
|
11
|
+
.kbq-overflow-items {
|
|
12
|
+
// add space not to cut focus outline
|
|
13
|
+
padding: 1px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.kbq-breadcrumb-item__container {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.kbq-breadcrumbs_first-item-negative-margin {
|
|
22
|
+
.kbq-overflow-items {
|
|
23
|
+
margin-left: var(--kbq-breadcrumb-item-negative-margin);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.kbq-breadcrumbs_wrap {
|
|
28
|
+
flex-wrap: wrap;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.kbq-breadcrumbs_compact {
|
|
32
|
+
.kbq-breadcrumb-item {
|
|
33
|
+
&.kbq-button,
|
|
34
|
+
&.kbq-button-icon {
|
|
35
|
+
--kbq-breadcrumb-item-height: var(--kbq-size-xxl);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.kbq-breadcrumb__expand {
|
|
40
|
+
&.kbq-button-icon {
|
|
41
|
+
--kbq-breadcrumb-item-expand-horizontal-padding: var(--kbq-size-xxs);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.kbq-breadcrumbs_normal {
|
|
47
|
+
.kbq-breadcrumb-item {
|
|
48
|
+
&.kbq-button,
|
|
49
|
+
&.kbq-button-icon {
|
|
50
|
+
--kbq-button-size-horizontal-padding: var(--kbq-breadcrumb-item-horizontal-padding);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.kbq-breadcrumbs_big {
|
|
56
|
+
.kbq-button,
|
|
57
|
+
.kbq-button-icon {
|
|
58
|
+
--kbq-button-size-height: var(--kbq-breadcrumb-item-height);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
8
61
|
|
|
9
62
|
.kbq-breadcrumb-item {
|
|
10
63
|
&.kbq-button,
|
|
@@ -12,6 +65,20 @@
|
|
|
12
65
|
--kbq-button-size-height: var(--kbq-breadcrumb-item-height);
|
|
13
66
|
--kbq-button-size-horizontal-padding: var(--kbq-breadcrumb-item-horizontal-padding);
|
|
14
67
|
--kbq-button-size-border-radius: var(--kbq-breadcrumb-item-border-radius);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.kbq-breadcrumb__expand {
|
|
72
|
+
&.kbq-button-icon {
|
|
73
|
+
--kbq-button-icon-size-horizontal-padding: var(--kbq-breadcrumb-item-expand-horizontal-padding);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin _kbq-breadcrumbs-theme {
|
|
79
|
+
.kbq-breadcrumb-item {
|
|
80
|
+
&.kbq-button,
|
|
81
|
+
&.kbq-button-icon {
|
|
15
82
|
--kbq-button-transparent-contrast-fade-on-foreground: var(--kbq-foreground-contrast-secondary);
|
|
16
83
|
--kbq-button-transparent-contrast-fade-on-right-icon: var(--kbq-breadcrumb-item-icon-color);
|
|
17
84
|
--kbq-button-transparent-contrast-fade-on-left-icon: var(--kbq-breadcrumb-item-icon-color);
|
|
@@ -65,7 +132,6 @@
|
|
|
65
132
|
|
|
66
133
|
.kbq-breadcrumb__expand {
|
|
67
134
|
&.kbq-button-icon {
|
|
68
|
-
--kbq-button-icon-size-horizontal-padding: var(--kbq-breadcrumb-item-expand-horizontal-padding);
|
|
69
135
|
--kbq-button-transparent-contrast-fade-on-left-icon: var(--kbq-breadcrumb-expand-icon-color);
|
|
70
136
|
|
|
71
137
|
.kbq-icon {
|
|
@@ -101,35 +167,22 @@
|
|
|
101
167
|
|
|
102
168
|
color: var(--kbq-foreground-contrast);
|
|
103
169
|
}
|
|
170
|
+
}
|
|
104
171
|
|
|
105
|
-
|
|
106
|
-
.kbq-breadcrumb__separator {
|
|
107
|
-
@include vendor-prefixes.user-select(none);
|
|
108
|
-
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-big);
|
|
109
|
-
}
|
|
110
|
-
|
|
172
|
+
@mixin _kbq-breadcrumbs-typography {
|
|
111
173
|
&.kbq-breadcrumbs_compact {
|
|
112
174
|
.kbq-breadcrumb-item {
|
|
113
175
|
&.kbq-button,
|
|
114
176
|
&.kbq-button-icon {
|
|
115
|
-
--kbq-breadcrumb-item-height: var(--kbq-size-xxl);
|
|
116
177
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
117
178
|
}
|
|
118
179
|
}
|
|
119
|
-
|
|
120
|
-
.kbq-breadcrumb__expand {
|
|
121
|
-
&.kbq-button-icon {
|
|
122
|
-
--kbq-breadcrumb-item-expand-horizontal-padding: var(--kbq-size-xxs);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
180
|
}
|
|
126
181
|
|
|
127
182
|
&.kbq-breadcrumbs_normal {
|
|
128
183
|
.kbq-breadcrumb-item {
|
|
129
184
|
&.kbq-button,
|
|
130
185
|
&.kbq-button-icon {
|
|
131
|
-
--kbq-button-size-horizontal-padding: var(--kbq-breadcrumb-item-horizontal-padding);
|
|
132
|
-
|
|
133
186
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-big);
|
|
134
187
|
}
|
|
135
188
|
}
|
|
@@ -138,10 +191,20 @@
|
|
|
138
191
|
&.kbq-breadcrumbs_big {
|
|
139
192
|
.kbq-button,
|
|
140
193
|
.kbq-button-icon {
|
|
141
|
-
--kbq-button-size-height: var(--kbq-breadcrumb-item-height);
|
|
142
194
|
@include tokens.kbq-typography-level-to-styles-css-variables(typography, subheading);
|
|
143
195
|
}
|
|
144
196
|
}
|
|
197
|
+
|
|
198
|
+
.kbq-breadcrumb__separator {
|
|
199
|
+
@include vendor-prefixes.user-select(none);
|
|
200
|
+
@include tokens.kbq-typography-level-to-styles-css-variables(typography, text-big);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.kbq-breadcrumbs {
|
|
205
|
+
@include _kbq-breadcrumbs-geometry();
|
|
206
|
+
@include _kbq-breadcrumbs-theme();
|
|
207
|
+
@include _kbq-breadcrumbs-typography();
|
|
145
208
|
}
|
|
146
209
|
|
|
147
210
|
.kbq-breadcrumb-item__link-behavior {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { KbqDefaultSizes } from '@koobiq/components/core';
|
|
2
|
+
export type KbqBreadcrumbsWrapMode = 'auto' | 'wrap' | 'none';
|
|
3
|
+
export type KbqBreadcrumbsConfiguration = {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies the maximum number of breadcrumb items to display.
|
|
6
|
+
* - If a number is provided, only that many items will be shown.
|
|
7
|
+
* - If `null`, no limit is applied, and all breadcrumb items are displayed.
|
|
8
|
+
*/
|
|
9
|
+
max: number | null;
|
|
10
|
+
size: KbqDefaultSizes;
|
|
11
|
+
/**
|
|
12
|
+
* Determines if a negative margin should be applied to the first breadcrumb item.
|
|
13
|
+
*/
|
|
14
|
+
firstItemNegativeMargin: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Manages breadcrumb items when space is limited:
|
|
17
|
+
* - `auto`: Adjusts based on space and item count.
|
|
18
|
+
* - `wrap`: Moves items to the next line if needed.
|
|
19
|
+
* - `none`: Prevents wrapping, allowing overflow.
|
|
20
|
+
*/
|
|
21
|
+
wrapMode: KbqBreadcrumbsWrapMode;
|
|
22
|
+
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--kbq-button-size-border-width: var(--kbq-size-border-width);
|
|
5
5
|
--kbq-button-size-border-radius: var(--kbq-size-border-radius);
|
|
6
6
|
--kbq-button-size-horizontal-padding: var(--kbq-size-m);
|
|
7
|
-
--kbq-button-size-content-padding: var(--kbq-size-
|
|
7
|
+
--kbq-button-size-content-padding: var(--kbq-size-xs);
|
|
8
8
|
--kbq-button-icon-size-horizontal-padding: var(--kbq-size-s);
|
|
9
9
|
--kbq-button-icon-size-vertical-padding: var(--kbq-size-s);
|
|
10
10
|
--kbq-button-icon-size-content-padding: var(--kbq-size-xxs);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
2
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, QueryList, Renderer2 } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { KbqColorDirective, KbqTitleTextRef } from '@koobiq/components/core';
|
|
4
4
|
import { KbqIcon } from '@koobiq/components/icon';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare enum KbqButtonStyles {
|
|
@@ -8,11 +8,8 @@ export declare enum KbqButtonStyles {
|
|
|
8
8
|
Outline = "outline",
|
|
9
9
|
Transparent = "transparent"
|
|
10
10
|
}
|
|
11
|
-
export declare const leftIconClassName = "kbq-icon_left";
|
|
12
|
-
export declare const rightIconClassName = "kbq-icon_right";
|
|
13
11
|
export declare const buttonLeftIconClassName = "kbq-button-icon_left";
|
|
14
12
|
export declare const buttonRightIconClassName = "kbq-button-icon_right";
|
|
15
|
-
export declare const getNodesWithoutComments: (nodes: NodeList) => Node[];
|
|
16
13
|
export declare class KbqButtonCssStyler implements AfterContentInit {
|
|
17
14
|
private renderer;
|
|
18
15
|
private cdr;
|
|
@@ -25,14 +22,7 @@ export declare class KbqButtonCssStyler implements AfterContentInit {
|
|
|
25
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqButtonCssStyler, [null, null, { skipSelf: true; }]>;
|
|
26
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqButtonCssStyler, "[kbq-button]", never, {}, {}, ["icons"], never, false, never>;
|
|
27
24
|
}
|
|
28
|
-
|
|
29
|
-
export declare class KbqButtonBase {
|
|
30
|
-
elementRef: ElementRef;
|
|
31
|
-
constructor(elementRef: ElementRef);
|
|
32
|
-
}
|
|
33
|
-
/** @docs-private */
|
|
34
|
-
export declare const KbqButtonMixinBase: HasTabIndexCtor & CanColorCtor & typeof KbqButtonBase;
|
|
35
|
-
export declare class KbqButton extends KbqButtonMixinBase implements OnDestroy, AfterViewInit, CanDisable, CanColor, KbqTitleTextRef {
|
|
25
|
+
export declare class KbqButton extends KbqColorDirective implements OnDestroy, AfterViewInit, KbqTitleTextRef {
|
|
36
26
|
private focusMonitor;
|
|
37
27
|
private styler;
|
|
38
28
|
hasFocus: boolean;
|
|
@@ -40,10 +30,13 @@ export declare class KbqButton extends KbqButtonMixinBase implements OnDestroy,
|
|
|
40
30
|
get kbqStyle(): string;
|
|
41
31
|
set kbqStyle(value: string | KbqButtonStyles);
|
|
42
32
|
private _kbqStyle;
|
|
43
|
-
get disabled():
|
|
44
|
-
set disabled(value:
|
|
33
|
+
get disabled(): boolean;
|
|
34
|
+
set disabled(value: boolean);
|
|
45
35
|
private _disabled;
|
|
46
|
-
|
|
36
|
+
get tabIndex(): number;
|
|
37
|
+
set tabIndex(value: number);
|
|
38
|
+
private _tabIndex;
|
|
39
|
+
constructor(focusMonitor: FocusMonitor, styler: KbqButtonCssStyler);
|
|
47
40
|
ngAfterViewInit(): void;
|
|
48
41
|
ngOnDestroy(): void;
|
|
49
42
|
onFocus($event: any): void;
|
|
@@ -56,5 +49,7 @@ export declare class KbqButton extends KbqButtonMixinBase implements OnDestroy,
|
|
|
56
49
|
private runFocusMonitor;
|
|
57
50
|
private stopFocusMonitor;
|
|
58
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqButton, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqButton, "[kbq-button]", never, { "
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqButton, "[kbq-button]", never, { "kbqStyle": { "alias": "kbqStyle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
53
|
+
static ngAcceptInputType_disabled: unknown;
|
|
54
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
60
55
|
}
|
package/button/button.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles/common/animation';
|
|
2
2
|
|
|
3
|
+
@use 'button-base' as *;
|
|
3
4
|
@use '../core/styles/common/tokens' as *;
|
|
4
5
|
|
|
5
6
|
@use './button-theme' as *;
|
|
@@ -10,20 +11,6 @@
|
|
|
10
11
|
// base padding - border-width
|
|
11
12
|
padding-left: kbq-difference-series-css-variables([button-size-horizontal-padding, button-size-border-width]);
|
|
12
13
|
padding-right: kbq-difference-series-css-variables([button-size-horizontal-padding, button-size-border-width]);
|
|
13
|
-
|
|
14
|
-
&.kbq-button-icon_left {
|
|
15
|
-
padding-left: kbq-difference-series-css-variables(
|
|
16
|
-
[button-icon-size-horizontal-padding,
|
|
17
|
-
button-size-border-width]
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.kbq-button-icon_right {
|
|
22
|
-
padding-right: kbq-difference-series-css-variables(
|
|
23
|
-
[button-icon-size-horizontal-padding,
|
|
24
|
-
button-size-border-width]
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
14
|
}
|
|
28
15
|
|
|
29
16
|
.kbq-light-button {
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
--kbq-checkbox-size-normal-horizontal-content-padding: var(--kbq-size-s);
|
|
6
6
|
--kbq-checkbox-size-normal-vertical-content-padding: var(--kbq-size-3xs);
|
|
7
7
|
--kbq-checkbox-size-normal-top: var(--kbq-size-3xs);
|
|
8
|
+
--kbq-checkbox-size-normal-margin-bottom: var(--kbq-size-s);
|
|
8
9
|
--kbq-checkbox-size-big-width: var(--kbq-size-l);
|
|
9
10
|
--kbq-checkbox-size-big-border-width: var(--kbq-size-border-width);
|
|
10
11
|
--kbq-checkbox-size-big-border-radius: var(--kbq-size-xxs);
|
|
11
12
|
--kbq-checkbox-size-big-horizontal-content-padding: var(--kbq-size-s);
|
|
12
13
|
--kbq-checkbox-size-big-vertical-content-padding: var(--kbq-size-3xs);
|
|
13
14
|
--kbq-checkbox-size-big-top: var(--kbq-size-xxs);
|
|
15
|
+
--kbq-checkbox-size-big-margin-bottom: var(--kbq-size-m);
|
|
14
16
|
/* THEME TOKENS */
|
|
15
17
|
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
16
18
|
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
package/checkbox/checkbox.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
2
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import {
|
|
4
|
+
import { KbqColorDirective } from '@koobiq/components/core';
|
|
5
5
|
import { KbqCheckboxClickAction } from './checkbox-config';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -31,13 +31,6 @@ export declare class KbqCheckboxChange {
|
|
|
31
31
|
/** The new `checked` value of the checkbox. */
|
|
32
32
|
checked: boolean;
|
|
33
33
|
}
|
|
34
|
-
/** @docs-private */
|
|
35
|
-
export declare class KbqCheckboxBase {
|
|
36
|
-
elementRef: ElementRef;
|
|
37
|
-
constructor(elementRef: ElementRef);
|
|
38
|
-
}
|
|
39
|
-
/** @docs-private */
|
|
40
|
-
export declare const KbqCheckboxMixinBase: HasTabIndexCtor & CanColorCtor & CanDisableCtor & typeof KbqCheckboxBase;
|
|
41
34
|
/**
|
|
42
35
|
* A Koobiq checkbox component. Supports all of the functionality of an HTML5 checkbox,
|
|
43
36
|
* and exposes a similar API. A KbqCheckbox can be either checked, unchecked, indeterminate, or
|
|
@@ -45,7 +38,7 @@ export declare const KbqCheckboxMixinBase: HasTabIndexCtor & CanColorCtor & CanD
|
|
|
45
38
|
* so there is no need to provide them yourself. However, if you want to omit a label and still
|
|
46
39
|
* have the checkbox be accessible, you may supply an [aria-label] input.
|
|
47
40
|
*/
|
|
48
|
-
export declare class KbqCheckbox extends
|
|
41
|
+
export declare class KbqCheckbox extends KbqColorDirective implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
49
42
|
private changeDetectorRef;
|
|
50
43
|
private focusMonitor;
|
|
51
44
|
private clickAction;
|
|
@@ -74,13 +67,13 @@ export declare class KbqCheckbox extends KbqCheckboxMixinBase implements Control
|
|
|
74
67
|
get checked(): boolean;
|
|
75
68
|
set checked(value: boolean);
|
|
76
69
|
private _checked;
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
*/
|
|
81
|
-
get disabled(): any;
|
|
82
|
-
set disabled(value: any);
|
|
70
|
+
/** Whether the checkbox is disabled. */
|
|
71
|
+
get disabled(): boolean;
|
|
72
|
+
set disabled(value: boolean);
|
|
83
73
|
private _disabled;
|
|
74
|
+
get tabIndex(): number;
|
|
75
|
+
set tabIndex(value: number);
|
|
76
|
+
private _tabIndex;
|
|
84
77
|
/**
|
|
85
78
|
* Whether the checkbox is indeterminate. This is also known as "mixed" mode and can be used to
|
|
86
79
|
* represent a checkbox with three states, e.g. a checkbox that represents a nested list of
|
|
@@ -93,7 +86,7 @@ export declare class KbqCheckbox extends KbqCheckboxMixinBase implements Control
|
|
|
93
86
|
private uniqueId;
|
|
94
87
|
private currentAnimationClass;
|
|
95
88
|
private currentCheckState;
|
|
96
|
-
constructor(
|
|
89
|
+
constructor(changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor, clickAction: KbqCheckboxClickAction);
|
|
97
90
|
/**
|
|
98
91
|
* Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.
|
|
99
92
|
* @docs-private
|
|
@@ -126,7 +119,9 @@ export declare class KbqCheckbox extends KbqCheckboxMixinBase implements Control
|
|
|
126
119
|
private emitChangeEvent;
|
|
127
120
|
/** Function is called whenever the focus changes for the input element. */
|
|
128
121
|
private onInputFocusChange;
|
|
129
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCheckbox, [null, null,
|
|
130
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCheckbox, "kbq-checkbox", ["kbqCheckbox"], { "
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCheckbox, [null, null, { optional: true; }]>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqCheckbox, "kbq-checkbox", ["kbqCheckbox"], { "big": { "alias": "big"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*", "kbq-hint"], false, never>;
|
|
131
124
|
static ngAcceptInputType_required: unknown;
|
|
125
|
+
static ngAcceptInputType_disabled: unknown;
|
|
126
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
132
127
|
}
|
package/checkbox/checkbox.scss
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
@use '../core/styles/common/visually-hidden';
|
|
2
|
-
@use '../core/styles/common/layout';
|
|
3
|
-
|
|
4
1
|
@use '../core/styles/common/tokens' as *;
|
|
5
|
-
|
|
6
2
|
@use './checkbox-theme' as *;
|
|
7
3
|
|
|
8
4
|
.kbq-checkbox-checkmark,
|
|
@@ -68,6 +64,8 @@
|
|
|
68
64
|
cursor: pointer;
|
|
69
65
|
-webkit-tap-highlight-color: transparent;
|
|
70
66
|
|
|
67
|
+
margin-bottom: var(--kbq-checkbox-size-normal-margin-bottom);
|
|
68
|
+
|
|
71
69
|
&.kbq-checked {
|
|
72
70
|
.kbq-checkbox-checkmark {
|
|
73
71
|
display: block;
|
|
@@ -102,6 +100,8 @@
|
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
.kbq-checkbox.kbq-checkbox_big {
|
|
103
|
+
margin-bottom: var(--kbq-checkbox-size-big-margin-bottom);
|
|
104
|
+
|
|
105
105
|
& .kbq-checkbox__layout {
|
|
106
106
|
padding-left: kbq-sum-series-css-variables(
|
|
107
107
|
[ checkbox-size-normal-width,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { AbstractConstructor, Constructor } from './constructor';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export interface CanColor {
|
|
4
5
|
color: KbqComponentColors | ThemePalette | string;
|
|
5
6
|
}
|
|
@@ -31,3 +32,13 @@ export declare enum KbqComponentColors {
|
|
|
31
32
|
}
|
|
32
33
|
/** Mixin to augment a directive with a `color` property. */
|
|
33
34
|
export declare function mixinColor<T extends AbstractConstructor<HasElementRef>>(base: T, defaultColor?: KbqComponentColors | ThemePalette): CanColorCtor & T;
|
|
35
|
+
export declare class KbqColorDirective {
|
|
36
|
+
readonly elementRef: ElementRef<any>;
|
|
37
|
+
get colorClassName(): KbqComponentColors | ThemePalette | string;
|
|
38
|
+
get color(): KbqComponentColors | ThemePalette | string;
|
|
39
|
+
set color(color: KbqComponentColors | ThemePalette | string);
|
|
40
|
+
protected _color: KbqComponentColors | ThemePalette | string;
|
|
41
|
+
constructor();
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqColorDirective, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqColorDirective, never, never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export { CanColor, CanColorCtor, KbqComponentColors, mixinColor, ThemePalette } from './color';
|
|
2
|
+
export { CanColor, CanColorCtor, KbqColorDirective, KbqComponentColors, mixinColor, ThemePalette } from './color';
|
|
3
3
|
export { KBQ_SANITY_CHECKS, KbqCommonModule } from './common-module';
|
|
4
4
|
export { CanDisable, CanDisableCtor, mixinDisabled } from './disabled';
|
|
5
5
|
export { CanUpdateErrorState, CanUpdateErrorStateCtor, mixinErrorState } from './error-state';
|
|
@@ -3,7 +3,8 @@ import { DateFormatter as BaseDateFormatter } from '@koobiq/date-formatter';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DateFormatter<D> extends BaseDateFormatter<D> {
|
|
5
5
|
readonly adapter: DateAdapter<D>;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
protected localeService?: any;
|
|
7
|
+
constructor(adapter: DateAdapter<D>, locale: string, localeService?: any);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatter<any>, [null, null, { optional: true; }]>;
|
|
8
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateFormatter<any>>;
|
|
9
10
|
}
|
|
@@ -906,6 +906,10 @@ export declare class KbqLocaleService {
|
|
|
906
906
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqLocaleService, [{ optional: true; }, { optional: true; }]>;
|
|
907
907
|
static ɵprov: i0.ɵɵInjectableDeclaration<KbqLocaleService>;
|
|
908
908
|
}
|
|
909
|
+
export declare function numberByParts(value: string, fractionSeparator: string, groupSeparator: string): {
|
|
910
|
+
integer: string;
|
|
911
|
+
fraction: string;
|
|
912
|
+
};
|
|
909
913
|
/**
|
|
910
914
|
* Function that returns a string representation of a number without localized separators
|
|
911
915
|
*/
|
|
@@ -916,4 +920,4 @@ export declare function normalizeNumber(value: string | null | undefined, custom
|
|
|
916
920
|
/**
|
|
917
921
|
* Function that parse string and return a number. The string can be in any locale.
|
|
918
922
|
*/
|
|
919
|
-
export declare function checkAndNormalizeLocalizedNumber(num: string | null | undefined): number | null;
|
|
923
|
+
export declare function checkAndNormalizeLocalizedNumber(num: string | null | undefined, locale?: string): number | null;
|
package/core/option/action.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
2
|
import { AfterViewInit, ElementRef, EventEmitter, InjectionToken, OnDestroy } from '@angular/core';
|
|
3
|
-
import { CanDisableCtor, HasTabIndexCtor } from '../common-behaviors';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export interface KbqOptionActionParent {
|
|
6
5
|
dropdownTrigger: {
|
|
@@ -17,16 +16,14 @@ export interface KbqOptionActionParent {
|
|
|
17
16
|
focus(): void;
|
|
18
17
|
}
|
|
19
18
|
export declare const KBQ_OPTION_ACTION_PARENT: InjectionToken<KbqOptionActionParent>;
|
|
20
|
-
|
|
21
|
-
export declare class KbqOptionActionBase {
|
|
22
|
-
}
|
|
23
|
-
/** @docs-private */
|
|
24
|
-
export declare const KbqOptionActionMixinBase: HasTabIndexCtor & CanDisableCtor & typeof KbqOptionActionBase;
|
|
25
|
-
export declare class KbqOptionActionComponent extends KbqOptionActionMixinBase implements AfterViewInit, OnDestroy {
|
|
19
|
+
export declare class KbqOptionActionComponent implements AfterViewInit, OnDestroy {
|
|
26
20
|
private elementRef;
|
|
27
21
|
private focusMonitor;
|
|
28
22
|
private option;
|
|
29
23
|
customIcon: ElementRef;
|
|
24
|
+
get disabled(): boolean;
|
|
25
|
+
set disabled(value: boolean);
|
|
26
|
+
private _disabled;
|
|
30
27
|
hasFocus: boolean;
|
|
31
28
|
get active(): boolean;
|
|
32
29
|
private readonly destroyRef;
|
|
@@ -41,4 +38,5 @@ export declare class KbqOptionActionComponent extends KbqOptionActionMixinBase i
|
|
|
41
38
|
private preventShowingTooltip;
|
|
42
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptionActionComponent, never>;
|
|
43
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptionActionComponent, "kbq-option-action", ["kbqOptionAction"], { "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["customIcon"], ["[kbq-icon]"], false, never>;
|
|
41
|
+
static ngAcceptInputType_disabled: unknown;
|
|
44
42
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { CanDisable, CanDisableCtor } from '../common-behaviors';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
/** @docs-private */
|
|
4
|
-
export declare class KbqOptgroupBase {
|
|
5
|
-
}
|
|
6
|
-
export declare const KbqOptgroupMixinBase: CanDisableCtor & typeof KbqOptgroupBase;
|
|
7
2
|
/**
|
|
8
3
|
* Component that is used to group instances of `kbq-option`.
|
|
9
4
|
* When options aren't provided as `ng-content`, used as a Group Header with styling.
|
|
10
5
|
*/
|
|
11
|
-
export declare class KbqOptgroup
|
|
6
|
+
export declare class KbqOptgroup {
|
|
12
7
|
label: string;
|
|
8
|
+
get disabled(): boolean;
|
|
9
|
+
set disabled(value: boolean);
|
|
10
|
+
private _disabled;
|
|
13
11
|
/** Unique id for the underlying label. */
|
|
14
12
|
labelId: string;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptgroup, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptgroup, "kbq-optgroup", ["kbqOptgroup"], { "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptgroup, "kbq-optgroup", ["kbqOptgroup"], { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["kbq-option, kbq-list-option, kbq-timezone-option, ng-container"], false, never>;
|
|
15
|
+
static ngAcceptInputType_disabled: unknown;
|
|
17
16
|
}
|
|
@@ -17,6 +17,7 @@ export declare abstract class KbqPopUpTrigger<T> implements OnInit, OnDestroy {
|
|
|
17
17
|
isOpen: boolean;
|
|
18
18
|
enterDelay: number;
|
|
19
19
|
leaveDelay: number;
|
|
20
|
+
triggerName: string;
|
|
20
21
|
abstract disabled: boolean;
|
|
21
22
|
abstract arrow: boolean;
|
|
22
23
|
abstract trigger: string;
|
|
@@ -40,7 +41,6 @@ export declare abstract class KbqPopUpTrigger<T> implements OnInit, OnDestroy {
|
|
|
40
41
|
protected readonly availablePositions: {
|
|
41
42
|
[key: string]: ConnectionPositionPair;
|
|
42
43
|
};
|
|
43
|
-
protected triggerName: string;
|
|
44
44
|
protected mouseEvent?: MouseEvent;
|
|
45
45
|
protected strategy: FlexibleConnectedPositionStrategy;
|
|
46
46
|
abstract updateClassMap(newPlacement?: string): void;
|
|
@@ -55,7 +55,7 @@ export declare abstract class KbqPopUpTrigger<T> implements OnInit, OnDestroy {
|
|
|
55
55
|
handleKeydown(event: KeyboardEvent): void;
|
|
56
56
|
handleTouchend(): void;
|
|
57
57
|
show(delay?: number): void;
|
|
58
|
-
hide(delay?: number)
|
|
58
|
+
hide: (delay?: number) => void;
|
|
59
59
|
detach: () => void;
|
|
60
60
|
/** Create the overlay config and position strategy */
|
|
61
61
|
createOverlay(): OverlayRef;
|