@lofid/vue 0.0.0-stage → 1.0.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/dist/index.js ADDED
@@ -0,0 +1,801 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/generated.ts
8
+ var generated_exports = {};
9
+ __export(generated_exports, {
10
+ LofAccordion: () => LofAccordion,
11
+ LofAlert: () => LofAlert,
12
+ LofAutocomplete: () => LofAutocomplete,
13
+ LofAvatar: () => LofAvatar,
14
+ LofAvatarGroup: () => LofAvatarGroup,
15
+ LofBadge: () => LofBadge,
16
+ LofBreadcrumbs: () => LofBreadcrumbs,
17
+ LofButton: () => LofButton,
18
+ LofCalendar: () => LofCalendar,
19
+ LofCard: () => LofCard,
20
+ LofCardMedia: () => LofCardMedia,
21
+ LofCarousel: () => LofCarousel,
22
+ LofCheckbox: () => LofCheckbox,
23
+ LofChip: () => LofChip,
24
+ LofContainer: () => LofContainer,
25
+ LofDatePicker: () => LofDatePicker,
26
+ LofDivider: () => LofDivider,
27
+ LofDrawer: () => LofDrawer,
28
+ LofDrawerFooter: () => LofDrawerFooter,
29
+ LofKbd: () => LofKbd,
30
+ LofKbdGroup: () => LofKbdGroup,
31
+ LofLayout: () => LofLayout,
32
+ LofMenu: () => LofMenu,
33
+ LofMenuItem: () => LofMenuItem,
34
+ LofMenubar: () => LofMenubar,
35
+ LofMenubarMenu: () => LofMenubarMenu,
36
+ LofModal: () => LofModal,
37
+ LofOtp: () => LofOtp,
38
+ LofPagination: () => LofPagination,
39
+ LofPopover: () => LofPopover,
40
+ LofPopoverContent: () => LofPopoverContent,
41
+ LofProgress: () => LofProgress,
42
+ LofRadio: () => LofRadio,
43
+ LofRangePicker: () => LofRangePicker,
44
+ LofResizableGroup: () => LofResizableGroup,
45
+ LofResizableHandle: () => LofResizableHandle,
46
+ LofResizablePanel: () => LofResizablePanel,
47
+ LofSegmentedButton: () => LofSegmentedButton,
48
+ LofSelect: () => LofSelect,
49
+ LofSignaturePad: () => LofSignaturePad,
50
+ LofSkeleton: () => LofSkeleton,
51
+ LofSlider: () => LofSlider,
52
+ LofSnackbar: () => LofSnackbar,
53
+ LofSplitButton: () => LofSplitButton,
54
+ LofStepper: () => LofStepper,
55
+ LofSwitch: () => LofSwitch,
56
+ LofTab: () => LofTab,
57
+ LofTabItem: () => LofTabItem,
58
+ LofTextfield: () => LofTextfield,
59
+ LofTimePicker: () => LofTimePicker,
60
+ LofToast: () => LofToast,
61
+ LofTooltip: () => LofTooltip,
62
+ LofTree: () => LofTree,
63
+ LofUpload: () => LofUpload,
64
+ LofUploadActions: () => LofUploadActions,
65
+ WRAPPED_TAGS: () => WRAPPED_TAGS
66
+ });
67
+
68
+ // src/create-component.ts
69
+ import {
70
+ defineComponent,
71
+ h,
72
+ onBeforeUnmount,
73
+ onMounted,
74
+ onUpdated,
75
+ shallowRef
76
+ } from "vue";
77
+ var NO_DEFAULT = /* @__PURE__ */ Symbol("no-default");
78
+ var VUE_BOOLEAN_ATTRS = new Set(
79
+ "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected".split(",")
80
+ );
81
+ var pascal = (tag) => tag.split("-").map((p) => p[0].toUpperCase() + p.slice(1)).join("");
82
+ function createComponent(tag, spec) {
83
+ const specs = spec.props;
84
+ const booleans = new Set(spec.booleans);
85
+ const bindings = spec.bindings ?? [];
86
+ const model = spec.model;
87
+ const props = {};
88
+ for (const key in specs) props[key] = booleans.has(key) ? { type: Boolean, default: void 0 } : null;
89
+ if (model) props.modelValue = null;
90
+ const emits = [...spec.events, ...new Set(bindings.map(([prop]) => `update:${prop}`))];
91
+ if (model) emits.push("update:modelValue");
92
+ const modelProp = (values) => model === void 0 || typeof model === "string" ? model : values.multiple ? model[0] : model[1];
93
+ const Component = defineComponent({
94
+ name: pascal(tag),
95
+ props,
96
+ emits,
97
+ setup(rawProps, { emit, slots, expose }) {
98
+ const input = rawProps;
99
+ const node = shallowRef(null);
100
+ const defaults = /* @__PURE__ */ new Map();
101
+ const applied = /* @__PURE__ */ new Set();
102
+ const cleanups = [];
103
+ expose({ el: node });
104
+ const current = () => {
105
+ const out = {};
106
+ for (const key in specs) if (input[key] !== void 0) out[key] = input[key];
107
+ const value = model ? input.modelValue : void 0;
108
+ const target = modelProp(input);
109
+ if (target && value !== void 0 && out[target] === void 0) out[target] = value;
110
+ return out;
111
+ };
112
+ const apply = () => {
113
+ const el = node.value;
114
+ if (!el) return;
115
+ const upgraded = customElements.get(tag) !== void 0;
116
+ const values = current();
117
+ for (const key in values) {
118
+ if (!defaults.has(key)) defaults.set(key, upgraded ? el[key] : NO_DEFAULT);
119
+ if (el[key] !== values[key]) el[key] = values[key];
120
+ applied.add(key);
121
+ }
122
+ for (const key of applied) {
123
+ if (key in values) continue;
124
+ const fallback = defaults.get(key);
125
+ el[key] = fallback === NO_DEFAULT ? void 0 : fallback;
126
+ applied.delete(key);
127
+ }
128
+ };
129
+ onMounted(() => {
130
+ const el = node.value;
131
+ if (!el) return;
132
+ apply();
133
+ if (!customElements.get(tag)) {
134
+ let live = true;
135
+ cleanups.push(() => live = false);
136
+ customElements.whenDefined(tag).then(() => {
137
+ const target = node.value;
138
+ if (!live || !target) return;
139
+ for (const key of applied) {
140
+ if (!Object.prototype.hasOwnProperty.call(target, key)) continue;
141
+ const value = target[key];
142
+ delete target[key];
143
+ target[key] = value;
144
+ }
145
+ });
146
+ }
147
+ const fire = emit;
148
+ for (const type of spec.events) {
149
+ const listener = (event) => {
150
+ if (event.target !== el) return;
151
+ fire(type, event);
152
+ const detail = event.detail;
153
+ for (const [prop, name, key] of bindings) {
154
+ if (name !== type) continue;
155
+ const value = key ? detail?.[key] : detail;
156
+ if (value === void 0 || Array.isArray(value) !== Array.isArray(el[prop])) continue;
157
+ fire(`update:${prop}`, value);
158
+ if (prop === modelProp(input)) fire("update:modelValue", value);
159
+ }
160
+ };
161
+ el.addEventListener(type, listener);
162
+ cleanups.push(() => el.removeEventListener(type, listener));
163
+ }
164
+ });
165
+ onUpdated(apply);
166
+ onBeforeUnmount(() => cleanups.splice(0).forEach((fn) => fn()));
167
+ return () => {
168
+ const attributes = {};
169
+ const values = current();
170
+ for (const key in values) {
171
+ const attr = specs[key];
172
+ const value = values[key];
173
+ if (attr === null) continue;
174
+ if (attr[0] === "?") {
175
+ if (value === true) attributes[attr.slice(1)] = true;
176
+ } else if (typeof value === "string" || typeof value === "number") {
177
+ attributes[VUE_BOOLEAN_ATTRS.has(attr) ? attr.toUpperCase() : attr] = value;
178
+ }
179
+ }
180
+ return h(tag, { ...attributes, ref: node }, slots.default?.());
181
+ };
182
+ }
183
+ });
184
+ return Component;
185
+ }
186
+
187
+ // src/generated.ts
188
+ var LofAccordion = /* @__PURE__ */ createComponent(
189
+ "lof-accordion",
190
+ {
191
+ props: { appearance: "appearance", contentType: "content-type", disabled: "?disabled", open: "?open", size: "size", title: "title", type: "type" },
192
+ booleans: ["disabled", "open"],
193
+ events: ["open-change"],
194
+ model: "open",
195
+ bindings: [["open", "open-change", ""]]
196
+ }
197
+ );
198
+ var LofAlert = /* @__PURE__ */ createComponent(
199
+ "lof-alert",
200
+ {
201
+ props: { appearance: "appearance", dismissed: "?dismissed", dismissible: "?dismissible", message1: "message1", message2: "message2", tone: "tone", type: "type", urlHref: "url-href", urlText: "url-text" },
202
+ booleans: ["dismissed", "dismissible"],
203
+ events: ["dismiss"]
204
+ }
205
+ );
206
+ var LofAutocomplete = /* @__PURE__ */ createComponent(
207
+ "lof-autocomplete",
208
+ {
209
+ props: { clearable: "?clearable", debounceMs: "debounce-ms", disabled: "?disabled", displayField: "display-field", error: "?error", errorMessage: "error-message", fieldAriaLabel: "field-aria-label", fieldAriaLabelledby: "field-aria-labelledby", filter: "filter", floatingLabel: "?floating-label", fullWidth: "?full-width", helperText: "helper-text", items: null, label: "label", labelStyle: "label-style", loading: "?loading", loadingText: "loading-text", maxSuggestions: "max-suggestions", minSearchLength: "min-search-length", multiple: "?multiple", name: "name", noResultsText: "no-results-text", placeholder: "placeholder", prefixIcon: "prefix-icon", readonly: "?readonly", required: "?required", searchFn: null, selectAllLabel: "select-all-label", selectedValues: null, size: "size", supportingField: "supporting-field", value: "value", valueField: "value-field", variant: "variant" },
210
+ booleans: ["clearable", "disabled", "error", "floatingLabel", "fullWidth", "loading", "multiple", "readonly", "required"],
211
+ events: ["changed", "lof-change", "lof-clear", "lof-search-error"],
212
+ model: ["selectedValues", "value"],
213
+ bindings: [["value", "changed", "value"], ["selectedValues", "changed", "value"]]
214
+ }
215
+ );
216
+ var LofAvatar = /* @__PURE__ */ createComponent(
217
+ "lof-avatar",
218
+ {
219
+ props: { alt: "alt", badge: "badge", badgeIcon: "badge-icon", badgeLabel: "badge-label", bg: "bg", color: "color", icon: "icon", ring: "?ring", size: "size", src: "src", text: "text", type: "type", variant: "variant" },
220
+ booleans: ["ring"],
221
+ events: []
222
+ }
223
+ );
224
+ var LofAvatarGroup = /* @__PURE__ */ createComponent(
225
+ "lof-avatar-group",
226
+ {
227
+ props: { label: "label", max: "max", overflowLabel: "overflow-label", size: "size", total: "total" },
228
+ booleans: [],
229
+ events: []
230
+ }
231
+ );
232
+ var LofBadge = /* @__PURE__ */ createComponent(
233
+ "lof-badge",
234
+ {
235
+ props: { ariaLabel: "arialabel", color: "color", live: "?live", number: "number", size: "size", suffix: "suffix", textColor: "text-color", variant: "variant" },
236
+ booleans: ["live"],
237
+ events: []
238
+ }
239
+ );
240
+ var LofBreadcrumbs = /* @__PURE__ */ createComponent(
241
+ "lof-breadcrumbs",
242
+ {
243
+ props: { ariaLabel: "aria-label", items: null },
244
+ booleans: [],
245
+ events: []
246
+ }
247
+ );
248
+ var LofButton = /* @__PURE__ */ createComponent(
249
+ "lof-button",
250
+ {
251
+ props: { ariaLabel: "aria-label", badge: "badge", badgeDot: "?badge-dot", border: "border", disabled: "?disabled", iconOnly: "?icon-only", loading: "?loading", size: "size", tone: "tone", variant: "variant" },
252
+ booleans: ["badgeDot", "disabled", "iconOnly", "loading"],
253
+ events: []
254
+ }
255
+ );
256
+ var LofCalendar = /* @__PURE__ */ createComponent(
257
+ "lof-calendar",
258
+ {
259
+ props: { disabled: "?disabled", isDateDisabled: null, locale: "locale", max: "max", min: "min", value: "value", weekStart: "week-start" },
260
+ booleans: ["disabled"],
261
+ events: ["lof-change"],
262
+ model: "value",
263
+ bindings: [["value", "lof-change", "value"]]
264
+ }
265
+ );
266
+ var LofCard = /* @__PURE__ */ createComponent(
267
+ "lof-card",
268
+ {
269
+ props: { type: "type" },
270
+ booleans: [],
271
+ events: []
272
+ }
273
+ );
274
+ var LofCardMedia = /* @__PURE__ */ createComponent(
275
+ "lof-card-media",
276
+ {
277
+ props: { imageAlt: "image-alt", imageSrc: "image-src", subtitle: "subtitle", title: "title" },
278
+ booleans: [],
279
+ events: []
280
+ }
281
+ );
282
+ var LofCarousel = /* @__PURE__ */ createComponent(
283
+ "lof-carousel",
284
+ {
285
+ props: { autoplay: "?autoplay", disabled: "?disabled", gap: "gap", interval: "interval", label: "label", loop: "?loop", orientation: "orientation", panels: "panels", pauseOnHover: "?pause-on-hover", showButtons: "?show-buttons", showDots: null, type: "type", value: "value" },
286
+ booleans: ["autoplay", "disabled", "loop", "pauseOnHover", "showButtons", "showDots"],
287
+ events: ["lof-change"],
288
+ model: "value",
289
+ bindings: [["value", "lof-change", "value"]]
290
+ }
291
+ );
292
+ var LofCheckbox = /* @__PURE__ */ createComponent(
293
+ "lof-checkbox",
294
+ {
295
+ props: { alignment: "alignment", checked: null, density: "density", disabled: "?disabled", fieldAriaLabel: "field-aria-label", icon: "icon", label: "label", size: "size", state: "state", status: "status", supportingtext: "supporting-text", supportingText: null, value: "value" },
296
+ booleans: ["checked", "disabled"],
297
+ events: ["lof-change"],
298
+ model: "checked",
299
+ bindings: [["checked", "lof-change", "checked"]]
300
+ }
301
+ );
302
+ var LofChip = /* @__PURE__ */ createComponent(
303
+ "lof-chip",
304
+ {
305
+ props: { avatar: "avatar", border: "border", draggableChip: "?draggable-chip", fieldAriaLabel: "field-aria-label", label: "label", leadingIcon: "leading-icon", presentational: "?presentational", removable: "?removable", removed: "?removed", size: "size", tone: "tone", trailingIcon: "trailing-icon", variant: "variant" },
306
+ booleans: ["draggableChip", "presentational", "removable", "removed"],
307
+ events: ["chip-move", "removed"]
308
+ }
309
+ );
310
+ var LofContainer = /* @__PURE__ */ createComponent(
311
+ "lof-container",
312
+ {
313
+ props: { background: "background", padding: "padding", shadow: "?shadow", surface: "surface" },
314
+ booleans: ["shadow"],
315
+ events: []
316
+ }
317
+ );
318
+ var LofDatePicker = /* @__PURE__ */ createComponent(
319
+ "lof-date-picker",
320
+ {
321
+ props: { clearable: "?clearable", closeOnSelect: "?close-on-select", disabled: "?disabled", displayFormat: "display-format", error: "?error", errorMessage: "error-message", formatDate: null, fullWidth: "?full-width", helperText: "helper-text", isDateDisabled: null, label: "label", locale: "locale", max: "max", maxDate: "max-date", min: "min", minDate: "min-date", name: "name", open: "?open", placeholder: "placeholder", readonly: "?readonly", required: "?required", showShortcuts: null, size: "size", value: "value", variant: "variant", weekStart: "week-start" },
322
+ booleans: ["clearable", "closeOnSelect", "disabled", "error", "fullWidth", "open", "readonly", "required", "showShortcuts"],
323
+ events: ["lof-blur", "lof-change", "lof-open-change"],
324
+ model: "value",
325
+ bindings: [["value", "lof-change", "value"], ["open", "lof-open-change", "open"]]
326
+ }
327
+ );
328
+ var LofDivider = /* @__PURE__ */ createComponent(
329
+ "lof-divider",
330
+ {
331
+ props: { orientation: "orientation" },
332
+ booleans: [],
333
+ events: []
334
+ }
335
+ );
336
+ var LofDrawer = /* @__PURE__ */ createComponent(
337
+ "lof-drawer",
338
+ {
339
+ props: { closeOnBackdrop: "?close-on-backdrop", closeOnEscape: "?close-on-escape", description: "description", dismissible: "?dismissible", draggable: "?draggable", maxHeight: "max-height", modal: "?modal", open: "?open", showHandle: "?show-handle", side: "side", snapThreshold: "snap-threshold", title: "title", width: "width" },
340
+ booleans: ["closeOnBackdrop", "closeOnEscape", "dismissible", "draggable", "modal", "open", "showHandle"],
341
+ events: ["lof-open-change"],
342
+ model: "open",
343
+ bindings: [["open", "lof-open-change", "open"]]
344
+ }
345
+ );
346
+ var LofDrawerFooter = /* @__PURE__ */ createComponent(
347
+ "lof-drawer-footer",
348
+ {
349
+ props: {},
350
+ booleans: [],
351
+ events: []
352
+ }
353
+ );
354
+ var LofKbd = /* @__PURE__ */ createComponent(
355
+ "lof-kbd",
356
+ {
357
+ props: { inset: "?inset", keyName: "key-name", pill: "?pill", platform: "platform", size: "size", variant: "variant" },
358
+ booleans: ["inset", "pill"],
359
+ events: []
360
+ }
361
+ );
362
+ var LofKbdGroup = /* @__PURE__ */ createComponent(
363
+ "lof-kbd-group",
364
+ {
365
+ props: { items: null, platform: "platform", size: "size", variant: "variant" },
366
+ booleans: [],
367
+ events: []
368
+ }
369
+ );
370
+ var LofLayout = /* @__PURE__ */ createComponent(
371
+ "lof-layout",
372
+ {
373
+ props: { columns: "columns", gap: "gap", responsive: "?responsive" },
374
+ booleans: ["responsive"],
375
+ events: []
376
+ }
377
+ );
378
+ var LofMenu = /* @__PURE__ */ createComponent(
379
+ "lof-menu",
380
+ {
381
+ props: { items: null, size: "size", type: "type", width: "width" },
382
+ booleans: [],
383
+ events: ["lof-check", "lof-select", "lof-submenu-select"]
384
+ }
385
+ );
386
+ var LofMenuItem = /* @__PURE__ */ createComponent(
387
+ "lof-menu-item",
388
+ {
389
+ props: { disabled: "?disabled", icon: "icon", label: "label", value: "value" },
390
+ booleans: ["disabled"],
391
+ events: []
392
+ }
393
+ );
394
+ var LofMenubar = /* @__PURE__ */ createComponent(
395
+ "lof-menubar",
396
+ {
397
+ props: { bindShortcuts: "?bind-shortcuts", type: "type" },
398
+ booleans: ["bindShortcuts"],
399
+ events: ["lof-menubar-change", "lof-menubar-select"]
400
+ }
401
+ );
402
+ var LofMenubarMenu = /* @__PURE__ */ createComponent(
403
+ "lof-menubar-menu",
404
+ {
405
+ props: { disabled: "?disabled", label: "label" },
406
+ booleans: ["disabled"],
407
+ events: []
408
+ }
409
+ );
410
+ var LofModal = /* @__PURE__ */ createComponent(
411
+ "lof-modal",
412
+ {
413
+ props: { autoFocus: "?auto-focus", breakpoint: "breakpoint", closeOnBackdropClick: "?close-on-backdrop-click", closeOnEscape: "?close-on-escape", description: "description", disabled: "?disabled", dismissible: "?dismissible", loading: "?loading", modal: "?modal", open: "?open", restoreFocus: "?restore-focus", scrollable: "?scrollable", showCloseButton: "?show-close-button", side: "side", size: "size", subtitle: "subtitle", title: "title", variant: "variant", zIndex: "z-index" },
414
+ booleans: ["autoFocus", "closeOnBackdropClick", "closeOnEscape", "disabled", "dismissible", "loading", "modal", "open", "restoreFocus", "scrollable", "showCloseButton"],
415
+ events: ["lof-open-change"],
416
+ model: "open",
417
+ bindings: [["open", "lof-open-change", ""]]
418
+ }
419
+ );
420
+ var LofOtp = /* @__PURE__ */ createComponent(
421
+ "lof-otp",
422
+ {
423
+ props: { ariaLabel: "aria-label", autocomplete: "autocomplete", disabled: "?disabled", groupSize: "group-size", inputmode: "inputmode", inputMode: "input-mode", invalid: "?invalid", length: "length", mask: "?mask", name: "name", pattern: "pattern", placeholder: "placeholder", readonly: "?readonly", required: "?required", showSeparator: "?show-separator", size: "size", type: "type", value: "value" },
424
+ booleans: ["disabled", "invalid", "mask", "readonly", "required", "showSeparator"],
425
+ events: ["lof-change", "lof-complete"],
426
+ model: "value",
427
+ bindings: [["value", "lof-change", "value"]]
428
+ }
429
+ );
430
+ var LofPagination = /* @__PURE__ */ createComponent(
431
+ "lof-pagination",
432
+ {
433
+ props: { ariaLabel: "arialabel", defaultPage: "default-page", disabled: "?disabled", hrefTemplate: "href-template", page: "page", perPage: "per-page", rowsPerPageLabel: "rows-per-page-label", rowsPerPageOptions: null, showLabel: "?show-label", showRowsPerPage: "?show-rows-per-page", totalItems: "total-items", totalPages: "total-pages", type: "type" },
434
+ booleans: ["disabled", "showLabel", "showRowsPerPage"],
435
+ events: ["lof-change", "lof-per-page-change"],
436
+ model: "page",
437
+ bindings: [["page", "lof-change", "page"]]
438
+ }
439
+ );
440
+ var LofPopover = /* @__PURE__ */ createComponent(
441
+ "lof-popover",
442
+ {
443
+ props: { align: "align", alignOffset: "align-offset", arrow: "?arrow", closeOnEscape: "?close-on-escape", closeOnOutsideClick: "?close-on-outside-click", defaultOpen: "?default-open", disabled: "?disabled", hasPopup: "has-popup", open: "?open", side: "side", sideOffset: "side-offset", trapFocus: "?trap-focus" },
444
+ booleans: ["arrow", "closeOnEscape", "closeOnOutsideClick", "defaultOpen", "disabled", "open", "trapFocus"],
445
+ events: ["lof-open-change"],
446
+ model: "open",
447
+ bindings: [["open", "lof-open-change", "open"]]
448
+ }
449
+ );
450
+ var LofPopoverContent = /* @__PURE__ */ createComponent(
451
+ "lof-popover-content",
452
+ {
453
+ props: { ariaLabel: "aria-label", size: "size" },
454
+ booleans: [],
455
+ events: []
456
+ }
457
+ );
458
+ var LofProgress = /* @__PURE__ */ createComponent(
459
+ "lof-progress",
460
+ {
461
+ props: { label: "label", mode: "mode", value: "value" },
462
+ booleans: [],
463
+ events: []
464
+ }
465
+ );
466
+ var LofRadio = /* @__PURE__ */ createComponent(
467
+ "lof-radio",
468
+ {
469
+ props: { alignment: "alignment", density: "density", disabled: "?disabled", error: "?error", errorMessage: "error-message", fieldAriaLabel: "field-aria-label", name: "name", options: null, orientation: "orientation", selectedValue: "selected-value", size: "size", value: "value" },
470
+ booleans: ["disabled", "error"],
471
+ events: ["lof-change"],
472
+ model: "selectedValue",
473
+ bindings: [["selectedValue", "lof-change", "value"]]
474
+ }
475
+ );
476
+ var LofRangePicker = /* @__PURE__ */ createComponent(
477
+ "lof-range-picker",
478
+ {
479
+ props: { clearable: "?clearable", disabled: "?disabled", from: "from", fullWidth: "?full-width", height: "height", locale: "locale", maxDate: "max-date", maxHeight: "max-height", maxWidth: "max-width", minDate: "min-date", minHeight: "min-height", minWidth: "min-width", mode: "mode", open: "?open", placeholder: "placeholder", size: "size", to: "to", triggerVariant: "trigger-variant", weekStart: "week-start", width: "width" },
480
+ booleans: ["clearable", "disabled", "fullWidth", "open"],
481
+ events: ["lof-blur", "lof-change", "lof-open-change"],
482
+ bindings: [["from", "lof-change", "from"], ["to", "lof-change", "to"], ["open", "lof-open-change", "open"]]
483
+ }
484
+ );
485
+ var LofResizableGroup = /* @__PURE__ */ createComponent(
486
+ "lof-resizable-group",
487
+ {
488
+ props: { direction: "direction" },
489
+ booleans: [],
490
+ events: ["lof-resize", "lof-resize-end"]
491
+ }
492
+ );
493
+ var LofResizableHandle = /* @__PURE__ */ createComponent(
494
+ "lof-resizable-handle",
495
+ {
496
+ props: { orientation: "orientation" },
497
+ booleans: [],
498
+ events: []
499
+ }
500
+ );
501
+ var LofResizablePanel = /* @__PURE__ */ createComponent(
502
+ "lof-resizable-panel",
503
+ {
504
+ props: { defaultSize: "default-size", maxSize: "max-size", minSize: "min-size", panelLabel: "panel-label" },
505
+ booleans: [],
506
+ events: []
507
+ }
508
+ );
509
+ var LofSegmentedButton = /* @__PURE__ */ createComponent(
510
+ "lof-segmented-button",
511
+ {
512
+ props: { active: "active", align: "align", disabled: "?disabled", fieldAriaLabel: "field-aria-label", options: null, size: "size" },
513
+ booleans: ["disabled"],
514
+ events: ["changed", "lof-change"],
515
+ model: "active",
516
+ bindings: [["active", "lof-change", "value"]]
517
+ }
518
+ );
519
+ var LofSelect = /* @__PURE__ */ createComponent(
520
+ "lof-select",
521
+ {
522
+ props: { border: "border", fieldAriaLabel: "field-aria-label", fieldAriaLabelledby: "field-aria-labelledby", label: "label", labelStyle: "label-style", leftIcon: "left-icon", maxVisibleChips: "max-visible-chips", multiple: "?multiple", noSearch: "?no-search", options: null, placeholder: "placeholder", rightIcon: "right-icon", searchPlaceholder: "search-placeholder", selectAllLabel: "select-all-label", selected: "selected", selectedValues: null, size: "size", state: "state", supportingIcon: "supporting-icon", supportingText: "supporting-text" },
523
+ booleans: ["multiple", "noSearch"],
524
+ events: ["changed", "lof-change"],
525
+ model: ["selectedValues", "selected"],
526
+ bindings: [["selected", "lof-change", "value"], ["selectedValues", "lof-change", "value"]]
527
+ }
528
+ );
529
+ var LofSignaturePad = /* @__PURE__ */ createComponent(
530
+ "lof-signature-pad",
531
+ {
532
+ props: { disabled: "?disabled", disabledText: "disabled-text", error: "?error", errorMessage: "error-message", fieldAriaLabel: "field-aria-label", helperText: "helper-text", label: "label", mode: "mode", name: "name", placeholder: "placeholder", readonly: "?readonly", required: "?required", strokes: null, typedName: "typed-name", value: null },
533
+ booleans: ["disabled", "error", "readonly", "required"],
534
+ events: ["lof-begin", "lof-change", "lof-end"]
535
+ }
536
+ );
537
+ var LofSkeleton = /* @__PURE__ */ createComponent(
538
+ "lof-skeleton",
539
+ {
540
+ props: { animation: "animation", height: "height", lines: "lines", loaded: "?loaded", shape: "shape", width: "width" },
541
+ booleans: ["loaded"],
542
+ events: []
543
+ }
544
+ );
545
+ var LofSlider = /* @__PURE__ */ createComponent(
546
+ "lof-slider",
547
+ {
548
+ props: { disabled: "?disabled", fieldAriaLabel: "field-aria-label", max: "max", min: "min", showBubble: "?show-bubble", showTickLabels: "?show-tick-labels", showTicks: "?show-ticks", size: "size", step: "step", track: "track", type: "type", value: "value", valueEnd: "value-end" },
549
+ booleans: ["disabled", "showBubble", "showTickLabels", "showTicks"],
550
+ events: ["lof-change"],
551
+ model: "value",
552
+ bindings: [["value", "lof-change", "value"], ["valueEnd", "lof-change", "valueEnd"]]
553
+ }
554
+ );
555
+ var LofSnackbar = /* @__PURE__ */ createComponent(
556
+ "lof-snackbar",
557
+ {
558
+ props: { action: "action", duration: "duration", iconClose: "?icon-close", lines: "lines", longerAction: "?longeraction", message: "message", show: "?show", tone: "tone", type: "type", variant: "variant" },
559
+ booleans: ["iconClose", "longerAction", "show"],
560
+ events: ["actionClick", "close"]
561
+ }
562
+ );
563
+ var LofSplitButton = /* @__PURE__ */ createComponent(
564
+ "lof-split-button",
565
+ {
566
+ props: { ariaLabel: "aria-label", disabled: "?disabled", icon: "icon", iconOnly: "?icon-only", items: null, label: "label", loading: "?loading", menuLabel: "menu-label", open: "?open", size: "size", tone: "tone", variant: "variant" },
567
+ booleans: ["disabled", "iconOnly", "loading", "open"],
568
+ events: ["lof-open-change", "lof-select"]
569
+ }
570
+ );
571
+ var LofStepper = /* @__PURE__ */ createComponent(
572
+ "lof-stepper",
573
+ {
574
+ props: { connector: "connector", labelPlacement: "label-placement", orientation: "orientation", size: "size", steps: null, textAlign: "textalign", type: "type" },
575
+ booleans: [],
576
+ events: ["lof-step-change"]
577
+ }
578
+ );
579
+ var LofSwitch = /* @__PURE__ */ createComponent(
580
+ "lof-switch",
581
+ {
582
+ props: { checked: "?checked", disabled: "?disabled", fieldAriaLabel: "field-aria-label", label: "label", labelPlacement: "label-placement", size: "size", type: "type", value: "value" },
583
+ booleans: ["checked", "disabled"],
584
+ events: ["lof-change"],
585
+ model: "checked",
586
+ bindings: [["checked", "lof-change", "checked"]]
587
+ }
588
+ );
589
+ var LofTab = /* @__PURE__ */ createComponent(
590
+ "lof-tab",
591
+ {
592
+ props: { activeIndex: "active-index", iconPlacement: "icon-placement", orientation: "orientation", size: "size", tabs: null },
593
+ booleans: [],
594
+ events: ["lof-change", "lof-tab-change"],
595
+ model: "activeIndex",
596
+ bindings: [["activeIndex", "lof-change", ""]]
597
+ }
598
+ );
599
+ var LofTabItem = /* @__PURE__ */ createComponent(
600
+ "lof-tab-item",
601
+ {
602
+ props: { badge: "badge", badgeDot: "?badge-dot", disabled: "?disabled", icon: "icon", label: "label", value: "value" },
603
+ booleans: ["badgeDot", "disabled"],
604
+ events: []
605
+ }
606
+ );
607
+ var LofTextfield = /* @__PURE__ */ createComponent(
608
+ "lof-textfield",
609
+ {
610
+ props: { clickableRightIcon: "?clickable-right-icon", disabled: "?disabled", error: "?error", errorMessage: "error-message", fieldAriaLabel: "field-aria-label", fieldAriaLabelledby: "field-aria-labelledby", floatingLabel: "?floatinglabel", fullWidth: "?full-width", helperIcon: "helper-icon", helperText: "helper-text", label: "label", labelStyle: "label-style", leftIcon: "left-icon", maxLength: "maxlength", multiline: "?multiline", name: "name", placeholder: "placeholder", prefixIcon: "prefix-icon", prefixIconAriaLabel: "prefix-icon-aria-label", prefixStyle: "prefix-style", prefixText: "prefix-text", readonly: "?readonly", required: "?required", rightIcon: "right-icon", rightIconAriaLabel: "right-icon-aria-label", rows: "rows", size: "size", state: "state", suffixDivider: "?suffix-divider", suffixText: "suffix-text", supportingText: "supportingtext", type: "type", value: "value", variant: "variant" },
611
+ booleans: ["clickableRightIcon", "disabled", "error", "floatingLabel", "fullWidth", "multiline", "readonly", "required", "suffixDivider"],
612
+ events: ["lof-change", "lof-right-icon-click"],
613
+ model: "value",
614
+ bindings: [["value", "lof-change", ""]]
615
+ }
616
+ );
617
+ var LofTimePicker = /* @__PURE__ */ createComponent(
618
+ "lof-time-picker",
619
+ {
620
+ props: { clearable: "?clearable", disabled: "?disabled", error: "?error", errorMessage: "error-message", format: "format", fullWidth: "?full-width", helperText: "helper-text", invalid: "?invalid", label: "label", maxTime: "max-time", minTime: "min-time", minuteStep: "minute-step", name: "name", open: "?open", placeholder: "placeholder", readonly: "?readonly", required: "?required", seconds: "?seconds", size: "size", value: "value", variant: "variant" },
621
+ booleans: ["clearable", "disabled", "error", "fullWidth", "invalid", "open", "readonly", "required", "seconds"],
622
+ events: ["lof-blur", "lof-change", "lof-focus", "lof-open-change"],
623
+ model: "value",
624
+ bindings: [["value", "lof-change", "value"], ["open", "lof-open-change", "open"]]
625
+ }
626
+ );
627
+ var LofToast = /* @__PURE__ */ createComponent(
628
+ "lof-toast",
629
+ {
630
+ props: { actionLabel: "action-label", dismissible: "?dismissible", duration: "duration", maxVisible: "max-visible", message: "message", position: "position", show: "?show", size: "size", tone: "tone", type: "type" },
631
+ booleans: ["dismissible", "show"],
632
+ events: ["action", "dismissed"]
633
+ }
634
+ );
635
+ var LofTooltip = /* @__PURE__ */ createComponent(
636
+ "lof-tooltip",
637
+ {
638
+ props: { position: "position", showTail: "?show-tail", text: "text", tone: "tone", type: "type" },
639
+ booleans: ["showTail"],
640
+ events: []
641
+ }
642
+ );
643
+ var LofTree = /* @__PURE__ */ createComponent(
644
+ "lof-tree",
645
+ {
646
+ props: { expandedValues: null, fieldAriaLabel: "field-aria-label", items: null, selected: "selected", selectedValues: null, selection: "selection", showGuides: "?show-guides" },
647
+ booleans: ["showGuides"],
648
+ events: ["lof-change", "lof-expanded-change", "lof-load-children"]
649
+ }
650
+ );
651
+ var LofUpload = /* @__PURE__ */ createComponent(
652
+ "lof-upload",
653
+ {
654
+ props: { accept: "accept", browseLabel: "browse-label", concurrency: "concurrency", delayThreshold: "delay-threshold", disabled: "?disabled", dropzoneTitle: "dropzone-title", files: null, hint: "hint", maxFiles: "max-files", maxSize: "max-size", multiple: "?multiple", uploader: null },
655
+ booleans: ["disabled", "multiple"],
656
+ events: ["lof-cancel", "lof-change", "lof-complete", "lof-file-complete", "lof-file-error", "lof-file-replaced", "lof-files-added", "lof-invalid", "lof-progress", "lof-remove", "lof-retry", "lof-state", "lof-upload", "lof-upload-complete"]
657
+ }
658
+ );
659
+ var LofUploadActions = /* @__PURE__ */ createComponent(
660
+ "lof-upload-actions",
661
+ {
662
+ props: { cancelLabel: "cancel-label", for: "for", noCancel: "?no-cancel" },
663
+ booleans: ["noCancel"],
664
+ events: ["lof-cancel"]
665
+ }
666
+ );
667
+ var WRAPPED_TAGS = [
668
+ "lof-accordion",
669
+ "lof-alert",
670
+ "lof-autocomplete",
671
+ "lof-avatar",
672
+ "lof-avatar-group",
673
+ "lof-badge",
674
+ "lof-breadcrumbs",
675
+ "lof-button",
676
+ "lof-calendar",
677
+ "lof-card",
678
+ "lof-card-media",
679
+ "lof-carousel",
680
+ "lof-checkbox",
681
+ "lof-chip",
682
+ "lof-container",
683
+ "lof-date-picker",
684
+ "lof-divider",
685
+ "lof-drawer",
686
+ "lof-drawer-footer",
687
+ "lof-kbd",
688
+ "lof-kbd-group",
689
+ "lof-layout",
690
+ "lof-menu",
691
+ "lof-menu-item",
692
+ "lof-menubar",
693
+ "lof-menubar-menu",
694
+ "lof-modal",
695
+ "lof-otp",
696
+ "lof-pagination",
697
+ "lof-popover",
698
+ "lof-popover-content",
699
+ "lof-progress",
700
+ "lof-radio",
701
+ "lof-range-picker",
702
+ "lof-resizable-group",
703
+ "lof-resizable-handle",
704
+ "lof-resizable-panel",
705
+ "lof-segmented-button",
706
+ "lof-select",
707
+ "lof-signature-pad",
708
+ "lof-skeleton",
709
+ "lof-slider",
710
+ "lof-snackbar",
711
+ "lof-split-button",
712
+ "lof-stepper",
713
+ "lof-switch",
714
+ "lof-tab",
715
+ "lof-tab-item",
716
+ "lof-textfield",
717
+ "lof-time-picker",
718
+ "lof-toast",
719
+ "lof-tooltip",
720
+ "lof-tree",
721
+ "lof-upload",
722
+ "lof-upload-actions"
723
+ ];
724
+
725
+ // src/index.ts
726
+ var defined;
727
+ function defineElements() {
728
+ if (typeof window === "undefined") return Promise.resolve();
729
+ defined ??= import("@lofid/web").then(() => void 0);
730
+ return defined;
731
+ }
732
+ var LofidDesign = {
733
+ install(app) {
734
+ for (const [name, component] of Object.entries(generated_exports)) {
735
+ if (/^Lof[A-Z]/.test(name)) app.component(name, component);
736
+ }
737
+ void defineElements();
738
+ }
739
+ };
740
+ export {
741
+ LofAccordion,
742
+ LofAlert,
743
+ LofAutocomplete,
744
+ LofAvatar,
745
+ LofAvatarGroup,
746
+ LofBadge,
747
+ LofBreadcrumbs,
748
+ LofButton,
749
+ LofCalendar,
750
+ LofCard,
751
+ LofCardMedia,
752
+ LofCarousel,
753
+ LofCheckbox,
754
+ LofChip,
755
+ LofContainer,
756
+ LofDatePicker,
757
+ LofDivider,
758
+ LofDrawer,
759
+ LofDrawerFooter,
760
+ LofKbd,
761
+ LofKbdGroup,
762
+ LofLayout,
763
+ LofMenu,
764
+ LofMenuItem,
765
+ LofMenubar,
766
+ LofMenubarMenu,
767
+ LofModal,
768
+ LofOtp,
769
+ LofPagination,
770
+ LofPopover,
771
+ LofPopoverContent,
772
+ LofProgress,
773
+ LofRadio,
774
+ LofRangePicker,
775
+ LofResizableGroup,
776
+ LofResizableHandle,
777
+ LofResizablePanel,
778
+ LofSegmentedButton,
779
+ LofSelect,
780
+ LofSignaturePad,
781
+ LofSkeleton,
782
+ LofSlider,
783
+ LofSnackbar,
784
+ LofSplitButton,
785
+ LofStepper,
786
+ LofSwitch,
787
+ LofTab,
788
+ LofTabItem,
789
+ LofTextfield,
790
+ LofTimePicker,
791
+ LofToast,
792
+ LofTooltip,
793
+ LofTree,
794
+ LofUpload,
795
+ LofUploadActions,
796
+ LofidDesign,
797
+ WRAPPED_TAGS,
798
+ createComponent,
799
+ defineElements
800
+ };
801
+ //# sourceMappingURL=index.js.map