nuxt-ui-tools 1.7.0 → 1.8.1

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 (162) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +18 -0
  3. package/dist/runtime/file-preview/components/provider/file-preview-host.d.vue.ts +7 -0
  4. package/dist/runtime/file-preview/components/provider/file-preview-host.vue +147 -0
  5. package/dist/runtime/file-preview/components/provider/file-preview-host.vue.d.ts +7 -0
  6. package/dist/runtime/file-preview/components/provider/file-preview-provider.d.vue.ts +21 -0
  7. package/dist/runtime/file-preview/components/provider/file-preview-provider.vue +23 -0
  8. package/dist/runtime/file-preview/components/provider/file-preview-provider.vue.d.ts +21 -0
  9. package/dist/runtime/file-preview/components/renderers/audio-renderer.d.vue.ts +10 -0
  10. package/dist/runtime/file-preview/components/renderers/audio-renderer.vue +83 -0
  11. package/dist/runtime/file-preview/components/renderers/audio-renderer.vue.d.ts +10 -0
  12. package/dist/runtime/file-preview/components/renderers/csv-renderer.d.vue.ts +10 -0
  13. package/dist/runtime/file-preview/components/renderers/csv-renderer.vue +116 -0
  14. package/dist/runtime/file-preview/components/renderers/csv-renderer.vue.d.ts +10 -0
  15. package/dist/runtime/file-preview/components/renderers/fallback-renderer.d.vue.ts +10 -0
  16. package/dist/runtime/file-preview/components/renderers/fallback-renderer.vue +41 -0
  17. package/dist/runtime/file-preview/components/renderers/fallback-renderer.vue.d.ts +10 -0
  18. package/dist/runtime/file-preview/components/renderers/file-preview-code.d.vue.ts +9 -0
  19. package/dist/runtime/file-preview/components/renderers/file-preview-code.vue +83 -0
  20. package/dist/runtime/file-preview/components/renderers/file-preview-code.vue.d.ts +9 -0
  21. package/dist/runtime/file-preview/components/renderers/file-preview-text-loading.d.vue.ts +3 -0
  22. package/dist/runtime/file-preview/components/renderers/file-preview-text-loading.vue +14 -0
  23. package/dist/runtime/file-preview/components/renderers/file-preview-text-loading.vue.d.ts +3 -0
  24. package/dist/runtime/file-preview/components/renderers/image-renderer.d.vue.ts +10 -0
  25. package/dist/runtime/file-preview/components/renderers/image-renderer.vue +182 -0
  26. package/dist/runtime/file-preview/components/renderers/image-renderer.vue.d.ts +10 -0
  27. package/dist/runtime/file-preview/components/renderers/markdown-renderer.d.vue.ts +10 -0
  28. package/dist/runtime/file-preview/components/renderers/markdown-renderer.vue +78 -0
  29. package/dist/runtime/file-preview/components/renderers/markdown-renderer.vue.d.ts +10 -0
  30. package/dist/runtime/file-preview/components/renderers/media-controls.d.vue.ts +10 -0
  31. package/dist/runtime/file-preview/components/renderers/media-controls.vue +145 -0
  32. package/dist/runtime/file-preview/components/renderers/media-controls.vue.d.ts +10 -0
  33. package/dist/runtime/file-preview/components/renderers/pdf-renderer.d.vue.ts +10 -0
  34. package/dist/runtime/file-preview/components/renderers/pdf-renderer.vue +58 -0
  35. package/dist/runtime/file-preview/components/renderers/pdf-renderer.vue.d.ts +10 -0
  36. package/dist/runtime/file-preview/components/renderers/text-renderer.d.vue.ts +10 -0
  37. package/dist/runtime/file-preview/components/renderers/text-renderer.vue +41 -0
  38. package/dist/runtime/file-preview/components/renderers/text-renderer.vue.d.ts +10 -0
  39. package/dist/runtime/file-preview/components/renderers/video-renderer.d.vue.ts +10 -0
  40. package/dist/runtime/file-preview/components/renderers/video-renderer.vue +110 -0
  41. package/dist/runtime/file-preview/components/renderers/video-renderer.vue.d.ts +10 -0
  42. package/dist/runtime/file-preview/components/shell/file-preview-button.d.vue.ts +16 -0
  43. package/dist/runtime/file-preview/components/shell/file-preview-button.vue +40 -0
  44. package/dist/runtime/file-preview/components/shell/file-preview-button.vue.d.ts +16 -0
  45. package/dist/runtime/{form/components/renderer/form-field-error.d.vue.ts → file-preview/components/shell/file-preview-details.d.vue.ts} +4 -2
  46. package/dist/runtime/file-preview/components/shell/file-preview-details.vue +25 -0
  47. package/dist/runtime/{form/components/renderer/form-field-error.vue.d.ts → file-preview/components/shell/file-preview-details.vue.d.ts} +4 -2
  48. package/dist/runtime/file-preview/components/shell/file-preview-header.d.vue.ts +44 -0
  49. package/dist/runtime/file-preview/components/shell/file-preview-header.vue +163 -0
  50. package/dist/runtime/file-preview/components/shell/file-preview-header.vue.d.ts +44 -0
  51. package/dist/runtime/file-preview/components/shell/file-preview-message.d.vue.ts +21 -0
  52. package/dist/runtime/file-preview/components/shell/file-preview-message.vue +49 -0
  53. package/dist/runtime/file-preview/components/shell/file-preview-message.vue.d.ts +21 -0
  54. package/dist/runtime/file-preview/components/shell/file-preview-shell.d.vue.ts +17 -0
  55. package/dist/runtime/file-preview/components/shell/file-preview-shell.vue +280 -0
  56. package/dist/runtime/file-preview/components/shell/file-preview-shell.vue.d.ts +17 -0
  57. package/dist/runtime/file-preview/components/shell/file-preview-stage.d.vue.ts +37 -0
  58. package/dist/runtime/file-preview/components/shell/file-preview-stage.vue +173 -0
  59. package/dist/runtime/file-preview/components/shell/file-preview-stage.vue.d.ts +37 -0
  60. package/dist/runtime/file-preview/components/shell/file-preview-thumb.d.vue.ts +14 -0
  61. package/dist/runtime/file-preview/components/shell/file-preview-thumb.vue +69 -0
  62. package/dist/runtime/file-preview/components/shell/file-preview-thumb.vue.d.ts +14 -0
  63. package/dist/runtime/file-preview/components/shell/file-preview-tools.d.vue.ts +13 -0
  64. package/dist/runtime/file-preview/components/shell/file-preview-tools.vue +10 -0
  65. package/dist/runtime/file-preview/components/shell/file-preview-tools.vue.d.ts +13 -0
  66. package/dist/runtime/file-preview/composables/use-file-preview-api.d.ts +21 -0
  67. package/dist/runtime/file-preview/composables/use-file-preview-api.js +83 -0
  68. package/dist/runtime/file-preview/composables/use-file-preview-shell.d.ts +13 -0
  69. package/dist/runtime/file-preview/composables/use-file-preview-shell.js +30 -0
  70. package/dist/runtime/file-preview/composables/use-file-preview-source.d.ts +17 -0
  71. package/dist/runtime/file-preview/composables/use-file-preview-source.js +51 -0
  72. package/dist/runtime/file-preview/composables/use-file-preview-text.d.ts +14 -0
  73. package/dist/runtime/file-preview/composables/use-file-preview-text.js +79 -0
  74. package/dist/runtime/file-preview/index.d.ts +5 -0
  75. package/dist/runtime/file-preview/index.js +14 -0
  76. package/dist/runtime/file-preview/plugins/file-preview-api.d.ts +11 -0
  77. package/dist/runtime/file-preview/plugins/file-preview-api.js +10 -0
  78. package/dist/runtime/file-preview/types/api.d.ts +74 -0
  79. package/dist/runtime/file-preview/types/api.js +0 -0
  80. package/dist/runtime/file-preview/types/file.d.ts +77 -0
  81. package/dist/runtime/file-preview/types/file.js +0 -0
  82. package/dist/runtime/file-preview/types/index.d.ts +4 -0
  83. package/dist/runtime/file-preview/types/index.js +0 -0
  84. package/dist/runtime/file-preview/types/renderer.d.ts +49 -0
  85. package/dist/runtime/file-preview/types/renderer.js +0 -0
  86. package/dist/runtime/file-preview/types/shell.d.ts +12 -0
  87. package/dist/runtime/file-preview/types/shell.js +0 -0
  88. package/dist/runtime/file-preview/utils/container.d.ts +4 -0
  89. package/dist/runtime/file-preview/utils/container.js +10 -0
  90. package/dist/runtime/file-preview/utils/csv.d.ts +17 -0
  91. package/dist/runtime/file-preview/utils/csv.js +53 -0
  92. package/dist/runtime/file-preview/utils/download.d.ts +8 -0
  93. package/dist/runtime/file-preview/utils/download.js +40 -0
  94. package/dist/runtime/file-preview/utils/files.d.ts +7 -0
  95. package/dist/runtime/file-preview/utils/files.js +53 -0
  96. package/dist/runtime/file-preview/utils/format.d.ts +13 -0
  97. package/dist/runtime/file-preview/utils/format.js +40 -0
  98. package/dist/runtime/file-preview/utils/instance.d.ts +9 -0
  99. package/dist/runtime/file-preview/utils/instance.js +57 -0
  100. package/dist/runtime/file-preview/utils/renderers.d.ts +36 -0
  101. package/dist/runtime/file-preview/utils/renderers.js +247 -0
  102. package/dist/runtime/form/components/page/form-page-header.d.vue.ts +3 -1
  103. package/dist/runtime/form/components/page/form-page-header.vue +4 -4
  104. package/dist/runtime/form/components/page/form-page-header.vue.d.ts +3 -1
  105. package/dist/runtime/form/components/page/form-page-navigation.vue +2 -1
  106. package/dist/runtime/form/components/page/form-page-section.vue +15 -7
  107. package/dist/runtime/form/components/page/form-page.vue +0 -1
  108. package/dist/runtime/form/components/utils/form-file-preview.vue +5 -38
  109. package/dist/runtime/form/composables/use-field-control.d.ts +1 -1
  110. package/dist/runtime/form/composables/use-form-page.js +3 -1
  111. package/dist/runtime/form/composables/use-form-runtime.js +3 -0
  112. package/dist/runtime/form/composables/use-form-upload-registry.d.ts +2 -0
  113. package/dist/runtime/form/composables/use-form-upload-registry.js +11 -6
  114. package/dist/runtime/form/composables/use-form-validation.js +5 -1
  115. package/dist/runtime/form/fields/array-list/use-array-items.d.ts +1 -1
  116. package/dist/runtime/form/fields/array-table/array-table-cell.d.vue.ts +15 -0
  117. package/dist/runtime/form/fields/array-table/array-table-cell.vue +58 -0
  118. package/dist/runtime/form/fields/array-table/array-table-cell.vue.d.ts +15 -0
  119. package/dist/runtime/form/fields/array-table/component.vue +42 -26
  120. package/dist/runtime/form/fields/date/types.d.ts +6 -1
  121. package/dist/runtime/form/fields/date-family/component.vue +7 -1
  122. package/dist/runtime/form/fields/date-family/utils.d.ts +8 -1
  123. package/dist/runtime/form/fields/date-family/utils.js +10 -2
  124. package/dist/runtime/form/fields/hidden/types.d.ts +8 -1
  125. package/dist/runtime/form/fields/upload/component.vue +55 -176
  126. package/dist/runtime/form/fields/upload/types.d.ts +68 -3
  127. package/dist/runtime/form/fields/upload/upload-item.d.vue.ts +24 -0
  128. package/dist/runtime/form/fields/upload/upload-item.vue +158 -0
  129. package/dist/runtime/form/fields/upload/upload-item.vue.d.ts +24 -0
  130. package/dist/runtime/form/fields/upload/use-upload-items.d.ts +44 -0
  131. package/dist/runtime/form/fields/upload/use-upload-items.js +317 -0
  132. package/dist/runtime/form/types/callbacks.d.ts +8 -2
  133. package/dist/runtime/form/types/controller.d.ts +6 -3
  134. package/dist/runtime/form/types/field-base.d.ts +5 -5
  135. package/dist/runtime/form/types/field-output-utils.d.ts +12 -1
  136. package/dist/runtime/form/types/field-output.d.ts +1 -1
  137. package/dist/runtime/form/types/field.d.ts +3 -2
  138. package/dist/runtime/form/types/form-api.d.ts +4 -2
  139. package/dist/runtime/form/types/options-runtime.d.ts +8 -4
  140. package/dist/runtime/form/types/options.d.ts +11 -11
  141. package/dist/runtime/form/types/output.d.ts +33 -10
  142. package/dist/runtime/form/types/page.d.ts +7 -3
  143. package/dist/runtime/form/types/transform.d.ts +5 -2
  144. package/dist/runtime/form/types/ui.d.ts +7 -3
  145. package/dist/runtime/form/types/upload-runtime.d.ts +4 -0
  146. package/dist/runtime/form/utils/page.js +24 -5
  147. package/dist/runtime/form/utils/state.js +14 -11
  148. package/dist/runtime/i18n/locales/en.js +104 -1
  149. package/dist/runtime/i18n/locales/fr.js +104 -1
  150. package/dist/runtime/i18n/types.d.ts +121 -0
  151. package/dist/runtime/query-state/composables.d.ts +2 -2
  152. package/dist/runtime/shared/styles/tokens.css +1 -1
  153. package/dist/runtime/shared/types/utils.d.ts +12 -4
  154. package/dist/runtime/shared/utils/file.d.ts +11 -0
  155. package/dist/runtime/shared/utils/file.js +50 -0
  156. package/dist/runtime/table/components/table/table-renderer.vue +23 -3
  157. package/dist/runtime/table/components/table/table-skeleton-cell.js +2 -2
  158. package/dist/runtime/table/components/utils/search-query-input.d.vue.ts +5 -1
  159. package/dist/runtime/table/components/utils/search-query-input.vue +17 -3
  160. package/dist/runtime/table/components/utils/search-query-input.vue.d.ts +5 -1
  161. package/package.json +56 -29
  162. package/dist/runtime/form/components/renderer/form-field-error.vue +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-tools",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
5
5
  "homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
6
6
  "bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
@@ -23,6 +23,9 @@
23
23
  "dashboard": [
24
24
  "./dist/runtime/dashboard/index.d.ts"
25
25
  ],
26
+ "file-preview": [
27
+ "./dist/runtime/file-preview/index.d.ts"
28
+ ],
26
29
  "form": [
27
30
  "./dist/runtime/form/index.d.ts"
28
31
  ],
@@ -52,6 +55,14 @@
52
55
  "types": "./dist/runtime/dashboard/*.d.ts",
53
56
  "default": "./dist/runtime/dashboard/*.js"
54
57
  },
58
+ "#ui-tools/file-preview": {
59
+ "types": "./dist/runtime/file-preview/index.d.ts",
60
+ "default": "./dist/runtime/file-preview/index.js"
61
+ },
62
+ "#ui-tools/file-preview/*": {
63
+ "types": "./dist/runtime/file-preview/*.d.ts",
64
+ "default": "./dist/runtime/file-preview/*.js"
65
+ },
55
66
  "#ui-tools/form": {
56
67
  "types": "./dist/runtime/form/index.d.ts",
57
68
  "default": "./dist/runtime/form/index.js"
@@ -110,6 +121,10 @@
110
121
  "types": "./dist/runtime/dashboard/index.d.ts",
111
122
  "import": "./dist/runtime/dashboard/index.js"
112
123
  },
124
+ "./file-preview": {
125
+ "types": "./dist/runtime/file-preview/index.d.ts",
126
+ "import": "./dist/runtime/file-preview/index.js"
127
+ },
113
128
  "./form": {
114
129
  "types": "./dist/runtime/form/index.d.ts",
115
130
  "import": "./dist/runtime/form/index.js"
@@ -163,57 +178,63 @@
163
178
  "dev:prepare:table": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground-table"
164
179
  },
165
180
  "dependencies": {
166
- "@internationalized/date": "^3.12.3",
167
- "@nuxt/kit": "^4.5.2",
168
- "@regle/core": "1.29.1",
169
- "@regle/rules": "1.29.1",
170
- "@tanstack/pacer": "0.22.0",
171
- "@tanstack/vue-table": "9.2.3",
172
- "@tanstack/vue-virtual": "3.13.36",
173
- "@vueuse/core": "14.4.0",
181
+ "@nuxt/kit": "4.5.2",
182
+ "@regle/core": "1.29.3",
183
+ "@regle/rules": "1.29.3",
184
+ "@tanstack/vue-table": "9.2.4",
174
185
  "cookiejs": "2.1.4",
175
- "libphonenumber-js": "1.13.11",
186
+ "libphonenumber-js": "1.13.14",
176
187
  "maska": "3.2.1",
177
- "motion-v": "2.4.0",
178
- "nuxt-viewport": "2.6.0",
179
- "tailwind-merge": "^3.6.0"
188
+ "nuxt-viewport": "2.6.1"
180
189
  },
181
190
  "devDependencies": {
182
- "@nuxt/module-builder": "^1.0.3",
183
- "@nuxt/schema": "^4.5.2",
184
- "@nuxt/ui": "^4.10.0",
191
+ "@internationalized/date": "3.12.4",
192
+ "@nuxt/module-builder": "1.0.3",
193
+ "@nuxt/schema": "4.5.2",
194
+ "@nuxt/ui": "4.11.2",
185
195
  "@tailwindcss/vite": "4.3.3",
196
+ "@tanstack/vue-query": "5.104.0",
197
+ "@tanstack/vue-virtual": "3.13.39",
186
198
  "@tiptap/y-tiptap": "3.0.9",
187
- "@types/node": "25.4.0",
199
+ "@types/node": "26.6.3",
188
200
  "@unovis/ts": "1.7.0",
189
201
  "@unovis/vue": "1.7.0",
190
- "@vitejs/plugin-vue": "^6.0.8",
191
- "@vitejs/plugin-vue-jsx": "^5.1.6",
192
- "@vitest/browser-playwright": "4.1.11",
202
+ "@vitejs/plugin-vue": "6.0.9",
203
+ "@vitejs/plugin-vue-jsx": "5.1.6",
204
+ "@vitest/browser-playwright": "5.0.2",
193
205
  "@vue/test-utils": "2.5.1",
194
- "changelogen": "^0.6.2",
206
+ "@vueuse/core": "14.4.0",
207
+ "changelogen": "0.6.2",
195
208
  "happy-dom": "20.14.5",
196
- "nuxt": "^4.5.2",
197
- "oxfmt": "0.64.0",
198
- "oxlint": "^1.82.0",
209
+ "nuxt": "4.5.2",
210
+ "oxfmt": "0.70.0",
211
+ "oxlint": "1.85.0",
199
212
  "playwright": "1.63.0",
200
- "typescript": "~5.9.3",
201
- "ultracite": "7.12.0",
202
- "vitest": "^4.1.11",
203
- "vue-tsc": "^3.3.10",
213
+ "tailwind-merge": "3.7.0",
214
+ "tailwindcss": "4.3.3",
215
+ "typescript": "6.0.3",
216
+ "ultracite": "7.12.1",
217
+ "vitest": "5.0.2",
218
+ "vue-draggable-plus": "0.6.1",
219
+ "vue-tsc": "3.3.11",
204
220
  "xlsx": "0.18.5"
205
221
  },
206
222
  "peerDependencies": {
223
+ "@internationalized/date": ">=3.12.0",
207
224
  "@nuxt/ui": ">=4.10.0",
208
225
  "@tanstack/vue-query": ">=5.101.4",
226
+ "@tanstack/vue-virtual": ">=3.13.0",
209
227
  "@unovis/ts": ">=1.6.0",
210
228
  "@unovis/vue": ">=1.6.0",
229
+ "@vueuse/core": ">=14.0.0",
211
230
  "nuxt": ">=4.5.2",
231
+ "tailwind-merge": ">=3.0.0",
212
232
  "tailwindcss": ">=4.3.3",
213
233
  "typescript": ">=5.9.0",
214
234
  "vue": ">=3.5.41",
215
235
  "vue-draggable-plus": ">=0.6.1",
216
- "vue-router": ">=4.6.4"
236
+ "vue-router": ">=4.6.4",
237
+ "xlsx": ">=0.18.5"
217
238
  },
218
239
  "peerDependenciesMeta": {
219
240
  "@unovis/ts": {
@@ -221,6 +242,12 @@
221
242
  },
222
243
  "@unovis/vue": {
223
244
  "optional": true
245
+ },
246
+ "vue-draggable-plus": {
247
+ "optional": true
248
+ },
249
+ "xlsx": {
250
+ "optional": true
224
251
  }
225
252
  },
226
253
  "overrides": {
@@ -1,16 +0,0 @@
1
- <script setup>
2
- import { computed } from "vue";
3
- import { useFormRuntimeContext } from "../../composables/use-form-runtime";
4
- const props = defineProps({
5
- path: { type: Array, required: true },
6
- class: { type: String, required: false }
7
- });
8
- const form = useFormRuntimeContext();
9
- const message = computed(() => form.getFieldError(props.path));
10
- </script>
11
-
12
- <template>
13
- <p v-if="message" :class="props.class" :data-form-cell-error="path.join('.')">
14
- {{ message }}
15
- </p>
16
- </template>