@area8975/ui 0.2.2-dev.49 → 0.2.2-dev.50
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/README.md +3 -2
- package/fesm2022/area8975-ui-alert.mjs +113 -0
- package/fesm2022/area8975-ui-alert.mjs.map +1 -0
- package/fesm2022/area8975-ui-avatar.mjs +157 -0
- package/fesm2022/area8975-ui-avatar.mjs.map +1 -0
- package/fesm2022/area8975-ui-badge.mjs +116 -0
- package/fesm2022/area8975-ui-badge.mjs.map +1 -0
- package/fesm2022/area8975-ui-button.mjs +314 -0
- package/fesm2022/area8975-ui-button.mjs.map +1 -0
- package/fesm2022/area8975-ui-calendar.mjs +549 -0
- package/fesm2022/area8975-ui-calendar.mjs.map +1 -0
- package/fesm2022/area8975-ui-card-header.mjs +96 -0
- package/fesm2022/area8975-ui-card-header.mjs.map +1 -0
- package/fesm2022/area8975-ui-card.mjs +73 -0
- package/fesm2022/area8975-ui-card.mjs.map +1 -0
- package/fesm2022/area8975-ui-chart-palette.mjs +225 -0
- package/fesm2022/area8975-ui-chart-palette.mjs.map +1 -0
- package/fesm2022/area8975-ui-charts.mjs +2813 -0
- package/fesm2022/area8975-ui-charts.mjs.map +1 -0
- package/fesm2022/area8975-ui-checkbox.mjs +202 -0
- package/fesm2022/area8975-ui-checkbox.mjs.map +1 -0
- package/fesm2022/area8975-ui-colour.mjs +200 -0
- package/fesm2022/area8975-ui-colour.mjs.map +1 -0
- package/fesm2022/area8975-ui-container.mjs +40 -0
- package/fesm2022/area8975-ui-container.mjs.map +1 -0
- package/fesm2022/area8975-ui-counter.mjs +246 -0
- package/fesm2022/area8975-ui-counter.mjs.map +1 -0
- package/fesm2022/area8975-ui-date-range-picker.mjs +554 -0
- package/fesm2022/area8975-ui-date-range-picker.mjs.map +1 -0
- package/fesm2022/area8975-ui-datepicker.mjs +547 -0
- package/fesm2022/area8975-ui-datepicker.mjs.map +1 -0
- package/fesm2022/area8975-ui-disclosure.mjs +279 -0
- package/fesm2022/area8975-ui-disclosure.mjs.map +1 -0
- package/fesm2022/area8975-ui-drawer.mjs +106 -0
- package/fesm2022/area8975-ui-drawer.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropdown-button.mjs +141 -0
- package/fesm2022/area8975-ui-dropdown-button.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropdown-menu.mjs +96 -0
- package/fesm2022/area8975-ui-dropdown-menu.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropdown.mjs +208 -0
- package/fesm2022/area8975-ui-dropdown.mjs.map +1 -0
- package/fesm2022/area8975-ui-dropzone.mjs +332 -0
- package/fesm2022/area8975-ui-dropzone.mjs.map +1 -0
- package/fesm2022/area8975-ui-field.mjs +191 -0
- package/fesm2022/area8975-ui-field.mjs.map +1 -0
- package/fesm2022/area8975-ui-file-input.mjs +340 -0
- package/fesm2022/area8975-ui-file-input.mjs.map +1 -0
- package/fesm2022/area8975-ui-file.mjs +47 -0
- package/fesm2022/area8975-ui-file.mjs.map +1 -0
- package/fesm2022/area8975-ui-format.mjs +70 -0
- package/fesm2022/area8975-ui-format.mjs.map +1 -0
- package/fesm2022/area8975-ui-input-addon.mjs +42 -0
- package/fesm2022/area8975-ui-input-addon.mjs.map +1 -0
- package/fesm2022/area8975-ui-input-group.mjs +86 -0
- package/fesm2022/area8975-ui-input-group.mjs.map +1 -0
- package/fesm2022/area8975-ui-input.mjs +682 -0
- package/fesm2022/area8975-ui-input.mjs.map +1 -0
- package/fesm2022/area8975-ui-kpi.mjs +167 -0
- package/fesm2022/area8975-ui-kpi.mjs.map +1 -0
- package/fesm2022/area8975-ui-layout.mjs +63 -0
- package/fesm2022/area8975-ui-layout.mjs.map +1 -0
- package/fesm2022/area8975-ui-loading.mjs +76 -0
- package/fesm2022/area8975-ui-loading.mjs.map +1 -0
- package/fesm2022/area8975-ui-modal-close-btn.mjs +89 -0
- package/fesm2022/area8975-ui-modal-close-btn.mjs.map +1 -0
- package/fesm2022/area8975-ui-modal.mjs +235 -0
- package/fesm2022/area8975-ui-modal.mjs.map +1 -0
- package/fesm2022/area8975-ui-money.mjs +230 -0
- package/fesm2022/area8975-ui-money.mjs.map +1 -0
- package/fesm2022/area8975-ui-overlay.mjs +317 -0
- package/fesm2022/area8975-ui-overlay.mjs.map +1 -0
- package/fesm2022/area8975-ui-pagination.mjs +152 -0
- package/fesm2022/area8975-ui-pagination.mjs.map +1 -0
- package/fesm2022/area8975-ui-private.mjs +63 -0
- package/fesm2022/area8975-ui-private.mjs.map +1 -0
- package/fesm2022/area8975-ui-progress.mjs +307 -0
- package/fesm2022/area8975-ui-progress.mjs.map +1 -0
- package/fesm2022/area8975-ui-radio.mjs +199 -0
- package/fesm2022/area8975-ui-radio.mjs.map +1 -0
- package/fesm2022/area8975-ui-rich-text-editor.mjs +778 -0
- package/fesm2022/area8975-ui-rich-text-editor.mjs.map +1 -0
- package/fesm2022/area8975-ui-search.mjs +266 -0
- package/fesm2022/area8975-ui-search.mjs.map +1 -0
- package/fesm2022/area8975-ui-segmented.mjs +118 -0
- package/fesm2022/area8975-ui-segmented.mjs.map +1 -0
- package/fesm2022/area8975-ui-select.mjs +926 -0
- package/fesm2022/area8975-ui-select.mjs.map +1 -0
- package/fesm2022/area8975-ui-sidebar-group.mjs +60 -0
- package/fesm2022/area8975-ui-sidebar-group.mjs.map +1 -0
- package/fesm2022/area8975-ui-sidebar-item.mjs +107 -0
- package/fesm2022/area8975-ui-sidebar-item.mjs.map +1 -0
- package/fesm2022/area8975-ui-sidebar.mjs +109 -0
- package/fesm2022/area8975-ui-sidebar.mjs.map +1 -0
- package/fesm2022/area8975-ui-skeleton.mjs +116 -0
- package/fesm2022/area8975-ui-skeleton.mjs.map +1 -0
- package/fesm2022/area8975-ui-stat.mjs +55 -0
- package/fesm2022/area8975-ui-stat.mjs.map +1 -0
- package/fesm2022/area8975-ui-switch.mjs +132 -0
- package/fesm2022/area8975-ui-switch.mjs.map +1 -0
- package/fesm2022/area8975-ui-tab.mjs +217 -0
- package/fesm2022/area8975-ui-tab.mjs.map +1 -0
- package/fesm2022/area8975-ui-table-filters.mjs +499 -0
- package/fesm2022/area8975-ui-table-filters.mjs.map +1 -0
- package/fesm2022/area8975-ui-table.mjs +1237 -0
- package/fesm2022/area8975-ui-table.mjs.map +1 -0
- package/fesm2022/area8975-ui-textarea.mjs +375 -0
- package/fesm2022/area8975-ui-textarea.mjs.map +1 -0
- package/fesm2022/area8975-ui-theme.mjs +246 -0
- package/fesm2022/area8975-ui-theme.mjs.map +1 -0
- package/fesm2022/area8975-ui-time-select.mjs +170 -0
- package/fesm2022/area8975-ui-time-select.mjs.map +1 -0
- package/fesm2022/area8975-ui-toast.mjs +269 -0
- package/fesm2022/area8975-ui-toast.mjs.map +1 -0
- package/fesm2022/area8975-ui-toaster.mjs +117 -0
- package/fesm2022/area8975-ui-toaster.mjs.map +1 -0
- package/fesm2022/area8975-ui-tooltip.mjs +196 -0
- package/fesm2022/area8975-ui-tooltip.mjs.map +1 -0
- package/fesm2022/area8975-ui-user-menu.mjs +186 -0
- package/fesm2022/area8975-ui-user-menu.mjs.map +1 -0
- package/fesm2022/area8975-ui.mjs +0 -16520
- package/package.json +237 -1
- package/types/area8975-ui-alert.d.ts +25 -0
- package/types/area8975-ui-avatar.d.ts +40 -0
- package/types/area8975-ui-badge.d.ts +31 -0
- package/types/area8975-ui-button.d.ts +129 -0
- package/types/area8975-ui-calendar.d.ts +177 -0
- package/types/area8975-ui-card-header.d.ts +28 -0
- package/types/area8975-ui-card.d.ts +18 -0
- package/types/area8975-ui-chart-palette.d.ts +176 -0
- package/types/area8975-ui-charts.d.ts +747 -0
- package/types/area8975-ui-checkbox.d.ts +61 -0
- package/types/area8975-ui-colour.d.ts +31 -0
- package/types/area8975-ui-container.d.ts +5 -0
- package/types/area8975-ui-counter.d.ts +43 -0
- package/types/area8975-ui-date-range-picker.d.ts +132 -0
- package/types/area8975-ui-datepicker.d.ts +124 -0
- package/types/area8975-ui-disclosure.d.ts +79 -0
- package/types/area8975-ui-drawer.d.ts +25 -0
- package/types/area8975-ui-dropdown-button.d.ts +32 -0
- package/types/area8975-ui-dropdown-menu.d.ts +25 -0
- package/types/area8975-ui-dropdown.d.ts +56 -0
- package/types/area8975-ui-dropzone.d.ts +96 -0
- package/types/area8975-ui-field.d.ts +72 -0
- package/types/area8975-ui-file-input.d.ts +72 -0
- package/types/area8975-ui-file.d.ts +21 -0
- package/types/area8975-ui-format.d.ts +37 -0
- package/types/area8975-ui-input-addon.d.ts +10 -0
- package/types/area8975-ui-input-group.d.ts +18 -0
- package/types/area8975-ui-input.d.ts +224 -0
- package/types/area8975-ui-kpi.d.ts +36 -0
- package/types/area8975-ui-layout.d.ts +7 -0
- package/types/area8975-ui-loading.d.ts +16 -0
- package/types/area8975-ui-modal-close-btn.d.ts +14 -0
- package/types/area8975-ui-modal.d.ts +45 -0
- package/types/area8975-ui-money.d.ts +77 -0
- package/types/area8975-ui-overlay.d.ts +75 -0
- package/types/area8975-ui-pagination.d.ts +27 -0
- package/types/area8975-ui-private.d.ts +20 -0
- package/types/area8975-ui-progress.d.ts +127 -0
- package/types/area8975-ui-radio.d.ts +61 -0
- package/types/area8975-ui-rich-text-editor.d.ts +165 -0
- package/types/area8975-ui-search.d.ts +56 -0
- package/types/area8975-ui-segmented.d.ts +41 -0
- package/types/area8975-ui-select.d.ts +293 -0
- package/types/area8975-ui-sidebar-group.d.ts +15 -0
- package/types/area8975-ui-sidebar-item.d.ts +20 -0
- package/types/area8975-ui-sidebar.d.ts +16 -0
- package/types/area8975-ui-skeleton.d.ts +35 -0
- package/types/area8975-ui-stat.d.ts +13 -0
- package/types/area8975-ui-switch.d.ts +32 -0
- package/types/area8975-ui-tab.d.ts +45 -0
- package/types/area8975-ui-table-filters.d.ts +138 -0
- package/types/area8975-ui-table.d.ts +371 -0
- package/types/area8975-ui-textarea.d.ts +126 -0
- package/types/area8975-ui-theme.d.ts +61 -0
- package/types/area8975-ui-time-select.d.ts +35 -0
- package/types/area8975-ui-toast.d.ts +78 -0
- package/types/area8975-ui-toaster.d.ts +23 -0
- package/types/area8975-ui-tooltip.d.ts +47 -0
- package/types/area8975-ui-user-menu.d.ts +39 -0
- package/types/area8975-ui.d.ts +1 -4546
- package/fesm2022/area8975-ui.mjs.map +0 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, TemplateRef, computed, contentChild, inject, input, model } from "@angular/core";
|
|
4
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
5
|
+
import { heroChevronDown } from "@ng-icons/heroicons/outline";
|
|
6
|
+
var UiDisclosurePanelDirective = class UiDisclosurePanelDirective {
|
|
7
|
+
template = inject(TemplateRef);
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
|
+
minVersion: "12.0.0",
|
|
10
|
+
version: "22.2.1",
|
|
11
|
+
ngImport: i0,
|
|
12
|
+
type: UiDisclosurePanelDirective,
|
|
13
|
+
deps: [],
|
|
14
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
15
|
+
});
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
17
|
+
minVersion: "14.0.0",
|
|
18
|
+
version: "22.2.1",
|
|
19
|
+
type: UiDisclosurePanelDirective,
|
|
20
|
+
isStandalone: true,
|
|
21
|
+
selector: "ng-template[uiDisclosurePanel]",
|
|
22
|
+
ngImport: i0
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.1",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: UiDisclosurePanelDirective,
|
|
30
|
+
decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{ selector: "ng-template[uiDisclosurePanel]" }]
|
|
33
|
+
}]
|
|
34
|
+
});
|
|
35
|
+
let nextId = 0;
|
|
36
|
+
var UiDisclosureComponent = class UiDisclosureComponent {
|
|
37
|
+
expanded = model(false, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
38
|
+
panelId = input("", ...ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []);
|
|
39
|
+
generatedId = `ui-disclosure-${nextId++}`;
|
|
40
|
+
regionId = computed(() => this.panelId() || this.generatedId, ...ngDevMode ? [{ debugName: "regionId" }] : /* istanbul ignore next */ []);
|
|
41
|
+
panel = contentChild(UiDisclosurePanelDirective, ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
|
|
42
|
+
toggle = () => this.expanded.update((value) => !value);
|
|
43
|
+
open = () => this.expanded.set(true);
|
|
44
|
+
close = () => this.expanded.set(false);
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
46
|
+
minVersion: "12.0.0",
|
|
47
|
+
version: "22.2.1",
|
|
48
|
+
ngImport: i0,
|
|
49
|
+
type: UiDisclosureComponent,
|
|
50
|
+
deps: [],
|
|
51
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
52
|
+
});
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
54
|
+
minVersion: "17.0.0",
|
|
55
|
+
version: "22.2.1",
|
|
56
|
+
type: UiDisclosureComponent,
|
|
57
|
+
isStandalone: true,
|
|
58
|
+
selector: "ui-disclosure",
|
|
59
|
+
inputs: {
|
|
60
|
+
expanded: {
|
|
61
|
+
classPropertyName: "expanded",
|
|
62
|
+
publicName: "expanded",
|
|
63
|
+
isSignal: true,
|
|
64
|
+
isRequired: false,
|
|
65
|
+
transformFunction: null
|
|
66
|
+
},
|
|
67
|
+
panelId: {
|
|
68
|
+
classPropertyName: "panelId",
|
|
69
|
+
publicName: "panelId",
|
|
70
|
+
isSignal: true,
|
|
71
|
+
isRequired: false,
|
|
72
|
+
transformFunction: null
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
outputs: { expanded: "expandedChange" },
|
|
76
|
+
queries: [{
|
|
77
|
+
propertyName: "panel",
|
|
78
|
+
first: true,
|
|
79
|
+
predicate: UiDisclosurePanelDirective,
|
|
80
|
+
descendants: true,
|
|
81
|
+
isSignal: true
|
|
82
|
+
}],
|
|
83
|
+
exportAs: ["uiDisclosure"],
|
|
84
|
+
ngImport: i0,
|
|
85
|
+
template: "<ng-content />\n\n<div class=\"ui-disclosure-panel\" [id]=\"regionId()\" [hidden]=\"!expanded()\">\n @if (expanded()) {\n <ng-container [ngTemplateOutlet]=\"panel()?.template ?? null\" />\n }\n</div>\n",
|
|
86
|
+
styles: [":host{position:relative;display:block}.ui-disclosure-panel{position:relative}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
87
|
+
dependencies: [{
|
|
88
|
+
kind: "directive",
|
|
89
|
+
type: NgTemplateOutlet,
|
|
90
|
+
selector: "[ngTemplateOutlet]",
|
|
91
|
+
inputs: [
|
|
92
|
+
"ngTemplateOutletContext",
|
|
93
|
+
"ngTemplateOutlet",
|
|
94
|
+
"ngTemplateOutletInjector"
|
|
95
|
+
]
|
|
96
|
+
}]
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
100
|
+
minVersion: "12.0.0",
|
|
101
|
+
version: "22.2.1",
|
|
102
|
+
ngImport: i0,
|
|
103
|
+
type: UiDisclosureComponent,
|
|
104
|
+
decorators: [{
|
|
105
|
+
type: Component,
|
|
106
|
+
args: [{
|
|
107
|
+
selector: "ui-disclosure",
|
|
108
|
+
exportAs: "uiDisclosure",
|
|
109
|
+
imports: [NgTemplateOutlet],
|
|
110
|
+
template: "<ng-content />\n\n<div class=\"ui-disclosure-panel\" [id]=\"regionId()\" [hidden]=\"!expanded()\">\n @if (expanded()) {\n <ng-container [ngTemplateOutlet]=\"panel()?.template ?? null\" />\n }\n</div>\n",
|
|
111
|
+
styles: [":host{position:relative;display:block}.ui-disclosure-panel{position:relative}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
112
|
+
}]
|
|
113
|
+
}],
|
|
114
|
+
propDecorators: {
|
|
115
|
+
expanded: [{
|
|
116
|
+
type: i0.Input,
|
|
117
|
+
args: [{
|
|
118
|
+
isSignal: true,
|
|
119
|
+
alias: "expanded",
|
|
120
|
+
required: false
|
|
121
|
+
}]
|
|
122
|
+
}, {
|
|
123
|
+
type: i0.Output,
|
|
124
|
+
args: ["expandedChange"]
|
|
125
|
+
}],
|
|
126
|
+
panelId: [{
|
|
127
|
+
type: i0.Input,
|
|
128
|
+
args: [{
|
|
129
|
+
isSignal: true,
|
|
130
|
+
alias: "panelId",
|
|
131
|
+
required: false
|
|
132
|
+
}]
|
|
133
|
+
}],
|
|
134
|
+
panel: [{
|
|
135
|
+
type: i0.ContentChild,
|
|
136
|
+
args: [i0.forwardRef(() => UiDisclosurePanelDirective), { isSignal: true }]
|
|
137
|
+
}]
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
const DisclosureTriggerAppearances = ["section", "row"];
|
|
141
|
+
var UiDisclosureChevronComponent = class UiDisclosureChevronComponent {
|
|
142
|
+
disclosure = inject(UiDisclosureComponent);
|
|
143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
144
|
+
minVersion: "12.0.0",
|
|
145
|
+
version: "22.2.1",
|
|
146
|
+
ngImport: i0,
|
|
147
|
+
type: UiDisclosureChevronComponent,
|
|
148
|
+
deps: [],
|
|
149
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
150
|
+
});
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
152
|
+
minVersion: "14.0.0",
|
|
153
|
+
version: "22.2.1",
|
|
154
|
+
type: UiDisclosureChevronComponent,
|
|
155
|
+
isStandalone: true,
|
|
156
|
+
selector: "ui-disclosure-chevron",
|
|
157
|
+
host: { attributes: { "aria-hidden": "true" } },
|
|
158
|
+
providers: [provideIcons({ heroChevronDown })],
|
|
159
|
+
ngImport: i0,
|
|
160
|
+
template: `
|
|
161
|
+
<ng-icon
|
|
162
|
+
name="heroChevronDown"
|
|
163
|
+
class="ui-disclosure-chevron"
|
|
164
|
+
[class.ui-disclosure-chevron--expanded]="disclosure.expanded()"
|
|
165
|
+
/>
|
|
166
|
+
`,
|
|
167
|
+
isInline: true,
|
|
168
|
+
styles: ["@layer properties;:host{display:inline-flex;flex-shrink:0}.ui-disclosure-chevron{width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);color:var(--muted-foreground);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .15s;transition-duration:.15s}@media(prefers-reduced-motion:reduce){.ui-disclosure-chevron{transition-property:none}}.ui-disclosure-chevron--expanded{rotate:180deg}@property --tw-duration{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
169
|
+
dependencies: [{
|
|
170
|
+
kind: "component",
|
|
171
|
+
type: NgIcon,
|
|
172
|
+
selector: "ng-icon",
|
|
173
|
+
inputs: [
|
|
174
|
+
"name",
|
|
175
|
+
"svg",
|
|
176
|
+
"size",
|
|
177
|
+
"strokeWidth",
|
|
178
|
+
"color"
|
|
179
|
+
]
|
|
180
|
+
}]
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
184
|
+
minVersion: "12.0.0",
|
|
185
|
+
version: "22.2.1",
|
|
186
|
+
ngImport: i0,
|
|
187
|
+
type: UiDisclosureChevronComponent,
|
|
188
|
+
decorators: [{
|
|
189
|
+
type: Component,
|
|
190
|
+
args: [{
|
|
191
|
+
selector: "ui-disclosure-chevron",
|
|
192
|
+
template: `
|
|
193
|
+
<ng-icon
|
|
194
|
+
name="heroChevronDown"
|
|
195
|
+
class="ui-disclosure-chevron"
|
|
196
|
+
[class.ui-disclosure-chevron--expanded]="disclosure.expanded()"
|
|
197
|
+
/>
|
|
198
|
+
`,
|
|
199
|
+
imports: [NgIcon],
|
|
200
|
+
host: { "aria-hidden": "true" },
|
|
201
|
+
providers: [provideIcons({ heroChevronDown })],
|
|
202
|
+
styles: ["@layer properties;:host{display:inline-flex;flex-shrink:0}.ui-disclosure-chevron{width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);color:var(--muted-foreground);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .15s;transition-duration:.15s}@media(prefers-reduced-motion:reduce){.ui-disclosure-chevron{transition-property:none}}.ui-disclosure-chevron--expanded{rotate:180deg}@property --tw-duration{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-duration: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
203
|
+
}]
|
|
204
|
+
}]
|
|
205
|
+
});
|
|
206
|
+
var UiDisclosureTriggerComponent = class UiDisclosureTriggerComponent {
|
|
207
|
+
disclosure = inject(UiDisclosureComponent);
|
|
208
|
+
appearance = input("section", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
209
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
211
|
+
minVersion: "12.0.0",
|
|
212
|
+
version: "22.2.1",
|
|
213
|
+
ngImport: i0,
|
|
214
|
+
type: UiDisclosureTriggerComponent,
|
|
215
|
+
deps: [],
|
|
216
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
217
|
+
});
|
|
218
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
219
|
+
minVersion: "17.1.0",
|
|
220
|
+
version: "22.2.1",
|
|
221
|
+
type: UiDisclosureTriggerComponent,
|
|
222
|
+
isStandalone: true,
|
|
223
|
+
selector: "ui-disclosure-trigger",
|
|
224
|
+
inputs: {
|
|
225
|
+
appearance: {
|
|
226
|
+
classPropertyName: "appearance",
|
|
227
|
+
publicName: "appearance",
|
|
228
|
+
isSignal: true,
|
|
229
|
+
isRequired: false,
|
|
230
|
+
transformFunction: null
|
|
231
|
+
},
|
|
232
|
+
ariaLabel: {
|
|
233
|
+
classPropertyName: "ariaLabel",
|
|
234
|
+
publicName: "ariaLabel",
|
|
235
|
+
isSignal: true,
|
|
236
|
+
isRequired: false,
|
|
237
|
+
transformFunction: null
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
ngImport: i0,
|
|
241
|
+
template: "<button\n type=\"button\"\n [class]=\"'ui-disclosure-trigger ui-disclosure-trigger--' + appearance()\"\n [attr.aria-expanded]=\"disclosure.expanded()\"\n [attr.aria-controls]=\"disclosure.regionId()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (click)=\"disclosure.toggle()\"\n>\n <ng-content />\n</button>\n",
|
|
242
|
+
styles: ["@layer properties;:host{display:block;min-width:0px}.ui-disclosure-trigger{cursor:pointer;text-align:start}.ui-disclosure-trigger:focus{--tw-outline-style: none;outline-style:none}.ui-disclosure-trigger--section{display:flex;width:100%;align-items:center;column-gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);color:var(--foreground);transition-property:box-shadow;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .15s;transition-duration:.15s}.ui-disclosure-trigger--section:focus-visible{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-disclosure-trigger--section:focus-visible{--tw-ring-color: var(--color-primary-200, var(--color-blue-200))}.ui-disclosure-trigger--row{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-disclosure-trigger--row:after{content:var(--tw-content);position:absolute}.ui-disclosure-trigger--row:after{content:var(--tw-content);inset:0}.ui-disclosure-trigger--row:after{content:var(--tw-content);border-radius:var(--radius-lg, .5rem)}.ui-disclosure-trigger--row:focus-visible:after{content:var(--tw-content);--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-disclosure-trigger--row:focus-visible:after{content:var(--tw-content);--tw-ring-color: var(--color-primary-200, var(--color-blue-200))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-content{syntax: \"*\"; initial-value: \"\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-duration: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-content: \"\"}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
246
|
+
minVersion: "12.0.0",
|
|
247
|
+
version: "22.2.1",
|
|
248
|
+
ngImport: i0,
|
|
249
|
+
type: UiDisclosureTriggerComponent,
|
|
250
|
+
decorators: [{
|
|
251
|
+
type: Component,
|
|
252
|
+
args: [{
|
|
253
|
+
selector: "ui-disclosure-trigger",
|
|
254
|
+
template: "<button\n type=\"button\"\n [class]=\"'ui-disclosure-trigger ui-disclosure-trigger--' + appearance()\"\n [attr.aria-expanded]=\"disclosure.expanded()\"\n [attr.aria-controls]=\"disclosure.regionId()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (click)=\"disclosure.toggle()\"\n>\n <ng-content />\n</button>\n",
|
|
255
|
+
styles: ["@layer properties;:host{display:block;min-width:0px}.ui-disclosure-trigger{cursor:pointer;text-align:start}.ui-disclosure-trigger:focus{--tw-outline-style: none;outline-style:none}.ui-disclosure-trigger--section{display:flex;width:100%;align-items:center;column-gap:calc(var(--spacing, .25rem) * 2);border-radius:var(--radius-lg, .5rem);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);color:var(--foreground);transition-property:box-shadow;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .15s;transition-duration:.15s}.ui-disclosure-trigger--section:focus-visible{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-disclosure-trigger--section:focus-visible{--tw-ring-color: var(--color-primary-200, var(--color-blue-200))}.ui-disclosure-trigger--row{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-disclosure-trigger--row:after{content:var(--tw-content);position:absolute}.ui-disclosure-trigger--row:after{content:var(--tw-content);inset:0}.ui-disclosure-trigger--row:after{content:var(--tw-content);border-radius:var(--radius-lg, .5rem)}.ui-disclosure-trigger--row:focus-visible:after{content:var(--tw-content);--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ui-disclosure-trigger--row:focus-visible:after{content:var(--tw-content);--tw-ring-color: var(--color-primary-200, var(--color-blue-200))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-duration{syntax: \"*\"; inherits: false;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-content{syntax: \"*\"; initial-value: \"\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-duration: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-content: \"\"}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
256
|
+
}]
|
|
257
|
+
}],
|
|
258
|
+
propDecorators: {
|
|
259
|
+
appearance: [{
|
|
260
|
+
type: i0.Input,
|
|
261
|
+
args: [{
|
|
262
|
+
isSignal: true,
|
|
263
|
+
alias: "appearance",
|
|
264
|
+
required: false
|
|
265
|
+
}]
|
|
266
|
+
}],
|
|
267
|
+
ariaLabel: [{
|
|
268
|
+
type: i0.Input,
|
|
269
|
+
args: [{
|
|
270
|
+
isSignal: true,
|
|
271
|
+
alias: "ariaLabel",
|
|
272
|
+
required: false
|
|
273
|
+
}]
|
|
274
|
+
}]
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
export { DisclosureTriggerAppearances, UiDisclosureChevronComponent, UiDisclosureComponent, UiDisclosurePanelDirective, UiDisclosureTriggerComponent };
|
|
278
|
+
|
|
279
|
+
//# sourceMappingURL=area8975-ui-disclosure.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area8975-ui-disclosure.mjs","names":[],"sources":["../../../projects/ui/disclosure/disclosure.directives.ts","../../../projects/ui/disclosure/disclosure.component.ts","../../../projects/ui/disclosure/disclosure.component.html","../../../projects/ui/disclosure/disclosure.types.ts","../../../projects/ui/disclosure/disclosure-chevron.component.ts","../../../projects/ui/disclosure/disclosure-trigger.component.ts","../../../projects/ui/disclosure/disclosure-trigger.component.html"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n\n/** The disclosure's content, only rendered while it's expanded. */\n@Directive({\n selector: 'ng-template[uiDisclosurePanel]'\n})\nexport class UiDisclosurePanelDirective {\n readonly template = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChild, input, model } from '@angular/core';\n\nimport { UiDisclosurePanelDirective } from './disclosure.directives';\n\n\nlet nextId = 0;\n\n/**\n * Shows and hides a panel of content from a `ui-disclosure-trigger` inside it.\n * The content goes in an `<ng-template uiDisclosurePanel>`, rendered after\n * everything else in the disclosure.\n */\n@Component({\n selector: 'ui-disclosure',\n exportAs: 'uiDisclosure',\n templateUrl: './disclosure.component.html',\n styleUrl: './disclosure.component.css',\n imports: [NgTemplateOutlet]\n})\nexport class UiDisclosureComponent {\n readonly expanded = model(false);\n\n /** The panel's id, which the trigger's aria-controls points at. Generated when left out. */\n readonly panelId = input<string>('');\n\n private readonly generatedId = `ui-disclosure-${nextId++}`;\n\n readonly regionId = computed(() => this.panelId() || this.generatedId);\n\n protected readonly panel = contentChild(UiDisclosurePanelDirective);\n\n readonly toggle = () => this.expanded.update(value => !value);\n readonly open = () => this.expanded.set(true);\n readonly close = () => this.expanded.set(false);\n}\n","<ng-content />\n\n<div class=\"ui-disclosure-panel\" [id]=\"regionId()\" [hidden]=\"!expanded()\">\n @if (expanded()) {\n <ng-container [ngTemplateOutlet]=\"panel()?.template ?? null\" />\n }\n</div>\n","/**\n * How a disclosure trigger looks. `\"section\"` is a full-width header,\n * `\"row\"` stretches the trigger over its row - see\n * `UiDisclosureTriggerComponent.appearance`.\n */\nexport const DisclosureTriggerAppearances = ['section', 'row'] as const;\n\n/** @see {@link DisclosureTriggerAppearances} */\nexport type DisclosureTriggerAppearance =\n typeof DisclosureTriggerAppearances[number];\n","import { Component, inject } from '@angular/core';\n\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { heroChevronDown } from '@ng-icons/heroicons/outline';\n\nimport { UiDisclosureComponent } from './disclosure.component';\n\n\n/** A chevron that turns with the `ui-disclosure` it's in. Put it in the trigger, or anywhere in a row. */\n@Component({\n selector: 'ui-disclosure-chevron',\n template: `\n <ng-icon\n name=\"heroChevronDown\"\n class=\"ui-disclosure-chevron\"\n [class.ui-disclosure-chevron--expanded]=\"disclosure.expanded()\"\n />\n `,\n styleUrl: './disclosure-chevron.component.css',\n imports: [NgIcon],\n host: { 'aria-hidden': 'true' },\n providers: [provideIcons({ heroChevronDown })]\n})\nexport class UiDisclosureChevronComponent {\n protected readonly disclosure = inject(UiDisclosureComponent);\n}\n","import { Component, inject, input } from '@angular/core';\n\nimport { UiDisclosureComponent } from './disclosure.component';\nimport type { DisclosureTriggerAppearance } from './disclosure.types';\n\n\n/**\n * The button that expands and collapses the `ui-disclosure` it's in.\n *\n * As a `\"row\"`, its hit area and focus ring cover the nearest positioned\n * element around it, so make the row `relative`, otherwise it's the whole\n * disclosure. Give other controls in the row `class=\"relative\"` so they stay\n * clickable above it.\n */\n@Component({\n selector: 'ui-disclosure-trigger',\n templateUrl: './disclosure-trigger.component.html',\n styleUrl: './disclosure-trigger.component.css'\n})\nexport class UiDisclosureTriggerComponent {\n protected readonly disclosure = inject(UiDisclosureComponent);\n\n readonly appearance = input<DisclosureTriggerAppearance>('section');\n\n readonly ariaLabel = input<string>('');\n}\n","<button\n type=\"button\"\n [class]=\"'ui-disclosure-trigger ui-disclosure-trigger--' + appearance()\"\n [attr.aria-expanded]=\"disclosure.expanded()\"\n [attr.aria-controls]=\"disclosure.regionId()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (click)=\"disclosure.toggle()\"\n>\n <ng-content />\n</button>\n"],"mappings":";;;;;AAOA,IAAa,6BAAb,MAAa,2BAA0B;CAC1B,WAAW,OAAO,WAAW;CAD7B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA0B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA1B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA0B,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAA1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA0B,YAAA,CAAA;EAHtC,MAAA;EAAU,MAAA,CAAA,EACP,UAAU,iCACb,CAAA;;;ACAD,IAAI,SAAS;AAcb,IAAa,wBAAb,MAAa,sBAAqB;CACrB,WAAW,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+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 from "@angular/core";
|
|
2
|
+
import { Component, booleanAttribute, input, signal } from "@angular/core";
|
|
3
|
+
import { UiModalCloseButtonComponent } from "@area8975/ui/modal-close-btn";
|
|
4
|
+
var UiDrawerComponent = class UiDrawerComponent {
|
|
5
|
+
isOpen = signal(false, ...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
|
|
6
|
+
enableBackdrop = input(true, {
|
|
7
|
+
...ngDevMode ? { debugName: "enableBackdrop" } : /* istanbul ignore next */ {},
|
|
8
|
+
transform: booleanAttribute
|
|
9
|
+
});
|
|
10
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
11
|
+
subLabel = input("", ...ngDevMode ? [{ debugName: "subLabel" }] : /* istanbul ignore next */ []);
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
13
|
+
minVersion: "12.0.0",
|
|
14
|
+
version: "22.2.1",
|
|
15
|
+
ngImport: i0,
|
|
16
|
+
type: UiDrawerComponent,
|
|
17
|
+
deps: [],
|
|
18
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
19
|
+
});
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
21
|
+
minVersion: "17.0.0",
|
|
22
|
+
version: "22.2.1",
|
|
23
|
+
type: UiDrawerComponent,
|
|
24
|
+
isStandalone: true,
|
|
25
|
+
selector: "ui-drawer",
|
|
26
|
+
inputs: {
|
|
27
|
+
enableBackdrop: {
|
|
28
|
+
classPropertyName: "enableBackdrop",
|
|
29
|
+
publicName: "enableBackdrop",
|
|
30
|
+
isSignal: true,
|
|
31
|
+
isRequired: false,
|
|
32
|
+
transformFunction: null
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
classPropertyName: "label",
|
|
36
|
+
publicName: "label",
|
|
37
|
+
isSignal: true,
|
|
38
|
+
isRequired: false,
|
|
39
|
+
transformFunction: null
|
|
40
|
+
},
|
|
41
|
+
subLabel: {
|
|
42
|
+
classPropertyName: "subLabel",
|
|
43
|
+
publicName: "subLabel",
|
|
44
|
+
isSignal: true,
|
|
45
|
+
isRequired: false,
|
|
46
|
+
transformFunction: null
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
host: { properties: { "class.open": "isOpen()" } },
|
|
50
|
+
ngImport: i0,
|
|
51
|
+
template: "@if (enableBackdrop()) {\n <div\n class=\"absolute inset-0 bg-black/10 transition-opacity\"\n [class.opacity-0]=\"!isOpen()\"\n [class.pointer-events-none]=\"!isOpen()\"\n aria-hidden=\"true\"\n (click)=\"isOpen.set(false)\"\n >\n </div>\n}\n\n<aside\n class=\"right-0 absolute inset-y-0 bg-layer border-line-2 border-s w-100 max-w-full h-full transition-transform duration-200\"\n [class.translate-x-full]=\"!isOpen()\"\n>\n <div class=\"flex flex-col h-full\">\n <header\n class=\"flex justify-between px-5 py-2.5 border-line-2 border-b\"\n [class.items-start]=\"subLabel()\"\n [class.items-center]=\"!subLabel()\"\n >\n <div>\n <h3 class=\"font-semibold ui-text-h3\">{{ label() }}</h3>\n\n @if (subLabel()) {\n <h4 class=\"ui-text-body\">{{ subLabel() }}</h4>\n }\n </div>\n <div class=\"flex items-center gap-x-3 shrink-0\">\n <ng-content select=\"[drawer-actions]\" />\n <ui-modal-close-btn [(isOpen)]=\"isOpen\" />\n </div>\n </header>\n\n <div class=\"p-5 overflow-y-auto grow\">\n <ng-content />\n </div>\n </div>\n</aside>\n",
|
|
52
|
+
styles: ["@layer properties;:host{pointer-events:none;position:fixed;inset:0;z-index:100}:host.open{pointer-events:auto}::ng-deep .drawer-close-btn{width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8);justify-content:center;border-radius:var(--radius-full, calc(infinity * 1px))!important;border-color:var(--surface-line)!important;background-color:var(--surface)!important;padding:0!important;color:var(--surface-foreground)!important;--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor) !important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important;--tw-ring-offset-width: 0px !important;--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
53
|
+
dependencies: [{
|
|
54
|
+
kind: "component",
|
|
55
|
+
type: UiModalCloseButtonComponent,
|
|
56
|
+
selector: "ui-modal-close-btn",
|
|
57
|
+
inputs: ["isOpen"],
|
|
58
|
+
outputs: ["isOpenChange"]
|
|
59
|
+
}]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
63
|
+
minVersion: "12.0.0",
|
|
64
|
+
version: "22.2.1",
|
|
65
|
+
ngImport: i0,
|
|
66
|
+
type: UiDrawerComponent,
|
|
67
|
+
decorators: [{
|
|
68
|
+
type: Component,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: "ui-drawer",
|
|
71
|
+
imports: [UiModalCloseButtonComponent],
|
|
72
|
+
host: { "[class.open]": "isOpen()" },
|
|
73
|
+
template: "@if (enableBackdrop()) {\n <div\n class=\"absolute inset-0 bg-black/10 transition-opacity\"\n [class.opacity-0]=\"!isOpen()\"\n [class.pointer-events-none]=\"!isOpen()\"\n aria-hidden=\"true\"\n (click)=\"isOpen.set(false)\"\n >\n </div>\n}\n\n<aside\n class=\"right-0 absolute inset-y-0 bg-layer border-line-2 border-s w-100 max-w-full h-full transition-transform duration-200\"\n [class.translate-x-full]=\"!isOpen()\"\n>\n <div class=\"flex flex-col h-full\">\n <header\n class=\"flex justify-between px-5 py-2.5 border-line-2 border-b\"\n [class.items-start]=\"subLabel()\"\n [class.items-center]=\"!subLabel()\"\n >\n <div>\n <h3 class=\"font-semibold ui-text-h3\">{{ label() }}</h3>\n\n @if (subLabel()) {\n <h4 class=\"ui-text-body\">{{ subLabel() }}</h4>\n }\n </div>\n <div class=\"flex items-center gap-x-3 shrink-0\">\n <ng-content select=\"[drawer-actions]\" />\n <ui-modal-close-btn [(isOpen)]=\"isOpen\" />\n </div>\n </header>\n\n <div class=\"p-5 overflow-y-auto grow\">\n <ng-content />\n </div>\n </div>\n</aside>\n",
|
|
74
|
+
styles: ["@layer properties;:host{pointer-events:none;position:fixed;inset:0;z-index:100}:host.open{pointer-events:auto}::ng-deep .drawer-close-btn{width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8);justify-content:center;border-radius:var(--radius-full, calc(infinity * 1px))!important;border-color:var(--surface-line)!important;background-color:var(--surface)!important;padding:0!important;color:var(--surface-foreground)!important;--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor) !important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important;--tw-ring-offset-width: 0px !important;--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
75
|
+
}]
|
|
76
|
+
}],
|
|
77
|
+
propDecorators: {
|
|
78
|
+
enableBackdrop: [{
|
|
79
|
+
type: i0.Input,
|
|
80
|
+
args: [{
|
|
81
|
+
isSignal: true,
|
|
82
|
+
alias: "enableBackdrop",
|
|
83
|
+
required: false
|
|
84
|
+
}]
|
|
85
|
+
}],
|
|
86
|
+
label: [{
|
|
87
|
+
type: i0.Input,
|
|
88
|
+
args: [{
|
|
89
|
+
isSignal: true,
|
|
90
|
+
alias: "label",
|
|
91
|
+
required: false
|
|
92
|
+
}]
|
|
93
|
+
}],
|
|
94
|
+
subLabel: [{
|
|
95
|
+
type: i0.Input,
|
|
96
|
+
args: [{
|
|
97
|
+
isSignal: true,
|
|
98
|
+
alias: "subLabel",
|
|
99
|
+
required: false
|
|
100
|
+
}]
|
|
101
|
+
}]
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export { UiDrawerComponent };
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=area8975-ui-drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area8975-ui-drawer.mjs","names":[],"sources":["../../../projects/ui/drawer/drawer.component.ts","../../../projects/ui/drawer/drawer.component.html"],"sourcesContent":["import { booleanAttribute, Component, input, signal } from '@angular/core';\n\nimport { UiModalCloseButtonComponent } from '@area8975/ui/modal-close-btn';\n\n\n@Component({\n selector: 'ui-drawer',\n templateUrl: './drawer.component.html',\n styleUrl: './drawer.component.css',\n imports: [UiModalCloseButtonComponent],\n host: { '[class.open]': 'isOpen()' }\n})\nexport class UiDrawerComponent {\n readonly isOpen = signal<boolean>(false);\n readonly enableBackdrop = input(true, { transform: booleanAttribute });\n\n readonly label = input<string>('');\n readonly subLabel = input<string>('');\n}\n","@if (enableBackdrop()) {\n <div\n class=\"absolute inset-0 bg-black/10 transition-opacity\"\n [class.opacity-0]=\"!isOpen()\"\n [class.pointer-events-none]=\"!isOpen()\"\n aria-hidden=\"true\"\n (click)=\"isOpen.set(false)\"\n >\n </div>\n}\n\n<aside\n class=\"right-0 absolute inset-y-0 bg-layer border-line-2 border-s w-100 max-w-full h-full transition-transform duration-200\"\n [class.translate-x-full]=\"!isOpen()\"\n>\n <div class=\"flex flex-col h-full\">\n <header\n class=\"flex justify-between px-5 py-2.5 border-line-2 border-b\"\n [class.items-start]=\"subLabel()\"\n [class.items-center]=\"!subLabel()\"\n >\n <div>\n <h3 class=\"font-semibold ui-text-h3\">{{ label() }}</h3>\n\n @if (subLabel()) {\n <h4 class=\"ui-text-body\">{{ subLabel() }}</h4>\n }\n </div>\n <div class=\"flex items-center gap-x-3 shrink-0\">\n <ng-content select=\"[drawer-actions]\" />\n <ui-modal-close-btn [(isOpen)]=\"isOpen\" />\n </div>\n </header>\n\n <div class=\"p-5 overflow-y-auto grow\">\n <ng-content />\n </div>\n </div>\n</aside>\n"],"mappings":";;;AAYA,IAAa,oBAAb,MAAa,kBAAiB;CACjB,SAAS,OAAgB,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,iBAAiB,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAE1D,QAAQ,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACzB,WAAW,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAL5B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAiB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAjB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAiB,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,gBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,OAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,MAAA,EAAA,YAAA,EAAA,cAAA,WAAA,EAAA;EAAA,UAAA;EAAA,UCZ9B;EAuCA,QAAA,CAAA,olFAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MD9Bc;GAA2B,UAAA;GAAA,QAAA,CAAA,QAAA;GAAA,SAAA,CAAA,cAAA;EAAA,CAAA;CAAA,CAAA;;AAG5B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAP7B,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAAW,SAGZ,CAAC,2BAA2B;GAAC,MAChC,EAAE,gBAAgB,WAAU;GAAE,UAAA;GAAA,QAAA,CAAA,olFAAA;EAAA,CAAA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, input, model } from "@angular/core";
|
|
3
|
+
import { UiButtonComponent } from "@area8975/ui/button";
|
|
4
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
5
|
+
import { heroChevronDown } from "@ng-icons/heroicons/outline";
|
|
6
|
+
var UiDropdownButtonComponent = class UiDropdownButtonComponent {
|
|
7
|
+
intent = input("secondary", ...ngDevMode ? [{ debugName: "intent" }] : /* istanbul ignore next */ []);
|
|
8
|
+
appearance = input("white", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
9
|
+
icon = input("heroChevronDown", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
10
|
+
isOpen = model.required(...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.2.1",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: UiDropdownButtonComponent,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
18
|
+
});
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
20
|
+
minVersion: "17.1.0",
|
|
21
|
+
version: "22.2.1",
|
|
22
|
+
type: UiDropdownButtonComponent,
|
|
23
|
+
isStandalone: true,
|
|
24
|
+
selector: "ui-dropdown-button",
|
|
25
|
+
inputs: {
|
|
26
|
+
intent: {
|
|
27
|
+
classPropertyName: "intent",
|
|
28
|
+
publicName: "intent",
|
|
29
|
+
isSignal: true,
|
|
30
|
+
isRequired: false,
|
|
31
|
+
transformFunction: null
|
|
32
|
+
},
|
|
33
|
+
appearance: {
|
|
34
|
+
classPropertyName: "appearance",
|
|
35
|
+
publicName: "appearance",
|
|
36
|
+
isSignal: true,
|
|
37
|
+
isRequired: false,
|
|
38
|
+
transformFunction: null
|
|
39
|
+
},
|
|
40
|
+
icon: {
|
|
41
|
+
classPropertyName: "icon",
|
|
42
|
+
publicName: "icon",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
47
|
+
isOpen: {
|
|
48
|
+
classPropertyName: "isOpen",
|
|
49
|
+
publicName: "isOpen",
|
|
50
|
+
isSignal: true,
|
|
51
|
+
isRequired: true,
|
|
52
|
+
transformFunction: null
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
outputs: { isOpen: "isOpenChange" },
|
|
56
|
+
providers: [provideIcons({ heroChevronDown })],
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
template: "<ui-button\n [intent]=\"intent()\"\n [appearance]=\"appearance()\"\n (click)=\"isOpen.update(value => !value)\"\n>\n <ng-content />\n <ng-icon\n name=\"heroChevronDown\"\n class=\"size-4 transition-transform duration-100 shrink-0\"\n [class.rotate-180]=\"isOpen()\"\n />\n</ui-button>\n",
|
|
59
|
+
dependencies: [{
|
|
60
|
+
kind: "component",
|
|
61
|
+
type: UiButtonComponent,
|
|
62
|
+
selector: "ui-button",
|
|
63
|
+
inputs: [
|
|
64
|
+
"appearance",
|
|
65
|
+
"intent",
|
|
66
|
+
"size",
|
|
67
|
+
"classes",
|
|
68
|
+
"type",
|
|
69
|
+
"ariaLabel",
|
|
70
|
+
"disabled",
|
|
71
|
+
"loading"
|
|
72
|
+
]
|
|
73
|
+
}, {
|
|
74
|
+
kind: "component",
|
|
75
|
+
type: NgIcon,
|
|
76
|
+
selector: "ng-icon",
|
|
77
|
+
inputs: [
|
|
78
|
+
"name",
|
|
79
|
+
"svg",
|
|
80
|
+
"size",
|
|
81
|
+
"strokeWidth",
|
|
82
|
+
"color"
|
|
83
|
+
]
|
|
84
|
+
}]
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
88
|
+
minVersion: "12.0.0",
|
|
89
|
+
version: "22.2.1",
|
|
90
|
+
ngImport: i0,
|
|
91
|
+
type: UiDropdownButtonComponent,
|
|
92
|
+
decorators: [{
|
|
93
|
+
type: Component,
|
|
94
|
+
args: [{
|
|
95
|
+
selector: "ui-dropdown-button",
|
|
96
|
+
imports: [UiButtonComponent, NgIcon],
|
|
97
|
+
providers: [provideIcons({ heroChevronDown })],
|
|
98
|
+
template: "<ui-button\n [intent]=\"intent()\"\n [appearance]=\"appearance()\"\n (click)=\"isOpen.update(value => !value)\"\n>\n <ng-content />\n <ng-icon\n name=\"heroChevronDown\"\n class=\"size-4 transition-transform duration-100 shrink-0\"\n [class.rotate-180]=\"isOpen()\"\n />\n</ui-button>\n"
|
|
99
|
+
}]
|
|
100
|
+
}],
|
|
101
|
+
propDecorators: {
|
|
102
|
+
intent: [{
|
|
103
|
+
type: i0.Input,
|
|
104
|
+
args: [{
|
|
105
|
+
isSignal: true,
|
|
106
|
+
alias: "intent",
|
|
107
|
+
required: false
|
|
108
|
+
}]
|
|
109
|
+
}],
|
|
110
|
+
appearance: [{
|
|
111
|
+
type: i0.Input,
|
|
112
|
+
args: [{
|
|
113
|
+
isSignal: true,
|
|
114
|
+
alias: "appearance",
|
|
115
|
+
required: false
|
|
116
|
+
}]
|
|
117
|
+
}],
|
|
118
|
+
icon: [{
|
|
119
|
+
type: i0.Input,
|
|
120
|
+
args: [{
|
|
121
|
+
isSignal: true,
|
|
122
|
+
alias: "icon",
|
|
123
|
+
required: false
|
|
124
|
+
}]
|
|
125
|
+
}],
|
|
126
|
+
isOpen: [{
|
|
127
|
+
type: i0.Input,
|
|
128
|
+
args: [{
|
|
129
|
+
isSignal: true,
|
|
130
|
+
alias: "isOpen",
|
|
131
|
+
required: true
|
|
132
|
+
}]
|
|
133
|
+
}, {
|
|
134
|
+
type: i0.Output,
|
|
135
|
+
args: ["isOpenChange"]
|
|
136
|
+
}]
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export { UiDropdownButtonComponent };
|
|
140
|
+
|
|
141
|
+
//# sourceMappingURL=area8975-ui-dropdown-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area8975-ui-dropdown-button.mjs","names":[],"sources":["../../../projects/ui/dropdown-button/dropdown-button.component.ts","../../../projects/ui/dropdown-button/dropdown-button.component.html"],"sourcesContent":["import { Component, input, model } from '@angular/core';\n\nimport { UiButtonComponent } from '@area8975/ui/button';\nimport {\n ButtonAppearance,\n ButtonIntent\n} from '@area8975/ui/button';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { heroChevronDown } from '@ng-icons/heroicons/outline';\n\n\n@Component({\n selector: 'ui-dropdown-button',\n templateUrl: './dropdown-button.component.html',\n imports: [UiButtonComponent, NgIcon],\n providers: [provideIcons({ heroChevronDown })]\n})\nexport class UiDropdownButtonComponent {\n readonly intent = input<ButtonIntent>('secondary');\n readonly appearance = input<ButtonAppearance>('white');\n readonly icon = input<string>('heroChevronDown');\n readonly isOpen = model.required<boolean>();\n}\n","<ui-button\n [intent]=\"intent()\"\n [appearance]=\"appearance()\"\n (click)=\"isOpen.update(value => !value)\"\n>\n <ng-content />\n <ng-icon\n name=\"heroChevronDown\"\n class=\"size-4 transition-transform duration-100 shrink-0\"\n [class.rotate-180]=\"isOpen()\"\n />\n</ui-button>\n"],"mappings":";;;;;AAiBA,IAAa,4BAAb,MAAa,0BAAyB;CACzB,SAAS,MAAoB,aAAY,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACzC,aAAa,MAAwB,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,OAAO,MAAc,mBAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACvC,SAAS,MAAM,SAAmB,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAJlC,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAA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