@wgalleti/primevue-components 0.28.1 → 0.30.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 (34) hide show
  1. package/dist/components/crud/WCrudFormDialog.vue.d.ts +11 -1
  2. package/dist/components/crud/WCrudView.vue.d.ts +5 -0
  3. package/dist/components/crud/WEditableTable.vue.d.ts +4 -4
  4. package/dist/components/form/WAutoCompleteFK.vue.d.ts +10 -0
  5. package/dist/components/form/WDatePicker.vue.d.ts +3 -0
  6. package/dist/components/form/WFormRenderer.vue.d.ts +1 -0
  7. package/dist/components/form/WMoneyInput.vue.d.ts +5 -0
  8. package/dist/components/form/WTreeSelect.vue.d.ts +1 -1
  9. package/dist/{components-BZNvfFed.js → components-B5nXaYtT.js} +2118 -1657
  10. package/dist/components-B5nXaYtT.js.map +1 -0
  11. package/dist/components-BQLHmQIB.cjs +25 -0
  12. package/dist/components-BQLHmQIB.cjs.map +1 -0
  13. package/dist/components.cjs +1 -1
  14. package/dist/components.js +1 -1
  15. package/dist/{composables-LdwFk9Ri.js → composables-CTH72sG4.js} +2 -2
  16. package/dist/{composables-LdwFk9Ri.js.map → composables-CTH72sG4.js.map} +1 -1
  17. package/dist/{composables-DPnCytUq.cjs → composables-DxLadKgY.cjs} +2 -2
  18. package/dist/{composables-DPnCytUq.cjs.map → composables-DxLadKgY.cjs.map} +1 -1
  19. package/dist/composables.cjs +1 -1
  20. package/dist/composables.js +2 -2
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +3 -3
  23. package/dist/primevue-components.css +1 -1
  24. package/dist/types/column.d.ts +12 -0
  25. package/dist/types/editableTable.d.ts +7 -2
  26. package/dist/types/field.d.ts +6 -0
  27. package/dist/{useFormKeyboardNav-BDVRfk3k.cjs → useFormKeyboardNav-DAtl5tBF.cjs} +2 -2
  28. package/dist/{useFormKeyboardNav-BDVRfk3k.cjs.map → useFormKeyboardNav-DAtl5tBF.cjs.map} +1 -1
  29. package/dist/{useFormKeyboardNav-DQW9gHzu.js → useFormKeyboardNav-Yj2HeWy5.js} +2 -2
  30. package/dist/{useFormKeyboardNav-DQW9gHzu.js.map → useFormKeyboardNav-Yj2HeWy5.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/components-BZNvfFed.js.map +0 -1
  33. package/dist/components-jGABNYAb.cjs +0 -25
  34. package/dist/components-jGABNYAb.cjs.map +0 -1
@@ -13,11 +13,15 @@ type __VLS_Props = {
13
13
  /** Navegação por teclado estilo desktop: foca o 1º campo ao abrir e o Enter
14
14
  * pula para o próximo campo até o botão de salvar. Opt-in. */
15
15
  keyboardNav?: boolean;
16
+ /** Largura da coluna do slot `#aside` (track do grid: `'24rem'`, `'2fr'`…).
17
+ * Default: metade do dialog. Só vale quando o slot está preenchido. */
18
+ asideWidth?: string;
16
19
  };
17
20
  declare var __VLS_23: `field-${string}`, __VLS_24: {
18
21
  field: FieldDef;
19
22
  formData: Record<string, unknown>;
20
23
  isEditing: boolean;
24
+ fieldId: string;
21
25
  setFormField: (f: string, v: unknown) => void;
22
26
  }, __VLS_28: `image-${string}`, __VLS_29: {
23
27
  field: FieldDef;
@@ -26,6 +30,9 @@ declare var __VLS_23: `field-${string}`, __VLS_24: {
26
30
  formData: Record<string, unknown>;
27
31
  isEditing: boolean;
28
32
  }, __VLS_33: {
33
+ formData: Record<string, unknown>;
34
+ isEditing: boolean;
35
+ }, __VLS_35: {
29
36
  saving: boolean;
30
37
  disabled: boolean;
31
38
  };
@@ -36,7 +43,9 @@ type __VLS_Slots = {} & {
36
43
  } & {
37
44
  'after-fields'?: (props: typeof __VLS_31) => any;
38
45
  } & {
39
- footer?: (props: typeof __VLS_33) => any;
46
+ aside?: (props: typeof __VLS_33) => any;
47
+ } & {
48
+ footer?: (props: typeof __VLS_35) => any;
40
49
  };
41
50
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
51
  "update:visible": (value: boolean) => any;
@@ -50,6 +59,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
50
59
  disabled: boolean;
51
60
  width: string;
52
61
  formColumns: number;
62
+ asideWidth: string;
53
63
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
64
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
55
65
  declare const _default: typeof __VLS_export;
@@ -8,6 +8,9 @@ type __VLS_Props = {
8
8
  subtitle?: string;
9
9
  showSearch?: boolean;
10
10
  showHeader?: boolean;
11
+ /** Esconde a contagem total do filtro que acompanha o título ("32 registros").
12
+ * Com `showHeader: false` a contagem vai para a toolbar. */
13
+ hideCount?: boolean;
11
14
  dialogWidth?: string;
12
15
  /** Nº de colunas do grid do form dialog (default: `formColumns` da config
13
16
  * do useCrudManager, senão 2). */
@@ -80,6 +83,7 @@ declare var __VLS_1: {}, __VLS_10: {}, __VLS_47: {
80
83
  field: FieldDef;
81
84
  formData: Record<string, unknown>;
82
85
  isEditing: boolean;
86
+ fieldId: string;
83
87
  setFormField: (f: string, v: unknown) => void;
84
88
  }, __VLS_359: {
85
89
  item: Record<string, unknown> | null;
@@ -144,6 +148,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
144
148
  showHeader: boolean;
145
149
  contextMenu: boolean;
146
150
  showSearch: boolean;
151
+ hideCount: boolean;
147
152
  autoInit: boolean;
148
153
  showKpi: boolean;
149
154
  kpiIcon: string;
@@ -57,17 +57,17 @@ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_8: `cell-${string}`, __
57
57
  index: number;
58
58
  value: unknown;
59
59
  column: EditableColumnDef;
60
- }, __VLS_32: {
60
+ }, __VLS_39: {
61
61
  row: EditableRow;
62
62
  index: number;
63
- }, __VLS_35: `footer-${string}`, __VLS_36: {
63
+ }, __VLS_42: `footer-${string}`, __VLS_43: {
64
64
  rows: EditableRow[];
65
65
  column: EditableColumnDef;
66
66
  };
67
67
  type __VLS_Slots = {} & {
68
68
  [K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9) => any;
69
69
  } & {
70
- [K in NonNullable<typeof __VLS_35>]?: (props: typeof __VLS_36) => any;
70
+ [K in NonNullable<typeof __VLS_42>]?: (props: typeof __VLS_43) => any;
71
71
  } & {
72
72
  toolbar?: (props: typeof __VLS_1) => any;
73
73
  } & {
@@ -75,7 +75,7 @@ type __VLS_Slots = {} & {
75
75
  } & {
76
76
  empty?: (props: typeof __VLS_5) => any;
77
77
  } & {
78
- expansion?: (props: typeof __VLS_32) => any;
78
+ expansion?: (props: typeof __VLS_39) => any;
79
79
  };
80
80
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
81
81
  add: () => any;
@@ -43,6 +43,10 @@ type __VLS_Props = {
43
43
  canCreate?: boolean;
44
44
  canEdit?: boolean;
45
45
  canDelete?: boolean;
46
+ /** Quando a lista (com os filtros/cascata atuais) tem **um** registro só, ele já
47
+ * entra selecionado — ao montar sem valor e ao preencher a cascata. Só no modo
48
+ * simples; limpar o campo não redispara. `false` desliga. */
49
+ autoSelectSingle?: boolean;
46
50
  crudFields?: FieldDef[];
47
51
  crudColumns?: ColumnDef[];
48
52
  /** Sub-linhas do grid do modal: recebe as linhas da página e devolve o mapa
@@ -54,6 +58,11 @@ type __VLS_Props = {
54
58
  * para que o `focus()` do PrimeVue Dialog (em onAfterEnter) o encontre e
55
59
  * não roube o foco para o botão de fechar. */
56
60
  autofocus?: boolean;
61
+ /** `id` do input de digitação — alvo do `<label for>` do formulário. */
62
+ inputId?: string;
63
+ /** Atributos extras no input de digitação (`aria-labelledby`, `aria-describedby`,
64
+ * `aria-required`, `aria-invalid`…). Vão direto no `<input>`, não no wrapper. */
65
+ inputAttrs?: Record<string, unknown>;
57
66
  };
58
67
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
68
  "update:modelValue": (value: Record<string, unknown> | Record<string, unknown>[] | null) => any;
@@ -72,6 +81,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
72
81
  canCreate: boolean;
73
82
  canEdit: boolean;
74
83
  canDelete: boolean;
84
+ autoSelectSingle: boolean;
75
85
  dialogWidth: string;
76
86
  autofocus: boolean;
77
87
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -21,6 +21,9 @@ type __VLS_Props = {
21
21
  placeholder?: string;
22
22
  invalid?: boolean;
23
23
  inputId?: string;
24
+ /** Atributos extras no `<input>` (`aria-labelledby`, `aria-describedby`,
25
+ * `aria-required`…). */
26
+ inputAttrs?: Record<string, unknown>;
24
27
  };
25
28
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
29
  "update:modelValue": (value: string | Date | null) => any;
@@ -23,6 +23,7 @@ declare var __VLS_2: `field-${string}`, __VLS_3: {
23
23
  field: FieldDef;
24
24
  formData: Record<string, unknown>;
25
25
  isEditing: boolean;
26
+ fieldId: string;
26
27
  setFormField: (f: string, v: unknown) => void;
27
28
  }, __VLS_27: `image-${string}`, __VLS_28: {
28
29
  field: FieldDef;
@@ -14,6 +14,11 @@ type __VLS_Props = {
14
14
  disabled?: boolean;
15
15
  placeholder?: string;
16
16
  invalid?: boolean;
17
+ /** `id` do `<input>` — alvo do `<label for>` do formulário. */
18
+ inputId?: string;
19
+ /** Atributos extras no `<input>` (`aria-labelledby`, `aria-describedby`,
20
+ * `aria-required`…). Sempre no input, mesmo quando há prefixo/sufixo. */
21
+ inputAttrs?: Record<string, unknown>;
17
22
  };
18
23
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
24
  "update:modelValue": (value: number | null) => any;
@@ -107,8 +107,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
107
107
  filterPlaceholder: string;
108
108
  filterFields: string[];
109
109
  emptyMessage: string;
110
- filterEmptyMessage: string;
111
110
  showCount: boolean;
111
+ filterEmptyMessage: string;
112
112
  showToggleAll: boolean;
113
113
  defaultExpanded: boolean;
114
114
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;