@sankhyalabs/ezui 7.1.0-dev.21 → 7.1.0-dev.23

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 (274) hide show
  1. package/dist/cjs/{ApplicationUtils-4fb87a9e.js → ApplicationUtils-006ca96f.js} +1 -1
  2. package/dist/cjs/FormLayout-fe8da83c.js +9 -0
  3. package/dist/cjs/{app-globals-cb31a206.js → app-globals-5cb12916.js} +1 -1
  4. package/dist/cjs/{ez-combo-box-list_5.cjs.entry.js → classic-search-list_7.cjs.entry.js} +212 -5
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  6. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +36 -15
  10. package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
  11. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
  12. package/dist/cjs/ez-classic-input.cjs.entry.js +99 -18
  13. package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
  14. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +407 -0
  15. package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
  16. package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-classic-time-input.cjs.entry.js +197 -0
  18. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  19. package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
  20. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-form-view.cjs.entry.js +121 -35
  26. package/dist/cjs/ez-form.cjs.entry.js +11 -7
  27. package/dist/cjs/ez-grid.cjs.entry.js +7 -6
  28. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-search-plus.cjs.entry.js +7 -6
  39. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-search.cjs.entry.js +10 -9
  41. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-split-button.cjs.entry.js +13 -14
  46. package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
  47. package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
  48. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  51. package/dist/cjs/ezui.cjs.js +3 -3
  52. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  53. package/dist/cjs/{index-e61642ff.js → index-350d0fa0.js} +30 -0
  54. package/dist/cjs/index-a7b0c73d.js +42 -18
  55. package/dist/cjs/loader.cjs.js +3 -3
  56. package/dist/cjs/{search-column-51e50b59.js → search-column-fbf680d7.js} +10 -5
  57. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  58. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  59. package/dist/collection/collection-manifest.json +58 -5
  60. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  61. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +77 -18
  62. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  63. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  64. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  65. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  66. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  67. package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
  68. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  69. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  70. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  71. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  72. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  73. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  74. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  75. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +406 -0
  76. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +988 -0
  77. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  78. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  79. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
  80. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  81. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +511 -0
  82. package/dist/collection/components/ez-form/ez-form.js +9 -5
  83. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -3
  84. package/dist/collection/components/ez-form-view/ez-form-view.js +40 -4
  85. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +6 -3
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  93. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  95. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  96. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  97. package/dist/collection/components/ez-icon/ez-icon.css +1 -0
  98. package/dist/collection/components/ez-rich-text/ez-rich-text.js +2 -3
  99. package/dist/collection/components/ez-split-button/ez-split-button.js +18 -13
  100. package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
  101. package/dist/collection/utils/form/DataBinder.js +2 -2
  102. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  103. package/dist/collection/utils/i18n/locales/en-us.js +10 -0
  104. package/dist/collection/utils/i18n/locales/es-es.js +10 -0
  105. package/dist/collection/utils/i18n/locales/pt-br.js +10 -0
  106. package/dist/collection/utils/searchColumn/search-column.js +6 -1
  107. package/dist/custom-elements/index.d.ts +48 -0
  108. package/dist/custom-elements/index.js +2722 -337
  109. package/dist/esm/{ApplicationUtils-985c24ae.js → ApplicationUtils-0c5cb207.js} +1 -1
  110. package/dist/esm/FormLayout-bda67973.js +9 -0
  111. package/dist/esm/{app-globals-75f8a758.js → app-globals-1db10325.js} +1 -1
  112. package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_7.entry.js} +212 -7
  113. package/dist/esm/ez-actions-button.entry.js +4 -3
  114. package/dist/esm/ez-alert-list.entry.js +1 -1
  115. package/dist/esm/ez-avatar.entry.js +1 -1
  116. package/dist/esm/ez-calendar.entry.js +1 -1
  117. package/dist/esm/ez-classic-combo-box.entry.js +36 -15
  118. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  119. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  120. package/dist/esm/ez-classic-input.entry.js +100 -19
  121. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  122. package/dist/esm/ez-classic-search-plus.entry.js +403 -0
  123. package/dist/esm/ez-classic-search.entry.js +679 -0
  124. package/dist/esm/ez-classic-text-area.entry.js +1 -1
  125. package/dist/esm/ez-classic-time-input.entry.js +193 -0
  126. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  127. package/dist/esm/ez-combo-box.entry.js +4 -3
  128. package/dist/esm/ez-date-input.entry.js +1 -1
  129. package/dist/esm/ez-date-time-input.entry.js +1 -1
  130. package/dist/esm/ez-dialog.entry.js +1 -1
  131. package/dist/esm/ez-double-list.entry.js +1 -1
  132. package/dist/esm/ez-file-item.entry.js +1 -1
  133. package/dist/esm/ez-form-view.entry.js +121 -35
  134. package/dist/esm/ez-form.entry.js +11 -7
  135. package/dist/esm/ez-grid.entry.js +5 -4
  136. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  137. package/dist/esm/ez-icon.entry.js +1 -1
  138. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  139. package/dist/esm/ez-list.entry.js +1 -1
  140. package/dist/esm/ez-modal-container.entry.js +1 -1
  141. package/dist/esm/ez-modal.entry.js +1 -1
  142. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  143. package/dist/esm/ez-number-input.entry.js +1 -1
  144. package/dist/esm/ez-pagination.entry.js +1 -1
  145. package/dist/esm/ez-popup.entry.js +1 -1
  146. package/dist/esm/ez-search-plus.entry.js +4 -3
  147. package/dist/esm/ez-search-result-list.entry.js +1 -1
  148. package/dist/esm/ez-search.entry.js +4 -3
  149. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  150. package/dist/esm/ez-skeleton.entry.js +1 -1
  151. package/dist/esm/ez-sortable-list.entry.js +1 -1
  152. package/dist/esm/ez-spinner.entry.js +1 -1
  153. package/dist/esm/ez-split-button.entry.js +13 -14
  154. package/dist/esm/ez-split-item.entry.js +4 -3
  155. package/dist/esm/ez-text-input.entry.js +37 -0
  156. package/dist/esm/ez-time-input.entry.js +1 -1
  157. package/dist/esm/ez-tree.entry.js +1 -1
  158. package/dist/esm/ez-upload.entry.js +2 -2
  159. package/dist/esm/ezui.js +3 -3
  160. package/dist/esm/filter-column.entry.js +1 -1
  161. package/dist/esm/{index-a3b24b5d.js → index-225aa0c3.js} +30 -0
  162. package/dist/esm/index-baa5e267.js +42 -18
  163. package/dist/esm/loader.js +3 -3
  164. package/dist/esm/{search-column-0c42248b.js → search-column-40a78cac.js} +10 -5
  165. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  166. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  167. package/dist/ezui/ezui.esm.js +1 -1
  168. package/dist/ezui/{p-1c3f43e8.entry.js → p-0248846f.entry.js} +1 -1
  169. package/dist/ezui/p-0625743b.entry.js +1 -0
  170. package/dist/ezui/p-07fb22c3.entry.js +1 -0
  171. package/dist/ezui/p-26cd4c2e.entry.js +1 -0
  172. package/dist/ezui/{p-2fd16ff2.entry.js → p-2da9faf1.entry.js} +1 -1
  173. package/dist/ezui/{p-1bf40959.entry.js → p-34d459e4.entry.js} +1 -1
  174. package/dist/ezui/p-44183c39.entry.js +1 -0
  175. package/dist/ezui/p-47e4a8ce.js +1 -0
  176. package/dist/ezui/p-4af745e1.entry.js +1 -0
  177. package/dist/ezui/{p-6c484770.entry.js → p-4c2a4435.entry.js} +1 -1
  178. package/dist/ezui/{p-782fe2e3.entry.js → p-4c76b365.entry.js} +1 -1
  179. package/dist/ezui/p-4e576bb9.entry.js +1 -0
  180. package/dist/ezui/{p-5e6de2c1.entry.js → p-4e869617.entry.js} +1 -1
  181. package/dist/ezui/{p-0e325699.entry.js → p-4f7ad3ee.entry.js} +1 -1
  182. package/dist/ezui/{p-582c3f90.entry.js → p-544605c4.entry.js} +1 -1
  183. package/dist/ezui/p-556bf329.entry.js +1 -0
  184. package/dist/ezui/{p-2676e2a3.entry.js → p-56565777.entry.js} +1 -1
  185. package/dist/ezui/p-57b68d43.entry.js +1 -0
  186. package/dist/ezui/p-5895e687.js +1 -0
  187. package/dist/ezui/{p-714452c7.entry.js → p-5abb220b.entry.js} +1 -1
  188. package/dist/ezui/p-619225ce.entry.js +1 -0
  189. package/dist/ezui/p-679a2942.entry.js +1 -0
  190. package/dist/ezui/{p-474076b3.js → p-6a794336.js} +1 -1
  191. package/dist/ezui/{p-4ea5c8a7.entry.js → p-6ac056d7.entry.js} +1 -1
  192. package/dist/ezui/p-7134726a.entry.js +1 -0
  193. package/dist/ezui/{p-67f9fadb.entry.js → p-729bd1be.entry.js} +1 -1
  194. package/dist/ezui/p-7953ecb9.entry.js +1 -0
  195. package/dist/ezui/{p-e2e0dd76.entry.js → p-7edc3ef7.entry.js} +1 -1
  196. package/dist/ezui/p-88a115b3.js +1 -0
  197. package/dist/ezui/{p-f45ddc1f.entry.js → p-8e5f1c74.entry.js} +1 -1
  198. package/dist/ezui/p-951b32a1.entry.js +1 -0
  199. package/dist/ezui/{p-9568a93d.entry.js → p-97312709.entry.js} +1 -1
  200. package/dist/ezui/{p-0ec5c128.js → p-9825c1d2.js} +1 -1
  201. package/dist/ezui/p-987185c4.entry.js +1 -0
  202. package/dist/ezui/p-a0f51b99.entry.js +1 -0
  203. package/dist/ezui/p-a3bad8f8.entry.js +1 -0
  204. package/dist/ezui/{p-6570ca10.entry.js → p-a4351519.entry.js} +1 -1
  205. package/dist/ezui/{p-7624767b.entry.js → p-a872c642.entry.js} +1 -1
  206. package/dist/ezui/p-b0a716ef.entry.js +1 -0
  207. package/dist/ezui/p-b36475f9.entry.js +1 -0
  208. package/dist/ezui/{p-2b23906a.entry.js → p-b705b342.entry.js} +1 -1
  209. package/dist/ezui/{p-9771ea3c.entry.js → p-b8078832.entry.js} +1 -1
  210. package/dist/ezui/p-c0ae79fa.entry.js +1 -0
  211. package/dist/ezui/{p-98218fbc.js → p-c178730b.js} +1 -1
  212. package/dist/ezui/{p-a1a63294.entry.js → p-c56ee8c0.entry.js} +1 -1
  213. package/dist/ezui/{p-3d71e8e1.entry.js → p-cd8be0c7.entry.js} +1 -1
  214. package/dist/ezui/{p-a13e65a4.entry.js → p-ce0a0036.entry.js} +1 -1
  215. package/dist/ezui/{p-0aafbc30.entry.js → p-df802548.entry.js} +1 -1
  216. package/dist/ezui/p-e2689b33.entry.js +1 -0
  217. package/dist/ezui/{p-dc192d01.entry.js → p-e2972977.entry.js} +1 -1
  218. package/dist/ezui/{p-47d9256e.entry.js → p-e3a42f47.entry.js} +1 -1
  219. package/dist/ezui/p-e3cd5080.entry.js +1 -0
  220. package/dist/ezui/{p-28af6826.entry.js → p-e493ad57.entry.js} +1 -1
  221. package/dist/ezui/{p-3fcf79c7.entry.js → p-f5552540.entry.js} +1 -1
  222. package/dist/ezui/p-ff4312d5.js +1 -0
  223. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +9 -3
  224. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  225. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  226. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
  227. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  228. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  229. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  230. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  231. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +186 -0
  232. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  233. package/dist/types/components/ez-form/ez-form.d.ts +1 -0
  234. package/dist/types/components/ez-form-view/ez-form-view.d.ts +7 -0
  235. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +7 -2
  236. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  237. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  238. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  239. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  240. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  241. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  242. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  243. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  244. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  245. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  246. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  247. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  248. package/dist/types/components.d.ts +2967 -1814
  249. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  250. package/dist/types/utils/i18n/locales/en-us.d.ts +10 -0
  251. package/dist/types/utils/i18n/locales/es-es.d.ts +10 -0
  252. package/dist/types/utils/i18n/locales/pt-br.d.ts +10 -0
  253. package/dist/types/utils/i18n/translations.d.ts +30 -0
  254. package/package.json +1 -1
  255. package/react/components.d.ts +8 -0
  256. package/react/components.js +8 -0
  257. package/react/components.js.map +1 -1
  258. package/dist/ezui/p-2e5de2a7.entry.js +0 -1
  259. package/dist/ezui/p-30ffb9ed.js +0 -1
  260. package/dist/ezui/p-48effc69.entry.js +0 -1
  261. package/dist/ezui/p-6a982147.js +0 -1
  262. package/dist/ezui/p-6d7f2fdc.entry.js +0 -1
  263. package/dist/ezui/p-6f466aec.entry.js +0 -1
  264. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  265. package/dist/ezui/p-8709c4f6.entry.js +0 -1
  266. package/dist/ezui/p-8a8006e6.entry.js +0 -1
  267. package/dist/ezui/p-8d626d2b.entry.js +0 -1
  268. package/dist/ezui/p-9b2e6438.entry.js +0 -1
  269. package/dist/ezui/p-9d004e22.entry.js +0 -1
  270. package/dist/ezui/p-c711900a.entry.js +0 -1
  271. package/dist/ezui/p-dee18824.entry.js +0 -1
  272. package/dist/ezui/p-e4a579f2.entry.js +0 -1
  273. package/dist/ezui/p-e82a12c6.entry.js +0 -1
  274. package/dist/ezui/p-f1bbf23f.entry.js +0 -1
@@ -1,20 +1,26 @@
1
1
  import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-baa5e267.js';
2
2
  import { ObjectUtils, StringUtils, UserInterface, ElementIDUtils } from '@sankhyalabs/core';
3
+ import { F as FormLayout } from './FormLayout-bda67973.js';
3
4
  import { C as CheckMode } from './CheckMode-bdb2ec19.js';
4
- import { g as getI18n } from './index-a3b24b5d.js';
5
+ import { g as getI18n } from './index-225aa0c3.js';
5
6
 
6
- const buildSwitch = (field) => {
7
- return buildField(field.name, field.label, field.readOnly, field.contextName, true);
7
+ const buildSwitch = (field, context) => {
8
+ return buildField(field.name, field.label, field.readOnly, field.contextName, true, context);
8
9
  };
9
- const buildCheckBox = (field) => {
10
- return buildField(field.name, field.label, field.readOnly, field.contextName, false);
10
+ const buildCheckBox = (field, context) => {
11
+ return buildField(field.name, field.label, field.readOnly, field.contextName, false, context);
11
12
  };
12
- function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
13
- return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium" },
13
+ function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode, context) {
14
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
15
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
16
+ return (h("div", { class: `ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium ez-size-height--full ${shouldUseClassic ? "ez-margin-top--small" : ""}` },
14
17
  h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
15
18
  }
16
19
 
17
- const buildComboBox = ({ name, label, readOnly, required, props, contextName, canShowError }) => {
20
+ const buildComboBox = ({ name, label, readOnly, required, props, contextName, canShowError }, context) => {
21
+ var _a;
22
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
23
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
18
24
  const prop = props === null || props === void 0 ? void 0 : props.options;
19
25
  let options;
20
26
  if (typeof prop === "string") {
@@ -24,29 +30,60 @@ const buildComboBox = ({ name, label, readOnly, required, props, contextName, ca
24
30
  else {
25
31
  options = prop;
26
32
  }
33
+ if (shouldUseClassic) {
34
+ return (h("div", { class: "ez-col ez-col--sd-12" },
35
+ h("ez-classic-combo-box", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
36
+ }
27
37
  return (h("div", { class: "ez-col ez-col--sd-12" },
28
38
  h("ez-combo-box", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError })));
29
39
  };
30
40
 
31
- const buildDate = ({ name, label, readOnly, canShowError }) => {
41
+ const buildDate = ({ name, label, readOnly, canShowError, props, required }, context) => {
42
+ var _a;
43
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
44
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
45
+ if (shouldUseClassic) {
46
+ return (h("div", { class: "ez-col ez-col--sd-12" },
47
+ h("ez-classic-date-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
48
+ }
32
49
  return (h("div", { class: "ez-col ez-col--sd-12" },
33
50
  h("ez-date-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
34
51
  };
35
- const buildTime = ({ name, label, readOnly, canShowError, props }) => {
36
- var _a;
52
+ const buildTime = ({ name, label, readOnly, canShowError, props, required }, context) => {
53
+ var _a, _b, _c;
54
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
55
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
56
+ if (shouldUseClassic) {
57
+ return (h("div", { class: "ez-col ez-col--sd-12" },
58
+ h("ez-classic-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_a = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _a !== void 0 ? _a : false, size: (_b = context === null || context === void 0 ? void 0 : context.size) !== null && _b !== void 0 ? _b : "small", required: required })));
59
+ }
37
60
  return (h("div", { class: "ez-col ez-col--sd-12" },
38
- h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_a = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _a !== void 0 ? _a : false })));
61
+ h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_c = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _c !== void 0 ? _c : false })));
39
62
  };
40
- const buildTimeSeconds = ({ name, label, readOnly, canShowError }) => {
63
+ const buildTimeSeconds = ({ name, label, readOnly, canShowError, props, required }, context) => {
64
+ var _a;
65
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
66
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
67
+ if (shouldUseClassic) {
68
+ return (h("div", { class: "ez-col ez-col--sd-12" },
69
+ h("ez-classic-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, showSeconds: true, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
70
+ }
41
71
  return (h("div", { class: "ez-col ez-col--sd-12" },
42
72
  h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, showSeconds: true })));
43
73
  };
44
- const buildDateTime = ({ name, label, readOnly, contextName, canShowError }) => {
74
+ const buildDateTime = ({ name, label, readOnly, contextName, canShowError, props, required }, context) => {
75
+ var _a;
76
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
77
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
78
+ if (shouldUseClassic) {
79
+ return (h("div", { class: "ez-col ez-col--sd-12" },
80
+ h("ez-classic-date-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
81
+ }
45
82
  return (h("div", { class: "ez-col ez-col--sd-12" },
46
83
  h("ez-date-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError })));
47
84
  };
48
85
 
49
- const buildFile = ({ name, label, readOnly, contextName, props }) => {
86
+ const buildFile = ({ name, label, readOnly, contextName, props }, context) => {
50
87
  const uploadProps = ObjectUtils.removeEmptyValues({
51
88
  subTitle: props.subTitle,
52
89
  requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
@@ -59,44 +96,77 @@ const buildFile = ({ name, label, readOnly, contextName, props }) => {
59
96
  h("ez-upload", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name }, uploadProps))));
60
97
  };
61
98
 
62
- const buildDecimal = ({ name, label, readOnly, props, contextName, canShowError }) => {
99
+ const buildDecimal = ({ name, label, readOnly, props, contextName, canShowError, required }, context) => {
63
100
  var _a, _b;
64
101
  const precision = Number((_a = props === null || props === void 0 ? void 0 : props.precision) !== null && _a !== void 0 ? _a : 2);
65
102
  const prettyPrecision = Number((_b = props === null || props === void 0 ? void 0 : props.prettyPrecision) !== null && _b !== void 0 ? _b : precision);
66
- return buildNumeric(name, label, readOnly, precision, prettyPrecision, contextName, canShowError);
103
+ return buildNumeric(name, label, readOnly, precision, prettyPrecision, contextName, canShowError, props, required, context);
67
104
  };
68
- const buildInteger = ({ name, label, readOnly, contextName, canShowError }) => {
69
- return buildNumeric(name, label, readOnly, 0, 0, contextName, canShowError);
105
+ const buildInteger = ({ name, label, readOnly, contextName, canShowError, props, required }, context) => {
106
+ return buildNumeric(name, label, readOnly, 0, 0, contextName, canShowError, props, required, context);
70
107
  };
71
- function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError) {
108
+ function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError, props, required, context) {
109
+ var _a;
110
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
111
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
112
+ if (shouldUseClassic) {
113
+ return (h("div", { class: "ez-col ez-col--sd-12" },
114
+ h("ez-classic-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
115
+ }
72
116
  return (h("div", { class: "ez-col ez-col--sd-12" },
73
117
  h("ez-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
74
118
  }
75
119
 
76
- const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError }) => {
120
+ const buildTextArea = ({ name, label, readOnly, rows, contextName, canShowError, props, required }, context) => {
121
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
122
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
123
+ if (shouldUseClassic) {
124
+ return (h("div", { class: "ez-col ez-col--sd-12", key: name },
125
+ h("ez-classic-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows })));
126
+ }
77
127
  return (h("div", { class: "ez-col ez-col--sd-12", key: name },
78
128
  h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
79
129
  };
80
130
 
81
- const buildTextInput = ({ name, label, readOnly, contextName, canShowError, props }) => {
131
+ const buildTextInput = ({ name, label, readOnly, contextName, canShowError, props, required }, context) => {
132
+ var _a;
133
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
134
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
135
+ if (shouldUseClassic) {
136
+ return (h("div", { class: "ez-col ez-col--sd-12" },
137
+ h("ez-classic-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
138
+ }
82
139
  return (h("div", { class: "ez-col ez-col--sd-12" },
83
140
  h("ez-text-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask })));
84
141
  };
85
142
 
86
- const buildSearchPlus = ({ name, label, readOnly, contextName, canShowError, optionLoader, props }) => {
143
+ const buildSearchPlus = ({ name, label, readOnly, contextName, canShowError, optionLoader, props, required }, context) => {
144
+ var _a;
145
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
146
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
87
147
  const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
148
+ if (shouldUseClassic) {
149
+ return (h("div", { class: "ez-col ez-col--sd-12" },
150
+ h("ez-classic-search-plus", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, hideDescriptionInput: !hasDescriptionField, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
151
+ }
88
152
  return (h("div", { class: "ez-col ez-col--sd-12" },
89
153
  h("ez-search-plus", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, hideDescriptionInput: !hasDescriptionField })));
90
154
  };
91
155
 
92
- const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
93
- var _a;
156
+ const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }, context) => {
157
+ var _a, _b, _c;
94
158
  const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
159
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
160
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
161
+ if (shouldUseClassic) {
162
+ return (h("div", { class: "ez-col ez-col--sd-12" },
163
+ h("ez-classic-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false, hideDescriptionInput: !hasDescriptionField, size: (_b = context === null || context === void 0 ? void 0 : context.size) !== null && _b !== void 0 ? _b : "small", required: required })));
164
+ }
95
165
  return (h("div", { class: "ez-col ez-col--sd-12" },
96
- h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false, hideDescriptionInput: !hasDescriptionField })));
166
+ h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_c = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _c !== void 0 ? _c : false, hideDescriptionInput: !hasDescriptionField })));
97
167
  };
98
168
 
99
- const buildRichText = ({ name, label, readOnly, contextName, rows, canShowError }) => {
169
+ const buildRichText = ({ name, label, readOnly, contextName, rows, canShowError }, context) => {
100
170
  return (h("div", { class: "ez-col ez-col--sd-12" },
101
171
  h("ez-rich-text", { key: name, enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
102
172
  };
@@ -122,11 +192,13 @@ uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
122
192
  uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
123
193
  uiBuilders.set(UserInterface.HTML, buildRichText);
124
194
  uiBuilders.set(UserInterface.IMAGE, buildImage);
125
- const fieldBuilder = (field, customUiBuilders = new Map()) => {
195
+ const fieldBuilder = (field, customUiBuilders = new Map(), context) => {
126
196
  const i18n = getI18n();
197
+ const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
198
+ (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
127
199
  const builder = (customUiBuilders.get(field.userInterface) || uiBuilders.get(field.userInterface)) || buildTextInput;
128
- const label = field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
129
- const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
200
+ const label = !shouldUseClassic && field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
201
+ const builtElement = builder(Object.assign(Object.assign({}, field), { label }), context);
130
202
  //@ts-ignore
131
203
  builtElement.$attrs$['data-form-item'] = field.name;
132
204
  return builtElement;
@@ -138,7 +210,7 @@ class FormItem {
138
210
  }
139
211
  addRightElement(el) {
140
212
  this.removeRightElement();
141
- el.classList.add('ez-padding-left--small');
213
+ el.classList.add('ez-padding-left--small', 'ez-margin-top--auto', 'ez-margin-bottom--extra-small');
142
214
  el.setAttribute('data-custom-item', 'true');
143
215
  this.elem.classList.add('ez-col--nowrap');
144
216
  this.elem.appendChild(el);
@@ -167,17 +239,19 @@ class FormItems {
167
239
  }
168
240
  }
169
241
 
170
- const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:220px;--ez-form-view__item--max-width:440px;--ez-form-view__item--width:var(--space--small);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--width);padding-inline:var(--ez-form-view__item--padding);width:100%}.form-view__content--single-column.sc-ez-form-view{grid-template-columns:repeat(1, minmax(var(--ez-form-view__item--min-width), var(--ez-form-view__item--max-width)))}.input-full_width.sc-ez-form-view{grid-column:1 / -1;width:100%}";
242
+ const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:220px;--ez-form-view__item--max-width:440px;--ez-form-view__item--gap:var(--space--14, 14px);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--gap);padding-inline:var(--ez-form-view__item--padding);width:100%}.form-view__content--single-column.sc-ez-form-view{grid-template-columns:repeat(1, minmax(var(--ez-form-view__item--min-width), var(--ez-form-view__item--max-width)))}.input-full_width.sc-ez-form-view{grid-column:1 / -1;width:100%}*.sc-ez-form-view:has(*)+ez-collapsible-box.sc-ez-form-view{margin-top:var(--space--16, 16px)}";
171
243
 
172
244
  const EzFormView = class {
173
245
  constructor(hostRef) {
174
246
  registerInstance(this, hostRef);
175
247
  this.ezContentReady = createEvent(this, "ezContentReady", 7);
176
248
  this.formItemsReady = createEvent(this, "formItemsReady", 7);
249
+ this.MAIN_GROUP_NAME = "__main";
177
250
  this._customEditors = new Map();
178
251
  this.fields = undefined;
179
252
  this.selectedRecord = undefined;
180
253
  this.singleColumn = false;
254
+ this.formLayout = undefined;
181
255
  this.customUiBuilders = new Map();
182
256
  }
183
257
  async showUp() {
@@ -206,10 +280,18 @@ const EzFormView = class {
206
280
  });
207
281
  this.fields = [...fields];
208
282
  }
283
+ getGroupByField(field) {
284
+ var _a, _b;
285
+ const group = (_a = field.group) !== null && _a !== void 0 ? _a : (_b = field.props) === null || _b === void 0 ? void 0 : _b["UITabName"];
286
+ if (group && group !== this.MAIN_GROUP_NAME) {
287
+ return group;
288
+ }
289
+ return undefined;
290
+ }
209
291
  groupFields(fields) {
210
292
  const result = new Map();
211
293
  fields.forEach(item => {
212
- const groupLabel = item.group;
294
+ const groupLabel = this.getGroupByField(item);
213
295
  if (groupLabel) {
214
296
  let groupFields = result.get(groupLabel);
215
297
  if (groupFields == undefined) {
@@ -242,12 +324,16 @@ const EzFormView = class {
242
324
  if (this.isItemFullWidth(item.userInterface)) {
243
325
  classItem += " input-full_width";
244
326
  }
327
+ const context = {
328
+ formLayout: this.formLayout,
329
+ size: "xsmall",
330
+ };
245
331
  if (this._customEditors.has(item.name)) {
246
332
  const value = (_a = this._formElements.map(el => ({ name: el.dataset.fieldName, value: el['value'] })).find(field => field.name === item.name)) === null || _a === void 0 ? void 0 : _a.value;
247
333
  const customEditor = this._customEditors.get(item.name).customEditor;
248
- return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: (field) => fieldBuilder(field, this.customUiBuilders), value: value, selectedRecord: this.selectedRecord }));
334
+ return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: (field) => fieldBuilder(field, this.customUiBuilders, context), value: value, selectedRecord: this.selectedRecord }));
249
335
  }
250
- return h("div", { class: classItem }, fieldBuilder(item, this.customUiBuilders));
336
+ return h("div", { class: classItem }, fieldBuilder(item, this.customUiBuilders, context));
251
337
  }
252
338
  render() {
253
339
  ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
@@ -1,11 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { DateUtils, ApplicationContext, Action, StringUtils, KeyboardManager, DataUnit, ElementIDUtils } from '@sankhyalabs/core';
3
- import { b as buildFieldMetadata, a as buildFieldSearch, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, D as DataBinder } from './search-column-0c42248b.js';
4
- import { g as getI18n, i as initI18n } from './index-a3b24b5d.js';
5
- import { F as FormLayout } from './FormLayout-071d324c.js';
6
- import './ApplicationUtils-985c24ae.js';
3
+ import { b as buildFieldMetadata, a as buildFieldSearch, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, D as DataBinder } from './search-column-40a78cac.js';
4
+ import { g as getI18n, i as initI18n } from './index-225aa0c3.js';
5
+ import { F as FormLayout } from './FormLayout-bda67973.js';
6
+ import './ApplicationUtils-0c5cb207.js';
7
7
  import './DialogType-54a62731.js';
8
8
  import './CheckMode-bdb2ec19.js';
9
+ import './types-6f6b2650.js';
9
10
 
10
11
  const DETAIL_PATTERN = /child\[([^\]]+)\]/;
11
12
  const REGEX_DEFAULT_VAR_KEY = /\$\{.+\}/;
@@ -640,6 +641,7 @@ const EzForm = class {
640
641
  };
641
642
  this._fieldsProps = new Map();
642
643
  this._singleColumn = false;
644
+ this._formLayout = undefined;
643
645
  this.dataUnit = undefined;
644
646
  this.config = undefined;
645
647
  this.recordsValidator = undefined;
@@ -705,7 +707,7 @@ const EzForm = class {
705
707
  }
706
708
  this.ezFormSetFields.emit(fields);
707
709
  const idFormSheet = `${StringUtils.replaceAccentuatedChars(StringUtils.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
708
- return (h("div", { class: "dynamic-content ez-box--no-outline", "data-element-id": idFormSheet, ref: elem => (this._container = elem), tabindex: "0" }, h("ez-popover", { ref: elem => (this._ezPopoverSearchField = elem), overlayType: "none" }, this.renderFieldColumn()), h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, singleColumn: this._singleColumn, selectedRecord: this.dataUnit.getSelectedRecord(), customUiBuilders: this.customUiBuilders })));
710
+ return (h("div", { class: "dynamic-content ez-box--no-outline", "data-element-id": idFormSheet, ref: elem => (this._container = elem), tabindex: "0" }, h("ez-popover", { ref: elem => (this._ezPopoverSearchField = elem), overlayType: "none" }, this.renderFieldColumn()), h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, singleColumn: this._singleColumn, formLayout: this._formLayout, selectedRecord: this.dataUnit.getSelectedRecord(), customUiBuilders: this.customUiBuilders })));
709
711
  }
710
712
  renderFieldColumn() {
711
713
  if (this._fieldSearch != undefined) {
@@ -789,18 +791,20 @@ const EzForm = class {
789
791
  this._i18n = await initI18n();
790
792
  }
791
793
  async setSingleColumn(layoutFormConfig) {
792
- this._singleColumn = (layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config) === FormLayout.CASCADE;
794
+ this._singleColumn = (layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config) === FormLayout.CASCADE || (layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config) === FormLayout.CLASSIC_CASCADE;
795
+ this._formLayout = layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config;
793
796
  }
794
797
  async registerNotifyListeners(layoutFormConfig) {
795
798
  if (!layoutFormConfig)
796
799
  return;
797
800
  layoutFormConfig.onConfigChange((config) => {
798
- if (config === FormLayout.CASCADE) {
801
+ if (config === FormLayout.CASCADE || config === FormLayout.CLASSIC_CASCADE) {
799
802
  this._singleColumn = true;
800
803
  }
801
804
  else {
802
805
  this._singleColumn = false;
803
806
  }
807
+ this._formLayout = config;
804
808
  });
805
809
  }
806
810
  componentDidRender() {
@@ -1,12 +1,13 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { Action, DataUnit, ObjectUtils as ObjectUtils$1, UserInterface, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, LockManager, LockManagerOperation, DataType, NumberUtils as NumberUtils$1, MaskFormatter, SortMode, ElementIDUtils, ColumnFilterManager as ColumnFilterManager$1, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, FieldComparator, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
3
3
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
4
- import { A as ApplicationUtils } from './ApplicationUtils-985c24ae.js';
4
+ import { A as ApplicationUtils } from './ApplicationUtils-0c5cb207.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
- import { g as getI18n, i as initI18n } from './index-a3b24b5d.js';
8
- import { C as CustomEditorSource, a as CustomRenderSource } from './FormLayout-071d324c.js';
9
- import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, a as buildFieldSearch } from './search-column-0c42248b.js';
7
+ import { g as getI18n, i as initI18n } from './index-225aa0c3.js';
8
+ import { C as CustomEditorSource, a as CustomRenderSource } from './types-6f6b2650.js';
9
+ import './FormLayout-bda67973.js';
10
+ import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, a as buildFieldSearch } from './search-column-40a78cac.js';
10
11
  import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE, P as PRESENTATION_COL_ID_PROP_NAME, a as PRESENTATION_FROM_COL_PROP_NAME } from './constants-3fabe81e.js';
11
12
  import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
12
13
  import { p as purify } from './purify-9357603c.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { E as EzScrollDirection } from './EzScrollDirection-2df26c93.js';
4
- import { i as initI18n } from './index-a3b24b5d.js';
4
+ import { i as initI18n } from './index-225aa0c3.js';
5
5
 
6
6
  const ezGuideNavigatorCss = ":host{--ez-guide-navigator--padding-left:var(--space--large);--ez-guide-navigator--padding-right:var(--space--small);--ez-guide-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-guide-navigator--background-color:var(--color--inverted);--ez-guide-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-guide-navigator--actions-gap:var(--space--medium);--ez-guide-navigator--actions-margin:var(--space--large) 0 var(--space--medium);--ez-guide-navigator--actions-padding-right:calc(var(--space--medium, 12px) + var(--space--small, 6px))}.inverted{transform:rotate(180deg)}.ez-guide-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;padding-left:var(--ez-guide-navigator--padding-left);padding-right:var(--ez-guide-navigator--padding-right);background-color:var(--ez-guide-navigator--background-color);-webkit-box-shadow:var(--ez-guide-navigator--box-shadow);box-shadow:var(--ez-guide-navigator--box-shadow);border-radius:var(--ez-guide-navigator--border-radius)}.ez-guide-navigator__actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-guide-navigator--actions-gap);margin:var(--ez-guide-navigator--actions-margin);padding-right:var(--ez-guide-navigator--actions-padding-right)}.hidden{display:none}";
7
7