vlite3 1.5.5 → 1.5.6

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.
Files changed (72) hide show
  1. package/README.md +34 -0
  2. package/VLiteIconsVite.d.ts +36 -0
  3. package/components/AppShell/AppShell.vue.d.ts +1 -1
  4. package/components/AppShell/AppShellLayoutDashboard.vue.js +3 -2
  5. package/components/AppShell/AppShellLayoutDock.vue.js +3 -2
  6. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +28 -27
  7. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +3 -2
  8. package/components/AsyncSelect/createAsyncSelect.d.ts +4 -4
  9. package/components/AsyncSelect/createAsyncSelect.js +3 -2
  10. package/components/BackButton.vue.d.ts +1 -1
  11. package/components/CategoryManager/CategoryManager.vue2.js +16 -16
  12. package/components/CategoryManager/CategoryNode.vue.js +16 -16
  13. package/components/CategoryMenu/CategoryMenu.vue.js +9 -8
  14. package/components/Chart/BarChart.vue.d.ts +1 -1
  15. package/components/Chart/GanttChart.vue.d.ts +1 -1
  16. package/components/Chart/LineChart.vue.d.ts +1 -1
  17. package/components/Chart/TimelineChart.vue.d.ts +1 -1
  18. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  19. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  20. package/components/ConfirmationModal.vue.d.ts +4 -0
  21. package/components/ConfirmationModal.vue.js +47 -39
  22. package/components/DataTable/DataTable.vue.js +319 -294
  23. package/components/DataTable/DataTableRow.vue.d.ts +2 -0
  24. package/components/DataTable/DataTableRow.vue.js +2 -2
  25. package/components/DataTable/DataTableRow.vue2.js +57 -54
  26. package/components/DataTable/types.d.ts +2 -0
  27. package/components/DatePicker.vue.js +5 -4
  28. package/components/Empty/Empty.vue.js +3 -2
  29. package/components/ExportData/ExportData.vue.d.ts +1 -1
  30. package/components/Form/Form.vue2.js +44 -43
  31. package/components/Form/FormField.vue.js +24 -24
  32. package/components/Heatmap/Heatmap.vue2.js +3 -2
  33. package/components/Icon.vue.d.ts +3 -2
  34. package/components/Icon.vue.js +22 -12
  35. package/components/IconPicker.vue.js +5 -133
  36. package/components/IconPicker.vue2.js +218 -2
  37. package/components/ImportData/ImportData.vue.js +3 -2
  38. package/components/ImportData/ImportStep2.vue.js +3 -2
  39. package/components/Kanban/KanbanBoard.vue2.js +4 -2
  40. package/components/List/utils.js +5 -4
  41. package/components/Masonry/Masonry.vue2.js +14 -13
  42. package/components/Navbar/Navbar.vue.d.ts +1 -1
  43. package/components/Price/Price.vue.js +13 -12
  44. package/components/Rating/Rating.vue.js +2 -2
  45. package/components/Rating/Rating.vue2.js +41 -41
  46. package/components/Rating/ReviewSummary.vue.js +20 -20
  47. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  48. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  49. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  50. package/components/Screen/ScreenFilter.vue.js +7 -5
  51. package/components/Screen/components/ScreenExportModal.vue.d.ts +2 -2
  52. package/components/Stats/StatItem.vue.js +3 -2
  53. package/components/StatusChip/StatusChip.vue.js +6 -5
  54. package/components/Workbook/Sheet.vue.js +11 -11
  55. package/core/config.d.ts +28 -0
  56. package/core/config.js +23 -21
  57. package/core/index.js +18 -17
  58. package/icons/IconRegistry.d.ts +38 -0
  59. package/icons/IconRegistry.js +166 -0
  60. package/icons/IconTypes.d.ts +37 -0
  61. package/index.d.ts +2 -0
  62. package/index.js +473 -457
  63. package/package.json +15 -3
  64. package/style.css +1 -1
  65. package/types/config.type.d.ts +8 -1
  66. package/utils/functions.js +44 -43
  67. package/utils/index.d.ts +1 -0
  68. package/vite.d.ts +6 -0
  69. package/vite.js +223 -0
  70. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
  71. /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
  72. /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
@@ -1,135 +1,7 @@
1
- import { defineComponent as g, ref as v, computed as w, openBlock as k, createBlock as y, unref as n, withCtx as a, renderSlot as c, createVNode as s, mergeProps as P } from "vue";
2
- import C from "./Dropdown/Dropdown.vue.js";
3
- import "@iconify/vue";
4
- import { $t as d } from "../utils/i18n.js";
5
- /* empty css */
6
- /* empty css */
7
- /* empty css */
8
- import I from "./Button.vue.js";
9
- import S from "iconify-icon-picker";
10
- import "iconify-icon-picker/style.css";
11
- const A = /* @__PURE__ */ g({
12
- __name: "IconPicker",
13
- props: {
14
- btnProps: {},
15
- value: { default: "tabler:icons-filled" },
16
- position: { default: "bottom" },
17
- placeholder: {},
18
- placeholderI18n: {}
19
- },
20
- emits: ["onSelect", "onTrigger", "onClose"],
21
- setup(o, { emit: m }) {
22
- const t = o, i = m, u = v(!1), l = () => {
23
- u.value = !1;
24
- }, p = (e, r) => {
25
- i("onSelect", e, r), l();
26
- }, h = w(() => {
27
- if (t.placeholderI18n) return d(t.placeholderI18n);
28
- if (t.placeholder) return t.placeholder;
29
- const e = d("vlite.iconPicker.search");
30
- return e !== "vlite.iconPicker.search" ? e : "Search 1000+ icons...";
31
- }), f = [
32
- "ri:alert-line",
33
- "heroicons:arrow-right",
34
- "lucide:arrow-left",
35
- "tabler:arrow-down",
36
- "feather:arrow-up",
37
- "tabler:battery",
38
- "lucide:bookmark",
39
- "flowbite:briefcase-outline",
40
- "heroicons:calendar",
41
- "material-symbols:menu-rounded",
42
- "lucide:chevron-down",
43
- "lucide:chevron-up",
44
- "lucide:chevron-left",
45
- "lucide:chevron-right",
46
- "tabler:aperture",
47
- "feather:archive",
48
- "mdi:cart-outline",
49
- "mdi:settings",
50
- "tabler:dots",
51
- "mingcute:check-fill",
52
- "mdi:user",
53
- "feather:power",
54
- "lucide:phone",
55
- "tabler:dots-vertical",
56
- "material-symbols:home-outline-rounded",
57
- "mdi:microphone",
58
- "bytesize:message",
59
- "feather:activity",
60
- "mdi:brush",
61
- "tabler:eraser",
62
- "mdi:database",
63
- "heroicons:pencil",
64
- "mdi:crop",
65
- "heroicons:magnifying-glass-plus",
66
- "heroicons:magnifying-glass-minus",
67
- "tabler:corner-up-left",
68
- "heroicons:arrow-path",
69
- "mi:layers",
70
- "mdi:palette",
71
- "mdi:eye",
72
- "mdi:eye-off",
73
- "heroicons:arrows-pointing-in",
74
- "tabler:scissors",
75
- "heroicons:photo",
76
- "feather:grid",
77
- "lucide:ruler",
78
- "lucide:alert-octagon",
79
- "tabler:battery-4",
80
- "lucide:bookmark-minus",
81
- "heroicons:calendar",
82
- "tabler:share",
83
- "heroicons:power",
84
- "feather:phone",
85
- "tabler:microphone-2",
86
- "lucide:bar-chart",
87
- "famicons:brush-outline",
88
- "mdi:eraser",
89
- "fa6-regular:pen-to-square",
90
- "tabler:refresh",
91
- "lucide:palette",
92
- "lucide:move-diagonal",
93
- "feather:scissors",
94
- "tabler:rotate-clockwise",
95
- "lucide:type",
96
- "heroicons:photo",
97
- "feather:grid",
98
- "tabler:ruler-2",
99
- "material-symbols:download-rounded"
100
- ];
101
- return (e, r) => (k(), y(n(C), {
102
- className: "max-h-[392px]! min-w-[250px]",
103
- onOnClose: r[1] || (r[1] = (b) => i("onClose")),
104
- position: o.position
105
- }, {
106
- trigger: a(() => [
107
- c(e.$slots, "default", {}, () => [
108
- s(I, P({
109
- icon: o.value,
110
- rounded: "md",
111
- variant: "outline",
112
- ...o.btnProps || {}
113
- }, {
114
- onClick: r[0] || (r[0] = (b) => i("onTrigger"))
115
- }), null, 16)
116
- ])
117
- ]),
118
- menu: a(() => [
119
- c(e.$slots, "menu-top", { close: l }),
120
- s(n(S), {
121
- id: "icon-picker",
122
- placeholder: h.value,
123
- "items-per-page": 35,
124
- value: o.value,
125
- onOnSelect: p,
126
- defaultIcons: f
127
- }, null, 8, ["placeholder", "value"])
128
- ]),
129
- _: 3
130
- }, 8, ["position"]));
131
- }
132
- });
1
+ import o from "./IconPicker.vue2.js";
2
+ /* empty css */
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-202ce786"]]);
133
5
  export {
134
- A as default
6
+ m as default
135
7
  };
@@ -1,4 +1,220 @@
1
- import f from "./IconPicker.vue.js";
1
+ import { defineComponent as q, ref as b, useId as z, computed as a, watch as _, openBlock as i, createBlock as S, unref as $, withCtx as x, renderSlot as L, createElementBlock as s, createElementVNode as u, withDirectives as E, vModelText as U, Fragment as A, renderList as F, normalizeClass as Q, createVNode as N, toDisplayString as g, createCommentVNode as j, mergeProps as G } from "vue";
2
+ import H from "./Dropdown/Dropdown.vue.js";
3
+ import J from "./Icon.vue.js";
4
+ import { $t as V } from "../utils/i18n.js";
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ import K from "./Button.vue.js";
9
+ import R from "iconify-icon-picker";
10
+ import "iconify-icon-picker/style.css";
11
+ import { getVLiteIconConfig as O, listVLiteIcons as W, renderVLiteIconSvg as X } from "../icons/IconRegistry.js";
12
+ const Y = {
13
+ key: 0,
14
+ class: "vlite-offline-icon-picker",
15
+ "aria-label": "Local icon picker"
16
+ }, Z = ["placeholder"], ee = {
17
+ key: 0,
18
+ class: "vlite-offline-icon-picker__grid",
19
+ role: "listbox",
20
+ "aria-label": "Available local icons"
21
+ }, oe = ["aria-label", "aria-selected", "title", "onClick"], te = {
22
+ key: 1,
23
+ class: "vlite-offline-icon-picker__empty",
24
+ role: "status"
25
+ }, le = {
26
+ key: 2,
27
+ class: "vlite-offline-icon-picker__pagination",
28
+ "aria-label": "Icon pages"
29
+ }, ie = ["disabled"], re = ["disabled"], c = 35, ge = /* @__PURE__ */ q({
30
+ __name: "IconPicker",
31
+ props: {
32
+ btnProps: {},
33
+ value: { default: "tabler:icons-filled" },
34
+ position: { default: "bottom" },
35
+ placeholder: {},
36
+ placeholderI18n: {}
37
+ },
38
+ emits: ["onSelect", "onTrigger", "onClose"],
39
+ setup(r, { emit: B }) {
40
+ const d = r, p = B, f = b(!1), m = b(""), l = b(1), k = `vlite-offline-icon-search-${z()}`, y = () => {
41
+ f.value = !1;
42
+ }, w = (e, o) => {
43
+ p("onSelect", e, o), y();
44
+ }, P = a(() => O().mode === "offline"), n = a(() => W()), h = a(() => {
45
+ const e = m.value.trim().toLowerCase().replace(/\s+/g, "-");
46
+ return e ? n.value.filter((o) => o.includes(e)) : n.value;
47
+ }), v = a(
48
+ () => Math.max(1, Math.ceil(h.value.length / c))
49
+ ), C = a(() => {
50
+ const e = (l.value - 1) * c;
51
+ return h.value.slice(e, e + c);
52
+ });
53
+ _([m, n], () => {
54
+ l.value = 1;
55
+ }), _(v, (e) => {
56
+ l.value > e && (l.value = e);
57
+ });
58
+ const D = (e) => {
59
+ w(e, X(e));
60
+ }, I = a(() => {
61
+ if (d.placeholderI18n) return V(d.placeholderI18n);
62
+ if (d.placeholder) return d.placeholder;
63
+ const e = V("vlite.iconPicker.search");
64
+ return e !== "vlite.iconPicker.search" ? e : P.value ? "Search local icons..." : "Search 1000+ icons...";
65
+ }), M = [
66
+ "ri:alert-line",
67
+ "heroicons:arrow-right",
68
+ "lucide:arrow-left",
69
+ "tabler:arrow-down",
70
+ "feather:arrow-up",
71
+ "tabler:battery",
72
+ "lucide:bookmark",
73
+ "flowbite:briefcase-outline",
74
+ "heroicons:calendar",
75
+ "material-symbols:menu-rounded",
76
+ "lucide:chevron-down",
77
+ "lucide:chevron-up",
78
+ "lucide:chevron-left",
79
+ "lucide:chevron-right",
80
+ "tabler:aperture",
81
+ "feather:archive",
82
+ "mdi:cart-outline",
83
+ "mdi:settings",
84
+ "tabler:dots",
85
+ "mingcute:check-fill",
86
+ "mdi:user",
87
+ "feather:power",
88
+ "lucide:phone",
89
+ "tabler:dots-vertical",
90
+ "material-symbols:home-outline-rounded",
91
+ "mdi:microphone",
92
+ "bytesize:message",
93
+ "feather:activity",
94
+ "mdi:brush",
95
+ "tabler:eraser",
96
+ "mdi:database",
97
+ "heroicons:pencil",
98
+ "mdi:crop",
99
+ "heroicons:magnifying-glass-plus",
100
+ "heroicons:magnifying-glass-minus",
101
+ "tabler:corner-up-left",
102
+ "heroicons:arrow-path",
103
+ "mi:layers",
104
+ "mdi:palette",
105
+ "mdi:eye",
106
+ "mdi:eye-off",
107
+ "heroicons:arrows-pointing-in",
108
+ "tabler:scissors",
109
+ "heroicons:photo",
110
+ "feather:grid",
111
+ "lucide:ruler",
112
+ "lucide:alert-octagon",
113
+ "tabler:battery-4",
114
+ "lucide:bookmark-minus",
115
+ "heroicons:calendar",
116
+ "tabler:share",
117
+ "heroicons:power",
118
+ "feather:phone",
119
+ "tabler:microphone-2",
120
+ "lucide:bar-chart",
121
+ "famicons:brush-outline",
122
+ "mdi:eraser",
123
+ "fa6-regular:pen-to-square",
124
+ "tabler:refresh",
125
+ "lucide:palette",
126
+ "lucide:move-diagonal",
127
+ "feather:scissors",
128
+ "tabler:rotate-clockwise",
129
+ "lucide:type",
130
+ "heroicons:photo",
131
+ "feather:grid",
132
+ "tabler:ruler-2",
133
+ "material-symbols:download-rounded"
134
+ ], T = a(() => O().mode !== "hybrid" || n.value.length === 0 ? M : n.value.slice(0, c));
135
+ return (e, o) => (i(), S($(H), {
136
+ "is-open": f.value,
137
+ "onUpdate:isOpen": o[4] || (o[4] = (t) => f.value = t),
138
+ className: "max-h-[392px]! min-w-[250px]",
139
+ onOnClose: o[5] || (o[5] = (t) => p("onClose")),
140
+ position: r.position
141
+ }, {
142
+ trigger: x(() => [
143
+ L(e.$slots, "default", {}, () => [
144
+ N(K, G({
145
+ icon: r.value,
146
+ rounded: "md",
147
+ variant: "outline",
148
+ ...r.btnProps || {}
149
+ }, {
150
+ onClick: o[0] || (o[0] = (t) => p("onTrigger"))
151
+ }), null, 16)
152
+ ], !0)
153
+ ]),
154
+ menu: x(() => [
155
+ L(e.$slots, "menu-top", { close: y }, void 0, !0),
156
+ P.value ? (i(), s("div", Y, [
157
+ u("label", {
158
+ class: "sr-only",
159
+ for: k
160
+ }, "Search local icons"),
161
+ E(u("input", {
162
+ id: k,
163
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => m.value = t),
164
+ type: "search",
165
+ autocomplete: "off",
166
+ placeholder: I.value,
167
+ class: "vlite-offline-icon-picker__search"
168
+ }, null, 8, Z), [
169
+ [U, m.value]
170
+ ]),
171
+ C.value.length ? (i(), s("div", ee, [
172
+ (i(!0), s(A, null, F(C.value, (t) => (i(), s("button", {
173
+ key: t,
174
+ type: "button",
175
+ role: "option",
176
+ "aria-label": t,
177
+ "aria-selected": t === r.value,
178
+ title: t,
179
+ class: Q(["vlite-offline-icon-picker__item", { "vlite-offline-icon-picker__item--selected": t === r.value }]),
180
+ onClick: (ae) => D(t)
181
+ }, [
182
+ N(J, {
183
+ icon: t,
184
+ class: "h-5 w-5",
185
+ "aria-hidden": "true"
186
+ }, null, 8, ["icon"])
187
+ ], 10, oe))), 128))
188
+ ])) : (i(), s("p", te, g(n.value.length === 0 ? "No local icons are registered." : "No local icons match your search."), 1)),
189
+ h.value.length > c ? (i(), s("nav", le, [
190
+ u("button", {
191
+ type: "button",
192
+ disabled: l.value === 1,
193
+ "aria-label": "Previous icon page",
194
+ onClick: o[2] || (o[2] = (t) => l.value -= 1)
195
+ }, " Previous ", 8, ie),
196
+ u("span", null, "Page " + g(l.value) + " of " + g(v.value), 1),
197
+ u("button", {
198
+ type: "button",
199
+ disabled: l.value === v.value,
200
+ "aria-label": "Next icon page",
201
+ onClick: o[3] || (o[3] = (t) => l.value += 1)
202
+ }, " Next ", 8, re)
203
+ ])) : j("", !0)
204
+ ])) : (i(), S($(R), {
205
+ key: 1,
206
+ id: "icon-picker",
207
+ placeholder: I.value,
208
+ "items-per-page": c,
209
+ value: r.value,
210
+ onOnSelect: w,
211
+ defaultIcons: T.value
212
+ }, null, 8, ["placeholder", "value", "defaultIcons"]))
213
+ ]),
214
+ _: 3
215
+ }, 8, ["is-open", "position"]));
216
+ }
217
+ });
2
218
  export {
3
- f as default
219
+ ge as default
4
220
  };
@@ -3,6 +3,7 @@ import me from "../Modal.vue.js";
3
3
  import I from "../Button.vue.js";
4
4
  import fe from "../Timeline/Timeline.vue.js";
5
5
  import "@iconify/vue";
6
+ import "../../icons/IconRegistry.js";
6
7
  import { $t as E } from "../../utils/i18n.js";
7
8
  /* empty css */
8
9
  import "../../core/config.js";
@@ -15,7 +16,7 @@ import { showToast as j } from "../../composables/useNotifications.js";
15
16
  const we = { class: "px-2" }, xe = { class: "min-h-[300px]" }, De = {
16
17
  key: 0,
17
18
  class: "mt-4 p-3 bg-destructive/10 border border-destructive/20 rounded-lg text-sm text-destructive"
18
- }, ke = { class: "list-disc pl-5 space-y-1" }, _e = { class: "flex items-center justify-between w-full" }, Ie = { key: 1 }, je = /* @__PURE__ */ ne({
19
+ }, ke = { class: "list-disc pl-5 space-y-1" }, _e = { class: "flex items-center justify-between w-full" }, Ie = { key: 1 }, Ae = /* @__PURE__ */ ne({
19
20
  __name: "ImportData",
20
21
  props: {
21
22
  title: { default: "Import Data" },
@@ -259,5 +260,5 @@ const we = { class: "px-2" }, xe = { class: "min-h-[300px]" }, De = {
259
260
  }
260
261
  });
261
262
  export {
262
- je as default
263
+ Ae as default
263
264
  };
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as V, ref as $, computed as a, openBlock as n, createElementBlock as r, createElementVNode as e, toDisplayString as c, Fragment as f, renderList as x, isMemoSame as B, normalizeClass as I, createBlock as O, unref as j, createCommentVNode as w, createVNode as z } from "vue";
2
2
  import A from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
+ import "../../icons/IconRegistry.js";
4
5
  import { $t as E } from "../../utils/i18n.js";
5
6
  /* empty css */
6
7
  /* empty css */
@@ -16,7 +17,7 @@ const R = { class: "space-y-5" }, U = { class: "text-sm text-muted-foreground" }
16
17
  }, st = { class: "import-td-action" }, ot = { class: "flex justify-center items-center h-full" }, it = {
17
18
  key: 0,
18
19
  class: "text-center text-sm text-warning font-medium p-4 bg-warning/10 rounded-lg border border-warning/20"
19
- }, gt = /* @__PURE__ */ V({
20
+ }, _t = /* @__PURE__ */ V({
20
21
  __name: "ImportStep2",
21
22
  props: {
22
23
  headers: {},
@@ -115,5 +116,5 @@ const R = { class: "space-y-5" }, U = { class: "text-sm text-muted-foreground" }
115
116
  }
116
117
  });
117
118
  export {
118
- gt as default
119
+ _t as default
119
120
  };
@@ -2,8 +2,10 @@ import { defineComponent as j, ref as z, watch as H, onMounted as J, computed as
2
2
  import { VueDraggable as q } from "vue-draggable-plus";
3
3
  import { useKanbanBoard as P } from "./useKanbanBoard.js";
4
4
  import "../../core/config.js";
5
+ import "../../icons/IconRegistry.js";
5
6
  import "dayjs";
6
7
  import { $t as Q } from "../../utils/i18n.js";
8
+ import "@vueuse/core";
7
9
  import W from "../Spinner/Spinner.vue.js";
8
10
  const X = { class: "flex items-center justify-between font-semibold text-foreground" }, Y = {
9
11
  key: 0,
@@ -15,7 +17,7 @@ const X = { class: "flex items-center justify-between font-semibold text-foregro
15
17
  }, _ = {
16
18
  key: 0,
17
19
  class: "py-4 flex justify-center shrink-0"
18
- }, S = "kanban-item--disabled", ie = /* @__PURE__ */ j({
20
+ }, S = "kanban-item--disabled", ce = /* @__PURE__ */ j({
19
21
  __name: "KanbanBoard",
20
22
  props: {
21
23
  column: {},
@@ -163,5 +165,5 @@ const X = { class: "flex items-center justify-between font-semibold text-foregro
163
165
  }
164
166
  });
165
167
  export {
166
- ie as default
168
+ ce as default
167
169
  };
@@ -1,9 +1,10 @@
1
1
  import "../../core/config.js";
2
+ import "../../icons/IconRegistry.js";
2
3
  import "dayjs";
3
- function c(e, r) {
4
- if (!(!e || !r))
5
- return e.includes(".") ? e.split(".").reduce((i, t) => i?.[t], r) : r[e];
4
+ function o(r, e) {
5
+ if (!(!r || !e))
6
+ return r.includes(".") ? r.split(".").reduce((i, t) => i?.[t], e) : e[r];
6
7
  }
7
8
  export {
8
- c as getObjectValue
9
+ o as getObjectValue
9
10
  };
@@ -2,7 +2,8 @@ import { defineComponent as B, ref as d, computed as m, onMounted as K, onUnmoun
2
2
  import { MASONRY_BREAKPOINTS as x } from "./types.js";
3
3
  import { debounce as A } from "../../utils/functions.js";
4
4
  import "../../core/config.js";
5
- const k = /* @__PURE__ */ B({
5
+ import "@vueuse/core";
6
+ const E = /* @__PURE__ */ B({
6
7
  __name: "Masonry",
7
8
  props: {
8
9
  data: {},
@@ -12,17 +13,17 @@ const k = /* @__PURE__ */ B({
12
13
  itemKey: { default: "id" }
13
14
  },
14
15
  setup(i) {
15
- const l = i, r = d(null), f = d(0), s = d(null), g = () => {
16
- r.value && (f.value = r.value.clientWidth);
16
+ const l = i, a = d(null), f = d(0), s = d(null), g = () => {
17
+ a.value && (f.value = a.value.clientWidth);
17
18
  }, b = m(() => {
18
19
  if (typeof l.cols == "number") return l.cols;
19
20
  const n = f.value;
20
21
  if (!n) return l.cols.default || 1;
21
22
  let o = l.cols.default || 1;
22
23
  const t = Object.keys(l.cols).map((e) => {
23
- let a = 0;
24
- return typeof e == "number" || !isNaN(Number(e)) ? a = Number(e) : e in x && (a = x[e]), { k: e, px: a, val: l.cols[e] };
25
- }).filter((e) => e.val !== void 0).sort((e, a) => e.px - a.px);
24
+ let r = 0;
25
+ return typeof e == "number" || !isNaN(Number(e)) ? r = Number(e) : e in x && (r = x[e]), { k: e, px: r, val: l.cols[e] };
26
+ }).filter((e) => e.val !== void 0).sort((e, r) => e.px - r.px);
26
27
  for (const e of t)
27
28
  n >= e.px && (o = e.val);
28
29
  return o || 1;
@@ -41,7 +42,7 @@ const k = /* @__PURE__ */ B({
41
42
  const t = o[0];
42
43
  t && (f.value = t.contentRect.width);
43
44
  }, 100);
44
- s.value = new ResizeObserver(n), r.value && s.value.observe(r.value);
45
+ s.value = new ResizeObserver(n), a.value && s.value.observe(a.value);
45
46
  }), O(() => {
46
47
  s.value && (s.value.disconnect(), s.value = null);
47
48
  });
@@ -51,7 +52,7 @@ const k = /* @__PURE__ */ B({
51
52
  };
52
53
  return (n, o) => (u(), w(z(i.tag), {
53
54
  ref_key: "containerRef",
54
- ref: r,
55
+ ref: a,
55
56
  class: "flex w-full",
56
57
  style: v({ gap: `${i.gap}px` })
57
58
  }, {
@@ -62,14 +63,14 @@ const k = /* @__PURE__ */ B({
62
63
  style: v({ gap: `${i.gap}px` }),
63
64
  role: "list"
64
65
  }, [
65
- (u(!0), c(p, null, y(t, (a, N) => (u(), c("div", {
66
- key: R(a, N),
66
+ (u(!0), c(p, null, y(t, (r, N) => (u(), c("div", {
67
+ key: R(r, N),
67
68
  class: "masonry-item",
68
69
  role: "listitem"
69
70
  }, [
70
71
  S(n.$slots, "default", {
71
- data: a.data,
72
- index: a.index,
72
+ data: r.data,
73
+ index: r.index,
73
74
  colIndex: e
74
75
  }, void 0, !0)
75
76
  ]))), 128))
@@ -80,5 +81,5 @@ const k = /* @__PURE__ */ B({
80
81
  }
81
82
  });
82
83
  export {
83
- k as default
84
+ E as default
84
85
  };
@@ -37,8 +37,8 @@ declare function __VLS_template(): {
37
37
  };
38
38
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
39
  declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{}>, {
40
- class: string;
41
40
  height: string;
41
+ class: string;
42
42
  border: boolean;
43
43
  variant: import('../../types/navbar.type').NavbarVariant;
44
44
  floating: boolean;
@@ -1,7 +1,8 @@
1
- import { defineComponent as i, computed as r, openBlock as d, createBlock as h, withCtx as f, createElementVNode as y, toDisplayString as v } from "vue";
1
+ import { defineComponent as i, computed as c, openBlock as d, createBlock as h, withCtx as f, createElementVNode as y, toDisplayString as v } from "vue";
2
2
  import { useVLiteConfig as b } from "../../core/config.js";
3
+ import "../../icons/IconRegistry.js";
3
4
  import F from "../Tooltip.vue.js";
4
- const C = /* @__PURE__ */ i({
5
+ const T = /* @__PURE__ */ i({
5
6
  __name: "Price",
6
7
  props: {
7
8
  value: { default: 0 },
@@ -9,20 +10,20 @@ const C = /* @__PURE__ */ i({
9
10
  numberFormat: {},
10
11
  compactThreshold: {}
11
12
  },
12
- setup(u) {
13
- const c = u, o = b(), n = r(() => c.currency || o?.components?.price?.currency || "USD"), a = r(() => c.numberFormat || o?.components?.price?.numberFormat || "compact"), m = r(() => {
14
- const e = Number(c.value) || 0;
13
+ setup(m) {
14
+ const r = m, o = b(), n = c(() => r.currency || o?.components?.price?.currency || "USD"), a = c(() => r.numberFormat || o?.components?.price?.numberFormat || "compact"), u = c(() => {
15
+ const e = Number(r.value) || 0;
15
16
  try {
16
17
  const t = {
17
18
  style: "currency",
18
19
  currency: n.value
19
- }, p = c.compactThreshold ?? o?.components?.price?.compactThreshold ?? 1e3;
20
+ }, p = r.compactThreshold ?? o?.components?.price?.compactThreshold ?? 1e3;
20
21
  return a.value === "compact" && Math.abs(e) >= p && (t.notation = "compact", t.compactDisplay = "short"), new Intl.NumberFormat("en-US", t).format(e);
21
22
  } catch {
22
23
  return e.toFixed(2);
23
24
  }
24
- }), s = r(() => {
25
- const e = Number(c.value) || 0;
25
+ }), s = c(() => {
26
+ const e = Number(r.value) || 0;
26
27
  try {
27
28
  return new Intl.NumberFormat("en-US", {
28
29
  style: "currency",
@@ -31,8 +32,8 @@ const C = /* @__PURE__ */ i({
31
32
  } catch {
32
33
  return e.toFixed(2);
33
34
  }
34
- }), l = r(() => {
35
- const e = Number(c.value) || 0, t = c.compactThreshold ?? o?.components?.price?.compactThreshold ?? 1e3;
35
+ }), l = c(() => {
36
+ const e = Number(r.value) || 0, t = r.compactThreshold ?? o?.components?.price?.compactThreshold ?? 1e3;
36
37
  return a.value === "compact" && Math.abs(e) >= t;
37
38
  });
38
39
  return (e, t) => (d(), h(F, {
@@ -40,12 +41,12 @@ const C = /* @__PURE__ */ i({
40
41
  disabled: !l.value
41
42
  }, {
42
43
  default: f(() => [
43
- y("span", null, v(m.value), 1)
44
+ y("span", null, v(u.value), 1)
44
45
  ]),
45
46
  _: 1
46
47
  }, 8, ["content", "disabled"]));
47
48
  }
48
49
  });
49
50
  export {
50
- C as default
51
+ T as default
51
52
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Rating.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33afc5cb"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0d7a49f5"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };