@vc-shell/framework 1.0.219 → 1.0.221

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 (179) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/core/types/index.ts +6 -0
  3. package/dist/core/types/index.d.ts +6 -0
  4. package/dist/core/types/index.d.ts.map +1 -1
  5. package/dist/framework.js +14196 -13907
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/locales/en.json +2 -1
  9. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  10. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  11. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +6 -3
  12. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -1
  13. package/dist/shared/modules/dynamic/components/fields/Button.d.ts +2 -1
  14. package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
  15. package/dist/shared/modules/dynamic/components/fields/Card.d.ts +2 -1
  16. package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -1
  17. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +2 -1
  18. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -1
  19. package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +2 -1
  20. package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts.map +1 -1
  21. package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +2 -1
  22. package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts.map +1 -1
  23. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +2 -1
  24. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
  25. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +2 -1
  26. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -1
  27. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +2 -1
  28. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
  29. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +2 -1
  30. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
  31. package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +2 -1
  32. package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
  33. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +2 -1
  34. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
  35. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +2 -1
  36. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
  37. package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +2 -1
  38. package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
  39. package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +2 -1
  40. package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts.map +1 -1
  41. package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +2 -1
  42. package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts.map +1 -1
  43. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +2 -1
  44. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
  45. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +2 -1
  46. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
  47. package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +2 -1
  48. package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts.map +1 -1
  49. package/dist/shared/modules/dynamic/components/fields/Table.d.ts +2 -1
  50. package/dist/shared/modules/dynamic/components/fields/Table.d.ts.map +1 -1
  51. package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +2 -1
  52. package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts.map +1 -1
  53. package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +2 -1
  54. package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
  55. package/dist/shared/modules/dynamic/components/fields/props.d.ts +2 -1
  56. package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -1
  57. package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +6 -3
  58. package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts.map +1 -1
  59. package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts +6 -3
  60. package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts.map +1 -1
  61. package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts +6 -3
  62. package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts.map +1 -1
  63. package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts +6 -3
  64. package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts.map +1 -1
  65. package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts +6 -3
  66. package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts.map +1 -1
  67. package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +6 -15
  68. package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts.map +1 -1
  69. package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts +6 -3
  70. package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts.map +1 -1
  71. package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts +6 -3
  72. package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts.map +1 -1
  73. package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts +15 -3
  74. package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts.map +1 -1
  75. package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts +15 -3
  76. package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts.map +1 -1
  77. package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts +15 -3
  78. package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts.map +1 -1
  79. package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts +6 -3
  80. package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts.map +1 -1
  81. package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts +6 -3
  82. package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts.map +1 -1
  83. package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts +15 -3
  84. package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts.map +1 -1
  85. package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts +6 -3
  86. package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts.map +1 -1
  87. package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts +6 -3
  88. package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts.map +1 -1
  89. package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts +6 -3
  90. package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts.map +1 -1
  91. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +6 -3
  92. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -1
  93. package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts +1 -0
  94. package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts.map +1 -1
  95. package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts +1 -1
  96. package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts.map +1 -1
  97. package/dist/shared/modules/dynamic/factories/types/index.d.ts +2 -2
  98. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
  99. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -1
  100. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  101. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -1
  102. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
  103. package/dist/shared/modules/dynamic/types/index.d.ts +70 -20
  104. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  105. package/dist/shared/modules/dynamic/types/models.d.ts +1 -1
  106. package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
  107. package/dist/tsconfig.tsbuildinfo +1 -1
  108. package/dist/ui/components/atoms/index.d.ts +1 -0
  109. package/dist/ui/components/atoms/index.d.ts.map +1 -1
  110. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +6 -0
  111. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
  112. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  113. package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +7 -7
  114. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +2 -2
  115. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  116. package/dist/ui/components/atoms/vc-tooltip/index.d.ts +2 -0
  117. package/dist/ui/components/atoms/vc-tooltip/index.d.ts.map +1 -0
  118. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +41 -0
  119. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -0
  120. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +6 -0
  121. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
  122. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +3 -0
  123. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  124. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +30 -16
  125. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts.map +1 -1
  126. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +35 -0
  127. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  128. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +63 -63
  129. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +9 -9
  130. package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +90 -90
  131. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +9 -9
  132. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  133. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -0
  134. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  135. package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts +26 -0
  136. package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts.map +1 -0
  137. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +10 -1
  138. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  139. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  140. package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +315 -15
  141. package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
  142. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +63 -3
  143. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  144. package/package.json +4 -4
  145. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +0 -2
  146. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +1 -2
  147. package/shared/modules/dynamic/components/fields/Button.ts +5 -3
  148. package/shared/modules/dynamic/components/fields/Fieldset.ts +2 -19
  149. package/shared/modules/dynamic/components/fields/InputCurrency.ts +18 -2
  150. package/shared/modules/dynamic/components/fields/InputField.ts +5 -1
  151. package/shared/modules/dynamic/components/fields/MultivalueField.ts +4 -1
  152. package/shared/modules/dynamic/components/fields/SelectField.ts +4 -1
  153. package/shared/modules/dynamic/components/fields/Table.ts +52 -6
  154. package/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.ts +1 -63
  155. package/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.ts +14 -0
  156. package/shared/modules/dynamic/components/fields/storybook/InputField.stories.ts +14 -0
  157. package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +14 -0
  158. package/shared/modules/dynamic/components/fields/storybook/SelectField.stories.ts +13 -0
  159. package/shared/modules/dynamic/composables/useTableTemplates/index.ts +2 -0
  160. package/shared/modules/dynamic/composables/useToolbarReducer/index.ts +30 -17
  161. package/shared/modules/dynamic/factories/types/index.ts +5 -2
  162. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -1
  163. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +3 -1
  164. package/shared/modules/dynamic/types/index.ts +78 -26
  165. package/shared/modules/dynamic/types/models.ts +3 -1
  166. package/ui/components/atoms/index.ts +1 -0
  167. package/ui/components/atoms/vc-label/vc-label.vue +10 -29
  168. package/ui/components/atoms/vc-status/vc-status.vue +6 -3
  169. package/ui/components/atoms/vc-tooltip/index.ts +1 -0
  170. package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +57 -0
  171. package/ui/components/molecules/vc-input/vc-input.vue +7 -3
  172. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +53 -1
  173. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +5 -1
  174. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +1 -0
  175. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +1 -0
  176. package/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue +46 -0
  177. package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +108 -23
  178. package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +6 -2
  179. package/ui/components/organisms/vc-table/vc-table.vue +156 -70
@@ -1 +1 @@
1
- {"version":3,"file":"vc-table.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK7B,wBAsEiC;AAEjC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,OAAO,CAe1C,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAKxC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAKxD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAK1D,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,OAAO,OAAO,CAmEtD,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,OAAO,OAAO,CAuBjD,CAAC"}
@@ -39,6 +39,14 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
39
39
  };
40
40
  index: number;
41
41
  }) => any) | undefined;
42
+ onOnAddNewRow?: (() => any) | undefined;
43
+ onOnRowRemove?: ((args: {
44
+ index: number;
45
+ }) => any) | undefined;
46
+ onOnCellBlur?: ((args: {
47
+ row: number | undefined;
48
+ field: string;
49
+ }) => any) | undefined;
42
50
  itemActionBuilder?: ((item: T) => IActionBuilderResult[] | undefined) | undefined;
43
51
  multiselect?: boolean | undefined;
44
52
  totalLabel?: string | undefined;
@@ -58,7 +66,12 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
58
66
  stateKey: string;
59
67
  selectAll?: boolean | undefined;
60
68
  enableItemActions?: boolean | undefined;
61
- cellEditActive?: boolean | undefined;
69
+ editing?: boolean | undefined;
70
+ addNewRowButton?: {
71
+ show: boolean;
72
+ title: string;
73
+ } | undefined;
74
+ removeRowButton?: boolean | undefined;
62
75
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
63
76
  attrs: any;
64
77
  slots: Readonly<{
@@ -66,6 +79,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
66
79
  [key: `item_${string}`]: (args: {
67
80
  item: T;
68
81
  cell: ITableColumns;
82
+ index: number;
69
83
  }) => any;
70
84
  header: (props: any) => any;
71
85
  filters: (args: {
@@ -82,6 +96,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
82
96
  [key: `item_${string}`]: (args: {
83
97
  item: T;
84
98
  cell: ITableColumns;
99
+ index: number;
85
100
  }) => any;
86
101
  header: (props: any) => any;
87
102
  filters: (args: {
@@ -104,6 +119,11 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
104
119
  value: string | number;
105
120
  };
106
121
  index: number;
122
+ }) => void) & ((evt: "onAddNewRow") => void) & ((evt: "onRowRemove", args: {
123
+ index: number;
124
+ }) => void) & ((evt: "onCellBlur", args: {
125
+ row: number | undefined;
126
+ field: string;
107
127
  }) => void);
108
128
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
109
129
  props: {
@@ -133,6 +153,14 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
133
153
  };
134
154
  index: number;
135
155
  }) => any) | undefined;
156
+ onOnAddNewRow?: (() => any) | undefined;
157
+ onOnRowRemove?: ((args: {
158
+ index: number;
159
+ }) => any) | undefined;
160
+ onOnCellBlur?: ((args: {
161
+ row: number | undefined;
162
+ field: string;
163
+ }) => any) | undefined;
136
164
  itemActionBuilder?: ((item: T) => IActionBuilderResult[] | undefined) | undefined;
137
165
  multiselect?: boolean | undefined;
138
166
  totalLabel?: string | undefined;
@@ -152,7 +180,12 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
152
180
  stateKey: string;
153
181
  selectAll?: boolean | undefined;
154
182
  enableItemActions?: boolean | undefined;
155
- cellEditActive?: boolean | undefined;
183
+ editing?: boolean | undefined;
184
+ addNewRowButton?: {
185
+ show: boolean;
186
+ title: string;
187
+ } | undefined;
188
+ removeRowButton?: boolean | undefined;
156
189
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
157
190
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
158
191
  attrs: any;
@@ -161,6 +194,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
161
194
  [key: `item_${string}`]: (args: {
162
195
  item: T;
163
196
  cell: ITableColumns;
197
+ index: number;
164
198
  }) => any;
165
199
  header: (props: any) => any;
166
200
  filters: (args: {
@@ -177,6 +211,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
177
211
  [key: `item_${string}`]: (args: {
178
212
  item: T;
179
213
  cell: ITableColumns;
214
+ index: number;
180
215
  }) => any;
181
216
  header: (props: any) => any;
182
217
  filters: (args: {
@@ -199,6 +234,11 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
199
234
  value: string | number;
200
235
  };
201
236
  index: number;
237
+ }) => void) & ((evt: "onAddNewRow") => void) & ((evt: "onRowRemove", args: {
238
+ index: number;
239
+ }) => void) & ((evt: "onCellBlur", args: {
240
+ row: number | undefined;
241
+ field: string;
202
242
  }) => void);
203
243
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
204
244
  [key: string]: any;
@@ -231,6 +271,14 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
231
271
  };
232
272
  index: number;
233
273
  }) => any) | undefined;
274
+ onOnAddNewRow?: (() => any) | undefined;
275
+ onOnRowRemove?: ((args: {
276
+ index: number;
277
+ }) => any) | undefined;
278
+ onOnCellBlur?: ((args: {
279
+ row: number | undefined;
280
+ field: string;
281
+ }) => any) | undefined;
234
282
  itemActionBuilder?: ((item: T) => IActionBuilderResult[] | undefined) | undefined;
235
283
  multiselect?: boolean | undefined;
236
284
  totalLabel?: string | undefined;
@@ -250,7 +298,12 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
250
298
  stateKey: string;
251
299
  selectAll?: boolean | undefined;
252
300
  enableItemActions?: boolean | undefined;
253
- cellEditActive?: boolean | undefined;
301
+ editing?: boolean | undefined;
302
+ addNewRowButton?: {
303
+ show: boolean;
304
+ title: string;
305
+ } | undefined;
306
+ removeRowButton?: boolean | undefined;
254
307
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
255
308
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
256
309
  attrs: any;
@@ -259,6 +312,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
259
312
  [key: `item_${string}`]: (args: {
260
313
  item: T;
261
314
  cell: ITableColumns;
315
+ index: number;
262
316
  }) => any;
263
317
  header: (props: any) => any;
264
318
  filters: (args: {
@@ -275,6 +329,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
275
329
  [key: `item_${string}`]: (args: {
276
330
  item: T;
277
331
  cell: ITableColumns;
332
+ index: number;
278
333
  }) => any;
279
334
  header: (props: any) => any;
280
335
  filters: (args: {
@@ -297,6 +352,11 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
297
352
  value: string | number;
298
353
  };
299
354
  index: number;
355
+ }) => void) & ((evt: "onAddNewRow") => void) & ((evt: "onRowRemove", args: {
356
+ index: number;
357
+ }) => void) & ((evt: "onCellBlur", args: {
358
+ row: number | undefined;
359
+ field: string;
300
360
  }) => void);
301
361
  } | undefined;
302
362
  };
@@ -1 +1 @@
1
- {"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,QAAQ,EACR,GAAG,EAUJ,MAAM,KAAK,CAAC;AAGb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,iCAAiC,CAA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
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "devDependencies": {
61
61
  "@types/dompurify": "^3.0.5",
62
62
  "@types/quill": "^2.0.14",
63
- "@vc-shell/api-client-generator": "^1.0.219",
64
- "@vc-shell/config-generator": "^1.0.219",
65
- "@vc-shell/ts-config": "^1.0.219",
63
+ "@vc-shell/api-client-generator": "^1.0.221",
64
+ "@vc-shell/config-generator": "^1.0.221",
65
+ "@vc-shell/ts-config": "^1.0.221",
66
66
  "@vitejs/plugin-vue": "^5.0.3",
67
67
  "sass": "^1.69.6",
68
68
  "shx": "^0.3.4",
@@ -15,9 +15,7 @@ export function useAppSwitcher(): IUseAppSwitcher {
15
15
  const appsList = ref<AppDescriptor[]>([]);
16
16
 
17
17
  async function getApiClient(): Promise<AppsClient> {
18
- // const { getAccessToken } = useUser();
19
18
  const client = new AppsClient();
20
- // client.setAuthToken((await getAccessToken()) as string);
21
19
  return client;
22
20
  }
23
21
 
@@ -311,8 +311,7 @@ export function useBladeNavigation(): IUseBladeNavigation {
311
311
  ) as BladeVNode;
312
312
 
313
313
  try {
314
- // Close all blades except the first one cause it will be overwritten
315
- const isPrevented = await closeBlade(1);
314
+ const isPrevented = await closeBlade(0);
316
315
 
317
316
  if (!isPrevented && createdComponent.type?.url) {
318
317
  if (hasAccess(blade.permissions)) {
@@ -31,9 +31,11 @@ export default {
31
31
  class: unrefNested(props.baseProps).classNames ?? "",
32
32
  },
33
33
  ),
34
- slots: {
35
- default: () => unref(computed(() => t(props.element.content))),
36
- },
34
+ slots: props.element.content
35
+ ? {
36
+ default: () => unref(computed(() => (props.element.content && t(props.element.content)) ?? undefined)),
37
+ }
38
+ : undefined,
37
39
  });
38
40
 
39
41
  return h(field.component as Component, mergeProps(field.props, { class: "tw-self-start" }), field.slots);
@@ -1,7 +1,7 @@
1
- import { Ref, h, inject, toRefs, ExtractPropTypes, toValue } from "vue";
1
+ import { h, toRefs, ExtractPropTypes, toValue } from "vue";
2
2
  import componentProps from "./props";
3
3
  import * as _ from "lodash-es";
4
- import { VcButton, VcCol, VcRow } from "../../../../../ui/components";
4
+ import { VcCol, VcRow } from "../../../../../ui/components";
5
5
  import { FieldsetSchema } from "../../types";
6
6
  import { unrefNested } from "../../helpers/unrefNested";
7
7
 
@@ -9,8 +9,6 @@ export default {
9
9
  name: "Fieldset",
10
10
  props: componentProps,
11
11
  setup(props: ExtractPropTypes<typeof componentProps> & { element: FieldsetSchema }) {
12
- const isMobile = inject("isMobile") as Ref<boolean>;
13
-
14
12
  const { fields: fieldsetFields } = toRefs(props);
15
13
 
16
14
  return () =>
@@ -60,21 +58,6 @@ export default {
60
58
  );
61
59
  }),
62
60
  ]),
63
- props.element.remove
64
- ? h(VcButton, {
65
- iconSize: "m",
66
- icon: "fas fa-times-circle",
67
- text: true,
68
- class: {
69
- "tw-m-2": !isMobile.value,
70
- "tw-absolute tw-top-0 tw-right-0": isMobile.value,
71
- "!tw-hidden": arr.length === 1,
72
- },
73
- onClick: () => {
74
- if (props.element.remove?.method) props.bladeContext.scope?.[props.element.remove?.method](index);
75
- },
76
- })
77
- : undefined,
78
61
  ],
79
62
  );
80
63
  });
@@ -1,4 +1,4 @@
1
- import { Component, ExtractPropTypes, h, unref } from "vue";
1
+ import { Component, ExtractPropTypes, computed, h, unref } from "vue";
2
2
  import { InputCurrency } from "../factories";
3
3
  import componentProps from "./props";
4
4
  import ValidationField from "./ValidationField";
@@ -7,20 +7,36 @@ import { setModel } from "../../helpers/setters";
7
7
  import { InputCurrencySchema } from "../../types";
8
8
  import { unrefNested } from "../../helpers/unrefNested";
9
9
  import { toValue } from "@vueuse/core";
10
+ import { safeIn } from "../../helpers/safeIn";
11
+ import { useI18n } from "vue-i18n";
10
12
 
11
13
  export default {
12
14
  name: "InputCurrency",
13
15
  props: componentProps,
14
16
  setup(props: ExtractPropTypes<typeof componentProps> & { element: InputCurrencySchema }) {
17
+ const { t } = useI18n({ useScope: "global" });
15
18
  return () => {
16
19
  const options =
17
20
  toValue(getModel(props.element.options, props.fieldContext ?? {})) ||
18
21
  toValue(unref(props.bladeContext.scope)?.[props.element.options]);
22
+
23
+ const contextProperty =
24
+ safeIn("optionProperty", props.element) &&
25
+ props.element.optionProperty &&
26
+ getModel(props.element.optionProperty, props.fieldContext ?? {});
27
+
28
+ const scopedProperty =
29
+ safeIn("optionProperty", props.element) &&
30
+ props.element.optionProperty &&
31
+ props.bladeContext.scope &&
32
+ getModel(props.element.optionProperty, props.bladeContext.scope);
33
+
19
34
  const field = InputCurrency({
20
35
  props: Object.assign(
21
36
  {},
22
37
  {
23
- option: toValue(getModel(props.element.optionProperty, props.fieldContext ?? {})),
38
+ hint: props.element.hint ? toValue(computed(() => t(props.element.hint ?? ""))) : undefined,
39
+ option: toValue(scopedProperty ?? contextProperty),
24
40
  optionLabel: props.element.optionLabel,
25
41
  optionValue: props.element.optionValue,
26
42
  options,
@@ -1,10 +1,11 @@
1
- import { ExtractPropTypes, h, VNode, Component } from "vue";
1
+ import { ExtractPropTypes, h, VNode, Component, computed, toValue } from "vue";
2
2
  import { InputField } from "../factories";
3
3
  import componentProps from "./props";
4
4
  import ValidationField from "./ValidationField";
5
5
  import { InputSchema, ControlSchema } from "../../types";
6
6
  import { nodeBuilder } from "../../helpers/nodeBuilder";
7
7
  import { unrefNested } from "../../helpers/unrefNested";
8
+ import { useI18n } from "vue-i18n";
8
9
 
9
10
  const slotsMap = {
10
11
  append: "append",
@@ -17,11 +18,14 @@ export default {
17
18
  name: "InputField",
18
19
  props: componentProps,
19
20
  setup(props: ExtractPropTypes<typeof componentProps> & { element: InputSchema }) {
21
+ const { t } = useI18n({ useScope: "global" });
22
+
20
23
  return () => {
21
24
  const field = InputField({
22
25
  props: Object.assign(
23
26
  {},
24
27
  {
28
+ hint: props.element.hint ? toValue(computed(() => t(props.element.hint ?? ""))) : undefined,
25
29
  type: props.element.variant,
26
30
  currentLanguage: props.currentLocale,
27
31
  clearable: props.element.clearable || false,
@@ -1,11 +1,12 @@
1
1
  import { ComponentSlots } from "../../../../utilities/vueUtils";
2
- import { h, resolveComponent, ExtractPropTypes, Component, VNode } from "vue";
2
+ import { h, resolveComponent, ExtractPropTypes, Component, VNode, computed, toValue } from "vue";
3
3
  import { MultivalueField } from "../factories";
4
4
  import componentProps from "./props";
5
5
  import ValidationField from "./ValidationField";
6
6
  import { MultivalueSchema } from "../../types";
7
7
  import { VcMultivalue } from "../../../../../ui/components";
8
8
  import { unrefNested } from "../../helpers/unrefNested";
9
+ import { useI18n } from "vue-i18n";
9
10
 
10
11
  type TScope = Parameters<ComponentSlots<typeof VcMultivalue>["option"]>["0"] &
11
12
  Parameters<ComponentSlots<typeof VcMultivalue>["selected-item"]>["0"];
@@ -14,11 +15,13 @@ export default {
14
15
  name: "MultivalueField",
15
16
  props: componentProps,
16
17
  setup(props: ExtractPropTypes<typeof componentProps> & { element: MultivalueSchema }) {
18
+ const { t } = useI18n({ useScope: "global" });
17
19
  return () => {
18
20
  const field = MultivalueField({
19
21
  props: Object.assign(
20
22
  {},
21
23
  {
24
+ hint: props.element.hint ? toValue(computed(() => t(props.element.hint ?? ""))) : undefined,
22
25
  multivalue: props.element.multivalue,
23
26
  type: props.element.variant,
24
27
  optionValue: props.element.optionValue,
@@ -1,11 +1,12 @@
1
1
  import { ComponentSlots } from "../../../../utilities/vueUtils";
2
- import { h, resolveComponent, ExtractPropTypes, Component, VNode } from "vue";
2
+ import { h, resolveComponent, ExtractPropTypes, Component, VNode, computed, toValue } from "vue";
3
3
  import { SelectField } from "../factories";
4
4
  import componentProps from "./props";
5
5
  import ValidationField from "./ValidationField";
6
6
  import { SelectSchema } from "../../types";
7
7
  import { VcSelect } from "../../../../../ui/components";
8
8
  import { unrefNested } from "../../helpers/unrefNested";
9
+ import { useI18n } from "vue-i18n";
9
10
 
10
11
  type TScope =
11
12
  | Parameters<ComponentSlots<typeof VcSelect>["option"]>["0"]
@@ -15,11 +16,13 @@ export default {
15
16
  name: "SelectField",
16
17
  props: componentProps,
17
18
  setup(props: ExtractPropTypes<typeof componentProps> & { element: SelectSchema }) {
19
+ const { t } = useI18n({ useScope: "global" });
18
20
  return () => {
19
21
  const field = SelectField({
20
22
  props: Object.assign(
21
23
  {},
22
24
  {
25
+ hint: props.element.hint ? toValue(computed(() => t(props.element.hint ?? ""))) : undefined,
23
26
  optionValue: props.element.optionValue,
24
27
  optionLabel: props.element.optionLabel,
25
28
  emitValue: props.element.emitValue,
@@ -7,6 +7,7 @@ import { TableSchema } from "../../types";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import { unrefNested } from "../../helpers/unrefNested";
9
9
  import { setModel } from "../../helpers/setters";
10
+ import { safeIn } from "../../helpers/safeIn";
10
11
 
11
12
  type TableItemData = Record<string, any>;
12
13
 
@@ -24,15 +25,21 @@ export default {
24
25
  props: Object.assign(
25
26
  {},
26
27
  {
28
+ removeRowButton: props.element.removeRowButton?.show,
29
+ addNewRowButton: props.element.addNewRowButton
30
+ ? {
31
+ title: computed(() => t(props.element.addNewRowButton?.title ?? "")),
32
+ show: props.element.addNewRowButton.show,
33
+ }
34
+ : undefined,
27
35
  header: !!props.element.header,
28
36
  footer: !!props.element.footer,
29
37
  multiselect: !!props.element.multiselect,
30
- editable: !!props.element.editable,
31
38
  columns: props.element.columns?.map((col) => ({ ...col, title: computed(() => t(col.title)) })),
32
39
  items: unrefNested(props.baseProps).modelValue ?? [],
33
40
  stateKey: props.element.id,
34
41
  class: `!tw-flex-auto ${unrefNested(props.baseProps).classNames ?? ""}`,
35
- cellEditActive: enableEditComputed.value,
42
+ editing: enableEditComputed.value,
36
43
  onOnEditComplete: (data: any) => {
37
44
  if (props.fieldContext) {
38
45
  setModel({
@@ -42,6 +49,37 @@ export default {
42
49
  });
43
50
  }
44
51
  },
52
+ onOnRowRemove: (data: { index: number }) => {
53
+ if (
54
+ props.element.removeRowButton?.method &&
55
+ props.bladeContext.scope?.[props.element.removeRowButton?.method] &&
56
+ typeof props.bladeContext.scope?.[props.element.removeRowButton?.method] === "function"
57
+ ) {
58
+ props.bladeContext.scope?.[props.element.removeRowButton?.method]?.(data.index);
59
+ }
60
+ },
61
+ onOnAddNewRow: () => {
62
+ if (
63
+ props.element.addNewRowButton?.method &&
64
+ props.bladeContext.scope?.[props.element.addNewRowButton?.method] &&
65
+ typeof props.bladeContext.scope?.[props.element.addNewRowButton?.method] === "function"
66
+ ) {
67
+ props.bladeContext.scope?.[props.element.addNewRowButton?.method]?.();
68
+ }
69
+ },
70
+ onOnCellBlur: async (data: { row: number | undefined; field: string }) => {
71
+ if (props.element.columns) {
72
+ const column = props.element.columns.find((col) => col.id === data.field);
73
+ if (column && column.onCellBlur && column.onCellBlur.method) {
74
+ if (
75
+ props.bladeContext.scope?.[column.onCellBlur.method] &&
76
+ typeof props.bladeContext.scope[column.onCellBlur.method] === "function"
77
+ ) {
78
+ await props.bladeContext.scope[column.onCellBlur.method](data);
79
+ }
80
+ }
81
+ }
82
+ },
45
83
  },
46
84
  unrefNested(props.baseProps),
47
85
  ),
@@ -49,7 +87,12 @@ export default {
49
87
  ...Object.entries(tableTemplates.templateOverrideComponents).reduce(
50
88
  (obj, [key, value], index) => {
51
89
  obj[`item_${key}`] = (itemData: TableItemData) => {
52
- return h(unref(value), { context: itemData, key: `template_override_${props.element.id}_${index}` });
90
+ return h(unref(value), {
91
+ index: itemData.index,
92
+ context: itemData,
93
+ key: `template_override_${props.element.id}_${index}`,
94
+ bladeContext: props.bladeContext,
95
+ });
53
96
  };
54
97
 
55
98
  return obj;
@@ -58,13 +101,16 @@ export default {
58
101
  ),
59
102
  notfound: tableTemplates?.notFound
60
103
  ? (itemData: TableItemData) => h(tableTemplates.notFound as Component, { context: itemData })
61
- : () => undefined,
104
+ : undefined,
62
105
  "mobile-item": tableTemplates?.mobileView
63
106
  ? (itemData: TableItemData) => h(tableTemplates.mobileView as Component, { context: itemData })
64
- : () => undefined,
107
+ : undefined,
65
108
  empty: tableTemplates?.empty
66
109
  ? (itemData: TableItemData) => h(tableTemplates.empty as Component, { context: itemData })
67
- : () => undefined,
110
+ : undefined,
111
+ footer: tableTemplates?.footer
112
+ ? (itemData: TableItemData) => h(tableTemplates.footer as Component, { context: itemData })
113
+ : undefined,
68
114
  },
69
115
  });
70
116
 
@@ -96,25 +96,10 @@ export default {
96
96
  },
97
97
  },
98
98
  },
99
- remove: {
100
- description: `Method to call to remove field from the fieldset. When set - activates remove button.
101
- \nUsed for \`property\`-based fieldsets.
102
- Allows to remove selected fieldset.
103
- Method should be defined in the blade \`scope\`.
104
- \n Argument - \`id\` of the field to remove`,
105
- table: {
106
- type: {
107
- summary: "{ method: string }",
108
- },
109
- defaultValue: {
110
- summary: false,
111
- },
112
- },
113
- },
114
99
  },
115
100
  parameters: {
116
101
  componentSubtitle:
117
- "Fieldset allows displaying sets of any available controls of any nested depth. It allows arranging elements in a grid with a customizable number of columns and aspect ratio that allows to control columns width, the ability to build a grid with multiple rows based on an array of data bound to the fieldset using the property option. It also has visibility state settings and ability to remove elements from the fieldset.",
102
+ "Fieldset allows displaying sets of any available controls of any nested depth. It allows arranging elements in a grid with a customizable number of columns and aspect ratio that allows to control columns width, the ability to build a grid with multiple rows based on an array of data bound to the fieldset using the property option. It also has visibility state settings.",
118
103
  docs: {
119
104
  canvas: {
120
105
  sourceState: "none",
@@ -263,53 +248,6 @@ PropertyBasedFieldsetInTwoColumns.args = {
263
248
  ],
264
249
  };
265
250
 
266
- export const RemoveField: StoryFn<FieldsetSchema> = (args) => ({
267
- components: { page },
268
- setup() {
269
- const context = reactive({
270
- item: {
271
- dataArray: [
272
- {
273
- id: 1,
274
- value: "value1",
275
- label: "Label 1",
276
- },
277
- {
278
- id: 2,
279
- value: "value2",
280
- label: "Label 2",
281
- },
282
- {
283
- id: 3,
284
- value: "value3",
285
- label: "Label 3",
286
- },
287
- ],
288
- },
289
- scope: {
290
- removeField: (id: number) => {
291
- context.item.dataArray.splice(id, 1);
292
- },
293
- },
294
- });
295
- return { args, context };
296
- },
297
- template,
298
- });
299
- RemoveField.args = {
300
- property: "dataArray",
301
- fields: [
302
- {
303
- id: "fieldId",
304
- component: "vc-input",
305
- label: "{label}",
306
- placeholder: "Enter text here",
307
- property: "value",
308
- },
309
- ],
310
- remove: { method: "removeField" },
311
- };
312
-
313
251
  export const NestedFieldsetsWithHorizontalSeparator: StoryFn<FieldsetSchema> = (args) => ({
314
252
  components: { page },
315
253
  setup() {
@@ -96,6 +96,14 @@ export default {
96
96
  },
97
97
  },
98
98
  },
99
+ hint: {
100
+ description: "Hint text to be displayed below the input.",
101
+ table: {
102
+ type: {
103
+ summary: "string",
104
+ },
105
+ },
106
+ },
99
107
  },
100
108
  parameters: {
101
109
  docs: {
@@ -139,6 +147,12 @@ WithTooltip.args = {
139
147
  tooltip: "Input Currency Tooltip",
140
148
  };
141
149
 
150
+ export const WithHint = Template.bind({});
151
+ WithHint.args = {
152
+ label: "Input Currency Label",
153
+ hint: "Input Currency Hint",
154
+ };
155
+
142
156
  export const WithPlaceholder: StoryFn<InputCurrencySchema> = (args) => ({
143
157
  components: { page },
144
158
  setup() {