nuxt-ui-tools 1.18.0 → 1.19.0

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 (74) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/form/components/page/form-page-header.d.vue.ts +3 -1
  3. package/dist/runtime/form/components/page/form-page-header.vue +44 -34
  4. package/dist/runtime/form/components/page/form-page-header.vue.d.ts +3 -1
  5. package/dist/runtime/form/components/page/form-page.vue +2 -1
  6. package/dist/runtime/form/components/utils/form-option-choice-label.d.vue.ts +16 -0
  7. package/dist/runtime/form/components/utils/form-option-choice-label.vue +37 -0
  8. package/dist/runtime/form/components/utils/form-option-choice-label.vue.d.ts +16 -0
  9. package/dist/runtime/form/components/utils/form-option-display-value.d.vue.ts +14 -0
  10. package/dist/runtime/form/components/utils/form-option-display-value.vue +20 -0
  11. package/dist/runtime/form/components/utils/form-option-display-value.vue.d.ts +14 -0
  12. package/dist/runtime/form/components/utils/form-option-item-label.d.vue.ts +9 -2
  13. package/dist/runtime/form/components/utils/form-option-item-label.vue +20 -13
  14. package/dist/runtime/form/components/utils/form-option-item-label.vue.d.ts +9 -2
  15. package/dist/runtime/form/components/utils/form-option-leading.d.vue.ts +23 -0
  16. package/dist/runtime/form/components/utils/form-option-leading.vue +41 -0
  17. package/dist/runtime/form/components/utils/form-option-leading.vue.d.ts +23 -0
  18. package/dist/runtime/form/components/utils/form-option-render.d.ts +11 -0
  19. package/dist/runtime/form/components/utils/form-option-render.js +5 -0
  20. package/dist/runtime/form/components/utils/form-option-suffix.d.vue.ts +8 -0
  21. package/dist/runtime/form/components/utils/form-option-suffix.vue +15 -0
  22. package/dist/runtime/form/components/utils/form-option-suffix.vue.d.ts +8 -0
  23. package/dist/runtime/form/components/utils/form-option-value-overlay.d.vue.ts +30 -0
  24. package/dist/runtime/form/components/utils/form-option-value-overlay.vue +44 -0
  25. package/dist/runtime/form/components/utils/form-option-value-overlay.vue.d.ts +30 -0
  26. package/dist/runtime/form/composables/use-choice-group-items.d.ts +27 -0
  27. package/dist/runtime/form/composables/use-choice-group-items.js +24 -0
  28. package/dist/runtime/form/composables/use-field-control.d.ts +5 -5
  29. package/dist/runtime/form/composables/use-form-layout.js +4 -3
  30. package/dist/runtime/form/composables/use-option-menu.d.ts +20 -0
  31. package/dist/runtime/form/composables/use-option-menu.js +41 -0
  32. package/dist/runtime/form/fields/auto-complete/component.vue +92 -51
  33. package/dist/runtime/form/fields/auto-complete/config.d.ts +1 -0
  34. package/dist/runtime/form/fields/auto-complete/config.js +1 -1
  35. package/dist/runtime/form/fields/auto-complete/types.d.ts +2 -2
  36. package/dist/runtime/form/fields/checkbox-card/component.vue +3 -3
  37. package/dist/runtime/form/fields/checkbox-card/types.d.ts +3 -3
  38. package/dist/runtime/form/fields/checkbox-group/component.vue +18 -4
  39. package/dist/runtime/form/fields/checkbox-group/types.d.ts +2 -2
  40. package/dist/runtime/form/fields/choice-card/types.d.ts +3 -22
  41. package/dist/runtime/form/fields/choice-card/utils.d.ts +0 -17
  42. package/dist/runtime/form/fields/choice-card/utils.js +0 -11
  43. package/dist/runtime/form/fields/index.d.ts +2 -0
  44. package/dist/runtime/form/fields/radio/component.vue +19 -2
  45. package/dist/runtime/form/fields/radio/types.d.ts +2 -2
  46. package/dist/runtime/form/fields/radio-card/component.vue +3 -3
  47. package/dist/runtime/form/fields/radio-card/types.d.ts +3 -3
  48. package/dist/runtime/form/fields/select/component.vue +56 -58
  49. package/dist/runtime/form/fields/select/config.d.ts +1 -0
  50. package/dist/runtime/form/fields/select/config.js +1 -1
  51. package/dist/runtime/form/fields/select/types.d.ts +2 -2
  52. package/dist/runtime/form/types/layout.d.ts +6 -0
  53. package/dist/runtime/form/types/options.d.ts +137 -0
  54. package/dist/runtime/form/types/ui.d.ts +5 -0
  55. package/dist/runtime/form/utils/options.d.ts +37 -13
  56. package/dist/runtime/form/utils/options.js +71 -0
  57. package/dist/runtime/form/utils/page-surface.d.ts +5 -0
  58. package/dist/runtime/form/utils/page-surface.js +1 -0
  59. package/dist/runtime/spreadsheet/components/internal/spreadsheet-import-column-row.d.vue.ts +2 -2
  60. package/dist/runtime/spreadsheet/components/internal/spreadsheet-import-column-row.vue.d.ts +2 -2
  61. package/dist/runtime/table/components/filters/tags/boolean-filter-tag.d.vue.ts +2 -2
  62. package/dist/runtime/table/components/filters/tags/boolean-filter-tag.vue.d.ts +2 -2
  63. package/dist/runtime/table/components/filters/tags/date-filter-tag.d.vue.ts +2 -2
  64. package/dist/runtime/table/components/filters/tags/date-filter-tag.vue.d.ts +2 -2
  65. package/dist/runtime/table/components/filters/tags/number-filter-tag.d.vue.ts +2 -2
  66. package/dist/runtime/table/components/filters/tags/number-filter-tag.vue.d.ts +2 -2
  67. package/dist/runtime/table/components/filters/tags/option-filter-tag.d.vue.ts +2 -2
  68. package/dist/runtime/table/components/filters/tags/option-filter-tag.vue.d.ts +2 -2
  69. package/dist/runtime/table/components/filters/tags/text-filter-tag.d.vue.ts +2 -2
  70. package/dist/runtime/table/components/filters/tags/text-filter-tag.vue.d.ts +2 -2
  71. package/dist/runtime/table/types/remote-options.d.ts +4 -1
  72. package/dist/runtime/table/utils/data-list-ui.d.ts +1 -1
  73. package/dist/runtime/table/utils/remote-table-options.js +1 -1
  74. package/package.json +1 -1
@@ -27,12 +27,12 @@ type __VLS_Slots = {} & {
27
27
  trigger?: (props: typeof __VLS_10) => any;
28
28
  };
29
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- back: () => any;
31
30
  dismiss: () => any;
31
+ back: () => any;
32
32
  sessionClosed: () => any;
33
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
- onBack?: (() => any) | undefined;
35
34
  onDismiss?: (() => any) | undefined;
35
+ onBack?: (() => any) | undefined;
36
36
  onSessionClosed?: (() => any) | undefined;
37
37
  }>, {
38
38
  header: boolean;
@@ -27,12 +27,12 @@ type __VLS_Slots = {} & {
27
27
  trigger?: (props: typeof __VLS_10) => any;
28
28
  };
29
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- back: () => any;
31
30
  dismiss: () => any;
31
+ back: () => any;
32
32
  sessionClosed: () => any;
33
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
- onBack?: (() => any) | undefined;
35
34
  onDismiss?: (() => any) | undefined;
35
+ onBack?: (() => any) | undefined;
36
36
  onSessionClosed?: (() => any) | undefined;
37
37
  }>, {
38
38
  header: boolean;
@@ -29,12 +29,12 @@ type __VLS_Slots = {} & {
29
29
  trigger?: (props: typeof __VLS_10) => any;
30
30
  };
31
31
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
- back: () => any;
33
32
  dismiss: () => any;
33
+ back: () => any;
34
34
  sessionClosed: () => any;
35
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
- onBack?: (() => any) | undefined;
37
36
  onDismiss?: (() => any) | undefined;
37
+ onBack?: (() => any) | undefined;
38
38
  onSessionClosed?: (() => any) | undefined;
39
39
  }>, {
40
40
  header: boolean;
@@ -29,12 +29,12 @@ type __VLS_Slots = {} & {
29
29
  trigger?: (props: typeof __VLS_10) => any;
30
30
  };
31
31
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
- back: () => any;
33
32
  dismiss: () => any;
33
+ back: () => any;
34
34
  sessionClosed: () => any;
35
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
- onBack?: (() => any) | undefined;
37
36
  onDismiss?: (() => any) | undefined;
37
+ onBack?: (() => any) | undefined;
38
38
  onSessionClosed?: (() => any) | undefined;
39
39
  }>, {
40
40
  header: boolean;
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
28
28
  trigger?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- back: () => any;
32
31
  dismiss: () => any;
32
+ back: () => any;
33
33
  sessionClosed: () => any;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onBack?: (() => any) | undefined;
36
35
  onDismiss?: (() => any) | undefined;
36
+ onBack?: (() => any) | undefined;
37
37
  onSessionClosed?: (() => any) | undefined;
38
38
  }>, {
39
39
  header: boolean;
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
28
28
  trigger?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- back: () => any;
32
31
  dismiss: () => any;
32
+ back: () => any;
33
33
  sessionClosed: () => any;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onBack?: (() => any) | undefined;
36
35
  onDismiss?: (() => any) | undefined;
36
+ onBack?: (() => any) | undefined;
37
37
  onSessionClosed?: (() => any) | undefined;
38
38
  }>, {
39
39
  header: boolean;
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
28
28
  trigger?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- back: () => any;
32
31
  dismiss: () => any;
32
+ back: () => any;
33
33
  sessionClosed: () => any;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onBack?: (() => any) | undefined;
36
35
  onDismiss?: (() => any) | undefined;
36
+ onBack?: (() => any) | undefined;
37
37
  onSessionClosed?: (() => any) | undefined;
38
38
  }>, {
39
39
  header: boolean;
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
28
28
  trigger?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- back: () => any;
32
31
  dismiss: () => any;
32
+ back: () => any;
33
33
  sessionClosed: () => any;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onBack?: (() => any) | undefined;
36
35
  onDismiss?: (() => any) | undefined;
36
+ onBack?: (() => any) | undefined;
37
37
  onSessionClosed?: (() => any) | undefined;
38
38
  }>, {
39
39
  header: boolean;
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
28
28
  trigger?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- back: () => any;
32
31
  dismiss: () => any;
32
+ back: () => any;
33
33
  sessionClosed: () => any;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onBack?: (() => any) | undefined;
36
35
  onDismiss?: (() => any) | undefined;
36
+ onBack?: (() => any) | undefined;
37
37
  onSessionClosed?: (() => any) | undefined;
38
38
  }>, {
39
39
  header: boolean;
@@ -28,12 +28,12 @@ type __VLS_Slots = {} & {
28
28
  trigger?: (props: typeof __VLS_10) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- back: () => any;
32
31
  dismiss: () => any;
32
+ back: () => any;
33
33
  sessionClosed: () => any;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onBack?: (() => any) | undefined;
36
35
  onDismiss?: (() => any) | undefined;
36
+ onBack?: (() => any) | undefined;
37
37
  onSessionClosed?: (() => any) | undefined;
38
38
  }>, {
39
39
  header: boolean;
@@ -39,7 +39,10 @@ export interface RemoteTableOptionsConfig<TRow extends GenericObject, TOption ex
39
39
  * values the loaded pages do not contain. Defaults to `'id'`.
40
40
  */
41
41
  valueKey?: TableKnownFieldPath<TRow> | 'id';
42
- /** Filters applied to every request, e.g. active accounts only. */
42
+ /**
43
+ * Filters applied to every page request, e.g. active accounts only. The lookup of selected
44
+ * values ignores them, so a value the filters now exclude still shows its label.
45
+ */
43
46
  filters?: readonly TableResolvedFilterGroup<TableKnownFieldPath<TRow> | string>[];
44
47
  /** Page type and size. Must match what the endpoint pages by. Defaults to cursor pages of 25. */
45
48
  pagination?: RemoteOptionsPagination;
@@ -122,6 +122,6 @@ export declare function resolveDataListTableDensity(density: DataListDensity): {
122
122
  export declare function resolveDataListContentShellClass(options: {
123
123
  layout: 'table' | 'grid';
124
124
  surface: DataListContentSurface;
125
- }): "grid gap-5" | "overflow-hidden" | "grid gap-5 overflow-hidden rounded-md border border-default bg-default" | "overflow-hidden rounded-md border border-default bg-default";
125
+ }): "overflow-hidden" | "grid gap-5 overflow-hidden rounded-md border border-default bg-default" | "grid gap-5" | "overflow-hidden rounded-md border border-default bg-default";
126
126
  /** Merges application and root DataList defaults without losing nested UI slots. */
127
127
  export declare function mergeDataListUiConfig(appUi: DataListUiConfig | undefined, componentUi: DataListUiConfig | undefined, density?: DataListDensity, size?: DataListControlSize): DataListUiConfig;
@@ -8,7 +8,7 @@ export function remoteTableOptions(query, config) {
8
8
  function request(params) {
9
9
  const { page } = params;
10
10
  return {
11
- filters: [...config.filters ?? [], ...params.filters ?? []],
11
+ filters: params.filters ?? [...config.filters ?? []],
12
12
  pagination: pagination.type === "cursor" ? { count: "none", cursor: page.cursor, mode: "cursor", pageSize: page.size } : { count: "exact", mode: "offset", pageIndex: page.index - 1, pageSize: page.size },
13
13
  search: { fields: [...fields], value: params.search },
14
14
  sorting: params.filters ? [] : [...sorting]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-tools",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
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",