@frame-ui-ng/components 0.1.0-beta.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/LICENSE.md +9 -0
- package/README.md +31 -0
- package/accordion/src/styles/_vars.css +25 -0
- package/accordion/src/styles/accordion.css +87 -0
- package/alert/src/styles/_vars.css +28 -0
- package/alert/src/styles/alert.css +77 -0
- package/avatar/src/styles/_vars.css +34 -0
- package/avatar/src/styles/avatar.css +209 -0
- package/badge/src/styles/_vars.css +16 -0
- package/badge/src/styles/badge.css +125 -0
- package/breadcrumb/src/styles/_vars.css +16 -0
- package/breadcrumb/src/styles/breadcrumb.css +98 -0
- package/button/src/styles/_vars.css +20 -0
- package/button/src/styles/button-icon.css +18 -0
- package/button/src/styles/button-label.css +3 -0
- package/button/src/styles/button.css +243 -0
- package/button-group/src/styles/button-group.css +69 -0
- package/calendar/src/styles/_vars.css +29 -0
- package/calendar/src/styles/calendar.css +226 -0
- package/card/src/styles/_vars.css +17 -0
- package/card/src/styles/card.css +142 -0
- package/carousel/src/styles/_vars.css +7 -0
- package/carousel/src/styles/carousel.css +89 -0
- package/checkbox/src/styles/_vars.css +22 -0
- package/checkbox/src/styles/checkbox.css +95 -0
- package/collapsible/src/styles/_vars.css +13 -0
- package/collapsible/src/styles/collapsible.css +42 -0
- package/combobox/src/styles/_vars.css +60 -0
- package/combobox/src/styles/combobox.css +285 -0
- package/command/src/styles/_vars.css +37 -0
- package/command/src/styles/command.css +171 -0
- package/context-menu/src/styles/context-menu.css +5 -0
- package/date-picker/src/styles/_vars.css +29 -0
- package/date-picker/src/styles/date-picker.css +177 -0
- package/dropdown-menu/src/styles/_vars.css +34 -0
- package/dropdown-menu/src/styles/dropdown-menu-item.css +87 -0
- package/dropdown-menu/src/styles/dropdown-menu-motion.css +42 -0
- package/dropdown-menu/src/styles/dropdown-menu-panel.css +26 -0
- package/dropdown-menu/src/styles/dropdown-menu.css +4 -0
- package/empty/src/styles/_vars.css +23 -0
- package/empty/src/styles/empty.css +108 -0
- package/fesm2022/frame-ui-ng-components-accordion.mjs +268 -0
- package/fesm2022/frame-ui-ng-components-accordion.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-alert.mjs +102 -0
- package/fesm2022/frame-ui-ng-components-alert.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-avatar.mjs +197 -0
- package/fesm2022/frame-ui-ng-components-avatar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-badge.mjs +120 -0
- package/fesm2022/frame-ui-ng-components-badge.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-breadcrumb.mjs +156 -0
- package/fesm2022/frame-ui-ng-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-button-group.mjs +44 -0
- package/fesm2022/frame-ui-ng-components-button-group.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-button.mjs +150 -0
- package/fesm2022/frame-ui-ng-components-button.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-calendar.mjs +559 -0
- package/fesm2022/frame-ui-ng-components-calendar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-card.mjs +169 -0
- package/fesm2022/frame-ui-ng-components-card.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-carousel.mjs +454 -0
- package/fesm2022/frame-ui-ng-components-carousel.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-checkbox.mjs +83 -0
- package/fesm2022/frame-ui-ng-components-checkbox.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-collapsible.mjs +191 -0
- package/fesm2022/frame-ui-ng-components-collapsible.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-combobox.mjs +859 -0
- package/fesm2022/frame-ui-ng-components-combobox.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-command.mjs +658 -0
- package/fesm2022/frame-ui-ng-components-command.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-context-menu.mjs +579 -0
- package/fesm2022/frame-ui-ng-components-context-menu.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-date-picker.mjs +512 -0
- package/fesm2022/frame-ui-ng-components-date-picker.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-dropdown-menu.mjs +647 -0
- package/fesm2022/frame-ui-ng-components-dropdown-menu.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-empty.mjs +134 -0
- package/fesm2022/frame-ui-ng-components-empty.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-field.mjs +210 -0
- package/fesm2022/frame-ui-ng-components-field.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-forms.mjs +89 -0
- package/fesm2022/frame-ui-ng-components-forms.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-hover-card.mjs +412 -0
- package/fesm2022/frame-ui-ng-components-hover-card.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-input-otp.mjs +327 -0
- package/fesm2022/frame-ui-ng-components-input-otp.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-input.mjs +250 -0
- package/fesm2022/frame-ui-ng-components-input.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-item.mjs +207 -0
- package/fesm2022/frame-ui-ng-components-item.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-menubar.mjs +371 -0
- package/fesm2022/frame-ui-ng-components-menubar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-modal.mjs +525 -0
- package/fesm2022/frame-ui-ng-components-modal.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-navigation-menu.mjs +322 -0
- package/fesm2022/frame-ui-ng-components-navigation-menu.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-pagination.mjs +327 -0
- package/fesm2022/frame-ui-ng-components-pagination.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-popover.mjs +454 -0
- package/fesm2022/frame-ui-ng-components-popover.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-progress.mjs +96 -0
- package/fesm2022/frame-ui-ng-components-progress.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-radio-group.mjs +124 -0
- package/fesm2022/frame-ui-ng-components-radio-group.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-resizable.mjs +325 -0
- package/fesm2022/frame-ui-ng-components-resizable.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-select.mjs +434 -0
- package/fesm2022/frame-ui-ng-components-select.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-separator.mjs +51 -0
- package/fesm2022/frame-ui-ng-components-separator.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-sheet.mjs +514 -0
- package/fesm2022/frame-ui-ng-components-sheet.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-sidebar.mjs +628 -0
- package/fesm2022/frame-ui-ng-components-sidebar.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-skeleton.mjs +46 -0
- package/fesm2022/frame-ui-ng-components-skeleton.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-slider.mjs +279 -0
- package/fesm2022/frame-ui-ng-components-slider.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-spinner.mjs +51 -0
- package/fesm2022/frame-ui-ng-components-spinner.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-switch.mjs +130 -0
- package/fesm2022/frame-ui-ng-components-switch.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-table.mjs +594 -0
- package/fesm2022/frame-ui-ng-components-table.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-tabs.mjs +208 -0
- package/fesm2022/frame-ui-ng-components-tabs.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-textarea.mjs +40 -0
- package/fesm2022/frame-ui-ng-components-textarea.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-toast.mjs +346 -0
- package/fesm2022/frame-ui-ng-components-toast.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-toggle.mjs +127 -0
- package/fesm2022/frame-ui-ng-components-toggle.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-tooltip.mjs +425 -0
- package/fesm2022/frame-ui-ng-components-tooltip.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components-virtual-scroll.mjs +321 -0
- package/fesm2022/frame-ui-ng-components-virtual-scroll.mjs.map +1 -0
- package/fesm2022/frame-ui-ng-components.mjs +10278 -0
- package/fesm2022/frame-ui-ng-components.mjs.map +1 -0
- package/field/src/styles/_vars.css +20 -0
- package/field/src/styles/field.css +165 -0
- package/hover-card/src/styles/_vars.css +21 -0
- package/hover-card/src/styles/hover-card.css +76 -0
- package/input/src/styles/_vars.css +65 -0
- package/input/src/styles/input-group.css +112 -0
- package/input/src/styles/input.css +163 -0
- package/input-otp/src/styles/_vars.css +21 -0
- package/input-otp/src/styles/input-otp.css +116 -0
- package/item/src/styles/_vars.css +34 -0
- package/item/src/styles/item.css +187 -0
- package/menubar/src/styles/_vars.css +22 -0
- package/menubar/src/styles/menubar.css +70 -0
- package/modal/src/styles/_vars.css +18 -0
- package/modal/src/styles/modal.css +179 -0
- package/navigation-menu/src/styles/_vars.css +45 -0
- package/navigation-menu/src/styles/navigation-menu.css +245 -0
- package/package.json +243 -0
- package/pagination/src/styles/_vars.css +22 -0
- package/pagination/src/styles/pagination.css +138 -0
- package/popover/src/styles/_vars.css +24 -0
- package/popover/src/styles/popover.css +101 -0
- package/progress/src/styles/_vars.css +15 -0
- package/progress/src/styles/progress.css +64 -0
- package/radio-group/src/styles/_vars.css +29 -0
- package/radio-group/src/styles/radio-group.css +137 -0
- package/resizable/src/styles/_vars.css +20 -0
- package/resizable/src/styles/resizable.css +130 -0
- package/select/src/styles/_vars.css +28 -0
- package/select/src/styles/select-content.css +19 -0
- package/select/src/styles/select-feedback.css +6 -0
- package/select/src/styles/select-item.css +69 -0
- package/select/src/styles/select-trigger.css +95 -0
- package/select/src/styles/select.css +5 -0
- package/separator/src/styles/_vars.css +9 -0
- package/separator/src/styles/separator.css +25 -0
- package/sheet/src/styles/_vars.css +18 -0
- package/sheet/src/styles/sheet.css +215 -0
- package/sidebar/src/styles/_vars.css +24 -0
- package/sidebar/src/styles/sidebar.css +531 -0
- package/skeleton/src/styles/_vars.css +8 -0
- package/skeleton/src/styles/skeleton.css +40 -0
- package/slider/src/styles/_vars.css +17 -0
- package/slider/src/styles/slider.css +147 -0
- package/spinner/src/styles/_vars.css +9 -0
- package/spinner/src/styles/spinner.css +62 -0
- package/src/styles/components.css +47 -0
- package/styles/components.css +47 -0
- package/styles.css +49 -0
- package/switch/src/styles/_vars.css +34 -0
- package/switch/src/styles/switch.css +131 -0
- package/table/src/styles/_vars.css +25 -0
- package/table/src/styles/table.css +245 -0
- package/tabs/src/styles/_vars.css +23 -0
- package/tabs/src/styles/tabs.css +164 -0
- package/textarea/src/styles/_vars.css +20 -0
- package/textarea/src/styles/textarea.css +60 -0
- package/toast/src/styles/_vars.css +47 -0
- package/toast/src/styles/toast.css +314 -0
- package/toggle/src/styles/_vars.css +24 -0
- package/toggle/src/styles/toggle.css +110 -0
- package/tooltip/src/styles/_vars.css +21 -0
- package/tooltip/src/styles/tooltip.css +103 -0
- package/types/frame-ui-ng-components-accordion.d.ts +75 -0
- package/types/frame-ui-ng-components-alert.d.ts +30 -0
- package/types/frame-ui-ng-components-avatar.d.ts +65 -0
- package/types/frame-ui-ng-components-badge.d.ts +35 -0
- package/types/frame-ui-ng-components-breadcrumb.d.ts +40 -0
- package/types/frame-ui-ng-components-button-group.d.ts +18 -0
- package/types/frame-ui-ng-components-button.d.ts +50 -0
- package/types/frame-ui-ng-components-calendar.d.ts +101 -0
- package/types/frame-ui-ng-components-card.d.ts +51 -0
- package/types/frame-ui-ng-components-carousel.d.ts +117 -0
- package/types/frame-ui-ng-components-checkbox.d.ts +25 -0
- package/types/frame-ui-ng-components-collapsible.d.ts +55 -0
- package/types/frame-ui-ng-components-combobox.d.ts +201 -0
- package/types/frame-ui-ng-components-command.d.ts +198 -0
- package/types/frame-ui-ng-components-context-menu.d.ts +149 -0
- package/types/frame-ui-ng-components-date-picker.d.ts +95 -0
- package/types/frame-ui-ng-components-dropdown-menu.d.ts +182 -0
- package/types/frame-ui-ng-components-empty.d.ts +44 -0
- package/types/frame-ui-ng-components-field.d.ts +60 -0
- package/types/frame-ui-ng-components-forms.d.ts +39 -0
- package/types/frame-ui-ng-components-hover-card.d.ts +94 -0
- package/types/frame-ui-ng-components-input-otp.d.ts +70 -0
- package/types/frame-ui-ng-components-input.d.ts +67 -0
- package/types/frame-ui-ng-components-item.d.ts +62 -0
- package/types/frame-ui-ng-components-menubar.d.ts +76 -0
- package/types/frame-ui-ng-components-modal.d.ts +148 -0
- package/types/frame-ui-ng-components-navigation-menu.d.ts +74 -0
- package/types/frame-ui-ng-components-pagination.d.ts +79 -0
- package/types/frame-ui-ng-components-popover.d.ts +95 -0
- package/types/frame-ui-ng-components-progress.d.ts +24 -0
- package/types/frame-ui-ng-components-radio-group.d.ts +40 -0
- package/types/frame-ui-ng-components-resizable.d.ts +61 -0
- package/types/frame-ui-ng-components-select.d.ts +114 -0
- package/types/frame-ui-ng-components-separator.d.ts +19 -0
- package/types/frame-ui-ng-components-sheet.d.ts +146 -0
- package/types/frame-ui-ng-components-sidebar.d.ts +163 -0
- package/types/frame-ui-ng-components-skeleton.d.ts +18 -0
- package/types/frame-ui-ng-components-slider.d.ts +56 -0
- package/types/frame-ui-ng-components-spinner.d.ts +23 -0
- package/types/frame-ui-ng-components-switch.d.ts +38 -0
- package/types/frame-ui-ng-components-table.d.ts +125 -0
- package/types/frame-ui-ng-components-tabs.d.ts +62 -0
- package/types/frame-ui-ng-components-textarea.d.ts +14 -0
- package/types/frame-ui-ng-components-toast.d.ts +74 -0
- package/types/frame-ui-ng-components-toggle.d.ts +45 -0
- package/types/frame-ui-ng-components-tooltip.d.ts +99 -0
- package/types/frame-ui-ng-components-virtual-scroll.d.ts +106 -0
- package/types/frame-ui-ng-components.d.ts +2746 -0
- package/virtual-scroll/src/styles/virtual-scroll.css +54 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { ConnectedPosition, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
4
|
+
import { FrControlValueAccessor } from '@frame-ui-ng/components/forms';
|
|
5
|
+
|
|
6
|
+
declare class FrComboboxContent {
|
|
7
|
+
readonly templateRef: TemplateRef<any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxContent, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxContent, "ng-template[frComboboxContent]", ["frComboboxContent"], {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
declare class FrComboboxPanel {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxPanel, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxPanel, "[frComboboxPanel], frame-combobox-panel", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
declare class FrComboboxList {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxList, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxList, "[frComboboxList], frame-combobox-list", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
declare class FrComboboxEmpty {
|
|
20
|
+
private readonly root;
|
|
21
|
+
protected hidden(): boolean;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxEmpty, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxEmpty, "[frComboboxEmpty], frame-combobox-empty", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
declare class FrComboboxGroup {
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxGroup, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxGroup, "[frComboboxGroup], frame-combobox-group", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
declare class FrComboboxLabel {
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxLabel, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxLabel, "[frComboboxLabel], frame-combobox-label", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
declare class FrComboboxSeparator {
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxSeparator, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxSeparator, "[frComboboxSeparator], frame-combobox-separator", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
declare class FrComboboxCollection {
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxCollection, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxCollection, "[frComboboxCollection], frame-combobox-collection", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
declare abstract class FrComboboxRootLookup {
|
|
42
|
+
abstract visibleCount(): number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class FrComboboxItem {
|
|
46
|
+
private readonly destroyRef;
|
|
47
|
+
private readonly elementRef;
|
|
48
|
+
private readonly root;
|
|
49
|
+
private mutationObserver;
|
|
50
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
readonly itemLabel: i0.InputSignal<string | null>;
|
|
52
|
+
readonly value: i0.InputSignal<unknown>;
|
|
53
|
+
readonly resolvedLabel: i0.WritableSignal<string>;
|
|
54
|
+
readonly label: i0.Signal<string>;
|
|
55
|
+
readonly visible: i0.Signal<boolean>;
|
|
56
|
+
constructor();
|
|
57
|
+
isVisible(): boolean;
|
|
58
|
+
isSelected(): boolean;
|
|
59
|
+
isHighlighted(): boolean;
|
|
60
|
+
select(): void;
|
|
61
|
+
protected highlightSelf(): void;
|
|
62
|
+
private resolveLabel;
|
|
63
|
+
private refreshResolvedLabel;
|
|
64
|
+
private observeTextChanges;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxItem, never>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxItem, "button[frComboboxItem]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "itemLabel": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
67
|
+
}
|
|
68
|
+
declare class FrComboboxItemIndicator {
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxItemIndicator, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxItemIndicator, "[frComboboxItemIndicator]", never, {}, {}, never, never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type FrComboboxValue = unknown;
|
|
74
|
+
type FrComboboxStringifier = (item: FrComboboxValue) => string;
|
|
75
|
+
declare class FrCombobox extends FrControlValueAccessor<FrComboboxValue | FrComboboxValue[] | null> {
|
|
76
|
+
private readonly destroyRef;
|
|
77
|
+
private readonly elementRef;
|
|
78
|
+
private readonly items;
|
|
79
|
+
private readonly itemsVersion;
|
|
80
|
+
private readonly selectedLabels;
|
|
81
|
+
private resizeObserver;
|
|
82
|
+
private origin?;
|
|
83
|
+
readonly content: i0.Signal<FrComboboxContent | undefined>;
|
|
84
|
+
readonly autoHighlight: i0.InputSignalWithTransform<boolean, unknown>;
|
|
85
|
+
readonly debugVisible: i0.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
readonly disabledInput: i0.InputSignalWithTransform<boolean, unknown>;
|
|
87
|
+
readonly invalidInput: i0.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
readonly itemToStringValue: i0.InputSignal<FrComboboxStringifier>;
|
|
89
|
+
readonly multiple: i0.InputSignalWithTransform<boolean, unknown>;
|
|
90
|
+
readonly showClear: i0.InputSignalWithTransform<boolean, unknown>;
|
|
91
|
+
readonly value: i0.ModelSignal<unknown>;
|
|
92
|
+
readonly disabled: i0.Signal<boolean>;
|
|
93
|
+
readonly invalid: i0.Signal<boolean | null>;
|
|
94
|
+
readonly isOpen: i0.WritableSignal<boolean>;
|
|
95
|
+
readonly query: i0.WritableSignal<string>;
|
|
96
|
+
readonly anchorWidth: i0.WritableSignal<number | null>;
|
|
97
|
+
readonly highlightedIndex: i0.WritableSignal<number>;
|
|
98
|
+
readonly overlaySide: i0.WritableSignal<"bottom" | "top">;
|
|
99
|
+
readonly positions: ConnectedPosition[];
|
|
100
|
+
readonly selectedValues: i0.Signal<any[]>;
|
|
101
|
+
readonly displayValue: i0.Signal<string>;
|
|
102
|
+
readonly hasValue: i0.Signal<boolean>;
|
|
103
|
+
constructor();
|
|
104
|
+
registerItem(item: FrComboboxItem): void;
|
|
105
|
+
unregisterItem(item: FrComboboxItem): void;
|
|
106
|
+
visibleItems(): FrComboboxItem[];
|
|
107
|
+
visibleCount(): number;
|
|
108
|
+
overlayMinWidth(): number;
|
|
109
|
+
overlayPanelClasses(): string[];
|
|
110
|
+
isSelected(value: FrComboboxValue): boolean;
|
|
111
|
+
isHighlighted(item: FrComboboxItem): boolean;
|
|
112
|
+
rememberItemLabel(value: FrComboboxValue, label: string): void;
|
|
113
|
+
itemVisible(label: string): boolean;
|
|
114
|
+
open(): void;
|
|
115
|
+
close(): void;
|
|
116
|
+
touch(): void;
|
|
117
|
+
clear(): void;
|
|
118
|
+
selectItem(value: FrComboboxValue, label: string): void;
|
|
119
|
+
removeItem(value: FrComboboxValue): void;
|
|
120
|
+
updateQuery(value: string): void;
|
|
121
|
+
moveHighlight(delta: number): void;
|
|
122
|
+
selectHighlighted(): void;
|
|
123
|
+
handlePositionChange(event: ConnectedOverlayPositionChange): void;
|
|
124
|
+
protected setViewValue(value: FrComboboxValue | FrComboboxValue[] | null): void;
|
|
125
|
+
private bumpItems;
|
|
126
|
+
private measureAnchor;
|
|
127
|
+
private attachResizeObserver;
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrCombobox, never>;
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FrCombobox, "[frCombobox], frame-combobox", ["frCombobox"], { "autoHighlight": { "alias": "autoHighlight"; "required": false; "isSignal": true; }; "debugVisible": { "alias": "debugVisible"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "itemToStringValue": { "alias": "itemToStringValue"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["content"], ["*"], true, never>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare class FrComboboxInput {
|
|
133
|
+
protected readonly root: FrCombobox;
|
|
134
|
+
private readonly elementRef;
|
|
135
|
+
protected handleInput(): void;
|
|
136
|
+
protected handleBlur(): void;
|
|
137
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxInput, never>;
|
|
139
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxInput, "input[frComboboxInput]", never, {}, {}, never, never, true, never>;
|
|
140
|
+
}
|
|
141
|
+
declare class FrComboboxTrigger {
|
|
142
|
+
protected readonly root: FrCombobox;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxTrigger, never>;
|
|
144
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxTrigger, "button[frComboboxTrigger]", never, {}, {}, never, never, true, never>;
|
|
145
|
+
}
|
|
146
|
+
declare class FrComboboxClear {
|
|
147
|
+
protected readonly root: FrCombobox;
|
|
148
|
+
protected hidden(): boolean;
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxClear, never>;
|
|
150
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxClear, "button[frComboboxClear]", never, {}, {}, never, never, true, never>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare class FrComboboxChips {
|
|
154
|
+
protected readonly root: FrCombobox;
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxChips, never>;
|
|
156
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxChips, "[frComboboxChips], frame-combobox-chips", never, {}, {}, never, never, true, never>;
|
|
157
|
+
}
|
|
158
|
+
declare class FrComboboxValueList {
|
|
159
|
+
private readonly root;
|
|
160
|
+
values(): FrComboboxValue[];
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxValueList, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxValueList, "[frComboboxValue], frame-combobox-value", ["frComboboxValue"], {}, {}, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
declare class FrComboboxChip {
|
|
165
|
+
private readonly root;
|
|
166
|
+
private readonly elementRef;
|
|
167
|
+
private readonly renderer;
|
|
168
|
+
readonly value: i0.InputSignal<unknown>;
|
|
169
|
+
readonly removable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
170
|
+
constructor();
|
|
171
|
+
remove(): void;
|
|
172
|
+
private attachDefaultRemoveButton;
|
|
173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxChip, never>;
|
|
174
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxChip, "[frComboboxChip], frame-combobox-chip", ["frComboboxChip"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
175
|
+
}
|
|
176
|
+
declare class FrComboboxChipRemove {
|
|
177
|
+
private readonly chip;
|
|
178
|
+
protected remove(event: MouseEvent): void;
|
|
179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxChipRemove, never>;
|
|
180
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxChipRemove, "button[frComboboxChipRemove]", never, {}, {}, never, never, true, never>;
|
|
181
|
+
}
|
|
182
|
+
declare class FrComboboxChipsInput {
|
|
183
|
+
protected readonly root: FrCombobox;
|
|
184
|
+
protected handleInput(event: Event): void;
|
|
185
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxChipsInput, never>;
|
|
187
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxChipsInput, "input[frComboboxChipsInput]", never, {}, {}, never, never, true, never>;
|
|
188
|
+
}
|
|
189
|
+
declare class FrComboboxError {
|
|
190
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxError, never>;
|
|
191
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrComboboxError, "[frComboboxError], frame-combobox-error", never, {}, {}, never, never, true, never>;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
declare class FrComboboxModule {
|
|
195
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrComboboxModule, never>;
|
|
196
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FrComboboxModule, never, [typeof FrCombobox, typeof FrComboboxChip, typeof FrComboboxChipRemove, typeof FrComboboxChips, typeof FrComboboxChipsInput, typeof FrComboboxClear, typeof FrComboboxCollection, typeof FrComboboxContent, typeof FrComboboxEmpty, typeof FrComboboxError, typeof FrComboboxGroup, typeof FrComboboxInput, typeof FrComboboxItem, typeof FrComboboxItemIndicator, typeof FrComboboxLabel, typeof FrComboboxList, typeof FrComboboxPanel, typeof FrComboboxSeparator, typeof FrComboboxTrigger, typeof FrComboboxValueList], [typeof FrCombobox, typeof FrComboboxChip, typeof FrComboboxChipRemove, typeof FrComboboxChips, typeof FrComboboxChipsInput, typeof FrComboboxClear, typeof FrComboboxCollection, typeof FrComboboxContent, typeof FrComboboxEmpty, typeof FrComboboxError, typeof FrComboboxGroup, typeof FrComboboxInput, typeof FrComboboxItem, typeof FrComboboxItemIndicator, typeof FrComboboxLabel, typeof FrComboboxList, typeof FrComboboxPanel, typeof FrComboboxSeparator, typeof FrComboboxTrigger, typeof FrComboboxValueList]>;
|
|
197
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FrComboboxModule>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { FrCombobox, FrComboboxChip, FrComboboxChipRemove, FrComboboxChips, FrComboboxChipsInput, FrComboboxClear, FrComboboxCollection, FrComboboxContent, FrComboboxEmpty, FrComboboxError, FrComboboxGroup, FrComboboxInput, FrComboboxItem, FrComboboxItemIndicator, FrComboboxLabel, FrComboboxList, FrComboboxModule, FrComboboxPanel, FrComboboxRootLookup, FrComboboxSeparator, FrComboboxTrigger, FrComboboxValueList };
|
|
201
|
+
export type { FrComboboxStringifier, FrComboboxValue };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, ViewContainerRef, Signal, WritableSignal } from '@angular/core';
|
|
3
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
4
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
5
|
+
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
6
|
+
|
|
7
|
+
type FrCommandDialogRef<Result = unknown, Component = unknown> = DialogRef<Result, Component>;
|
|
8
|
+
type FrCommandDialogConfig<Data = unknown, Result = unknown, Component = unknown> = DialogConfig<Data, DialogRef<Result, Component>>;
|
|
9
|
+
declare class FrCommandDialog {
|
|
10
|
+
readonly templateRef: TemplateRef<any>;
|
|
11
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
12
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | null>;
|
|
13
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
14
|
+
readonly backdropClass: _angular_core.InputSignal<string | string[] | null>;
|
|
15
|
+
readonly closeOnDestroy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
readonly closeOnNavigation: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
readonly direction: _angular_core.InputSignal<Direction | null>;
|
|
18
|
+
readonly disableClose: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
readonly height: _angular_core.InputSignal<string | null>;
|
|
20
|
+
readonly id: _angular_core.InputSignal<string | null>;
|
|
21
|
+
readonly maxHeight: _angular_core.InputSignal<string | null>;
|
|
22
|
+
readonly maxWidth: _angular_core.InputSignal<string | null>;
|
|
23
|
+
readonly minHeight: _angular_core.InputSignal<string | null>;
|
|
24
|
+
readonly minWidth: _angular_core.InputSignal<string | null>;
|
|
25
|
+
readonly panelClass: _angular_core.InputSignal<string | string[] | null>;
|
|
26
|
+
readonly role: _angular_core.InputSignal<"dialog" | "alertdialog">;
|
|
27
|
+
readonly width: _angular_core.InputSignal<string | null>;
|
|
28
|
+
buildConfig(viewContainerRef: ViewContainerRef): FrCommandDialogConfig;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandDialog, never>;
|
|
30
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandDialog, "ng-template[frCommandDialog]", ["frCommandDialog"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "closeOnDestroy": { "alias": "closeOnDestroy"; "required": false; "isSignal": true; }; "closeOnNavigation": { "alias": "closeOnNavigation"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "disableClose": { "alias": "disableClose"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
declare class FrCommandDialogTrigger {
|
|
33
|
+
private readonly commandDialog;
|
|
34
|
+
private readonly destroyRef;
|
|
35
|
+
private readonly viewContainerRef;
|
|
36
|
+
private dialogRef;
|
|
37
|
+
readonly content: _angular_core.InputSignal<FrCommandDialog | TemplateRef<unknown> | null>;
|
|
38
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
readonly opened: _angular_core.OutputEmitterRef<FrCommandDialogRef<unknown, unknown>>;
|
|
40
|
+
readonly closed: _angular_core.OutputEmitterRef<unknown>;
|
|
41
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
42
|
+
open(): void;
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandDialogTrigger, never>;
|
|
44
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandDialogTrigger, "[frCommandDialogTrigger]", never, { "content": { "alias": "frCommandDialogTrigger"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
declare class FrCommandService {
|
|
47
|
+
private readonly dialog;
|
|
48
|
+
open<Result = unknown, Data = unknown, Component = unknown>(content: ComponentType<Component>, config?: FrCommandDialogConfig<Data, Result, Component>): FrCommandDialogRef<Result, Component>;
|
|
49
|
+
open<Result = unknown, Data = unknown, Context = unknown>(content: TemplateRef<Context>, config?: FrCommandDialogConfig<Data, Result, Context>): FrCommandDialogRef<Result, Context>;
|
|
50
|
+
closeAll(): void;
|
|
51
|
+
private withDefaultClasses;
|
|
52
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandService, never>;
|
|
53
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FrCommandService>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class FrCommandItem {
|
|
57
|
+
private readonly destroyRef;
|
|
58
|
+
private readonly elementRef;
|
|
59
|
+
private readonly command;
|
|
60
|
+
private readonly group;
|
|
61
|
+
private mutationObserver;
|
|
62
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
63
|
+
readonly itemKeywords: _angular_core.InputSignal<string | readonly string[]>;
|
|
64
|
+
readonly itemLabel: _angular_core.InputSignal<string | null>;
|
|
65
|
+
readonly valueInput: _angular_core.InputSignal<unknown>;
|
|
66
|
+
readonly itemSelected: _angular_core.OutputEmitterRef<unknown>;
|
|
67
|
+
readonly resolvedLabel: _angular_core.WritableSignal<string>;
|
|
68
|
+
readonly label: _angular_core.Signal<string>;
|
|
69
|
+
readonly keywords: _angular_core.Signal<string[]>;
|
|
70
|
+
readonly value: _angular_core.Signal<{}>;
|
|
71
|
+
readonly visible: _angular_core.Signal<boolean>;
|
|
72
|
+
constructor();
|
|
73
|
+
isVisible(): boolean;
|
|
74
|
+
isHighlighted(): boolean;
|
|
75
|
+
isSelected(): boolean;
|
|
76
|
+
scrollIntoView(): void;
|
|
77
|
+
select(): void;
|
|
78
|
+
protected highlightSelf(): void;
|
|
79
|
+
private resolveLabel;
|
|
80
|
+
private refreshResolvedLabel;
|
|
81
|
+
private observeTextChanges;
|
|
82
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandItem, never>;
|
|
83
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandItem, "button[frCommandItem]", ["frCommandItem"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "itemKeywords": { "alias": "keywords"; "required": false; "isSignal": true; }; "itemLabel": { "alias": "label"; "required": false; "isSignal": true; }; "valueInput": { "alias": "value"; "required": false; "isSignal": true; }; }, { "itemSelected": "selected"; }, never, never, true, never>;
|
|
84
|
+
}
|
|
85
|
+
declare class FrCommandItemIcon {
|
|
86
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandItemIcon, never>;
|
|
87
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandItemIcon, "[frCommandItemIcon]", never, {}, {}, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
declare class FrCommandShortcut {
|
|
90
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandShortcut, never>;
|
|
91
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandShortcut, "[frCommandShortcut]", never, {}, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class FrCommandGroup {
|
|
95
|
+
private readonly items;
|
|
96
|
+
private readonly itemsVersion;
|
|
97
|
+
readonly forceMount: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
98
|
+
readonly heading: _angular_core.InputSignal<string | null>;
|
|
99
|
+
readonly hidden: _angular_core.Signal<boolean>;
|
|
100
|
+
registerItem(item: FrCommandItem): void;
|
|
101
|
+
unregisterItem(item: FrCommandItem): void;
|
|
102
|
+
private bumpItems;
|
|
103
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandGroup, never>;
|
|
104
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandGroup, "[frCommandGroup]", ["frCommandGroup"], { "forceMount": { "alias": "forceMount"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
105
|
+
}
|
|
106
|
+
declare class FrCommandGroupHeading {
|
|
107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandGroupHeading, never>;
|
|
108
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandGroupHeading, "[frCommandGroupHeading]", never, {}, {}, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface FrCommandRootContext {
|
|
112
|
+
readonly disabled: Signal<boolean>;
|
|
113
|
+
readonly highlightedIndex: WritableSignal<number>;
|
|
114
|
+
readonly query: Signal<string>;
|
|
115
|
+
readonly selectedValue: Signal<unknown>;
|
|
116
|
+
close(value?: unknown): void;
|
|
117
|
+
filteredItemVisible(label: string, keywords: readonly string[]): boolean;
|
|
118
|
+
isHighlighted(item: FrCommandItem): boolean;
|
|
119
|
+
isItemSelected(value: unknown): boolean;
|
|
120
|
+
moveHighlight(delta: number): void;
|
|
121
|
+
registerItem(item: FrCommandItem): void;
|
|
122
|
+
selectItem(item: FrCommandItem): void;
|
|
123
|
+
setQuery(query: string): void;
|
|
124
|
+
unregisterItem(item: FrCommandItem): void;
|
|
125
|
+
visibleCount(): number;
|
|
126
|
+
visibleItems(): FrCommandItem[];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare class FrCommandInput {
|
|
130
|
+
private readonly elementRef;
|
|
131
|
+
protected readonly command: FrCommandRootContext;
|
|
132
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
133
|
+
protected handleInput(): void;
|
|
134
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandInput, never>;
|
|
135
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandInput, "input[frCommandInput]", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare class FrCommandList {
|
|
139
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandList, never>;
|
|
140
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandList, "[frCommandList]", never, {}, {}, never, never, true, never>;
|
|
141
|
+
}
|
|
142
|
+
declare class FrCommandEmpty {
|
|
143
|
+
protected readonly command: FrCommandRootContext;
|
|
144
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandEmpty, never>;
|
|
145
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandEmpty, "[frCommandEmpty]", never, {}, {}, never, never, true, never>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
type FrCommandFilter = (query: string, label: string, keywords: readonly string[]) => boolean;
|
|
149
|
+
declare class FrCommand {
|
|
150
|
+
private readonly dialogRef;
|
|
151
|
+
private readonly items;
|
|
152
|
+
private readonly itemsVersion;
|
|
153
|
+
readonly closeOnSelect: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
154
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
155
|
+
readonly filter: _angular_core.InputSignal<FrCommandFilter>;
|
|
156
|
+
readonly loop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
157
|
+
readonly value: _angular_core.ModelSignal<unknown>;
|
|
158
|
+
readonly itemSelected: _angular_core.OutputEmitterRef<unknown>;
|
|
159
|
+
readonly queryChange: _angular_core.OutputEmitterRef<string>;
|
|
160
|
+
readonly query: _angular_core.WritableSignal<string>;
|
|
161
|
+
readonly highlightedIndex: _angular_core.WritableSignal<number>;
|
|
162
|
+
readonly selectedValue: _angular_core.Signal<unknown>;
|
|
163
|
+
constructor();
|
|
164
|
+
registerItem(item: FrCommandItem): void;
|
|
165
|
+
unregisterItem(item: FrCommandItem): void;
|
|
166
|
+
visibleItems(): FrCommandItem[];
|
|
167
|
+
visibleCount(): number;
|
|
168
|
+
filteredItemVisible(label: string, keywords: readonly string[]): boolean;
|
|
169
|
+
isHighlighted(item: FrCommandItem): boolean;
|
|
170
|
+
isItemSelected(value: unknown): boolean;
|
|
171
|
+
setQuery(query: string): void;
|
|
172
|
+
moveHighlight(delta: number): void;
|
|
173
|
+
highlightFirst(): void;
|
|
174
|
+
highlightLast(): void;
|
|
175
|
+
selectHighlighted(): void;
|
|
176
|
+
selectItem(item: FrCommandItem): void;
|
|
177
|
+
close(value?: unknown): void;
|
|
178
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
179
|
+
private normalizeHighlight;
|
|
180
|
+
private bumpItems;
|
|
181
|
+
private scrollHighlightedItemIntoView;
|
|
182
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommand, never>;
|
|
183
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommand, "[frCommand], frame-command", ["frCommand"], { "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "itemSelected": "itemSelected"; "queryChange": "queryChange"; }, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare class FrCommandSeparator {
|
|
187
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandSeparator, never>;
|
|
188
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrCommandSeparator, "[frCommandSeparator]", never, {}, {}, never, never, true, never>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare class FrCommandModule {
|
|
192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrCommandModule, never>;
|
|
193
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FrCommandModule, never, [typeof FrCommand, typeof FrCommandDialog, typeof FrCommandDialogTrigger, typeof FrCommandEmpty, typeof FrCommandGroup, typeof FrCommandGroupHeading, typeof FrCommandInput, typeof FrCommandItem, typeof FrCommandItemIcon, typeof FrCommandList, typeof FrCommandSeparator, typeof FrCommandShortcut], [typeof FrCommand, typeof FrCommandDialog, typeof FrCommandDialogTrigger, typeof FrCommandEmpty, typeof FrCommandGroup, typeof FrCommandGroupHeading, typeof FrCommandInput, typeof FrCommandItem, typeof FrCommandItemIcon, typeof FrCommandList, typeof FrCommandSeparator, typeof FrCommandShortcut]>;
|
|
194
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<FrCommandModule>;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export { FrCommand, FrCommandDialog, FrCommandDialogTrigger, FrCommandEmpty, FrCommandGroup, FrCommandGroupHeading, FrCommandInput, FrCommandItem, FrCommandItemIcon, FrCommandList, FrCommandModule, FrCommandSeparator, FrCommandService, FrCommandShortcut };
|
|
198
|
+
export type { FrCommandDialogConfig, FrCommandDialogRef, FrCommandFilter };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, TemplateRef, OnDestroy, InputSignal } from '@angular/core';
|
|
3
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
|
+
import { FrDropdownMenuContent, FrDropdownMenuParent } from '@frame-ui-ng/components/dropdown-menu';
|
|
5
|
+
import * as i1 from '@angular/cdk/menu';
|
|
6
|
+
import { CdkMenuItemCheckbox, CdkMenuItemRadio } from '@angular/cdk/menu';
|
|
7
|
+
|
|
8
|
+
declare const FR_CONTEXT_MENU_CONTENT: InjectionToken<FrContextMenuContent>;
|
|
9
|
+
declare class FrContextMenuContent implements Partial<FrDropdownMenuContent> {
|
|
10
|
+
readonly templateRef: TemplateRef<any>;
|
|
11
|
+
readonly align: i0.InputSignal<"center" | "end" | "start">;
|
|
12
|
+
readonly alignOffset: i0.InputSignal<number>;
|
|
13
|
+
readonly debugVisible: i0.InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
readonly side: i0.InputSignal<"bottom" | "left" | "right" | "top">;
|
|
15
|
+
readonly sideOffset: i0.InputSignal<number>;
|
|
16
|
+
isDebugVisible(): boolean;
|
|
17
|
+
getPositions(isSubmenu: boolean): ConnectedPosition[];
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuContent, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuContent, "ng-template[frContextMenuContent], ng-template[frContextMenuSubContent]", ["frContextMenuContent"], { "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "debugVisible": { "alias": "debugVisible"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
declare class FrContextMenuPanel {
|
|
22
|
+
protected readonly side: i0.InputSignal<"bottom" | "left" | "right" | "top">;
|
|
23
|
+
private readonly tree;
|
|
24
|
+
private readonly parent;
|
|
25
|
+
protected handleMouseEnter(): void;
|
|
26
|
+
protected handleMouseLeave(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuPanel, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuPanel, "[frContextMenuPanel]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenu; inputs: {}; outputs: {}; }, { directive: typeof i1.CdkTargetMenuAim; inputs: {}; outputs: {}; }]>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class FrContextMenuItem {
|
|
32
|
+
readonly inset: i0.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
readonly variant: i0.InputSignal<"default" | "destructive">;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuItem, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuItem, "[frContextMenuItem]", never, { "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: {}; }]>;
|
|
36
|
+
}
|
|
37
|
+
declare class FrContextMenuCheckboxItem {
|
|
38
|
+
protected readonly checkboxItem: CdkMenuItemCheckbox;
|
|
39
|
+
readonly checked: i0.InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
readonly inset: i0.InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
readonly variant: i0.InputSignal<"default" | "destructive">;
|
|
42
|
+
constructor();
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuCheckboxItem, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuCheckboxItem, "button[frContextMenuCheckboxItem]", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkMenuItemCheckbox; inputs: {}; outputs: {}; }]>;
|
|
45
|
+
}
|
|
46
|
+
declare class FrContextMenuRadioGroup {
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuRadioGroup, never>;
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuRadioGroup, "[frContextMenuRadioGroup]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkMenuGroup; inputs: {}; outputs: {}; }]>;
|
|
49
|
+
}
|
|
50
|
+
declare class FrContextMenuRadioItem {
|
|
51
|
+
protected readonly radioItem: CdkMenuItemRadio;
|
|
52
|
+
readonly checked: i0.InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
readonly inset: i0.InputSignalWithTransform<boolean, unknown>;
|
|
54
|
+
readonly variant: i0.InputSignal<"default" | "destructive">;
|
|
55
|
+
constructor();
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuRadioItem, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuRadioItem, "button[frContextMenuRadioItem]", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkMenuItemRadio; inputs: {}; outputs: {}; }]>;
|
|
58
|
+
}
|
|
59
|
+
declare class FrContextMenuLabel {
|
|
60
|
+
readonly inset: i0.InputSignalWithTransform<boolean, unknown>;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuLabel, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuLabel, "[frContextMenuLabel]", never, { "inset": { "alias": "inset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
declare class FrContextMenuSeparator {
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuSeparator, never>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuSeparator, "[frContextMenuSeparator]", never, {}, {}, never, never, true, never>;
|
|
67
|
+
}
|
|
68
|
+
declare class FrContextMenuShortcut {
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuShortcut, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuShortcut, "[frContextMenuShortcut]", never, {}, {}, never, never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
declare class FrContextMenuItemIndicator {
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuItemIndicator, never>;
|
|
74
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuItemIndicator, "[frContextMenuItemIndicator]", never, {}, {}, never, never, true, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class FrContextMenu implements FrDropdownMenuParent {
|
|
78
|
+
readonly closeDelay: i0.InputSignal<number>;
|
|
79
|
+
readonly triggerMode: i0.InputSignal<"both" | "click" | "hover">;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenu, never>;
|
|
81
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenu, "[frContextMenu]", never, { "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; "triggerMode": { "alias": "triggerMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
declare class FrContextMenuSub implements FrDropdownMenuParent {
|
|
84
|
+
private readonly parent;
|
|
85
|
+
readonly closeDelayInput: i0.InputSignal<number | null>;
|
|
86
|
+
readonly triggerModeInput: i0.InputSignal<"both" | "click" | "hover" | null>;
|
|
87
|
+
readonly closeDelay: i0.WritableSignal<number>;
|
|
88
|
+
readonly triggerMode: i0.WritableSignal<"both" | "click" | "hover">;
|
|
89
|
+
constructor();
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuSub, never>;
|
|
91
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuSub, "[frContextMenuSub]", never, { "closeDelayInput": { "alias": "closeDelay"; "required": false; "isSignal": true; }; "triggerModeInput": { "alias": "triggerMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class FrContextMenuSubTrigger implements OnDestroy {
|
|
95
|
+
private readonly cdkMenuTrigger;
|
|
96
|
+
private readonly destroyRef;
|
|
97
|
+
private readonly tree;
|
|
98
|
+
private readonly parent;
|
|
99
|
+
readonly menuContent: InputSignal<FrContextMenuContent | null>;
|
|
100
|
+
readonly inset: i0.InputSignalWithTransform<boolean, unknown>;
|
|
101
|
+
readonly triggerModeInput: InputSignal<"both" | "click" | "hover" | null>;
|
|
102
|
+
readonly variant: InputSignal<"default" | "destructive">;
|
|
103
|
+
readonly isOpen: i0.WritableSignal<boolean>;
|
|
104
|
+
constructor();
|
|
105
|
+
close(): void;
|
|
106
|
+
ngOnDestroy(): void;
|
|
107
|
+
protected handleMouseEnter(): void;
|
|
108
|
+
protected handleMouseLeave(): void;
|
|
109
|
+
private get triggerMode();
|
|
110
|
+
private resolvePositions;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuSubTrigger, never>;
|
|
112
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuSubTrigger, "[frContextMenuSubTrigger]", never, { "menuContent": { "alias": "frContextMenuSubTrigger"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "triggerModeInput": { "alias": "triggerMode"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: {}; }, { directive: typeof i1.CdkMenuTrigger; inputs: {}; outputs: {}; }]>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
type ContextMenuCoordinates = {
|
|
116
|
+
readonly x: number;
|
|
117
|
+
readonly y: number;
|
|
118
|
+
};
|
|
119
|
+
declare class FrContextMenuTrigger {
|
|
120
|
+
private static readonly CUSTOM_PROPERTY_PREFIX;
|
|
121
|
+
private readonly cdkContextMenuTrigger;
|
|
122
|
+
private readonly destroyRef;
|
|
123
|
+
private readonly elementRef;
|
|
124
|
+
private longPressTimeoutId;
|
|
125
|
+
readonly menuContent: i0.InputSignal<FrContextMenuContent | null>;
|
|
126
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
127
|
+
readonly longPressDelay: i0.InputSignal<number>;
|
|
128
|
+
readonly opened: i0.OutputEmitterRef<void>;
|
|
129
|
+
readonly closed: i0.OutputEmitterRef<void>;
|
|
130
|
+
readonly isOpen: i0.WritableSignal<boolean>;
|
|
131
|
+
constructor();
|
|
132
|
+
openAt(coordinates: ContextMenuCoordinates): void;
|
|
133
|
+
close(): void;
|
|
134
|
+
protected handlePointerDown(event: PointerEvent): void;
|
|
135
|
+
protected clearLongPress(): void;
|
|
136
|
+
private resolvePositions;
|
|
137
|
+
private openAtCenter;
|
|
138
|
+
private syncCustomPropertiesToOverlay;
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuTrigger, never>;
|
|
140
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrContextMenuTrigger, "[frContextMenuTrigger]", never, { "menuContent": { "alias": "frContextMenuTrigger"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "longPressDelay": { "alias": "longPressDelay"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, [{ directive: typeof i1.CdkContextMenuTrigger; inputs: {}; outputs: {}; }]>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare class FrContextMenuModule {
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrContextMenuModule, never>;
|
|
145
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FrContextMenuModule, never, [typeof FrContextMenu, typeof FrContextMenuCheckboxItem, typeof FrContextMenuContent, typeof FrContextMenuItem, typeof FrContextMenuItemIndicator, typeof FrContextMenuLabel, typeof FrContextMenuPanel, typeof FrContextMenuRadioGroup, typeof FrContextMenuRadioItem, typeof FrContextMenuSeparator, typeof FrContextMenuShortcut, typeof FrContextMenuSub, typeof FrContextMenuSubTrigger, typeof FrContextMenuTrigger], [typeof FrContextMenu, typeof FrContextMenuCheckboxItem, typeof FrContextMenuContent, typeof FrContextMenuItem, typeof FrContextMenuItemIndicator, typeof FrContextMenuLabel, typeof FrContextMenuPanel, typeof FrContextMenuRadioGroup, typeof FrContextMenuRadioItem, typeof FrContextMenuSeparator, typeof FrContextMenuShortcut, typeof FrContextMenuSub, typeof FrContextMenuSubTrigger, typeof FrContextMenuTrigger]>;
|
|
146
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FrContextMenuModule>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export { FR_CONTEXT_MENU_CONTENT, FrContextMenu, FrContextMenuCheckboxItem, FrContextMenuContent, FrContextMenuItem, FrContextMenuItemIndicator, FrContextMenuLabel, FrContextMenuModule, FrContextMenuPanel, FrContextMenuRadioGroup, FrContextMenuRadioItem, FrContextMenuSeparator, FrContextMenuShortcut, FrContextMenuSub, FrContextMenuSubTrigger, FrContextMenuTrigger };
|