@koobiq/components 18.18.0 → 18.19.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/actions-panel/actions-panel-config.d.ts +79 -0
- package/actions-panel/actions-panel-container.d.ts +90 -0
- package/actions-panel/actions-panel-container.scss +33 -0
- package/actions-panel/actions-panel-ref.d.ts +31 -0
- package/actions-panel/actions-panel-tokens.scss +13 -0
- package/actions-panel/actions-panel.d.ts +144 -0
- package/actions-panel/index.d.ts +5 -0
- package/actions-panel/module.d.ts +7 -0
- package/core/animation/animation.d.ts +26 -0
- package/core/form-field/form-field-ref.d.ts +4 -0
- package/core/locales/en-US.d.ts +45 -0
- package/core/locales/es-LA.d.ts +45 -0
- package/core/locales/fa-IR.d.ts +45 -0
- package/core/locales/locale-service.d.ts +315 -0
- package/core/locales/pt-BR.d.ts +45 -0
- package/core/locales/ru-RU.d.ts +45 -0
- package/core/locales/tk-TM.d.ts +45 -0
- package/core/locales/types.d.ts +6 -0
- package/core/locales/zh-CN.d.ts +45 -0
- package/core/option/option.d.ts +3 -1
- package/datepicker/calendar.component.d.ts +9 -0
- package/datepicker/datepicker-input.directive.d.ts +5 -1
- package/dl/dl.component.d.ts +3 -4
- package/dropdown/_dropdown-theme.scss +9 -10
- package/dropdown/dropdown-tokens.scss +1 -0
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/dropdown.scss +5 -0
- package/dropdown/dropdown.types.d.ts +3 -1
- package/esm2022/accordion/accordion-trigger.component.mjs +1 -1
- package/esm2022/actions-panel/actions-panel-config.mjs +55 -0
- package/esm2022/actions-panel/actions-panel-container.mjs +217 -0
- package/esm2022/actions-panel/actions-panel-ref.mjs +62 -0
- package/esm2022/actions-panel/actions-panel.mjs +220 -0
- package/esm2022/actions-panel/index.mjs +6 -0
- package/esm2022/actions-panel/koobiq-components-actions-panel.mjs +5 -0
- package/esm2022/actions-panel/module.mjs +21 -0
- package/esm2022/breadcrumbs/breadcrumbs.mjs +2 -2
- package/esm2022/code-block/code-block.mjs +1 -1
- package/esm2022/core/animation/animation.mjs +29 -1
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/en-US.mjs +46 -1
- package/esm2022/core/locales/es-LA.mjs +46 -1
- package/esm2022/core/locales/fa-IR.mjs +46 -1
- package/esm2022/core/locales/pt-BR.mjs +46 -1
- package/esm2022/core/locales/ru-RU.mjs +46 -1
- package/esm2022/core/locales/tk-TM.mjs +46 -1
- package/esm2022/core/locales/types.mjs +1 -1
- package/esm2022/core/locales/zh-CN.mjs +46 -1
- package/esm2022/core/option/option.mjs +10 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/datepicker/calendar.component.mjs +20 -2
- package/esm2022/datepicker/datepicker-input.directive.mjs +22 -11
- package/esm2022/datepicker/datepicker-toggle.component.mjs +1 -1
- package/esm2022/dl/dl.component.mjs +8 -7
- package/esm2022/dropdown/dropdown-item.component.mjs +1 -1
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +6 -1
- package/esm2022/dropdown/dropdown.component.mjs +4 -4
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +1 -1
- package/esm2022/file-upload/single-file-upload.component.mjs +1 -1
- package/esm2022/filter-bar/filter-bar-button.mjs +30 -0
- package/esm2022/filter-bar/filter-bar.mjs +168 -0
- package/esm2022/filter-bar/filter-bar.module.mjs +65 -0
- package/esm2022/filter-bar/filter-bar.types.mjs +13 -0
- package/esm2022/filter-bar/filter-refresher.mjs +34 -0
- package/esm2022/filter-bar/filter-reset.mjs +38 -0
- package/esm2022/filter-bar/filter-search.mjs +132 -0
- package/esm2022/filter-bar/filters.mjs +225 -0
- package/esm2022/filter-bar/index.mjs +2 -0
- package/esm2022/filter-bar/koobiq-components-filter-bar.mjs +5 -0
- package/esm2022/filter-bar/pipe-add.mjs +129 -0
- package/esm2022/filter-bar/pipe.directive.mjs +55 -0
- package/esm2022/filter-bar/pipes/base-pipe.mjs +106 -0
- package/esm2022/filter-bar/pipes/pipe-button.mjs +59 -0
- package/esm2022/filter-bar/pipes/pipe-date.mjs +171 -0
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +172 -0
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +96 -0
- package/esm2022/filter-bar/pipes/pipe-select.mjs +88 -0
- package/esm2022/filter-bar/pipes/pipe-state.mjs +45 -0
- package/esm2022/filter-bar/pipes/pipe-text.mjs +89 -0
- package/esm2022/filter-bar/pipes/pipe-title.mjs +96 -0
- package/esm2022/filter-bar/public-api.mjs +20 -0
- package/esm2022/form-field/cleaner.mjs +1 -1
- package/esm2022/form-field/form-field.mjs +13 -6
- package/esm2022/form-field/password-hint.mjs +1 -1
- package/esm2022/form-field/password-toggle.mjs +1 -1
- package/esm2022/form-field/stepper.mjs +1 -1
- package/esm2022/icon/icon-button.component.mjs +9 -9
- package/esm2022/icon/icon-item.component.mjs +10 -10
- package/esm2022/icon/icon.component.mjs +9 -12
- package/esm2022/list/list-selection.component.mjs +4 -4
- package/esm2022/modal/modal.component.mjs +1 -1
- package/esm2022/modal/modal.directive.mjs +1 -1
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/overflow-items/overflow-items.mjs +129 -139
- package/esm2022/popover/popover.component.mjs +30 -10
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +2 -2
- package/esm2022/tabs/tab-header.component.mjs +1 -1
- package/esm2022/tabs/tab-nav-bar.mjs +2 -2
- package/esm2022/textarea/textarea.component.mjs +9 -5
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +12 -5
- package/esm2022/toast/toast.component.mjs +2 -2
- package/esm2022/tree/toggle.mjs +1 -1
- package/esm2022/tree/tree-option.component.mjs +3 -2
- package/esm2022/tree/tree-selection.component.mjs +4 -2
- package/esm2022/tree-select/tree-select.component.mjs +6 -4
- package/fesm2022/koobiq-components-accordion.mjs +1 -1
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +567 -0
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -0
- package/fesm2022/koobiq-components-breadcrumbs.mjs +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.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 +355 -5
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +40 -12
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +7 -6
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +9 -4
- package/fesm2022/koobiq-components-dropdown.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 +1596 -0
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -0
- package/fesm2022/koobiq-components-form-field.mjs +16 -9
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +23 -26
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +3 -3
- package/fesm2022/koobiq-components-list.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 +2 -2
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +129 -139
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +29 -9
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +2 -2
- package/fesm2022/koobiq-components-select.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-tabs.mjs +2 -2
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +8 -4
- 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-title.mjs +11 -4
- package/fesm2022/koobiq-components-title.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-tree-select.mjs +5 -3
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +6 -3
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/filter-bar/_filter-bar-theme.scss +61 -0
- package/filter-bar/filter-bar-button.d.ts +8 -0
- package/filter-bar/filter-bar.d.ts +55 -0
- package/filter-bar/filter-bar.module.d.ts +17 -0
- package/filter-bar/filter-bar.scss +60 -0
- package/filter-bar/filter-bar.types.d.ts +97 -0
- package/filter-bar/filter-refresher.d.ts +5 -0
- package/filter-bar/filter-refresher.scss +6 -0
- package/filter-bar/filter-reset.d.ts +11 -0
- package/filter-bar/filter-search.d.ts +25 -0
- package/filter-bar/filter-search.scss +14 -0
- package/filter-bar/filters.d.ts +72 -0
- package/filter-bar/filters.scss +92 -0
- package/filter-bar/index.d.ts +1 -0
- package/filter-bar/pipe-add.d.ts +18 -0
- package/filter-bar/pipe-add.scss +5 -0
- package/filter-bar/pipe.directive.d.ts +13 -0
- package/filter-bar/pipes/base-pipe.d.ts +40 -0
- package/filter-bar/pipes/base-pipe.scss +117 -0
- package/filter-bar/pipes/pipe-button.d.ts +13 -0
- package/filter-bar/pipes/pipe-button.scss +5 -0
- package/filter-bar/pipes/pipe-date.d.ts +41 -0
- package/filter-bar/pipes/pipe-date.scss +132 -0
- package/filter-bar/pipes/pipe-datetime.d.ts +41 -0
- package/filter-bar/pipes/pipe-multi-select.d.ts +22 -0
- package/filter-bar/pipes/pipe-multiselect.scss +15 -0
- package/filter-bar/pipes/pipe-select.d.ts +21 -0
- package/filter-bar/pipes/pipe-select.scss +3 -0
- package/filter-bar/pipes/pipe-state.d.ts +14 -0
- package/filter-bar/pipes/pipe-text.d.ts +19 -0
- package/filter-bar/pipes/pipe-title.d.ts +25 -0
- package/filter-bar/public-api.d.ts +19 -0
- package/form-field/form-field.d.ts +6 -1
- package/form-field/form-field.scss +1 -0
- package/icon/icon-button.component.d.ts +5 -3
- package/icon/icon-item.component.d.ts +5 -3
- package/icon/icon.component.d.ts +5 -4
- package/overflow-items/overflow-items.d.ts +59 -71
- package/package.json +18 -6
- package/popover/popover.component.d.ts +6 -1
- package/schematics/ng-add/index.js +5 -5
- package/select/_select-theme.scss +9 -1
- package/textarea/textarea.component.d.ts +2 -1
- package/title/title.directive.d.ts +2 -0
- package/tree-select/_tree-select-theme.scss +9 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
+
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
|
+
import { ElementRef, InjectionToken, Injector, Provider } from '@angular/core';
|
|
4
|
+
/** Injection token that can be used to specify default actions panel config. */
|
|
5
|
+
export declare const KBQ_ACTIONS_PANEL_DEFAULT_CONFIG: InjectionToken<KbqActionsPanelConfig<unknown>>;
|
|
6
|
+
/**
|
|
7
|
+
* Utility for providing default actions panel config.
|
|
8
|
+
*
|
|
9
|
+
* @see `KBQ_ACTIONS_PANEL_DEFAULT_CONFIG`
|
|
10
|
+
*/
|
|
11
|
+
export declare const kbqActionsPanelDefaultConfigProvider: <D>(config: KbqActionsPanelConfig<D>) => Provider;
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for opened actions panel.
|
|
14
|
+
* Based on cdk `DialogConfig`.
|
|
15
|
+
*
|
|
16
|
+
* @see `DialogConfig`
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class KbqActionsPanelConfig<D = unknown> {
|
|
20
|
+
/**
|
|
21
|
+
* Injector used for the instantiation of the component to be attached.
|
|
22
|
+
*/
|
|
23
|
+
injector?: Injector;
|
|
24
|
+
/**
|
|
25
|
+
* Data being injected into the child component.
|
|
26
|
+
*
|
|
27
|
+
* @see `KBQ_ACTIONS_PANEL_DATA`
|
|
28
|
+
*/
|
|
29
|
+
data?: D | null;
|
|
30
|
+
/** Extra CSS classes to be added to the actions panel container. */
|
|
31
|
+
containerClass?: string | string[];
|
|
32
|
+
/**
|
|
33
|
+
* Whether the actions panel should be closed of when the user goes backwards/forwards in history.
|
|
34
|
+
* NOTE! This does not apply to router navigation.
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
closeOnNavigation?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Overlay container element in which the actions panel are rendered.
|
|
41
|
+
*/
|
|
42
|
+
overlayContainer?: ElementRef<HTMLElement>;
|
|
43
|
+
/**
|
|
44
|
+
* Extra CSS classes to be added to the overlay panel.
|
|
45
|
+
*/
|
|
46
|
+
overlayPanelClass?: string | string[];
|
|
47
|
+
/**
|
|
48
|
+
* Width of the actions panel.
|
|
49
|
+
*/
|
|
50
|
+
width?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Min-width of the actions panel.
|
|
53
|
+
* If a number is provided, assumes pixel units.
|
|
54
|
+
*/
|
|
55
|
+
minWidth?: number | string;
|
|
56
|
+
/**
|
|
57
|
+
* Max-width of the actions panel.
|
|
58
|
+
* If a number is provided, assumes pixel units.
|
|
59
|
+
*/
|
|
60
|
+
maxWidth?: number | string;
|
|
61
|
+
/**
|
|
62
|
+
* Direction of the text in the actions panel.
|
|
63
|
+
*
|
|
64
|
+
* @default 'ltr'
|
|
65
|
+
*/
|
|
66
|
+
direction?: Direction;
|
|
67
|
+
/**
|
|
68
|
+
* Scroll strategy to be used for the actions panel.
|
|
69
|
+
*
|
|
70
|
+
* @default `RepositionScrollStrategy`
|
|
71
|
+
*/
|
|
72
|
+
scrollStrategy?: (overlay: Overlay) => ScrollStrategy;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the user can use ESC or click on close button to close the actions panel.
|
|
75
|
+
*
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
disableClose?: boolean;
|
|
79
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
|
2
|
+
import { CdkDialogContainer } from '@angular/cdk/dialog';
|
|
3
|
+
import { EventEmitter, InjectionToken, OnDestroy, Provider } from '@angular/core';
|
|
4
|
+
import { KbqActionsPanelLocaleConfiguration } from '@koobiq/components/core';
|
|
5
|
+
import { KbqActionsPanelConfig } from './actions-panel-config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/** Localization configuration provider. */
|
|
8
|
+
export declare const KBQ_ACTIONS_PANEL_LOCALE_CONFIGURATION: InjectionToken<KbqActionsPanelLocaleConfiguration>;
|
|
9
|
+
/** Utility provider for `KBQ_ACTIONS_PANEL_LOCALE_CONFIGURATION`. */
|
|
10
|
+
export declare const kbqActionsPanelLocaleConfigurationProvider: (configuration: KbqActionsPanelLocaleConfiguration) => Provider;
|
|
11
|
+
/**
|
|
12
|
+
* Internal component that wraps user-provided actions panel content.
|
|
13
|
+
*
|
|
14
|
+
* @docs-private
|
|
15
|
+
*/
|
|
16
|
+
export declare class KbqActionsPanelContainer extends CdkDialogContainer implements OnDestroy {
|
|
17
|
+
/**
|
|
18
|
+
* The state of the actions panel animations.
|
|
19
|
+
*
|
|
20
|
+
* @docs-private
|
|
21
|
+
*/
|
|
22
|
+
protected animationState: 'void' | 'visible' | 'hidden';
|
|
23
|
+
/**
|
|
24
|
+
* Emits whenever the state of the animation changes.
|
|
25
|
+
*
|
|
26
|
+
* @docs-private
|
|
27
|
+
*/
|
|
28
|
+
readonly animationStateChanged: EventEmitter<AnimationEvent>;
|
|
29
|
+
/** Whether the actions panel container has been destroyed. */
|
|
30
|
+
private destroyed;
|
|
31
|
+
/**
|
|
32
|
+
* Actions panel configuration.
|
|
33
|
+
*
|
|
34
|
+
* @docs-private
|
|
35
|
+
*/
|
|
36
|
+
protected readonly config: KbqActionsPanelConfig<any>;
|
|
37
|
+
private readonly actionsPanel;
|
|
38
|
+
private readonly renderer;
|
|
39
|
+
private readonly localeService;
|
|
40
|
+
/**
|
|
41
|
+
* Actions panel locale configuration.
|
|
42
|
+
*
|
|
43
|
+
* @docs-private
|
|
44
|
+
*/
|
|
45
|
+
protected readonly localeConfiguration: import("@angular/core").Signal<KbqActionsPanelLocaleConfiguration | undefined>;
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Close the actions panel.
|
|
49
|
+
*
|
|
50
|
+
* @docs-private
|
|
51
|
+
*/
|
|
52
|
+
protected close(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Start animation of the actions panel entrance into view.
|
|
55
|
+
*
|
|
56
|
+
* @docs-private
|
|
57
|
+
*/
|
|
58
|
+
startOpenAnimation(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Start animation of the actions panel exiting from view.
|
|
61
|
+
*
|
|
62
|
+
* @docs-private
|
|
63
|
+
*/
|
|
64
|
+
startCloseAnimation(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Handles animation done events.
|
|
67
|
+
*
|
|
68
|
+
* @docs-private
|
|
69
|
+
*/
|
|
70
|
+
protected onAnimationDone(event: AnimationEvent): void;
|
|
71
|
+
/**
|
|
72
|
+
* Handles animation start events.
|
|
73
|
+
*
|
|
74
|
+
* @docs-private
|
|
75
|
+
*/
|
|
76
|
+
protected onAnimationStart(event: AnimationEvent): void;
|
|
77
|
+
/**
|
|
78
|
+
* Handles escape key events.
|
|
79
|
+
*
|
|
80
|
+
* @docs-private
|
|
81
|
+
*/
|
|
82
|
+
protected handleEscape(event: KeyboardEvent): void;
|
|
83
|
+
/**
|
|
84
|
+
* @docs-private
|
|
85
|
+
*/
|
|
86
|
+
protected _contentAttached(): void;
|
|
87
|
+
private applyContainerClass;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelContainer, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqActionsPanelContainer, "kbq-actions-panel-container", never, {}, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.kbq-actions-panel-container {
|
|
2
|
+
background: var(--kbq-actions-panel-background-color);
|
|
3
|
+
color: var(--kbq-actions-panel-text-color);
|
|
4
|
+
box-shadow: var(--kbq-actions-panel-box-shadow);
|
|
5
|
+
height: var(--kbq-actions-panel-height);
|
|
6
|
+
padding: var(--kbq-actions-panel-padding);
|
|
7
|
+
margin: var(--kbq-actions-panel-margin);
|
|
8
|
+
border-radius: var(--kbq-actions-panel-border-radius);
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
align-items: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
|
|
15
|
+
.kbq-actions-panel-container__content {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.kbq-actions-panel-container__vertical-divider {
|
|
23
|
+
background-color: var(--kbq-actions-panel-vertical-divider-background-color);
|
|
24
|
+
height: var(--kbq-actions-panel-vertical-divider-height) !important;
|
|
25
|
+
margin: var(--kbq-actions-panel-vertical-divider-margin);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.kbq-actions-panel-overlay-container {
|
|
30
|
+
// Required for positioning the overlay inside the custom container
|
|
31
|
+
// See: KbqActionsPanelConfig.overlayContainer
|
|
32
|
+
position: relative;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { KbqActionsPanelContainer } from './actions-panel-container';
|
|
4
|
+
/**
|
|
5
|
+
* Reference to actions panel opened by `KbqActionsPanel` service.
|
|
6
|
+
*/
|
|
7
|
+
export declare class KbqActionsPanelRef<I = unknown, R = unknown> {
|
|
8
|
+
private readonly dialogRef;
|
|
9
|
+
/**
|
|
10
|
+
* Instance of the component into which the actions panel content is projected.
|
|
11
|
+
*
|
|
12
|
+
* @docs-private
|
|
13
|
+
*/
|
|
14
|
+
containerInstance: KbqActionsPanelContainer;
|
|
15
|
+
/** Gets an observable that is notified when the actions panel is finished closing. */
|
|
16
|
+
get afterClosed(): Observable<R | undefined>;
|
|
17
|
+
/** Gets an observable that emits when keydown events are targeted on the overlay. */
|
|
18
|
+
get keydownEvents(): Observable<KeyboardEvent>;
|
|
19
|
+
/** Gets an observable that is notified when the actions panel has opened and appeared. */
|
|
20
|
+
get afterOpened(): Observable<void>;
|
|
21
|
+
private readonly _afterOpened;
|
|
22
|
+
/** Result to be passed down to the `afterClosed` stream. */
|
|
23
|
+
private result;
|
|
24
|
+
/** Handle to the timeout that's running as a fallback in case the close animation doesn't fire. */
|
|
25
|
+
private closeAnimationFallbackTimeout;
|
|
26
|
+
constructor(dialogRef: DialogRef<R, I>, containerInstance: KbqActionsPanelContainer);
|
|
27
|
+
/** Closes the actions panel. */
|
|
28
|
+
close(result?: R): void;
|
|
29
|
+
private handleAnimation;
|
|
30
|
+
private handleOverlayDetachments;
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.kbq-actions-panel-container {
|
|
2
|
+
--kbq-actions-panel-background-color: var(--kbq-background-contrast);
|
|
3
|
+
--kbq-actions-panel-text-color: var(--kbq-foreground-on-contrast);
|
|
4
|
+
--kbq-actions-panel-padding: var(--kbq-size-s);
|
|
5
|
+
--kbq-actions-panel-margin: var(--kbq-size-s) var(--kbq-size-s) var(--kbq-size-l);
|
|
6
|
+
--kbq-actions-panel-border-radius: var(--kbq-size-l);
|
|
7
|
+
--kbq-actions-panel-box-shadow: var(--kbq-shadow-card);
|
|
8
|
+
--kbq-actions-panel-height: var(--kbq-size-5xl);
|
|
9
|
+
/** Divider */
|
|
10
|
+
--kbq-actions-panel-vertical-divider-background-color: var(--kbq-line-contrast-fade);
|
|
11
|
+
--kbq-actions-panel-vertical-divider-height: var(--kbq-size-m);
|
|
12
|
+
--kbq-actions-panel-vertical-divider-margin: 0 var(--kbq-size-s);
|
|
13
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
+
import { Dialog, DialogConfig } from '@angular/cdk/dialog';
|
|
3
|
+
import { ComponentType, Overlay, OverlayContainer, OverlayKeyboardDispatcher, OverlayOutsideClickDispatcher, OverlayPositionBuilder, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
4
|
+
import { Location } from '@angular/common';
|
|
5
|
+
import { ComponentFactoryResolver, InjectionToken, Injector, NgZone, OnDestroy, TemplateRef } from '@angular/core';
|
|
6
|
+
import { KbqActionsPanelConfig } from './actions-panel-config';
|
|
7
|
+
import { KbqActionsPanelRef } from './actions-panel-ref';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/** Injection token that can be used to access the data that was passed in to actions panel. */
|
|
10
|
+
export declare const KBQ_ACTIONS_PANEL_DATA: InjectionToken<unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Context for actions panel template.
|
|
13
|
+
*/
|
|
14
|
+
export type KbqActionsPanelTemplateContext<T = unknown, D = unknown, R = unknown> = {
|
|
15
|
+
/**
|
|
16
|
+
* Data passed to actions panel.
|
|
17
|
+
*
|
|
18
|
+
* Example:
|
|
19
|
+
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <ng-template #actionsPanel let-data>{{ data.KEY }}</ng-template>
|
|
22
|
+
* ````
|
|
23
|
+
*/
|
|
24
|
+
$implicit?: D | null;
|
|
25
|
+
/**
|
|
26
|
+
* Data passed to actions panel.
|
|
27
|
+
*
|
|
28
|
+
* Example:
|
|
29
|
+
*
|
|
30
|
+
* ```html
|
|
31
|
+
* <ng-template #actionsPanel let-data="data">{{ data.KEY }}</ng-template>
|
|
32
|
+
* ````
|
|
33
|
+
*/
|
|
34
|
+
data?: D | null;
|
|
35
|
+
/**
|
|
36
|
+
* Opened actions panel reference.
|
|
37
|
+
*
|
|
38
|
+
* Example:
|
|
39
|
+
*
|
|
40
|
+
* ```html
|
|
41
|
+
* <ng-template #actionsPanel let-actionsPanelRef="actionsPanelRef">
|
|
42
|
+
* <button (click)="actionsPanelRef.close()">close</button>
|
|
43
|
+
* </ng-template>
|
|
44
|
+
* ````
|
|
45
|
+
*/
|
|
46
|
+
actionsPanelRef: KbqActionsPanelRef<T, R>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Selector for actions panel overlay.
|
|
50
|
+
*
|
|
51
|
+
* @docs-private
|
|
52
|
+
*/
|
|
53
|
+
export declare const KBQ_ACTIONS_PANEL_OVERLAY_SELECTOR = "kbq-actions-panel-overlay";
|
|
54
|
+
/**
|
|
55
|
+
* Selector for custom actions panel overlay container.
|
|
56
|
+
*
|
|
57
|
+
* @docs-private
|
|
58
|
+
*/
|
|
59
|
+
export declare const KBQ_ACTIONS_PANEL_OVERLAY_CONTAINER_SELECTOR = "kbq-actions-panel-overlay-container";
|
|
60
|
+
/**
|
|
61
|
+
* Actions panel overlay container.
|
|
62
|
+
*
|
|
63
|
+
* @docs-private
|
|
64
|
+
*/
|
|
65
|
+
export declare class KbqActionsPanelOverlayContainer extends OverlayContainer {
|
|
66
|
+
/**
|
|
67
|
+
* Set the overlay container element.
|
|
68
|
+
*
|
|
69
|
+
* @param containerElement The element into which the overlay will be rendered.
|
|
70
|
+
* @returns Current OverlayContainer instance.
|
|
71
|
+
*/
|
|
72
|
+
setContainerElement(containerElement?: HTMLElement): void;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelOverlayContainer, never>;
|
|
74
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanelOverlayContainer>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Actions panel overlay.
|
|
78
|
+
*
|
|
79
|
+
* @docs-private
|
|
80
|
+
*/
|
|
81
|
+
export declare class KbqActionsPanelOverlay extends Overlay {
|
|
82
|
+
private readonly overlayContainer;
|
|
83
|
+
constructor(scrollStrategies: ScrollStrategyOptions, overlayContainer: KbqActionsPanelOverlayContainer, componentFactoryResolver: ComponentFactoryResolver, positionBuilder: OverlayPositionBuilder, keyboardDispatcher: OverlayKeyboardDispatcher, injector: Injector, ngZone: NgZone, document: any, directionality: Directionality, location: Location, outsideClickDispatcher: OverlayOutsideClickDispatcher, animationsModuleType?: string);
|
|
84
|
+
/**
|
|
85
|
+
* Set the overlay container element.
|
|
86
|
+
*
|
|
87
|
+
* @param containerElement The element into which the overlay will be rendered.
|
|
88
|
+
* @returns Current Overlay instance.
|
|
89
|
+
*/
|
|
90
|
+
setOverlayContainerElement(containerElement?: HTMLElement): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelOverlay, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
92
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanelOverlay>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Actions panel dialog service.
|
|
96
|
+
*
|
|
97
|
+
* @docs-private
|
|
98
|
+
*/
|
|
99
|
+
export declare class KbqActionsPanelDialog extends Dialog {
|
|
100
|
+
private readonly overlay;
|
|
101
|
+
constructor(overlay: KbqActionsPanelOverlay, injector: Injector, defaultOptions: DialogConfig, parentDialog: Dialog, overlayContainer: KbqActionsPanelOverlayContainer, scrollStrategy: any);
|
|
102
|
+
/**
|
|
103
|
+
* Set the dialog overlay container element.
|
|
104
|
+
*
|
|
105
|
+
* @param containerElement The element into which the overlay will be rendered.
|
|
106
|
+
* @returns Current dialog instance.
|
|
107
|
+
*/
|
|
108
|
+
setOverlayContainerElement(containerElement?: HTMLElement): this;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelDialog, [null, null, { optional: true; }, { optional: true; skipSelf: true; }, null, null]>;
|
|
110
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanelDialog>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Service for opening actions panel.
|
|
114
|
+
*/
|
|
115
|
+
export declare class KbqActionsPanel implements OnDestroy {
|
|
116
|
+
private readonly injector;
|
|
117
|
+
private readonly overlay;
|
|
118
|
+
private readonly dialog;
|
|
119
|
+
private readonly defaultConfig;
|
|
120
|
+
/** The reference to the currently opened actions panel. */
|
|
121
|
+
private openedActionsPanelRef;
|
|
122
|
+
ngOnDestroy(): void;
|
|
123
|
+
/**
|
|
124
|
+
* Opens actions panel.
|
|
125
|
+
*
|
|
126
|
+
* @param componentOrTemplateRef Component to be opened into the actions panel.
|
|
127
|
+
* @param config Additional configuration options for the actions panel.
|
|
128
|
+
* @returns A reference to the opened actions panel.
|
|
129
|
+
*/
|
|
130
|
+
open<T, D = unknown, R = unknown>(component: ComponentType<T>, config?: KbqActionsPanelConfig<D>): KbqActionsPanelRef<T, R>;
|
|
131
|
+
/**
|
|
132
|
+
* Opens actions panel.
|
|
133
|
+
*
|
|
134
|
+
* @param template TemplateRef to be used as the content.
|
|
135
|
+
* @param config Additional configuration options for the actions panel.
|
|
136
|
+
* @returns A reference to the opened actions panel.
|
|
137
|
+
*/
|
|
138
|
+
open<T, D = unknown, R = unknown>(template: TemplateRef<T>, config?: KbqActionsPanelConfig<D>): KbqActionsPanelRef<T, R>;
|
|
139
|
+
/** Closes the currently opened actions panel. */
|
|
140
|
+
close<R>(result?: R): void;
|
|
141
|
+
private openDialog;
|
|
142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanel, never>;
|
|
143
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KbqActionsPanel>;
|
|
144
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./actions-panel-container";
|
|
3
|
+
export declare class KbqActionsPanelModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqActionsPanelModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqActionsPanelModule, never, [typeof i1.KbqActionsPanelContainer], [typeof i1.KbqActionsPanelContainer]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqActionsPanelModule>;
|
|
7
|
+
}
|
|
@@ -1,6 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Will be removed in next major release. Use `KbqAnimationCurves` instead.
|
|
3
|
+
*
|
|
4
|
+
* @docs-private
|
|
5
|
+
*/
|
|
1
6
|
export declare enum AnimationCurves {
|
|
2
7
|
StandardCurve = "cubic-bezier(0.4,0.0,0.2,1)",
|
|
3
8
|
DecelerationCurve = "cubic-bezier(0.0,0.0,0.2,1)",
|
|
4
9
|
AccelerationCurve = "cubic-bezier(0.4,0.0,1,1)",
|
|
5
10
|
SharpCurve = "cubic-bezier(0.4,0.0,0.6,1)"
|
|
6
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Koobiq components animation curves
|
|
14
|
+
*
|
|
15
|
+
* @docs-private
|
|
16
|
+
*/
|
|
17
|
+
export declare enum KbqAnimationCurves {
|
|
18
|
+
StandardCurve = "cubic-bezier(0.4,0.0,0.2,1)",
|
|
19
|
+
DecelerationCurve = "cubic-bezier(0.0,0.0,0.2,1)",
|
|
20
|
+
AccelerationCurve = "cubic-bezier(0.4,0.0,1,1)",
|
|
21
|
+
SharpCurve = "cubic-bezier(0.4,0.0,0.6,1)"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Koobiq components animation durations
|
|
25
|
+
*
|
|
26
|
+
* @docs-private
|
|
27
|
+
*/
|
|
28
|
+
export declare enum KbqAnimationDurations {
|
|
29
|
+
Complex = "250ms",
|
|
30
|
+
Entering = "150ms",
|
|
31
|
+
Exiting = "125ms"
|
|
32
|
+
}
|
package/core/locales/en-US.d.ts
CHANGED
|
@@ -42,4 +42,49 @@ export declare const enUSLocaleData: {
|
|
|
42
42
|
timezone: {
|
|
43
43
|
searchPlaceholder: string;
|
|
44
44
|
};
|
|
45
|
+
actionsPanel: {
|
|
46
|
+
closeTooltip: string;
|
|
47
|
+
};
|
|
48
|
+
filterBar: {
|
|
49
|
+
reset: {
|
|
50
|
+
buttonName: string;
|
|
51
|
+
};
|
|
52
|
+
search: {
|
|
53
|
+
tooltip: string;
|
|
54
|
+
placeholder: string;
|
|
55
|
+
};
|
|
56
|
+
filters: {
|
|
57
|
+
defaultName: string;
|
|
58
|
+
saveNewFilterTooltip: string;
|
|
59
|
+
searchPlaceholder: string;
|
|
60
|
+
searchEmptyResult: string;
|
|
61
|
+
saveAsNewFilter: string;
|
|
62
|
+
saveChanges: string;
|
|
63
|
+
saveAsNew: string;
|
|
64
|
+
change: string;
|
|
65
|
+
resetChanges: string;
|
|
66
|
+
remove: string;
|
|
67
|
+
name: string;
|
|
68
|
+
error: string;
|
|
69
|
+
errorHint: string;
|
|
70
|
+
saveButton: string;
|
|
71
|
+
cancelButton: string;
|
|
72
|
+
};
|
|
73
|
+
add: {
|
|
74
|
+
tooltip: string;
|
|
75
|
+
};
|
|
76
|
+
pipe: {
|
|
77
|
+
clearButtonTooltip: string;
|
|
78
|
+
removeButtonTooltip: string;
|
|
79
|
+
applyButton: string;
|
|
80
|
+
emptySearchResult: string;
|
|
81
|
+
};
|
|
82
|
+
datePipe: {
|
|
83
|
+
customPeriod: string;
|
|
84
|
+
customPeriodFrom: string;
|
|
85
|
+
customPeriodTo: string;
|
|
86
|
+
customPeriodErrorHint: string;
|
|
87
|
+
backToPeriodSelection: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
45
90
|
};
|
package/core/locales/es-LA.d.ts
CHANGED
|
@@ -41,4 +41,49 @@ export declare const esLALocaleData: {
|
|
|
41
41
|
timezone: {
|
|
42
42
|
searchPlaceholder: string;
|
|
43
43
|
};
|
|
44
|
+
actionsPanel: {
|
|
45
|
+
closeTooltip: string;
|
|
46
|
+
};
|
|
47
|
+
filterBar: {
|
|
48
|
+
reset: {
|
|
49
|
+
buttonName: string;
|
|
50
|
+
};
|
|
51
|
+
search: {
|
|
52
|
+
tooltip: string;
|
|
53
|
+
placeholder: string;
|
|
54
|
+
};
|
|
55
|
+
filters: {
|
|
56
|
+
defaultName: string;
|
|
57
|
+
saveNewFilterTooltip: string;
|
|
58
|
+
searchPlaceholder: string;
|
|
59
|
+
searchEmptyResult: string;
|
|
60
|
+
saveAsNewFilter: string;
|
|
61
|
+
saveChanges: string;
|
|
62
|
+
saveAsNew: string;
|
|
63
|
+
change: string;
|
|
64
|
+
resetChanges: string;
|
|
65
|
+
remove: string;
|
|
66
|
+
name: string;
|
|
67
|
+
error: string;
|
|
68
|
+
errorHint: string;
|
|
69
|
+
saveButton: string;
|
|
70
|
+
cancelButton: string;
|
|
71
|
+
};
|
|
72
|
+
add: {
|
|
73
|
+
tooltip: string;
|
|
74
|
+
};
|
|
75
|
+
pipe: {
|
|
76
|
+
clearButtonTooltip: string;
|
|
77
|
+
removeButtonTooltip: string;
|
|
78
|
+
applyButton: string;
|
|
79
|
+
emptySearchResult: string;
|
|
80
|
+
};
|
|
81
|
+
datePipe: {
|
|
82
|
+
customPeriod: string;
|
|
83
|
+
customPeriodFrom: string;
|
|
84
|
+
customPeriodTo: string;
|
|
85
|
+
customPeriodErrorHint: string;
|
|
86
|
+
backToPeriodSelection: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
44
89
|
};
|
package/core/locales/fa-IR.d.ts
CHANGED
|
@@ -41,4 +41,49 @@ export declare const faIRLocaleData: {
|
|
|
41
41
|
timezone: {
|
|
42
42
|
searchPlaceholder: string;
|
|
43
43
|
};
|
|
44
|
+
actionsPanel: {
|
|
45
|
+
closeTooltip: string;
|
|
46
|
+
};
|
|
47
|
+
filterBar: {
|
|
48
|
+
reset: {
|
|
49
|
+
buttonName: string;
|
|
50
|
+
};
|
|
51
|
+
search: {
|
|
52
|
+
tooltip: string;
|
|
53
|
+
placeholder: string;
|
|
54
|
+
};
|
|
55
|
+
filters: {
|
|
56
|
+
defaultName: string;
|
|
57
|
+
saveNewFilterTooltip: string;
|
|
58
|
+
searchPlaceholder: string;
|
|
59
|
+
searchEmptyResult: string;
|
|
60
|
+
saveAsNewFilter: string;
|
|
61
|
+
saveChanges: string;
|
|
62
|
+
saveAsNew: string;
|
|
63
|
+
change: string;
|
|
64
|
+
resetChanges: string;
|
|
65
|
+
remove: string;
|
|
66
|
+
name: string;
|
|
67
|
+
error: string;
|
|
68
|
+
errorHint: string;
|
|
69
|
+
saveButton: string;
|
|
70
|
+
cancelButton: string;
|
|
71
|
+
};
|
|
72
|
+
add: {
|
|
73
|
+
tooltip: string;
|
|
74
|
+
};
|
|
75
|
+
pipe: {
|
|
76
|
+
clearButtonTooltip: string;
|
|
77
|
+
removeButtonTooltip: string;
|
|
78
|
+
applyButton: string;
|
|
79
|
+
emptySearchResult: string;
|
|
80
|
+
};
|
|
81
|
+
datePipe: {
|
|
82
|
+
customPeriod: string;
|
|
83
|
+
customPeriodFrom: string;
|
|
84
|
+
customPeriodTo: string;
|
|
85
|
+
customPeriodErrorHint: string;
|
|
86
|
+
backToPeriodSelection: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
44
89
|
};
|