@mono-lit/helper 0.0.0-stage → 0.0.1

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 (538) hide show
  1. package/LICENSE.md +55 -0
  2. package/README.md +34 -2
  3. package/dist/breakpoints-CAbhDUht.js +84 -0
  4. package/dist/checkbox-Cqpie9Ap.js +4 -0
  5. package/dist/chip-DBUUa2eB.js +4 -0
  6. package/dist/chip-limits-BMoO31JM.js +213 -0
  7. package/dist/chip-strip-Cw3gyz0q.js +213 -0
  8. package/dist/color-DHYrfXsX.js +253 -0
  9. package/dist/css-class-BRKRzHx-.js +60 -0
  10. package/dist/css-size-DhHSVZJK.js +37 -0
  11. package/dist/data/theme/presets.json.d.ts +140 -0
  12. package/dist/data-search-Bwo5bg8K.js +573 -0
  13. package/dist/data-source-controller-C50Qyfzh.js +178 -0
  14. package/dist/data-source-options-BTpfrOZ_.js +535 -0
  15. package/dist/data-source-options-CQSTZHPE.js +537 -0
  16. package/dist/data-source-read-CUX-lgrQ.js +216 -0
  17. package/dist/data-source-read-DL88aH8t.js +217 -0
  18. package/dist/decorate-DEXtNagw.js +141 -0
  19. package/dist/element-props-CLB6yvbm.js +114 -0
  20. package/dist/esm-Ptok4SQZ.js +2026 -0
  21. package/dist/excel-CY6zGkcx.js +608 -0
  22. package/dist/excel-DopRbEMK.js +608 -0
  23. package/dist/export-BvlBx_GZ.js +2302 -0
  24. package/dist/export.d.ts +1 -0
  25. package/dist/export.js +2302 -0
  26. package/dist/field-icons-BoOG6KrL.js +51 -0
  27. package/dist/field-path-C92eGLg3.js +251 -0
  28. package/dist/filter-builder-Bke3qOgJ.js +205 -0
  29. package/dist/filter-builder-CE4zE0V5.js +205 -0
  30. package/dist/filter-eval-DIfU2EAn.js +173 -0
  31. package/dist/filter-odata-C1vSGZaY.js +591 -0
  32. package/dist/form-control-core-B8d7k6vk.js +223 -0
  33. package/dist/form-control-core-eeRr0zLU.js +223 -0
  34. package/dist/hydration-flush-RB5Tz5nl.js +1001 -0
  35. package/dist/icon-CJkTlmTb.js +55 -0
  36. package/dist/icon-dVhYJUIH.js +17 -0
  37. package/dist/import-BgJdkwBI.js +606 -0
  38. package/dist/import.d.ts +1 -0
  39. package/dist/import.js +606 -0
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +16 -0
  42. package/dist/index.node-DjvYOL-J.js +395 -0
  43. package/dist/index.node.d.ts +1 -0
  44. package/dist/index.node.js +16 -0
  45. package/dist/input-zGOULADt.js +4 -0
  46. package/dist/layout-var-CZnzMC0s.js +73 -0
  47. package/dist/light-slots-BVJwyg_2.js +244 -0
  48. package/dist/light-slots-DW1WgfgT.js +254 -0
  49. package/dist/markdown-DfqrfOJN.js +20146 -0
  50. package/dist/mono-button-CoVnBLav.js +873 -0
  51. package/dist/mono-button.shadow-FfP_hMH4.js +784 -0
  52. package/dist/mono-data-chart-ChU4Ii3p.js +738 -0
  53. package/dist/mono-data-dropdown-BAUl58kW.js +357 -0
  54. package/dist/mono-data-grid-CLBK8clE.js +4140 -0
  55. package/dist/mono-data-grid-Db80FzdZ.js +4142 -0
  56. package/dist/mono-element-B0kP_96P.js +232 -0
  57. package/dist/mono-event-Bi1qP9uN.js +129 -0
  58. package/dist/mono-form-controller-5PfsU4qa.js +409 -0
  59. package/dist/mono-modal-controller-BMO3n3rP.js +223 -0
  60. package/dist/mono-ui-CPV7rrdo.js +358 -0
  61. package/dist/notifier-CE4yxMUQ.js +88 -0
  62. package/dist/nuxt.d.ts +1 -0
  63. package/dist/nuxt.js +130 -0
  64. package/dist/popup-portal-BziRX1yG.js +465 -0
  65. package/dist/popup-stack-CEEMib__.js +189 -0
  66. package/dist/rate-limit-BBa2PO79.js +521 -0
  67. package/dist/reactive-BHsqVjRh.js +789 -0
  68. package/dist/reactive-D3EERqgO.js +47 -0
  69. package/dist/search.d.ts +1 -0
  70. package/dist/search.js +97 -0
  71. package/dist/src/components/accordion/accordion-core.d.ts +62 -0
  72. package/dist/src/components/accordion/accordion-types.d.ts +62 -0
  73. package/dist/src/components/accordion/index.d.ts +3 -0
  74. package/dist/src/components/accordion/index.shadow.d.ts +5 -0
  75. package/dist/src/components/accordion/mono-accordion.d.ts +55 -0
  76. package/dist/src/components/accordion/mono-accordion.shadow.d.ts +56 -0
  77. package/dist/src/components/alert/alert-core.d.ts +46 -0
  78. package/dist/src/components/alert/alert-types.d.ts +44 -0
  79. package/dist/src/components/alert/index.d.ts +3 -0
  80. package/dist/src/components/alert/index.shadow.d.ts +5 -0
  81. package/dist/src/components/alert/mono-alert.d.ts +44 -0
  82. package/dist/src/components/alert/mono-alert.shadow.d.ts +34 -0
  83. package/dist/src/components/breadcrumb/breadcrumb-core.d.ts +61 -0
  84. package/dist/src/components/breadcrumb/breadcrumb-list-core.d.ts +49 -0
  85. package/dist/src/components/breadcrumb/breadcrumb-render.d.ts +31 -0
  86. package/dist/src/components/breadcrumb/breadcrumb-types.d.ts +117 -0
  87. package/dist/src/components/breadcrumb/breadcrumb-utils.d.ts +43 -0
  88. package/dist/src/components/breadcrumb/index.d.ts +6 -0
  89. package/dist/src/components/breadcrumb/index.shadow.d.ts +8 -0
  90. package/dist/src/components/breadcrumb/mono-breadcrumb-list.d.ts +29 -0
  91. package/dist/src/components/breadcrumb/mono-breadcrumb-list.shadow.d.ts +48 -0
  92. package/dist/src/components/breadcrumb/mono-breadcrumb.d.ts +38 -0
  93. package/dist/src/components/breadcrumb/mono-breadcrumb.shadow.d.ts +73 -0
  94. package/dist/src/components/button/button-core.d.ts +90 -0
  95. package/dist/src/components/button/button-dropdown-core.d.ts +57 -0
  96. package/dist/src/components/button/button-dropdown-types.d.ts +129 -0
  97. package/dist/src/components/button/button-types.d.ts +219 -0
  98. package/dist/src/components/button/button-utils.d.ts +18 -0
  99. package/dist/src/components/button/index.button-dropdown.d.ts +4 -0
  100. package/dist/src/components/button/index.button-dropdown.shadow.d.ts +4 -0
  101. package/dist/src/components/button/index.d.ts +8 -0
  102. package/dist/src/components/button/index.shadow.d.ts +5 -0
  103. package/dist/src/components/button/mono-button-dropdown.d.ts +35 -0
  104. package/dist/src/components/button/mono-button-dropdown.shadow.d.ts +45 -0
  105. package/dist/src/components/button/mono-button.d.ts +123 -0
  106. package/dist/src/components/button/mono-button.shadow.d.ts +56 -0
  107. package/dist/src/components/card/card-core.d.ts +74 -0
  108. package/dist/src/components/card/card-types.d.ts +137 -0
  109. package/dist/src/components/card/card-utils.d.ts +23 -0
  110. package/dist/src/components/card/index.d.ts +4 -0
  111. package/dist/src/components/card/index.shadow.d.ts +6 -0
  112. package/dist/src/components/card/mono-card.d.ts +56 -0
  113. package/dist/src/components/card/mono-card.shadow.d.ts +52 -0
  114. package/dist/src/components/chart/chart-core.d.ts +43 -0
  115. package/dist/src/components/chart/chart-odata.d.ts +52 -0
  116. package/dist/src/components/chart/chart-types.d.ts +337 -0
  117. package/dist/src/components/chart/index.d.ts +8 -0
  118. package/dist/src/components/chart/index.shadow.d.ts +7 -0
  119. package/dist/src/components/chart/mono-chart-presets.d.ts +43 -0
  120. package/dist/src/components/chart/mono-chart-presets.shadow.d.ts +43 -0
  121. package/dist/src/components/chart/mono-chart.d.ts +30 -0
  122. package/dist/src/components/chart/mono-chart.shadow.d.ts +22 -0
  123. package/dist/src/components/chart/mono-data-chart.d.ts +27 -0
  124. package/dist/src/components/checkbox/checkbox-core.d.ts +53 -0
  125. package/dist/src/components/checkbox/checkbox-types.d.ts +69 -0
  126. package/dist/src/components/checkbox/checkbox-utils.d.ts +35 -0
  127. package/dist/src/components/checkbox/index.d.ts +4 -0
  128. package/dist/src/components/checkbox/index.shadow.d.ts +5 -0
  129. package/dist/src/components/checkbox/mono-checkbox.d.ts +34 -0
  130. package/dist/src/components/checkbox/mono-checkbox.shadow.d.ts +45 -0
  131. package/dist/src/components/chip/chip-core.d.ts +58 -0
  132. package/dist/src/components/chip/chip-types.d.ts +142 -0
  133. package/dist/src/components/chip/chip-utils.d.ts +24 -0
  134. package/dist/src/components/chip/index.d.ts +8 -0
  135. package/dist/src/components/chip/index.shadow.d.ts +6 -0
  136. package/dist/src/components/chip/mono-chip.d.ts +48 -0
  137. package/dist/src/components/chip/mono-chip.shadow.d.ts +33 -0
  138. package/dist/src/components/chip/mono-status-dot.d.ts +34 -0
  139. package/dist/src/components/date/date-core.d.ts +80 -0
  140. package/dist/src/components/date/date-types.d.ts +163 -0
  141. package/dist/src/components/date/index.d.ts +3 -0
  142. package/dist/src/components/date/index.shadow.d.ts +4 -0
  143. package/dist/src/components/date/mono-date.d.ts +22 -0
  144. package/dist/src/components/date/mono-date.shadow.d.ts +31 -0
  145. package/dist/src/components/drawer/drawer-core.d.ts +99 -0
  146. package/dist/src/components/drawer/drawer-types.d.ts +153 -0
  147. package/dist/src/components/drawer/index.d.ts +3 -0
  148. package/dist/src/components/drawer/index.shadow.d.ts +4 -0
  149. package/dist/src/components/drawer/mono-drawer.d.ts +45 -0
  150. package/dist/src/components/drawer/mono-drawer.shadow.d.ts +46 -0
  151. package/dist/src/components/dropdown/dropdown-core.d.ts +33 -0
  152. package/dist/src/components/dropdown/dropdown-types.d.ts +88 -0
  153. package/dist/src/components/dropdown/index.d.ts +3 -0
  154. package/dist/src/components/dropdown/index.shadow.d.ts +4 -0
  155. package/dist/src/components/dropdown/mono-dropdown.d.ts +34 -0
  156. package/dist/src/components/dropdown/mono-dropdown.shadow.d.ts +28 -0
  157. package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +65 -0
  158. package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +278 -0
  159. package/dist/src/components/dropdown-table/index.d.ts +5 -0
  160. package/dist/src/components/dropdown-table/index.shadow.d.ts +6 -0
  161. package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +152 -0
  162. package/dist/src/components/dropdown-table/mono-dropdown-table.d.ts +46 -0
  163. package/dist/src/components/dropdown-table/mono-dropdown-table.shadow.d.ts +22 -0
  164. package/dist/src/components/file-upload/file-upload-core.d.ts +60 -0
  165. package/dist/src/components/file-upload/file-upload-types.d.ts +145 -0
  166. package/dist/src/components/file-upload/file-upload-utils.d.ts +16 -0
  167. package/dist/src/components/file-upload/index.d.ts +4 -0
  168. package/dist/src/components/file-upload/index.shadow.d.ts +5 -0
  169. package/dist/src/components/file-upload/mono-file-upload.d.ts +33 -0
  170. package/dist/src/components/file-upload/mono-file-upload.shadow.d.ts +50 -0
  171. package/dist/src/components/filter/filter-builder-core.d.ts +36 -0
  172. package/dist/src/components/filter/filter-builder.d.ts +23 -0
  173. package/dist/src/components/filter/filter-odata.d.ts +27 -0
  174. package/dist/src/components/filter/filter-operators.d.ts +13 -0
  175. package/dist/src/components/filter/filter-types.d.ts +253 -0
  176. package/dist/src/components/filter/index.d.ts +6 -0
  177. package/dist/src/components/filter/index.shadow.d.ts +7 -0
  178. package/dist/src/components/filter/mono-filter-builder.d.ts +21 -0
  179. package/dist/src/components/filter/mono-filter-builder.shadow.d.ts +17 -0
  180. package/dist/src/components/form/form-control-core.d.ts +37 -0
  181. package/dist/src/components/form/form-rules.d.ts +25 -0
  182. package/dist/src/components/form/form-types.d.ts +307 -0
  183. package/dist/src/components/form/index.d.ts +6 -0
  184. package/dist/src/components/form/mono-form-controller.d.ts +16 -0
  185. package/dist/src/components/input/index.d.ts +6 -0
  186. package/dist/src/components/input/index.shadow.d.ts +8 -0
  187. package/dist/src/components/input/input-core.d.ts +91 -0
  188. package/dist/src/components/input/input-format.d.ts +118 -0
  189. package/dist/src/components/input/input-types.d.ts +179 -0
  190. package/dist/src/components/input/input-utils.d.ts +10 -0
  191. package/dist/src/components/input/mono-input.d.ts +46 -0
  192. package/dist/src/components/input/mono-input.shadow.d.ts +34 -0
  193. package/dist/src/components/menu/index.d.ts +6 -0
  194. package/dist/src/components/menu/index.shadow.d.ts +7 -0
  195. package/dist/src/components/menu/menu-core.d.ts +65 -0
  196. package/dist/src/components/menu/menu-render.d.ts +55 -0
  197. package/dist/src/components/menu/menu-types.d.ts +195 -0
  198. package/dist/src/components/menu/menu-utils.d.ts +53 -0
  199. package/dist/src/components/menu/mono-menu-list.d.ts +118 -0
  200. package/dist/src/components/menu/mono-menu.d.ts +39 -0
  201. package/dist/src/components/menu/mono-menu.shadow.d.ts +40 -0
  202. package/dist/src/components/modal/index.d.ts +4 -0
  203. package/dist/src/components/modal/index.shadow.d.ts +5 -0
  204. package/dist/src/components/modal/modal-core.d.ts +110 -0
  205. package/dist/src/components/modal/modal-types.d.ts +304 -0
  206. package/dist/src/components/modal/mono-modal-controller.d.ts +4 -0
  207. package/dist/src/components/modal/mono-modal.d.ts +45 -0
  208. package/dist/src/components/modal/mono-modal.shadow.d.ts +50 -0
  209. package/dist/src/components/nav/index.d.ts +4 -0
  210. package/dist/src/components/nav/index.shadow.d.ts +6 -0
  211. package/dist/src/components/nav/mono-nav.d.ts +41 -0
  212. package/dist/src/components/nav/mono-nav.shadow.d.ts +21 -0
  213. package/dist/src/components/nav/nav-core.d.ts +34 -0
  214. package/dist/src/components/nav/nav-types.d.ts +48 -0
  215. package/dist/src/components/nav/nav-utils.d.ts +12 -0
  216. package/dist/src/components/radio/index.d.ts +4 -0
  217. package/dist/src/components/radio/index.shadow.d.ts +5 -0
  218. package/dist/src/components/radio/mono-radio.d.ts +31 -0
  219. package/dist/src/components/radio/mono-radio.shadow.d.ts +35 -0
  220. package/dist/src/components/radio/radio-core.d.ts +45 -0
  221. package/dist/src/components/radio/radio-types.d.ts +58 -0
  222. package/dist/src/components/radio/radio-utils.d.ts +12 -0
  223. package/dist/src/components/rich-text-editor/index.d.ts +5 -0
  224. package/dist/src/components/rich-text-editor/index.shadow.d.ts +6 -0
  225. package/dist/src/components/rich-text-editor/mono-rich-text-editor.d.ts +31 -0
  226. package/dist/src/components/rich-text-editor/mono-rich-text-editor.shadow.d.ts +34 -0
  227. package/dist/src/components/rich-text-editor/rich-text-editor-core.d.ts +100 -0
  228. package/dist/src/components/rich-text-editor/rich-text-editor-loader.d.ts +17 -0
  229. package/dist/src/components/rich-text-editor/rich-text-editor-toolbar.d.ts +65 -0
  230. package/dist/src/components/rich-text-editor/rich-text-editor-types.d.ts +231 -0
  231. package/dist/src/components/select/index.d.ts +4 -0
  232. package/dist/src/components/select/index.shadow.d.ts +5 -0
  233. package/dist/src/components/select/mono-select.d.ts +69 -0
  234. package/dist/src/components/select/mono-select.shadow.d.ts +48 -0
  235. package/dist/src/components/select/select-core.d.ts +98 -0
  236. package/dist/src/components/select/select-types.d.ts +258 -0
  237. package/dist/src/components/select/select-utils.d.ts +7 -0
  238. package/dist/src/components/sidebar/index.d.ts +4 -0
  239. package/dist/src/components/sidebar/index.shadow.d.ts +6 -0
  240. package/dist/src/components/sidebar/mono-sidebar.d.ts +34 -0
  241. package/dist/src/components/sidebar/mono-sidebar.shadow.d.ts +27 -0
  242. package/dist/src/components/sidebar/sidebar-core.d.ts +51 -0
  243. package/dist/src/components/sidebar/sidebar-types.d.ts +119 -0
  244. package/dist/src/components/sidebar/sidebar-utils.d.ts +55 -0
  245. package/dist/src/components/switch/index.d.ts +4 -0
  246. package/dist/src/components/switch/index.shadow.d.ts +5 -0
  247. package/dist/src/components/switch/mono-switch.d.ts +31 -0
  248. package/dist/src/components/switch/mono-switch.shadow.d.ts +36 -0
  249. package/dist/src/components/switch/switch-core.d.ts +49 -0
  250. package/dist/src/components/switch/switch-types.d.ts +64 -0
  251. package/dist/src/components/switch/switch-utils.d.ts +12 -0
  252. package/dist/src/components/table/array-source.d.ts +44 -0
  253. package/dist/src/components/table/date-filter-tree.d.ts +93 -0
  254. package/dist/src/components/table/grouping.d.ts +55 -0
  255. package/dist/src/components/table/index.d.ts +33 -0
  256. package/dist/src/components/table/index.shadow.d.ts +47 -0
  257. package/dist/src/components/table/mono-data-grid.d.ts +1756 -0
  258. package/dist/src/components/table/mono-table-checkbox-core.d.ts +76 -0
  259. package/dist/src/components/table/mono-table-checkbox.d.ts +34 -0
  260. package/dist/src/components/table/mono-table-checkbox.shadow.d.ts +26 -0
  261. package/dist/src/components/table/mono-table-detail-core.d.ts +87 -0
  262. package/dist/src/components/table/mono-table-detail.d.ts +32 -0
  263. package/dist/src/components/table/mono-table-detail.shadow.d.ts +31 -0
  264. package/dist/src/components/table/mono-table-empty-core.d.ts +60 -0
  265. package/dist/src/components/table/mono-table-empty.d.ts +35 -0
  266. package/dist/src/components/table/mono-table-empty.shadow.d.ts +40 -0
  267. package/dist/src/components/table/mono-table-error-core.d.ts +84 -0
  268. package/dist/src/components/table/mono-table-error.d.ts +28 -0
  269. package/dist/src/components/table/mono-table-error.shadow.d.ts +21 -0
  270. package/dist/src/components/table/mono-table-info-core.d.ts +13 -0
  271. package/dist/src/components/table/mono-table-info.d.ts +19 -0
  272. package/dist/src/components/table/mono-table-info.shadow.d.ts +14 -0
  273. package/dist/src/components/table/mono-table-loading-core.d.ts +41 -0
  274. package/dist/src/components/table/mono-table-loading.d.ts +50 -0
  275. package/dist/src/components/table/mono-table-loading.shadow.d.ts +14 -0
  276. package/dist/src/components/table/mono-table-page-size-core.d.ts +14 -0
  277. package/dist/src/components/table/mono-table-page-size.d.ts +16 -0
  278. package/dist/src/components/table/mono-table-page-size.shadow.d.ts +11 -0
  279. package/dist/src/components/table/mono-table-paging-core.d.ts +22 -0
  280. package/dist/src/components/table/mono-table-paging-group-core.d.ts +18 -0
  281. package/dist/src/components/table/mono-table-paging-group.d.ts +20 -0
  282. package/dist/src/components/table/mono-table-paging-group.shadow.d.ts +13 -0
  283. package/dist/src/components/table/mono-table-paging.d.ts +16 -0
  284. package/dist/src/components/table/mono-table-paging.shadow.d.ts +11 -0
  285. package/dist/src/components/table/mono-table-search-core.d.ts +74 -0
  286. package/dist/src/components/table/mono-table-search.d.ts +34 -0
  287. package/dist/src/components/table/mono-table-search.shadow.d.ts +21 -0
  288. package/dist/src/components/table/mono-table-sort-core.d.ts +35 -0
  289. package/dist/src/components/table/mono-table-sort.d.ts +38 -0
  290. package/dist/src/components/table/mono-table-sort.shadow.d.ts +20 -0
  291. package/dist/src/components/table/mono-table-summary-core.d.ts +26 -0
  292. package/dist/src/components/table/mono-table-summary.d.ts +24 -0
  293. package/dist/src/components/table/mono-table-summary.shadow.d.ts +14 -0
  294. package/dist/src/components/table/mono-table-th-core.d.ts +56 -0
  295. package/dist/src/components/table/mono-table-th.d.ts +41 -0
  296. package/dist/src/components/table/mono-table-th.shadow.d.ts +19 -0
  297. package/dist/src/components/table/store-group-source.d.ts +24 -0
  298. package/dist/src/components/table/table-controller-core.d.ts +40 -0
  299. package/dist/src/components/table/table-filter-icons.d.ts +3 -0
  300. package/dist/src/components/table/table-menu-core.d.ts +65 -0
  301. package/dist/src/components/table/table-overlay.d.ts +165 -0
  302. package/dist/src/components/table/table-sort-icons.d.ts +4 -0
  303. package/dist/src/components/table/table-sort-utils.d.ts +20 -0
  304. package/dist/src/components/table/table-types.d.ts +475 -0
  305. package/dist/src/components/tabs/index.d.ts +3 -0
  306. package/dist/src/components/tabs/index.shadow.d.ts +4 -0
  307. package/dist/src/components/tabs/mono-tabs.d.ts +33 -0
  308. package/dist/src/components/tabs/mono-tabs.shadow.d.ts +37 -0
  309. package/dist/src/components/tabs/tabs-core.d.ts +57 -0
  310. package/dist/src/components/tabs/tabs-types.d.ts +65 -0
  311. package/dist/src/components/tag-input/index.d.ts +4 -0
  312. package/dist/src/components/tag-input/index.shadow.d.ts +5 -0
  313. package/dist/src/components/tag-input/mono-tag-input.d.ts +66 -0
  314. package/dist/src/components/tag-input/mono-tag-input.shadow.d.ts +40 -0
  315. package/dist/src/components/tag-input/tag-input-core.d.ts +108 -0
  316. package/dist/src/components/tag-input/tag-input-types.d.ts +394 -0
  317. package/dist/src/components/tag-input/tag-input-utils.d.ts +8 -0
  318. package/dist/src/components/textarea/index.d.ts +4 -0
  319. package/dist/src/components/textarea/index.shadow.d.ts +5 -0
  320. package/dist/src/components/textarea/mono-textarea.d.ts +29 -0
  321. package/dist/src/components/textarea/mono-textarea.shadow.d.ts +31 -0
  322. package/dist/src/components/textarea/textarea-core.d.ts +60 -0
  323. package/dist/src/components/textarea/textarea-types.d.ts +131 -0
  324. package/dist/src/components/textarea/textarea-utils.d.ts +7 -0
  325. package/dist/src/components/tooltip/control-tooltip.d.ts +36 -0
  326. package/dist/src/components/tooltip/index.d.ts +6 -0
  327. package/dist/src/components/tooltip/tooltip-config.d.ts +27 -0
  328. package/dist/src/components/tooltip/tooltip-declarative.d.ts +41 -0
  329. package/dist/src/components/tooltip/tooltip-loader.d.ts +1 -0
  330. package/dist/src/components/tooltip/tooltip-types.d.ts +110 -0
  331. package/dist/src/composables/breakpoints.d.ts +59 -0
  332. package/dist/src/composables/chip-limits.d.ts +48 -0
  333. package/dist/src/composables/chip-strip.d.ts +93 -0
  334. package/dist/src/composables/color.d.ts +103 -0
  335. package/dist/src/composables/css-class.d.ts +27 -0
  336. package/dist/src/composables/css-size.d.ts +40 -0
  337. package/dist/src/composables/data-source-controller.d.ts +84 -0
  338. package/dist/src/composables/element-props.d.ts +46 -0
  339. package/dist/src/composables/field-icons.d.ts +7 -0
  340. package/dist/src/composables/hybird-prop.d.ts +79 -0
  341. package/dist/src/composables/hydration-flush.d.ts +34 -0
  342. package/dist/src/composables/icon.d.ts +17 -0
  343. package/dist/src/composables/layout-var.d.ts +34 -0
  344. package/dist/src/composables/light-slots.d.ts +133 -0
  345. package/dist/src/composables/mdi-glyphs.d.ts +4 -0
  346. package/dist/src/composables/mono-element.d.ts +9 -0
  347. package/dist/src/composables/mono-event.d.ts +55 -0
  348. package/dist/src/composables/mono-pending.d.ts +8 -0
  349. package/dist/src/composables/mono-skeleton.d.ts +193 -0
  350. package/dist/src/composables/mono-ui.d.ts +58 -0
  351. package/dist/src/composables/notifier.d.ts +46 -0
  352. package/dist/src/composables/popup-portal.d.ts +226 -0
  353. package/dist/src/composables/popup-stack.d.ts +70 -0
  354. package/dist/src/composables/rate-limit.d.ts +108 -0
  355. package/dist/src/composables/reactive.d.ts +53 -0
  356. package/dist/src/composables/shadow-css.d.ts +42 -0
  357. package/dist/src/composables/visibility.d.ts +36 -0
  358. package/dist/src/data/theme/index.d.ts +30 -0
  359. package/dist/src/data/theme/presets.d.ts +94 -0
  360. package/dist/src/entries/index.d.ts +2 -0
  361. package/dist/src/entries/index.node.d.ts +42 -0
  362. package/dist/src/entries/search.d.ts +3 -0
  363. package/dist/src/export/detail.d.ts +29 -0
  364. package/dist/src/export/download.d.ts +9 -0
  365. package/dist/src/export/excel/index.d.ts +27 -0
  366. package/dist/src/export/excel/nodes.d.ts +123 -0
  367. package/dist/src/export/expression.d.ts +36 -0
  368. package/dist/src/export/helpers.d.ts +6 -0
  369. package/dist/src/export/index.d.ts +13 -0
  370. package/dist/src/export/markdown.d.ts +52 -0
  371. package/dist/src/export/resolve-data.d.ts +31 -0
  372. package/dist/src/export/sentinel.d.ts +97 -0
  373. package/dist/src/export/sheet-name.d.ts +45 -0
  374. package/dist/src/export/styles.d.ts +33 -0
  375. package/dist/src/export/template.d.ts +10 -0
  376. package/dist/src/export/types.d.ts +259 -0
  377. package/dist/src/import/coerce.d.ts +38 -0
  378. package/dist/src/import/index.d.ts +16 -0
  379. package/dist/src/import/match.d.ts +54 -0
  380. package/dist/src/import/parse.d.ts +15 -0
  381. package/dist/src/import/types.d.ts +153 -0
  382. package/dist/src/nuxt/index.d.ts +94 -0
  383. package/dist/src/search/data-search.d.ts +207 -0
  384. package/dist/src/search/field-path.d.ts +107 -0
  385. package/dist/src/search/filter-eval.d.ts +30 -0
  386. package/dist/src/search/index.d.ts +22 -0
  387. package/dist/src/search/odata-search.d.ts +18 -0
  388. package/dist/src/search/search-expr.d.ts +160 -0
  389. package/dist/src/utils/data-source-apply.d.ts +97 -0
  390. package/dist/src/utils/data-source-options.d.ts +116 -0
  391. package/dist/src/utils/data-source-read.d.ts +85 -0
  392. package/dist/src/utils/data-source-summary.d.ts +55 -0
  393. package/dist/src/utils/normalize-error.d.ts +60 -0
  394. package/dist/src/vite/index.d.ts +48 -0
  395. package/dist/src/vite/mono-client-only.d.ts +35 -0
  396. package/dist/src/vite/mono-ssr-stub.d.ts +20 -0
  397. package/dist/src/vite/shadow-manifest.d.ts +8 -0
  398. package/dist/styles-BIJ31TM4.js +20146 -0
  399. package/dist/tooltip-CysgRgBi.js +760 -0
  400. package/dist/tooltip.d.ts +1 -0
  401. package/dist/tooltip.js +2 -0
  402. package/dist/ui/accordion.d.ts +1 -0
  403. package/dist/ui/accordion.js +466 -0
  404. package/dist/ui/alert.d.ts +1 -0
  405. package/dist/ui/alert.js +221 -0
  406. package/dist/ui/breadcrumb.d.ts +1 -0
  407. package/dist/ui/breadcrumb.js +902 -0
  408. package/dist/ui/button-dropdown.d.ts +1 -0
  409. package/dist/ui/button-dropdown.js +679 -0
  410. package/dist/ui/button.d.ts +1 -0
  411. package/dist/ui/button.js +63 -0
  412. package/dist/ui/card.d.ts +1 -0
  413. package/dist/ui/card.js +511 -0
  414. package/dist/ui/chart.d.ts +1 -0
  415. package/dist/ui/chart.js +808 -0
  416. package/dist/ui/checkbox.d.ts +1 -0
  417. package/dist/ui/checkbox.js +413 -0
  418. package/dist/ui/chip.d.ts +1 -0
  419. package/dist/ui/chip.js +558 -0
  420. package/dist/ui/date.d.ts +1 -0
  421. package/dist/ui/date.js +686 -0
  422. package/dist/ui/drawer.d.ts +1 -0
  423. package/dist/ui/drawer.js +901 -0
  424. package/dist/ui/dropdown-table.d.ts +1 -0
  425. package/dist/ui/dropdown-table.js +1291 -0
  426. package/dist/ui/dropdown.d.ts +1 -0
  427. package/dist/ui/dropdown.js +586 -0
  428. package/dist/ui/file-upload.d.ts +1 -0
  429. package/dist/ui/file-upload.js +688 -0
  430. package/dist/ui/filter.d.ts +1 -0
  431. package/dist/ui/filter.js +400 -0
  432. package/dist/ui/font/files/geist-47c091c9.woff2 +0 -0
  433. package/dist/ui/font/files/geist-8dd77544.woff2 +0 -0
  434. package/dist/ui/font/files/geist-b9248b1e.woff2 +0 -0
  435. package/dist/ui/font/files/geist-d40d74b4.woff2 +0 -0
  436. package/dist/ui/font/files/geist-f493429a.woff2 +0 -0
  437. package/dist/ui/font/files/geistmono-03737868.woff2 +0 -0
  438. package/dist/ui/font/files/geistmono-421a7e38.woff2 +0 -0
  439. package/dist/ui/font/files/geistmono-48ef518d.woff2 +0 -0
  440. package/dist/ui/font/files/geistmono-5df35d39.woff2 +0 -0
  441. package/dist/ui/font/files/geistmono-7de289a4.woff2 +0 -0
  442. package/dist/ui/font/files/geistmono-e976128f.woff2 +0 -0
  443. package/dist/ui/font/files/inter-05cf802c.woff2 +0 -0
  444. package/dist/ui/font/files/inter-2b2f25a4.woff2 +0 -0
  445. package/dist/ui/font/files/inter-467acc7a.woff2 +0 -0
  446. package/dist/ui/font/files/inter-6e85163c.woff2 +0 -0
  447. package/dist/ui/font/files/inter-7048add3.woff2 +0 -0
  448. package/dist/ui/font/files/inter-9be0371e.woff2 +0 -0
  449. package/dist/ui/font/files/inter-a28b7e31.woff2 +0 -0
  450. package/dist/ui/font/files/poppins-054df55a.woff2 +0 -0
  451. package/dist/ui/font/files/poppins-0ee5dc9a.woff2 +0 -0
  452. package/dist/ui/font/files/poppins-0f44cb18.woff2 +0 -0
  453. package/dist/ui/font/files/poppins-0ff0d30c.woff2 +0 -0
  454. package/dist/ui/font/files/poppins-13045147.woff2 +0 -0
  455. package/dist/ui/font/files/poppins-1db57cd9.woff2 +0 -0
  456. package/dist/ui/font/files/poppins-2cf2a902.woff2 +0 -0
  457. package/dist/ui/font/files/poppins-39e7f079.woff2 +0 -0
  458. package/dist/ui/font/files/poppins-9607042d.woff2 +0 -0
  459. package/dist/ui/font/files/poppins-9a88fc1f.woff2 +0 -0
  460. package/dist/ui/font/files/poppins-b8f4f752.woff2 +0 -0
  461. package/dist/ui/font/files/poppins-f5e57db4.woff2 +0 -0
  462. package/dist/ui/font/geist-mono.css +104 -0
  463. package/dist/ui/font/geist.css +168 -0
  464. package/dist/ui/font/inter.css +232 -0
  465. package/dist/ui/font/poppins.css +104 -0
  466. package/dist/ui/form.d.ts +1 -0
  467. package/dist/ui/form.js +3 -0
  468. package/dist/ui/index.css +21826 -0
  469. package/dist/ui/input.d.ts +1 -0
  470. package/dist/ui/input.js +1176 -0
  471. package/dist/ui/menu.d.ts +1 -0
  472. package/dist/ui/menu.js +1289 -0
  473. package/dist/ui/modal.d.ts +1 -0
  474. package/dist/ui/modal.js +995 -0
  475. package/dist/ui/nav.d.ts +1 -0
  476. package/dist/ui/nav.js +295 -0
  477. package/dist/ui/radio.d.ts +1 -0
  478. package/dist/ui/radio.js +379 -0
  479. package/dist/ui/rich-text-editor.d.ts +1 -0
  480. package/dist/ui/rich-text-editor.js +1338 -0
  481. package/dist/ui/select.d.ts +1 -0
  482. package/dist/ui/select.js +2066 -0
  483. package/dist/ui/shadow/accordion.js +442 -0
  484. package/dist/ui/shadow/alert.js +218 -0
  485. package/dist/ui/shadow/breadcrumb.js +919 -0
  486. package/dist/ui/shadow/button-dropdown.js +696 -0
  487. package/dist/ui/shadow/button.js +63 -0
  488. package/dist/ui/shadow/card.js +524 -0
  489. package/dist/ui/shadow/chart.js +1569 -0
  490. package/dist/ui/shadow/checkbox.js +457 -0
  491. package/dist/ui/shadow/chip.js +559 -0
  492. package/dist/ui/shadow/date.js +712 -0
  493. package/dist/ui/shadow/drawer.js +869 -0
  494. package/dist/ui/shadow/dropdown-table.js +1620 -0
  495. package/dist/ui/shadow/dropdown.js +547 -0
  496. package/dist/ui/shadow/file-upload.js +731 -0
  497. package/dist/ui/shadow/filter.js +402 -0
  498. package/dist/ui/shadow/input.js +1150 -0
  499. package/dist/ui/shadow/menu.js +899 -0
  500. package/dist/ui/shadow/modal.js +1193 -0
  501. package/dist/ui/shadow/nav.js +240 -0
  502. package/dist/ui/shadow/radio.js +408 -0
  503. package/dist/ui/shadow/rich-text-editor.js +1344 -0
  504. package/dist/ui/shadow/select.js +2033 -0
  505. package/dist/ui/shadow/sidebar.js +606 -0
  506. package/dist/ui/shadow/switch.js +428 -0
  507. package/dist/ui/shadow/table.js +4755 -0
  508. package/dist/ui/shadow/tabs.js +372 -0
  509. package/dist/ui/shadow/tag-input.js +2846 -0
  510. package/dist/ui/shadow/textarea.js +816 -0
  511. package/dist/ui/sidebar.d.ts +1 -0
  512. package/dist/ui/sidebar.js +659 -0
  513. package/dist/ui/switch.d.ts +1 -0
  514. package/dist/ui/switch.js +398 -0
  515. package/dist/ui/table.d.ts +1 -0
  516. package/dist/ui/table.js +4654 -0
  517. package/dist/ui/tabs.d.ts +1 -0
  518. package/dist/ui/tabs.js +379 -0
  519. package/dist/ui/tag-input.d.ts +1 -0
  520. package/dist/ui/tag-input.js +2819 -0
  521. package/dist/ui/textarea.d.ts +1 -0
  522. package/dist/ui/textarea.js +819 -0
  523. package/dist/ui/theme/legacy.css +293 -0
  524. package/dist/ui/theme/luma.css +743 -0
  525. package/dist/ui/theme/lyra.css +754 -0
  526. package/dist/ui/theme/maia.css +673 -0
  527. package/dist/ui/theme/mira.css +802 -0
  528. package/dist/ui/theme/nova.css +662 -0
  529. package/dist/ui/theme/one.css +699 -0
  530. package/dist/ui/theme/rhea.css +742 -0
  531. package/dist/ui/theme/sera.css +845 -0
  532. package/dist/ui/theme/tokens.css +261 -0
  533. package/dist/ui/theme/vega.css +467 -0
  534. package/dist/vite-C5iUK7so.js +329 -0
  535. package/dist/vite.d.ts +1 -0
  536. package/dist/vite.js +2 -0
  537. package/dist/vue.d.ts +282 -0
  538. package/package.json +411 -3
@@ -0,0 +1,47 @@
1
+ //#region src/composables/reactive.ts
2
+ /**
3
+ * Unwrap a `ref()` / `computed()` wrapper and a `reactive()` proxy to the raw
4
+ * target underneath. Returns the value unchanged when it isn't reactive.
5
+ */
6
+ function unwrapReactive(value) {
7
+ let out = value;
8
+ if (out && typeof out === "object" && out.__v_isRef) out = out.value;
9
+ if (out && typeof out === "object" && out.__v_raw) out = out.__v_raw;
10
+ return out;
11
+ }
12
+ /**
13
+ * Read a {@link MaybeReactive} option: call a getter, unwrap a ref/computed or a
14
+ * reactive proxy, unbox a plain `{ value }`. Never caches — the caller decides
15
+ * when "now" is.
16
+ */
17
+ function resolveMaybeReactive(option) {
18
+ if (option === void 0 || option === null) return void 0;
19
+ if (typeof option === "function") return option();
20
+ const raw = unwrapReactive(option);
21
+ if (raw && typeof raw === "object") {
22
+ const keys = Object.keys(raw);
23
+ if (keys.length === 1 && keys[0] === "value") return unwrapReactive(raw.value);
24
+ }
25
+ return raw;
26
+ }
27
+ /**
28
+ * {@link unwrapReactive}, then — for an **array** — unwrap each element too.
29
+ *
30
+ * Reading an index off a deep-reactive array yields a proxy of that element, so
31
+ * unwrapping only the container still leaves proxies inside. One level of
32
+ * elements is all the value models here need; this deliberately does not recurse
33
+ * into nested objects, which would rewrite data the consumer owns.
34
+ */
35
+ function unwrapReactiveDeep(value) {
36
+ const out = unwrapReactive(value);
37
+ if (!Array.isArray(out)) return out;
38
+ let changed = false;
39
+ const items = out.map((item) => {
40
+ const raw = unwrapReactive(item);
41
+ if (raw !== item) changed = true;
42
+ return raw;
43
+ });
44
+ return changed ? items : out;
45
+ }
46
+ //#endregion
47
+ export { unwrapReactive as n, unwrapReactiveDeep as r, resolveMaybeReactive as t };
@@ -0,0 +1 @@
1
+ export {}
package/dist/search.js ADDED
@@ -0,0 +1,97 @@
1
+ //#region src/search/odata-search.ts
2
+ var INTEGER_TYPES = {
3
+ "Edm.Byte": true,
4
+ "Edm.SByte": true,
5
+ "Edm.Int16": true,
6
+ "Edm.Int32": true,
7
+ "Edm.Int64": true
8
+ };
9
+ var DECIMAL_TYPES = {
10
+ "Edm.Decimal": true,
11
+ "Edm.Double": true,
12
+ "Edm.Single": true
13
+ };
14
+ var CASE_FOLD_TERM = "Mono.Search.CaseFold";
15
+ function childElements(element, name) {
16
+ return Array.from(element.children).filter((child) => child.localName === name);
17
+ }
18
+ function metadataDocument(metadata) {
19
+ if (typeof metadata !== "string") return metadata;
20
+ if (typeof DOMParser === "undefined") throw new Error("odataSearchExpr requires DOMParser when metadata is XML text.");
21
+ const document = new DOMParser().parseFromString(metadata, "application/xml");
22
+ if (document.querySelector("parsererror")) throw new Error("odataSearchExpr received invalid OData metadata.");
23
+ return document;
24
+ }
25
+ function entityTypeOf(document, requested) {
26
+ const separator = requested.lastIndexOf(".");
27
+ const namespace = separator < 0 ? null : requested.slice(0, separator);
28
+ const name = separator < 0 ? requested : requested.slice(separator + 1);
29
+ return Array.from(document.getElementsByTagNameNS("*", "EntityType")).find((entity) => entity.getAttribute("Name") === name && (!namespace || entity.parentElement?.getAttribute("Namespace") === namespace)) ?? null;
30
+ }
31
+ function odataLiteral(value) {
32
+ return `'${value.replaceAll("'", "''")}'`;
33
+ }
34
+ function caseFoldEnabled(document, entity, field) {
35
+ const inline = childElements(childElements(entity, "Property").find((property) => property.getAttribute("Name") === field) ?? entity, "Annotation");
36
+ const entityName = entity.getAttribute("Name");
37
+ const namespace = entity.parentElement?.getAttribute("Namespace");
38
+ const target = namespace && entityName ? `${namespace}.${entityName}/${field}` : null;
39
+ const external = target ? Array.from(document.getElementsByTagNameNS("*", "Annotations")).filter((annotations) => annotations.getAttribute("Target") === target).flatMap((annotations) => childElements(annotations, "Annotation")) : [];
40
+ return [...inline, ...external].find((candidate) => candidate.getAttribute("Term") === CASE_FOLD_TERM)?.getAttribute("Bool") !== "false";
41
+ }
42
+ function numericClause(field, type, value) {
43
+ const literal = value.trim();
44
+ if (INTEGER_TYPES[type] && /^[+-]?\d+$/.test(literal)) return `${field} eq ${literal}`;
45
+ if (DECIMAL_TYPES[type] && /^[+-]?(?:\d+|\d*\.\d+)$/.test(literal)) return `${field} eq ${literal}`;
46
+ return null;
47
+ }
48
+ /**
49
+ * Compile selected CSDL properties into the grid's existing `searchExpr` contract.
50
+ *
51
+ * Strings retain case-insensitive matching unless the service annotates the property
52
+ * with `Mono.Search.CaseFold=false`; numeric EDM properties accept a complete numeric
53
+ * input as equality. Unsupported EDM types do not generate invalid text predicates.
54
+ */
55
+ function odataSearchExpr(options) {
56
+ const document = metadataDocument(options.metadata);
57
+ const entity = entityTypeOf(document, options.entityType);
58
+ if (!entity) throw new Error(`odataSearchExpr could not find entity type "${options.entityType}" in metadata.`);
59
+ const properties = /* @__PURE__ */ new Map();
60
+ let owner = entity;
61
+ while (owner) {
62
+ for (const property of childElements(owner, "Property")) {
63
+ const name = property.getAttribute("Name");
64
+ if (name && !properties.has(name)) properties.set(name, {
65
+ property,
66
+ owner
67
+ });
68
+ }
69
+ const baseType = owner.getAttribute("BaseType");
70
+ owner = baseType ? entityTypeOf(document, baseType) : null;
71
+ }
72
+ const entries = [];
73
+ for (const field of options.fields) {
74
+ const entry = properties.get(field);
75
+ const type = entry?.property.getAttribute("Type");
76
+ if (!entry || !type) continue;
77
+ if (type === "Edm.String") {
78
+ const fold = caseFoldEnabled(document, entry.owner, field);
79
+ entries.push({
80
+ field,
81
+ custom: ({ value, operation }) => {
82
+ if (operation !== "contains") return null;
83
+ const literal = odataLiteral(fold ? value.toLocaleLowerCase() : value);
84
+ return fold ? `contains(tolower(${field}),${literal})` : `contains(${field},${literal})`;
85
+ }
86
+ });
87
+ continue;
88
+ }
89
+ if (INTEGER_TYPES[type] || DECIMAL_TYPES[type]) entries.push({
90
+ field,
91
+ custom: ({ value, operation }) => operation === "contains" ? numericClause(field, type, value) : null
92
+ });
93
+ }
94
+ return entries;
95
+ }
96
+ //#endregion
97
+ export { odataSearchExpr };
@@ -0,0 +1,62 @@
1
+ import { LitElement } from 'lit';
2
+ import { AccordionSize, AccordionColor, AccordionCssClass } from './accordion-types.js';
3
+ import { Constructor } from '../../composables/hybird-prop';
4
+ /**
5
+ * Slot regions the accordion lays out. `default` is the unnamed body region.
6
+ * `title` / `subtitle` are canonical; `label` / `description` are their old
7
+ * names, still accepted (the canonical name wins when both are given).
8
+ * `header` replaces the title + subtitle text as a whole.
9
+ */
10
+ export type AccordionSlotName = 'title' | 'subtitle' | 'label' | 'description' | 'header' | 'icon' | 'actions' | 'default';
11
+ /** Public + shared-protected surface added by the core mixin. */
12
+ export declare class MonoAccordionCoreInterface {
13
+ size: AccordionSize;
14
+ color: AccordionColor;
15
+ /** Header headline. `label` is the old name, kept as an alias. */
16
+ title: string;
17
+ /** Header secondary line. `description` is the old name, kept as an alias. */
18
+ subtitle: string;
19
+ /** @deprecated alias of `title` */
20
+ label: string;
21
+ /** @deprecated alias of `subtitle` */
22
+ description: string;
23
+ modelValue: boolean;
24
+ disabled: boolean;
25
+ cssClass: AccordionCssClass;
26
+ cssClassName: string;
27
+ toggle(): void;
28
+ expand(): void;
29
+ collapse(): void;
30
+ focus(): void;
31
+ blur(): void;
32
+ protected _hasTitleSlotState: boolean;
33
+ protected _hasSubtitleSlotState: boolean;
34
+ protected _hasHeaderSlotState: boolean;
35
+ protected _hasIconSlotState: boolean;
36
+ protected _hasActionsSlotState: boolean;
37
+ protected _hasBodySlotState: boolean;
38
+ protected _headEl?: HTMLButtonElement;
39
+ protected _cls(base: string, key: keyof AccordionCssClass): string;
40
+ protected get _wrapperClasses(): string;
41
+ /** Ref for the root each build renders — where the styling attributes go. */
42
+ protected bindRoot: (el: Element | undefined) => void;
43
+ protected _computeRootAttrs(): Record<string, string | null>;
44
+ protected _applyRootAttrs(root: HTMLElement | null | undefined): void;
45
+ protected get _hasTitleContent(): boolean;
46
+ protected get _hasSubtitleContent(): boolean;
47
+ protected get _hasIconContent(): boolean;
48
+ protected _setCssClass(value: unknown): void;
49
+ protected _handleClick(event: Event): void;
50
+ }
51
+ /**
52
+ * `MonoAccordionCore` — all render-mode-agnostic logic for `mono-accordion`:
53
+ * reactive props, hybrid aliases, the camelCase attribute fallbacks, slot-presence
54
+ * `@state`, class/getter computation, click/toggle interactivity, and the
55
+ * imperative `focus/blur`. No `render()` — the light build keeps its
56
+ * `[data-mono-slot]` capture strategy and the shadow build uses native `<slot>`
57
+ * (each ships its own `render()`, mirroring `mono-card`).
58
+ *
59
+ * SSR-safe: no `document`/`window` access. `_headEl` (`@query`) is lazy and
60
+ * `focus/blur` only run client-side.
61
+ */
62
+ export declare const MonoAccordionCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoAccordionCoreInterface> & T;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Accordion Component Type Definitions
3
+ */
4
+ export type AccordionSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
+ export type AccordionColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'teal' | 'purple' | 'neutral' | 'dark';
6
+ export interface AccordionCssClass {
7
+ root?: string;
8
+ head?: string;
9
+ icon?: string;
10
+ title?: string;
11
+ /** The secondary line (`[mono-subtitle]`). The key keeps its original name. */
12
+ description?: string;
13
+ actions?: string;
14
+ arrow?: string;
15
+ body?: string;
16
+ }
17
+ export type AccordionClickEventDetail = {
18
+ modelValue: boolean;
19
+ currentValue: boolean;
20
+ oldValue: boolean;
21
+ value: boolean;
22
+ sourceEvent?: Event;
23
+ };
24
+ export type AccordionClickEvent = CustomEvent<AccordionClickEventDetail>;
25
+ export interface AccordionProps {
26
+ /**
27
+ * Title text shown in the accordion header. `slot="title"` replaces it, and
28
+ * `slot="header"` replaces the icon, title and subtitle together.
29
+ */
30
+ title?: string;
31
+ /** Secondary text shown under the title. `slot="subtitle"` replaces it. */
32
+ subtitle?: string;
33
+ /** @deprecated Old name of `title`, still accepted. */
34
+ label?: string;
35
+ /** @deprecated Old name of `subtitle`, still accepted. */
36
+ description?: string;
37
+ /** Bound open state; true when the accordion is expanded. */
38
+ modelValue?: boolean;
39
+ 'model-value'?: boolean;
40
+ modelvalue?: boolean;
41
+ /** Disables interaction and dims the accordion. */
42
+ disabled?: boolean;
43
+ /** Visual size of the accordion. */
44
+ size?: AccordionSize;
45
+ /** Color theme of the accordion. */
46
+ color?: AccordionColor;
47
+ /** Per-element class overrides. */
48
+ cssClass?: AccordionCssClass;
49
+ cssclass?: AccordionCssClass;
50
+ 'css-class'?: AccordionCssClass | string;
51
+ }
52
+ export interface AccordionEvents {
53
+ toggle: AccordionClickEvent;
54
+ open: AccordionClickEvent;
55
+ close: AccordionClickEvent;
56
+ 'mno-click': AccordionClickEvent;
57
+ mnoClick: AccordionClickEvent;
58
+ 'mno-open': AccordionClickEvent;
59
+ mnoOpen: AccordionClickEvent;
60
+ 'mno-close': AccordionClickEvent;
61
+ mnoClose: AccordionClickEvent;
62
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../../vue.d.ts" />
2
+ export { MonoAccordion } from './mono-accordion.js';
3
+ export type { AccordionSize, AccordionColor, AccordionCssClass, AccordionClickEventDetail, AccordionClickEvent, AccordionProps, AccordionEvents, } from './accordion-types.js';
@@ -0,0 +1,5 @@
1
+ /// <reference path="../../../vue.d.ts" />
2
+ export { MonoAccordionShadow } from './mono-accordion.shadow.js';
3
+ export { MonoAccordionCore } from './accordion-core.js';
4
+ export type { AccordionSlotName } from './accordion-core.js';
5
+ export type { AccordionSize, AccordionColor, AccordionCssClass, AccordionClickEventDetail, AccordionClickEvent, AccordionProps, AccordionEvents, } from './accordion-types.js';
@@ -0,0 +1,55 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ declare const MonoAccordion_base: import('../../composables/hybird-prop').Constructor<import('./accordion-core.js').MonoAccordionCoreInterface> & typeof LitElement;
3
+ /**
4
+ * Light-DOM `mono-accordion` (default build, `@mono-lit/helper/ui/accordion`).
5
+ *
6
+ * Renders into the host (`createRenderRoot`→`this`, styled by the global
7
+ * `dist/ui/index.css`) with the light-DOM slot strategy: `slot="…"` children are
8
+ * captured in `connectedCallback`, the template renders empty `[data-mono-slot]`
9
+ * targets, and the captured nodes are re-appended in `updated()`. All
10
+ * render-mode-agnostic logic lives in `MonoAccordionCore`. The shadow build
11
+ * (`@mono-lit/helper/ui/shadow/accordion`) shares the mixin but uses native `<slot>`.
12
+ * Both register `mono-accordion`, so a document loads only one.
13
+ */
14
+ export declare class MonoAccordion extends MonoAccordion_base {
15
+ static styles: import('lit').CSSResult[];
16
+ protected createRenderRoot(): HTMLElement;
17
+ private _slotObserver?;
18
+ private _slotTitle;
19
+ private _slotLabel;
20
+ private _slotSubtitle;
21
+ private _slotDescription;
22
+ private _slotHeader;
23
+ private _slotIcon;
24
+ private _slotActions;
25
+ private _slotBody;
26
+ /** Hidden detached holder for captured nodes that have no rendered target. */
27
+ private _parked?;
28
+ /** The title nodes that render: `slot="title"` beats its alias `slot="label"`. */
29
+ private get _titleNodes();
30
+ /** The subtitle nodes that render: `slot="subtitle"` beats `slot="description"`. */
31
+ private get _subtitleNodes();
32
+ connectedCallback(): void;
33
+ disconnectedCallback(): void;
34
+ protected updated(changed: Map<string, unknown>): void;
35
+ private _renderIcon;
36
+ private _renderText;
37
+ private _renderActions;
38
+ private _renderBody;
39
+ protected render(): TemplateResult;
40
+ /**
41
+ * Capture `slot="…"` named children + the unnamed/default body content into the
42
+ * per-region arrays. Safe to run MORE THAN ONCE: captured nodes are detached
43
+ * from the host (and named ones lose their `slot` attribute), so a re-scan never
44
+ * re-captures them — and the Lit-rendered wrapper (`.mono-accordion`) is skipped.
45
+ * Re-running lets the MutationObserver pick up children Vue appends after connect.
46
+ */
47
+ private _captureSlots;
48
+ private _placeSlot;
49
+ }
50
+ declare global {
51
+ interface HTMLElementTagNameMap {
52
+ 'mono-accordion': MonoAccordion;
53
+ }
54
+ }
55
+ export {};
@@ -0,0 +1,56 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ declare const MonoAccordionShadow_base: import('../../composables/hybird-prop').Constructor<import('./accordion-core.js').MonoAccordionCoreInterface> & typeof LitElement;
3
+ /**
4
+ * Shadow-DOM `mono-accordion` (the opt-in SSR build,
5
+ * `@mono-lit/helper/ui/shadow/accordion`).
6
+ *
7
+ * Real shadow root + `static styles`, so `@lit-labs/ssr` serializes it to
8
+ * Declarative Shadow DOM and styles are scoped (`mono-accordion`→`:host`).
9
+ * Slotting uses native `<slot>`. During SSR the element has no light children, so
10
+ * the slot-presence flags default `false` (hydration-matching) and the decorative
11
+ * regions render `mono-empty` (hidden by accordion.css itself); real presence is
12
+ * corrected in `firstUpdated()` (DSD assigns slotted content at parse time →
13
+ * `slotchange` doesn't fire after upgrade → scan `assignedNodes()`; `slotchange` is
14
+ * kept for later dynamic changes). `<slot name="label">${label}</slot>` carries the
15
+ * prop text as native fallback so it shows with no JS. The body region is always
16
+ * visible so main content never flashes. Shares all logic with the light build via
17
+ * `MonoAccordionCore`. Both register `mono-accordion`, so a document loads one.
18
+ */
19
+ export declare class MonoAccordionShadow extends MonoAccordionShadow_base {
20
+ static styles: import('lit').CSSResult[];
21
+ connectedCallback(): void;
22
+ firstUpdated(changed: Map<string, unknown>): void;
23
+ /**
24
+ * Presence of a region that may also answer to an old name (`label` →
25
+ * `title`, `description` → `subtitle`): the union of both slots.
26
+ */
27
+ private _regionHasContent;
28
+ /**
29
+ * `<slot name="title"><slot name="label">fallback</slot></slot>` — a slot's
30
+ * children are its fallback, shown only when nothing is assigned to it, so the
31
+ * canonical name wins and the old name is reached exactly when it is empty.
32
+ * Both slots recompute presence from BOTH names (an empty outer `slotchange`
33
+ * must not clear a filled inner one).
34
+ */
35
+ private _renderAliasedSlot;
36
+ private _slotFor;
37
+ /**
38
+ * Whether something is ASSIGNED to this slot. Not `assignedNodes({ flatten:
39
+ * true })`: for a slot with nothing assigned, flatten returns its FALLBACK
40
+ * content — and `<slot name="header">`'s fallback is the title/subtitle
41
+ * markup, so every accordion looked like it had a header slot and hid its
42
+ * icon. The old alias names (`label` / `description`) are nested slots of
43
+ * their own and are checked separately by the caller.
44
+ */
45
+ private _slotHasContent;
46
+ private _setSlotState;
47
+ private _onSlotChange;
48
+ private _renderIcon;
49
+ private _renderText;
50
+ private _renderActions;
51
+ private _renderBody;
52
+ /** Body presence: the named `body` slot or the default slot. */
53
+ private _bodyHasContent;
54
+ protected render(): TemplateResult;
55
+ }
56
+ export {};
@@ -0,0 +1,46 @@
1
+ import { LitElement, nothing, TemplateResult } from 'lit';
2
+ import { AlertColor, AlertCssClass, AlertSize, AlertVariant } from './alert-types.js';
3
+ import { Constructor } from '../../composables/hybird-prop';
4
+ /** Regions the alert lays out. `body` also takes the unslotted children. */
5
+ export type AlertSlotName = 'icon' | 'title' | 'subtitle' | 'body';
6
+ /** Public + shared-protected surface added by the core mixin. */
7
+ export declare class MonoAlertCoreInterface {
8
+ /** The headline. */
9
+ title: string;
10
+ /** The line under the title. */
11
+ subtitle: string;
12
+ /** Leading icon — an iconify class or plain text. */
13
+ icon: string;
14
+ color: AlertColor;
15
+ variant: AlertVariant;
16
+ size: AlertSize;
17
+ /** Show the ✕ that hides the alert. */
18
+ clearable: boolean;
19
+ /** Same as `clearable`. */
20
+ closeable: boolean;
21
+ clearLabel: string;
22
+ cssClass: AlertCssClass;
23
+ protected _hasIconSlot: boolean;
24
+ protected _hasTitleSlot: boolean;
25
+ protected _hasSubtitleSlot: boolean;
26
+ protected _hasBodySlot: boolean;
27
+ protected _cls(base: string, key: keyof AlertCssClass): string;
28
+ protected get _showsIcon(): boolean;
29
+ protected get _showsTitle(): boolean;
30
+ protected get _showsSubtitle(): boolean;
31
+ protected _renderIconGlyph(): TemplateResult | typeof nothing;
32
+ protected _renderMain(): unknown;
33
+ }
34
+ /**
35
+ * `MonoAlertCore` — everything both builds share: props (with the `closeable`
36
+ * alias), the ✕ that hides the alert, and the root template. The regions are
37
+ * one overridable hook, `_renderMain()`: the light build fills `[data-mono-slot]`
38
+ * placeholders, the shadow build uses native `<slot>`s.
39
+ *
40
+ * The alert emits NO events of its own. `@click` on it is the browser's click;
41
+ * the ✕ only hides the element (the native `hidden` attribute), and stops its
42
+ * own click so a listener on the alert does not fire for it.
43
+ *
44
+ * SSR-safe: no `document`/`window` access.
45
+ */
46
+ export declare const MonoAlertCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoAlertCoreInterface> & T;
@@ -0,0 +1,44 @@
1
+ /** Scale step. `md` is Basecoat's alert; the rest scale it (see alert.css). */
2
+ export type AlertSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
3
+ /** The same four looks as mono-button. `outline` is Basecoat's alert. */
4
+ export type AlertVariant = 'outline' | 'solid' | 'tonal' | 'text';
5
+ export type AlertColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'teal' | 'purple' | 'neutral' | 'dark';
6
+ /** Extra classes per part (`cssClass`), e.g. `{ title: 'font-bold' }`. */
7
+ export interface AlertCssClass {
8
+ root?: string;
9
+ icon?: string;
10
+ title?: string;
11
+ subtitle?: string;
12
+ body?: string;
13
+ clear?: string;
14
+ }
15
+ export interface AlertProps {
16
+ /** The headline. `slot="title"` replaces it. */
17
+ title?: string;
18
+ /** The line under the title. `slot="subtitle"` replaces it. */
19
+ subtitle?: string;
20
+ /**
21
+ * The leading icon: an iconify class (`i-mdi-information-outline`) or plain
22
+ * text (an emoji, a letter). `slot="icon"` replaces it.
23
+ */
24
+ icon?: string;
25
+ /** Colour role. `neutral` (default) is Basecoat's plain alert. */
26
+ color?: AlertColor;
27
+ /** `outline` (default, Basecoat's look), `tonal`, `solid` or `text`. */
28
+ variant?: AlertVariant;
29
+ /** Scale step, `xs` → `xxl`. Default `md`. */
30
+ size?: AlertSize;
31
+ /**
32
+ * Show a ✕ that hides the alert (it sets the element's own `hidden`
33
+ * attribute). The ✕ stays when `slot="body"` replaces the rest.
34
+ */
35
+ clearable?: boolean;
36
+ /** Same as `clearable`. */
37
+ closeable?: boolean;
38
+ /** Accessible name of the ✕. Default `'Close'`. */
39
+ clearLabel?: string;
40
+ 'clear-label'?: string;
41
+ /** Extra classes per part. */
42
+ cssClass?: AlertCssClass;
43
+ 'css-class'?: AlertCssClass;
44
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../../vue.d.ts" />
2
+ export { MonoAlert } from './mono-alert.js';
3
+ export type { AlertSize, AlertVariant, AlertColor, AlertCssClass, AlertProps, } from './alert-types.js';
@@ -0,0 +1,5 @@
1
+ /// <reference path="../../../vue.d.ts" />
2
+ export { MonoAlertShadow } from './mono-alert.shadow.js';
3
+ export { MonoAlertCore } from './alert-core.js';
4
+ export type { AlertSlotName } from './alert-core.js';
5
+ export type { AlertSize, AlertVariant, AlertColor, AlertCssClass, AlertProps, } from './alert-types.js';
@@ -0,0 +1,44 @@
1
+ import { LitElement } from 'lit';
2
+ declare const MonoAlert_base: import('../../composables/hybird-prop').Constructor<import('./alert-core.js').MonoAlertCoreInterface> & typeof LitElement;
3
+ /**
4
+ * Light-DOM `mono-alert` (default build, `@mono-lit/helper/ui/alert`).
5
+ *
6
+ * Renders into the host (`createRenderRoot`→`this`, styled by the global
7
+ * `dist/ui/index.css`) with the light-DOM slot strategy of `mono-card`:
8
+ * `slot="icon|title|subtitle|body"` children — and unslotted ones, which are the
9
+ * body — are captured in `connectedCallback`, the template renders empty
10
+ * `[data-mono-slot]` regions, and the captured nodes are re-appended in
11
+ * `updated()`. The first render is forced SYNCHRONOUSLY so a framework's
12
+ * positional anchors are never observably detached (see mono-card).
13
+ *
14
+ * The body wins: when it has content the icon / title / subtitle regions are not
15
+ * rendered, and their captured nodes are parked (kept parented, invisible).
16
+ */
17
+ export declare class MonoAlert extends MonoAlert_base {
18
+ static styles: import('lit').CSSResult[];
19
+ protected createRenderRoot(): HTMLElement;
20
+ private _slotsCaptured;
21
+ private _buckets;
22
+ private _parked?;
23
+ /**
24
+ * The body region is ALWAYS rendered (like the card's): it is also the home
25
+ * of the consumer framework's positional anchors (`<!--v-if-->`), which must
26
+ * keep a live, visible parent — content a `v-if` inserts there later has to
27
+ * show up. It is `mono-empty` while it holds nothing but anchors, and a
28
+ * MutationObserver flips `_hasBodySlot` when real content arrives or leaves.
29
+ */
30
+ protected _renderMain(): unknown;
31
+ private _bodyObserver?;
32
+ /** Re-read body presence from the placed region (late `v-if` content). */
33
+ private _watchBody;
34
+ disconnectedCallback(): void;
35
+ connectedCallback(): void;
36
+ private _captureSlots;
37
+ protected updated(changed: Map<string, unknown>): void;
38
+ }
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ 'mono-alert': MonoAlert;
42
+ }
43
+ }
44
+ export {};
@@ -0,0 +1,34 @@
1
+ import { LitElement, nothing, TemplateResult } from 'lit';
2
+ declare const MonoAlertShadow_base: import('../../composables/hybird-prop').Constructor<import('./alert-core.js').MonoAlertCoreInterface> & typeof LitElement;
3
+ /**
4
+ * Shadow-DOM alert (the opt-in SSR build, `@mono-lit/helper/ui/shadow/alert`).
5
+ *
6
+ * Registered as `<mono-shadow-alert>` — a distinct tag from the light build's
7
+ * `<mono-alert>` — so both can load side by side. Every region is rendered up
8
+ * front with its prop as the native slot fallback, and the empty ones are marked
9
+ * `[mono-empty]` (alert.css hides them). The body is `slot="body"` AND the
10
+ * unnamed default slot; when either has content it replaces the icon, title and
11
+ * subtitle, exactly as in the light build.
12
+ */
13
+ export declare class MonoAlertShadow extends MonoAlertShadow_base {
14
+ static styles: import('lit').CSSResult[];
15
+ firstUpdated(changed: Map<string, unknown>): void;
16
+ protected updated(changed: Map<string, unknown>): void;
17
+ private _slot;
18
+ /**
19
+ * Whether something is ASSIGNED to a slot. Not `flatten: true`: for an empty
20
+ * slot that returns the FALLBACK (the prop text), which would count as content.
21
+ */
22
+ private _assigned;
23
+ private _scanSlots;
24
+ /** Iconify classes are drawn as inline SVG — page utility CSS cannot reach here. */
25
+ protected _renderIconGlyph(): TemplateResult | typeof nothing;
26
+ protected _renderMain(): unknown;
27
+ connectedCallback(): void;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'mono-shadow-alert': MonoAlertShadow;
32
+ }
33
+ }
34
+ export {};
@@ -0,0 +1,61 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ import { BreadcrumbItem, BreadcrumbVariant, BreadcrumbSize, BreadcrumbColor, BreadcrumbCssClass } from './breadcrumb-types.js';
3
+ import { Constructor } from '../../composables/hybird-prop';
4
+ import { BreadcrumbRenderContext } from './breadcrumb-render.js';
5
+ /**
6
+ * Minimal interface for descendant `<mono-breadcrumb-list>` instances. Avoids a
7
+ * circular import — the real class is in `mono-breadcrumb-list.ts`.
8
+ */
9
+ export interface MonoBreadcrumbListLike extends HTMLElement {
10
+ requestUpdate(): void;
11
+ getBreadcrumbItems?(): BreadcrumbItem[];
12
+ }
13
+ /** Public + shared-protected surface added by the core mixin. */
14
+ export declare class MonoBreadcrumbCoreInterface {
15
+ items: BreadcrumbItem[];
16
+ modelValue: BreadcrumbItem | null;
17
+ variant: BreadcrumbVariant;
18
+ size: BreadcrumbSize;
19
+ color: BreadcrumbColor;
20
+ separator: string;
21
+ truncate: boolean;
22
+ disabled: boolean;
23
+ ariaLabel: string | null;
24
+ cssClass: BreadcrumbCssClass;
25
+ cssClassName: string;
26
+ select(id: string): void;
27
+ focus(): void;
28
+ requestItemActivation(item: BreadcrumbItem, index: number, event?: Event): void;
29
+ isItemCurrent(id: string): boolean;
30
+ getSlotIconNodes(id: string): Node[] | undefined;
31
+ hasSeparatorSlot(): boolean;
32
+ getSeparatorString(): string;
33
+ _registerListChild(child: MonoBreadcrumbListLike): void;
34
+ _unregisterListChild(child: MonoBreadcrumbListLike): void;
35
+ protected _slotIcons: Map<string, Node[]>;
36
+ protected _slotSeparator: Node[];
37
+ protected _listChildren: Set<MonoBreadcrumbListLike>;
38
+ protected _cls(base: string, key: keyof BreadcrumbCssClass): string;
39
+ protected get _rootClasses(): string;
40
+ protected _isCurrent(id: string): boolean;
41
+ protected _setCssClass(value: unknown): void;
42
+ protected _setModelValueFromAttribute(value: string | null): void;
43
+ protected _handleItemActivation(item: BreadcrumbItem, index: number, event?: Event): void;
44
+ protected _notifyListChildren(changed: Map<string, unknown>): void;
45
+ protected _renderContext(): BreadcrumbRenderContext;
46
+ protected _itemsForRender(): BreadcrumbItem[];
47
+ protected _renderBody(): TemplateResult;
48
+ protected _useIconSlots(): boolean;
49
+ }
50
+ /**
51
+ * `MonoBreadcrumbCore` — all render-mode-agnostic logic for `mono-breadcrumb`:
52
+ * reactive props (incl. the SSR `items` string→array coercion), hybrid aliases,
53
+ * camelCase attribute fallbacks, the child-list registry + state propagation,
54
+ * item activation + events, and the `<nav>` chrome `render()`. The light build
55
+ * keeps its `[data-mono-slot]` capture (`slot="body"`/`separator`/`icon-*`) and
56
+ * overrides `_renderBody()`; the shadow build renders the whole list from `items`
57
+ * in one shadow root and overrides `_useIconSlots()` (mirrors `mono-menu`).
58
+ *
59
+ * SSR-safe: no `document`/`window` access except `focus()` (guarded by isServer).
60
+ */
61
+ export declare const MonoBreadcrumbCore: <T extends Constructor<LitElement>>(superClass: T) => Constructor<MonoBreadcrumbCoreInterface> & T;