@cuby-ui/core 0.0.599 → 0.0.600
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/components/index.d.ts +1 -0
- package/components/template-select/index.d.ts +2 -0
- package/components/template-select/template-select.component.d.ts +29 -0
- package/components/template-select/template-select.interfaces.d.ts +13 -0
- package/esm2022/components/index.mjs +2 -1
- package/esm2022/components/template-select/index.mjs +2 -0
- package/esm2022/components/template-select/template-select.component.mjs +47 -0
- package/esm2022/components/template-select/template-select.interfaces.mjs +2 -0
- package/fesm2022/cuby-ui-core.mjs +44 -2
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +4 -4
package/components/index.d.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
3
|
+
import type { CuiTemplateSelectOption, CuiTemplateSelectOptionContext, CuiTemplateSelectTriggerContext, CuiTemplateSelectValue } from './template-select.interfaces';
|
|
4
|
+
import type { CuiDropdownOrientation } from '../dropdown';
|
|
5
|
+
import { CuiDropdownDirective } from '../dropdown';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CuiTemplateSelectComponent<TOption extends CuiTemplateSelectOption<unknown>> {
|
|
8
|
+
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
protected readonly selectedOption: import("@angular/core").Signal<CuiNullable<TOption>>;
|
|
10
|
+
protected readonly triggerContext: import("@angular/core").Signal<CuiTemplateSelectTriggerContext<TOption>>;
|
|
11
|
+
protected readonly optionContexts: import("@angular/core").Signal<CuiTemplateSelectOptionContext<TOption>[]>;
|
|
12
|
+
protected readonly placeholderTemplate: import("@angular/core").Signal<CuiNullable<TemplateRef<unknown>>>;
|
|
13
|
+
protected readonly dropdown: import("@angular/core").Signal<CuiDropdownDirective>;
|
|
14
|
+
readonly value: import("@angular/core").ModelSignal<CuiNullable<CuiTemplateSelectValue<TOption>>>;
|
|
15
|
+
readonly options: import("@angular/core").InputSignal<TOption[]>;
|
|
16
|
+
readonly triggerTemplate: import("@angular/core").InputSignal<TemplateRef<CuiTemplateSelectTriggerContext<TOption>>>;
|
|
17
|
+
readonly optionTemplate: import("@angular/core").InputSignal<TemplateRef<CuiTemplateSelectOptionContext<TOption>> | undefined>;
|
|
18
|
+
readonly contentTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
19
|
+
readonly placeholder: import("@angular/core").InputSignal<string | TemplateRef<unknown>>;
|
|
20
|
+
readonly emptyPlaceholder: import("@angular/core").InputSignal<string>;
|
|
21
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
readonly orientation: import("@angular/core").InputSignal<CuiDropdownOrientation>;
|
|
23
|
+
readonly dropdownWidth: import("@angular/core").InputSignal<string>;
|
|
24
|
+
readonly openChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
25
|
+
protected onSelect(option: TOption): void;
|
|
26
|
+
protected onOpenChange(isOpen: boolean): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiTemplateSelectComponent<any>, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiTemplateSelectComponent<any>, "cui-template-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "triggerTemplate": { "alias": "triggerTemplate"; "required": true; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "emptyPlaceholder": { "alias": "emptyPlaceholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "openChange": "openChange"; }, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CuiNullable } from '@cuby-ui/cdk';
|
|
2
|
+
export interface CuiTemplateSelectOption<TValue> {
|
|
3
|
+
readonly value: TValue;
|
|
4
|
+
}
|
|
5
|
+
export type CuiTemplateSelectValue<TOption> = TOption extends CuiTemplateSelectOption<infer TValue> ? TValue : never;
|
|
6
|
+
export interface CuiTemplateSelectOptionContext<TOption> {
|
|
7
|
+
readonly $implicit: TOption;
|
|
8
|
+
readonly isSelected: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CuiTemplateSelectTriggerContext<TOption> {
|
|
11
|
+
readonly $implicit: CuiNullable<TOption>;
|
|
12
|
+
readonly isOpen: boolean;
|
|
13
|
+
}
|
|
@@ -30,6 +30,7 @@ export * from './options-button';
|
|
|
30
30
|
export * from './radio';
|
|
31
31
|
export * from './root';
|
|
32
32
|
export * from './select';
|
|
33
|
+
export * from './template-select';
|
|
33
34
|
export * from './empty-state';
|
|
34
35
|
export * from './sidebar';
|
|
35
36
|
export * from './card-wrapper';
|
|
@@ -43,4 +44,4 @@ export * from './toggle';
|
|
|
43
44
|
export * from './render-dynamic-components';
|
|
44
45
|
export * from './file-icon';
|
|
45
46
|
export * from './filter-bar';
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxTQUFTLENBQUM7QUFDeEI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yb20gJy4vaW5wdXQtcGFzc3dvcmQnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnB1dC10ZXh0JztcbmV4cG9ydCAqIGZyb20gJy4vaW5wdXQtdGltZSc7XG5leHBvcnQgKiBmcm9tICcuL2xhYmVsJztcbmV4cG9ydCAqIGZyb20gJy4vbGV0dGVyLWJveCc7XG5leHBvcnQgKiBmcm9tICcuLi93aWRnZXRzL3VpL21vZGFsLWhlYWRlcic7XG5leHBvcnQgKiBmcm9tICcuL25vdGlmaWNhdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL29wdGlvbnMtYnV0dG9uJztcbmV4cG9ydCAqIGZyb20gJy4vcmFkaW8nO1xuZXhwb3J0ICogZnJvbSAnLi9yb290JztcbmV4cG9ydCAqIGZyb20gJy4vc2VsZWN0JztcbmV4cG9ydCAqIGZyb20gJy4vdGVtcGxhdGUtc2VsZWN0JztcbmV4cG9ydCAqIGZyb20gJy4vZW1wdHktc3RhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi9zaWRlYmFyJztcbmV4cG9ydCAqIGZyb20gJy4vY2FyZC13cmFwcGVyJztcbmV4cG9ydCAqIGZyb20gJy4vbGF5b3V0JztcbmV4cG9ydCAqIGZyb20gJy4vc3ZnJztcbmV4cG9ydCAqIGZyb20gJy4vdGFiJztcbmV4cG9ydCAqIGZyb20gJy4vdGFicyc7XG5leHBvcnQgKiBmcm9tICcuL3RyZWUnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXh0YXJlYSc7XG5leHBvcnQgKiBmcm9tICcuL3RvZ2dsZSc7XG5leHBvcnQgKiBmcm9tICcuL3JlbmRlci1keW5hbWljLWNvbXBvbmVudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlLWljb24nO1xuZXhwb3J0ICogZnJvbSAnLi9maWx0ZXItYmFyJztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CuiTemplateSelectComponent } from './template-select.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvdGVtcGxhdGUtc2VsZWN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ3VpVGVtcGxhdGVTZWxlY3RDb21wb25lbnQgfSBmcm9tICcuL3RlbXBsYXRlLXNlbGVjdC5jb21wb25lbnQnO1xuZXhwb3J0IHR5cGUge1xuICAgIEN1aVRlbXBsYXRlU2VsZWN0T3B0aW9uLFxuICAgIEN1aVRlbXBsYXRlU2VsZWN0T3B0aW9uQ29udGV4dCxcbiAgICBDdWlUZW1wbGF0ZVNlbGVjdFRyaWdnZXJDb250ZXh0LFxuICAgIEN1aVRlbXBsYXRlU2VsZWN0VmFsdWVcbn0gZnJvbSAnLi90ZW1wbGF0ZS1zZWxlY3QuaW50ZXJmYWNlcyc7XG4iXX0=
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input, model, output, signal, TemplateRef, viewChild } from '@angular/core';
|
|
3
|
+
import { CuiDropdownDirective, CuiDropdownWrapperComponent } from '../dropdown';
|
|
4
|
+
import { CuiEmptyStateComponent } from '../empty-state';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class CuiTemplateSelectComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.isOpen = signal(false);
|
|
9
|
+
this.selectedOption = computed(() => this.options().find((option) => option.value === this.value()) ?? null);
|
|
10
|
+
this.triggerContext = computed(() => ({
|
|
11
|
+
$implicit: this.selectedOption(),
|
|
12
|
+
isOpen: this.isOpen()
|
|
13
|
+
}));
|
|
14
|
+
this.optionContexts = computed(() => this.options().map((option) => ({ $implicit: option, isSelected: option.value === this.value() })));
|
|
15
|
+
this.placeholderTemplate = computed(() => {
|
|
16
|
+
const placeholder = this.placeholder();
|
|
17
|
+
return placeholder instanceof TemplateRef ? placeholder : null;
|
|
18
|
+
});
|
|
19
|
+
this.dropdown = viewChild.required(CuiDropdownDirective);
|
|
20
|
+
this.value = model(null);
|
|
21
|
+
this.options = input([]);
|
|
22
|
+
this.triggerTemplate = input.required();
|
|
23
|
+
this.optionTemplate = input();
|
|
24
|
+
this.contentTemplate = input();
|
|
25
|
+
this.placeholder = input('');
|
|
26
|
+
this.emptyPlaceholder = input('');
|
|
27
|
+
this.disabled = input(false);
|
|
28
|
+
this.orientation = input('stretch');
|
|
29
|
+
this.dropdownWidth = input('auto');
|
|
30
|
+
this.openChange = output();
|
|
31
|
+
}
|
|
32
|
+
onSelect(option) {
|
|
33
|
+
this.value.set(option.value);
|
|
34
|
+
this.dropdown().close();
|
|
35
|
+
}
|
|
36
|
+
onOpenChange(isOpen) {
|
|
37
|
+
this.isOpen.set(isOpen);
|
|
38
|
+
this.openChange.emit(isOpen);
|
|
39
|
+
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTemplateSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiTemplateSelectComponent, isStandalone: true, selector: "cui-template-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, triggerTemplate: { classPropertyName: "triggerTemplate", publicName: "triggerTemplate", isSignal: true, isRequired: true, transformFunction: null }, optionTemplate: { classPropertyName: "optionTemplate", publicName: "optionTemplate", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, emptyPlaceholder: { classPropertyName: "emptyPlaceholder", publicName: "emptyPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", openChange: "openChange" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: CuiDropdownDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<button\n type=\"button\"\n [cuiDropdown]=\"content\"\n [orientation]=\"orientation()\"\n [disabled]=\"disabled()\"\n class=\"trigger\"\n (isOpened)=\"onOpenChange($event)\"\n>\n @if (value()) {\n <ng-container *ngTemplateOutlet=\"triggerTemplate(); context: triggerContext()\" />\n } @else {\n @if (placeholderTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: triggerContext()\" />\n } @else {\n <span class=\"placeholder\">{{ placeholder() }}</span>\n }\n }\n</button>\n\n<ng-template #content>\n <cui-dropdown-wrapper [width]=\"dropdownWidth()\">\n @if (contentTemplate(); as dropdownContent) {\n <ng-container *ngTemplateOutlet=\"dropdownContent\" />\n } @else {\n <div class=\"list\">\n @for (context of optionContexts(); track context.$implicit) {\n <button\n type=\"button\"\n class=\"option\"\n [class.option_selected]=\"context.isSelected\"\n (click)=\"onSelect(context.$implicit)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: context\" />\n } @else {\n <ng-container\n *ngTemplateOutlet=\"\n triggerTemplate();\n context: { $implicit: context.$implicit, isOpen: false }\n \"\n />\n }\n </button>\n } @empty {\n @if (emptyPlaceholder()) {\n <cui-empty-state\n [subtitle]=\"emptyPlaceholder()\"\n class=\"empty\"\n />\n }\n }\n </div>\n }\n </cui-dropdown-wrapper>\n</ng-template>\n", styles: [":host{display:block;width:100%}.trigger{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;font-weight:400;font-size:14px;line-height:20px;border-radius:8px;border:1px solid var(--cui-base-200);width:100%;height:100%;text-align:left;color:var(--cui-base-900);background:var(--cui-base-50);cursor:pointer}.trigger:disabled{opacity:.5;cursor:not-allowed}.trigger:hover:not(:disabled){border-color:var(--cui-base-300)}.list{display:flex;flex-direction:column;gap:0}.empty{padding:16px;max-width:240px}.option{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;font-weight:400;font-size:14px;line-height:20px;width:100%;border:none;text-align:left;color:var(--cui-base-900);background:transparent;cursor:pointer}.option:hover{background:var(--cui-base-10)}.option_selected{background:var(--cui-base-50)}.placeholder{color:var(--cui-base-400)}\n"], dependencies: [{ kind: "directive", type: CuiDropdownDirective, selector: "[cuiDropdown]", inputs: ["cuiDropdown", "orientation"], outputs: ["isOpened"], exportAs: ["cuiDropdown"] }, { kind: "component", type: CuiDropdownWrapperComponent, selector: "cui-dropdown-wrapper", inputs: ["title", "width", "maxHeight"] }, { kind: "component", type: CuiEmptyStateComponent, selector: "cui-empty-state, [cuiEmptyState]", inputs: ["title", "subtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTemplateSelectComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'cui-template-select', standalone: true, imports: [CuiDropdownDirective, CuiDropdownWrapperComponent, CuiEmptyStateComponent, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n type=\"button\"\n [cuiDropdown]=\"content\"\n [orientation]=\"orientation()\"\n [disabled]=\"disabled()\"\n class=\"trigger\"\n (isOpened)=\"onOpenChange($event)\"\n>\n @if (value()) {\n <ng-container *ngTemplateOutlet=\"triggerTemplate(); context: triggerContext()\" />\n } @else {\n @if (placeholderTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: triggerContext()\" />\n } @else {\n <span class=\"placeholder\">{{ placeholder() }}</span>\n }\n }\n</button>\n\n<ng-template #content>\n <cui-dropdown-wrapper [width]=\"dropdownWidth()\">\n @if (contentTemplate(); as dropdownContent) {\n <ng-container *ngTemplateOutlet=\"dropdownContent\" />\n } @else {\n <div class=\"list\">\n @for (context of optionContexts(); track context.$implicit) {\n <button\n type=\"button\"\n class=\"option\"\n [class.option_selected]=\"context.isSelected\"\n (click)=\"onSelect(context.$implicit)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: context\" />\n } @else {\n <ng-container\n *ngTemplateOutlet=\"\n triggerTemplate();\n context: { $implicit: context.$implicit, isOpen: false }\n \"\n />\n }\n </button>\n } @empty {\n @if (emptyPlaceholder()) {\n <cui-empty-state\n [subtitle]=\"emptyPlaceholder()\"\n class=\"empty\"\n />\n }\n }\n </div>\n }\n </cui-dropdown-wrapper>\n</ng-template>\n", styles: [":host{display:block;width:100%}.trigger{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;font-weight:400;font-size:14px;line-height:20px;border-radius:8px;border:1px solid var(--cui-base-200);width:100%;height:100%;text-align:left;color:var(--cui-base-900);background:var(--cui-base-50);cursor:pointer}.trigger:disabled{opacity:.5;cursor:not-allowed}.trigger:hover:not(:disabled){border-color:var(--cui-base-300)}.list{display:flex;flex-direction:column;gap:0}.empty{padding:16px;max-width:240px}.option{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;font-weight:400;font-size:14px;line-height:20px;width:100%;border:none;text-align:left;color:var(--cui-base-900);background:transparent;cursor:pointer}.option:hover{background:var(--cui-base-10)}.option_selected{background:var(--cui-base-50)}.placeholder{color:var(--cui-base-400)}\n"] }]
|
|
46
|
+
}] });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUtc2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy90ZW1wbGF0ZS1zZWxlY3QvdGVtcGxhdGUtc2VsZWN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy90ZW1wbGF0ZS1zZWxlY3QvdGVtcGxhdGUtc2VsZWN0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ25ELE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFFBQVEsRUFDUixLQUFLLEVBQ0wsS0FBSyxFQUNMLE1BQU0sRUFDTixNQUFNLEVBQ04sV0FBVyxFQUNYLFNBQVMsRUFDWixNQUFNLGVBQWUsQ0FBQztBQVV2QixPQUFPLEVBQUUsb0JBQW9CLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDaEYsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBVXhELE1BQU0sT0FBTywwQkFBMEI7SUFSdkM7UUFTdUIsV0FBTSxHQUFHLE1BQU0sQ0FBVSxLQUFLLENBQUMsQ0FBQztRQUVoQyxtQkFBYyxHQUFHLFFBQVEsQ0FDeEMsR0FBRyxFQUFFLENBQUMsSU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IgKm5nVGVtcGxhdGVPdXRsZXQ9XCJkcm9wZG93bkNvbnRlbnRcIiAvPlxuICAgICAgICB9IEBlbHNlIHtcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJsaXN0XCI+XG4gICAgICAgICAgICAgICAgQGZvciAoY29udGV4dCBvZiBvcHRpb25Db250ZXh0cygpOyB0cmFjayBjb250ZXh0LiRpbXBsaWNpdCkge1xuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwib3B0aW9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtjbGFzcy5vcHRpb25fc2VsZWN0ZWRdPVwiY29udGV4dC5pc1NlbGVjdGVkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJvblNlbGVjdChjb250ZXh0LiRpbXBsaWNpdClcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICBAaWYgKG9wdGlvblRlbXBsYXRlKCk7IGFzIHRlbXBsYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInRlbXBsYXRlOyBjb250ZXh0OiBjb250ZXh0XCIgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgIH0gQGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXJUZW1wbGF0ZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGV4dDogeyAkaW1wbGljaXQ6IGNvbnRleHQuJGltcGxpY2l0LCBpc09wZW46IGZhbHNlIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICB9IEBlbXB0eSB7XG4gICAgICAgICAgICAgICAgICAgIEBpZiAoZW1wdHlQbGFjZWhvbGRlcigpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICA8Y3VpLWVtcHR5LXN0YXRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW3N1YnRpdGxlXT1cImVtcHR5UGxhY2Vob2xkZXIoKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJlbXB0eVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIH1cbiAgICA8L2N1aS1kcm9wZG93bi13cmFwcGVyPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUtc2VsZWN0LmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvdGVtcGxhdGUtc2VsZWN0L3RlbXBsYXRlLXNlbGVjdC5pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEN1aU51bGxhYmxlIH0gZnJvbSAnQGN1YnktdWkvY2RrJztcblxuZXhwb3J0IGludGVyZmFjZSBDdWlUZW1wbGF0ZVNlbGVjdE9wdGlvbjxUVmFsdWU+IHtcbiAgICByZWFkb25seSB2YWx1ZTogVFZhbHVlO1xufVxuXG5leHBvcnQgdHlwZSBDdWlUZW1wbGF0ZVNlbGVjdFZhbHVlPFRPcHRpb24+ID0gVE9wdGlvbiBleHRlbmRzIEN1aVRlbXBsYXRlU2VsZWN0T3B0aW9uPGluZmVyIFRWYWx1ZT4gPyBUVmFsdWUgOiBuZXZlcjtcblxuZXhwb3J0IGludGVyZmFjZSBDdWlUZW1wbGF0ZVNlbGVjdE9wdGlvbkNvbnRleHQ8VE9wdGlvbj4ge1xuICAgIHJlYWRvbmx5ICRpbXBsaWNpdDogVE9wdGlvbjtcbiAgICByZWFkb25seSBpc1NlbGVjdGVkOiBib29sZWFuO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEN1aVRlbXBsYXRlU2VsZWN0VHJpZ2dlckNvbnRleHQ8VE9wdGlvbj4ge1xuICAgIHJlYWRvbmx5ICRpbXBsaWNpdDogQ3VpTnVsbGFibGU8VE9wdGlvbj47XG4gICAgcmVhZG9ubHkgaXNPcGVuOiBib29sZWFuO1xufVxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, inject, Renderer2, input, model, effect, Directive, InjectionToken, Input, HostBinding, ChangeDetectorRef, ViewChild, EventEmitter, Output, NgModule, Injector, Injectable, SkipSelf, Optional, DestroyRef, NgZone, signal, makeEnvironmentProviders, APP_INITIALIZER, ErrorHandler, Self, INJECTOR, TemplateRef, forwardRef, ViewEncapsulation, computed, ContentChildren, output, ElementRef, HostListener, ViewContainerRef, booleanAttribute, untracked, Pipe
|
|
2
|
+
import { Component, ChangeDetectionStrategy, inject, Renderer2, input, model, effect, Directive, InjectionToken, Input, HostBinding, ChangeDetectorRef, ViewChild, EventEmitter, Output, NgModule, Injector, Injectable, SkipSelf, Optional, DestroyRef, NgZone, signal, makeEnvironmentProviders, APP_INITIALIZER, ErrorHandler, Self, INJECTOR, TemplateRef, forwardRef, ViewEncapsulation, computed, ContentChildren, output, ElementRef, HostListener, ViewContainerRef, booleanAttribute, viewChild, untracked, Pipe } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, Location, NgForOf, NgIf, NgComponentOutlet, NgTemplateOutlet, NgFor, NgClass, UpperCasePipe, AsyncPipe, KeyValuePipe, LowerCasePipe, TitleCasePipe } from '@angular/common';
|
|
5
5
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -4366,6 +4366,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
4366
4366
|
}, template: "@if (title(); as title) {\n <p class=\"title\">{{ title }}</p>\n}\n@if (subtitle(); as subtitle) {\n <p class=\"subtitle\">{{ subtitle }}</p>\n}\n<ng-content />\n", styles: [":host{--padding-vertical: 24px;--padding-horizontal: 0;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;padding:16px;margin:auto;height:100%;text-align:center}:host._with-title{padding:var(--padding-vertical) var(--padding-horizontal)}.title,.subtitle{margin:0}.title{font-weight:500;font-size:16px;line-height:24px}.subtitle{font-weight:400;font-size:14px;line-height:20px;color:var(--cui-base-500)}\n"] }]
|
|
4367
4367
|
}] });
|
|
4368
4368
|
|
|
4369
|
+
class CuiTemplateSelectComponent {
|
|
4370
|
+
constructor() {
|
|
4371
|
+
this.isOpen = signal(false);
|
|
4372
|
+
this.selectedOption = computed(() => this.options().find((option) => option.value === this.value()) ?? null);
|
|
4373
|
+
this.triggerContext = computed(() => ({
|
|
4374
|
+
$implicit: this.selectedOption(),
|
|
4375
|
+
isOpen: this.isOpen()
|
|
4376
|
+
}));
|
|
4377
|
+
this.optionContexts = computed(() => this.options().map((option) => ({ $implicit: option, isSelected: option.value === this.value() })));
|
|
4378
|
+
this.placeholderTemplate = computed(() => {
|
|
4379
|
+
const placeholder = this.placeholder();
|
|
4380
|
+
return placeholder instanceof TemplateRef ? placeholder : null;
|
|
4381
|
+
});
|
|
4382
|
+
this.dropdown = viewChild.required(CuiDropdownDirective);
|
|
4383
|
+
this.value = model(null);
|
|
4384
|
+
this.options = input([]);
|
|
4385
|
+
this.triggerTemplate = input.required();
|
|
4386
|
+
this.optionTemplate = input();
|
|
4387
|
+
this.contentTemplate = input();
|
|
4388
|
+
this.placeholder = input('');
|
|
4389
|
+
this.emptyPlaceholder = input('');
|
|
4390
|
+
this.disabled = input(false);
|
|
4391
|
+
this.orientation = input('stretch');
|
|
4392
|
+
this.dropdownWidth = input('auto');
|
|
4393
|
+
this.openChange = output();
|
|
4394
|
+
}
|
|
4395
|
+
onSelect(option) {
|
|
4396
|
+
this.value.set(option.value);
|
|
4397
|
+
this.dropdown().close();
|
|
4398
|
+
}
|
|
4399
|
+
onOpenChange(isOpen) {
|
|
4400
|
+
this.isOpen.set(isOpen);
|
|
4401
|
+
this.openChange.emit(isOpen);
|
|
4402
|
+
}
|
|
4403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTemplateSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4404
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiTemplateSelectComponent, isStandalone: true, selector: "cui-template-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, triggerTemplate: { classPropertyName: "triggerTemplate", publicName: "triggerTemplate", isSignal: true, isRequired: true, transformFunction: null }, optionTemplate: { classPropertyName: "optionTemplate", publicName: "optionTemplate", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, emptyPlaceholder: { classPropertyName: "emptyPlaceholder", publicName: "emptyPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, dropdownWidth: { classPropertyName: "dropdownWidth", publicName: "dropdownWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", openChange: "openChange" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: CuiDropdownDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<button\n type=\"button\"\n [cuiDropdown]=\"content\"\n [orientation]=\"orientation()\"\n [disabled]=\"disabled()\"\n class=\"trigger\"\n (isOpened)=\"onOpenChange($event)\"\n>\n @if (value()) {\n <ng-container *ngTemplateOutlet=\"triggerTemplate(); context: triggerContext()\" />\n } @else {\n @if (placeholderTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: triggerContext()\" />\n } @else {\n <span class=\"placeholder\">{{ placeholder() }}</span>\n }\n }\n</button>\n\n<ng-template #content>\n <cui-dropdown-wrapper [width]=\"dropdownWidth()\">\n @if (contentTemplate(); as dropdownContent) {\n <ng-container *ngTemplateOutlet=\"dropdownContent\" />\n } @else {\n <div class=\"list\">\n @for (context of optionContexts(); track context.$implicit) {\n <button\n type=\"button\"\n class=\"option\"\n [class.option_selected]=\"context.isSelected\"\n (click)=\"onSelect(context.$implicit)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: context\" />\n } @else {\n <ng-container\n *ngTemplateOutlet=\"\n triggerTemplate();\n context: { $implicit: context.$implicit, isOpen: false }\n \"\n />\n }\n </button>\n } @empty {\n @if (emptyPlaceholder()) {\n <cui-empty-state\n [subtitle]=\"emptyPlaceholder()\"\n class=\"empty\"\n />\n }\n }\n </div>\n }\n </cui-dropdown-wrapper>\n</ng-template>\n", styles: [":host{display:block;width:100%}.trigger{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;font-weight:400;font-size:14px;line-height:20px;border-radius:8px;border:1px solid var(--cui-base-200);width:100%;height:100%;text-align:left;color:var(--cui-base-900);background:var(--cui-base-50);cursor:pointer}.trigger:disabled{opacity:.5;cursor:not-allowed}.trigger:hover:not(:disabled){border-color:var(--cui-base-300)}.list{display:flex;flex-direction:column;gap:0}.empty{padding:16px;max-width:240px}.option{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;font-weight:400;font-size:14px;line-height:20px;width:100%;border:none;text-align:left;color:var(--cui-base-900);background:transparent;cursor:pointer}.option:hover{background:var(--cui-base-10)}.option_selected{background:var(--cui-base-50)}.placeholder{color:var(--cui-base-400)}\n"], dependencies: [{ kind: "directive", type: CuiDropdownDirective, selector: "[cuiDropdown]", inputs: ["cuiDropdown", "orientation"], outputs: ["isOpened"], exportAs: ["cuiDropdown"] }, { kind: "component", type: CuiDropdownWrapperComponent, selector: "cui-dropdown-wrapper", inputs: ["title", "width", "maxHeight"] }, { kind: "component", type: CuiEmptyStateComponent, selector: "cui-empty-state, [cuiEmptyState]", inputs: ["title", "subtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4405
|
+
}
|
|
4406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiTemplateSelectComponent, decorators: [{
|
|
4407
|
+
type: Component,
|
|
4408
|
+
args: [{ selector: 'cui-template-select', standalone: true, imports: [CuiDropdownDirective, CuiDropdownWrapperComponent, CuiEmptyStateComponent, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n type=\"button\"\n [cuiDropdown]=\"content\"\n [orientation]=\"orientation()\"\n [disabled]=\"disabled()\"\n class=\"trigger\"\n (isOpened)=\"onOpenChange($event)\"\n>\n @if (value()) {\n <ng-container *ngTemplateOutlet=\"triggerTemplate(); context: triggerContext()\" />\n } @else {\n @if (placeholderTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: triggerContext()\" />\n } @else {\n <span class=\"placeholder\">{{ placeholder() }}</span>\n }\n }\n</button>\n\n<ng-template #content>\n <cui-dropdown-wrapper [width]=\"dropdownWidth()\">\n @if (contentTemplate(); as dropdownContent) {\n <ng-container *ngTemplateOutlet=\"dropdownContent\" />\n } @else {\n <div class=\"list\">\n @for (context of optionContexts(); track context.$implicit) {\n <button\n type=\"button\"\n class=\"option\"\n [class.option_selected]=\"context.isSelected\"\n (click)=\"onSelect(context.$implicit)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: context\" />\n } @else {\n <ng-container\n *ngTemplateOutlet=\"\n triggerTemplate();\n context: { $implicit: context.$implicit, isOpen: false }\n \"\n />\n }\n </button>\n } @empty {\n @if (emptyPlaceholder()) {\n <cui-empty-state\n [subtitle]=\"emptyPlaceholder()\"\n class=\"empty\"\n />\n }\n }\n </div>\n }\n </cui-dropdown-wrapper>\n</ng-template>\n", styles: [":host{display:block;width:100%}.trigger{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between;font-weight:400;font-size:14px;line-height:20px;border-radius:8px;border:1px solid var(--cui-base-200);width:100%;height:100%;text-align:left;color:var(--cui-base-900);background:var(--cui-base-50);cursor:pointer}.trigger:disabled{opacity:.5;cursor:not-allowed}.trigger:hover:not(:disabled){border-color:var(--cui-base-300)}.list{display:flex;flex-direction:column;gap:0}.empty{padding:16px;max-width:240px}.option{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;font-weight:400;font-size:14px;line-height:20px;width:100%;border:none;text-align:left;color:var(--cui-base-900);background:transparent;cursor:pointer}.option:hover{background:var(--cui-base-10)}.option_selected{background:var(--cui-base-50)}.placeholder{color:var(--cui-base-400)}\n"] }]
|
|
4409
|
+
}] });
|
|
4410
|
+
|
|
4369
4411
|
const IS_SIDEBAR_OPENED_STORAGE_KEY = 'is-sidebar-opened';
|
|
4370
4412
|
|
|
4371
4413
|
class CuiSidebarService extends CuiRenderDynamicComponentsService {
|
|
@@ -14095,5 +14137,5 @@ const CuiTranslations = {
|
|
|
14095
14137
|
* Generated bundle index. Do not edit.
|
|
14096
14138
|
*/
|
|
14097
14139
|
|
|
14098
|
-
export { AlertHintComponent, AngularOutsideLoaderService, AssigneeRoleItemComponent, AssigneeRolesTabsComponent, ButtonChangeThemeComponent, CUI_ACTIVITY_SERVICE_TOKEN, CUI_ALERTS, CUI_ALERT_CONTEXT, CUI_ALERT_DEFAULT_OPTIONS, CUI_ALERT_OPTIONS, CUI_ANIMATIONS_DEFAULT_DURATION, CUI_BADGE_DEFAULT_OPTIONS, CUI_BADGE_OPTIONS, CUI_BANNER_DEFAULT_OPTIONS, CUI_BANNER_OPTIONS, CUI_BUTTON_DEFAULT_OPTIONS, CUI_BUTTON_OPTIONS, CUI_CATEGORIES_TREE_DATA_SOURCE_SERVICE_TOKEN, CUI_DEFAULT_THEME, CUI_DIALOGS, CUI_DIALOG_CONTEXT, CUI_DIALOG_DEFAULT_OPTIONS, CUI_DIALOG_OPTIONS, CUI_FILTER_BAR_DEFAULT_TRANSLATIONS, CUI_INPUT_TIME_DEFAULT_OPTIONS, CUI_INPUT_TIME_OPTIONS, CUI_NOTIFICATION_DEFAULT_OPTIONS, CUI_NOTIFICATION_ICONS, CUI_NOTIFICATION_ICON_OPTIONS, CUI_NOTIFICATION_ICON_OPTIONS_DEFAULT_MODE, CUI_NOTIFICATION_ICON_OPTIONS_LIGHT_MODE, CUI_NOTIFICATION_OPTIONS, CUI_RESOURCE_STATE_SERVICE_TOKEN, CUI_ROOT_SELECTOR, CUI_STORAGE_LIST_SERVICE_TOKEN, CUI_SUBJECT_MODAL_SERVICE_TOKEN, CUI_TABS_SERVICE_TOKEN, CUI_TEXT_FIELD_CONTROLLER, CUI_TEXT_FIELD_ICON_LEFT, CUI_TEXT_FIELD_ID, CUI_TEXT_FIELD_IS_ERROR, CUI_TEXT_FIELD_PLACEHOLDER, CUI_TEXT_FIELD_SIZE, CUI_TEXT_FILED_CONTROLLER_PROVIDER, CUI_THEME, CUI_THEME_STORAGE_DEFAULT_KEY, CUI_THEME_STORAGE_KEY, CUI_TOOLTIP_COMPONENT, CUI_TOOLTIP_DEFAULT_OPTIONS, CUI_TOOLTIP_DIRECTIONS, CUI_TOOLTIP_OPTIONS, CUI_TOOLTIP_PROVIDERS, CUI_USED_ELEMENTS_SERVICE_TOKEN, CUI_UTILITY_SERVICE_TOKEN, ContentHeaderComponent, CuiAbstractTabsComponent, CuiAccessor, CuiAccordionComponent, CuiAccordionDirective, CuiAccordionItemComponent, CuiAccordionModule, CuiActivityBaseService, CuiActivityImplService, CuiAlertComponent, CuiAlertModule, CuiAlertService, CuiAlertsComponent, CuiAttachesTool, CuiAuthBase, CuiAuthService, CuiBadgeComponent, CuiBadgeModule, CuiBannerComponent, CuiBannerModule, CuiBreadcrumbComponent, CuiBreadcrumbsComponent, CuiBreadcrumbsModule, CuiBrowserLoginStrategyService, CuiButtonComponent, CuiButtonGroupComponent, CuiButtonGroupModule, CuiButtonModule, CuiCardWrapperComponent, CuiCategoriesComponent, CuiCategoriesTreeComponent, CuiCategoriesTreeListComponent, CuiCategoryTreeItemComponent, CuiCategoryTreeStateService, CuiCheckListBlockListItemActionCardComponent, CuiCheckListBlockListItemActionWithVerificationComponent, CuiCheckListBlockListItemActionWithoutVerificationComponent, CuiCheckListBlockListItemEvaluationComponent, CuiCheckListBlockListItemEvaluationCriteriaComponent, CuiCheckListBlockService, CuiCheckboxComponent, CuiCheckboxModule, CuiChecklistBlockComponent, CuiChecklistBlockListComponent, CuiChecklistBlockListItemContainerComponent, CuiChecklistBlockTitleControlComponent, CuiCircleLoaderComponent, CuiCollapsiblePanelComponent, CuiContentWrapperComponent, CuiContextMenuComponent, CuiContextMenuModule, CuiCriterionInfoComponent, CuiCriterionInfoFormComponent, CuiCriterionModalCreateComponent, CuiCriterionReadonlyInfoComponent, CuiDateRangeCalendarComponent, CuiDateRangeCalendarModule, CuiDeleteModalComponent, CuiDialogActionsComponent, CuiDialogComponent, CuiDialogHeaderComponent, CuiDialogModule, CuiDialogService, CuiDialogsComponent, CuiDriver, CuiDriverDirective, CuiDropdownDirective, CuiDropdownWrapperComponent, CuiEditorBlockComponent, CuiEditorComponent, CuiEditorModalComponent, CuiEditorReadonlyComponent, CuiEditorTranslations, CuiEmptyStateComponent, CuiFileIconComponent, CuiFileUploader, CuiFileUploaderStatus, CuiFilterBarComponent, CuiFilterBarModule, CuiFormFieldComponent, CuiFormFieldModule, CuiFramerPreviewComponent, CuiGeneralControlErrorHintComponent, CuiGhostInputComponent, CuiGlobalErrorHandler, CuiHeaderTool, CuiHintComponent, CuiHintModule, CuiHybridStorageService, CuiIconButtonComponent, CuiIconButtonModule, CuiImageTool, CuiInputModule, CuiInputNumberComponent, CuiInputNumberModule, CuiInputPasswordComponent, CuiInputPasswordModule, CuiInputTextComponent, CuiInputTimeComponent, CuiInputTimeModule, CuiInstructionInfoComponent, CuiInstructionInfoFormComponent, CuiInstructionModalCreateComponent, CuiInstructionReadonlyInfoComponent, CuiLabelComponent, CuiLabelModule, CuiLayoutComponent, CuiLetterBoxComponent, CuiLibTranslations, CuiLinearLoaderComponent, CuiLinkMarker, CuiListTool, CuiLoaderComponent, CuiLoaderService, CuiLoadingState, CuiNotificationComponent, CuiNotificationModule, CuiPositionAccessor, CuiPositionService, CuiPulseLoaderComponent, CuiRadioComponent, CuiRadioModule, CuiReadonlyCriterionModalComponent, CuiReadonlyInstructionModalComponent, CuiReadonlyUtilityModalComponent, CuiRectAccessor, CuiRenderDynamicComponentsComponent, CuiRenderDynamicComponentsService, CuiRoleMarker, CuiRootComponent, CuiRootModule, CuiSelectComponent, CuiSelectModalComponent, CuiSelectModalFolderComponent, CuiSelectModalSearchComponent, CuiSelectModalService, CuiSelectModule, CuiSelectedCategoryService, CuiSidebarContainerComponent, CuiSidebarHeaderComponent, CuiSidebarNavigationComponent, CuiSidebarNavigationContainerComponent, CuiSidebarNavigationItemComponent, CuiSidebarService, CuiSkeleton, CuiStatedLoaderComponent, CuiStorageListComponent, CuiSvgComponent, CuiSvgModule, CuiTabDirective, CuiTabsComponent, CuiTabsServiceImpl, CuiTextFieldController, CuiTextFieldControllerModule, CuiTextFieldIconLeftDirective, CuiTextFieldIdDirective, CuiTextFieldIsErrorDirective, CuiTextFieldPlaceholderDirective, CuiTextFieldSizeDirective, CuiTextareaComponent, CuiTextareaModule, CuiThemeService, CuiTimePipe, CuiToggleComponent, CuiToggleModule, CuiToolMarker, CuiTooltip, CuiTooltipComponent, CuiTooltipDescribe, CuiTooltipDirective, CuiTooltipDriver, CuiTooltipHost, CuiTooltipHover, CuiTooltipManual, CuiTooltipOptionsDirective, CuiTooltipOverflow, CuiTooltipPointer, CuiTooltipPosition, CuiTooltipService, CuiTooltipUnstyled, CuiTooltipUnstyledComponent, CuiTooltips, CuiTranslations, CuiTreeComponent, CuiUserActionContextMenuComponent, CuiUtilityModalComponent, CuiUtilityModalCreateComponent, CuiUtilityReadonlyThumbnailComponent, CuiUtilityThumbnailComponent, CuiVehicle, CuiVideoTool, CuiVisualViewportService, FileSizePipe, InsertedComponent, ModalDividedSectionComponent, ModalHeaderComponent, ModalHeaderInsertedButtonsComponent, ModalInfoTabComponent, ModalOperationPartComponent, ModalResourcesTabComponent, OptionsButtonComponent, RenderDynamicModalComponent, ResourceStateBaseService, ResourcesBlockComponent, ResourcesBlockPartComponent, ResourcesBlockTabsComponent$1 as ResourcesBlockTabsComponent, ResourcesOptionsComponent, SubjectModalBaseService, UTILITY_MODAL_SERVICE_TOKEN, UsedElementsBaseService, UtilityBaseService, UtilityInfoReadonlyComponent, createEditorTools, cuiAsDriver, cuiAsPositionAccessor, cuiAsRectAccessor, cuiAsVehicle, cuiAuthErrorInterceptor, cuiAuthInterceptor, cuiCheckAuthFailureEvent, cuiCheckFixedPosition, cuiCreateDefaultValidators, cuiErrorHandlerInterceptor, cuiFallbackAccessor, cuiGetDuration, cuiIsObscured, cuiLoaderInterceptor, cuiOverrideOptions, cuiPositionAccessorFor, cuiProvideAccessor, cuiProvideEditor, cuiRectAccessorFor, cuiRemoveSpaces, cuiReplace, cuiToAnimationOptions, cuiTooltipOptionsProvider, cuiXNdjsonInterceptor, handleError, openFileInBrowser, presetConfigToken, provideCuiAuth, provideCuiErrorHandler, provideCuiTabs, setLoading, sseStreamReaderInterceptor };
|
|
14140
|
+
export { AlertHintComponent, AngularOutsideLoaderService, AssigneeRoleItemComponent, AssigneeRolesTabsComponent, ButtonChangeThemeComponent, CUI_ACTIVITY_SERVICE_TOKEN, CUI_ALERTS, CUI_ALERT_CONTEXT, CUI_ALERT_DEFAULT_OPTIONS, CUI_ALERT_OPTIONS, CUI_ANIMATIONS_DEFAULT_DURATION, CUI_BADGE_DEFAULT_OPTIONS, CUI_BADGE_OPTIONS, CUI_BANNER_DEFAULT_OPTIONS, CUI_BANNER_OPTIONS, CUI_BUTTON_DEFAULT_OPTIONS, CUI_BUTTON_OPTIONS, CUI_CATEGORIES_TREE_DATA_SOURCE_SERVICE_TOKEN, CUI_DEFAULT_THEME, CUI_DIALOGS, CUI_DIALOG_CONTEXT, CUI_DIALOG_DEFAULT_OPTIONS, CUI_DIALOG_OPTIONS, CUI_FILTER_BAR_DEFAULT_TRANSLATIONS, CUI_INPUT_TIME_DEFAULT_OPTIONS, CUI_INPUT_TIME_OPTIONS, CUI_NOTIFICATION_DEFAULT_OPTIONS, CUI_NOTIFICATION_ICONS, CUI_NOTIFICATION_ICON_OPTIONS, CUI_NOTIFICATION_ICON_OPTIONS_DEFAULT_MODE, CUI_NOTIFICATION_ICON_OPTIONS_LIGHT_MODE, CUI_NOTIFICATION_OPTIONS, CUI_RESOURCE_STATE_SERVICE_TOKEN, CUI_ROOT_SELECTOR, CUI_STORAGE_LIST_SERVICE_TOKEN, CUI_SUBJECT_MODAL_SERVICE_TOKEN, CUI_TABS_SERVICE_TOKEN, CUI_TEXT_FIELD_CONTROLLER, CUI_TEXT_FIELD_ICON_LEFT, CUI_TEXT_FIELD_ID, CUI_TEXT_FIELD_IS_ERROR, CUI_TEXT_FIELD_PLACEHOLDER, CUI_TEXT_FIELD_SIZE, CUI_TEXT_FILED_CONTROLLER_PROVIDER, CUI_THEME, CUI_THEME_STORAGE_DEFAULT_KEY, CUI_THEME_STORAGE_KEY, CUI_TOOLTIP_COMPONENT, CUI_TOOLTIP_DEFAULT_OPTIONS, CUI_TOOLTIP_DIRECTIONS, CUI_TOOLTIP_OPTIONS, CUI_TOOLTIP_PROVIDERS, CUI_USED_ELEMENTS_SERVICE_TOKEN, CUI_UTILITY_SERVICE_TOKEN, ContentHeaderComponent, CuiAbstractTabsComponent, CuiAccessor, CuiAccordionComponent, CuiAccordionDirective, CuiAccordionItemComponent, CuiAccordionModule, CuiActivityBaseService, CuiActivityImplService, CuiAlertComponent, CuiAlertModule, CuiAlertService, CuiAlertsComponent, CuiAttachesTool, CuiAuthBase, CuiAuthService, CuiBadgeComponent, CuiBadgeModule, CuiBannerComponent, CuiBannerModule, CuiBreadcrumbComponent, CuiBreadcrumbsComponent, CuiBreadcrumbsModule, CuiBrowserLoginStrategyService, CuiButtonComponent, CuiButtonGroupComponent, CuiButtonGroupModule, CuiButtonModule, CuiCardWrapperComponent, CuiCategoriesComponent, CuiCategoriesTreeComponent, CuiCategoriesTreeListComponent, CuiCategoryTreeItemComponent, CuiCategoryTreeStateService, CuiCheckListBlockListItemActionCardComponent, CuiCheckListBlockListItemActionWithVerificationComponent, CuiCheckListBlockListItemActionWithoutVerificationComponent, CuiCheckListBlockListItemEvaluationComponent, CuiCheckListBlockListItemEvaluationCriteriaComponent, CuiCheckListBlockService, CuiCheckboxComponent, CuiCheckboxModule, CuiChecklistBlockComponent, CuiChecklistBlockListComponent, CuiChecklistBlockListItemContainerComponent, CuiChecklistBlockTitleControlComponent, CuiCircleLoaderComponent, CuiCollapsiblePanelComponent, CuiContentWrapperComponent, CuiContextMenuComponent, CuiContextMenuModule, CuiCriterionInfoComponent, CuiCriterionInfoFormComponent, CuiCriterionModalCreateComponent, CuiCriterionReadonlyInfoComponent, CuiDateRangeCalendarComponent, CuiDateRangeCalendarModule, CuiDeleteModalComponent, CuiDialogActionsComponent, CuiDialogComponent, CuiDialogHeaderComponent, CuiDialogModule, CuiDialogService, CuiDialogsComponent, CuiDriver, CuiDriverDirective, CuiDropdownDirective, CuiDropdownWrapperComponent, CuiEditorBlockComponent, CuiEditorComponent, CuiEditorModalComponent, CuiEditorReadonlyComponent, CuiEditorTranslations, CuiEmptyStateComponent, CuiFileIconComponent, CuiFileUploader, CuiFileUploaderStatus, CuiFilterBarComponent, CuiFilterBarModule, CuiFormFieldComponent, CuiFormFieldModule, CuiFramerPreviewComponent, CuiGeneralControlErrorHintComponent, CuiGhostInputComponent, CuiGlobalErrorHandler, CuiHeaderTool, CuiHintComponent, CuiHintModule, CuiHybridStorageService, CuiIconButtonComponent, CuiIconButtonModule, CuiImageTool, CuiInputModule, CuiInputNumberComponent, CuiInputNumberModule, CuiInputPasswordComponent, CuiInputPasswordModule, CuiInputTextComponent, CuiInputTimeComponent, CuiInputTimeModule, CuiInstructionInfoComponent, CuiInstructionInfoFormComponent, CuiInstructionModalCreateComponent, CuiInstructionReadonlyInfoComponent, CuiLabelComponent, CuiLabelModule, CuiLayoutComponent, CuiLetterBoxComponent, CuiLibTranslations, CuiLinearLoaderComponent, CuiLinkMarker, CuiListTool, CuiLoaderComponent, CuiLoaderService, CuiLoadingState, CuiNotificationComponent, CuiNotificationModule, CuiPositionAccessor, CuiPositionService, CuiPulseLoaderComponent, CuiRadioComponent, CuiRadioModule, CuiReadonlyCriterionModalComponent, CuiReadonlyInstructionModalComponent, CuiReadonlyUtilityModalComponent, CuiRectAccessor, CuiRenderDynamicComponentsComponent, CuiRenderDynamicComponentsService, CuiRoleMarker, CuiRootComponent, CuiRootModule, CuiSelectComponent, CuiSelectModalComponent, CuiSelectModalFolderComponent, CuiSelectModalSearchComponent, CuiSelectModalService, CuiSelectModule, CuiSelectedCategoryService, CuiSidebarContainerComponent, CuiSidebarHeaderComponent, CuiSidebarNavigationComponent, CuiSidebarNavigationContainerComponent, CuiSidebarNavigationItemComponent, CuiSidebarService, CuiSkeleton, CuiStatedLoaderComponent, CuiStorageListComponent, CuiSvgComponent, CuiSvgModule, CuiTabDirective, CuiTabsComponent, CuiTabsServiceImpl, CuiTemplateSelectComponent, CuiTextFieldController, CuiTextFieldControllerModule, CuiTextFieldIconLeftDirective, CuiTextFieldIdDirective, CuiTextFieldIsErrorDirective, CuiTextFieldPlaceholderDirective, CuiTextFieldSizeDirective, CuiTextareaComponent, CuiTextareaModule, CuiThemeService, CuiTimePipe, CuiToggleComponent, CuiToggleModule, CuiToolMarker, CuiTooltip, CuiTooltipComponent, CuiTooltipDescribe, CuiTooltipDirective, CuiTooltipDriver, CuiTooltipHost, CuiTooltipHover, CuiTooltipManual, CuiTooltipOptionsDirective, CuiTooltipOverflow, CuiTooltipPointer, CuiTooltipPosition, CuiTooltipService, CuiTooltipUnstyled, CuiTooltipUnstyledComponent, CuiTooltips, CuiTranslations, CuiTreeComponent, CuiUserActionContextMenuComponent, CuiUtilityModalComponent, CuiUtilityModalCreateComponent, CuiUtilityReadonlyThumbnailComponent, CuiUtilityThumbnailComponent, CuiVehicle, CuiVideoTool, CuiVisualViewportService, FileSizePipe, InsertedComponent, ModalDividedSectionComponent, ModalHeaderComponent, ModalHeaderInsertedButtonsComponent, ModalInfoTabComponent, ModalOperationPartComponent, ModalResourcesTabComponent, OptionsButtonComponent, RenderDynamicModalComponent, ResourceStateBaseService, ResourcesBlockComponent, ResourcesBlockPartComponent, ResourcesBlockTabsComponent$1 as ResourcesBlockTabsComponent, ResourcesOptionsComponent, SubjectModalBaseService, UTILITY_MODAL_SERVICE_TOKEN, UsedElementsBaseService, UtilityBaseService, UtilityInfoReadonlyComponent, createEditorTools, cuiAsDriver, cuiAsPositionAccessor, cuiAsRectAccessor, cuiAsVehicle, cuiAuthErrorInterceptor, cuiAuthInterceptor, cuiCheckAuthFailureEvent, cuiCheckFixedPosition, cuiCreateDefaultValidators, cuiErrorHandlerInterceptor, cuiFallbackAccessor, cuiGetDuration, cuiIsObscured, cuiLoaderInterceptor, cuiOverrideOptions, cuiPositionAccessorFor, cuiProvideAccessor, cuiProvideEditor, cuiRectAccessorFor, cuiRemoveSpaces, cuiReplace, cuiToAnimationOptions, cuiTooltipOptionsProvider, cuiXNdjsonInterceptor, handleError, openFileInBrowser, presetConfigToken, provideCuiAuth, provideCuiErrorHandler, provideCuiTabs, setLoading, sseStreamReaderInterceptor };
|
|
14099
14141
|
//# sourceMappingURL=cuby-ui-core.mjs.map
|