@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,434 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, DestroyRef, ViewContainerRef, signal, input, Directive, ElementRef, model, booleanAttribute, computed, effect, contentChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@frame-ui-ng/components/dropdown-menu';
|
|
4
|
+
import { FrDropdownMenuContent, buildConnectedPositions, FR_DROPDOWN_MENU_CONTENT, FrDropdownMenuTree, FR_DROPDOWN_MENU_PARENT, FrDropdownMenuPanel, FrDropdownMenuTrigger, FrDropdownMenu, FrDropdownMenuLabel, FrDropdownMenuSeparator, FrDropdownMenuItem } from '@frame-ui-ng/components/dropdown-menu';
|
|
5
|
+
import { FrControlValueAccessor, provideDsValueAccessor } from '@frame-ui-ng/components/forms';
|
|
6
|
+
|
|
7
|
+
const FR_SELECT_POSITIONS = ['item-aligned', 'popper'];
|
|
8
|
+
class FrSelectContent extends FrDropdownMenuContent {
|
|
9
|
+
destroyRef = inject(DestroyRef);
|
|
10
|
+
viewContainerRef = inject(ViewContainerRef);
|
|
11
|
+
debugVisibleOverride = signal(null, ...(ngDevMode ? [{ debugName: "debugVisibleOverride" }] : /* istanbul ignore next */ []));
|
|
12
|
+
triggerWidth = signal(null, ...(ngDevMode ? [{ debugName: "triggerWidth" }] : /* istanbul ignore next */ []));
|
|
13
|
+
registrationView = null;
|
|
14
|
+
position = input('item-aligned', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
15
|
+
select = null;
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.destroyRef.onDestroy(() => {
|
|
19
|
+
this.registrationView?.destroy();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
setDebugVisibleOverride(value) {
|
|
23
|
+
this.debugVisibleOverride.set(value);
|
|
24
|
+
}
|
|
25
|
+
isDebugVisible() {
|
|
26
|
+
return this.debugVisibleOverride() ?? this.debugVisible();
|
|
27
|
+
}
|
|
28
|
+
setTriggerWidth(value) {
|
|
29
|
+
this.triggerWidth.set(value);
|
|
30
|
+
}
|
|
31
|
+
ensureItemsRegistered() {
|
|
32
|
+
if (this.registrationView) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.registrationView = this.viewContainerRef.createEmbeddedView(this.templateRef);
|
|
36
|
+
this.registrationView.detectChanges();
|
|
37
|
+
const index = this.viewContainerRef.indexOf(this.registrationView);
|
|
38
|
+
if (index >= 0) {
|
|
39
|
+
this.viewContainerRef.detach(index);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
panelMinWidth() {
|
|
43
|
+
if (this.position() !== 'item-aligned') {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return this.triggerWidth();
|
|
47
|
+
}
|
|
48
|
+
getPositions(isSubmenu) {
|
|
49
|
+
if (this.position() === 'item-aligned') {
|
|
50
|
+
return buildConnectedPositions({
|
|
51
|
+
align: this.align(),
|
|
52
|
+
alignOffset: 0,
|
|
53
|
+
isSubmenu,
|
|
54
|
+
side: this.side(),
|
|
55
|
+
sideOffset: 4,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return super.getPositions(isSubmenu);
|
|
59
|
+
}
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
61
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrSelectContent, isStandalone: true, selector: "ng-template[frSelectContent]", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
62
|
+
{
|
|
63
|
+
provide: FR_DROPDOWN_MENU_CONTENT,
|
|
64
|
+
useExisting: FrSelectContent,
|
|
65
|
+
},
|
|
66
|
+
FrDropdownMenuTree,
|
|
67
|
+
{
|
|
68
|
+
provide: FR_DROPDOWN_MENU_PARENT,
|
|
69
|
+
useValue: {
|
|
70
|
+
closeDelay: () => 0,
|
|
71
|
+
triggerMode: () => 'click',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
], exportAs: ["frSelectContent"], usesInheritance: true, ngImport: i0 });
|
|
75
|
+
}
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectContent, decorators: [{
|
|
77
|
+
type: Directive,
|
|
78
|
+
args: [{
|
|
79
|
+
selector: 'ng-template[frSelectContent]',
|
|
80
|
+
exportAs: 'frSelectContent',
|
|
81
|
+
providers: [
|
|
82
|
+
{
|
|
83
|
+
provide: FR_DROPDOWN_MENU_CONTENT,
|
|
84
|
+
useExisting: FrSelectContent,
|
|
85
|
+
},
|
|
86
|
+
FrDropdownMenuTree,
|
|
87
|
+
{
|
|
88
|
+
provide: FR_DROPDOWN_MENU_PARENT,
|
|
89
|
+
useValue: {
|
|
90
|
+
closeDelay: () => 0,
|
|
91
|
+
triggerMode: () => 'click',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
}]
|
|
96
|
+
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
97
|
+
class FrSelectPanel {
|
|
98
|
+
content = inject(FrSelectContent);
|
|
99
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectPanel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
100
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectPanel, isStandalone: true, selector: "[frSelectPanel], frame-select-panel", host: { properties: { "attr.data-position": "content.position()", "style.min-width.px": "content.panelMinWidth()" }, classAttribute: "frame-select__content" }, hostDirectives: [{ directive: i1.FrDropdownMenuPanel }], ngImport: i0 });
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectPanel, decorators: [{
|
|
103
|
+
type: Directive,
|
|
104
|
+
args: [{
|
|
105
|
+
selector: '[frSelectPanel], frame-select-panel',
|
|
106
|
+
hostDirectives: [FrDropdownMenuPanel],
|
|
107
|
+
host: {
|
|
108
|
+
class: 'frame-select__content',
|
|
109
|
+
'[attr.data-position]': 'content.position()',
|
|
110
|
+
'[style.min-width.px]': 'content.panelMinWidth()',
|
|
111
|
+
},
|
|
112
|
+
}]
|
|
113
|
+
}] });
|
|
114
|
+
|
|
115
|
+
const FR_SELECT_INDICATOR_POSITIONS = ['start', 'end'];
|
|
116
|
+
class FrSelect extends FrControlValueAccessor {
|
|
117
|
+
destroyRef = inject(DestroyRef);
|
|
118
|
+
dropdownTrigger = inject(FrDropdownMenuTrigger);
|
|
119
|
+
elementRef = inject(ElementRef);
|
|
120
|
+
selectedLabel = signal(null, ...(ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []));
|
|
121
|
+
labels = new Map();
|
|
122
|
+
resizeObserver = null;
|
|
123
|
+
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
124
|
+
debugVisible = input(false, { ...(ngDevMode ? { debugName: "debugVisible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
125
|
+
disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled', transform: booleanAttribute });
|
|
126
|
+
indicatorPosition = input('start', ...(ngDevMode ? [{ debugName: "indicatorPosition" }] : /* istanbul ignore next */ []));
|
|
127
|
+
invalidInput = input(false, { ...(ngDevMode ? { debugName: "invalidInput" } : /* istanbul ignore next */ {}), alias: 'invalid', transform: booleanAttribute });
|
|
128
|
+
disabled = computed(() => this.disabledInput() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
129
|
+
invalid = computed(() => this.invalidInput() || this.formInvalid(), ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
130
|
+
displayValue = computed(() => {
|
|
131
|
+
const value = this.value();
|
|
132
|
+
if (value === null) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
return this.selectedLabel() ?? this.labels.get(value) ?? value;
|
|
136
|
+
}, ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
137
|
+
constructor() {
|
|
138
|
+
super();
|
|
139
|
+
effect(() => {
|
|
140
|
+
const content = this.dropdownTrigger.menuContent();
|
|
141
|
+
if (content) {
|
|
142
|
+
content.select = this;
|
|
143
|
+
content.setDebugVisibleOverride(this.debugVisible() ? true : null);
|
|
144
|
+
content.setTriggerWidth(this.elementRef.nativeElement.offsetWidth);
|
|
145
|
+
content.ensureItemsRegistered();
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
queueMicrotask(() => {
|
|
149
|
+
this.attachResizeObserver();
|
|
150
|
+
});
|
|
151
|
+
this.destroyRef.onDestroy(() => {
|
|
152
|
+
this.resizeObserver?.disconnect();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
registerItem(value, label) {
|
|
156
|
+
this.labels.set(value, label);
|
|
157
|
+
if (this.value() === value) {
|
|
158
|
+
this.selectedLabel.set(label);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
selectValue(value, label) {
|
|
162
|
+
this.labels.set(value, label);
|
|
163
|
+
this.selectedLabel.set(label);
|
|
164
|
+
this.value.set(value);
|
|
165
|
+
this.notifyValueChange(value);
|
|
166
|
+
this.markAsTouched();
|
|
167
|
+
}
|
|
168
|
+
setViewValue(value) {
|
|
169
|
+
this.value.set(value);
|
|
170
|
+
if (value === null) {
|
|
171
|
+
this.selectedLabel.set(null);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this.selectedLabel.set(this.labels.get(value) ?? null);
|
|
175
|
+
}
|
|
176
|
+
attachResizeObserver() {
|
|
177
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const element = this.elementRef.nativeElement;
|
|
181
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
182
|
+
const content = this.dropdownTrigger.menuContent();
|
|
183
|
+
content?.setTriggerWidth(element.offsetWidth);
|
|
184
|
+
});
|
|
185
|
+
this.resizeObserver.observe(element);
|
|
186
|
+
}
|
|
187
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
188
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrSelect, isStandalone: true, selector: "button[frSelect]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, debugVisible: { classPropertyName: "debugVisible", publicName: "debugVisible", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicatorPosition: { classPropertyName: "indicatorPosition", publicName: "indicatorPosition", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "aria-autocomplete": "none", "aria-haspopup": "listbox", "type": "button", "role": "combobox" }, properties: { "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.aria-invalid": "invalid() ? \"true\" : null", "attr.data-disabled": "disabled() ? \"\" : null", "attr.data-invalid": "invalid() ? \"\" : null", "attr.disabled": "disabled() ? \"\" : null" }, classAttribute: "frame-select__trigger" }, providers: [provideDsValueAccessor(FrSelect)], usesInheritance: true, hostDirectives: [{ directive: i1.FrDropdownMenu, inputs: ["closeDelay", "closeDelay", "triggerMode", "triggerMode"] }, { directive: i1.FrDropdownMenuTrigger, inputs: ["frDropdownMenuTrigger", "frSelect"] }], ngImport: i0 });
|
|
189
|
+
}
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelect, decorators: [{
|
|
191
|
+
type: Directive,
|
|
192
|
+
args: [{
|
|
193
|
+
selector: 'button[frSelect]',
|
|
194
|
+
hostDirectives: [
|
|
195
|
+
{
|
|
196
|
+
directive: FrDropdownMenu,
|
|
197
|
+
inputs: ['closeDelay', 'triggerMode'],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
directive: FrDropdownMenuTrigger,
|
|
201
|
+
inputs: ['frDropdownMenuTrigger: frSelect'],
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
providers: [provideDsValueAccessor(FrSelect)],
|
|
205
|
+
host: {
|
|
206
|
+
class: 'frame-select__trigger',
|
|
207
|
+
'[attr.aria-disabled]': 'disabled() ? "true" : null',
|
|
208
|
+
'[attr.aria-invalid]': 'invalid() ? "true" : null',
|
|
209
|
+
'[attr.data-disabled]': 'disabled() ? "" : null',
|
|
210
|
+
'[attr.data-invalid]': 'invalid() ? "" : null',
|
|
211
|
+
'[attr.disabled]': 'disabled() ? "" : null',
|
|
212
|
+
'aria-autocomplete': 'none',
|
|
213
|
+
'aria-haspopup': 'listbox',
|
|
214
|
+
type: 'button',
|
|
215
|
+
role: 'combobox',
|
|
216
|
+
},
|
|
217
|
+
}]
|
|
218
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], debugVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "debugVisible", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], indicatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicatorPosition", required: false }] }], invalidInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
|
|
219
|
+
|
|
220
|
+
class FrSelectValue {
|
|
221
|
+
select = inject(FrSelect);
|
|
222
|
+
placeholder = input('Select an option', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
223
|
+
isPlaceholder = computed(() => this.select.displayValue() === null, ...(ngDevMode ? [{ debugName: "isPlaceholder" }] : /* istanbul ignore next */ []));
|
|
224
|
+
displayText = computed(() => this.select.displayValue() ?? this.placeholder(), ...(ngDevMode ? [{ debugName: "displayText" }] : /* istanbul ignore next */ []));
|
|
225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectValue, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
226
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrSelectValue, isStandalone: true, selector: "[frSelectValue], frame-select-value", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-placeholder": "isPlaceholder() ? \"\" : null", "textContent": "displayText()" }, classAttribute: "frame-select__value" }, ngImport: i0 });
|
|
227
|
+
}
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectValue, decorators: [{
|
|
229
|
+
type: Directive,
|
|
230
|
+
args: [{
|
|
231
|
+
selector: '[frSelectValue], frame-select-value',
|
|
232
|
+
host: {
|
|
233
|
+
class: 'frame-select__value',
|
|
234
|
+
'[attr.data-placeholder]': 'isPlaceholder() ? "" : null',
|
|
235
|
+
'[textContent]': 'displayText()',
|
|
236
|
+
},
|
|
237
|
+
}]
|
|
238
|
+
}], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
239
|
+
class FrSelectItemIndicator {
|
|
240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectItemIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
241
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectItemIndicator, isStandalone: true, selector: "[frSelectItemIndicator], frame-select-item-indicator", host: { attributes: { "aria-hidden": "true" }, classAttribute: "frame-select__item-indicator" }, ngImport: i0 });
|
|
242
|
+
}
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectItemIndicator, decorators: [{
|
|
244
|
+
type: Directive,
|
|
245
|
+
args: [{
|
|
246
|
+
selector: '[frSelectItemIndicator], frame-select-item-indicator',
|
|
247
|
+
host: {
|
|
248
|
+
class: 'frame-select__item-indicator',
|
|
249
|
+
'aria-hidden': 'true',
|
|
250
|
+
},
|
|
251
|
+
}]
|
|
252
|
+
}] });
|
|
253
|
+
class FrSelectIcon {
|
|
254
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
255
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectIcon, isStandalone: true, selector: "[frSelectIcon], frame-select-icon", host: { attributes: { "aria-hidden": "true" }, classAttribute: "frame-select__icon" }, ngImport: i0 });
|
|
256
|
+
}
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectIcon, decorators: [{
|
|
258
|
+
type: Directive,
|
|
259
|
+
args: [{
|
|
260
|
+
selector: '[frSelectIcon], frame-select-icon',
|
|
261
|
+
host: {
|
|
262
|
+
class: 'frame-select__icon',
|
|
263
|
+
'aria-hidden': 'true',
|
|
264
|
+
},
|
|
265
|
+
}]
|
|
266
|
+
}] });
|
|
267
|
+
class FrSelectError {
|
|
268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
269
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectError, isStandalone: true, selector: "[frSelectError], frame-select-error", host: { attributes: { "aria-live": "polite" }, classAttribute: "frame-select__error" }, ngImport: i0 });
|
|
270
|
+
}
|
|
271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectError, decorators: [{
|
|
272
|
+
type: Directive,
|
|
273
|
+
args: [{
|
|
274
|
+
selector: '[frSelectError], frame-select-error',
|
|
275
|
+
host: {
|
|
276
|
+
class: 'frame-select__error',
|
|
277
|
+
'aria-live': 'polite',
|
|
278
|
+
},
|
|
279
|
+
}]
|
|
280
|
+
}] });
|
|
281
|
+
|
|
282
|
+
class FrSelectGroup {
|
|
283
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
284
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectGroup, isStandalone: true, selector: "[frSelectGroup], frame-select-group", host: { classAttribute: "frame-select__group" }, ngImport: i0 });
|
|
285
|
+
}
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectGroup, decorators: [{
|
|
287
|
+
type: Directive,
|
|
288
|
+
args: [{
|
|
289
|
+
selector: '[frSelectGroup], frame-select-group',
|
|
290
|
+
host: {
|
|
291
|
+
class: 'frame-select__group',
|
|
292
|
+
},
|
|
293
|
+
}]
|
|
294
|
+
}] });
|
|
295
|
+
class FrSelectLabel {
|
|
296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
297
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectLabel, isStandalone: true, selector: "[frSelectLabel], frame-select-label", host: { classAttribute: "frame-select__label" }, hostDirectives: [{ directive: i1.FrDropdownMenuLabel }], ngImport: i0 });
|
|
298
|
+
}
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectLabel, decorators: [{
|
|
300
|
+
type: Directive,
|
|
301
|
+
args: [{
|
|
302
|
+
selector: '[frSelectLabel], frame-select-label',
|
|
303
|
+
hostDirectives: [FrDropdownMenuLabel],
|
|
304
|
+
host: {
|
|
305
|
+
class: 'frame-select__label',
|
|
306
|
+
},
|
|
307
|
+
}]
|
|
308
|
+
}] });
|
|
309
|
+
class FrSelectSeparator {
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
311
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrSelectSeparator, isStandalone: true, selector: "[frSelectSeparator], frame-select-separator", host: { classAttribute: "frame-select__separator" }, hostDirectives: [{ directive: i1.FrDropdownMenuSeparator }], ngImport: i0 });
|
|
312
|
+
}
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectSeparator, decorators: [{
|
|
314
|
+
type: Directive,
|
|
315
|
+
args: [{
|
|
316
|
+
selector: '[frSelectSeparator], frame-select-separator',
|
|
317
|
+
hostDirectives: [FrDropdownMenuSeparator],
|
|
318
|
+
host: {
|
|
319
|
+
class: 'frame-select__separator',
|
|
320
|
+
},
|
|
321
|
+
}]
|
|
322
|
+
}] });
|
|
323
|
+
class FrSelectItem {
|
|
324
|
+
elementRef = inject((ElementRef));
|
|
325
|
+
content = inject(FrSelectContent);
|
|
326
|
+
customIndicator = contentChild(FrSelectItemIndicator, ...(ngDevMode ? [{ debugName: "customIndicator" }] : /* istanbul ignore next */ []));
|
|
327
|
+
itemLabel = input(null, { ...(ngDevMode ? { debugName: "itemLabel" } : /* istanbul ignore next */ {}), alias: 'label' });
|
|
328
|
+
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
329
|
+
indicatorPosition() {
|
|
330
|
+
return this.content.select?.indicatorPosition() ?? 'start';
|
|
331
|
+
}
|
|
332
|
+
isSelected() {
|
|
333
|
+
return this.content.select?.value() === this.value();
|
|
334
|
+
}
|
|
335
|
+
ngAfterViewInit() {
|
|
336
|
+
this.content.select?.registerItem(this.value(), this.resolveLabel());
|
|
337
|
+
}
|
|
338
|
+
handleClick() {
|
|
339
|
+
this.content.select?.selectValue(this.value(), this.resolveLabel());
|
|
340
|
+
}
|
|
341
|
+
resolveLabel() {
|
|
342
|
+
if (this.itemLabel() !== null) {
|
|
343
|
+
return this.itemLabel();
|
|
344
|
+
}
|
|
345
|
+
const parts = Array.from(this.elementRef.nativeElement.children)
|
|
346
|
+
.filter((child) => !child.classList.contains('frame-select__item-indicator'))
|
|
347
|
+
.map((child) => child.textContent?.trim() ?? '')
|
|
348
|
+
.filter(Boolean);
|
|
349
|
+
if (parts.length > 0) {
|
|
350
|
+
return parts.join(' ');
|
|
351
|
+
}
|
|
352
|
+
return this.elementRef.nativeElement.textContent?.trim() ?? this.value();
|
|
353
|
+
}
|
|
354
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
355
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: FrSelectItem, isStandalone: true, selector: "button[frSelectItem]", inputs: { itemLabel: { classPropertyName: "itemLabel", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "handleClick()" }, properties: { "attr.data-has-custom-indicator": "customIndicator() ? \"\" : null", "attr.data-indicator-position": "indicatorPosition()", "attr.data-state": "isSelected() ? \"checked\" : \"unchecked\"" }, classAttribute: "frame-select__item" }, queries: [{ propertyName: "customIndicator", first: true, predicate: FrSelectItemIndicator, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.FrDropdownMenuItem }], ngImport: i0 });
|
|
356
|
+
}
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectItem, decorators: [{
|
|
358
|
+
type: Directive,
|
|
359
|
+
args: [{
|
|
360
|
+
selector: 'button[frSelectItem]',
|
|
361
|
+
hostDirectives: [FrDropdownMenuItem],
|
|
362
|
+
host: {
|
|
363
|
+
class: 'frame-select__item',
|
|
364
|
+
'[attr.data-has-custom-indicator]': 'customIndicator() ? "" : null',
|
|
365
|
+
'[attr.data-indicator-position]': 'indicatorPosition()',
|
|
366
|
+
'[attr.data-state]': 'isSelected() ? "checked" : "unchecked"',
|
|
367
|
+
'(click)': 'handleClick()',
|
|
368
|
+
},
|
|
369
|
+
}]
|
|
370
|
+
}], propDecorators: { customIndicator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FrSelectItemIndicator), { isSignal: true }] }], itemLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
371
|
+
|
|
372
|
+
class FrSelectModule {
|
|
373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
374
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: FrSelectModule, imports: [FrSelect,
|
|
375
|
+
FrSelectContent,
|
|
376
|
+
FrSelectError,
|
|
377
|
+
FrSelectGroup,
|
|
378
|
+
FrSelectIcon,
|
|
379
|
+
FrSelectItem,
|
|
380
|
+
FrSelectItemIndicator,
|
|
381
|
+
FrSelectLabel,
|
|
382
|
+
FrSelectPanel,
|
|
383
|
+
FrSelectSeparator,
|
|
384
|
+
FrSelectValue], exports: [FrSelect,
|
|
385
|
+
FrSelectContent,
|
|
386
|
+
FrSelectError,
|
|
387
|
+
FrSelectGroup,
|
|
388
|
+
FrSelectIcon,
|
|
389
|
+
FrSelectItem,
|
|
390
|
+
FrSelectItemIndicator,
|
|
391
|
+
FrSelectLabel,
|
|
392
|
+
FrSelectPanel,
|
|
393
|
+
FrSelectSeparator,
|
|
394
|
+
FrSelectValue] });
|
|
395
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectModule });
|
|
396
|
+
}
|
|
397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSelectModule, decorators: [{
|
|
398
|
+
type: NgModule,
|
|
399
|
+
args: [{
|
|
400
|
+
imports: [
|
|
401
|
+
FrSelect,
|
|
402
|
+
FrSelectContent,
|
|
403
|
+
FrSelectError,
|
|
404
|
+
FrSelectGroup,
|
|
405
|
+
FrSelectIcon,
|
|
406
|
+
FrSelectItem,
|
|
407
|
+
FrSelectItemIndicator,
|
|
408
|
+
FrSelectLabel,
|
|
409
|
+
FrSelectPanel,
|
|
410
|
+
FrSelectSeparator,
|
|
411
|
+
FrSelectValue,
|
|
412
|
+
],
|
|
413
|
+
exports: [
|
|
414
|
+
FrSelect,
|
|
415
|
+
FrSelectContent,
|
|
416
|
+
FrSelectError,
|
|
417
|
+
FrSelectGroup,
|
|
418
|
+
FrSelectIcon,
|
|
419
|
+
FrSelectItem,
|
|
420
|
+
FrSelectItemIndicator,
|
|
421
|
+
FrSelectLabel,
|
|
422
|
+
FrSelectPanel,
|
|
423
|
+
FrSelectSeparator,
|
|
424
|
+
FrSelectValue,
|
|
425
|
+
],
|
|
426
|
+
}]
|
|
427
|
+
}] });
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Generated bundle index. Do not edit.
|
|
431
|
+
*/
|
|
432
|
+
|
|
433
|
+
export { FR_SELECT_INDICATOR_POSITIONS, FR_SELECT_POSITIONS, FrSelect, FrSelectContent, FrSelectError, FrSelectGroup, FrSelectIcon, FrSelectItem, FrSelectItemIndicator, FrSelectLabel, FrSelectModule, FrSelectPanel, FrSelectSeparator, FrSelectValue };
|
|
434
|
+
//# sourceMappingURL=frame-ui-ng-components-select.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-ui-ng-components-select.mjs","sources":["../../../projects/components/select/src/select.content.ts","../../../projects/components/select/src/select.root.ts","../../../projects/components/select/src/select.value.ts","../../../projects/components/select/src/select.items.ts","../../../projects/components/select/select.module.ts","../../../projects/components/select/frame-ui-ng-components-select.ts"],"sourcesContent":["import { DestroyRef, Directive, EmbeddedViewRef, ViewContainerRef, inject, input, signal } from '@angular/core';\n\nimport {\n FR_DROPDOWN_MENU_CONTENT,\n FrDropdownMenuContent,\n FrDropdownMenuPanel,\n} from '@frame-ui-ng/components/dropdown-menu';\nimport { buildConnectedPositions } from '@frame-ui-ng/components/dropdown-menu';\nimport { FR_DROPDOWN_MENU_PARENT, FrDropdownMenuTree } from '@frame-ui-ng/components/dropdown-menu';\nimport { FrSelect } from './select.root';\n\r\nexport const FR_SELECT_POSITIONS = ['item-aligned', 'popper'] as const;\r\nexport type FrSelectPosition = (typeof FR_SELECT_POSITIONS)[number];\r\n\r\n@Directive({\r\n selector: 'ng-template[frSelectContent]',\r\n exportAs: 'frSelectContent',\r\n providers: [\r\n {\n provide: FR_DROPDOWN_MENU_CONTENT,\n useExisting: FrSelectContent,\n },\n FrDropdownMenuTree,\n {\n provide: FR_DROPDOWN_MENU_PARENT,\n useValue: {\n closeDelay: () => 0,\n triggerMode: () => 'click',\n },\n },\n ],\n})\nexport class FrSelectContent extends FrDropdownMenuContent {\n private readonly destroyRef = inject(DestroyRef);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly debugVisibleOverride = signal<boolean | null>(null);\n private readonly triggerWidth = signal<number | null>(null);\n private registrationView: EmbeddedViewRef<unknown> | null = null;\n\r\n readonly position = input<FrSelectPosition>('item-aligned');\r\n\r\n select: FrSelect | null = null;\n\n constructor() {\n super();\n\n this.destroyRef.onDestroy(() => {\n this.registrationView?.destroy();\n });\n }\n\r\n setDebugVisibleOverride(value: boolean | null): void {\r\n this.debugVisibleOverride.set(value);\r\n }\r\n\r\n override isDebugVisible(): boolean {\r\n return this.debugVisibleOverride() ?? this.debugVisible();\r\n }\r\n\r\n setTriggerWidth(value: number | null): void {\n this.triggerWidth.set(value);\n }\n\n ensureItemsRegistered(): void {\n if (this.registrationView) {\n return;\n }\n\n this.registrationView = this.viewContainerRef.createEmbeddedView(this.templateRef);\n this.registrationView.detectChanges();\n\n const index = this.viewContainerRef.indexOf(this.registrationView);\n\n if (index >= 0) {\n this.viewContainerRef.detach(index);\n }\n }\n\r\n panelMinWidth(): number | null {\r\n if (this.position() !== 'item-aligned') {\r\n return null;\r\n }\r\n\r\n return this.triggerWidth();\r\n }\r\n\r\n override getPositions(isSubmenu: boolean) {\r\n if (this.position() === 'item-aligned') {\r\n return buildConnectedPositions({\r\n align: this.align(),\r\n alignOffset: 0,\r\n isSubmenu,\r\n side: this.side(),\r\n sideOffset: 4,\r\n });\r\n }\r\n\r\n return super.getPositions(isSubmenu);\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[frSelectPanel], frame-select-panel',\r\n hostDirectives: [FrDropdownMenuPanel],\r\n host: {\r\n class: 'frame-select__content',\r\n '[attr.data-position]': 'content.position()',\r\n '[style.min-width.px]': 'content.panelMinWidth()',\r\n },\r\n})\r\nexport class FrSelectPanel {\r\n protected readonly content = inject(FrSelectContent);\r\n}\r\n\r\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n} from '@angular/core';\n\nimport { FrDropdownMenu } from '@frame-ui-ng/components/dropdown-menu';\nimport { FrDropdownMenuTrigger } from '@frame-ui-ng/components/dropdown-menu';\nimport { FrControlValueAccessor, provideDsValueAccessor } from '@frame-ui-ng/components/forms';\nimport { FrSelectContent } from './select.content';\n\nexport const FR_SELECT_INDICATOR_POSITIONS = ['start', 'end'] as const;\nexport type FrSelectIndicatorPosition = (typeof FR_SELECT_INDICATOR_POSITIONS)[number];\n\n@Directive({\n selector: 'button[frSelect]',\n hostDirectives: [\n {\n directive: FrDropdownMenu,\n inputs: ['closeDelay', 'triggerMode'],\n },\n {\n directive: FrDropdownMenuTrigger,\n inputs: ['frDropdownMenuTrigger: frSelect'],\n },\n ],\n providers: [provideDsValueAccessor(FrSelect)],\n host: {\n class: 'frame-select__trigger',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.aria-invalid]': 'invalid() ? \"true\" : null',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '[attr.data-invalid]': 'invalid() ? \"\" : null',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n 'aria-autocomplete': 'none',\n 'aria-haspopup': 'listbox',\n type: 'button',\n role: 'combobox',\n },\n})\nexport class FrSelect extends FrControlValueAccessor<string | null> {\n private readonly destroyRef = inject(DestroyRef);\n private readonly dropdownTrigger = inject(FrDropdownMenuTrigger);\n private readonly elementRef = inject<ElementRef<HTMLButtonElement>>(ElementRef);\n private readonly selectedLabel = signal<string | null>(null);\n private readonly labels = new Map<string | null, string>();\n private resizeObserver: ResizeObserver | null = null;\n\n readonly value = model<string | null>(null);\n readonly debugVisible = input(false, { transform: booleanAttribute });\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n readonly indicatorPosition = input<FrSelectIndicatorPosition>('start');\n readonly invalidInput = input(false, { alias: 'invalid', transform: booleanAttribute });\n readonly disabled = computed(() => this.disabledInput() || this.formDisabled());\n readonly invalid = computed(() => this.invalidInput() || this.formInvalid());\n\n readonly displayValue = computed(() => {\n const value = this.value();\n\n if (value === null) {\n return null;\n }\n\n return this.selectedLabel() ?? this.labels.get(value) ?? value;\n });\n\n constructor() {\n super();\n\n effect(() => {\n const content = this.dropdownTrigger.menuContent() as FrSelectContent | null;\n\n if (content) {\n content.select = this;\n content.setDebugVisibleOverride(this.debugVisible() ? true : null);\n content.setTriggerWidth(this.elementRef.nativeElement.offsetWidth);\n content.ensureItemsRegistered();\n }\n });\n\n queueMicrotask(() => {\n this.attachResizeObserver();\n });\n\n this.destroyRef.onDestroy(() => {\n this.resizeObserver?.disconnect();\n });\n }\n\n registerItem(value: string | null, label: string): void {\n this.labels.set(value, label);\n\n if (this.value() === value) {\n this.selectedLabel.set(label);\n }\n }\n\n selectValue(value: string | null, label: string): void {\n this.labels.set(value, label);\n this.selectedLabel.set(label);\n this.value.set(value);\n this.notifyValueChange(value);\n this.markAsTouched();\n }\n\n protected setViewValue(value: string | null): void {\n this.value.set(value);\n\n if (value === null) {\n this.selectedLabel.set(null);\n return;\n }\n\n this.selectedLabel.set(this.labels.get(value) ?? null);\n }\n\n private attachResizeObserver(): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n\n const element = this.elementRef.nativeElement;\n\n this.resizeObserver = new ResizeObserver(() => {\n const content = this.dropdownTrigger.menuContent() as FrSelectContent | null;\n content?.setTriggerWidth(element.offsetWidth);\n });\n this.resizeObserver.observe(element);\n }\n}\n\r\n","import { Directive, booleanAttribute, computed, inject, input } from '@angular/core';\r\n\r\nimport { FrSelect } from './select.root';\r\n\r\n@Directive({\r\n selector: '[frSelectValue], frame-select-value',\r\n host: {\r\n class: 'frame-select__value',\r\n '[attr.data-placeholder]': 'isPlaceholder() ? \"\" : null',\r\n '[textContent]': 'displayText()',\r\n },\r\n})\r\nexport class FrSelectValue {\r\n private readonly select = inject(FrSelect);\r\n\r\n readonly placeholder = input('Select an option');\r\n\r\n protected readonly isPlaceholder = computed(() => this.select.displayValue() === null);\r\n protected readonly displayText = computed(() => this.select.displayValue() ?? this.placeholder());\r\n}\r\n\r\n@Directive({\r\n selector: '[frSelectItemIndicator], frame-select-item-indicator',\r\n host: {\r\n class: 'frame-select__item-indicator',\r\n 'aria-hidden': 'true',\r\n },\r\n})\r\nexport class FrSelectItemIndicator {}\r\n\r\n@Directive({\n selector: '[frSelectIcon], frame-select-icon',\n host: {\n class: 'frame-select__icon',\n 'aria-hidden': 'true',\n },\n})\nexport class FrSelectIcon {}\n\n@Directive({\n selector: '[frSelectError], frame-select-error',\n host: {\n class: 'frame-select__error',\n 'aria-live': 'polite',\n },\n})\nexport class FrSelectError {}\n","import { Directive, ElementRef, contentChild, inject, input } from '@angular/core';\r\n\r\nimport {\r\n FrDropdownMenuItem,\r\n FrDropdownMenuLabel,\r\n FrDropdownMenuSeparator,\r\n} from '@frame-ui-ng/components/dropdown-menu';\r\nimport { FrSelectContent } from './select.content';\r\nimport { FrSelectItemIndicator } from './select.value';\r\n\r\n@Directive({\r\n selector: '[frSelectGroup], frame-select-group',\r\n host: {\r\n class: 'frame-select__group',\r\n },\r\n})\r\nexport class FrSelectGroup {}\r\n\r\n@Directive({\r\n selector: '[frSelectLabel], frame-select-label',\r\n hostDirectives: [FrDropdownMenuLabel],\r\n host: {\r\n class: 'frame-select__label',\r\n },\r\n})\r\nexport class FrSelectLabel {}\r\n\r\n@Directive({\r\n selector: '[frSelectSeparator], frame-select-separator',\r\n hostDirectives: [FrDropdownMenuSeparator],\r\n host: {\r\n class: 'frame-select__separator',\r\n },\r\n})\r\nexport class FrSelectSeparator {}\r\n\r\n@Directive({\r\n selector: 'button[frSelectItem]',\r\n hostDirectives: [FrDropdownMenuItem],\r\n host: {\r\n class: 'frame-select__item',\r\n '[attr.data-has-custom-indicator]': 'customIndicator() ? \"\" : null',\r\n '[attr.data-indicator-position]': 'indicatorPosition()',\r\n '[attr.data-state]': 'isSelected() ? \"checked\" : \"unchecked\"',\r\n '(click)': 'handleClick()',\r\n },\r\n})\r\nexport class FrSelectItem {\r\n private readonly elementRef = inject(ElementRef<HTMLElement>);\r\n private readonly content = inject(FrSelectContent);\r\n protected readonly customIndicator = contentChild(FrSelectItemIndicator);\r\n\r\n readonly itemLabel = input<string | null>(null, { alias: 'label' });\r\n readonly value = input.required<string | null>();\r\n\r\n protected indicatorPosition() {\r\n return this.content.select?.indicatorPosition() ?? 'start';\r\n }\r\n\r\n protected isSelected(): boolean {\r\n return this.content.select?.value() === this.value();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.content.select?.registerItem(this.value(), this.resolveLabel());\r\n }\r\n\r\n protected handleClick(): void {\r\n this.content.select?.selectValue(this.value(), this.resolveLabel());\r\n }\r\n\r\n private resolveLabel(): string {\r\n if (this.itemLabel() !== null) {\r\n return this.itemLabel()!;\r\n }\r\n\r\n const parts = Array.from(this.elementRef.nativeElement.children as HTMLCollectionOf<HTMLElement>)\r\n .filter((child) => !child.classList.contains('frame-select__item-indicator'))\r\n .map((child) => child.textContent?.trim() ?? '')\r\n .filter(Boolean);\r\n\r\n if (parts.length > 0) {\r\n return parts.join(' ');\r\n }\r\n\r\n return this.elementRef.nativeElement.textContent?.trim() ?? this.value();\r\n }\r\n}\r\n\r\n","import { NgModule } from '@angular/core';\nimport {\n FrSelect,\n FrSelectContent,\n FrSelectError,\n FrSelectGroup,\n FrSelectIcon,\n FrSelectItem,\n FrSelectItemIndicator,\n FrSelectLabel,\n FrSelectPanel,\n FrSelectSeparator,\n FrSelectValue,\n} from './src/select';\n\n@NgModule({\n imports: [\n FrSelect,\n FrSelectContent,\n FrSelectError,\n FrSelectGroup,\n FrSelectIcon,\n FrSelectItem,\n FrSelectItemIndicator,\n FrSelectLabel,\n FrSelectPanel,\n FrSelectSeparator,\n FrSelectValue,\n ],\n exports: [\n FrSelect,\n FrSelectContent,\n FrSelectError,\n FrSelectGroup,\n FrSelectIcon,\n FrSelectItem,\n FrSelectItemIndicator,\n FrSelectLabel,\n FrSelectPanel,\n FrSelectSeparator,\n FrSelectValue,\n ],\n})\nexport class FrSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAWa,mBAAmB,GAAG,CAAC,cAAc,EAAE,QAAQ;AAqBtD,MAAO,eAAgB,SAAQ,qBAAqB,CAAA;AACvC,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,IAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC3C,IAAA,oBAAoB,GAAG,MAAM,CAAiB,IAAI,2FAAC;AACnD,IAAA,YAAY,GAAG,MAAM,CAAgB,IAAI,mFAAC;IACnD,gBAAgB,GAAoC,IAAI;AAEvD,IAAA,QAAQ,GAAG,KAAK,CAAmB,cAAc,+EAAC;IAE3D,MAAM,GAAoB,IAAI;AAE9B,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAEP,QAAA,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAK;AAC7B,YAAA,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE;AAClC,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,uBAAuB,CAAC,KAAqB,EAAA;AAC3C,QAAA,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC;IACtC;IAES,cAAc,GAAA;QACrB,OAAO,IAAI,CAAC,oBAAoB,EAAE,IAAI,IAAI,CAAC,YAAY,EAAE;IAC3D;AAEA,IAAA,eAAe,CAAC,KAAoB,EAAA;AAClC,QAAA,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC;IAC9B;IAEA,qBAAqB,GAAA;AACnB,QAAA,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACzB;QACF;AAEA,QAAA,IAAI,CAAC,gBAAg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* as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, Directive, NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
const FR_SEPARATOR_ORIENTATIONS = ['horizontal', 'vertical'];
|
|
5
|
+
function coerceSeparatorOrientation(value) {
|
|
6
|
+
return value === 'vertical' ? 'vertical' : 'horizontal';
|
|
7
|
+
}
|
|
8
|
+
class FrSeparator {
|
|
9
|
+
orientation = input('horizontal', { ...(ngDevMode ? { debugName: "orientation" } : /* istanbul ignore next */ {}), transform: coerceSeparatorOrientation });
|
|
10
|
+
decorative = input(true, { ...(ngDevMode ? { debugName: "decorative" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrSeparator, isStandalone: true, selector: "[frSeparator], frame-separator", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-decorative": "decorative()", "attr.role": "decorative() ? \"presentation\" : \"separator\"", "attr.aria-orientation": "decorative() ? null : orientation()" }, classAttribute: "frame-separator" }, exportAs: ["frSeparator"], ngImport: i0 });
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSeparator, decorators: [{
|
|
15
|
+
type: Directive,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: '[frSeparator], frame-separator',
|
|
18
|
+
exportAs: 'frSeparator',
|
|
19
|
+
host: {
|
|
20
|
+
class: 'frame-separator',
|
|
21
|
+
'[attr.data-orientation]': 'orientation()',
|
|
22
|
+
'[attr.data-decorative]': 'decorative()',
|
|
23
|
+
'[attr.role]': 'decorative() ? "presentation" : "separator"',
|
|
24
|
+
'[attr.aria-orientation]': 'decorative() ? null : orientation()',
|
|
25
|
+
},
|
|
26
|
+
}]
|
|
27
|
+
}], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }] } });
|
|
28
|
+
|
|
29
|
+
class FrSeparatorModule {
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSeparatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
31
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: FrSeparatorModule, imports: [FrSeparator], exports: [FrSeparator] });
|
|
32
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSeparatorModule });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrSeparatorModule, decorators: [{
|
|
35
|
+
type: NgModule,
|
|
36
|
+
args: [{
|
|
37
|
+
imports: [
|
|
38
|
+
FrSeparator,
|
|
39
|
+
],
|
|
40
|
+
exports: [
|
|
41
|
+
FrSeparator,
|
|
42
|
+
],
|
|
43
|
+
}]
|
|
44
|
+
}] });
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Generated bundle index. Do not edit.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
export { FR_SEPARATOR_ORIENTATIONS, FrSeparator, FrSeparatorModule };
|
|
51
|
+
//# sourceMappingURL=frame-ui-ng-components-separator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-ui-ng-components-separator.mjs","sources":["../../../projects/components/separator/src/separator.ts","../../../projects/components/separator/separator.module.ts","../../../projects/components/separator/frame-ui-ng-components-separator.ts"],"sourcesContent":["import { booleanAttribute, Directive, input } from '@angular/core';\n\nexport const FR_SEPARATOR_ORIENTATIONS = ['horizontal', 'vertical'] as const;\n\nexport type FrSeparatorOrientation = (typeof FR_SEPARATOR_ORIENTATIONS)[number];\n\nfunction coerceSeparatorOrientation(value: unknown): FrSeparatorOrientation {\n return value === 'vertical' ? 'vertical' : 'horizontal';\n}\n\n@Directive({\n selector: '[frSeparator], frame-separator',\n exportAs: 'frSeparator',\n host: {\n class: 'frame-separator',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-decorative]': 'decorative()',\n '[attr.role]': 'decorative() ? \"presentation\" : \"separator\"',\n '[attr.aria-orientation]': 'decorative() ? null : orientation()',\n },\n})\nexport class FrSeparator {\n readonly orientation = input<FrSeparatorOrientation, unknown>('horizontal', {\n transform: coerceSeparatorOrientation,\n });\n\n readonly decorative = input(true, { transform: booleanAttribute });\n}\n","import { NgModule } from '@angular/core';\nimport {\n FrSeparator,\n} from './src/separator';\n\n@NgModule({\n imports: [\n FrSeparator,\n ],\n exports: [\n FrSeparator,\n ],\n})\nexport class FrSeparatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAEa,yBAAyB,GAAG,CAAC,YAAY,EAAE,UAAU;AAIlE,SAAS,0BAA0B,CAAC,KAAc,EAAA;IAChD,OAAO,KAAK,KAAK,UAAU,GAAG,UAAU,GAAG,YAAY;AACzD;MAaa,WAAW,CAAA;IACb,WAAW,GAAG,KAAK,CAAkC,YAAY,mFACxE,SAAS,EAAE,0BAA0B,EAAA,CACrC;IAEO,UAAU,GAAG,KAAK,CAAC,IAAI,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGALvD,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4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