v-nuxt-ui 0.1.34 → 0.1.36

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 (50) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/EChart.client.vue +13 -6
  3. package/dist/runtime/components/SqlEditor.d.vue.ts +1 -1
  4. package/dist/runtime/components/SqlEditor.vue.d.ts +1 -1
  5. package/dist/runtime/components/button/Dropdown.vue +5 -1
  6. package/dist/runtime/components/date-picker/Input.d.vue.ts +9 -1
  7. package/dist/runtime/components/date-picker/Input.vue +55 -11
  8. package/dist/runtime/components/date-picker/Input.vue.d.ts +9 -1
  9. package/dist/runtime/components/date-picker/index.vue +3 -3
  10. package/dist/runtime/components/form/field/DatePicker.vue +1 -1
  11. package/dist/runtime/components/sys/table/CreateModal.vue +31 -33
  12. package/dist/runtime/components/sys/table/Table.vue +6 -4
  13. package/dist/runtime/components/sys/user/Table.vue +44 -27
  14. package/dist/runtime/components/table/permission/TablePermissionConfig.d.vue.ts +2 -2
  15. package/dist/runtime/components/table/permission/TablePermissionConfig.vue +3 -3
  16. package/dist/runtime/components/table/permission/TablePermissionConfig.vue.d.ts +2 -2
  17. package/dist/runtime/components/table/permission/TablePermissionTab.vue +7 -4
  18. package/dist/runtime/components/table/query/order/Item.d.vue.ts +2 -2
  19. package/dist/runtime/components/table/query/order/Item.vue.d.ts +2 -2
  20. package/dist/runtime/components/table/query/where/Newer.vue +2 -0
  21. package/dist/runtime/components/table/query/where/index.vue +46 -15
  22. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue +9 -4
  23. package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue +3 -3
  24. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue +45 -48
  25. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue +137 -131
  26. package/dist/runtime/components/table/query/where/simple/item/opr/Select.d.vue.ts +4 -2
  27. package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue +40 -40
  28. package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue.d.ts +4 -2
  29. package/dist/runtime/components/table/query/where/simple/item/opr/index.vue +2 -0
  30. package/dist/runtime/components/table/settings/TableSettings.d.vue.ts +1 -1
  31. package/dist/runtime/components/table/settings/TableSettings.vue +0 -3
  32. package/dist/runtime/components/table/settings/TableSettings.vue.d.ts +1 -1
  33. package/dist/runtime/composables/api/sys/useRoleApi.js +3 -1
  34. package/dist/runtime/composables/api/sys/useUserApi.js +3 -1
  35. package/dist/runtime/composables/useDate.js +8 -8
  36. package/dist/runtime/composables/useEChart.d.ts +1 -3
  37. package/dist/runtime/composables/useEChart.js +155 -33
  38. package/dist/runtime/constants/index.d.ts +1 -0
  39. package/dist/runtime/constants/index.js +1 -0
  40. package/dist/runtime/constants/options.js +2 -3
  41. package/dist/runtime/constants/table.d.ts +2 -0
  42. package/dist/runtime/constants/table.js +8 -0
  43. package/dist/runtime/types/components/table/column.d.ts +4 -3
  44. package/dist/runtime/types/components/table/query/where.d.ts +1 -5
  45. package/dist/runtime/types/storage.d.ts +2 -1
  46. package/dist/runtime/types/storage.js +1 -0
  47. package/package.json +1 -1
  48. package/dist/runtime/components/table/query/where/simple/index.d.vue.ts +0 -21
  49. package/dist/runtime/components/table/query/where/simple/index.vue +0 -52
  50. package/dist/runtime/components/table/query/where/simple/index.vue.d.ts +0 -21
@@ -1,21 +0,0 @@
1
- import type { WhereSimpleQueryProps } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: import("vue").PublicProps & __VLS_PrettifyLocal<WhereSimpleQueryProps<T>> & (typeof globalThis extends {
4
- __VLS_PROPS_FALLBACK: infer P;
5
- } ? P : {});
6
- expose: (exposed: import("vue").ShallowUnwrapRef<{
7
- focusItem: (field: string) => boolean;
8
- }>) => void;
9
- attrs: any;
10
- slots: {};
11
- emit: {};
12
- }>) => import("vue").VNode & {
13
- __ctx?: Awaited<typeof __VLS_setup>;
14
- };
15
- declare const _default: typeof __VLS_export;
16
- export default _default;
17
- type __VLS_PrettifyLocal<T> = (T extends any ? {
18
- [K in keyof T]: T[K];
19
- } : {
20
- [K in keyof T as K]: T[K];
21
- }) & {};
@@ -1,52 +0,0 @@
1
- <script setup>
2
- import { ref } from "vue";
3
- import TableQueryWhereSimpleItem from "#v/components/table/query/where/simple/item/index.vue";
4
- const props = defineProps({
5
- items: { type: Array, required: false },
6
- onUpdateItems: { type: Function, required: true },
7
- whereOptions: { type: Array, required: true },
8
- fetching: { type: Boolean, required: false },
9
- triggerFetching: { type: Function, required: true },
10
- bizColumns: { type: Array, required: false }
11
- });
12
- const onRemoveFilter = (field) => {
13
- props.onUpdateItems(props.items?.filter((query) => query.field !== field) ?? []);
14
- };
15
- const itemRefMap = ref(/* @__PURE__ */ new Map());
16
- function setItemRef(field, el) {
17
- if (el && "focus" in el && typeof el.focus === "function") {
18
- itemRefMap.value.set(field, el);
19
- }
20
- }
21
- defineExpose({
22
- focusItem: (field) => {
23
- const item = itemRefMap.value.get(field);
24
- if (item) {
25
- item.focus();
26
- return true;
27
- }
28
- return false;
29
- }
30
- });
31
- </script>
32
-
33
- <template>
34
- <div class="flex flex-wrap gap-2.5">
35
- <!-- key如果是field,那么field修改后,不能聚焦后面的组件,所以这里的key用idx代替 -->
36
- <TableQueryWhereSimpleItem
37
- v-for="(item, idx) in items"
38
- :ref="(el) => setItemRef(item.field, el)"
39
- :key="idx"
40
- :where-query-item="item"
41
- :options="whereOptions"
42
- :fetching="fetching"
43
- :trigger-fetching="() => triggerFetching(true)"
44
- @remove="onRemoveFilter"
45
- @update:where-query-item="(newWhereQueryItem) => {
46
- const updatedItems = [...props.items ?? []];
47
- updatedItems[idx] = newWhereQueryItem;
48
- props.onUpdateItems(updatedItems);
49
- }"
50
- />
51
- </div>
52
- </template>
@@ -1,21 +0,0 @@
1
- import type { WhereSimpleQueryProps } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: import("vue").PublicProps & __VLS_PrettifyLocal<WhereSimpleQueryProps<T>> & (typeof globalThis extends {
4
- __VLS_PROPS_FALLBACK: infer P;
5
- } ? P : {});
6
- expose: (exposed: import("vue").ShallowUnwrapRef<{
7
- focusItem: (field: string) => boolean;
8
- }>) => void;
9
- attrs: any;
10
- slots: {};
11
- emit: {};
12
- }>) => import("vue").VNode & {
13
- __ctx?: Awaited<typeof __VLS_setup>;
14
- };
15
- declare const _default: typeof __VLS_export;
16
- export default _default;
17
- type __VLS_PrettifyLocal<T> = (T extends any ? {
18
- [K in keyof T]: T[K];
19
- } : {
20
- [K in keyof T as K]: T[K];
21
- }) & {};