@frame-ui-ng/components 0.1.0-beta.0 → 0.2.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/accordion/src/styles/_vars.css +25 -25
- package/accordion/src/styles/accordion.css +105 -87
- package/alert/src/styles/_vars.css +28 -28
- package/badge/src/styles/_vars.css +19 -16
- package/badge/src/styles/badge.css +132 -125
- package/breadcrumb/src/styles/_vars.css +17 -16
- package/breadcrumb/src/styles/breadcrumb.css +110 -98
- package/button/src/styles/_vars.css +20 -20
- package/button/src/styles/button.css +52 -7
- package/button-group/src/styles/button-group.css +100 -69
- package/calendar/src/styles/_vars.css +29 -29
- package/calendar/src/styles/calendar.css +247 -226
- package/card/src/styles/_vars.css +17 -17
- package/checkbox/src/styles/_vars.css +22 -22
- package/collapsible/src/styles/collapsible.css +55 -42
- package/combobox/src/styles/_vars.css +61 -60
- package/combobox/src/styles/combobox.css +295 -285
- package/command/src/styles/_vars.css +47 -37
- package/command/src/styles/command.css +236 -171
- package/date-picker/src/styles/_vars.css +30 -29
- package/date-picker/src/styles/date-picker.css +203 -177
- package/dropdown-menu/src/styles/_vars.css +34 -34
- package/fesm2022/frame-ui-ng-components-accordion.mjs +26 -11
- package/fesm2022/frame-ui-ng-components-accordion.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-badge.mjs +1 -0
- package/fesm2022/frame-ui-ng-components-badge.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-button.mjs +1 -1
- package/fesm2022/frame-ui-ng-components-button.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-command.mjs +19 -1
- package/fesm2022/frame-ui-ng-components-command.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-toast.mjs +152 -142
- package/fesm2022/frame-ui-ng-components-toast.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components.mjs +43 -13
- package/fesm2022/frame-ui-ng-components.mjs.map +1 -1
- package/input/src/styles/_vars.css +65 -65
- package/input/src/styles/input-group.css +114 -112
- package/input/src/styles/input.css +197 -163
- package/input-otp/src/styles/_vars.css +21 -21
- package/item/src/styles/_vars.css +34 -34
- package/menubar/src/styles/_vars.css +22 -22
- package/modal/src/styles/_vars.css +19 -18
- package/modal/src/styles/modal.css +202 -179
- package/navigation-menu/src/styles/_vars.css +45 -45
- package/package.json +12 -3
- package/pagination/src/styles/_vars.css +22 -22
- package/pagination/src/styles/pagination.css +158 -138
- package/progress/src/styles/_vars.css +15 -15
- package/radio-group/src/styles/_vars.css +29 -29
- package/radio-group/src/styles/radio-group.css +146 -137
- package/resizable/src/styles/_vars.css +20 -20
- package/select/src/styles/_vars.css +28 -28
- package/select/src/styles/select-trigger.css +138 -95
- package/separator/src/styles/_vars.css +9 -9
- package/sheet/src/styles/_vars.css +20 -18
- package/sheet/src/styles/sheet.css +220 -215
- package/sidebar/src/styles/sidebar.css +544 -531
- package/slider/src/styles/_vars.css +17 -17
- package/src/styles/blueprint.css +666 -0
- package/src/styles/components.css +47 -47
- package/styles/blueprint.css +666 -0
- package/styles/components.css +47 -47
- package/styles.css +49 -49
- package/switch/src/styles/_vars.css +34 -34
- package/switch/src/styles/switch.css +130 -131
- package/tabs/src/styles/_vars.css +23 -23
- package/textarea/src/styles/_vars.css +20 -20
- package/textarea/src/styles/textarea.css +62 -60
- package/toast/src/styles/_vars.css +48 -47
- package/toast/src/styles/toast.css +279 -314
- package/toggle/src/styles/_vars.css +24 -24
- package/tooltip/src/styles/_vars.css +21 -21
- package/tooltip/src/styles/tooltip.css +105 -103
- package/types/frame-ui-ng-components-accordion.d.ts +3 -1
- package/types/frame-ui-ng-components-badge.d.ts +2 -2
- package/types/frame-ui-ng-components-command.d.ts +7 -2
- package/types/frame-ui-ng-components.d.ts +21 -14
- package/virtual-scroll/src/styles/virtual-scroll.css +54 -54
|
@@ -164,77 +164,82 @@ class FrToastViewport {
|
|
|
164
164
|
this.toast.dismiss(toast.id);
|
|
165
165
|
}
|
|
166
166
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrToastViewport, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
167
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: FrToastViewport, isStandalone: true, selector: "frame-toast-viewport", inputs: { strategy: { classPropertyName: "strategy", publicName: "strategy", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-strategy": "strategy()", "attr.aria-live": "politeness()", "attr.aria-label": "label()" }, classAttribute: "frame-toast-viewport" }, exportAs: ["frToastViewport"], ngImport: i0, template: `
|
|
168
|
-
@for (position of positions; track position) {
|
|
169
|
-
@let positionToasts = groupedToasts().get(position) ?? [];
|
|
170
|
-
|
|
171
|
-
@if (positionToasts.length > 0) {
|
|
172
|
-
<section
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
[attr.data-
|
|
181
|
-
[attr.data-
|
|
182
|
-
data-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
167
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: FrToastViewport, isStandalone: true, selector: "frame-toast-viewport", inputs: { strategy: { classPropertyName: "strategy", publicName: "strategy", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-strategy": "strategy()", "attr.aria-live": "politeness()", "attr.aria-label": "label()" }, classAttribute: "frame-toast-viewport" }, exportAs: ["frToastViewport"], ngImport: i0, template: `
|
|
168
|
+
@for (position of positions; track position) {
|
|
169
|
+
@let positionToasts = groupedToasts().get(position) ?? [];
|
|
170
|
+
|
|
171
|
+
@if (positionToasts.length > 0) {
|
|
172
|
+
<section
|
|
173
|
+
class="frame-toast__group"
|
|
174
|
+
[attr.data-position]="position"
|
|
175
|
+
[style.--frame-toast-count]="positionToasts.length"
|
|
176
|
+
>
|
|
177
|
+
@for (toast of positionToasts; track toast.id; let toastIndex = $index) {
|
|
178
|
+
<article
|
|
179
|
+
class="frame-toast"
|
|
180
|
+
[attr.data-variant]="toast.variant"
|
|
181
|
+
[attr.data-loading]="toast.loading"
|
|
182
|
+
[attr.data-dismissible]="toast.dismissible"
|
|
183
|
+
[attr.data-has-description]="toast.description ? 'true' : 'false'"
|
|
184
|
+
[attr.data-has-action]="toast.action ? 'true' : 'false'"
|
|
185
|
+
[attr.data-state]="toast.state"
|
|
186
|
+
[style.--frame-toast-index]="toastIndex"
|
|
187
|
+
data-token-target="toast-root"
|
|
188
|
+
>
|
|
189
|
+
@if (toast.loading) {
|
|
190
|
+
<span
|
|
191
|
+
frSpinner
|
|
192
|
+
class="frame-toast__loader"
|
|
193
|
+
decorative
|
|
194
|
+
size="sm"
|
|
195
|
+
data-token-target="toast-loader"
|
|
196
|
+
></span>
|
|
197
|
+
} @else {
|
|
198
|
+
<span class="frame-toast__status" aria-hidden="true" data-token-target="toast-status"></span>
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
<div class="frame-toast__content" data-token-target="toast-content">
|
|
202
|
+
<h2 class="frame-toast__title" data-token-target="toast-title">{{ toast.title }}</h2>
|
|
203
|
+
|
|
204
|
+
@if (toast.description) {
|
|
205
|
+
<p class="frame-toast__description" data-token-target="toast-description">
|
|
206
|
+
{{ toast.description }}
|
|
207
|
+
</p>
|
|
208
|
+
}
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
@if (toast.action) {
|
|
212
|
+
<button
|
|
213
|
+
class="frame-toast__action"
|
|
214
|
+
type="button"
|
|
215
|
+
[attr.aria-label]="toast.action.altText ?? toast.action.label"
|
|
216
|
+
(click)="runAction(toast)"
|
|
217
|
+
data-token-target="toast-action"
|
|
218
|
+
>
|
|
219
|
+
{{ toast.action.label }}
|
|
220
|
+
</button>
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@if (toast.dismissible && !toast.action) {
|
|
224
|
+
<button
|
|
225
|
+
class="frame-toast__close"
|
|
226
|
+
type="button"
|
|
227
|
+
aria-label="Dismiss notification"
|
|
228
|
+
(click)="dismiss(toast.id)"
|
|
229
|
+
data-token-target="toast-close"
|
|
230
|
+
>
|
|
231
|
+
@if (closeIcon(); as iconTemplate) {
|
|
232
|
+
<ng-container [ngTemplateOutlet]="iconTemplate" />
|
|
233
|
+
} @else {
|
|
234
|
+
<span aria-hidden="true">x</span>
|
|
235
|
+
}
|
|
236
|
+
</button>
|
|
237
|
+
}
|
|
238
|
+
</article>
|
|
239
|
+
}
|
|
240
|
+
</section>
|
|
241
|
+
}
|
|
242
|
+
}
|
|
238
243
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FrSpinner, selector: "[frSpinner], frame-spinner", inputs: ["sizeValue", "decorative", "duration", "label", "size", "stroke"], exportAs: ["frSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
239
244
|
}
|
|
240
245
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrToastViewport, decorators: [{
|
|
@@ -250,77 +255,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
250
255
|
},
|
|
251
256
|
imports: [NgTemplateOutlet, FrSpinner],
|
|
252
257
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
253
|
-
template: `
|
|
254
|
-
@for (position of positions; track position) {
|
|
255
|
-
@let positionToasts = groupedToasts().get(position) ?? [];
|
|
256
|
-
|
|
257
|
-
@if (positionToasts.length > 0) {
|
|
258
|
-
<section
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
[attr.data-
|
|
267
|
-
[attr.data-
|
|
268
|
-
data-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
258
|
+
template: `
|
|
259
|
+
@for (position of positions; track position) {
|
|
260
|
+
@let positionToasts = groupedToasts().get(position) ?? [];
|
|
261
|
+
|
|
262
|
+
@if (positionToasts.length > 0) {
|
|
263
|
+
<section
|
|
264
|
+
class="frame-toast__group"
|
|
265
|
+
[attr.data-position]="position"
|
|
266
|
+
[style.--frame-toast-count]="positionToasts.length"
|
|
267
|
+
>
|
|
268
|
+
@for (toast of positionToasts; track toast.id; let toastIndex = $index) {
|
|
269
|
+
<article
|
|
270
|
+
class="frame-toast"
|
|
271
|
+
[attr.data-variant]="toast.variant"
|
|
272
|
+
[attr.data-loading]="toast.loading"
|
|
273
|
+
[attr.data-dismissible]="toast.dismissible"
|
|
274
|
+
[attr.data-has-description]="toast.description ? 'true' : 'false'"
|
|
275
|
+
[attr.data-has-action]="toast.action ? 'true' : 'false'"
|
|
276
|
+
[attr.data-state]="toast.state"
|
|
277
|
+
[style.--frame-toast-index]="toastIndex"
|
|
278
|
+
data-token-target="toast-root"
|
|
279
|
+
>
|
|
280
|
+
@if (toast.loading) {
|
|
281
|
+
<span
|
|
282
|
+
frSpinner
|
|
283
|
+
class="frame-toast__loader"
|
|
284
|
+
decorative
|
|
285
|
+
size="sm"
|
|
286
|
+
data-token-target="toast-loader"
|
|
287
|
+
></span>
|
|
288
|
+
} @else {
|
|
289
|
+
<span class="frame-toast__status" aria-hidden="true" data-token-target="toast-status"></span>
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
<div class="frame-toast__content" data-token-target="toast-content">
|
|
293
|
+
<h2 class="frame-toast__title" data-token-target="toast-title">{{ toast.title }}</h2>
|
|
294
|
+
|
|
295
|
+
@if (toast.description) {
|
|
296
|
+
<p class="frame-toast__description" data-token-target="toast-description">
|
|
297
|
+
{{ toast.description }}
|
|
298
|
+
</p>
|
|
299
|
+
}
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
@if (toast.action) {
|
|
303
|
+
<button
|
|
304
|
+
class="frame-toast__action"
|
|
305
|
+
type="button"
|
|
306
|
+
[attr.aria-label]="toast.action.altText ?? toast.action.label"
|
|
307
|
+
(click)="runAction(toast)"
|
|
308
|
+
data-token-target="toast-action"
|
|
309
|
+
>
|
|
310
|
+
{{ toast.action.label }}
|
|
311
|
+
</button>
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@if (toast.dismissible && !toast.action) {
|
|
315
|
+
<button
|
|
316
|
+
class="frame-toast__close"
|
|
317
|
+
type="button"
|
|
318
|
+
aria-label="Dismiss notification"
|
|
319
|
+
(click)="dismiss(toast.id)"
|
|
320
|
+
data-token-target="toast-close"
|
|
321
|
+
>
|
|
322
|
+
@if (closeIcon(); as iconTemplate) {
|
|
323
|
+
<ng-container [ngTemplateOutlet]="iconTemplate" />
|
|
324
|
+
} @else {
|
|
325
|
+
<span aria-hidden="true">x</span>
|
|
326
|
+
}
|
|
327
|
+
</button>
|
|
328
|
+
}
|
|
329
|
+
</article>
|
|
330
|
+
}
|
|
331
|
+
</section>
|
|
332
|
+
}
|
|
333
|
+
}
|
|
324
334
|
`,
|
|
325
335
|
}]
|
|
326
336
|
}], propDecorators: { strategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "strategy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame-ui-ng-components-toast.mjs","sources":["../../../projects/components/toast/src/toast.service.ts","../../../projects/components/toast/src/toast.types.ts","../../../projects/components/toast/src/toast.ts","../../../projects/components/toast/toast.module.ts","../../../projects/components/toast/frame-ui-ng-components-toast.ts"],"sourcesContent":["import { Injectable, computed, signal } from '@angular/core';\n\nimport { FrToastOptions, FrToastRecord, FrToastVariant } from './toast.types';\n\nconst DEFAULT_DURATION = 4000;\nconst DISMISS_ANIMATION_DURATION = 180;\nlet nextToastId = 0;\n\n@Injectable({ providedIn: 'root' })\nexport class FrToastService {\n private readonly timers = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly removalTimers = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly toastRecords = signal<FrToastRecord[]>([]);\n\n readonly toasts = computed(() => this.toastRecords());\n\n show(title: string, options?: Omit<FrToastOptions, 'title'>): string;\n show(options: FrToastOptions): string;\n show(titleOrOptions: string | FrToastOptions, options: Omit<FrToastOptions, 'title'> = {}): string {\n const toast = this.createToast(titleOrOptions, options);\n\n this.clearRemovalTimer(toast.id);\n this.toastRecords.update((toasts) => [toast, ...toasts.filter((item) => item.id !== toast.id)]);\n this.scheduleDismiss(toast);\n\n return toast.id;\n }\n\n success(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'success' });\n }\n\n info(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'info' });\n }\n\n warning(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'warning' });\n }\n\n error(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'error' });\n }\n\n loading(title: string, options: Omit<FrToastOptions, 'title' | 'variant' | 'loading'> = {}): string {\n return this.show(title, { ...options, variant: 'loading', loading: true, duration: options.duration ?? 0 });\n }\n\n update(id: string, options: Partial<Omit<FrToastOptions, 'id'>>): void {\n let updatedToast: FrToastRecord | undefined;\n\n this.clearRemovalTimer(id);\n this.toastRecords.update((toasts) =>\n toasts.map((toast) => {\n if (toast.id !== id) {\n return toast;\n }\n\n updatedToast = {\n ...toast,\n ...options,\n variant: options.variant ?? toast.variant,\n loading: options.loading ?? toast.loading,\n state: 'visible',\n };\n\n return updatedToast;\n }),\n );\n\n if (updatedToast) {\n this.scheduleDismiss(updatedToast);\n }\n }\n\n dismiss(id: string): void {\n this.clearTimer(id);\n\n let shouldRemove = false;\n\n this.toastRecords.update((toasts) =>\n toasts.map((toast) => {\n if (toast.id !== id) {\n return toast;\n }\n\n if (toast.state === 'dismissing') {\n return toast;\n }\n\n shouldRemove = true;\n return { ...toast, state: 'dismissing' };\n }),\n );\n\n if (!shouldRemove) {\n return;\n }\n\n this.removalTimers.set(\n id,\n setTimeout(() => {\n this.removalTimers.delete(id);\n this.toastRecords.update((toasts) => toasts.filter((toast) => toast.id !== id));\n }, DISMISS_ANIMATION_DURATION),\n );\n }\n\n dismissAll(): void {\n for (const id of this.timers.keys()) {\n this.clearTimer(id);\n }\n\n for (const id of this.removalTimers.keys()) {\n this.clearRemovalTimer(id);\n }\n\n this.toastRecords.set([]);\n }\n\n private createToast(\n titleOrOptions: string | FrToastOptions,\n options: Omit<FrToastOptions, 'title'>,\n ): FrToastRecord {\n const merged = typeof titleOrOptions === 'string'\n ? { ...options, title: titleOrOptions }\n : titleOrOptions;\n const variant: FrToastVariant = merged.variant ?? (merged.loading ? 'loading' : 'default');\n\n return {\n id: merged.id ?? `frame-toast-${nextToastId++}`,\n title: merged.title,\n description: merged.description,\n variant,\n position: merged.position ?? 'bottom-right',\n duration: merged.duration ?? (merged.loading || variant === 'loading' ? 0 : DEFAULT_DURATION),\n dismissible: merged.dismissible ?? true,\n action: merged.action,\n loading: merged.loading ?? variant === 'loading',\n createdAt: Date.now(),\n state: 'visible',\n };\n }\n\n private scheduleDismiss(toast: FrToastRecord): void {\n this.clearTimer(toast.id);\n\n if (!toast.duration || toast.duration <= 0) {\n return;\n }\n\n this.timers.set(\n toast.id,\n setTimeout(() => this.dismiss(toast.id), toast.duration),\n );\n }\n\n private clearTimer(id: string): void {\n const timer = this.timers.get(id);\n\n if (timer) {\n clearTimeout(timer);\n this.timers.delete(id);\n }\n }\n\n private clearRemovalTimer(id: string): void {\n const timer = this.removalTimers.get(id);\n\n if (timer) {\n clearTimeout(timer);\n this.removalTimers.delete(id);\n }\n }\n}\n","export type FrToastVariant =\n | 'default'\n | 'success'\n | 'info'\n | 'warning'\n | 'error'\n | 'loading';\n\nexport type FrToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right';\n\nexport type FrToastAction = {\n label: string;\n altText?: string;\n handler?: () => void;\n};\n\nexport type FrToastState = 'visible' | 'dismissing';\n\nexport type FrToastOptions = {\n id?: string;\n title: string;\n description?: string;\n variant?: FrToastVariant;\n position?: FrToastPosition;\n duration?: number;\n dismissible?: boolean;\n action?: FrToastAction;\n loading?: boolean;\n};\n\nexport type FrToastRecord = Required<\n Pick<FrToastOptions, 'id' | 'title' | 'variant' | 'position' | 'dismissible' | 'loading'>\n> &\n Pick<FrToastOptions, 'description' | 'duration' | 'action'> & {\n createdAt: number;\n state: FrToastState;\n };\n\nexport const FR_TOAST_POSITIONS: FrToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n];\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, TemplateRef, computed, inject, input } from '@angular/core';\nimport { FrSpinner } from '@frame-ui-ng/components/spinner';\n\nimport { FrToastService } from './toast.service';\nimport { FR_TOAST_POSITIONS, FrToastPosition, FrToastRecord } from './toast.types';\n\n@Component({\n selector: 'frame-toast-viewport',\n exportAs: 'frToastViewport',\n host: {\n class: 'frame-toast-viewport',\n '[attr.data-strategy]': 'strategy()',\n '[attr.aria-live]': 'politeness()',\n '[attr.aria-label]': 'label()',\n },\n imports: [NgTemplateOutlet, FrSpinner],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @for (position of positions; track position) {\n @let positionToasts = groupedToasts().get(position) ?? [];\n\n @if (positionToasts.length > 0) {\n <section class=\"frame-toast__group\" [attr.data-position]=\"position\">\n @for (toast of positionToasts; track toast.id) {\n <article\n class=\"frame-toast\"\n [attr.data-variant]=\"toast.variant\"\n [attr.data-loading]=\"toast.loading\"\n [attr.data-dismissible]=\"toast.dismissible\"\n [attr.data-has-description]=\"toast.description ? 'true' : 'false'\"\n [attr.data-has-action]=\"toast.action ? 'true' : 'false'\"\n [attr.data-state]=\"toast.state\"\n data-token-target=\"toast-root\"\n >\n @if (toast.loading) {\n <span\n frSpinner\n class=\"frame-toast__loader\"\n decorative\n size=\"sm\"\n data-token-target=\"toast-loader\"\n ></span>\n } @else {\n <span class=\"frame-toast__status\" aria-hidden=\"true\" data-token-target=\"toast-status\"></span>\n }\n\n <div class=\"frame-toast__content\" data-token-target=\"toast-content\">\n <h2 class=\"frame-toast__title\" data-token-target=\"toast-title\">{{ toast.title }}</h2>\n\n @if (toast.description) {\n <p class=\"frame-toast__description\" data-token-target=\"toast-description\">\n {{ toast.description }}\n </p>\n }\n </div>\n\n @if (toast.action) {\n <button\n class=\"frame-toast__action\"\n type=\"button\"\n [attr.aria-label]=\"toast.action.altText ?? toast.action.label\"\n (click)=\"runAction(toast)\"\n data-token-target=\"toast-action\"\n >\n {{ toast.action.label }}\n </button>\n }\n\n @if (toast.dismissible && !toast.action) {\n <button\n class=\"frame-toast__close\"\n type=\"button\"\n aria-label=\"Dismiss notification\"\n (click)=\"dismiss(toast.id)\"\n data-token-target=\"toast-close\"\n >\n @if (closeIcon(); as iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"iconTemplate\" />\n } @else {\n <span aria-hidden=\"true\">x</span>\n }\n </button>\n }\n </article>\n }\n </section>\n }\n }\n `,\n})\nexport class FrToastViewport {\n private readonly toast = inject(FrToastService);\n\n readonly strategy = input<'fixed' | 'inline'>('fixed');\n readonly label = input('Notifications');\n readonly politeness = input<'polite' | 'assertive' | 'off'>('polite');\n readonly closeIcon = input<TemplateRef<unknown> | null>(null);\n\n protected readonly positions = FR_TOAST_POSITIONS;\n protected readonly groupedToasts = computed(() => {\n const groups = new Map<FrToastPosition, FrToastRecord[]>();\n\n for (const toast of this.toast.toasts()) {\n const toasts = groups.get(toast.position) ?? [];\n toasts.push(toast);\n groups.set(toast.position, toasts);\n }\n\n return groups;\n });\n\n protected dismiss(id: string): void {\n this.toast.dismiss(id);\n }\n\n protected runAction(toast: FrToastRecord): void {\n toast.action?.handler?.();\n this.toast.dismiss(toast.id);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { FrSpinner } from '@frame-ui-ng/components/spinner';\n\nimport { FrToastViewport } from './src/toast';\n\n@NgModule({\n imports: [FrToastViewport, FrSpinner],\n exports: [FrToastViewport],\n})\nexport class FrToastModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,gBAAgB,GAAG,IAAI;AAC7B,MAAM,0BAA0B,GAAG,GAAG;AACtC,IAAI,WAAW,GAAG,CAAC;MAGN,cAAc,CAAA;AACR,IAAA,MAAM,GAAG,IAAI,GAAG,EAAyC;AACzD,IAAA,aAAa,GAAG,IAAI,GAAG,EAAyC;AAChE,IAAA,YAAY,GAAG,MAAM,CAAkB,EAAE,mFAAC;IAElD,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AAIrD,IAAA,IAAI,CAAC,cAAuC,EAAE,OAAA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EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHd,eAAe,EAAE,SAAS,aAC1B,eAAe,CAAA,EAAA,CAAA;yGAEd,aAAa,EAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC;oBACrC,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"frame-ui-ng-components-toast.mjs","sources":["../../../projects/components/toast/src/toast.service.ts","../../../projects/components/toast/src/toast.types.ts","../../../projects/components/toast/src/toast.ts","../../../projects/components/toast/toast.module.ts","../../../projects/components/toast/frame-ui-ng-components-toast.ts"],"sourcesContent":["import { Injectable, computed, signal } from '@angular/core';\n\nimport { FrToastOptions, FrToastRecord, FrToastVariant } from './toast.types';\n\nconst DEFAULT_DURATION = 4000;\nconst DISMISS_ANIMATION_DURATION = 180;\nlet nextToastId = 0;\n\n@Injectable({ providedIn: 'root' })\nexport class FrToastService {\n private readonly timers = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly removalTimers = new Map<string, ReturnType<typeof setTimeout>>();\n private readonly toastRecords = signal<FrToastRecord[]>([]);\n\n readonly toasts = computed(() => this.toastRecords());\n\n show(title: string, options?: Omit<FrToastOptions, 'title'>): string;\n show(options: FrToastOptions): string;\n show(titleOrOptions: string | FrToastOptions, options: Omit<FrToastOptions, 'title'> = {}): string {\n const toast = this.createToast(titleOrOptions, options);\n\n this.clearRemovalTimer(toast.id);\n this.toastRecords.update((toasts) => [toast, ...toasts.filter((item) => item.id !== toast.id)]);\n this.scheduleDismiss(toast);\n\n return toast.id;\n }\n\n success(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'success' });\n }\n\n info(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'info' });\n }\n\n warning(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'warning' });\n }\n\n error(title: string, options: Omit<FrToastOptions, 'title' | 'variant'> = {}): string {\n return this.show(title, { ...options, variant: 'error' });\n }\n\n loading(title: string, options: Omit<FrToastOptions, 'title' | 'variant' | 'loading'> = {}): string {\n return this.show(title, { ...options, variant: 'loading', loading: true, duration: options.duration ?? 0 });\n }\n\n update(id: string, options: Partial<Omit<FrToastOptions, 'id'>>): void {\n let updatedToast: FrToastRecord | undefined;\n\n this.clearRemovalTimer(id);\n this.toastRecords.update((toasts) =>\n toasts.map((toast) => {\n if (toast.id !== id) {\n return toast;\n }\n\n updatedToast = {\n ...toast,\n ...options,\n variant: options.variant ?? toast.variant,\n loading: options.loading ?? toast.loading,\n state: 'visible',\n };\n\n return updatedToast;\n }),\n );\n\n if (updatedToast) {\n this.scheduleDismiss(updatedToast);\n }\n }\n\n dismiss(id: string): void {\n this.clearTimer(id);\n\n let shouldRemove = false;\n\n this.toastRecords.update((toasts) =>\n toasts.map((toast) => {\n if (toast.id !== id) {\n return toast;\n }\n\n if (toast.state === 'dismissing') {\n return toast;\n }\n\n shouldRemove = true;\n return { ...toast, state: 'dismissing' };\n }),\n );\n\n if (!shouldRemove) {\n return;\n }\n\n this.removalTimers.set(\n id,\n setTimeout(() => {\n this.removalTimers.delete(id);\n this.toastRecords.update((toasts) => toasts.filter((toast) => toast.id !== id));\n }, DISMISS_ANIMATION_DURATION),\n );\n }\n\n dismissAll(): void {\n for (const id of this.timers.keys()) {\n this.clearTimer(id);\n }\n\n for (const id of this.removalTimers.keys()) {\n this.clearRemovalTimer(id);\n }\n\n this.toastRecords.set([]);\n }\n\n private createToast(\n titleOrOptions: string | FrToastOptions,\n options: Omit<FrToastOptions, 'title'>,\n ): FrToastRecord {\n const merged = typeof titleOrOptions === 'string'\n ? { ...options, title: titleOrOptions }\n : titleOrOptions;\n const variant: FrToastVariant = merged.variant ?? (merged.loading ? 'loading' : 'default');\n\n return {\n id: merged.id ?? `frame-toast-${nextToastId++}`,\n title: merged.title,\n description: merged.description,\n variant,\n position: merged.position ?? 'bottom-right',\n duration: merged.duration ?? (merged.loading || variant === 'loading' ? 0 : DEFAULT_DURATION),\n dismissible: merged.dismissible ?? true,\n action: merged.action,\n loading: merged.loading ?? variant === 'loading',\n createdAt: Date.now(),\n state: 'visible',\n };\n }\n\n private scheduleDismiss(toast: FrToastRecord): void {\n this.clearTimer(toast.id);\n\n if (!toast.duration || toast.duration <= 0) {\n return;\n }\n\n this.timers.set(\n toast.id,\n setTimeout(() => this.dismiss(toast.id), toast.duration),\n );\n }\n\n private clearTimer(id: string): void {\n const timer = this.timers.get(id);\n\n if (timer) {\n clearTimeout(timer);\n this.timers.delete(id);\n }\n }\n\n private clearRemovalTimer(id: string): void {\n const timer = this.removalTimers.get(id);\n\n if (timer) {\n clearTimeout(timer);\n this.removalTimers.delete(id);\n }\n }\n}\n","export type FrToastVariant =\n | 'default'\n | 'success'\n | 'info'\n | 'warning'\n | 'error'\n | 'loading';\n\nexport type FrToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right';\n\nexport type FrToastAction = {\n label: string;\n altText?: string;\n handler?: () => void;\n};\n\nexport type FrToastState = 'visible' | 'dismissing';\n\nexport type FrToastOptions = {\n id?: string;\n title: string;\n description?: string;\n variant?: FrToastVariant;\n position?: FrToastPosition;\n duration?: number;\n dismissible?: boolean;\n action?: FrToastAction;\n loading?: boolean;\n};\n\nexport type FrToastRecord = Required<\n Pick<FrToastOptions, 'id' | 'title' | 'variant' | 'position' | 'dismissible' | 'loading'>\n> &\n Pick<FrToastOptions, 'description' | 'duration' | 'action'> & {\n createdAt: number;\n state: FrToastState;\n };\n\nexport const FR_TOAST_POSITIONS: FrToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n];\n","import { NgTemplateOutlet } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, TemplateRef, computed, inject, input } from '@angular/core';\r\nimport { FrSpinner } from '@frame-ui-ng/components/spinner';\r\n\r\nimport { FrToastService } from './toast.service';\r\nimport { FR_TOAST_POSITIONS, FrToastPosition, FrToastRecord } from './toast.types';\r\n\r\n@Component({\r\n selector: 'frame-toast-viewport',\r\n exportAs: 'frToastViewport',\r\n host: {\r\n class: 'frame-toast-viewport',\r\n '[attr.data-strategy]': 'strategy()',\r\n '[attr.aria-live]': 'politeness()',\r\n '[attr.aria-label]': 'label()',\r\n },\r\n imports: [NgTemplateOutlet, FrSpinner],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n template: `\r\n @for (position of positions; track position) {\r\n @let positionToasts = groupedToasts().get(position) ?? [];\r\n\r\n @if (positionToasts.length > 0) {\r\n <section\r\n class=\"frame-toast__group\"\r\n [attr.data-position]=\"position\"\r\n [style.--frame-toast-count]=\"positionToasts.length\"\r\n >\r\n @for (toast of positionToasts; track toast.id; let toastIndex = $index) {\r\n <article\r\n class=\"frame-toast\"\r\n [attr.data-variant]=\"toast.variant\"\r\n [attr.data-loading]=\"toast.loading\"\r\n [attr.data-dismissible]=\"toast.dismissible\"\r\n [attr.data-has-description]=\"toast.description ? 'true' : 'false'\"\r\n [attr.data-has-action]=\"toast.action ? 'true' : 'false'\"\r\n [attr.data-state]=\"toast.state\"\r\n [style.--frame-toast-index]=\"toastIndex\"\r\n data-token-target=\"toast-root\"\r\n >\r\n @if (toast.loading) {\r\n <span\r\n frSpinner\r\n class=\"frame-toast__loader\"\r\n decorative\r\n size=\"sm\"\r\n data-token-target=\"toast-loader\"\r\n ></span>\r\n } @else {\r\n <span class=\"frame-toast__status\" aria-hidden=\"true\" data-token-target=\"toast-status\"></span>\r\n }\r\n\r\n <div class=\"frame-toast__content\" data-token-target=\"toast-content\">\r\n <h2 class=\"frame-toast__title\" data-token-target=\"toast-title\">{{ toast.title }}</h2>\r\n\r\n @if (toast.description) {\r\n <p class=\"frame-toast__description\" data-token-target=\"toast-description\">\r\n {{ toast.description }}\r\n </p>\r\n }\r\n </div>\r\n\r\n @if (toast.action) {\r\n <button\r\n class=\"frame-toast__action\"\r\n type=\"button\"\r\n [attr.aria-label]=\"toast.action.altText ?? toast.action.label\"\r\n (click)=\"runAction(toast)\"\r\n data-token-target=\"toast-action\"\r\n >\r\n {{ toast.action.label }}\r\n </button>\r\n }\r\n\r\n @if (toast.dismissible && !toast.action) {\r\n <button\r\n class=\"frame-toast__close\"\r\n type=\"button\"\r\n aria-label=\"Dismiss notification\"\r\n (click)=\"dismiss(toast.id)\"\r\n data-token-target=\"toast-close\"\r\n >\r\n @if (closeIcon(); as iconTemplate) {\r\n <ng-container [ngTemplateOutlet]=\"iconTemplate\" />\r\n } @else {\r\n <span aria-hidden=\"true\">x</span>\r\n }\r\n </button>\r\n }\r\n </article>\r\n }\r\n </section>\r\n }\r\n }\r\n `,\r\n})\r\nexport class FrToastViewport {\r\n private readonly toast = inject(FrToastService);\r\n\r\n readonly strategy = input<'fixed' | 'inline'>('fixed');\r\n readonly label = input('Notifications');\r\n readonly politeness = input<'polite' | 'assertive' | 'off'>('polite');\r\n readonly closeIcon = input<TemplateRef<unknown> | null>(null);\r\n\r\n protected readonly positions = FR_TOAST_POSITIONS;\r\n protected readonly groupedToasts = computed(() => {\r\n const groups = new Map<FrToastPosition, FrToastRecord[]>();\r\n\r\n for (const toast of this.toast.toasts()) {\r\n const toasts = groups.get(toast.position) ?? [];\r\n toasts.push(toast);\r\n groups.set(toast.position, toasts);\r\n }\r\n\r\n return groups;\r\n });\r\n\r\n protected dismiss(id: string): void {\r\n this.toast.dismiss(id);\r\n }\r\n\r\n protected runAction(toast: FrToastRecord): void {\r\n toast.action?.handler?.();\r\n this.toast.dismiss(toast.id);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\nimport { FrSpinner } from '@frame-ui-ng/components/spinner';\n\nimport { FrToastViewport } from './src/toast';\n\n@NgModule({\n imports: [FrToastViewport, FrSpinner],\n exports: [FrToastViewport],\n})\nexport class FrToastModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,gBAAgB,GAAG,IAAI;AAC7B,MAAM,0BAA0B,GAAG,GAAG;AACtC,IAAI,WAAW,GAAG,CAAC;MAGN,cAAc,CAAA;AACR,IAAA,MAAM,GAAG,IAAI,GAAG,EAAyC;AACzD,IAAA,aAAa,GAAG,IAAI,GAAG,EAAyC;AAChE,IAAA,YAAY,GAAG,MAAM,CAAkB,EAAE,mFAAC;IAElD,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AAIrD,IAAA,IAAI,CAAC,cAAuC,EAAE,OAAA,GAAyC,EAAE,EAAA;QACvF,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC;AAEvD,QAAA,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;AAChC,QAAA,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/F,QAAA,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;QAE3B,OAAO,KAAK,CA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AA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC;oBACrC,OAAO,EAAE,CAAC,eAAe,CAAC;AAC3B,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -25,7 +25,7 @@ class FrAccordionContent {
|
|
|
25
25
|
host = inject(ElementRef);
|
|
26
26
|
item = inject(ACCORDION_ITEM);
|
|
27
27
|
initialized = false;
|
|
28
|
-
|
|
28
|
+
rafIds = [];
|
|
29
29
|
constructor() {
|
|
30
30
|
effect((onCleanup) => {
|
|
31
31
|
const open = this.item.open();
|
|
@@ -51,19 +51,25 @@ class FrAccordionContent {
|
|
|
51
51
|
}
|
|
52
52
|
animate(open) {
|
|
53
53
|
const element = this.host.nativeElement;
|
|
54
|
+
const currentHeight = element.getBoundingClientRect().height;
|
|
55
|
+
const contentHeight = this.measureContentHeight();
|
|
54
56
|
if (open) {
|
|
55
57
|
element.style.visibility = 'visible';
|
|
56
|
-
element.style.height =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
element.style.height = `${currentHeight}px`;
|
|
59
|
+
if (currentHeight === 0) {
|
|
60
|
+
element.style.opacity = '0';
|
|
61
|
+
}
|
|
62
|
+
void element.offsetHeight;
|
|
63
|
+
this.requestAnimationFrame(() => {
|
|
64
|
+
element.style.height = `${contentHeight}px`;
|
|
60
65
|
element.style.opacity = '1';
|
|
61
66
|
});
|
|
62
67
|
return;
|
|
63
68
|
}
|
|
64
|
-
element.style.height = `${
|
|
69
|
+
element.style.height = `${currentHeight || contentHeight}px`;
|
|
65
70
|
element.style.opacity = '1';
|
|
66
|
-
|
|
71
|
+
void element.offsetHeight;
|
|
72
|
+
this.requestAnimationFrame(() => {
|
|
67
73
|
element.style.height = '0px';
|
|
68
74
|
element.style.opacity = '0';
|
|
69
75
|
});
|
|
@@ -74,12 +80,21 @@ class FrAccordionContent {
|
|
|
74
80
|
element.style.opacity = open ? '1' : '0';
|
|
75
81
|
element.style.visibility = open ? 'visible' : 'hidden';
|
|
76
82
|
}
|
|
83
|
+
measureContentHeight() {
|
|
84
|
+
return this.host.nativeElement.scrollHeight;
|
|
85
|
+
}
|
|
77
86
|
cancelAnimationFrame() {
|
|
78
|
-
|
|
79
|
-
|
|
87
|
+
for (const rafId of this.rafIds) {
|
|
88
|
+
cancelAnimationFrame(rafId);
|
|
80
89
|
}
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
this.rafIds = [];
|
|
91
|
+
}
|
|
92
|
+
requestAnimationFrame(callback) {
|
|
93
|
+
const rafId = requestAnimationFrame((time) => {
|
|
94
|
+
this.rafIds = this.rafIds.filter((id) => id !== rafId);
|
|
95
|
+
callback(time);
|
|
96
|
+
});
|
|
97
|
+
this.rafIds.push(rafId);
|
|
83
98
|
}
|
|
84
99
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrAccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
85
100
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrAccordionContent, isStandalone: true, selector: "[frAccordionContent]", host: { attributes: { "role": "region" }, listeners: { "transitionend": "onTransitionEnd($event)" }, properties: { "attr.aria-hidden": "item.open() ? \"false\" : \"true\"", "attr.aria-labelledby": "item.triggerId()", "attr.data-state": "item.open() ? \"open\" : \"closed\"", "attr.id": "item.contentId()" }, classAttribute: "frame-accordion__content" }, ngImport: i0 });
|
|
@@ -458,6 +473,7 @@ const FR_AVATAR_SIZES = ['xs', 'sm', 'md', 'lg'];
|
|
|
458
473
|
const FR_BADGE_VARIANTS = [
|
|
459
474
|
'default',
|
|
460
475
|
'secondary',
|
|
476
|
+
'success',
|
|
461
477
|
'destructive',
|
|
462
478
|
'outline',
|
|
463
479
|
'ghost',
|
|
@@ -654,7 +670,7 @@ class FrButton {
|
|
|
654
670
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
655
671
|
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
656
672
|
loadingDisplay = input('replace', ...(ngDevMode ? [{ debugName: "loadingDisplay" }] : /* istanbul ignore next */ []));
|
|
657
|
-
radius = input('
|
|
673
|
+
radius = input('none', ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
658
674
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
659
675
|
hasCustomLoadingIndicator = computed(() => !!this.loadingIndicator() || !!this.spinnerIndicator(), ...(ngDevMode ? [{ debugName: "hasCustomLoadingIndicator" }] : /* istanbul ignore next */ []));
|
|
660
676
|
isUnavailable = computed(() => this.disabled() || this.loading(), ...(ngDevMode ? [{ debugName: "isUnavailable" }] : /* istanbul ignore next */ []));
|
|
@@ -2930,6 +2946,20 @@ function mergeClassList$2(classList, defaultClass) {
|
|
|
2930
2946
|
return Array.from(new Set([defaultClass, ...classes].filter(Boolean)));
|
|
2931
2947
|
}
|
|
2932
2948
|
|
|
2949
|
+
class FrCommandFooter {
|
|
2950
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrCommandFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2951
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: FrCommandFooter, isStandalone: true, selector: "[frCommandFooter]", host: { classAttribute: "frame-command__footer" }, ngImport: i0 });
|
|
2952
|
+
}
|
|
2953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrCommandFooter, decorators: [{
|
|
2954
|
+
type: Directive,
|
|
2955
|
+
args: [{
|
|
2956
|
+
selector: '[frCommandFooter]',
|
|
2957
|
+
host: {
|
|
2958
|
+
class: 'frame-command__footer',
|
|
2959
|
+
},
|
|
2960
|
+
}]
|
|
2961
|
+
}] });
|
|
2962
|
+
|
|
2933
2963
|
const FR_COMMAND = new InjectionToken('FrCommand');
|
|
2934
2964
|
const FR_COMMAND_GROUP = new InjectionToken('FrCommandGroup');
|
|
2935
2965
|
|
|
@@ -10274,5 +10304,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
10274
10304
|
* Generated bundle index. Do not edit.
|
|
10275
10305
|
*/
|
|
10276
10306
|
|
|
10277
|
-
export { FR_ACCORDION_TYPES, FR_ALERT_VARIANTS, FR_AVATAR_SIZES, FR_BADGE_ICON_POSITIONS, FR_BADGE_VARIANTS, FR_BUTTON_APPEARANCES, FR_BUTTON_GROUP_ORIENTATIONS, FR_BUTTON_LOADING_DISPLAYS, FR_BUTTON_RADII, FR_BUTTON_SIZES, FR_CARD_FOOTER_ALIGNS, FR_CARD_SIZES, FR_CARD_SPACINGS, FR_CAROUSEL_ALIGNS, FR_CAROUSEL_DIRECTIONS, FR_CAROUSEL_ORIENTATIONS, FR_CONTEXT_MENU_CONTENT, FR_DROPDOWN_MENU_ALIGNMENTS, FR_DROPDOWN_MENU_CONTENT, FR_DROPDOWN_MENU_ITEM_VARIANTS, FR_DROPDOWN_MENU_PARENT, FR_DROPDOWN_MENU_SIDES, FR_DROPDOWN_MENU_TRIGGER_MODES, FR_EMPTY_MEDIA_VARIANTS, FR_EMPTY_ORIENTATIONS, FR_EMPTY_VARIANTS, FR_FIELD_LEGEND_VARIANTS, FR_FIELD_ORIENTATIONS, FR_HOVER_CARD_ALIGNMENTS, FR_HOVER_CARD_SIDES, FR_INPUT_GROUP_ADDON_ALIGNS, FR_INPUT_OTP_PATTERN_DIGITS, FR_INPUT_OTP_PATTERN_DIGITS_AND_CHARS, FR_ITEM_MEDIA_VARIANTS, FR_ITEM_SIZES, FR_ITEM_VARIANTS, FR_MENUBAR_PARENT, FR_MODAL_DATA, FR_NAVIGATION_MENU_PARENT, FR_POPOVER_ALIGNMENTS, FR_POPOVER_SIDES, FR_RADIO_GROUP_ORIENTATIONS, FR_RADIO_GROUP_VARIANTS, FR_RESIZABLE_ORIENTATIONS, FR_SELECT_INDICATOR_POSITIONS, FR_SELECT_POSITIONS, FR_SEPARATOR_ORIENTATIONS, FR_SHEET_DATA, FR_SHEET_SIDES, FR_SIDEBAR_COLLAPSIBLES, FR_SIDEBAR_MENU_BUTTON_SIZES, FR_SIDEBAR_MENU_BUTTON_VARIANTS, FR_SIDEBAR_PROVIDER, FR_SIDEBAR_SIDES, FR_SIDEBAR_VARIANTS, FR_SLIDER_ORIENTATIONS, FR_SWITCH_SIZES, FrAccordion, FrAccordionContent, FrAccordionIcon, FrAccordionItem, FrAccordionTrigger, FrAlert, FrAlertDescription, FrAlertIcon, FrAlertTitle, FrAvatar, FrAvatarBadge, FrAvatarFallback, FrAvatarGroup, FrAvatarGroupCount, FrAvatarIcon, FrAvatarImage, FrBadge, FrBadgeIcon, FrBadgeLabel, FrBadgeSpinner, FrBreadcrumb, FrBreadcrumbEllipsis, FrBreadcrumbItem, FrBreadcrumbLink, FrBreadcrumbList, FrBreadcrumbPage, FrBreadcrumbSeparator, FrButton, FrButtonGroup, FrButtonIcon, FrButtonLabel, FrButtonLoading, FrCalendar, FrCard, FrCardAction, FrCardContent, FrCardDescription, FrCardFooter, FrCardHeader, FrCardTitle, FrCarousel, FrCarouselContent, FrCarouselItem, FrCarouselNext, FrCarouselPrevious, FrCheckbox, FrCheckboxField, FrCheckboxLabel, FrCollapsible, FrCollapsibleContent, FrCollapsibleTrigger, FrCombobox, FrComboboxChip, FrComboboxChipRemove, FrComboboxChips, FrComboboxChipsInput, FrComboboxClear, FrComboboxCollection, FrComboboxContent, FrComboboxEmpty, FrComboboxError, FrComboboxGroup, FrComboboxInput, FrComboboxItem, FrComboboxItemIndicator, FrComboboxLabel, FrComboboxList, FrComboboxPanel, FrComboboxRootLookup, FrComboboxSeparator, FrComboboxTrigger, FrComboboxValueList, FrCommand, FrCommandDialog, FrCommandDialogTrigger, FrCommandEmpty, FrCommandGroup, FrCommandGroupHeading, FrCommandInput, FrCommandItem, FrCommandItemIcon, FrCommandList, FrCommandSeparator, FrCommandService, FrCommandShortcut, FrContextMenu, FrContextMenuCheckboxItem, FrContextMenuContent, FrContextMenuItem, FrContextMenuItemIndicator, FrContextMenuLabel, FrContextMenuPanel, FrContextMenuRadioGroup, FrContextMenuRadioItem, FrContextMenuSeparator, FrContextMenuShortcut, FrContextMenuSub, FrContextMenuSubTrigger, FrContextMenuTrigger, FrControlValueAccessor, FrDatePicker, FrDropdownMenu, FrDropdownMenuCheckboxItem, FrDropdownMenuContent, FrDropdownMenuItem, FrDropdownMenuItemIndicator, FrDropdownMenuLabel, FrDropdownMenuPanel, FrDropdownMenuRadioGroup, FrDropdownMenuRadioItem, FrDropdownMenuSeparator, FrDropdownMenuShortcut, FrDropdownMenuSub, FrDropdownMenuSubTrigger, FrDropdownMenuTree, FrDropdownMenuTrigger, FrEmpty, FrEmptyContent, FrEmptyDescription, FrEmptyHeader, FrEmptyMedia, FrEmptyTitle, FrField, FrFieldContent, FrFieldDescription, FrFieldError, FrFieldGroup, FrFieldLabel, FrFieldLegend, FrFieldSeparator, FrFieldSet, FrHoverCardRoot as FrHoverCard, FrHoverCardContent, FrHoverCardPanel, FrHoverCardTrigger, FrIconButton, FrInput, FrInputBadge, FrInputControl, FrInputDescription, FrInputError, FrInputField, FrInputFieldGroup, FrInputGroup, FrInputGroupAddon, FrInputGroupInput, FrInputGroupText, FrInputHeader, FrInputLabel, FrInputOtp, FrInputOtpGroup, FrInputOtpSeparator, FrInputOtpSlot, FrItem, FrItemActions, FrItemContent, FrItemDescription, FrItemFooter, FrItemGroup, FrItemHeader, FrItemMedia, FrItemSeparator, FrItemTitle, FrMenuBar, FrMenuBarCheckboxItem, FrMenuBarContent, FrMenuBarItem, FrMenuBarItemIndicator, FrMenuBarLabel, FrMenuBarMenu, FrMenuBarPanel, FrMenuBarRadioGroup, FrMenuBarRadioItem, FrMenuBarSeparator, FrMenuBarShortcut, FrMenuBarSub, FrMenuBarSubTrigger, FrMenuBarTrigger, FrModalBody, FrModalClose, FrModalContent, FrModalDescription, FrModalFooter, FrModalHeader, FrModalPanel, FrModalService, FrModalShell, FrModalTitle, FrModalTrigger, FrNavigationLinkSeparator, FrNavigationMenu, FrNavigationMenuContent, FrNavigationMenuFeature, FrNavigationMenuGrid, FrNavigationMenuIndicator, FrNavigationMenuItem, FrNavigationMenuLink, FrNavigationMenuLinkDescription, FrNavigationMenuLinkTitle, FrNavigationMenuList, FrNavigationMenuPanel, FrNavigationMenuTrigger, FrNavigationMenuViewport, FrPagination, FrPaginationContent, FrPaginationEllipsis, FrPaginationIcon, FrPaginationItem, FrPaginationLink, FrPaginationNext, FrPaginationPrevious, FrPopoverRoot as FrPopover, FrPopoverBody, FrPopoverClose, FrPopoverContent, FrPopoverDescription, FrPopoverFooter, FrPopoverHeader, FrPopoverPanel, FrPopoverTitle, FrPopoverTrigger, FrProgress, FrProgressIndicator, FrRadioGroup, FrRadioGroupCard, FrRadioGroupCardMeta, FrRadioGroupField, FrRadioGroupItem, FrResizableHandle, FrResizablePanel, FrResizablePanelGroup, FrSelect, FrSelectContent, FrSelectError, FrSelectGroup, FrSelectIcon, FrSelectItem, FrSelectItemIndicator, FrSelectLabel, FrSelectPanel, FrSelectSeparator, FrSelectValue, FrSeparator, FrSheetBody, FrSheetClose, FrSheetContent, FrSheetDescription, FrSheetFooter, FrSheetHeader, FrSheetPanel, FrSheetService, FrSheetShell, FrSheetTitle, FrSheetTrigger, FrSidebar, FrSidebarContent, FrSidebarFooter, FrSidebarGroup, FrSidebarGroupAction, FrSidebarGroupContent, FrSidebarGroupLabel, FrSidebarHeader, FrSidebarInset, FrSidebarMenu, FrSidebarMenuAction, FrSidebarMenuBadge, FrSidebarMenuButton, FrSidebarMenuItem, FrSidebarMenuSkeleton, FrSidebarMenuSub, FrSidebarMenuSubButton, FrSidebarMenuSubItem, FrSidebarProvider, FrSidebarRail, FrSidebarTrigger, FrSlider, FrSwitch, FrSwitchContent, FrSwitchDescription, FrSwitchError, FrSwitchField, FrSwitchLabel, FrTextarea, FrVirtualContent, FrVirtualFor, FrVirtualItem, FrVirtualItemMeta, FrVirtualList, FrVirtualPanel, FrVirtualViewport, buildConnectedPositions, calculateScrollOffsetForIndex, calculateVirtualRange, defaultPositions, provideDsValueAccessor };
|
|
10307
|
+
export { FR_ACCORDION_TYPES, FR_ALERT_VARIANTS, FR_AVATAR_SIZES, FR_BADGE_ICON_POSITIONS, FR_BADGE_VARIANTS, FR_BUTTON_APPEARANCES, FR_BUTTON_GROUP_ORIENTATIONS, FR_BUTTON_LOADING_DISPLAYS, FR_BUTTON_RADII, FR_BUTTON_SIZES, FR_CARD_FOOTER_ALIGNS, FR_CARD_SIZES, FR_CARD_SPACINGS, FR_CAROUSEL_ALIGNS, FR_CAROUSEL_DIRECTIONS, FR_CAROUSEL_ORIENTATIONS, FR_CONTEXT_MENU_CONTENT, FR_DROPDOWN_MENU_ALIGNMENTS, FR_DROPDOWN_MENU_CONTENT, FR_DROPDOWN_MENU_ITEM_VARIANTS, FR_DROPDOWN_MENU_PARENT, FR_DROPDOWN_MENU_SIDES, FR_DROPDOWN_MENU_TRIGGER_MODES, FR_EMPTY_MEDIA_VARIANTS, FR_EMPTY_ORIENTATIONS, FR_EMPTY_VARIANTS, FR_FIELD_LEGEND_VARIANTS, FR_FIELD_ORIENTATIONS, FR_HOVER_CARD_ALIGNMENTS, FR_HOVER_CARD_SIDES, FR_INPUT_GROUP_ADDON_ALIGNS, FR_INPUT_OTP_PATTERN_DIGITS, FR_INPUT_OTP_PATTERN_DIGITS_AND_CHARS, FR_ITEM_MEDIA_VARIANTS, FR_ITEM_SIZES, FR_ITEM_VARIANTS, FR_MENUBAR_PARENT, FR_MODAL_DATA, FR_NAVIGATION_MENU_PARENT, FR_POPOVER_ALIGNMENTS, FR_POPOVER_SIDES, FR_RADIO_GROUP_ORIENTATIONS, FR_RADIO_GROUP_VARIANTS, FR_RESIZABLE_ORIENTATIONS, FR_SELECT_INDICATOR_POSITIONS, FR_SELECT_POSITIONS, FR_SEPARATOR_ORIENTATIONS, FR_SHEET_DATA, FR_SHEET_SIDES, FR_SIDEBAR_COLLAPSIBLES, FR_SIDEBAR_MENU_BUTTON_SIZES, FR_SIDEBAR_MENU_BUTTON_VARIANTS, FR_SIDEBAR_PROVIDER, FR_SIDEBAR_SIDES, FR_SIDEBAR_VARIANTS, FR_SLIDER_ORIENTATIONS, FR_SWITCH_SIZES, FrAccordion, FrAccordionContent, FrAccordionIcon, FrAccordionItem, FrAccordionTrigger, FrAlert, FrAlertDescription, FrAlertIcon, FrAlertTitle, FrAvatar, FrAvatarBadge, FrAvatarFallback, FrAvatarGroup, FrAvatarGroupCount, FrAvatarIcon, FrAvatarImage, FrBadge, FrBadgeIcon, FrBadgeLabel, FrBadgeSpinner, FrBreadcrumb, FrBreadcrumbEllipsis, FrBreadcrumbItem, FrBreadcrumbLink, FrBreadcrumbList, FrBreadcrumbPage, FrBreadcrumbSeparator, FrButton, FrButtonGroup, FrButtonIcon, FrButtonLabel, FrButtonLoading, FrCalendar, FrCard, FrCardAction, FrCardContent, FrCardDescription, FrCardFooter, FrCardHeader, FrCardTitle, FrCarousel, FrCarouselContent, FrCarouselItem, FrCarouselNext, FrCarouselPrevious, FrCheckbox, FrCheckboxField, FrCheckboxLabel, FrCollapsible, FrCollapsibleContent, FrCollapsibleTrigger, FrCombobox, FrComboboxChip, FrComboboxChipRemove, FrComboboxChips, FrComboboxChipsInput, FrComboboxClear, FrComboboxCollection, FrComboboxContent, FrComboboxEmpty, FrComboboxError, FrComboboxGroup, FrComboboxInput, FrComboboxItem, FrComboboxItemIndicator, FrComboboxLabel, FrComboboxList, FrComboboxPanel, FrComboboxRootLookup, FrComboboxSeparator, FrComboboxTrigger, FrComboboxValueList, FrCommand, FrCommandDialog, FrCommandDialogTrigger, FrCommandEmpty, FrCommandFooter, FrCommandGroup, FrCommandGroupHeading, FrCommandInput, FrCommandItem, FrCommandItemIcon, FrCommandList, FrCommandSeparator, FrCommandService, FrCommandShortcut, FrContextMenu, FrContextMenuCheckboxItem, FrContextMenuContent, FrContextMenuItem, FrContextMenuItemIndicator, FrContextMenuLabel, FrContextMenuPanel, FrContextMenuRadioGroup, FrContextMenuRadioItem, FrContextMenuSeparator, FrContextMenuShortcut, FrContextMenuSub, FrContextMenuSubTrigger, FrContextMenuTrigger, FrControlValueAccessor, FrDatePicker, FrDropdownMenu, FrDropdownMenuCheckboxItem, FrDropdownMenuContent, FrDropdownMenuItem, FrDropdownMenuItemIndicator, FrDropdownMenuLabel, FrDropdownMenuPanel, FrDropdownMenuRadioGroup, FrDropdownMenuRadioItem, FrDropdownMenuSeparator, FrDropdownMenuShortcut, FrDropdownMenuSub, FrDropdownMenuSubTrigger, FrDropdownMenuTree, FrDropdownMenuTrigger, FrEmpty, FrEmptyContent, FrEmptyDescription, FrEmptyHeader, FrEmptyMedia, FrEmptyTitle, FrField, FrFieldContent, FrFieldDescription, FrFieldError, FrFieldGroup, FrFieldLabel, FrFieldLegend, FrFieldSeparator, FrFieldSet, FrHoverCardRoot as FrHoverCard, FrHoverCardContent, FrHoverCardPanel, FrHoverCardTrigger, FrIconButton, FrInput, FrInputBadge, FrInputControl, FrInputDescription, FrInputError, FrInputField, FrInputFieldGroup, FrInputGroup, FrInputGroupAddon, FrInputGroupInput, FrInputGroupText, FrInputHeader, FrInputLabel, FrInputOtp, FrInputOtpGroup, FrInputOtpSeparator, FrInputOtpSlot, FrItem, FrItemActions, FrItemContent, FrItemDescription, FrItemFooter, FrItemGroup, FrItemHeader, FrItemMedia, FrItemSeparator, FrItemTitle, FrMenuBar, FrMenuBarCheckboxItem, FrMenuBarContent, FrMenuBarItem, FrMenuBarItemIndicator, FrMenuBarLabel, FrMenuBarMenu, FrMenuBarPanel, FrMenuBarRadioGroup, FrMenuBarRadioItem, FrMenuBarSeparator, FrMenuBarShortcut, FrMenuBarSub, FrMenuBarSubTrigger, FrMenuBarTrigger, FrModalBody, FrModalClose, FrModalContent, FrModalDescription, FrModalFooter, FrModalHeader, FrModalPanel, FrModalService, FrModalShell, FrModalTitle, FrModalTrigger, FrNavigationLinkSeparator, FrNavigationMenu, FrNavigationMenuContent, FrNavigationMenuFeature, FrNavigationMenuGrid, FrNavigationMenuIndicator, FrNavigationMenuItem, FrNavigationMenuLink, FrNavigationMenuLinkDescription, FrNavigationMenuLinkTitle, FrNavigationMenuList, FrNavigationMenuPanel, FrNavigationMenuTrigger, FrNavigationMenuViewport, FrPagination, FrPaginationContent, FrPaginationEllipsis, FrPaginationIcon, FrPaginationItem, FrPaginationLink, FrPaginationNext, FrPaginationPrevious, FrPopoverRoot as FrPopover, FrPopoverBody, FrPopoverClose, FrPopoverContent, FrPopoverDescription, FrPopoverFooter, FrPopoverHeader, FrPopoverPanel, FrPopoverTitle, FrPopoverTrigger, FrProgress, FrProgressIndicator, FrRadioGroup, FrRadioGroupCard, FrRadioGroupCardMeta, FrRadioGroupField, FrRadioGroupItem, FrResizableHandle, FrResizablePanel, FrResizablePanelGroup, FrSelect, FrSelectContent, FrSelectError, FrSelectGroup, FrSelectIcon, FrSelectItem, FrSelectItemIndicator, FrSelectLabel, FrSelectPanel, FrSelectSeparator, FrSelectValue, FrSeparator, FrSheetBody, FrSheetClose, FrSheetContent, FrSheetDescription, FrSheetFooter, FrSheetHeader, FrSheetPanel, FrSheetService, FrSheetShell, FrSheetTitle, FrSheetTrigger, FrSidebar, FrSidebarContent, FrSidebarFooter, FrSidebarGroup, FrSidebarGroupAction, FrSidebarGroupContent, FrSidebarGroupLabel, FrSidebarHeader, FrSidebarInset, FrSidebarMenu, FrSidebarMenuAction, FrSidebarMenuBadge, FrSidebarMenuButton, FrSidebarMenuItem, FrSidebarMenuSkeleton, FrSidebarMenuSub, FrSidebarMenuSubButton, FrSidebarMenuSubItem, FrSidebarProvider, FrSidebarRail, FrSidebarTrigger, FrSlider, FrSwitch, FrSwitchContent, FrSwitchDescription, FrSwitchError, FrSwitchField, FrSwitchLabel, FrTextarea, FrVirtualContent, FrVirtualFor, FrVirtualItem, FrVirtualItemMeta, FrVirtualList, FrVirtualPanel, FrVirtualViewport, buildConnectedPositions, calculateScrollOffsetForIndex, calculateVirtualRange, defaultPositions, provideDsValueAccessor };
|
|
10278
10308
|
//# sourceMappingURL=frame-ui-ng-components.mjs.map
|