vlite3 1.5.4 → 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 (78) hide show
  1. package/README.md +105 -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/Calendar/Calendar.vue.js +1 -1
  12. package/components/Calendar/Calendar.vue2.js +29 -29
  13. package/components/CategoryManager/CategoryManager.vue2.js +14 -14
  14. package/components/CategoryManager/CategoryNode.vue.js +16 -16
  15. package/components/CategoryMenu/CategoryMenu.vue.js +9 -8
  16. package/components/Chart/BarChart.vue.d.ts +1 -1
  17. package/components/Chart/GanttChart.vue.d.ts +3 -1
  18. package/components/Chart/GanttChart.vue.js +2 -2
  19. package/components/Chart/GanttChart.vue2.js +591 -656
  20. package/components/Chart/LineChart.vue.d.ts +1 -1
  21. package/components/Chart/TimelineChart.vue.d.ts +1 -1
  22. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  23. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  24. package/components/ConfirmationModal.vue.d.ts +4 -0
  25. package/components/ConfirmationModal.vue.js +47 -39
  26. package/components/DataTable/DataTable.vue.js +319 -294
  27. package/components/DataTable/DataTableRow.vue.d.ts +2 -0
  28. package/components/DataTable/DataTableRow.vue.js +2 -2
  29. package/components/DataTable/DataTableRow.vue2.js +57 -54
  30. package/components/DataTable/types.d.ts +2 -0
  31. package/components/DatePicker.vue.js +5 -4
  32. package/components/Empty/Empty.vue.js +3 -2
  33. package/components/ExportData/ExportData.vue.d.ts +1 -1
  34. package/components/Form/Form.vue2.js +44 -43
  35. package/components/Form/FormField.vue.js +24 -24
  36. package/components/Heatmap/Heatmap.vue2.js +3 -2
  37. package/components/Icon.vue.d.ts +3 -2
  38. package/components/Icon.vue.js +22 -12
  39. package/components/IconPicker.vue.js +5 -133
  40. package/components/IconPicker.vue2.js +218 -2
  41. package/components/ImportData/ImportData.vue.js +3 -2
  42. package/components/ImportData/ImportStep2.vue.js +3 -2
  43. package/components/Kanban/KanbanBoard.vue2.js +4 -2
  44. package/components/List/utils.js +5 -4
  45. package/components/Masonry/Masonry.vue2.js +14 -13
  46. package/components/Navbar/Navbar.vue.d.ts +1 -1
  47. package/components/Price/Price.vue.js +13 -12
  48. package/components/QRCode/QRCode.vue.d.ts +1 -1
  49. package/components/Rating/Rating.vue.js +2 -2
  50. package/components/Rating/Rating.vue2.js +41 -41
  51. package/components/Rating/ReviewSummary.vue.js +20 -20
  52. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +1 -1
  53. package/components/Screen/ScreenFilter.vue.js +5 -3
  54. package/components/Screen/components/ScreenExportModal.vue.d.ts +2 -2
  55. package/components/SidePanel.vue.js +2 -2
  56. package/components/SidePanel.vue2.js +18 -18
  57. package/components/Stats/StatItem.vue.js +3 -2
  58. package/components/StatusChip/StatusChip.vue.js +6 -5
  59. package/components/Workbook/Sheet.vue.js +11 -11
  60. package/core/CoreScale.d.ts +18 -0
  61. package/core/CoreScale.js +44 -0
  62. package/core/config.d.ts +66 -32
  63. package/core/config.js +24 -12
  64. package/core/index.d.ts +3 -2
  65. package/core/index.js +44 -32
  66. package/icons/IconRegistry.d.ts +38 -0
  67. package/icons/IconRegistry.js +166 -0
  68. package/icons/IconTypes.d.ts +37 -0
  69. package/index.d.ts +3 -1
  70. package/index.js +478 -452
  71. package/package.json +15 -3
  72. package/style.css +45 -15
  73. package/types/config.type.d.ts +23 -0
  74. package/utils/functions.js +44 -43
  75. package/utils/index.d.ts +1 -0
  76. package/vite.d.ts +6 -0
  77. package/vite.js +223 -0
  78. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
package/README.md CHANGED
@@ -90,6 +90,9 @@ app.use(GoogleSignInPlugin, {
90
90
 
91
91
  // Initialize VLite with custom configuration
92
92
  const vlite = createVLite({
93
+ // Existing applications keep their current appearance when this is omitted
94
+ scale: 'large',
95
+
93
96
  // Global Service Registry
94
97
  services: {
95
98
  /**
@@ -143,6 +146,108 @@ app.use(vlite)
143
146
  app.mount('#app')
144
147
  ```
145
148
 
149
+ ### Online, Hybrid, and Offline Icons
150
+
151
+ Iconify loading remains online by default, so existing applications do not need
152
+ to change:
153
+
154
+ ```ts
155
+ createVLite()
156
+ ```
157
+
158
+ Applications that cannot make third-party requests can register local
159
+ IconifyJSON data through the same plugin:
160
+
161
+ ```ts
162
+ import { icons as lucideIcons } from '@iconify-json/lucide'
163
+
164
+ createVLite({
165
+ icons: {
166
+ mode: 'offline',
167
+ collections: [lucideIcons],
168
+ fallback: 'lucide:circle-help',
169
+ warnOnMissing: true,
170
+ },
171
+ })
172
+ ```
173
+
174
+ Available modes are `online`, `hybrid` (local first, online fallback), and
175
+ `offline` (local data only, with no Iconify API request for missing names).
176
+ `@iconify/vue@^5` is a peer dependency so registration and rendering share one
177
+ predictable runtime registry.
178
+
179
+ For selected-icon Vite bundles, complete collections, dynamic icon inclusion,
180
+ manual registration, and offline picker behavior, see
181
+ [the Icon guide](./docs/1-Components/Icon.md).
182
+
183
+ ### Global Application Scale
184
+
185
+ Use the root-level `scale` option to control the visual density of the complete application:
186
+
187
+ ```ts
188
+ const vlite = createVLite({
189
+ scale: 'medium',
190
+ })
191
+ ```
192
+
193
+ The official presets are:
194
+
195
+ - `large`: the current vlite3 sizing and the default
196
+ - `medium`: a moderately compact 15px baseline
197
+ - `small`: a compact 14px baseline
198
+
199
+ Both `createVLite()` and `createVLite({})` resolve to `large`, so existing applications require no
200
+ migration. Global scale changes the inherited design-system baseline; component-level props such as
201
+ `<Button size="sm">` and `<Form size="md">` keep their existing meaning and relative ordering.
202
+
203
+ User-selected scale changes are saved under the `vlite-scale` local-storage key. Use
204
+ `setVLiteScale()` for a runtime preference control; it updates the injected configuration, the root
205
+ attribute, and storage together:
206
+
207
+ ```ts
208
+ import { setVLiteScale } from 'vlite3'
209
+
210
+ setVLiteScale('small')
211
+ ```
212
+
213
+ On the next load, a valid saved preference takes precedence over the configured default and is
214
+ restored synchronously during `app.use(vlite)`, before `app.mount()`.
215
+
216
+ For a strict no-flash first paint—including SSR pages or applications whose JavaScript bundle may
217
+ start after the browser paints—set the configured fallback on `html` and restore storage in a
218
+ blocking head script before styles or application scripts. The fallback attribute must match the
219
+ value passed to `createVLite`:
220
+
221
+ ```html
222
+ <html data-vlite-scale="large">
223
+ <head>
224
+ <script>
225
+ try {
226
+ const scale = localStorage.getItem('vlite-scale')
227
+ if (scale === 'small' || scale === 'medium' || scale === 'large') {
228
+ document.documentElement.setAttribute('data-vlite-scale', scale)
229
+ }
230
+ } catch {
231
+ // Keep the configured HTML fallback when storage is unavailable.
232
+ }
233
+ </script>
234
+ </head>
235
+ </html>
236
+ ```
237
+
238
+ Applications with a Content Security Policy should authorize this script with a nonce or serve an
239
+ equivalent blocking bootstrap script. Because the attribute is resolved before CSS renders, refresh
240
+ does not briefly display one density and then jump to another.
241
+
242
+ The scale uses inherited CSS variables—no browser zoom or CSS transforms are involved. For an
243
+ advanced project-specific adjustment, override the preset after importing `vlite3/style.css`:
244
+
245
+ ```css
246
+ html[data-vlite-scale='medium'] {
247
+ --vlite-root-font-size: 15.25px;
248
+ }
249
+ ```
250
+
146
251
  ### How it works
147
252
 
148
253
  #### Global Services (e.g., Uploads)
@@ -0,0 +1,36 @@
1
+ import { Plugin } from 'vite';
2
+ import { VLiteIconMode } from './icons/IconTypes';
3
+ export interface VLiteIconsViteOptions {
4
+ /**
5
+ * Used to select the default unresolved-icon reporting policy.
6
+ * Runtime resolution mode is still configured through createVLite().
7
+ */
8
+ mode?: VLiteIconMode;
9
+ include?: string | readonly string[];
10
+ /**
11
+ * Explicit dynamic icon IDs that static source scanning cannot discover.
12
+ */
13
+ icons?: readonly string[];
14
+ /**
15
+ * Complete installed @iconify-json/<prefix> collections to include.
16
+ */
17
+ collections?: readonly string[];
18
+ /**
19
+ * Scan the installed vlite3 distribution for its statically declared icons.
20
+ * Enabled by default.
21
+ */
22
+ scanVLite?: boolean;
23
+ /**
24
+ * Automatically load the generated registration module before HTML entries.
25
+ */
26
+ autoRegister?: boolean;
27
+ onMissing?: 'error' | 'warn';
28
+ }
29
+ /**
30
+ * Generate and synchronously register a deterministic local icon bundle.
31
+ *
32
+ * Only installed, version-locked @iconify-json/<prefix> packages are read.
33
+ * This plugin never downloads icon data.
34
+ */
35
+ export declare function vliteIcons(options?: VLiteIconsViteOptions): Plugin;
36
+ export default vliteIcons;
@@ -4,8 +4,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ap
4
4
  }, string, import('vue').PublicProps, Readonly<AppShellProps> & Readonly<{
5
5
  "onToggle-mobile"?: () => any;
6
6
  }>, {
7
- class: string;
8
7
  height: string;
8
+ class: string;
9
9
  border: boolean;
10
10
  variant: import('../../types/appshell.type').AppShellVariant;
11
11
  floating: boolean;
@@ -3,6 +3,7 @@ import M from "../SidePanel.vue.js";
3
3
  import P from "../Navbar/NavbarTabs.vue.js";
4
4
  import A from "../Breadcrumb/Breadcrumb.vue.js";
5
5
  import "@iconify/vue";
6
+ import "../../icons/IconRegistry.js";
6
7
  /* empty css */
7
8
  import { APPSHELL_LAYOUT_KEY as D } from "./useAppShell.js";
8
9
  const H = { class: "vlite-app-layout flex w-full h-full bg-muted/20 p-0 sm:p-2.5 gap-0 sm:gap-2.5 overflow-hidden" }, O = {
@@ -20,7 +21,7 @@ const H = { class: "vlite-app-layout flex w-full h-full bg-muted/20 p-0 sm:p-2.5
20
21
  }, K = {
21
22
  key: 0,
22
23
  class: "mt-auto"
23
- }, se = /* @__PURE__ */ R({
24
+ }, le = /* @__PURE__ */ R({
24
25
  __name: "AppShellLayoutDashboard",
25
26
  setup(q) {
26
27
  const $ = _(D), {
@@ -169,5 +170,5 @@ const H = { class: "vlite-app-layout flex w-full h-full bg-muted/20 p-0 sm:p-2.5
169
170
  }
170
171
  });
171
172
  export {
172
- se as default
173
+ le as default
173
174
  };
@@ -3,6 +3,7 @@ import L from "../SidePanel.vue.js";
3
3
  import M from "../Navbar/NavbarTabs.vue.js";
4
4
  import P from "../Breadcrumb/Breadcrumb.vue.js";
5
5
  import "@iconify/vue";
6
+ import "../../icons/IconRegistry.js";
6
7
  /* empty css */
7
8
  import { APPSHELL_LAYOUT_KEY as A } from "./useAppShell.js";
8
9
  const D = { class: "vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden items-stretch" }, H = {
@@ -20,7 +21,7 @@ const D = { class: "vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2
20
21
  }, F = {
21
22
  key: 0,
22
23
  class: "mt-auto pt-2 border-t border-border px-3 py-2"
23
- }, ee = /* @__PURE__ */ _({
24
+ }, se = /* @__PURE__ */ _({
24
25
  __name: "AppShellLayoutDock",
25
26
  setup(K) {
26
27
  const x = R(A), {
@@ -163,5 +164,5 @@ const D = { class: "vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2
163
164
  }
164
165
  });
165
166
  export {
166
- ee as default
167
+ se as default
167
168
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as _, inject as R, openBlock as r, createElementBlock as o, createVNode as m, Transition as B, unref as e, withCtx as v, withDirectives as y, createElementVNode as t, normalizeClass as b, renderSlot as a, createCommentVNode as i, vShow as w, isRef as k, createSlots as E, createTextVNode as H } from "vue";
1
+ import { defineComponent as _, inject as R, openBlock as a, createElementBlock as o, createVNode as m, Transition as B, unref as e, withCtx as p, withDirectives as y, createElementVNode as t, normalizeClass as b, renderSlot as r, createCommentVNode as i, vShow as w, isRef as k, createSlots as E, createTextVNode as H } from "vue";
2
2
  import L from "../SidePanel.vue.js";
3
3
  import M from "../Navbar/NavbarTabs.vue.js";
4
4
  import P from "../Breadcrumb/Breadcrumb.vue.js";
5
5
  import "@iconify/vue";
6
+ import "../../icons/IconRegistry.js";
6
7
  /* empty css */
7
8
  import { APPSHELL_LAYOUT_KEY as A } from "./useAppShell.js";
8
9
  const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-hidden" }, U = {
@@ -20,7 +21,7 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
20
21
  }, q = {
21
22
  key: 0,
22
23
  class: "mt-auto"
23
- }, le = /* @__PURE__ */ _({
24
+ }, re = /* @__PURE__ */ _({
24
25
  __name: "AppShellLayoutHeaderShell",
25
26
  setup(G) {
26
27
  const $ = R(A), {
@@ -32,14 +33,14 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
32
33
  pageTitle: T,
33
34
  breadcrumbData: f,
34
35
  breakpointClasses: u,
35
- nestedTabsItems: p,
36
+ nestedTabsItems: v,
36
37
  activeNestedTab: c,
37
38
  handleNestedTabClick: V,
38
39
  mainScrollRef: z,
39
40
  layoutMainRef: N,
40
41
  sidebarSlideFromClass: g
41
42
  } = $;
42
- return (s, n) => (r(), o("div", O, [
43
+ return (s, n) => (a(), o("div", O, [
43
44
  m(B, {
44
45
  "enter-active-class": "transition-all duration-300 ease-in-out",
45
46
  "leave-active-class": "transition-all duration-300 ease-in-out",
@@ -48,7 +49,7 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
48
49
  "leave-from-class": "opacity-100 translate-x-0",
49
50
  "leave-to-class": e(g)
50
51
  }, {
51
- default: v(() => [
52
+ default: p(() => [
52
53
  y(t("nav", {
53
54
  class: b([
54
55
  "shrink-0 h-full flex flex-col bg-background border-e border-border overflow-hidden z-30",
@@ -58,20 +59,20 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
58
59
  role: "navigation",
59
60
  "aria-label": "Sidebar"
60
61
  }, [
61
- s.$slots["sidebar-header"] ? (r(), o("div", U, [
62
- a(s.$slots, "sidebar-header")
62
+ s.$slots["sidebar-header"] ? (a(), o("div", U, [
63
+ r(s.$slots, "sidebar-header")
63
64
  ])) : i("", !0),
64
65
  t("div", {
65
66
  class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(l).contentClass]),
66
67
  style: { "will-change": "transform", contain: "layout style" }
67
68
  }, [
68
- a(s.$slots, "sidebar")
69
+ r(s.$slots, "sidebar")
69
70
  ], 2),
70
- s.$slots["sidebar-footer"] ? (r(), o("div", {
71
+ s.$slots["sidebar-footer"] ? (a(), o("div", {
71
72
  key: 1,
72
73
  class: b(["shrink-0", e(l).rightClass])
73
74
  }, [
74
- a(s.$slots, "sidebar-footer")
75
+ r(s.$slots, "sidebar-footer")
75
76
  ], 2)) : i("", !0)
76
77
  ], 2), [
77
78
  [w, !e(C)]
@@ -80,9 +81,9 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
80
81
  _: 3
81
82
  }, 8, ["enter-from-class", "leave-to-class"]),
82
83
  t("div", D, [
83
- s.$slots.header ? y((r(), o("header", I, [
84
+ s.$slots.header ? y((a(), o("header", I, [
84
85
  t("div", Y, [
85
- a(s.$slots, "header", {
86
+ r(s.$slots, "header", {
86
87
  isOpen: e(d),
87
88
  toggle: () => d.value = !e(d),
88
89
  sidebarVisible: e(S),
@@ -94,21 +95,21 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
94
95
  ], 512)), [
95
96
  [w, !e(l).hideHeader]
96
97
  ]) : i("", !0),
97
- s.$slots.main ? (r(), o("main", {
98
+ s.$slots.main ? (a(), o("main", {
98
99
  key: 1,
99
100
  ref_key: "layoutMainRef",
100
101
  ref: N,
101
102
  class: "flex-1 overflow-hidden w-full relative flex flex-col min-h-0 bg-background"
102
103
  }, [
103
- e(l).renderNestedTabs && e(p).length > 0 ? (r(), o("div", j, [
104
+ e(l).renderNestedTabs && e(v).length > 0 ? (a(), o("div", j, [
104
105
  m(M, {
105
106
  modelValue: e(c),
106
107
  "onUpdate:modelValue": n[0] || (n[0] = (h) => k(c) ? c.value = h : null),
107
108
  onChange: e(V),
108
- items: e(p)
109
+ items: e(v)
109
110
  }, null, 8, ["modelValue", "onChange", "items"])
110
111
  ])) : i("", !0),
111
- e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (r(), o("div", {
112
+ e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (a(), o("div", {
112
113
  key: 1,
113
114
  class: b(["shrink-0 w-full border-b border-border px-6 py-2", e(l).breadcrumbClass])
114
115
  }, [
@@ -125,7 +126,7 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
125
126
  style: { "will-change": "transform", contain: "layout style" },
126
127
  class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
127
128
  }, [
128
- a(s.$slots, "main")
129
+ r(s.$slots, "main")
129
130
  ], 512)
130
131
  ], 512)) : i("", !0)
131
132
  ]),
@@ -139,16 +140,16 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
139
140
  headerClass: "ps-3! pe-4.5! py-3!",
140
141
  bodyClass: "p-0!"
141
142
  }, E({
142
- default: v(() => [
143
+ default: p(() => [
143
144
  t("div", F, [
144
145
  t("div", K, [
145
- a(s.$slots, "mobile-sidebar", {}, () => [
146
- a(s.$slots, "sidebar")
146
+ r(s.$slots, "mobile-sidebar", {}, () => [
147
+ r(s.$slots, "sidebar")
147
148
  ])
148
149
  ]),
149
- s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (r(), o("div", q, [
150
- a(s.$slots, "mobile-sidebar-footer", {}, () => [
151
- a(s.$slots, "sidebar-footer")
150
+ s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div", q, [
151
+ r(s.$slots, "mobile-sidebar-footer", {}, () => [
152
+ r(s.$slots, "sidebar-footer")
152
153
  ])
153
154
  ])) : i("", !0)
154
155
  ])
@@ -157,9 +158,9 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
157
158
  }, [
158
159
  s.$slots["mobile-sidebar-header"] || s.$slots["sidebar-header"] ? {
159
160
  name: "header",
160
- fn: v(() => [
161
- a(s.$slots, "mobile-sidebar-header", {}, () => [
162
- a(s.$slots, "sidebar-header", {}, () => [
161
+ fn: p(() => [
162
+ r(s.$slots, "mobile-sidebar-header", {}, () => [
163
+ r(s.$slots, "sidebar-header", {}, () => [
163
164
  n[2] || (n[2] = H("Brand", -1))
164
165
  ])
165
166
  ])
@@ -171,5 +172,5 @@ const O = { class: "vlite-app-layout flex w-full h-full bg-background overflow-h
171
172
  }
172
173
  });
173
174
  export {
174
- le as default
175
+ re as default
175
176
  };
@@ -3,6 +3,7 @@ import P from "../SidePanel.vue.js";
3
3
  import A from "../Navbar/NavbarTabs.vue.js";
4
4
  import H from "../Breadcrumb/Breadcrumb.vue.js";
5
5
  import "@iconify/vue";
6
+ import "../../icons/IconRegistry.js";
6
7
  /* empty css */
7
8
  import { APPSHELL_LAYOUT_KEY as O } from "./useAppShell.js";
8
9
  const U = { class: "vlite-app-layout flex w-full h-full bg-body overflow-hidden" }, _ = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden" }, D = {
@@ -17,7 +18,7 @@ const U = { class: "vlite-app-layout flex w-full h-full bg-body overflow-hidden"
17
18
  }, j = {
18
19
  key: 0,
19
20
  class: "mt-auto"
20
- }, ee = /* @__PURE__ */ R({
21
+ }, se = /* @__PURE__ */ R({
21
22
  __name: "AppShellLayoutSidebarFirst",
22
23
  setup(K) {
23
24
  const $ = B(O), {
@@ -164,5 +165,5 @@ const U = { class: "vlite-app-layout flex w-full h-full bg-body overflow-hidden"
164
165
  }
165
166
  });
166
167
  export {
167
- ee as default
168
+ se as default
168
169
  };
@@ -52,10 +52,10 @@ export declare const createAsyncSelect: <T extends {
52
52
  id?: string | number;
53
53
  }>(config: CreateSelectConfig<T>) => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
54
54
  value: {
55
- type: (ObjectConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
55
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
56
56
  };
57
57
  modelValue: {
58
- type: (ObjectConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
58
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
59
59
  };
60
60
  multiple: {
61
61
  type: BooleanConstructor;
@@ -91,10 +91,10 @@ export declare const createAsyncSelect: <T extends {
91
91
  };
92
92
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onChange" | "change" | "update:modelValue")[], "onChange" | "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
93
93
  value: {
94
- type: (ObjectConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
94
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
95
95
  };
96
96
  modelValue: {
97
- type: (ObjectConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
97
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
98
98
  };
99
99
  multiple: {
100
100
  type: BooleanConstructor;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as E, ref as y, computed as i, watch as I, createVNode as d, mergeProps as j, nextTick as H, isVNode as L } from "vue";
2
2
  import Q from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
+ import "../../icons/IconRegistry.js";
4
5
  import "../../core/config.js";
5
6
  /* empty css */
6
7
  /* empty css */
@@ -11,7 +12,7 @@ import U from "../Modal.vue.js";
11
12
  function M(t) {
12
13
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !L(t);
13
14
  }
14
- const re = (t) => /* @__PURE__ */ E({
15
+ const le = (t) => /* @__PURE__ */ E({
15
16
  name: t.name,
16
17
  inheritAttrs: !1,
17
18
  props: {
@@ -214,5 +215,5 @@ const re = (t) => /* @__PURE__ */ E({
214
215
  }
215
216
  });
216
217
  export {
217
- re as createAsyncSelect
218
+ le as createAsyncSelect
218
219
  };
@@ -15,10 +15,10 @@ export interface BackButtonProps {
15
15
  fallback?: string;
16
16
  }
17
17
  declare const _default: import('vue').DefineComponent<BackButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BackButtonProps> & Readonly<{}>, {
18
+ fallback: string;
18
19
  icon: string;
19
20
  class: string;
20
21
  size: ButtonSize;
21
- fallback: string;
22
22
  tooltip: string;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
24
24
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./Calendar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-63e46f6b"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8c4d2fe9"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as M, ref as k, onMounted as W, onUnmounted as j, computed as p, openBlock as b, createElementBlock as E, createVNode as n, unref as A, withCtx as i, createElementVNode as w, createTextVNode as f, toDisplayString as r } from "vue";
1
+ import { defineComponent as M, ref as p, onMounted as W, onUnmounted as j, computed as w, openBlock as b, createElementBlock as E, createVNode as n, unref as A, withCtx as a, createElementVNode as C, createTextVNode as f, toDisplayString as r } from "vue";
2
2
  import L from "v-event-calendar";
3
3
  import l from "../Button.vue.js";
4
4
  import h from "../ButtonGroup.vue.js";
5
5
  import { $t as B } from "../../utils/i18n.js";
6
6
  import "v-event-calendar/style.css";
7
7
  import P from "./CalendarEventItem.vue.js";
8
- const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border-border rounded-xl shadow-sm overflow-hidden flex flex-col" }, _ = {
8
+ const R = { class: "v-calendar flex h-[min(52rem,calc(100dvh-10rem))] min-h-[24rem] flex-col overflow-hidden rounded-xl border border-border bg-body shadow-sm lg:mt-2" }, _ = {
9
9
  key: 0,
10
10
  class: "flex items-center justify-between p-4 border-b border-border bg-body"
11
11
  }, G = { class: "flex items-center gap-2" }, I = { class: "text-lg font-bold text-foreground truncate mx-2" }, q = { class: "flex items-center gap-2" }, F = {
@@ -30,21 +30,21 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
30
30
  "dayClick"
31
31
  ],
32
32
  setup(c, { emit: N }) {
33
- const d = N, s = k(), v = k("month"), x = k(!1), C = () => {
33
+ const d = N, s = p(), v = p("month"), x = p(!1), g = () => {
34
34
  const o = window.innerWidth < 1200;
35
35
  o !== x.value && (x.value = o, o && (v.value = "date", s.value?.setView("date")));
36
36
  };
37
37
  W(() => {
38
- C(), window.addEventListener("resize", C);
38
+ g(), window.addEventListener("resize", g);
39
39
  }), j(() => {
40
- window.removeEventListener("resize", C);
40
+ window.removeEventListener("resize", g);
41
41
  });
42
- const g = (o) => {
42
+ const k = (o) => {
43
43
  x.value || (v.value = o, s.value?.setView(o));
44
44
  }, z = () => s.value?.goToToday(), T = () => s.value?.goToPrevious(), D = () => s.value?.goToNext(), y = (o, e, t) => {
45
- const a = t ? B(o, t) : B(o);
46
- return a !== o ? a : e;
47
- }, S = p(() => y("vlite.calendar.month", "Month")), $ = p(() => y("vlite.calendar.week", "Week")), U = p(() => y("vlite.calendar.day", "Day")), V = p(() => y("vlite.calendar.today", "Today"));
45
+ const i = t ? B(o, t) : B(o);
46
+ return i !== o ? i : e;
47
+ }, S = w(() => y("vlite.calendar.month", "Month")), $ = w(() => y("vlite.calendar.week", "Week")), U = w(() => y("vlite.calendar.day", "Day")), V = w(() => y("vlite.calendar.today", "Today"));
48
48
  return (o, e) => (b(), E("div", R, [
49
49
  n(A(L), {
50
50
  ref_key: "calendarRef",
@@ -54,17 +54,17 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
54
54
  "allow-event-creation": c.canAdd,
55
55
  "allow-event-editing": c.canEdit,
56
56
  onEventClick: e[6] || (e[6] = (t) => d("eventClick", t)),
57
- onEventCreate: e[7] || (e[7] = (t, a, u) => d("eventCreate", { date: t, start: a, end: u })),
58
- onEventUpdate: e[8] || (e[8] = (t, a, u) => d("eventUpdate", { eventId: t, start: a, end: u })),
57
+ onEventCreate: e[7] || (e[7] = (t, i, u) => d("eventCreate", { date: t, start: i, end: u })),
58
+ onEventUpdate: e[8] || (e[8] = (t, i, u) => d("eventUpdate", { eventId: t, start: i, end: u })),
59
59
  onDateChange: e[9] || (e[9] = (t) => d("dateChange", t)),
60
60
  onDayClick: e[10] || (e[10] = (t) => d("dayClick", t)),
61
61
  class: "flex-1 min-h-0"
62
62
  }, {
63
- header: i(({ currentTitle: t }) => [
63
+ header: a(({ currentTitle: t }) => [
64
64
  x.value ? (b(), E("div", F, [
65
- w("h2", H, r(t), 1),
65
+ C("h2", H, r(t), 1),
66
66
  n(h, { class: "max-sm:w-full" }, {
67
- default: i(() => [
67
+ default: a(() => [
68
68
  n(l, {
69
69
  variant: "outline",
70
70
  size: "sm",
@@ -77,7 +77,7 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
77
77
  class: "flex-1",
78
78
  onClick: z
79
79
  }, {
80
- default: i(() => [
80
+ default: a(() => [
81
81
  f(r(V.value), 1)
82
82
  ]),
83
83
  _: 1
@@ -92,16 +92,16 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
92
92
  _: 1
93
93
  })
94
94
  ])) : (b(), E("div", _, [
95
- w("div", G, [
95
+ C("div", G, [
96
96
  n(h, null, {
97
- default: i(() => [
97
+ default: a(() => [
98
98
  n(l, {
99
99
  variant: v.value === "month" ? "primary" : "outline",
100
100
  size: "sm",
101
101
  icon: "lucide:calendar-days",
102
- onClick: e[0] || (e[0] = (a) => g("month"))
102
+ onClick: e[0] || (e[0] = (i) => k("month"))
103
103
  }, {
104
- default: i(() => [
104
+ default: a(() => [
105
105
  f(r(S.value), 1)
106
106
  ]),
107
107
  _: 1
@@ -110,9 +110,9 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
110
110
  variant: v.value === "week" ? "primary" : "outline",
111
111
  size: "sm",
112
112
  icon: "lucide:calendar-range",
113
- onClick: e[1] || (e[1] = (a) => g("week"))
113
+ onClick: e[1] || (e[1] = (i) => k("week"))
114
114
  }, {
115
- default: i(() => [
115
+ default: a(() => [
116
116
  f(r($.value), 1)
117
117
  ]),
118
118
  _: 1
@@ -121,9 +121,9 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
121
121
  variant: v.value === "date" ? "primary" : "outline",
122
122
  size: "sm",
123
123
  icon: "lucide:calendar",
124
- onClick: e[2] || (e[2] = (a) => g("date"))
124
+ onClick: e[2] || (e[2] = (i) => k("date"))
125
125
  }, {
126
- default: i(() => [
126
+ default: a(() => [
127
127
  f(r(U.value), 1)
128
128
  ]),
129
129
  _: 1
@@ -132,10 +132,10 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
132
132
  _: 1
133
133
  })
134
134
  ]),
135
- w("h2", I, r(t), 1),
136
- w("div", q, [
135
+ C("h2", I, r(t), 1),
136
+ C("div", q, [
137
137
  n(h, null, {
138
- default: i(() => [
138
+ default: a(() => [
139
139
  n(l, {
140
140
  variant: "outline",
141
141
  size: "sm",
@@ -147,7 +147,7 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
147
147
  size: "sm",
148
148
  onClick: z
149
149
  }, {
150
- default: i(() => [
150
+ default: a(() => [
151
151
  f(r(V.value), 1)
152
152
  ]),
153
153
  _: 1
@@ -164,10 +164,10 @@ const R = { class: "h-[calc(100vh-1px)] v-calendar lg:mt-2 bg-body border border
164
164
  ])
165
165
  ]))
166
166
  ]),
167
- event: i(({ event: t, view: a, displayTime: u }) => [
167
+ event: a(({ event: t, view: i, displayTime: u }) => [
168
168
  n(P, {
169
169
  event: t,
170
- view: a,
170
+ view: i,
171
171
  displayTime: u,
172
172
  "can-edit": c.canEdit,
173
173
  "can-delete": c.canDelete,