@nxgt/material-vue 0.23.4 → 0.25.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/README.md +30 -28
- package/dist/{Button-CVIR6uLK.js → Button-C1aaI0Gw.js} +95 -72
- package/dist/{HoverCardTrigger-iAL5ALrL.js → HoverCardTrigger-JtHn0IFQ.js} +2 -2
- package/dist/{camera-Gvg5N956.js → camera-BacVyXl0.js} +6 -6
- package/dist/{components-AScwCcds.js → components-DRBKkOqk.js} +15764 -13833
- package/dist/components.js +8 -8
- package/dist/composables.js +2 -2
- package/dist/dnd.js +1 -1
- package/dist/form-scope-VxlJuvFe.js +43 -0
- package/dist/{i18n-provider-BqWxpaKu.js → i18n-provider-D0oYv0XS.js} +1 -1
- package/dist/i18n.js +4 -4
- package/dist/{icon-button-DbEME76t.js → icon-button-B2FQtIHS.js} +34 -37
- package/dist/lib/components/ui/actions/button/has-text-content.d.ts +10 -0
- package/dist/lib/components/ui/actions/copy-button/copy-value.vue.d.ts +21 -0
- package/dist/lib/components/ui/actions/copy-button/index.d.ts +2 -0
- package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +6 -0
- package/dist/lib/components/ui/collections/data-table/data-table-pagination.vue.d.ts +2 -0
- package/dist/lib/components/ui/collections/data-table/data-table.vue.d.ts +17 -27
- package/dist/lib/components/ui/collections/data-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-body.vue.d.ts +10 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty.vue.d.ts +13 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-head.vue.d.ts +22 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-skeleton-rows.vue.d.ts +10 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +17 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-field-slider-range.vue.d.ts +1 -4
- package/dist/lib/components/ui/collections/pagination/index.d.ts +5 -0
- package/dist/lib/components/ui/collections/pagination/pagination-bar.vue.d.ts +21 -0
- package/dist/lib/components/ui/collections/pagination/pagination-items.d.ts +2 -0
- package/dist/lib/components/ui/collections/pagination/pagination-link.vue.d.ts +18 -0
- package/dist/lib/components/ui/collections/tree/use-tree.d.ts +2 -0
- package/dist/lib/components/ui/dates/date-field/date-field.vue.d.ts +10 -1
- package/dist/lib/components/ui/dates/date-field/date-form-field.vue.d.ts +3 -1
- package/dist/lib/components/ui/dates/date-field/day-matcher.d.ts +26 -0
- package/dist/lib/components/ui/dates/date-field/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/date-field/partials/date-field-content.vue.d.ts +2 -0
- package/dist/lib/components/ui/dates/date-range-field/date-range-field.utils.d.ts +11 -0
- package/dist/lib/components/ui/dates/date-range-field/date-range-field.vue.d.ts +26 -1
- package/dist/lib/components/ui/dates/date-range-field/date-range-form-field.vue.d.ts +3 -1
- package/dist/lib/components/ui/dates/date-range-field/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-calendar.vue.d.ts +5 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-field-trigger.vue.d.ts +2 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-presets.vue.d.ts +12 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-times.vue.d.ts +13 -0
- package/dist/lib/components/ui/dates/date-range-field/use-date-range-presets.d.ts +23 -0
- package/dist/lib/components/ui/dates/time-picker/time-picker-utils.d.ts +7 -0
- package/dist/lib/components/ui/display/accordion-card/accordion-card.vue.d.ts +29 -1
- package/dist/lib/components/ui/display/avatar/Avatar.vue.d.ts +14 -3
- package/dist/lib/components/ui/display/avatar/index.d.ts +1 -0
- package/dist/lib/components/ui/display/cards/cards.gallery.d.ts +5 -9
- package/dist/lib/components/ui/display/markdown/index.d.ts +18 -0
- package/dist/lib/components/ui/display/qrcode/qrcode.vue.d.ts +5 -3
- package/dist/lib/components/ui/display/status-indicator/status-tone.d.ts +3 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog/async-form-scope.d.ts +15 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog/confirmation-dialog.vue.d.ts +37 -24
- package/dist/lib/components/ui/feedback/confirmation-dialog/index.d.ts +1 -1
- package/dist/lib/components/ui/feedback/confirmation-dialog/partials/confirmation-dialog-form-error.vue.d.ts +3 -0
- package/dist/lib/components/ui/feedback/skeleton/skeleton-text.vue.d.ts +1 -1
- package/dist/lib/components/ui/feedback/spinner/spinner.compound-variants.d.ts +4 -0
- package/dist/lib/components/ui/fields/attributes/form-schema.d.ts +24 -22
- package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/fields/inline-edit/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/inline-edit/inline-edit-form-field.vue.d.ts +7 -0
- package/dist/lib/components/ui/fields/number-field/number-field.vue.d.ts +2 -0
- package/dist/lib/components/ui/fields/slider/partials/slider-field-row.vue.d.ts +32 -0
- package/dist/lib/components/ui/fields/slider/slider-field.vue.d.ts +22 -1
- package/dist/lib/components/ui/fields/slider/slider-form-field.vue.d.ts +13 -1
- package/dist/lib/components/ui/forms/form-scope-schema.d.ts +43 -0
- package/dist/lib/components/ui/forms/form-scope.vue.d.ts +33 -0
- package/dist/lib/components/ui/layout/doc/doc.vue.d.ts +5 -5
- package/dist/lib/components/ui/layout/doc/index.d.ts +8 -1
- package/dist/lib/components/ui/layout/doc/partials/default-doc-link.vue.d.ts +14 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-copy-page.vue.d.ts +6 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-link.vue.d.ts +3 -7
- package/dist/lib/components/ui/layout/doc/types.d.ts +6 -1
- package/dist/lib/components/ui/media/file-preview/file-preview-pdf.lazy.d.ts +8 -0
- package/dist/lib/components/ui/media/file-preview/file-preview.vue.d.ts +9 -0
- package/dist/lib/components/ui/media/file-preview/index.d.ts +3 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-body.vue.d.ts +21 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-card.vue.d.ts +15 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-download.vue.d.ts +11 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-media.vue.d.ts +17 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-pdf.vue.d.ts +21 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-status.vue.d.ts +22 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-text.vue.d.ts +16 -0
- package/dist/lib/components/ui/media/file-preview/types.d.ts +19 -0
- package/dist/lib/components/ui/media/file-preview/use-file-preview.d.ts +21 -0
- package/dist/lib/components/ui/media/file-preview/use-text-preview.d.ts +17 -0
- package/dist/lib/components/ui/media/files-form-field/files-form-field.vue.d.ts +29 -0
- package/dist/lib/components/ui/media/files-form-field/index.d.ts +2 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-canvas.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/index.d.ts +2 -0
- package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +6 -6
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-page.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-reader-body.vue.d.ts +2 -2
- package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.vue.d.ts +2 -2
- package/dist/lib/components/ui/media/upload/network-upload-field/use-image-preview.d.ts +9 -1
- package/dist/lib/components/ui/primitives/icon/icon-context.d.ts +1 -1
- package/dist/lib/components/ui/primitives/tabs/Tabs.vue.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +9 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-form-field.vue.d.ts +31 -5
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-items.d.ts +23 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete.vue.d.ts +48 -13
- package/dist/lib/components/ui/selection/autocomplete/filter-options.d.ts +2 -1
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-box.vue.d.ts +13 -1
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-list.vue.d.ts +17 -3
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-items.d.ts +15 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-open.d.ts +15 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-texts.d.ts +14 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +34 -0
- package/dist/lib/components/ui/selection/checkbox/Checkbox.vue.d.ts +21 -5
- package/dist/lib/components/ui/selection/checkbox/checkbox-form-field.vue.d.ts +17 -0
- package/dist/lib/components/ui/selection/checkbox/index.d.ts +2 -0
- package/dist/lib/components/ui/selection/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/select-field/select-field.vue.d.ts +16 -1
- package/dist/lib/components/ui/selection/select-field/select-form-field.vue.d.ts +16 -2
- package/dist/lib/components/ui/selection/tree-select-field/index.d.ts +3 -0
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-panel.vue.d.ts +27 -0
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger.vue.d.ts +28 -0
- package/dist/lib/components/ui/selection/tree-select-field/tree-select-field.vue.d.ts +8 -0
- package/dist/lib/components/ui/selection/tree-select-field/tree-select-form-field.vue.d.ts +8 -0
- package/dist/lib/components/ui/selection/tree-select-field/tree-select.utils.d.ts +29 -0
- package/dist/lib/components/ui/selection/tree-select-field/types.d.ts +28 -0
- package/dist/lib/components/ui/selection/tree-select-field/use-tree-select-field.d.ts +19 -0
- package/dist/lib/components/ui/widgets/charts/chart-container.vue.d.ts +1 -1
- package/dist/lib/components/ui/widgets/code-editor/code-editor-form-field.vue.d.ts +13 -0
- package/dist/lib/components/ui/widgets/code-editor/code-editor-options.d.ts +4 -1
- package/dist/lib/components/ui/widgets/code-editor/code-editor.vue.d.ts +7 -0
- package/dist/lib/components/ui/widgets/code-editor/index.d.ts +2 -0
- package/dist/lib/components/ui/widgets/code-editor/monaco-editor.vue.d.ts +3 -0
- package/dist/lib/i18n/resources/en/en.d.ts +40 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +43 -3
- package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +43 -3
- package/dist/lib/i18n/resources/resources.d.ts +80 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib.js +2 -2
- package/dist/main.js +17 -17
- package/dist/map.js +4 -4
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-oz9wdBhB.js → pdf-outline-sidebar-jJfhNjnN.js} +2 -2
- package/dist/{pdf-page-0rlq1Lo6.js → pdf-page-BW1hXzPu.js} +1 -1
- package/dist/{pdf-page-list-DfhjNHoI.js → pdf-page-list-D277RtWS.js} +2 -2
- package/dist/{pdf-reader-Dr8RVcs4.js → pdf-reader-BReUTsn_.js} +73 -71
- package/dist/{pdf-sidebar-VXPQbC_R.js → pdf-sidebar-Bk6PowY1.js} +3 -3
- package/dist/{pdf-thumbnail-sidebar-BpgXrVBj.js → pdf-thumbnail-sidebar-BcNDFsks.js} +3 -3
- package/dist/{pdf-toolbar-B6gRRcsv.js → pdf-toolbar-CHjaMhH9.js} +4 -4
- package/dist/pdf.js +2 -2
- package/dist/{sortable-provider-oEVjQiCl.js → sortable-provider-C83VBfGl.js} +2 -2
- package/dist/{stored-language-rjOMJkyX.js → stored-language-CC_vdcCN.js} +90 -6
- package/dist/{stx-player-DNADkQ31.js → stx-player-BMQ1D2Li.js} +20 -20
- package/dist/{translator-BCSJSO1-.js → translator-B-X_1taI.js} +1 -1
- package/dist/{use-heading-spy-d50_nxgR.js → use-heading-spy-C_ySuvTl.js} +1 -1
- package/dist/{use-material-translation-C5zPFhbk.js → use-material-translation-B6sIk0mF.js} +3 -3
- package/docs/components/README.md +2 -1
- package/docs/components/buttons-and-actions.md +19 -3
- package/docs/components/data-display.md +65 -11
- package/docs/components/data-table-filter-and-lists.md +94 -8
- package/docs/components/date-and-time.md +116 -9
- package/docs/components/feedback-and-status.md +57 -5
- package/docs/components/form-fields.md +21 -9
- package/docs/components/media-and-files.md +120 -6
- package/docs/components/navigation-and-layout.md +68 -7
- package/docs/components/primitives.md +25 -6
- package/docs/components/rich-widgets.md +21 -3
- package/docs/components/selection-and-choice.md +151 -22
- package/docs/guides/forms.md +16 -8
- package/docs/guides/i18n.md +50 -6
- package/docs/guides/ssr.md +2 -0
- package/docs/previews/buttons-actions-copybutton.webp +0 -0
- package/docs/previews/data-table-filter-lists-pagination.webp +0 -0
- package/docs/previews/date-time-daterangefield.webp +0 -0
- package/docs/previews/form-fields-slider.webp +0 -0
- package/docs/previews/media-files-filepreview.webp +0 -0
- package/docs/previews/navigation-layout-stepper.webp +0 -0
- package/docs/previews/selection-choice-checkbox.webp +0 -0
- package/docs/previews/selection-choice-treeselectfield.webp +0 -0
- package/docs/roadmap.md +47 -1
- package/docs/troubleshooting.md +213 -0
- package/lib/nuxt/component-names.ts +16 -0
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
3
|
-
import {
|
|
4
|
-
import { Primitive as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { createSharedComposable as
|
|
2
|
+
import { t } from "./use-material-translation-B6sIk0mF.js";
|
|
3
|
+
import { Comment as n, Text as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, inject as p, isVNode as m, mergeProps as h, normalizeClass as g, normalizeProps as _, openBlock as v, provide as y, renderSlot as b, shallowRef as x, toDisplayString as S, unref as C, useAttrs as w, useSlots as T, withCtx as E } from "vue";
|
|
4
|
+
import { Primitive as D, TooltipArrow as O, TooltipContent as k, TooltipPortal as A, TooltipProvider as j, TooltipRoot as M, TooltipTrigger as N, useForwardPropsEmits as P } from "reka-ui";
|
|
5
|
+
import { cva as F } from "class-variance-authority";
|
|
6
|
+
import { createSharedComposable as I, defaultDocument as L, reactiveOmit as R, useEventListener as z } from "@vueuse/core";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region lib/components/ui/feedback/spinner/spinner.variants.ts
|
|
9
|
-
var
|
|
9
|
+
var B = F("transition-all duration-500", {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
1: "",
|
|
@@ -67,7 +67,7 @@ var P = k("transition-all duration-500", {
|
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
variant: "1",
|
|
70
|
-
color: "
|
|
70
|
+
color: "light",
|
|
71
71
|
class: "border-white/10 border-t-white"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
@@ -191,11 +191,11 @@ var P = k("transition-all duration-500", {
|
|
|
191
191
|
class: "stroke-white"
|
|
192
192
|
}
|
|
193
193
|
]
|
|
194
|
-
}),
|
|
194
|
+
}), V = [
|
|
195
195
|
"data-variant",
|
|
196
196
|
"data-color",
|
|
197
197
|
"aria-label"
|
|
198
|
-
],
|
|
198
|
+
], H = ["data-variant", "data-color"], U = /* @__PURE__ */ d({
|
|
199
199
|
__name: "spinner",
|
|
200
200
|
props: {
|
|
201
201
|
variant: { default: "1" },
|
|
@@ -210,7 +210,7 @@ var P = k("transition-all duration-500", {
|
|
|
210
210
|
},
|
|
211
211
|
setup(n) {
|
|
212
212
|
let r = n, { t: i } = t();
|
|
213
|
-
return (t,
|
|
213
|
+
return (t, a) => n.variant === "4" ? (v(), s("svg", {
|
|
214
214
|
key: 0,
|
|
215
215
|
viewBox: "0 0 800 800",
|
|
216
216
|
"data-slot": "spinner",
|
|
@@ -218,10 +218,10 @@ var P = k("transition-all duration-500", {
|
|
|
218
218
|
"data-color": n.color,
|
|
219
219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
220
220
|
role: "img",
|
|
221
|
-
"aria-label":
|
|
222
|
-
class:
|
|
223
|
-
}, [
|
|
224
|
-
class:
|
|
221
|
+
"aria-label": C(i)("material.spinner.loading", "Loading..."),
|
|
222
|
+
class: g(C(e)("size-14", r.class))
|
|
223
|
+
}, [c("circle", {
|
|
224
|
+
class: g(["spin2", C(B)({
|
|
225
225
|
variant: n.variant,
|
|
226
226
|
color: n.color
|
|
227
227
|
})]),
|
|
@@ -232,18 +232,18 @@ var P = k("transition-all duration-500", {
|
|
|
232
232
|
"stroke-width": "50",
|
|
233
233
|
"stroke-dasharray": "700 1400",
|
|
234
234
|
"stroke-linecap": "round"
|
|
235
|
-
}, null, 2)], 10,
|
|
235
|
+
}, null, 2)], 10, V)) : (v(), s("div", {
|
|
236
236
|
key: 1,
|
|
237
237
|
"data-slot": "spinner",
|
|
238
238
|
"data-variant": n.variant,
|
|
239
239
|
"data-color": n.color,
|
|
240
|
-
class:
|
|
240
|
+
class: g(C(e)("size-12 border-[2px] rounded-full animate-spin", C(B)({
|
|
241
241
|
variant: n.variant,
|
|
242
242
|
color: n.color
|
|
243
243
|
}), r.class))
|
|
244
|
-
}, null, 10,
|
|
244
|
+
}, null, 10, H));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), W = /* @__PURE__ */ d({
|
|
247
247
|
__name: "Tooltip",
|
|
248
248
|
props: {
|
|
249
249
|
defaultOpen: { type: Boolean },
|
|
@@ -256,29 +256,29 @@ var P = k("transition-all duration-500", {
|
|
|
256
256
|
},
|
|
257
257
|
emits: ["update:open"],
|
|
258
258
|
setup(e, { emit: t }) {
|
|
259
|
-
let n =
|
|
260
|
-
return (e, t) => (
|
|
261
|
-
default:
|
|
259
|
+
let n = P(e, t);
|
|
260
|
+
return (e, t) => (v(), a(C(M), h({ "data-slot": "tooltip" }, C(n)), {
|
|
261
|
+
default: E((t) => [b(e.$slots, "default", _(f(t)))]),
|
|
262
262
|
_: 3
|
|
263
263
|
}, 16));
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), G = /* @__PURE__ */ new Set([
|
|
266
266
|
"VIDEO",
|
|
267
267
|
"IFRAME",
|
|
268
268
|
"CANVAS",
|
|
269
269
|
"IMG",
|
|
270
270
|
"EMBED"
|
|
271
271
|
]);
|
|
272
|
-
function
|
|
272
|
+
function K(e) {
|
|
273
273
|
let t = e?.fullscreenElement;
|
|
274
|
-
return !t || typeof HTMLElement > "u" || !(t instanceof HTMLElement) ||
|
|
274
|
+
return !t || typeof HTMLElement > "u" || !(t instanceof HTMLElement) || G.has(t.tagName) ? null : t;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
let e =
|
|
278
|
-
return
|
|
279
|
-
e.value =
|
|
276
|
+
var q = I(() => {
|
|
277
|
+
let e = x(K(L));
|
|
278
|
+
return z(L, "fullscreenchange", () => {
|
|
279
|
+
e.value = K(L);
|
|
280
280
|
}), e;
|
|
281
|
-
}),
|
|
281
|
+
}), J = /* @__PURE__ */ d({
|
|
282
282
|
inheritAttrs: !1,
|
|
283
283
|
__name: "TooltipContent",
|
|
284
284
|
props: {
|
|
@@ -309,19 +309,19 @@ var V = A(() => {
|
|
|
309
309
|
},
|
|
310
310
|
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
311
311
|
setup(t, { emit: n }) {
|
|
312
|
-
let
|
|
313
|
-
return (n,
|
|
314
|
-
default:
|
|
315
|
-
...
|
|
312
|
+
let r = t, i = n, o = q(), s = P(R(r, "class", "to"), i);
|
|
313
|
+
return (n, i) => (v(), a(C(A), { to: t.to ?? C(o) ?? void 0 }, {
|
|
314
|
+
default: E(() => [u(C(k), h({ "data-slot": "tooltip-content" }, {
|
|
315
|
+
...C(s),
|
|
316
316
|
...n.$attrs
|
|
317
|
-
}, { class:
|
|
318
|
-
default:
|
|
317
|
+
}, { class: C(e)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance", r.class) }), {
|
|
318
|
+
default: E(() => [b(n.$slots, "default"), u(C(O), { class: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-xs" })]),
|
|
319
319
|
_: 3
|
|
320
320
|
}, 16, ["class"])]),
|
|
321
321
|
_: 3
|
|
322
322
|
}, 8, ["to"]));
|
|
323
323
|
}
|
|
324
|
-
}),
|
|
324
|
+
}), Y = /* @__PURE__ */ d({
|
|
325
325
|
__name: "TooltipProvider",
|
|
326
326
|
props: {
|
|
327
327
|
delayDuration: { default: 0 },
|
|
@@ -334,12 +334,12 @@ var V = A(() => {
|
|
|
334
334
|
},
|
|
335
335
|
setup(e) {
|
|
336
336
|
let t = e;
|
|
337
|
-
return (e, n) => (
|
|
338
|
-
default:
|
|
337
|
+
return (e, n) => (v(), a(C(j), _(f(t)), {
|
|
338
|
+
default: E(() => [b(e.$slots, "default")]),
|
|
339
339
|
_: 3
|
|
340
340
|
}, 16));
|
|
341
341
|
}
|
|
342
|
-
}),
|
|
342
|
+
}), X = /* @__PURE__ */ d({
|
|
343
343
|
__name: "TooltipTrigger",
|
|
344
344
|
props: {
|
|
345
345
|
reference: {},
|
|
@@ -348,12 +348,12 @@ var V = A(() => {
|
|
|
348
348
|
},
|
|
349
349
|
setup(e) {
|
|
350
350
|
let t = e;
|
|
351
|
-
return (e, n) => (
|
|
352
|
-
default:
|
|
351
|
+
return (e, n) => (v(), a(C(N), h({ "data-slot": "tooltip-trigger" }, t), {
|
|
352
|
+
default: E(() => [b(e.$slots, "default")]),
|
|
353
353
|
_: 3
|
|
354
354
|
}, 16));
|
|
355
355
|
}
|
|
356
|
-
}),
|
|
356
|
+
}), Z = Symbol("named-control"), Q = F("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error px-4 py-2 has-[>svg]:px-3", {
|
|
357
357
|
variants: {
|
|
358
358
|
variant: {
|
|
359
359
|
filled: "shadow-xs",
|
|
@@ -376,10 +376,10 @@ var V = A(() => {
|
|
|
376
376
|
xs: "h-6 gap-1 rounded-full px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
377
377
|
sm: "h-8 rounded-full gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
378
378
|
lg: "h-10 rounded-full px-6 has-[>svg]:px-4",
|
|
379
|
-
icon: "size-9 px-0 py-0",
|
|
380
|
-
"icon-xs": "size-6 rounded-full px-0 py-0 [&_svg:not([class*='size-'])]:size-3",
|
|
381
|
-
"icon-sm": "size-8 px-0 py-0",
|
|
382
|
-
"icon-lg": "size-10 px-0 py-0"
|
|
379
|
+
icon: "size-9 px-0 py-0 has-[>svg]:px-0",
|
|
380
|
+
"icon-xs": "size-6 rounded-full px-0 py-0 has-[>svg]:px-0 [&_svg:not([class*='size-'])]:size-3",
|
|
381
|
+
"icon-sm": "size-8 px-0 py-0 has-[>svg]:px-0",
|
|
382
|
+
"icon-lg": "size-10 px-0 py-0 has-[>svg]:px-0"
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
385
|
defaultVariants: {
|
|
@@ -528,7 +528,28 @@ var V = A(() => {
|
|
|
528
528
|
class: "text-foreground [&_svg]:data-[slot=icon]:text-foreground hover:bg-foreground/10 active:bg-muted focus:bg-foreground/15"
|
|
529
529
|
}
|
|
530
530
|
]
|
|
531
|
-
})
|
|
531
|
+
});
|
|
532
|
+
//#endregion
|
|
533
|
+
//#region lib/components/ui/actions/button/has-text-content.ts
|
|
534
|
+
function $(e) {
|
|
535
|
+
if (e == null || typeof e == "boolean") return !1;
|
|
536
|
+
if (typeof e == "string" || typeof e == "number") return String(e).trim() !== "";
|
|
537
|
+
if (Array.isArray(e)) return e.some($);
|
|
538
|
+
if (!m(e) || e.type === n) return !1;
|
|
539
|
+
if (e.type === r) return String(e.children ?? "").trim() !== "";
|
|
540
|
+
if (ee(e.props?.["aria-hidden"] ?? e.props?.ariaHidden)) return !1;
|
|
541
|
+
let { children: t } = e;
|
|
542
|
+
if (typeof t == "string") return t.trim() !== "";
|
|
543
|
+
if (Array.isArray(t)) return $(t);
|
|
544
|
+
let i = t?.default;
|
|
545
|
+
return typeof i == "function" && $(i());
|
|
546
|
+
}
|
|
547
|
+
function ee(e) {
|
|
548
|
+
return e === "" || !!e && e !== "false";
|
|
549
|
+
}
|
|
550
|
+
//#endregion
|
|
551
|
+
//#region lib/components/ui/actions/button/Button.vue
|
|
552
|
+
var te = /* @__PURE__ */ d({
|
|
532
553
|
inheritAttrs: !1,
|
|
533
554
|
__name: "Button",
|
|
534
555
|
props: {
|
|
@@ -550,36 +571,38 @@ var V = A(() => {
|
|
|
550
571
|
tooltip: {}
|
|
551
572
|
},
|
|
552
573
|
setup(t) {
|
|
553
|
-
let
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
574
|
+
let n = t, r = w(), s = T(), c = p(Z, void 0);
|
|
575
|
+
y(Z, i(() => !!c?.value || !!(r["aria-label"] || r["aria-labelledby"]) || $(s.default?.())));
|
|
576
|
+
let d = i(() => !!(n.disabled || n.loading)), f = i(() => n.as !== "button" || n.asChild ? r.type : r.type ?? "button"), m = i(() => !!n.size?.startsWith("icon")), _ = i(() => e("justify-center duration-500", !m.value && "w-max truncate line-clamp-1 text-ellipsis", Q({
|
|
577
|
+
variant: n.variant,
|
|
578
|
+
color: n.color,
|
|
579
|
+
size: n.size
|
|
580
|
+
}), n.class));
|
|
581
|
+
return (n, r) => t.tooltip ? (v(), a(C(Y), { key: 0 }, {
|
|
582
|
+
default: E(() => [u(C(W), null, {
|
|
583
|
+
default: E(() => [u(C(X), { "as-child": "" }, {
|
|
584
|
+
default: E(() => [u(C(D), h(n.$attrs, {
|
|
562
585
|
"data-slot": n.$attrs["data-slot"] ?? "button",
|
|
563
586
|
"data-variant": t.variant,
|
|
564
587
|
"data-color": t.color,
|
|
565
588
|
"data-size": t.size,
|
|
566
589
|
as: t.as,
|
|
567
590
|
"as-child": t.asChild,
|
|
568
|
-
type:
|
|
569
|
-
disabled:
|
|
591
|
+
type: f.value,
|
|
592
|
+
disabled: d.value,
|
|
570
593
|
"aria-busy": t.loading || void 0,
|
|
571
|
-
class:
|
|
594
|
+
class: _.value
|
|
572
595
|
}), {
|
|
573
|
-
default:
|
|
596
|
+
default: E(() => [t.loading ? (v(), a(U, {
|
|
574
597
|
key: 0,
|
|
575
598
|
variant: t.spinnerVariant,
|
|
576
599
|
color: t.variant === "filled" ? "light" : t.color,
|
|
577
|
-
class:
|
|
600
|
+
class: g(C(e)("starting:scale-0 duration-500", t.spinnerVariant === "4" ? "size-7.5" : "size-4.5"))
|
|
578
601
|
}, null, 8, [
|
|
579
602
|
"variant",
|
|
580
603
|
"color",
|
|
581
604
|
"class"
|
|
582
|
-
])) :
|
|
605
|
+
])) : o("", !0), b(n.$slots, "default")]),
|
|
583
606
|
_: 3
|
|
584
607
|
}, 16, [
|
|
585
608
|
"data-slot",
|
|
@@ -594,35 +617,35 @@ var V = A(() => {
|
|
|
594
617
|
"class"
|
|
595
618
|
])]),
|
|
596
619
|
_: 3
|
|
597
|
-
}),
|
|
598
|
-
default:
|
|
620
|
+
}), u(C(J), null, {
|
|
621
|
+
default: E(() => [l(S(t.tooltip), 1)]),
|
|
599
622
|
_: 1
|
|
600
623
|
})]),
|
|
601
624
|
_: 3
|
|
602
625
|
})]),
|
|
603
626
|
_: 3
|
|
604
|
-
})) : (
|
|
627
|
+
})) : (v(), a(C(D), h({ key: 1 }, n.$attrs, {
|
|
605
628
|
"data-slot": n.$attrs["data-slot"] ?? "button",
|
|
606
629
|
"data-variant": t.variant,
|
|
607
630
|
"data-color": t.color,
|
|
608
631
|
"data-size": t.size,
|
|
609
632
|
as: t.as,
|
|
610
633
|
"as-child": t.asChild,
|
|
611
|
-
type:
|
|
612
|
-
disabled:
|
|
634
|
+
type: f.value,
|
|
635
|
+
disabled: d.value,
|
|
613
636
|
"aria-busy": t.loading || void 0,
|
|
614
|
-
class:
|
|
637
|
+
class: _.value
|
|
615
638
|
}), {
|
|
616
|
-
default:
|
|
639
|
+
default: E(() => [t.loading ? (v(), a(U, {
|
|
617
640
|
key: 0,
|
|
618
641
|
variant: t.spinnerVariant,
|
|
619
642
|
color: t.variant === "filled" ? "light" : t.color,
|
|
620
|
-
class:
|
|
643
|
+
class: g(C(e)("starting:scale-0 duration-500", t.spinnerVariant === "4" ? "size-7.5" : "size-4.5"))
|
|
621
644
|
}, null, 8, [
|
|
622
645
|
"variant",
|
|
623
646
|
"color",
|
|
624
647
|
"class"
|
|
625
|
-
])) :
|
|
648
|
+
])) : o("", !0), b(n.$slots, "default")]),
|
|
626
649
|
_: 3
|
|
627
650
|
}, 16, [
|
|
628
651
|
"data-slot",
|
|
@@ -639,4 +662,4 @@ var V = A(() => {
|
|
|
639
662
|
}
|
|
640
663
|
});
|
|
641
664
|
//#endregion
|
|
642
|
-
export {
|
|
665
|
+
export { Y as a, W as c, X as i, U as l, Q as n, J as o, Z as r, q as s, te as t, B as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
3
|
-
import { t as n } from "./Button-
|
|
2
|
+
import { t } from "./use-material-translation-B6sIk0mF.js";
|
|
3
|
+
import { t as n } from "./Button-C1aaI0Gw.js";
|
|
4
4
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, isRef as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, useId as y, useTemplateRef as b, vModelText as x, withCtx as S, withDirectives as C } from "vue";
|
|
5
5
|
import { X as w } from "@lucide/vue";
|
|
6
6
|
import { DialogClose as T, DialogContent as E, DialogDescription as D, DialogOverlay as O, DialogPortal as k, DialogRoot as ee, DialogTitle as te, DialogTrigger as A, HoverCardContent as j, HoverCardPortal as M, HoverCardRoot as N, HoverCardTrigger as P, Label as F, useForwardProps as I, useForwardPropsEmits as L } from "reka-ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
-
import { t as a } from "./Button-
|
|
5
|
-
import { t as o } from "./icon-button-
|
|
2
|
+
import { gr as t, mr as n, pr as r } from "./components-DRBKkOqk.js";
|
|
3
|
+
import { t as i } from "./use-material-translation-B6sIk0mF.js";
|
|
4
|
+
import { t as a } from "./Button-C1aaI0Gw.js";
|
|
5
|
+
import { t as o } from "./icon-button-B2FQtIHS.js";
|
|
6
6
|
import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderSlot as _, shallowRef as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
7
7
|
import { Pause as S, Play as C } from "@lucide/vue";
|
|
8
8
|
//#region lib/components/ui/media/camera/camera-content.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -58,8 +58,8 @@ var w = { class: "grid gap-2" }, T = { class: "flex justify-end" }, E = ["src",
|
|
|
58
58
|
}), O = /* @__PURE__ */ p({
|
|
59
59
|
__name: "camera-provider",
|
|
60
60
|
setup(e) {
|
|
61
|
-
let r = g(null), i = g(null), a = v(null), o =
|
|
62
|
-
return
|
|
61
|
+
let r = g(null), i = g(null), a = v(null), o = t();
|
|
62
|
+
return n({
|
|
63
63
|
videoRef: r,
|
|
64
64
|
canvasRef: i,
|
|
65
65
|
streamRef: a,
|