@mono-lit/helper 0.0.1 → 0.0.3

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 (499) hide show
  1. package/LICENSE.md +55 -55
  2. package/README.md +35 -35
  3. package/dist/{breakpoints-CAbhDUht.js → breakpoints-DllybT82.js} +7 -5
  4. package/dist/checkbox.css_raw-AYtSbUtY.js +5 -0
  5. package/dist/{chip-limits-BMoO31JM.js → chip-limits-CFABydIL.js} +5 -3
  6. package/dist/{chip-strip-Cw3gyz0q.js → chip-strip-bNfLn52Z.js} +5 -3
  7. package/dist/chip.css_raw-ChfRSHLO.js +5 -0
  8. package/dist/{color-DHYrfXsX.js → color-CEYYtRX-.js} +8 -7
  9. package/dist/{css-class-BRKRzHx-.js → css-class-B6Tc_MAx.js} +2 -1
  10. package/dist/{css-size-DhHSVZJK.js → css-size-DWAPgQdT.js} +2 -1
  11. package/dist/{data-source-controller-C50Qyfzh.js → data-source-controller-Cf_sMxEh.js} +72 -7
  12. package/dist/data-source-controller-Dx6IQ2CN.js +243 -0
  13. package/dist/{data-source-options-BTpfrOZ_.js → data-source-options-Bk-UoaZV.js} +15 -10
  14. package/dist/{data-source-options-CQSTZHPE.js → data-source-options-QjuI73g8.js} +17 -12
  15. package/dist/{data-source-read-CUX-lgrQ.js → data-source-read-Cuqw3LcP.js} +7 -4
  16. package/dist/{data-source-read-DL88aH8t.js → data-source-read-FxqzQkk2.js} +8 -5
  17. package/dist/{decorate-DEXtNagw.js → decorate-DbYFpi8R.js} +7 -5
  18. package/dist/{element-props-CLB6yvbm.js → element-props-xvw0EB7H.js} +4 -3
  19. package/dist/{esm-Ptok4SQZ.js → esm-D0We7ndD.js} +48 -44
  20. package/dist/{excel-DopRbEMK.js → excel-BXzr3uI1.js} +192 -16
  21. package/dist/{excel-CY6zGkcx.js → excel-DtRpxmxs.js} +27 -16
  22. package/dist/{export-BvlBx_GZ.js → export-B91P6J1y.js} +104 -18
  23. package/dist/export.js +103 -18
  24. package/dist/{field-icons-BoOG6KrL.js → field-icons-FmyBWa0g.js} +38 -1
  25. package/dist/{field-path-C92eGLg3.js → field-path-BabiMrrA.js} +3 -2
  26. package/dist/{filter-builder-Bke3qOgJ.js → filter-builder-B6Y2mmbM.js} +7 -4
  27. package/dist/{filter-builder-CE4zE0V5.js → filter-builder-C0T3pMx2.js} +7 -4
  28. package/dist/{filter-eval-DIfU2EAn.js → filter-eval-ChDSaAUH.js} +7 -5
  29. package/dist/{filter-odata-C1vSGZaY.js → filter-odata-Bi27XUpQ.js} +9 -6
  30. package/dist/{form-control-core-B8d7k6vk.js → form-control-core-CIdMLXMo.js} +9 -6
  31. package/dist/{form-control-core-eeRr0zLU.js → form-control-core-CRZPZ1ru.js} +9 -6
  32. package/dist/hydration-flush-DHrl4_KK.js +1014 -0
  33. package/dist/{icon-CJkTlmTb.js → icon-BM9N-jOt.js} +5 -2
  34. package/dist/{icon-dVhYJUIH.js → icon-ClxnYhBG.js} +4 -2
  35. package/dist/{import-BgJdkwBI.js → import-Dc4eXC02.js} +22 -16
  36. package/dist/import.js +22 -16
  37. package/dist/index.js +17 -16
  38. package/dist/{index.node-DjvYOL-J.js → index.node-dvrNviMx.js} +26 -19
  39. package/dist/index.node.js +17 -16
  40. package/dist/input.css_raw-CGESifay.js +5 -0
  41. package/dist/{layout-var-CZnzMC0s.js → layout-var-BSBKY49k.js} +3 -2
  42. package/dist/{light-slots-BVJwyg_2.js → light-slots-4ZCjOcBg.js} +6 -4
  43. package/dist/{light-slots-DW1WgfgT.js → light-slots-DdDdZ6zs.js} +6 -4
  44. package/dist/{markdown-DfqrfOJN.js → markdown-uGlE_OfJ.js} +414 -369
  45. package/dist/mono-button-CeDB9khW.js +878 -0
  46. package/dist/mono-button.shadow-D9NdMsmH.js +790 -0
  47. package/dist/{mono-data-chart-ChU4Ii3p.js → mono-data-chart-ChkelNT7.js} +66 -22
  48. package/dist/{mono-data-dropdown-BAUl58kW.js → mono-data-dropdown-DxpUUk2y.js} +5 -3
  49. package/dist/{mono-data-grid-Db80FzdZ.js → mono-data-grid-8jmeIXUU.js} +56 -265
  50. package/dist/{mono-data-grid-CLBK8clE.js → mono-data-grid-BHlo1IgR.js} +56 -265
  51. package/dist/{mono-element-B0kP_96P.js → mono-element-C7vCschg.js} +7 -4
  52. package/dist/{mono-event-Bi1qP9uN.js → mono-event-BPku9HpS.js} +4 -3
  53. package/dist/{mono-form-controller-5PfsU4qa.js → mono-form-controller-IYn0MuUQ.js} +7 -4
  54. package/dist/{mono-modal-controller-BMO3n3rP.js → mono-modal-controller-ClObbHUs.js} +9 -7
  55. package/dist/{mono-ui-CPV7rrdo.js → mono-ui-BwUc0L6B.js} +22 -20
  56. package/dist/{data-search-Bwo5bg8K.js → normalize-error-D93O4q8g.js} +314 -10
  57. package/dist/{notifier-CE4yxMUQ.js → notifier-BIrqUzRh.js} +11 -1
  58. package/dist/nuxt.js +20 -15
  59. package/dist/{popup-portal-BziRX1yG.js → popup-portal-HWhkd7oy.js} +6 -4
  60. package/dist/{popup-stack-CEEMib__.js → popup-stack-De05Y-mJ.js} +13 -10
  61. package/dist/{rate-limit-BBa2PO79.js → rate-limit-e9Jlpl5l.js} +12 -9
  62. package/dist/{reactive-BHsqVjRh.js → reactive-DFCdZbH9.js} +318 -12
  63. package/dist/{reactive-D3EERqgO.js → reactive-Dtd-esHO.js} +2 -1
  64. package/dist/search.js +5 -4
  65. package/dist/src/components/accordion/accordion-core.d.ts +42 -40
  66. package/dist/src/components/accordion/accordion-types.d.ts +50 -48
  67. package/dist/src/components/accordion/index.d.ts +3 -2
  68. package/dist/src/components/accordion/index.shadow.d.ts +4 -4
  69. package/dist/src/components/accordion/mono-accordion.d.ts +44 -40
  70. package/dist/src/components/accordion/mono-accordion.shadow.d.ts +42 -38
  71. package/dist/src/components/alert/alert-core.d.ts +30 -28
  72. package/dist/src/components/alert/alert-types.d.ts +36 -34
  73. package/dist/src/components/alert/index.d.ts +3 -2
  74. package/dist/src/components/alert/index.shadow.d.ts +4 -4
  75. package/dist/src/components/alert/mono-alert.d.ts +30 -26
  76. package/dist/src/components/alert/mono-alert.shadow.d.ts +24 -20
  77. package/dist/src/components/breadcrumb/breadcrumb-core.d.ts +42 -40
  78. package/dist/src/components/breadcrumb/breadcrumb-list-core.d.ts +31 -29
  79. package/dist/src/components/breadcrumb/breadcrumb-render.d.ts +18 -16
  80. package/dist/src/components/breadcrumb/breadcrumb-types.d.ts +89 -87
  81. package/dist/src/components/breadcrumb/breadcrumb-utils.d.ts +18 -15
  82. package/dist/src/components/breadcrumb/index.d.ts +6 -5
  83. package/dist/src/components/breadcrumb/index.shadow.d.ts +7 -7
  84. package/dist/src/components/breadcrumb/mono-breadcrumb-list.d.ts +18 -14
  85. package/dist/src/components/breadcrumb/mono-breadcrumb-list.shadow.d.ts +33 -29
  86. package/dist/src/components/breadcrumb/mono-breadcrumb.d.ts +24 -20
  87. package/dist/src/components/breadcrumb/mono-breadcrumb.shadow.d.ts +55 -51
  88. package/dist/src/components/button/button-core.d.ts +73 -71
  89. package/dist/src/components/button/button-dropdown-core.d.ts +55 -53
  90. package/dist/src/components/button/button-dropdown-types.d.ts +98 -96
  91. package/dist/src/components/button/button-types.d.ts +157 -155
  92. package/dist/src/components/button/button-utils.d.ts +7 -5
  93. package/dist/src/components/button/index.button-dropdown.d.ts +5 -3
  94. package/dist/src/components/button/index.button-dropdown.shadow.d.ts +5 -3
  95. package/dist/src/components/button/index.d.ts +4 -7
  96. package/dist/src/components/button/index.shadow.d.ts +5 -4
  97. package/dist/src/components/button/mono-button-dropdown.d.ts +24 -19
  98. package/dist/src/components/button/mono-button-dropdown.shadow.d.ts +34 -29
  99. package/dist/src/components/button/mono-button.d.ts +105 -101
  100. package/dist/src/components/button/mono-button.shadow.d.ts +42 -38
  101. package/dist/src/components/card/card-core.d.ts +59 -56
  102. package/dist/src/components/card/card-types.d.ts +91 -89
  103. package/dist/src/components/card/card-utils.d.ts +11 -9
  104. package/dist/src/components/card/index.d.ts +4 -3
  105. package/dist/src/components/card/index.shadow.d.ts +5 -5
  106. package/dist/src/components/card/mono-card.d.ts +36 -32
  107. package/dist/src/components/card/mono-card.shadow.d.ts +32 -28
  108. package/dist/src/components/chart/chart-core.d.ts +30 -28
  109. package/dist/src/components/chart/chart-odata.d.ts +17 -16
  110. package/dist/src/components/chart/chart-types.d.ts +269 -248
  111. package/dist/src/components/chart/index.d.ts +7 -7
  112. package/dist/src/components/chart/index.shadow.d.ts +7 -6
  113. package/dist/src/components/chart/mono-chart-presets.d.ts +33 -29
  114. package/dist/src/components/chart/mono-chart-presets.shadow.d.ts +33 -29
  115. package/dist/src/components/chart/mono-chart.d.ts +13 -9
  116. package/dist/src/components/chart/mono-chart.shadow.d.ts +13 -9
  117. package/dist/src/components/chart/mono-data-chart.d.ts +4 -26
  118. package/dist/src/components/checkbox/checkbox-core.d.ts +39 -37
  119. package/dist/src/components/checkbox/checkbox-types.d.ts +59 -57
  120. package/dist/src/components/checkbox/checkbox-utils.d.ts +13 -11
  121. package/dist/src/components/checkbox/index.d.ts +4 -3
  122. package/dist/src/components/checkbox/index.shadow.d.ts +5 -4
  123. package/dist/src/components/checkbox/mono-checkbox.d.ts +21 -17
  124. package/dist/src/components/checkbox/mono-checkbox.shadow.d.ts +31 -27
  125. package/dist/src/components/chip/chip-core.d.ts +42 -40
  126. package/dist/src/components/chip/chip-types.d.ts +104 -102
  127. package/dist/src/components/chip/chip-utils.d.ts +20 -18
  128. package/dist/src/components/chip/index.d.ts +5 -7
  129. package/dist/src/components/chip/index.shadow.d.ts +6 -5
  130. package/dist/src/components/chip/mono-chip.d.ts +31 -27
  131. package/dist/src/components/chip/mono-chip.shadow.d.ts +19 -15
  132. package/dist/src/components/chip/mono-status-dot.d.ts +19 -17
  133. package/dist/src/components/date/date-core.d.ts +64 -62
  134. package/dist/src/components/date/date-types.d.ts +143 -141
  135. package/dist/src/components/date/index.d.ts +3 -2
  136. package/dist/src/components/date/index.shadow.d.ts +4 -3
  137. package/dist/src/components/date/mono-date.d.ts +12 -8
  138. package/dist/src/components/date/mono-date.shadow.d.ts +21 -17
  139. package/dist/src/components/drawer/drawer-core.d.ts +75 -73
  140. package/dist/src/components/drawer/drawer-types.d.ts +109 -107
  141. package/dist/src/components/drawer/index.d.ts +3 -2
  142. package/dist/src/components/drawer/index.shadow.d.ts +4 -3
  143. package/dist/src/components/drawer/mono-drawer.d.ts +32 -28
  144. package/dist/src/components/drawer/mono-drawer.shadow.d.ts +34 -31
  145. package/dist/src/components/dropdown/dropdown-core.d.ts +31 -29
  146. package/dist/src/components/dropdown/dropdown-types.d.ts +62 -60
  147. package/dist/src/components/dropdown/index.d.ts +3 -2
  148. package/dist/src/components/dropdown/index.shadow.d.ts +4 -3
  149. package/dist/src/components/dropdown/mono-dropdown.d.ts +23 -19
  150. package/dist/src/components/dropdown/mono-dropdown.shadow.d.ts +19 -15
  151. package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +53 -51
  152. package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +218 -216
  153. package/dist/src/components/dropdown-table/index.d.ts +5 -4
  154. package/dist/src/components/dropdown-table/index.shadow.d.ts +6 -5
  155. package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +119 -129
  156. package/dist/src/components/dropdown-table/mono-dropdown-table.d.ts +20 -16
  157. package/dist/src/components/dropdown-table/mono-dropdown-table.shadow.d.ts +15 -11
  158. package/dist/src/components/file-upload/file-upload-core.d.ts +44 -42
  159. package/dist/src/components/file-upload/file-upload-types.d.ts +123 -121
  160. package/dist/src/components/file-upload/file-upload-utils.d.ts +7 -4
  161. package/dist/src/components/file-upload/index.d.ts +4 -3
  162. package/dist/src/components/file-upload/index.shadow.d.ts +5 -4
  163. package/dist/src/components/file-upload/mono-file-upload.d.ts +20 -16
  164. package/dist/src/components/file-upload/mono-file-upload.shadow.d.ts +34 -30
  165. package/dist/src/components/filter/filter-builder-core.d.ts +17 -15
  166. package/dist/src/components/filter/filter-builder.d.ts +4 -22
  167. package/dist/src/components/filter/filter-odata.d.ts +3 -1
  168. package/dist/src/components/filter/filter-operators.d.ts +3 -1
  169. package/dist/src/components/filter/filter-types.d.ts +172 -170
  170. package/dist/src/components/filter/index.d.ts +6 -5
  171. package/dist/src/components/filter/index.shadow.d.ts +7 -6
  172. package/dist/src/components/filter/mono-filter-builder.d.ts +13 -10
  173. package/dist/src/components/filter/mono-filter-builder.shadow.d.ts +10 -7
  174. package/dist/src/components/form/form-control-core.d.ts +14 -12
  175. package/dist/src/components/form/form-rules.d.ts +7 -5
  176. package/dist/src/components/form/form-types.d.ts +214 -214
  177. package/dist/src/components/form/index.d.ts +5 -5
  178. package/dist/src/components/form/mono-form-controller.d.ts +4 -15
  179. package/dist/src/components/input/index.d.ts +5 -5
  180. package/dist/src/components/input/index.shadow.d.ts +6 -7
  181. package/dist/src/components/input/input-core.d.ts +73 -71
  182. package/dist/src/components/input/input-format.d.ts +22 -20
  183. package/dist/src/components/input/input-types.d.ts +167 -165
  184. package/dist/src/components/input/input-utils.d.ts +7 -5
  185. package/dist/src/components/input/mono-input.d.ts +35 -31
  186. package/dist/src/components/input/mono-input.shadow.d.ts +17 -13
  187. package/dist/src/components/menu/index.d.ts +7 -5
  188. package/dist/src/components/menu/index.shadow.d.ts +7 -6
  189. package/dist/src/components/menu/menu-core.d.ts +47 -45
  190. package/dist/src/components/menu/menu-render.d.ts +42 -40
  191. package/dist/src/components/menu/menu-types.d.ts +132 -130
  192. package/dist/src/components/menu/menu-utils.d.ts +16 -13
  193. package/dist/src/components/menu/mono-menu-list.d.ts +116 -114
  194. package/dist/src/components/menu/mono-menu.d.ts +30 -26
  195. package/dist/src/components/menu/mono-menu.shadow.d.ts +22 -18
  196. package/dist/src/components/modal/index.d.ts +5 -3
  197. package/dist/src/components/modal/index.shadow.d.ts +6 -4
  198. package/dist/src/components/modal/modal-core.d.ts +81 -79
  199. package/dist/src/components/modal/modal-types.d.ts +223 -221
  200. package/dist/src/components/modal/mono-modal-controller.d.ts +4 -3
  201. package/dist/src/components/modal/mono-modal.d.ts +32 -28
  202. package/dist/src/components/modal/mono-modal.shadow.d.ts +38 -35
  203. package/dist/src/components/nav/index.d.ts +4 -3
  204. package/dist/src/components/nav/index.shadow.d.ts +5 -5
  205. package/dist/src/components/nav/mono-nav.d.ts +28 -24
  206. package/dist/src/components/nav/mono-nav.shadow.d.ts +10 -7
  207. package/dist/src/components/nav/nav-core.d.ts +16 -14
  208. package/dist/src/components/nav/nav-types.d.ts +23 -22
  209. package/dist/src/components/nav/nav-utils.d.ts +10 -8
  210. package/dist/src/components/radio/index.d.ts +4 -3
  211. package/dist/src/components/radio/index.shadow.d.ts +5 -4
  212. package/dist/src/components/radio/mono-radio.d.ts +19 -15
  213. package/dist/src/components/radio/mono-radio.shadow.d.ts +22 -18
  214. package/dist/src/components/radio/radio-core.d.ts +31 -29
  215. package/dist/src/components/radio/radio-types.d.ts +48 -46
  216. package/dist/src/components/radio/radio-utils.d.ts +5 -3
  217. package/dist/src/components/rich-text-editor/index.d.ts +5 -4
  218. package/dist/src/components/rich-text-editor/index.shadow.d.ts +6 -5
  219. package/dist/src/components/rich-text-editor/mono-rich-text-editor.d.ts +19 -15
  220. package/dist/src/components/rich-text-editor/mono-rich-text-editor.shadow.d.ts +22 -19
  221. package/dist/src/components/rich-text-editor/rich-text-editor-core.d.ts +61 -59
  222. package/dist/src/components/rich-text-editor/rich-text-editor-loader.d.ts +2 -0
  223. package/dist/src/components/rich-text-editor/rich-text-editor-toolbar.d.ts +5 -3
  224. package/dist/src/components/rich-text-editor/rich-text-editor-types.d.ts +179 -177
  225. package/dist/src/components/select/index.d.ts +4 -3
  226. package/dist/src/components/select/index.shadow.d.ts +5 -4
  227. package/dist/src/components/select/mono-select.d.ts +58 -54
  228. package/dist/src/components/select/mono-select.shadow.d.ts +30 -27
  229. package/dist/src/components/select/select-core.d.ts +82 -80
  230. package/dist/src/components/select/select-types.d.ts +235 -208
  231. package/dist/src/components/select/select-utils.d.ts +7 -5
  232. package/dist/src/components/sidebar/index.d.ts +4 -3
  233. package/dist/src/components/sidebar/index.shadow.d.ts +5 -5
  234. package/dist/src/components/sidebar/mono-sidebar.d.ts +22 -18
  235. package/dist/src/components/sidebar/mono-sidebar.shadow.d.ts +11 -8
  236. package/dist/src/components/sidebar/sidebar-core.d.ts +33 -31
  237. package/dist/src/components/sidebar/sidebar-types.d.ts +77 -75
  238. package/dist/src/components/sidebar/sidebar-utils.d.ts +28 -26
  239. package/dist/src/components/switch/index.d.ts +4 -3
  240. package/dist/src/components/switch/index.shadow.d.ts +5 -4
  241. package/dist/src/components/switch/mono-switch.d.ts +19 -15
  242. package/dist/src/components/switch/mono-switch.shadow.d.ts +23 -19
  243. package/dist/src/components/switch/switch-core.d.ts +35 -33
  244. package/dist/src/components/switch/switch-types.d.ts +55 -53
  245. package/dist/src/components/switch/switch-utils.d.ts +5 -3
  246. package/dist/src/components/table/array-source.d.ts +31 -29
  247. package/dist/src/components/table/date-filter-tree.d.ts +25 -23
  248. package/dist/src/components/table/grouping.d.ts +22 -20
  249. package/dist/src/components/table/index.d.ts +28 -32
  250. package/dist/src/components/table/index.shadow.d.ts +34 -46
  251. package/dist/src/components/table/mono-data-grid.d.ts +1447 -1456
  252. package/dist/src/components/table/mono-table-checkbox-core.d.ts +34 -32
  253. package/dist/src/components/table/mono-table-checkbox.d.ts +12 -8
  254. package/dist/src/components/table/mono-table-checkbox.shadow.d.ts +16 -12
  255. package/dist/src/components/table/mono-table-detail-core.d.ts +29 -27
  256. package/dist/src/components/table/mono-table-detail.d.ts +12 -8
  257. package/dist/src/components/table/mono-table-detail.shadow.d.ts +13 -9
  258. package/dist/src/components/table/mono-table-empty-core.d.ts +24 -22
  259. package/dist/src/components/table/mono-table-empty.d.ts +17 -13
  260. package/dist/src/components/table/mono-table-empty.shadow.d.ts +22 -18
  261. package/dist/src/components/table/mono-table-error-core.d.ts +24 -22
  262. package/dist/src/components/table/mono-table-error.d.ts +12 -8
  263. package/dist/src/components/table/mono-table-error.shadow.d.ts +15 -11
  264. package/dist/src/components/table/mono-table-info-core.d.ts +6 -4
  265. package/dist/src/components/table/mono-table-info.d.ts +12 -8
  266. package/dist/src/components/table/mono-table-info.shadow.d.ts +9 -5
  267. package/dist/src/components/table/mono-table-loading-core.d.ts +7 -5
  268. package/dist/src/components/table/mono-table-loading.d.ts +12 -8
  269. package/dist/src/components/table/mono-table-loading.shadow.d.ts +9 -5
  270. package/dist/src/components/table/mono-table-page-size-core.d.ts +7 -5
  271. package/dist/src/components/table/mono-table-page-size.d.ts +12 -8
  272. package/dist/src/components/table/mono-table-page-size.shadow.d.ts +9 -5
  273. package/dist/src/components/table/mono-table-paging-core.d.ts +16 -14
  274. package/dist/src/components/table/mono-table-paging-group-core.d.ts +10 -8
  275. package/dist/src/components/table/mono-table-paging-group.d.ts +12 -8
  276. package/dist/src/components/table/mono-table-paging-group.shadow.d.ts +9 -5
  277. package/dist/src/components/table/mono-table-paging.d.ts +12 -8
  278. package/dist/src/components/table/mono-table-paging.shadow.d.ts +9 -5
  279. package/dist/src/components/table/mono-table-search-core.d.ts +51 -49
  280. package/dist/src/components/table/mono-table-search.d.ts +25 -22
  281. package/dist/src/components/table/mono-table-search.shadow.d.ts +12 -9
  282. package/dist/src/components/table/mono-table-sort-core.d.ts +16 -14
  283. package/dist/src/components/table/mono-table-sort.d.ts +21 -18
  284. package/dist/src/components/table/mono-table-sort.shadow.d.ts +11 -8
  285. package/dist/src/components/table/mono-table-summary-core.d.ts +9 -7
  286. package/dist/src/components/table/mono-table-summary.d.ts +12 -8
  287. package/dist/src/components/table/mono-table-summary.shadow.d.ts +9 -5
  288. package/dist/src/components/table/mono-table-th-core.d.ts +23 -21
  289. package/dist/src/components/table/mono-table-th.d.ts +21 -18
  290. package/dist/src/components/table/mono-table-th.shadow.d.ts +11 -8
  291. package/dist/src/components/table/store-group-source.d.ts +14 -12
  292. package/dist/src/components/table/table-controller-core.d.ts +17 -15
  293. package/dist/src/components/table/table-filter-icons.d.ts +3 -1
  294. package/dist/src/components/table/table-menu-core.d.ts +40 -38
  295. package/dist/src/components/table/table-overlay.d.ts +43 -41
  296. package/dist/src/components/table/table-sort-icons.d.ts +4 -2
  297. package/dist/src/components/table/table-sort-utils.d.ts +3 -1
  298. package/dist/src/components/table/table-types.d.ts +391 -400
  299. package/dist/src/components/tabs/index.d.ts +3 -2
  300. package/dist/src/components/tabs/index.shadow.d.ts +4 -3
  301. package/dist/src/components/tabs/mono-tabs.d.ts +21 -17
  302. package/dist/src/components/tabs/mono-tabs.shadow.d.ts +21 -17
  303. package/dist/src/components/tabs/tabs-core.d.ts +36 -34
  304. package/dist/src/components/tabs/tabs-types.d.ts +48 -46
  305. package/dist/src/components/tag-input/index.d.ts +5 -3
  306. package/dist/src/components/tag-input/index.shadow.d.ts +6 -4
  307. package/dist/src/components/tag-input/mono-tag-input.d.ts +56 -52
  308. package/dist/src/components/tag-input/mono-tag-input.shadow.d.ts +41 -38
  309. package/dist/src/components/tag-input/tag-input-core.d.ts +95 -93
  310. package/dist/src/components/tag-input/tag-input-types.d.ts +350 -327
  311. package/dist/src/components/tag-input/tag-input-utils.d.ts +7 -5
  312. package/dist/src/components/textarea/index.d.ts +4 -3
  313. package/dist/src/components/textarea/index.shadow.d.ts +5 -4
  314. package/dist/src/components/textarea/mono-textarea.d.ts +19 -15
  315. package/dist/src/components/textarea/mono-textarea.shadow.d.ts +19 -16
  316. package/dist/src/components/textarea/textarea-core.d.ts +48 -46
  317. package/dist/src/components/textarea/textarea-types.d.ts +120 -118
  318. package/dist/src/components/textarea/textarea-utils.d.ts +7 -5
  319. package/dist/src/components/tooltip/control-tooltip.d.ts +3 -1
  320. package/dist/src/components/tooltip/index.d.ts +6 -5
  321. package/dist/src/components/tooltip/tooltip-config.d.ts +17 -15
  322. package/dist/src/components/tooltip/tooltip-declarative.d.ts +3 -1
  323. package/dist/src/components/tooltip/tooltip-loader.d.ts +2 -0
  324. package/dist/src/components/tooltip/tooltip-types.d.ts +74 -72
  325. package/dist/src/composables/breakpoints.d.ts +9 -7
  326. package/dist/src/composables/chip-limits.d.ts +12 -10
  327. package/dist/src/composables/chip-strip.d.ts +91 -89
  328. package/dist/src/composables/color.d.ts +6 -4
  329. package/dist/src/composables/css-class.d.ts +4 -2
  330. package/dist/src/composables/css-size.d.ts +9 -7
  331. package/dist/src/composables/data-source-controller.d.ts +90 -59
  332. package/dist/src/composables/element-props.d.ts +3 -3
  333. package/dist/src/composables/field-icons.d.ts +11 -1
  334. package/dist/src/composables/hybird-prop.d.ts +10 -8
  335. package/dist/src/composables/hydration-flush.d.ts +16 -14
  336. package/dist/src/composables/icon.d.ts +3 -1
  337. package/dist/src/composables/layout-var.d.ts +2 -0
  338. package/dist/src/composables/light-slots.d.ts +34 -32
  339. package/dist/src/composables/mdi-glyphs.d.ts +2 -0
  340. package/dist/src/composables/mono-element.d.ts +3 -1
  341. package/dist/src/composables/mono-event.d.ts +15 -13
  342. package/dist/src/composables/mono-pending.d.ts +4 -2
  343. package/dist/src/composables/mono-skeleton.d.ts +100 -98
  344. package/dist/src/composables/mono-ui.d.ts +17 -18
  345. package/dist/src/composables/notifier.d.ts +20 -18
  346. package/dist/src/composables/popup-portal.d.ts +177 -175
  347. package/dist/src/composables/popup-stack.d.ts +36 -34
  348. package/dist/src/composables/rate-limit.d.ts +33 -31
  349. package/dist/src/composables/reactive.d.ts +3 -1
  350. package/dist/src/composables/shadow-css.d.ts +17 -15
  351. package/dist/src/composables/visibility.d.ts +6 -4
  352. package/dist/src/data/theme/index.d.ts +9 -7
  353. package/dist/src/data/theme/presets.d.ts +64 -62
  354. package/dist/src/entries/index.d.ts +36 -1
  355. package/dist/src/entries/index.node.d.ts +34 -41
  356. package/dist/src/entries/search.d.ts +2 -2
  357. package/dist/src/export/detail.d.ts +14 -12
  358. package/dist/src/export/download.d.ts +2 -0
  359. package/dist/src/export/excel/index.d.ts +13 -11
  360. package/dist/src/export/excel/nodes.d.ts +95 -93
  361. package/dist/src/export/expression.d.ts +3 -1
  362. package/dist/src/export/helpers.d.ts +3 -1
  363. package/dist/src/export/index.d.ts +6 -4
  364. package/dist/src/export/markdown.d.ts +19 -17
  365. package/dist/src/export/resolve-data.d.ts +3 -1
  366. package/dist/src/export/sentinel.d.ts +32 -30
  367. package/dist/src/export/sheet-name.d.ts +7 -5
  368. package/dist/src/export/styles.d.ts +13 -11
  369. package/dist/src/export/template.d.ts +3 -1
  370. package/dist/src/export/types.d.ts +224 -222
  371. package/dist/src/import/coerce.d.ts +5 -3
  372. package/dist/src/import/index.d.ts +12 -10
  373. package/dist/src/import/match.d.ts +20 -18
  374. package/dist/src/import/parse.d.ts +5 -3
  375. package/dist/src/import/types.d.ts +125 -123
  376. package/dist/src/nuxt/index.d.ts +92 -90
  377. package/dist/src/search/data-search.d.ts +92 -90
  378. package/dist/src/search/field-path.d.ts +10 -8
  379. package/dist/src/search/filter-eval.d.ts +2 -0
  380. package/dist/src/search/index.d.ts +6 -22
  381. package/dist/src/search/odata-search.d.ts +9 -7
  382. package/dist/src/search/search-expr.d.ts +16 -14
  383. package/dist/src/utils/data-source-apply.d.ts +11 -9
  384. package/dist/src/utils/data-source-options.d.ts +37 -35
  385. package/dist/src/utils/data-source-read.d.ts +40 -54
  386. package/dist/src/utils/data-source-summary.d.ts +8 -7
  387. package/dist/src/utils/normalize-error.d.ts +41 -9
  388. package/dist/src/vite/index.d.ts +34 -34
  389. package/dist/src/vite/mono-client-only.d.ts +34 -32
  390. package/dist/src/vite/mono-ssr-stub.d.ts +8 -6
  391. package/dist/src/vite/shadow-manifest.d.ts +2 -0
  392. package/dist/{styles-BIJ31TM4.js → styles-D-ergrfR.js} +417 -207
  393. package/dist/{tooltip-CysgRgBi.js → tooltip-FCMRUSLi.js} +94 -52
  394. package/dist/tooltip.js +3 -2
  395. package/dist/ui/accordion.js +16 -12
  396. package/dist/ui/alert.js +21 -14
  397. package/dist/ui/breadcrumb.js +28 -18
  398. package/dist/ui/button-dropdown.js +18 -14
  399. package/dist/ui/button.js +4 -2
  400. package/dist/ui/card.js +31 -13
  401. package/dist/ui/chart.js +107 -25
  402. package/dist/ui/checkbox.js +17 -12
  403. package/dist/ui/chip.js +19 -12
  404. package/dist/ui/date.js +19 -15
  405. package/dist/ui/drawer.js +26 -20
  406. package/dist/ui/dropdown-table.js +39 -30
  407. package/dist/ui/dropdown.js +19 -15
  408. package/dist/ui/file-upload.js +22 -17
  409. package/dist/ui/filter.js +18 -14
  410. package/dist/ui/form.js +4 -3
  411. package/dist/ui/index.css +1233 -2194
  412. package/dist/ui/input.js +24 -17
  413. package/dist/ui/menu.js +32 -20
  414. package/dist/ui/modal.js +34 -26
  415. package/dist/ui/nav.js +21 -15
  416. package/dist/ui/radio.js +17 -12
  417. package/dist/ui/rich-text-editor.js +34 -28
  418. package/dist/ui/select.js +181 -41
  419. package/dist/ui/shadow/accordion.js +13 -9
  420. package/dist/ui/shadow/alert.js +13 -9
  421. package/dist/ui/shadow/breadcrumb.js +23 -14
  422. package/dist/ui/shadow/button-dropdown.js +17 -13
  423. package/dist/ui/shadow/button.js +4 -2
  424. package/dist/ui/shadow/card.js +30 -11
  425. package/dist/ui/shadow/chart.js +163 -40
  426. package/dist/ui/shadow/checkbox.js +13 -9
  427. package/dist/ui/shadow/chip.js +16 -10
  428. package/dist/ui/shadow/date.js +19 -12
  429. package/dist/ui/shadow/drawer.js +22 -16
  430. package/dist/ui/shadow/dropdown-table.js +39 -28
  431. package/dist/ui/shadow/dropdown.js +15 -11
  432. package/dist/ui/shadow/file-upload.js +26 -19
  433. package/dist/ui/shadow/filter.js +17 -13
  434. package/dist/ui/shadow/input.js +20 -14
  435. package/dist/ui/shadow/menu.js +24 -14
  436. package/dist/ui/shadow/modal.js +36 -27
  437. package/dist/ui/shadow/nav.js +18 -12
  438. package/dist/ui/shadow/radio.js +15 -10
  439. package/dist/ui/shadow/rich-text-editor.js +32 -26
  440. package/dist/ui/shadow/select.js +179 -39
  441. package/dist/ui/shadow/sidebar.js +23 -16
  442. package/dist/ui/shadow/switch.js +15 -10
  443. package/dist/ui/shadow/table.js +123 -84
  444. package/dist/ui/shadow/tabs.js +12 -8
  445. package/dist/ui/shadow/tag-input.js +186 -52
  446. package/dist/ui/shadow/textarea.js +17 -12
  447. package/dist/ui/sidebar.js +27 -20
  448. package/dist/ui/switch.js +17 -12
  449. package/dist/ui/table.js +129 -87
  450. package/dist/ui/tabs.js +15 -11
  451. package/dist/ui/tag-input.js +182 -48
  452. package/dist/ui/textarea.js +19 -14
  453. package/dist/{vite-C5iUK7so.js → vite-DcyRlTTf.js} +17 -9
  454. package/dist/vite.js +3 -2
  455. package/package.json +15 -14
  456. package/dist/checkbox-Cqpie9Ap.js +0 -4
  457. package/dist/chip-DBUUa2eB.js +0 -4
  458. package/dist/data/theme/presets.json.d.ts +0 -140
  459. package/dist/export.d.ts +0 -1
  460. package/dist/hydration-flush-RB5Tz5nl.js +0 -1001
  461. package/dist/import.d.ts +0 -1
  462. package/dist/index.d.ts +0 -1
  463. package/dist/index.node.d.ts +0 -1
  464. package/dist/input-zGOULADt.js +0 -4
  465. package/dist/mono-button-CoVnBLav.js +0 -873
  466. package/dist/mono-button.shadow-FfP_hMH4.js +0 -784
  467. package/dist/nuxt.d.ts +0 -1
  468. package/dist/search.d.ts +0 -1
  469. package/dist/tooltip.d.ts +0 -1
  470. package/dist/ui/accordion.d.ts +0 -1
  471. package/dist/ui/alert.d.ts +0 -1
  472. package/dist/ui/breadcrumb.d.ts +0 -1
  473. package/dist/ui/button-dropdown.d.ts +0 -1
  474. package/dist/ui/button.d.ts +0 -1
  475. package/dist/ui/card.d.ts +0 -1
  476. package/dist/ui/chart.d.ts +0 -1
  477. package/dist/ui/checkbox.d.ts +0 -1
  478. package/dist/ui/chip.d.ts +0 -1
  479. package/dist/ui/date.d.ts +0 -1
  480. package/dist/ui/drawer.d.ts +0 -1
  481. package/dist/ui/dropdown-table.d.ts +0 -1
  482. package/dist/ui/dropdown.d.ts +0 -1
  483. package/dist/ui/file-upload.d.ts +0 -1
  484. package/dist/ui/filter.d.ts +0 -1
  485. package/dist/ui/form.d.ts +0 -1
  486. package/dist/ui/input.d.ts +0 -1
  487. package/dist/ui/menu.d.ts +0 -1
  488. package/dist/ui/modal.d.ts +0 -1
  489. package/dist/ui/nav.d.ts +0 -1
  490. package/dist/ui/radio.d.ts +0 -1
  491. package/dist/ui/rich-text-editor.d.ts +0 -1
  492. package/dist/ui/select.d.ts +0 -1
  493. package/dist/ui/sidebar.d.ts +0 -1
  494. package/dist/ui/switch.d.ts +0 -1
  495. package/dist/ui/table.d.ts +0 -1
  496. package/dist/ui/tabs.d.ts +0 -1
  497. package/dist/ui/tag-input.d.ts +0 -1
  498. package/dist/ui/textarea.d.ts +0 -1
  499. package/dist/vite.d.ts +0 -1
@@ -1,15 +1,17 @@
1
- import { n as isPath, t as getFieldValue } from "./field-path-C92eGLg3.js";
2
- import { r as readAllRows } from "./data-source-read-DL88aH8t.js";
3
- import { n as andPredicates, r as compileFilterPredicate, t as andFilters } from "./filter-eval-DIfU2EAn.js";
4
- import { a as resolveDataSourceOptions, d as createApplyGate, f as isRolledUp, h as monoArraySource, i as normalizeSortList, n as extraLoadOptions, o as toList, p as loadApply, r as mergeDataSourceOptions, u as summaryFilterOf } from "./data-source-options-CQSTZHPE.js";
5
- import { t as arrayToODataString } from "./filter-odata-C1vSGZaY.js";
6
- import { t as createNotifier } from "./notifier-CE4yxMUQ.js";
1
+ import { n as isPath, t as getFieldValue } from "./field-path-BabiMrrA.js";
2
+ import { r as readAllRows } from "./data-source-read-FxqzQkk2.js";
3
+ import { n as andPredicates, r as compileFilterPredicate, t as andFilters } from "./filter-eval-ChDSaAUH.js";
4
+ import { n as describeError, o as isCanceled } from "./normalize-error-D93O4q8g.js";
5
+ import { a as resolveDataSourceOptions, d as createApplyGate, f as isRolledUp, h as monoArraySource, i as normalizeSortList, n as extraLoadOptions, o as toList, p as loadApply, r as mergeDataSourceOptions, u as summaryFilterOf } from "./data-source-options-QjuI73g8.js";
6
+ import { t as arrayToODataString } from "./filter-odata-Bi27XUpQ.js";
7
+ import { t as createNotifier } from "./notifier-BIrqUzRh.js";
8
+
7
9
  //#region src/components/chart/chart-odata.ts
8
10
  /**
9
11
  * `MonoChartAgg` → the OData aggregate keyword. Every value the chart supports has
10
12
  * an exact equivalent, so the server path never has to fall back to draining.
11
13
  */
12
- var ODATA_AGG = {
14
+ const ODATA_AGG = {
13
15
  sum: "sum",
14
16
  avg: "average",
15
17
  min: "min",
@@ -17,7 +19,7 @@ var ODATA_AGG = {
17
19
  count: "$count"
18
20
  };
19
21
  /** A dotted path (`Job.Budget`) addresses a nav property as `Job/Budget` in OData. */
20
- var toODataPath = (field) => field.replaceAll(".", "/");
22
+ const toODataPath = (field) => field.replaceAll(".", "/");
21
23
  /**
22
24
  * Build `groupby((<groupBy>),aggregate(<field> with <agg> as <field>, …))`.
23
25
  *
@@ -86,6 +88,7 @@ function buildChartOdataRequest(input) {
86
88
  aggregated: params.$apply !== void 0
87
89
  };
88
90
  }
91
+
89
92
  //#endregion
90
93
  //#region src/components/chart/mono-data-chart.ts
91
94
  /**
@@ -96,7 +99,7 @@ function buildChartOdataRequest(input) {
96
99
  * time, so a colour preset, a flavour or dark mode recolours charts too. Past
97
100
  * five series the roles follow, so a sixth dataset is still its own colour.
98
101
  */
99
- var DEFAULT_COLORS = [
102
+ const DEFAULT_COLORS = [
100
103
  "chart-1",
101
104
  "chart-2",
102
105
  "chart-3",
@@ -111,7 +114,7 @@ var DEFAULT_COLORS = [
111
114
  * (reading `data()` in Node), or before an element mounts. ONE's light tokens,
112
115
  * so the shape is right even without a DOM.
113
116
  */
114
- var NAME_FALLBACK = {
117
+ const NAME_FALLBACK = {
115
118
  "chart-1": "oklch(0.859 0.069 267.7)",
116
119
  "chart-2": "oklch(0.735 0.12 268.04)",
117
120
  "chart-3": "oklch(0.61 0.12 267.95)",
@@ -383,7 +386,8 @@ function monoChart(source = null, opts = {}) {
383
386
  }
384
387
  const onChanged = () => {
385
388
  if (drainDepth > 0) return;
386
- sync();
389
+ if (opts.loadAll === false) succeed();
390
+ sync().catch(() => {});
387
391
  };
388
392
  /**
389
393
  * Publish the loading state, notifying only on a real change.
@@ -406,11 +410,26 @@ function monoChart(source = null, opts = {}) {
406
410
  syncLoading();
407
411
  notify();
408
412
  };
413
+ /** Record a load failure for the element to paint. Cancelled loads are not failures. */
414
+ function fail(err) {
415
+ if (isCanceled(err)) return;
416
+ ctrl.error = describeError(err);
417
+ notify();
418
+ }
419
+ /** A load answered: the chart has data and any earlier failure is over. */
420
+ function succeed() {
421
+ ctrl.hasLoaded = true;
422
+ ctrl.error = null;
423
+ }
424
+ const onLoadError = (err) => {
425
+ syncLoading();
426
+ fail(err ?? /* @__PURE__ */ new Error("Request failed"));
427
+ };
409
428
  function detach() {
410
429
  if (!bound) return;
411
430
  bound.off("changed", onChanged);
412
431
  bound.off("loadingChanged", onLoadingChanged);
413
- bound.off("loadError", onLoadingChanged);
432
+ bound.off("loadError", onLoadError);
414
433
  bound = null;
415
434
  }
416
435
  let dsOptionsSource = opts.dataSourceOptions;
@@ -508,8 +527,10 @@ function monoChart(source = null, opts = {}) {
508
527
  preAggregated = false;
509
528
  resolveBase();
510
529
  if (!bound) rows = [];
511
- else if (opts.loadAll === false) rows = [...bound.items?.() ?? []];
512
- else {
530
+ else if (opts.loadAll === false) {
531
+ rows = [...bound.items?.() ?? []];
532
+ if (rows.length) succeed();
533
+ } else {
513
534
  drainDepth++;
514
535
  syncLoading();
515
536
  try {
@@ -531,6 +552,10 @@ function monoChart(source = null, opts = {}) {
531
552
  });
532
553
  rows = isArray && typeof filter === "function" ? drained.filter(filter) : drained;
533
554
  }
555
+ succeed();
556
+ } catch (err) {
557
+ fail(err);
558
+ throw err;
534
559
  } finally {
535
560
  drainDepth--;
536
561
  syncLoading();
@@ -545,6 +570,7 @@ function monoChart(source = null, opts = {}) {
545
570
  detach();
546
571
  raw = next;
547
572
  rows = [];
573
+ succeed();
548
574
  ctrl.items = rows;
549
575
  ctrl.dataSource = null;
550
576
  project();
@@ -557,14 +583,16 @@ function monoChart(source = null, opts = {}) {
557
583
  detach();
558
584
  bound = src;
559
585
  ctrl.dataSource = src;
586
+ ctrl.hasLoaded = false;
587
+ ctrl.error = null;
560
588
  if (!src) {
561
- sync();
589
+ sync().catch(() => {});
562
590
  return;
563
591
  }
564
592
  src.on("changed", onChanged);
565
593
  src.on("loadingChanged", onLoadingChanged);
566
- src.on("loadError", onLoadingChanged);
567
- sync();
594
+ src.on("loadError", onLoadError);
595
+ sync().catch(() => {});
568
596
  }
569
597
  /**
570
598
  * Load through `monoOdataFetch`.
@@ -609,6 +637,10 @@ function monoChart(source = null, opts = {}) {
609
637
  if (res?.error) throw new Error(res.error.message ?? "odata request failed");
610
638
  rows = res?.data ?? [];
611
639
  preAggregated = request.aggregated;
640
+ succeed();
641
+ } catch (err) {
642
+ fail(err);
643
+ throw err;
612
644
  } finally {
613
645
  setLoading(false);
614
646
  }
@@ -627,7 +659,13 @@ function monoChart(source = null, opts = {}) {
627
659
  if (opts.loadAll === false && bound?.load) {
628
660
  resolveBase();
629
661
  applyBaseToSource(bound);
630
- await bound.load();
662
+ try {
663
+ await bound.load();
664
+ succeed();
665
+ } catch (err) {
666
+ fail(err);
667
+ throw err;
668
+ }
631
669
  }
632
670
  await sync();
633
671
  } finally {
@@ -680,6 +718,8 @@ function monoChart(source = null, opts = {}) {
680
718
  const ctrl = {
681
719
  items: rows,
682
720
  loading: false,
721
+ error: null,
722
+ hasLoaded: false,
683
723
  type: opts.type ?? "bar",
684
724
  dataSource: null,
685
725
  get instance() {
@@ -705,6 +745,11 @@ function monoChart(source = null, opts = {}) {
705
745
  bind,
706
746
  reload,
707
747
  refresh: reload,
748
+ async retry() {
749
+ ctrl.error = null;
750
+ notify();
751
+ await reload().catch(() => {});
752
+ },
708
753
  setDataSourceOptions,
709
754
  setOdataOptions,
710
755
  resolvedDataSourceOptions,
@@ -729,10 +774,9 @@ function monoChart(source = null, opts = {}) {
729
774
  };
730
775
  if (source) bind(source);
731
776
  else project();
732
- if (!source && opts.odata?.url) loadOdata().catch((err) => {
733
- console.error("[mono-chart] odata load failed:", err);
734
- });
777
+ if (!source && opts.odata?.url) loadOdata().catch(() => {});
735
778
  return ctrl;
736
779
  }
780
+
737
781
  //#endregion
738
- export { composeApply as i, buildChartApply as n, buildChartOdataRequest as r, monoChart as t };
782
+ export { composeApply as i, buildChartApply as n, buildChartOdataRequest as r, monoChart as t };
@@ -1,5 +1,6 @@
1
- import { t as monoDataGrid } from "./mono-data-grid-Db80FzdZ.js";
2
- import { t as createNotifier } from "./notifier-CE4yxMUQ.js";
1
+ import { t as monoDataGrid } from "./mono-data-grid-8jmeIXUU.js";
2
+ import { t as createNotifier } from "./notifier-BIrqUzRh.js";
3
+
3
4
  //#region src/components/dropdown-table/mono-data-dropdown.ts
4
5
  function monoDataDropdown(source = null, opts = {}) {
5
6
  const keyExpr = opts.keyExpr ?? "Id";
@@ -353,5 +354,6 @@ function monoDataDropdown(source = null, opts = {}) {
353
354
  };
354
355
  return ctrl;
355
356
  }
357
+
356
358
  //#endregion
357
- export { monoDataDropdown as t };
359
+ export { monoDataDropdown as t };
@@ -1,235 +1,13 @@
1
- import { a as parseFieldPath, c as toODataClause, l as toODataSelector, n as isPath, o as projectFields, r as mergePatch, s as setFieldValue, t as getFieldValue } from "./field-path-C92eGLg3.js";
2
- import { a as buildGroups, c as isGroupNode, i as searchFilterOf, o as collectGroupPaths, r as readAllRows, s as flattenLeaves } from "./data-source-read-DL88aH8t.js";
3
- import { i as joinFilters, n as andPredicates, r as compileFilterPredicate, t as andFilters } from "./filter-eval-DIfU2EAn.js";
4
- import { S as searchEntryFor, _ as hasWildcardSearch, b as plainSearchColumns, g as hasCustomSearch, m as customRemoteClause, o as mergeSearchFields, p as customPredicate, t as DEFAULT_SEARCH_FIELDS, x as resolveSearchEntries } from "./data-search-Bwo5bg8K.js";
5
- import { a as resolveDataSourceOptions, c as composeSummaryApply, d as createApplyGate, f as isRolledUp, h as monoArraySource, i as normalizeSortList, l as summaryAliases, m as storeRows, n as extraLoadOptions, o as toList, p as loadApply, s as buildSummaryApply, t as dataSourceOptionsKey, u as summaryFilterOf } from "./data-source-options-CQSTZHPE.js";
6
- import { n as unwrapReactive } from "./reactive-D3EERqgO.js";
7
- import { t as arrayToODataString } from "./filter-odata-C1vSGZaY.js";
8
- import { t as createNotifier } from "./notifier-CE4yxMUQ.js";
9
- import { t as monoFilterBuilder } from "./filter-builder-Bke3qOgJ.js";
10
- //#region src/utils/normalize-error.ts
11
- /** Fields worth reading off an object that is not an `Error`. */
12
- var MESSAGE_KEYS = [
13
- "message",
14
- "statusText",
15
- "errorMessage",
16
- "error",
17
- "detail"
18
- ];
19
- var text = (value) => typeof value === "string" && value.trim() ? value.trim() : "";
20
- var isObject = (value) => value !== null && typeof value === "object";
21
- /**
22
- * A readable message for `raw`, or `fallback` when nothing legible can be found.
23
- *
24
- * Never throws, and never returns an empty string — a caller rendering this into
25
- * an error bar has to have something to render, and a blank bar is worse than a
26
- * generic one.
27
- */
28
- function normalizeError(raw, fallback = "Request failed") {
29
- if (raw == null) return fallback;
30
- if (raw instanceof Error) {
31
- const own = text(raw.message);
32
- if (own) return own;
33
- } else {
34
- if (typeof raw === "string") return text(raw) || fallback;
35
- if (typeof raw === "number" || typeof raw === "boolean") return String(raw);
36
- }
37
- if (isObject(raw)) {
38
- const obj = raw;
39
- for (const key of MESSAGE_KEYS) {
40
- const hit = text(obj[key]);
41
- if (hit) return hit;
42
- }
43
- const response = obj.response;
44
- if (isObject(response)) {
45
- const nested = text(response.statusText) || text(response.message);
46
- if (nested) return nested;
47
- }
48
- const status = errorStatus(obj);
49
- if (status !== void 0 && status > 0) return `HTTP ${status}`;
50
- if (raw instanceof Error) return text(raw.name) || fallback;
51
- return fallback;
52
- }
53
- return text(String(raw)) || fallback;
54
- }
55
- /**
56
- * What the bar says for a status. English; an app puts its own language in
57
- * ONCE with `setErrorMessages()` rather than on every table.
58
- */
59
- var DEFAULT_ERROR_MESSAGES = Object.freeze({
60
- network: "Could not reach the server. Check your connection and try again.",
61
- 400: "The server rejected the request.",
62
- 401: "Your session has expired. Please sign in again.",
63
- 403: "You do not have permission to view this data.",
64
- 404: "The requested data could not be found.",
65
- 408: "The server took too long to respond. Please try again.",
66
- 409: "The request conflicts with the current state of the data.",
67
- 422: "The server could not process the request.",
68
- 429: "Too many requests. Please wait a moment and try again.",
69
- 500: "Something went wrong on the server. Please try again later.",
70
- 502: "The server is temporarily unavailable. Please try again later.",
71
- 503: "The server is temporarily unavailable. Please try again later.",
72
- 504: "The server took too long to respond. Please try again later.",
73
- default: "Request failed"
74
- });
75
- var globalMessages = null;
76
- /**
77
- * App-wide wording, merged over the defaults; `null` restores them. A grid's own
78
- * `errorMessages` merges over this in turn, so a single table can still differ.
79
- */
80
- function setErrorMessages(messages) {
81
- globalMessages = messages ? { ...messages } : null;
82
- }
83
- /** Defaults ← app-wide ← `local`, same shape as the filter builder's `resolveTexts`. */
84
- function resolveErrorMessages(local) {
85
- const merged = { ...DEFAULT_ERROR_MESSAGES };
86
- for (const layer of [globalMessages, local]) {
87
- if (!layer) continue;
88
- for (const key of Object.keys(layer)) {
89
- const value = layer[key];
90
- if (typeof value === "string" && value.trim()) merged[key] = value;
91
- }
92
- }
93
- return merged;
94
- }
95
- /**
96
- * The standard reason phrases. Not shown to anyone — they are what `describeError`
97
- * uses to recognise that an error's text is ONLY the phrase for its status
98
- * (`Error('Forbidden')` + `httpStatus: 403`), which adds nothing to the preset and
99
- * so is not a detail worth appending.
100
- */
101
- var REASON_PHRASES = {
102
- 400: "Bad Request",
103
- 401: "Unauthorized",
104
- 402: "Payment Required",
105
- 403: "Forbidden",
106
- 404: "Not Found",
107
- 405: "Method Not Allowed",
108
- 408: "Request Timeout",
109
- 409: "Conflict",
110
- 410: "Gone",
111
- 412: "Precondition Failed",
112
- 413: "Payload Too Large",
113
- 415: "Unsupported Media Type",
114
- 422: "Unprocessable Entity",
115
- 429: "Too Many Requests",
116
- 500: "Internal Server Error",
117
- 501: "Not Implemented",
118
- 502: "Bad Gateway",
119
- 503: "Service Unavailable",
120
- 504: "Gateway Timeout"
121
- };
122
- /** Texts a transport mints for "no answer at all" — a status of 0 in words. */
123
- var NETWORK_TEXTS = [
124
- "failed to fetch",
125
- "networkerror when attempting to fetch resource",
126
- "load failed",
127
- "network error",
128
- "unspecified network error",
129
- "network connection timeout",
130
- "network request failed"
131
- ];
132
- var toStatus = (value) => {
133
- if (value === null || value === void 0 || value === "") return void 0;
134
- const n = Number(value);
135
- return Number.isInteger(n) && n >= 0 && n < 1e3 ? n : void 0;
136
- };
137
- /**
138
- * The HTTP status an error carries, `0` for a network failure, `undefined` when
139
- * it has none.
140
- *
141
- * Reads the fields the common transports use — devextreme's `httpStatus`, a
142
- * fetch `Response` / axios error's `status` and `response.status`, ofetch's
143
- * `statusCode`, an OData error body's numeric `code` — on an `Error` instance as
144
- * readily as on a plain object, since devextreme `extend()`s them onto an
145
- * `Error`.
146
- */
147
- function errorStatus(raw) {
148
- if (!isObject(raw)) return void 0;
149
- const response = isObject(raw.response) ? raw.response : void 0;
150
- const direct = toStatus(raw.httpStatus) ?? toStatus(raw.status) ?? toStatus(raw.statusCode) ?? toStatus(response?.status) ?? toStatus(response?.statusCode);
151
- if (direct !== void 0) return direct;
152
- const code = toStatus((isObject(raw.errorDetails) ? raw.errorDetails : void 0)?.code);
153
- if (code !== void 0 && code >= 400) return code;
154
- const own = (raw instanceof Error ? text(raw.message) : text(raw.message)).toLowerCase();
155
- if (own && NETWORK_TEXTS.some((t) => own.includes(t))) return 0;
156
- }
157
- /**
158
- * The text a SERVER wrote about the failure, if the error carries one — an OData
159
- * error body's message, a JSON body's `message` / `error`, an axios
160
- * `response.data`. `''` when there is nothing beyond the transport's own words.
161
- */
162
- function serverDetail(raw) {
163
- if (!isObject(raw)) return "";
164
- const details = raw.errorDetails;
165
- if (isObject(details)) {
166
- const m = details.message;
167
- const hit = text(m) || (isObject(m) ? text(m.value) : "");
168
- if (hit) return hit;
169
- }
170
- const response = isObject(raw.response) ? raw.response : void 0;
171
- const data = response?.data ?? response?._data ?? raw.data;
172
- if (isObject(data)) {
173
- const err = data.error;
174
- const hit = text(data.message) || text(data.detail) || text(data.title) || text(err) || (isObject(err) ? text(err.message) : "");
175
- if (hit) return hit;
176
- } else if (text(data)) return text(data);
177
- if (!(raw instanceof Error)) {
178
- const err = raw.error;
179
- const hit = text(raw.errorMessage) || text(raw.detail) || (isObject(err) ? text(err.message) : "");
180
- if (hit) return hit;
181
- }
182
- return "";
183
- }
184
- /** Is `value` nothing more than the reason phrase / a generic label for `status`? */
185
- function isBoilerplate(value, status) {
186
- const v = value.toLowerCase();
187
- if (!v || v === "error" || v === "unknown error" || v === "request failed") return true;
188
- if (/^http\s*\d{3}$/.test(v)) return true;
189
- if (NETWORK_TEXTS.some((t) => v.includes(t))) return true;
190
- if (status !== void 0) {
191
- const phrase = REASON_PHRASES[status]?.toLowerCase();
192
- if (phrase && (v === phrase || v === `${status} ${phrase}` || v === `${status}`)) return true;
193
- if (v === String(status)) return true;
194
- }
195
- return Object.values(REASON_PHRASES).some((p) => p.toLowerCase() === v);
196
- }
197
- /**
198
- * The line a person should read for `raw`.
199
- *
200
- * Order: a preset for the status (`'network'` for 0) → the error's own text →
201
- * `messages.default`. When a preset is the headline, whatever the server said
202
- * on top of the status becomes `detail`; without a preset, the raw text IS the
203
- * headline and only a distinct server body is a detail. Never throws, never
204
- * returns an empty `message`.
205
- */
206
- function describeError(raw, messages) {
207
- const texts = resolveErrorMessages(messages);
208
- const status = errorStatus(raw);
209
- const fallback = texts.default || DEFAULT_ERROR_MESSAGES.default;
210
- const rawText = normalizeError(raw, fallback);
211
- const preset = status === void 0 ? void 0 : status === 0 ? texts.network : texts[status];
212
- if (preset) {
213
- const candidate = serverDetail(raw) || (rawText === fallback ? "" : rawText);
214
- const detail = candidate && !isBoilerplate(candidate, status) && candidate !== preset ? candidate : "";
215
- return detail ? {
216
- message: preset,
217
- status,
218
- detail
219
- } : {
220
- message: preset,
221
- status
222
- };
223
- }
224
- const message = rawText || fallback;
225
- const fromServer = serverDetail(raw);
226
- const detail = fromServer && fromServer !== message && !isBoilerplate(fromServer, status) ? fromServer : "";
227
- const out = { message };
228
- if (status !== void 0) out.status = status;
229
- if (detail) out.detail = detail;
230
- return out;
231
- }
232
- //#endregion
1
+ import { a as parseFieldPath, c as toODataClause, l as toODataSelector, n as isPath, o as projectFields, r as mergePatch, s as setFieldValue, t as getFieldValue } from "./field-path-BabiMrrA.js";
2
+ import { a as buildGroups, c as isGroupNode, i as searchFilterOf, o as collectGroupPaths, r as readAllRows, s as flattenLeaves } from "./data-source-read-FxqzQkk2.js";
3
+ import { i as joinFilters, n as andPredicates, r as compileFilterPredicate, t as andFilters } from "./filter-eval-ChDSaAUH.js";
4
+ import { A as resolveSearchEntries, C as customRemoteClause, E as hasWildcardSearch, S as customPredicate, T as hasCustomSearch, h as mergeSearchFields, j as searchEntryFor, k as plainSearchColumns, n as describeError, o as isCanceled, u as DEFAULT_SEARCH_FIELDS } from "./normalize-error-D93O4q8g.js";
5
+ import { a as resolveDataSourceOptions, c as composeSummaryApply, d as createApplyGate, f as isRolledUp, h as monoArraySource, i as normalizeSortList, l as summaryAliases, m as storeRows, n as extraLoadOptions, o as toList, p as loadApply, s as buildSummaryApply, t as dataSourceOptionsKey, u as summaryFilterOf } from "./data-source-options-QjuI73g8.js";
6
+ import { n as unwrapReactive } from "./reactive-Dtd-esHO.js";
7
+ import { t as arrayToODataString } from "./filter-odata-Bi27XUpQ.js";
8
+ import { t as createNotifier } from "./notifier-BIrqUzRh.js";
9
+ import { t as monoFilterBuilder } from "./filter-builder-C0T3pMx2.js";
10
+
233
11
  //#region src/components/table/store-group-source.ts
234
12
  /**
235
13
  * Build a {@link MonoServerGroupSource} that drives **server-side** group paging
@@ -267,7 +45,7 @@ function storeGroupSource(source, config) {
267
45
  return {
268
46
  async loadGroups(ctx) {
269
47
  const filter = joinFilters([ctx.filter, searchFilter(ctx.search)], "and");
270
- return rows(await store.load({
48
+ const res = await store.load({
271
49
  group: [{
272
50
  selector: groupField,
273
51
  isExpanded: false
@@ -277,7 +55,8 @@ function storeGroupSource(source, config) {
277
55
  ...filter ? { filter } : {},
278
56
  sort: ctx.sort ?? [{ selector: groupField }],
279
57
  ...ctx.loadOptions ?? {}
280
- })).map((g) => ({
58
+ });
59
+ return rows(res).map((g) => ({
281
60
  key: g.key,
282
61
  count: Number(g.count ?? (Array.isArray(g.items) ? g.items.length : 0)) || 0,
283
62
  aggregates: summaryDesc && Array.isArray(g.summary) ? Object.fromEntries(summaryDesc.map((s, i) => [s.selector, Number(g.summary[i]) || 0])) : void 0
@@ -290,7 +69,7 @@ function storeGroupSource(source, config) {
290
69
  key
291
70
  ];
292
71
  const rowSelect = select ?? ctx.select;
293
- return rows(await store.load({
72
+ const res = await store.load({
294
73
  filter: joinFilters([
295
74
  groupFilter,
296
75
  ctx.filter,
@@ -302,13 +81,15 @@ function storeGroupSource(source, config) {
302
81
  take: ctx.take,
303
82
  requireTotalCount: false,
304
83
  ...ctx.loadOptions ?? {}
305
- }));
84
+ });
85
+ return rows(res);
306
86
  }
307
87
  };
308
88
  }
89
+
309
90
  //#endregion
310
91
  //#region src/components/table/date-filter-tree.ts
311
- var DATE_LEVELS = [
92
+ const DATE_LEVELS = [
312
93
  "year",
313
94
  "month",
314
95
  "day",
@@ -323,7 +104,7 @@ function isDateRange(v) {
323
104
  const ok = (x) => x instanceof Date || typeof x === "string";
324
105
  return ok(o.from) && ok(o.to);
325
106
  }
326
- var BLANK_KEY = "blank";
107
+ const BLANK_KEY = "blank";
327
108
  /**
328
109
  * A column value as a Date, or `null` for a blank / unparsable one. Accepts a
329
110
  * `Date`, a number (epoch ms), an ISO string, and a bare `YYYY-MM-DD` — the
@@ -457,7 +238,7 @@ function buildDateTree(values, options = {}) {
457
238
  });
458
239
  return out;
459
240
  }
460
- var childMaps = /* @__PURE__ */ new WeakMap();
241
+ const childMaps = /* @__PURE__ */ new WeakMap();
461
242
  function childMap(n) {
462
243
  let m = childMaps.get(n);
463
244
  if (!m) {
@@ -595,12 +376,9 @@ function inRange(d, r) {
595
376
  const t = d.getTime();
596
377
  return t >= r.from.getTime() && t < r.to.getTime();
597
378
  }
379
+
598
380
  //#endregion
599
381
  //#region src/components/table/mono-data-grid.ts
600
- function isCanceled(err) {
601
- if (!err) return false;
602
- return err === "canceled" || err.name === "canceled" || err.message === "canceled" || err.__id === "canceled";
603
- }
604
382
  function monoDataGrid(ds = null, opts = {}) {
605
383
  let bound = null;
606
384
  let searchFieldsOverride;
@@ -1345,8 +1123,10 @@ function monoDataGrid(ds = null, opts = {}) {
1345
1123
  const has = checkedRows.has(key);
1346
1124
  const next = checked === void 0 ? !has : checked;
1347
1125
  const { max, min } = checkLimits();
1348
- if (!(next && !has && max !== void 0 && checkedRows.size >= max || !next && has && min !== void 0 && checkedRows.size <= min)) if (next) checkedRows.set(key, item);
1349
- else checkedRows.delete(key);
1126
+ if (!(next && !has && max !== void 0 && checkedRows.size >= max || !next && has && min !== void 0 && checkedRows.size <= min)) {
1127
+ if (next) checkedRows.set(key, item);
1128
+ else checkedRows.delete(key);
1129
+ }
1350
1130
  notify();
1351
1131
  },
1352
1132
  selectPage() {
@@ -2496,7 +2276,8 @@ function monoDataGrid(ds = null, opts = {}) {
2496
2276
  }
2497
2277
  /** Build the full group tree from every matched row the source holds. */
2498
2278
  function fullGroups() {
2499
- return buildGroups(flattenLeaves(bound ? [...bound.items?.() ?? []] : []), groupFields, collapsed);
2279
+ const raw = bound ? [...bound.items?.() ?? []] : [];
2280
+ return buildGroups(flattenLeaves(raw), groupFields, collapsed);
2500
2281
  }
2501
2282
  /** Index every group node by path (full, unsliced) for `groupPageInfo`. */
2502
2283
  function indexPaths(nodes) {
@@ -3433,9 +3214,11 @@ function monoDataGrid(ds = null, opts = {}) {
3433
3214
  if (isDateRange(v)) {
3434
3215
  const d = parseDateValue(rv);
3435
3216
  if (!d) return false;
3217
+ const from = v.from instanceof Date ? v.from : new Date(v.from);
3218
+ const to = v.to instanceof Date ? v.to : new Date(v.to);
3436
3219
  return inRange(d, {
3437
- from: v.from instanceof Date ? v.from : new Date(v.from),
3438
- to: v.to instanceof Date ? v.to : new Date(v.to)
3220
+ from,
3221
+ to
3439
3222
  });
3440
3223
  }
3441
3224
  return String(rv) === String(v);
@@ -3843,7 +3626,8 @@ function monoDataGrid(ds = null, opts = {}) {
3843
3626
  if (!isPath(field)) loadOpts.select = [field];
3844
3627
  for (const [key, value] of Object.entries(scoped ?? {})) if (value == null) delete loadOpts[key];
3845
3628
  else loadOpts[key] = value;
3846
- return distinctFromRows(storeRows(await store.load(loadOpts)), field);
3629
+ const res = await store.load(loadOpts);
3630
+ return distinctFromRows(storeRows(res), field);
3847
3631
  }
3848
3632
  async function setData(next) {
3849
3633
  const s = bound;
@@ -3913,14 +3697,16 @@ function monoDataGrid(ds = null, opts = {}) {
3913
3697
  const current = sortOf(field);
3914
3698
  const next = order !== void 0 ? order : current === "asc" ? "desc" : current === "desc" ? null : "asc";
3915
3699
  if (!next) ctrl.sorts = multi ? ctrl.sorts.filter((s) => s.field !== field) : [];
3916
- else if (multi) ctrl.sorts = ctrl.sorts.findIndex((s) => s.field === field) >= 0 ? ctrl.sorts.map((s) => s.field === field ? {
3917
- field,
3918
- order: next
3919
- } : s) : [...ctrl.sorts, {
3920
- field,
3921
- order: next
3922
- }];
3923
- else ctrl.sorts = [{
3700
+ else if (multi) {
3701
+ const at = ctrl.sorts.findIndex((s) => s.field === field);
3702
+ ctrl.sorts = at >= 0 ? ctrl.sorts.map((s) => s.field === field ? {
3703
+ field,
3704
+ order: next
3705
+ } : s) : [...ctrl.sorts, {
3706
+ field,
3707
+ order: next
3708
+ }];
3709
+ } else ctrl.sorts = [{
3924
3710
  field,
3925
3711
  order: next
3926
3712
  }];
@@ -3984,7 +3770,8 @@ function monoDataGrid(ds = null, opts = {}) {
3984
3770
  sync();
3985
3771
  return;
3986
3772
  }
3987
- const tree = buildGroups(flattenLeaves(bound ? [...bound.items?.() ?? []] : []), groupFields);
3773
+ const raw = bound ? [...bound.items?.() ?? []] : [];
3774
+ const tree = buildGroups(flattenLeaves(raw), groupFields);
3988
3775
  for (const path of collectGroupPaths(tree)) collapsed.add(path);
3989
3776
  sync();
3990
3777
  }
@@ -4021,11 +3808,13 @@ function monoDataGrid(ds = null, opts = {}) {
4021
3808
  sync();
4022
3809
  }
4023
3810
  function clearGroupPaging(path) {
4024
- if (groupRowPaging.delete(path)) if (serverMode()) {
4025
- groupRowsKey.delete(path);
4026
- sync();
4027
- fetchVisibleRows();
4028
- } else sync();
3811
+ if (groupRowPaging.delete(path)) {
3812
+ if (serverMode()) {
3813
+ groupRowsKey.delete(path);
3814
+ sync();
3815
+ fetchVisibleRows();
3816
+ } else sync();
3817
+ }
4029
3818
  }
4030
3819
  function groupPageInfo(path) {
4031
3820
  if (pageSizeAll) {
@@ -4099,7 +3888,8 @@ function monoDataGrid(ds = null, opts = {}) {
4099
3888
  */
4100
3889
  async function buildGroupTree(rows) {
4101
3890
  if (!groupFields.length) return [];
4102
- return buildGroups(rows ?? await getData(), groupFields);
3891
+ const source = rows ?? await getData();
3892
+ return buildGroups(source, groupFields);
4103
3893
  }
4104
3894
  async function importSheet(options) {
4105
3895
  const { importTable } = await import("./import.js");
@@ -4138,5 +3928,6 @@ function monoDataGrid(ds = null, opts = {}) {
4138
3928
  if (ds) bind(ds);
4139
3929
  return ctrl;
4140
3930
  }
3931
+
4141
3932
  //#endregion
4142
- export { seedFromRanges as a, DEFAULT_ERROR_MESSAGES as c, normalizeError as d, resolveErrorMessages as f, minimize as i, describeError as l, buildDateTree as n, setAllChecked as o, setErrorMessages as p, checkState as r, setChecked as s, monoDataGrid as t, errorStatus as u };
3933
+ export { seedFromRanges as a, minimize as i, buildDateTree as n, setAllChecked as o, checkState as r, setChecked as s, monoDataGrid as t };