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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +18 -0
- package/dist/runtime/file-preview/components/provider/file-preview-host.d.vue.ts +7 -0
- package/dist/runtime/file-preview/components/provider/file-preview-host.vue +147 -0
- package/dist/runtime/file-preview/components/provider/file-preview-host.vue.d.ts +7 -0
- package/dist/runtime/file-preview/components/provider/file-preview-provider.d.vue.ts +21 -0
- package/dist/runtime/file-preview/components/provider/file-preview-provider.vue +23 -0
- package/dist/runtime/file-preview/components/provider/file-preview-provider.vue.d.ts +21 -0
- package/dist/runtime/file-preview/components/renderers/audio-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/audio-renderer.vue +83 -0
- package/dist/runtime/file-preview/components/renderers/audio-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/csv-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/csv-renderer.vue +116 -0
- package/dist/runtime/file-preview/components/renderers/csv-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/fallback-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/fallback-renderer.vue +41 -0
- package/dist/runtime/file-preview/components/renderers/fallback-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/file-preview-code.d.vue.ts +9 -0
- package/dist/runtime/file-preview/components/renderers/file-preview-code.vue +83 -0
- package/dist/runtime/file-preview/components/renderers/file-preview-code.vue.d.ts +9 -0
- package/dist/runtime/file-preview/components/renderers/file-preview-text-loading.d.vue.ts +3 -0
- package/dist/runtime/file-preview/components/renderers/file-preview-text-loading.vue +14 -0
- package/dist/runtime/file-preview/components/renderers/file-preview-text-loading.vue.d.ts +3 -0
- package/dist/runtime/file-preview/components/renderers/image-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/image-renderer.vue +182 -0
- package/dist/runtime/file-preview/components/renderers/image-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/markdown-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/markdown-renderer.vue +78 -0
- package/dist/runtime/file-preview/components/renderers/markdown-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/media-controls.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/media-controls.vue +145 -0
- package/dist/runtime/file-preview/components/renderers/media-controls.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/pdf-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/pdf-renderer.vue +58 -0
- package/dist/runtime/file-preview/components/renderers/pdf-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/text-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/text-renderer.vue +41 -0
- package/dist/runtime/file-preview/components/renderers/text-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/video-renderer.d.vue.ts +10 -0
- package/dist/runtime/file-preview/components/renderers/video-renderer.vue +110 -0
- package/dist/runtime/file-preview/components/renderers/video-renderer.vue.d.ts +10 -0
- package/dist/runtime/file-preview/components/shell/file-preview-button.d.vue.ts +16 -0
- package/dist/runtime/file-preview/components/shell/file-preview-button.vue +40 -0
- package/dist/runtime/file-preview/components/shell/file-preview-button.vue.d.ts +16 -0
- package/dist/runtime/{form/components/renderer/form-field-error.d.vue.ts → file-preview/components/shell/file-preview-details.d.vue.ts} +4 -2
- package/dist/runtime/file-preview/components/shell/file-preview-details.vue +25 -0
- package/dist/runtime/{form/components/renderer/form-field-error.vue.d.ts → file-preview/components/shell/file-preview-details.vue.d.ts} +4 -2
- package/dist/runtime/file-preview/components/shell/file-preview-header.d.vue.ts +44 -0
- package/dist/runtime/file-preview/components/shell/file-preview-header.vue +163 -0
- package/dist/runtime/file-preview/components/shell/file-preview-header.vue.d.ts +44 -0
- package/dist/runtime/file-preview/components/shell/file-preview-message.d.vue.ts +21 -0
- package/dist/runtime/file-preview/components/shell/file-preview-message.vue +49 -0
- package/dist/runtime/file-preview/components/shell/file-preview-message.vue.d.ts +21 -0
- package/dist/runtime/file-preview/components/shell/file-preview-shell.d.vue.ts +17 -0
- package/dist/runtime/file-preview/components/shell/file-preview-shell.vue +280 -0
- package/dist/runtime/file-preview/components/shell/file-preview-shell.vue.d.ts +17 -0
- package/dist/runtime/file-preview/components/shell/file-preview-stage.d.vue.ts +37 -0
- package/dist/runtime/file-preview/components/shell/file-preview-stage.vue +173 -0
- package/dist/runtime/file-preview/components/shell/file-preview-stage.vue.d.ts +37 -0
- package/dist/runtime/file-preview/components/shell/file-preview-thumb.d.vue.ts +14 -0
- package/dist/runtime/file-preview/components/shell/file-preview-thumb.vue +69 -0
- package/dist/runtime/file-preview/components/shell/file-preview-thumb.vue.d.ts +14 -0
- package/dist/runtime/file-preview/components/shell/file-preview-tools.d.vue.ts +13 -0
- package/dist/runtime/file-preview/components/shell/file-preview-tools.vue +10 -0
- package/dist/runtime/file-preview/components/shell/file-preview-tools.vue.d.ts +13 -0
- package/dist/runtime/file-preview/composables/use-file-preview-api.d.ts +21 -0
- package/dist/runtime/file-preview/composables/use-file-preview-api.js +83 -0
- package/dist/runtime/file-preview/composables/use-file-preview-shell.d.ts +13 -0
- package/dist/runtime/file-preview/composables/use-file-preview-shell.js +30 -0
- package/dist/runtime/file-preview/composables/use-file-preview-source.d.ts +17 -0
- package/dist/runtime/file-preview/composables/use-file-preview-source.js +51 -0
- package/dist/runtime/file-preview/composables/use-file-preview-text.d.ts +14 -0
- package/dist/runtime/file-preview/composables/use-file-preview-text.js +79 -0
- package/dist/runtime/file-preview/index.d.ts +5 -0
- package/dist/runtime/file-preview/index.js +14 -0
- package/dist/runtime/file-preview/plugins/file-preview-api.d.ts +11 -0
- package/dist/runtime/file-preview/plugins/file-preview-api.js +10 -0
- package/dist/runtime/file-preview/types/api.d.ts +74 -0
- package/dist/runtime/file-preview/types/api.js +0 -0
- package/dist/runtime/file-preview/types/file.d.ts +77 -0
- package/dist/runtime/file-preview/types/file.js +0 -0
- package/dist/runtime/file-preview/types/index.d.ts +4 -0
- package/dist/runtime/file-preview/types/index.js +0 -0
- package/dist/runtime/file-preview/types/renderer.d.ts +49 -0
- package/dist/runtime/file-preview/types/renderer.js +0 -0
- package/dist/runtime/file-preview/types/shell.d.ts +12 -0
- package/dist/runtime/file-preview/types/shell.js +0 -0
- package/dist/runtime/file-preview/utils/container.d.ts +4 -0
- package/dist/runtime/file-preview/utils/container.js +10 -0
- package/dist/runtime/file-preview/utils/csv.d.ts +17 -0
- package/dist/runtime/file-preview/utils/csv.js +53 -0
- package/dist/runtime/file-preview/utils/download.d.ts +8 -0
- package/dist/runtime/file-preview/utils/download.js +40 -0
- package/dist/runtime/file-preview/utils/files.d.ts +7 -0
- package/dist/runtime/file-preview/utils/files.js +53 -0
- package/dist/runtime/file-preview/utils/format.d.ts +13 -0
- package/dist/runtime/file-preview/utils/format.js +40 -0
- package/dist/runtime/file-preview/utils/instance.d.ts +9 -0
- package/dist/runtime/file-preview/utils/instance.js +57 -0
- package/dist/runtime/file-preview/utils/renderers.d.ts +36 -0
- package/dist/runtime/file-preview/utils/renderers.js +247 -0
- package/dist/runtime/form/components/page/form-page-header.d.vue.ts +3 -1
- package/dist/runtime/form/components/page/form-page-header.vue +4 -4
- package/dist/runtime/form/components/page/form-page-header.vue.d.ts +3 -1
- package/dist/runtime/form/components/page/form-page-navigation.vue +2 -1
- package/dist/runtime/form/components/page/form-page-section.vue +15 -7
- package/dist/runtime/form/components/page/form-page.vue +0 -1
- package/dist/runtime/form/components/utils/form-file-preview.vue +5 -38
- package/dist/runtime/form/composables/use-field-control.d.ts +1 -1
- package/dist/runtime/form/composables/use-form-page.js +3 -1
- package/dist/runtime/form/composables/use-form-runtime.js +3 -0
- package/dist/runtime/form/composables/use-form-upload-registry.d.ts +2 -0
- package/dist/runtime/form/composables/use-form-upload-registry.js +11 -6
- package/dist/runtime/form/composables/use-form-validation.js +5 -1
- package/dist/runtime/form/fields/array-list/use-array-items.d.ts +1 -1
- package/dist/runtime/form/fields/array-table/array-table-cell.d.vue.ts +15 -0
- package/dist/runtime/form/fields/array-table/array-table-cell.vue +58 -0
- package/dist/runtime/form/fields/array-table/array-table-cell.vue.d.ts +15 -0
- package/dist/runtime/form/fields/array-table/component.vue +42 -26
- package/dist/runtime/form/fields/date/types.d.ts +6 -1
- package/dist/runtime/form/fields/date-family/component.vue +7 -1
- package/dist/runtime/form/fields/date-family/utils.d.ts +8 -1
- package/dist/runtime/form/fields/date-family/utils.js +10 -2
- package/dist/runtime/form/fields/hidden/types.d.ts +8 -1
- package/dist/runtime/form/fields/upload/component.vue +55 -176
- package/dist/runtime/form/fields/upload/types.d.ts +68 -3
- package/dist/runtime/form/fields/upload/upload-item.d.vue.ts +24 -0
- package/dist/runtime/form/fields/upload/upload-item.vue +158 -0
- package/dist/runtime/form/fields/upload/upload-item.vue.d.ts +24 -0
- package/dist/runtime/form/fields/upload/use-upload-items.d.ts +44 -0
- package/dist/runtime/form/fields/upload/use-upload-items.js +317 -0
- package/dist/runtime/form/types/callbacks.d.ts +8 -2
- package/dist/runtime/form/types/controller.d.ts +6 -3
- package/dist/runtime/form/types/field-base.d.ts +5 -5
- package/dist/runtime/form/types/field-output-utils.d.ts +12 -1
- package/dist/runtime/form/types/field-output.d.ts +1 -1
- package/dist/runtime/form/types/field.d.ts +3 -2
- package/dist/runtime/form/types/form-api.d.ts +4 -2
- package/dist/runtime/form/types/options-runtime.d.ts +8 -4
- package/dist/runtime/form/types/options.d.ts +11 -11
- package/dist/runtime/form/types/output.d.ts +33 -10
- package/dist/runtime/form/types/page.d.ts +7 -3
- package/dist/runtime/form/types/transform.d.ts +5 -2
- package/dist/runtime/form/types/ui.d.ts +7 -3
- package/dist/runtime/form/types/upload-runtime.d.ts +4 -0
- package/dist/runtime/form/utils/page.js +24 -5
- package/dist/runtime/form/utils/state.js +14 -11
- package/dist/runtime/i18n/locales/en.js +104 -1
- package/dist/runtime/i18n/locales/fr.js +104 -1
- package/dist/runtime/i18n/types.d.ts +121 -0
- package/dist/runtime/query-state/composables.d.ts +2 -2
- package/dist/runtime/shared/styles/tokens.css +1 -1
- package/dist/runtime/shared/types/utils.d.ts +12 -4
- package/dist/runtime/shared/utils/file.d.ts +11 -0
- package/dist/runtime/shared/utils/file.js +50 -0
- package/dist/runtime/table/components/table/table-renderer.vue +23 -3
- package/dist/runtime/table/components/table/table-skeleton-cell.js +2 -2
- package/dist/runtime/table/components/utils/search-query-input.d.vue.ts +5 -1
- package/dist/runtime/table/components/utils/search-query-input.vue +17 -3
- package/dist/runtime/table/components/utils/search-query-input.vue.d.ts +5 -1
- package/package.json +56 -29
- 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.
|
|
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
|
-
"@
|
|
167
|
-
"@
|
|
168
|
-
"@regle/
|
|
169
|
-
"@
|
|
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.
|
|
186
|
+
"libphonenumber-js": "1.13.14",
|
|
176
187
|
"maska": "3.2.1",
|
|
177
|
-
"
|
|
178
|
-
"nuxt-viewport": "2.6.0",
|
|
179
|
-
"tailwind-merge": "^3.6.0"
|
|
188
|
+
"nuxt-viewport": "2.6.1"
|
|
180
189
|
},
|
|
181
190
|
"devDependencies": {
|
|
182
|
-
"@
|
|
183
|
-
"@nuxt/
|
|
184
|
-
"@nuxt/
|
|
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": "
|
|
199
|
+
"@types/node": "26.6.3",
|
|
188
200
|
"@unovis/ts": "1.7.0",
|
|
189
201
|
"@unovis/vue": "1.7.0",
|
|
190
|
-
"@vitejs/plugin-vue": "
|
|
191
|
-
"@vitejs/plugin-vue-jsx": "
|
|
192
|
-
"@vitest/browser-playwright": "
|
|
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
|
-
"
|
|
206
|
+
"@vueuse/core": "14.4.0",
|
|
207
|
+
"changelogen": "0.6.2",
|
|
195
208
|
"happy-dom": "20.14.5",
|
|
196
|
-
"nuxt": "
|
|
197
|
-
"oxfmt": "0.
|
|
198
|
-
"oxlint": "
|
|
209
|
+
"nuxt": "4.5.2",
|
|
210
|
+
"oxfmt": "0.70.0",
|
|
211
|
+
"oxlint": "1.85.0",
|
|
199
212
|
"playwright": "1.63.0",
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
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>
|