@webority/ui-react 0.34.0 → 0.35.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 (311) hide show
  1. package/dist/components/AppAccordion.js +57 -0
  2. package/dist/components/AppActionIcon.js +53 -0
  3. package/dist/components/AppAlert.js +85 -0
  4. package/dist/components/AppAsyncBlock.js +48 -0
  5. package/dist/components/AppAutocomplete.js +93 -0
  6. package/dist/components/AppAvatar.js +143 -0
  7. package/dist/components/AppAvatarGroup.js +43 -0
  8. package/dist/components/AppAvatarPicker.js +247 -0
  9. package/dist/components/AppBadge.js +28 -0
  10. package/dist/components/AppBanner.js +49 -0
  11. package/dist/components/AppBreadcrumbs.js +24 -0
  12. package/dist/components/AppButton.js +85 -0
  13. package/dist/components/AppCalendar.js +72 -0
  14. package/dist/components/AppCard.js +110 -0
  15. package/dist/components/AppChart.js +153 -0
  16. package/dist/components/AppChartCard.js +125 -0
  17. package/dist/components/AppCheckbox.js +21 -0
  18. package/dist/components/AppChip.js +71 -0
  19. package/dist/components/AppChoiceCard.js +69 -0
  20. package/dist/components/AppChoiceChip.js +31 -0
  21. package/dist/components/AppColorField.js +63 -0
  22. package/dist/components/AppColumnMenu.js +27 -0
  23. package/dist/components/AppCommandPalette.js +164 -0
  24. package/dist/components/AppCompareTable.js +41 -0
  25. package/dist/components/AppConfirmDialog.js +93 -0
  26. package/dist/components/AppConsentBanner.js +37 -0
  27. package/dist/components/AppContextMenu.js +46 -0
  28. package/dist/components/AppCopyButton.js +41 -0
  29. package/dist/components/AppCountrySelect.js +75 -0
  30. package/dist/components/AppDashboardCell.js +19 -0
  31. package/dist/components/AppDashboardGrid.js +12 -0
  32. package/dist/components/AppDataTable.js +213 -0
  33. package/dist/components/AppDatePicker.js +59 -0
  34. package/dist/components/AppDateRangePicker.js +73 -0
  35. package/dist/components/AppDescriptions.js +40 -0
  36. package/dist/components/AppDropZone.js +106 -0
  37. package/dist/components/AppDropdown.js +90 -0
  38. package/dist/components/AppEmptyState.js +37 -0
  39. package/dist/components/AppErrorSummary.js +37 -0
  40. package/dist/components/AppFileAttachment.js +140 -0
  41. package/dist/components/AppFilePicker.js +220 -0
  42. package/dist/components/AppFileViewer.js +50 -0
  43. package/dist/components/AppFilterBar.js +129 -0
  44. package/dist/components/AppFloatingDock.js +47 -0
  45. package/dist/components/AppFormActions.js +23 -0
  46. package/dist/components/AppFormRow.js +24 -0
  47. package/dist/components/AppFormSection.js +32 -0
  48. package/dist/components/AppIcon.js +147 -0
  49. package/dist/components/AppInfoList.js +36 -0
  50. package/dist/components/AppInfoTip.js +41 -0
  51. package/dist/components/AppInput.js +269 -0
  52. package/dist/components/AppKanban.js +269 -0
  53. package/dist/components/AppKpiTile.js +91 -0
  54. package/dist/components/AppLink.js +74 -0
  55. package/dist/components/AppLogoPicker.js +264 -0
  56. package/dist/components/AppMeter.js +42 -0
  57. package/dist/components/AppModal.js +124 -0
  58. package/dist/components/AppMultiSelect.js +75 -0
  59. package/dist/components/AppNumberInput.js +139 -0
  60. package/dist/components/AppOtpInput.js +53 -0
  61. package/dist/components/AppPageHeader.js +82 -0
  62. package/dist/components/AppPagination.js +66 -0
  63. package/dist/components/AppPhoneNumberInput.js +53 -0
  64. package/dist/components/AppPopover.js +47 -0
  65. package/dist/components/AppPricingCard.js +58 -0
  66. package/dist/components/AppProgress.js +42 -0
  67. package/dist/components/AppQrCode.js +40 -0
  68. package/dist/components/AppRadio.js +21 -0
  69. package/dist/components/AppRadioGroup.js +79 -0
  70. package/dist/components/AppRepeater.js +57 -0
  71. package/dist/components/AppRequiredMark.js +11 -0
  72. package/dist/components/AppResourceCard.js +38 -0
  73. package/dist/components/AppResult.js +66 -0
  74. package/dist/components/AppRichText.js +72 -0
  75. package/dist/components/AppScrollbar.js +16 -0
  76. package/dist/components/AppSearch.js +52 -0
  77. package/dist/components/AppSegmented.js +87 -0
  78. package/dist/components/AppSelect.js +95 -0
  79. package/dist/components/AppSelectMini.js +45 -0
  80. package/dist/components/AppShell.js +709 -0
  81. package/dist/components/AppSidebarMenu.js +77 -0
  82. package/dist/components/AppSkeleton.js +24 -0
  83. package/dist/components/AppSlider.js +76 -0
  84. package/dist/components/AppSortableList.js +63 -0
  85. package/dist/components/AppSparkline.js +47 -0
  86. package/dist/components/AppSpinner.js +23 -0
  87. package/dist/components/AppSplash.js +62 -0
  88. package/dist/components/AppStatusBadge.js +22 -0
  89. package/dist/components/AppStepper.js +94 -0
  90. package/dist/components/AppSwitch.js +26 -0
  91. package/dist/components/AppTableEmptyState.js +30 -0
  92. package/dist/components/AppTablePagination.js +85 -0
  93. package/dist/components/AppTableToolbar.js +41 -0
  94. package/dist/components/AppTabs.js +195 -0
  95. package/dist/components/AppTagInput.js +63 -0
  96. package/dist/components/AppTextarea.js +81 -0
  97. package/dist/components/AppThemeToggle.js +102 -0
  98. package/dist/components/AppTimePicker.js +68 -0
  99. package/dist/components/AppTimeline.js +102 -0
  100. package/dist/components/AppToast.js +169 -0
  101. package/dist/components/AppToolbar.js +63 -0
  102. package/dist/components/AppTooltip.js +50 -0
  103. package/dist/components/AppTour.js +39 -0
  104. package/dist/components/AppTreeView.js +61 -0
  105. package/dist/components/AppWizard.js +82 -0
  106. package/dist/components/AppWorkspaceSwitcher.js +176 -0
  107. package/dist/components/ModalIcons.js +18 -0
  108. package/dist/components/iconCatalogLoaders.g.js +170 -0
  109. package/dist/components/iconCatalogNames.g.js +4 -0
  110. package/dist/components/iconGlyphs.g.js +211 -0
  111. package/dist/components/renderIconProp.js +13 -0
  112. package/dist/components/toast.js +41 -0
  113. package/dist/components/toastStore.js +78 -0
  114. package/dist/components/useWuiControl.js +106 -0
  115. package/dist/components/warnInvalidValue.js +17 -0
  116. package/dist/components/warnUnknownProps.js +17 -0
  117. package/dist/components/withTooltip.js +12 -0
  118. package/dist/lib/CheckField.js +37 -0
  119. package/dist/lib/FileItemRow.js +44 -0
  120. package/dist/lib/emptyValue.js +6 -0
  121. package/dist/lib/fileItem.js +27 -0
  122. package/dist/lib/focusField.js +14 -0
  123. package/dist/lib/listQuery.js +57 -0
  124. package/dist/lib/navMatch.js +29 -0
  125. package/dist/lib/pageWindow.js +14 -0
  126. package/dist/lib/qrCode.js +577 -0
  127. package/dist/lib/shellCookie.js +16 -0
  128. package/dist/lib/useCommandPaletteShortcut.js +15 -0
  129. package/dist/lib/useFloatingStack.js +25 -0
  130. package/dist/lib/useListQuery.js +120 -0
  131. package/dist/lib/usePagination.js +29 -0
  132. package/dist/lib/useTableView.js +42 -0
  133. package/dist/types/components/AppAutocomplete.d.ts +1 -1
  134. package/dist/types/components/AppAvatarPicker.d.ts +55 -0
  135. package/dist/types/components/AppCommandPalette.d.ts +1 -1
  136. package/dist/types/components/AppConsentBanner.d.ts +1 -1
  137. package/dist/types/components/AppContextMenu.d.ts +1 -1
  138. package/dist/types/components/AppCountrySelect.d.ts +1 -1
  139. package/dist/types/components/AppDatePicker.d.ts +1 -1
  140. package/dist/types/components/AppDateRangePicker.d.ts +1 -1
  141. package/dist/types/components/AppFloatingDock.d.ts +1 -1
  142. package/dist/types/components/AppKanban.d.ts +7 -2
  143. package/dist/types/components/AppLogoPicker.d.ts +1 -0
  144. package/dist/types/components/AppMultiSelect.d.ts +1 -1
  145. package/dist/types/components/AppOtpInput.d.ts +1 -1
  146. package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
  147. package/dist/types/components/AppSelect.d.ts +1 -1
  148. package/dist/types/components/AppSelectMini.d.ts +1 -1
  149. package/dist/types/components/AppSlider.d.ts +1 -1
  150. package/dist/types/components/AppSortableList.d.ts +1 -1
  151. package/dist/types/components/AppTagInput.d.ts +1 -1
  152. package/dist/types/components/AppThemeToggle.d.ts +9 -6
  153. package/dist/types/components/AppTimePicker.d.ts +1 -1
  154. package/dist/types/components/AppTour.d.ts +1 -1
  155. package/dist/types/components/AppTreeView.d.ts +1 -1
  156. package/dist/types/components/AppWizard.d.ts +1 -1
  157. package/dist/types/components/ModalIcons.d.ts +1 -1
  158. package/dist/types/index.d.ts +3 -1
  159. package/dist/ui-react.js +117 -9525
  160. package/package.json +3 -3
  161. /package/dist/{a.g-Cp8GEdyM.js → components/iconCatalogFull/bold/a.g.js} +0 -0
  162. /package/dist/{b.g-bKDfj9c5.js → components/iconCatalogFull/bold/b.g.js} +0 -0
  163. /package/dist/{c.g-DqGwABja.js → components/iconCatalogFull/bold/c.g.js} +0 -0
  164. /package/dist/{d.g-CipOBRsw.js → components/iconCatalogFull/bold/d.g.js} +0 -0
  165. /package/dist/{e.g-ChGIrYgq.js → components/iconCatalogFull/bold/e.g.js} +0 -0
  166. /package/dist/{f.g-DmHdWgNZ.js → components/iconCatalogFull/bold/f.g.js} +0 -0
  167. /package/dist/{g.g--ThCZYIr.js → components/iconCatalogFull/bold/g.g.js} +0 -0
  168. /package/dist/{h.g-Ci-Er6CR.js → components/iconCatalogFull/bold/h.g.js} +0 -0
  169. /package/dist/{i.g-DZQ65QIT.js → components/iconCatalogFull/bold/i.g.js} +0 -0
  170. /package/dist/{j.g-aomxS6QS.js → components/iconCatalogFull/bold/j.g.js} +0 -0
  171. /package/dist/{k.g-Bb2wQ2Ms.js → components/iconCatalogFull/bold/k.g.js} +0 -0
  172. /package/dist/{l.g-DZ1zMM1w.js → components/iconCatalogFull/bold/l.g.js} +0 -0
  173. /package/dist/{m.g-DFbdZm5W.js → components/iconCatalogFull/bold/m.g.js} +0 -0
  174. /package/dist/{n.g-UvurkmXk.js → components/iconCatalogFull/bold/n.g.js} +0 -0
  175. /package/dist/{o.g-D5Y5oCQH.js → components/iconCatalogFull/bold/o.g.js} +0 -0
  176. /package/dist/{p.g-CXg3EaEZ.js → components/iconCatalogFull/bold/p.g.js} +0 -0
  177. /package/dist/{q.g-Cy7tXvtO.js → components/iconCatalogFull/bold/q.g.js} +0 -0
  178. /package/dist/{r.g-C8yWsdze.js → components/iconCatalogFull/bold/r.g.js} +0 -0
  179. /package/dist/{s.g-Duv4gf-_.js → components/iconCatalogFull/bold/s.g.js} +0 -0
  180. /package/dist/{t.g-C4d7xUwA.js → components/iconCatalogFull/bold/t.g.js} +0 -0
  181. /package/dist/{u.g-D96_3gsv.js → components/iconCatalogFull/bold/u.g.js} +0 -0
  182. /package/dist/{v.g-taJ1oC9Z.js → components/iconCatalogFull/bold/v.g.js} +0 -0
  183. /package/dist/{w.g-DnmMiN_H.js → components/iconCatalogFull/bold/w.g.js} +0 -0
  184. /package/dist/{x.g-DWUT_reV.js → components/iconCatalogFull/bold/x.g.js} +0 -0
  185. /package/dist/{z.g-Bmt20-ur.js → components/iconCatalogFull/bold/z.g.js} +0 -0
  186. /package/dist/{a.g-B1BBAE2l.js → components/iconCatalogFull/broken/a.g.js} +0 -0
  187. /package/dist/{b.g-B162ikjP.js → components/iconCatalogFull/broken/b.g.js} +0 -0
  188. /package/dist/{c.g-DiBD244Y.js → components/iconCatalogFull/broken/c.g.js} +0 -0
  189. /package/dist/{d.g-Cs9TrwFl.js → components/iconCatalogFull/broken/d.g.js} +0 -0
  190. /package/dist/{e.g-Ce9W1eMC.js → components/iconCatalogFull/broken/e.g.js} +0 -0
  191. /package/dist/{f.g-YGFA9XSP.js → components/iconCatalogFull/broken/f.g.js} +0 -0
  192. /package/dist/{g.g-CztV9P0x.js → components/iconCatalogFull/broken/g.g.js} +0 -0
  193. /package/dist/{h.g-CzRUdkfn.js → components/iconCatalogFull/broken/h.g.js} +0 -0
  194. /package/dist/{i.g-iI15Wiv2.js → components/iconCatalogFull/broken/i.g.js} +0 -0
  195. /package/dist/{j.g-CTjAiDOh.js → components/iconCatalogFull/broken/j.g.js} +0 -0
  196. /package/dist/{k.g-CifZIVeO.js → components/iconCatalogFull/broken/k.g.js} +0 -0
  197. /package/dist/{l.g-BMDbVi8H.js → components/iconCatalogFull/broken/l.g.js} +0 -0
  198. /package/dist/{m.g-Dcv_pEO4.js → components/iconCatalogFull/broken/m.g.js} +0 -0
  199. /package/dist/{n.g-DG8THBSN.js → components/iconCatalogFull/broken/n.g.js} +0 -0
  200. /package/dist/{o.g-BmDWTFR9.js → components/iconCatalogFull/broken/o.g.js} +0 -0
  201. /package/dist/{p.g-DBbjzvfV.js → components/iconCatalogFull/broken/p.g.js} +0 -0
  202. /package/dist/{q.g-CtDV62pA.js → components/iconCatalogFull/broken/q.g.js} +0 -0
  203. /package/dist/{r.g-Dus-zLxh.js → components/iconCatalogFull/broken/r.g.js} +0 -0
  204. /package/dist/{s.g-Ccoxarre.js → components/iconCatalogFull/broken/s.g.js} +0 -0
  205. /package/dist/{t.g-Dhkar577.js → components/iconCatalogFull/broken/t.g.js} +0 -0
  206. /package/dist/{u.g-C6mC8OrR.js → components/iconCatalogFull/broken/u.g.js} +0 -0
  207. /package/dist/{v.g-Ccd_-2QB.js → components/iconCatalogFull/broken/v.g.js} +0 -0
  208. /package/dist/{w.g-DN5a2C4A.js → components/iconCatalogFull/broken/w.g.js} +0 -0
  209. /package/dist/{x.g-6q1-4uTL.js → components/iconCatalogFull/broken/x.g.js} +0 -0
  210. /package/dist/{z.g-z49BBBLF.js → components/iconCatalogFull/broken/z.g.js} +0 -0
  211. /package/dist/{a.g-5LWyM-GC.js → components/iconCatalogFull/bulk/a.g.js} +0 -0
  212. /package/dist/{b.g-Bu-DvCAC.js → components/iconCatalogFull/bulk/b.g.js} +0 -0
  213. /package/dist/{c.g-DL8VdtRB.js → components/iconCatalogFull/bulk/c.g.js} +0 -0
  214. /package/dist/{d.g-Dp8Eazt1.js → components/iconCatalogFull/bulk/d.g.js} +0 -0
  215. /package/dist/{e.g-DxMDwDJJ.js → components/iconCatalogFull/bulk/e.g.js} +0 -0
  216. /package/dist/{f.g-D2SOwc4J.js → components/iconCatalogFull/bulk/f.g.js} +0 -0
  217. /package/dist/{g.g-gPtoLmT2.js → components/iconCatalogFull/bulk/g.g.js} +0 -0
  218. /package/dist/{h.g-ezEFj2YC.js → components/iconCatalogFull/bulk/h.g.js} +0 -0
  219. /package/dist/{i.g-DMM4-xE0.js → components/iconCatalogFull/bulk/i.g.js} +0 -0
  220. /package/dist/{j.g-BPszpMm1.js → components/iconCatalogFull/bulk/j.g.js} +0 -0
  221. /package/dist/{k.g-BeMlVIgm.js → components/iconCatalogFull/bulk/k.g.js} +0 -0
  222. /package/dist/{l.g-C_pTRDDL.js → components/iconCatalogFull/bulk/l.g.js} +0 -0
  223. /package/dist/{m.g-CytECcy1.js → components/iconCatalogFull/bulk/m.g.js} +0 -0
  224. /package/dist/{n.g-BDt_DYat.js → components/iconCatalogFull/bulk/n.g.js} +0 -0
  225. /package/dist/{o.g-DSyIOA1B.js → components/iconCatalogFull/bulk/o.g.js} +0 -0
  226. /package/dist/{p.g-D5tA2vwU.js → components/iconCatalogFull/bulk/p.g.js} +0 -0
  227. /package/dist/{q.g-1Lw4aFTv.js → components/iconCatalogFull/bulk/q.g.js} +0 -0
  228. /package/dist/{r.g-C5gZi2H7.js → components/iconCatalogFull/bulk/r.g.js} +0 -0
  229. /package/dist/{s.g-D41EhCR8.js → components/iconCatalogFull/bulk/s.g.js} +0 -0
  230. /package/dist/{t.g-Bxhb2WIA.js → components/iconCatalogFull/bulk/t.g.js} +0 -0
  231. /package/dist/{u.g-D7I_vPrG.js → components/iconCatalogFull/bulk/u.g.js} +0 -0
  232. /package/dist/{v.g-CF_fpvOP.js → components/iconCatalogFull/bulk/v.g.js} +0 -0
  233. /package/dist/{w.g-7MAxYD_f.js → components/iconCatalogFull/bulk/w.g.js} +0 -0
  234. /package/dist/{x.g-DUo4WukH.js → components/iconCatalogFull/bulk/x.g.js} +0 -0
  235. /package/dist/{z.g-CIYyNruu.js → components/iconCatalogFull/bulk/z.g.js} +0 -0
  236. /package/dist/{a.g-CKE-UVlB.js → components/iconCatalogFull/linear/a.g.js} +0 -0
  237. /package/dist/{b.g-Dkq-W_Lw.js → components/iconCatalogFull/linear/b.g.js} +0 -0
  238. /package/dist/{c.g-b4cy8Ev3.js → components/iconCatalogFull/linear/c.g.js} +0 -0
  239. /package/dist/{d.g-C3NmjrFi.js → components/iconCatalogFull/linear/d.g.js} +0 -0
  240. /package/dist/{e.g-DNY2Uh45.js → components/iconCatalogFull/linear/e.g.js} +0 -0
  241. /package/dist/{f.g-_qCUZhKl.js → components/iconCatalogFull/linear/f.g.js} +0 -0
  242. /package/dist/{g.g-DiC2yVQt.js → components/iconCatalogFull/linear/g.g.js} +0 -0
  243. /package/dist/{h.g-C0eQ0GQE.js → components/iconCatalogFull/linear/h.g.js} +0 -0
  244. /package/dist/{i.g-V-F-OHrS.js → components/iconCatalogFull/linear/i.g.js} +0 -0
  245. /package/dist/{j.g-BvuipVWw.js → components/iconCatalogFull/linear/j.g.js} +0 -0
  246. /package/dist/{k.g-Bq4FcDK3.js → components/iconCatalogFull/linear/k.g.js} +0 -0
  247. /package/dist/{l.g-DA6nIw_z.js → components/iconCatalogFull/linear/l.g.js} +0 -0
  248. /package/dist/{m.g-Cj4NTa9B.js → components/iconCatalogFull/linear/m.g.js} +0 -0
  249. /package/dist/{n.g-DhZ0Lcm6.js → components/iconCatalogFull/linear/n.g.js} +0 -0
  250. /package/dist/{o.g-C5BY8UNh.js → components/iconCatalogFull/linear/o.g.js} +0 -0
  251. /package/dist/{p.g-CXYzEsVb.js → components/iconCatalogFull/linear/p.g.js} +0 -0
  252. /package/dist/{q.g-Bg-QqUEk.js → components/iconCatalogFull/linear/q.g.js} +0 -0
  253. /package/dist/{r.g-BSSEI7vV.js → components/iconCatalogFull/linear/r.g.js} +0 -0
  254. /package/dist/{s.g-5lIn93sd.js → components/iconCatalogFull/linear/s.g.js} +0 -0
  255. /package/dist/{t.g-C9DMEGtG.js → components/iconCatalogFull/linear/t.g.js} +0 -0
  256. /package/dist/{u.g-ia-nNvjK.js → components/iconCatalogFull/linear/u.g.js} +0 -0
  257. /package/dist/{v.g-IFr8O1YA.js → components/iconCatalogFull/linear/v.g.js} +0 -0
  258. /package/dist/{w.g-BrAIH76H.js → components/iconCatalogFull/linear/w.g.js} +0 -0
  259. /package/dist/{x.g-CIuI3Fqx.js → components/iconCatalogFull/linear/x.g.js} +0 -0
  260. /package/dist/{z.g-BUP3BJiy.js → components/iconCatalogFull/linear/z.g.js} +0 -0
  261. /package/dist/{a.g-KjYETv0g.js → components/iconCatalogFull/outline/a.g.js} +0 -0
  262. /package/dist/{b.g-MJlor3xB.js → components/iconCatalogFull/outline/b.g.js} +0 -0
  263. /package/dist/{c.g-PBMUuqTQ.js → components/iconCatalogFull/outline/c.g.js} +0 -0
  264. /package/dist/{d.g-DVdiUnBR.js → components/iconCatalogFull/outline/d.g.js} +0 -0
  265. /package/dist/{e.g-2mocZT4k.js → components/iconCatalogFull/outline/e.g.js} +0 -0
  266. /package/dist/{f.g-CIsVyKpG.js → components/iconCatalogFull/outline/f.g.js} +0 -0
  267. /package/dist/{g.g-CJ1Yjs6-.js → components/iconCatalogFull/outline/g.g.js} +0 -0
  268. /package/dist/{h.g-CgHsGdLb.js → components/iconCatalogFull/outline/h.g.js} +0 -0
  269. /package/dist/{i.g-Ba9q7vMi.js → components/iconCatalogFull/outline/i.g.js} +0 -0
  270. /package/dist/{j.g-AT7T_7fn.js → components/iconCatalogFull/outline/j.g.js} +0 -0
  271. /package/dist/{k.g-BJ0rj5XB.js → components/iconCatalogFull/outline/k.g.js} +0 -0
  272. /package/dist/{l.g-B_bLp8m2.js → components/iconCatalogFull/outline/l.g.js} +0 -0
  273. /package/dist/{m.g-Dgj5H5KY.js → components/iconCatalogFull/outline/m.g.js} +0 -0
  274. /package/dist/{n.g-CM9J_tyR.js → components/iconCatalogFull/outline/n.g.js} +0 -0
  275. /package/dist/{o.g-B9NPVFUv.js → components/iconCatalogFull/outline/o.g.js} +0 -0
  276. /package/dist/{p.g-Dt5NMAPz.js → components/iconCatalogFull/outline/p.g.js} +0 -0
  277. /package/dist/{q.g-C4dBmUaO.js → components/iconCatalogFull/outline/q.g.js} +0 -0
  278. /package/dist/{r.g-D1cgPNdo.js → components/iconCatalogFull/outline/r.g.js} +0 -0
  279. /package/dist/{s.g-CikU_E1r.js → components/iconCatalogFull/outline/s.g.js} +0 -0
  280. /package/dist/{t.g-Cvg4dLth.js → components/iconCatalogFull/outline/t.g.js} +0 -0
  281. /package/dist/{u.g-DihXFOEv.js → components/iconCatalogFull/outline/u.g.js} +0 -0
  282. /package/dist/{v.g-Yt58dVke.js → components/iconCatalogFull/outline/v.g.js} +0 -0
  283. /package/dist/{w.g-DgdwQxer.js → components/iconCatalogFull/outline/w.g.js} +0 -0
  284. /package/dist/{x.g-B-WlL4DI.js → components/iconCatalogFull/outline/x.g.js} +0 -0
  285. /package/dist/{z.g-CSusgZor.js → components/iconCatalogFull/outline/z.g.js} +0 -0
  286. /package/dist/{a.g-D1PdkV5E.js → components/iconCatalogFull/twotone/a.g.js} +0 -0
  287. /package/dist/{b.g-F1eKfRpo.js → components/iconCatalogFull/twotone/b.g.js} +0 -0
  288. /package/dist/{c.g-DKzspN6u.js → components/iconCatalogFull/twotone/c.g.js} +0 -0
  289. /package/dist/{d.g-C8KPpY8s.js → components/iconCatalogFull/twotone/d.g.js} +0 -0
  290. /package/dist/{e.g-B1bvEARe.js → components/iconCatalogFull/twotone/e.g.js} +0 -0
  291. /package/dist/{f.g-DEKavmMH.js → components/iconCatalogFull/twotone/f.g.js} +0 -0
  292. /package/dist/{g.g-B1u2EvQZ.js → components/iconCatalogFull/twotone/g.g.js} +0 -0
  293. /package/dist/{h.g-Dxw84X7K.js → components/iconCatalogFull/twotone/h.g.js} +0 -0
  294. /package/dist/{i.g-BNxSASLW.js → components/iconCatalogFull/twotone/i.g.js} +0 -0
  295. /package/dist/{j.g-BBP7_cik.js → components/iconCatalogFull/twotone/j.g.js} +0 -0
  296. /package/dist/{k.g-DSSazL_b.js → components/iconCatalogFull/twotone/k.g.js} +0 -0
  297. /package/dist/{l.g-eEit84D7.js → components/iconCatalogFull/twotone/l.g.js} +0 -0
  298. /package/dist/{m.g-DDIUTIAb.js → components/iconCatalogFull/twotone/m.g.js} +0 -0
  299. /package/dist/{n.g-BIYpVBEb.js → components/iconCatalogFull/twotone/n.g.js} +0 -0
  300. /package/dist/{o.g-B95BaazY.js → components/iconCatalogFull/twotone/o.g.js} +0 -0
  301. /package/dist/{p.g-HXmphCe0.js → components/iconCatalogFull/twotone/p.g.js} +0 -0
  302. /package/dist/{q.g-CPyhElA_.js → components/iconCatalogFull/twotone/q.g.js} +0 -0
  303. /package/dist/{r.g-DIEF7HkY.js → components/iconCatalogFull/twotone/r.g.js} +0 -0
  304. /package/dist/{s.g-BX2BLrIK.js → components/iconCatalogFull/twotone/s.g.js} +0 -0
  305. /package/dist/{t.g-9FQPNgd_.js → components/iconCatalogFull/twotone/t.g.js} +0 -0
  306. /package/dist/{u.g-Cl8s3gGa.js → components/iconCatalogFull/twotone/u.g.js} +0 -0
  307. /package/dist/{v.g-BxRTxjbP.js → components/iconCatalogFull/twotone/v.g.js} +0 -0
  308. /package/dist/{w.g-BRwJSEbR.js → components/iconCatalogFull/twotone/w.g.js} +0 -0
  309. /package/dist/{x.g-Cc7upOBC.js → components/iconCatalogFull/twotone/x.g.js} +0 -0
  310. /package/dist/{z.g-COIy6PjH.js → components/iconCatalogFull/twotone/z.g.js} +0 -0
  311. /package/dist/{iconVariants.g-BBn9-u3W.js → components/iconVariants.g.js} +0 -0
@@ -0,0 +1,140 @@
1
+ import e from "./warnUnknownProps.js";
2
+ import t from "./AppIcon.js";
3
+ import { keyOf as n, nameOf as r, sizeLabelOf as i, useItemUrl as a } from "../lib/fileItem.js";
4
+ import o from "../lib/FileItemRow.js";
5
+ import { DEFAULT_IMAGE_ACCEPT as s, DEFAULT_MAX_SIZE_MB as c, acceptLabel as l, isImageFile as u, isImageOnlyAccept as d, validateFile as f } from "@webority/ui-elements/helpers";
6
+ import { useId as p, useState as m } from "react";
7
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
8
+ //#region src/components/AppFileAttachment.jsx
9
+ function v({ label: r = "Attachment", value: i, name: a, onChange: l, multiple: v = !1, accept: x = s, maxSizeMb: S = c, optional: C = !1, validate: w = !0, error: T, id: E, ...D }) {
10
+ e("AppFileAttachment", D);
11
+ let O = p(), k = E || O, [A, j] = m(""), M = v && Array.isArray(i) ? i : i ? [i] : [], N = d(x), P = (e) => e instanceof File ? u(e) : N || u(e), F = !v && M.length === 1 && P(M[0]), I = y(x, S);
12
+ function L(e) {
13
+ let t = Array.from(e.target.files || []);
14
+ if (e.target.value = "", !t.length) return;
15
+ let r = [], a = "";
16
+ for (let e of t) {
17
+ let t = w ? f(e, {
18
+ accept: x,
19
+ maxSizeMb: S
20
+ }) : null;
21
+ if (t) {
22
+ a ||= t;
23
+ continue;
24
+ }
25
+ r.push(e);
26
+ }
27
+ if (j(a), r.length) if (v) {
28
+ let e = Array.isArray(i) ? i : i ? [i] : [], t = new Set(e.map(n));
29
+ l(e.concat(r.filter((e) => !t.has(n(e)))));
30
+ } else l(r[0]);
31
+ }
32
+ function R(e) {
33
+ j(""), l(v ? M.filter((t, n) => n !== e) : null);
34
+ }
35
+ let z = T || A, B = z ? `${k}-error` : void 0, V = v || M.length === 0, H = N ? "image" : "file", U = v ? `Add ${H}s` : `Add ${N ? "an" : "a"} ${H}`;
36
+ return /* @__PURE__ */ _("div", {
37
+ className: "field",
38
+ children: [
39
+ /* @__PURE__ */ _("label", {
40
+ className: "label",
41
+ htmlFor: k,
42
+ children: [r, C && /* @__PURE__ */ g("span", {
43
+ className: "label-optional",
44
+ children: " (optional)"
45
+ })]
46
+ }),
47
+ V && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("label", {
48
+ className: "attach-drop",
49
+ htmlFor: k,
50
+ children: [
51
+ /* @__PURE__ */ g("span", {
52
+ className: "attach-drop-icon",
53
+ children: /* @__PURE__ */ g(t, {
54
+ name: N ? "image" : "file-text",
55
+ size: 18
56
+ })
57
+ }),
58
+ /* @__PURE__ */ _("span", {
59
+ className: "attach-drop-copy",
60
+ children: [/* @__PURE__ */ g("span", {
61
+ className: "attach-drop-title",
62
+ children: U
63
+ }), I && /* @__PURE__ */ g("span", {
64
+ className: "attach-drop-hint",
65
+ children: I
66
+ })]
67
+ }),
68
+ /* @__PURE__ */ g("span", {
69
+ className: "attach-drop-cta",
70
+ children: "Browse"
71
+ })
72
+ ]
73
+ }), /* @__PURE__ */ g("input", {
74
+ id: k,
75
+ type: "file",
76
+ className: "visually-hidden",
77
+ name: a,
78
+ accept: x || void 0,
79
+ multiple: v || void 0,
80
+ "aria-describedby": B,
81
+ onChange: L,
82
+ ...D
83
+ })] }),
84
+ F ? /* @__PURE__ */ g(b, {
85
+ item: M[0],
86
+ isImage: !0,
87
+ onRemove: () => R(0)
88
+ }) : M.length > 0 && /* @__PURE__ */ g("div", {
89
+ className: "attach-list",
90
+ children: M.map((e, t) => /* @__PURE__ */ g(o, {
91
+ item: e,
92
+ isImage: P(e),
93
+ onRemove: () => R(t)
94
+ }, n(e)))
95
+ }),
96
+ z && /* @__PURE__ */ g("div", {
97
+ className: "field-error",
98
+ id: `${k}-error`,
99
+ children: z
100
+ })
101
+ ]
102
+ });
103
+ }
104
+ function y(e, t) {
105
+ let n = e?.trim() ? l(e) : "", r = t > 0 ? `up to ${t} MB` : "";
106
+ return n && r ? `${n}, ${r}` : r ? `Up to ${t} MB` : n;
107
+ }
108
+ function b({ item: e, isImage: n, onRemove: o }) {
109
+ let s = a(e, n), c = r(e), l = i(e);
110
+ return /* @__PURE__ */ _("div", {
111
+ className: "attach-preview",
112
+ children: [/* @__PURE__ */ _("div", {
113
+ className: "attach-figure",
114
+ children: [/* @__PURE__ */ g("img", {
115
+ src: s,
116
+ alt: c
117
+ }), /* @__PURE__ */ g("button", {
118
+ type: "button",
119
+ className: "attach-remove",
120
+ "aria-label": "Remove attachment",
121
+ onClick: o,
122
+ children: /* @__PURE__ */ g(t, {
123
+ name: "x",
124
+ size: 18
125
+ })
126
+ })]
127
+ }), /* @__PURE__ */ _("div", {
128
+ className: "attach-meta",
129
+ children: [/* @__PURE__ */ g("div", {
130
+ className: "attach-name",
131
+ children: c
132
+ }), l && /* @__PURE__ */ g("div", {
133
+ className: "attach-size",
134
+ children: l
135
+ })]
136
+ })]
137
+ });
138
+ }
139
+ //#endregion
140
+ export { v as default };
@@ -0,0 +1,220 @@
1
+ import e from "./warnUnknownProps.js";
2
+ import t from "./withTooltip.js";
3
+ import n from "./AppIcon.js";
4
+ import r from "./AppRequiredMark.js";
5
+ import { keyOf as i } from "../lib/fileItem.js";
6
+ import a from "../lib/FileItemRow.js";
7
+ import { DEFAULT_MAX_SIZE_MB as o, acceptLabel as s, isImageFile as c, isImageOnlyAccept as ee, isPdfFile as l, validateFile as u } from "@webority/ui-elements/helpers";
8
+ import { useEffect as d, useId as te, useRef as f, useState as p } from "react";
9
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
10
+ //#region src/components/AppFilePicker.jsx
11
+ function g({ label: g, value: _, name: ne, id: re, onPick: v, multiple: y = !1, maxFiles: b, accept: x = ".jpg,.jpeg,.png", maxSizeMb: S = o, required: ie, error: ae, hint: C, loading: w = !1, className: T = "", fieldClassName: E = "", style: D, ...O }) {
12
+ e("AppFilePicker", O);
13
+ let [oe, k] = p(null), [se, A] = p(null), [j, M] = p(!1), [N, P] = p(""), F = f(null), ce = te(), I = re || ce;
14
+ d(() => {
15
+ if (!y && _ instanceof File && c(_)) {
16
+ let e = URL.createObjectURL(_);
17
+ return k(e), () => URL.revokeObjectURL(e);
18
+ }
19
+ k(null);
20
+ }, [_, y]);
21
+ let L = !y && _ && !c(_) && l(_) ? _ instanceof File ? _ : _.url : null;
22
+ d(() => {
23
+ if (!L) {
24
+ A(null);
25
+ return;
26
+ }
27
+ let e = !0, t = null;
28
+ return import("@webority/ui-elements/file-viewer").then((e) => e.renderPdfFirstPage(typeof L == "string" ? { url: L } : L)).then((n) => {
29
+ e && (t = URL.createObjectURL(n), A(t));
30
+ }).catch((e) => console.warn("[AppFilePicker] the PDF preview failed:", e?.message)), () => {
31
+ e = !1, A(null), t && URL.revokeObjectURL(t);
32
+ };
33
+ }, [L]);
34
+ let R = y ? Array.isArray(_) ? _ : _ ? [_] : [] : [], z = ae || N, B = z ? `${I}-error` : void 0, V = C && !z ? `${I}-hint` : void 0, H = B || V, U = ee(x), W = !y && !!_, G = W && (_ instanceof File ? c(_) : U || c(_)), le = _?.name, K = G ? _?.url || oe : se, q = G ? "image" : "file", ue = g ? `Change ${g}` : `Change ${q}`, J = g ? `Remove ${g}` : `Remove ${q}`, Y = g ? `${g} preview` : `Selected ${q} preview`, X = (e) => {
35
+ let t = u(e, {
36
+ accept: x,
37
+ maxSizeMb: S
38
+ });
39
+ return t ? (P(t), !1) : (P(""), v(e), !0);
40
+ }, Z = (e) => {
41
+ let t = Array.from(e || []);
42
+ if (!t.length) return;
43
+ let n = Array.isArray(_) ? _ : _ ? [_] : [], r = new Set(n.map(i)), a = "", o = [];
44
+ for (let e of t) {
45
+ let t = u(e, {
46
+ accept: x,
47
+ maxSizeMb: S
48
+ });
49
+ if (t) {
50
+ a ||= t;
51
+ continue;
52
+ }
53
+ r.has(i(e)) || (r.add(i(e)), o.push(e));
54
+ }
55
+ let s = n.concat(o);
56
+ b && s.length > b && (s = s.slice(0, b), a ||= `Up to ${b} files.`), P(a), v(s);
57
+ }, de = (e) => {
58
+ if (y) {
59
+ Z(e.target.files);
60
+ return;
61
+ }
62
+ let t = e.target.files?.[0] || null;
63
+ t && (X(t) || (e.target.value = ""));
64
+ }, fe = (e) => {
65
+ if (e.preventDefault(), M(!1), w) return;
66
+ if (y) {
67
+ Z(e.dataTransfer.files);
68
+ return;
69
+ }
70
+ let t = e.dataTransfer.files?.[0];
71
+ t && X(t);
72
+ }, pe = (e) => {
73
+ P(""), v(R.filter((t, n) => n !== e));
74
+ }, me = () => F.current?.click(), Q = w ? /* @__PURE__ */ m("span", {
75
+ className: "wui-file-busy",
76
+ children: /* @__PURE__ */ m("span", {
77
+ className: "spinner-border spinner-border-sm",
78
+ role: "status",
79
+ "aria-label": "Loading"
80
+ })
81
+ }) : null, $ = /* @__PURE__ */ m("input", {
82
+ id: I,
83
+ name: ne,
84
+ ref: F,
85
+ type: "file",
86
+ "aria-describedby": H,
87
+ accept: x,
88
+ multiple: y || void 0,
89
+ disabled: w || void 0,
90
+ className: "visually-hidden",
91
+ onClick: (e) => {
92
+ e.currentTarget.value = "";
93
+ },
94
+ onChange: de,
95
+ ...O
96
+ });
97
+ return /* @__PURE__ */ h("div", {
98
+ className: `field${E ? ` ${E}` : ""}`,
99
+ children: [
100
+ /* @__PURE__ */ h("label", {
101
+ className: "label",
102
+ htmlFor: I,
103
+ children: [g, ie && /* @__PURE__ */ m(r, {})]
104
+ }),
105
+ W ? /* @__PURE__ */ h("div", {
106
+ className: `file-preview${z ? " error" : ""}${T ? ` ${T}` : ""}`,
107
+ style: D,
108
+ "aria-busy": w || void 0,
109
+ children: [
110
+ /* @__PURE__ */ h("button", {
111
+ type: "button",
112
+ className: "file-preview-open",
113
+ "aria-label": ue,
114
+ onClick: me,
115
+ disabled: w,
116
+ children: [K ? /* @__PURE__ */ m("img", {
117
+ src: K,
118
+ alt: Y,
119
+ className: "file-preview-img"
120
+ }) : /* @__PURE__ */ h("span", {
121
+ className: "file-preview-file",
122
+ children: [/* @__PURE__ */ m(n, {
123
+ name: "file-text",
124
+ size: 28
125
+ }), /* @__PURE__ */ m("span", {
126
+ className: "file-preview-file-name",
127
+ children: le
128
+ })]
129
+ }), /* @__PURE__ */ m("span", {
130
+ className: "file-preview-overlay",
131
+ children: /* @__PURE__ */ h("span", {
132
+ className: "file-preview-cta",
133
+ children: [
134
+ /* @__PURE__ */ m(n, {
135
+ name: G ? "image" : "file-text",
136
+ size: 16
137
+ }),
138
+ " ",
139
+ G ? "Change image" : "Change file"
140
+ ]
141
+ })
142
+ })]
143
+ }),
144
+ t(/* @__PURE__ */ m("button", {
145
+ type: "button",
146
+ className: "file-preview-remove",
147
+ "aria-label": J,
148
+ onClick: () => v(null),
149
+ disabled: w,
150
+ children: /* @__PURE__ */ m(n, {
151
+ name: "x",
152
+ size: 16
153
+ })
154
+ }), J),
155
+ $,
156
+ Q
157
+ ]
158
+ }) : /* @__PURE__ */ h("div", {
159
+ className: `file-input file-input-tall${j ? " dragging" : ""}${z ? " error" : ""}${y && R.length > 0 ? " has-files" : ""}${T ? ` ${T}` : ""}`,
160
+ style: D,
161
+ "aria-busy": w || void 0,
162
+ onDragOver: (e) => {
163
+ e.preventDefault(), !w && !j && M(!0);
164
+ },
165
+ onDragLeave: (e) => {
166
+ e.preventDefault(), M(!1);
167
+ },
168
+ onDrop: fe,
169
+ children: [
170
+ /* @__PURE__ */ h("label", {
171
+ htmlFor: I,
172
+ className: "file-input-zone-label",
173
+ children: [
174
+ /* @__PURE__ */ m("span", {
175
+ className: "file-input-icon",
176
+ children: /* @__PURE__ */ m(n, {
177
+ name: "upload",
178
+ size: 24
179
+ })
180
+ }),
181
+ /* @__PURE__ */ h("span", {
182
+ className: "file-input-title",
183
+ children: [/* @__PURE__ */ m("span", {
184
+ className: "browse",
185
+ children: "Click to upload"
186
+ }), " or drag & drop"]
187
+ }),
188
+ /* @__PURE__ */ m("span", {
189
+ className: "file-input-text",
190
+ children: S > 0 ? `${s(x)} · up to ${S} MB` : s(x)
191
+ })
192
+ ]
193
+ }),
194
+ $,
195
+ Q,
196
+ y && R.length > 0 && /* @__PURE__ */ m("div", {
197
+ className: "attach-list",
198
+ children: R.map((e, t) => /* @__PURE__ */ m(a, {
199
+ item: e,
200
+ isImage: e instanceof File ? c(e) : U || c(e),
201
+ noun: "file",
202
+ onRemove: () => pe(t)
203
+ }, i(e)))
204
+ })
205
+ ]
206
+ }),
207
+ z ? /* @__PURE__ */ m("div", {
208
+ className: "field-error",
209
+ id: B,
210
+ children: z
211
+ }) : C ? /* @__PURE__ */ m("div", {
212
+ className: "field-hint",
213
+ id: V,
214
+ children: C
215
+ }) : null
216
+ ]
217
+ });
218
+ }
219
+ //#endregion
220
+ export { g as default };
@@ -0,0 +1,50 @@
1
+ import e from "./warnUnknownProps.js";
2
+ import { forwardRef as t, useCallback as n, useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
3
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { createPortal as u } from "react-dom";
5
+ //#region src/components/AppFileViewer.jsx
6
+ var d = "wui-file-viewer:load", f = "wui-file-viewer:error", p = "wui-file-viewer:prefs-change", m = t(function({ src: t, name: m, type: h, prefs: g, onPrefsChange: _, viewKey: v, download: y = !1, workerSrc: b, assetBase: x, captions: S, actions: C, onLoad: w, onError: T, className: E = "", style: D, ...O }, k) {
7
+ e("AppFileViewer", O);
8
+ let A = a(null), j = a(w), M = a(T), N = a(_), [P, F] = o(null), I = n((e) => {
9
+ A.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
10
+ }, [k]);
11
+ return i(() => {
12
+ g !== void 0 && (A.current.prefs = g);
13
+ }, [g]), r(() => {
14
+ j.current = w, M.current = T, N.current = _;
15
+ }), r(() => {
16
+ let e = A.current, t = (e) => j.current?.(e.detail), n = (e) => M.current?.(e.detail), r = (e) => N.current?.(e.detail);
17
+ return e.addEventListener(d, t), e.addEventListener(f, n), e.addEventListener(p, r), () => {
18
+ e.removeEventListener(d, t), e.removeEventListener(f, n), e.removeEventListener(p, r);
19
+ };
20
+ }, []), r(() => {
21
+ let e = !0;
22
+ return import("@webority/ui-elements/file-viewer").then(() => {
23
+ let t = A.current;
24
+ e && t?.isConnected && F(t.actionsContainer);
25
+ }).catch((t) => {
26
+ console.warn("[AppFileViewer] the viewer failed to load:", t?.message), e && M.current?.({ message: t?.message ?? String(t) });
27
+ }), () => {
28
+ e = !1;
29
+ };
30
+ }, []), /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("wui-file-viewer", {
31
+ ref: I,
32
+ src: t,
33
+ name: m || void 0,
34
+ type: h || void 0,
35
+ "view-key": v || void 0,
36
+ download: y ? "" : void 0,
37
+ "worker-src": b || void 0,
38
+ "asset-base": x || void 0,
39
+ captions: S || void 0,
40
+ className: E || void 0,
41
+ style: D,
42
+ ...O
43
+ }), P && C != null && u(/* @__PURE__ */ c("div", {
44
+ slot: "actions",
45
+ className: "wui-file-viewer-slot",
46
+ children: C
47
+ }), P)] });
48
+ });
49
+ //#endregion
50
+ export { m as default };
@@ -0,0 +1,129 @@
1
+ import e from "./warnInvalidValue.js";
2
+ import t from "./warnUnknownProps.js";
3
+ import n from "./AppButton.js";
4
+ import r from "./AppSegmented.js";
5
+ import i from "./AppChip.js";
6
+ import a from "./AppDateRangePicker.js";
7
+ import { emptyFacetValue as o, isFacetActive as s } from "../lib/listQuery.js";
8
+ import c from "./AppMultiSelect.js";
9
+ import l from "./AppSearch.js";
10
+ import u from "./AppSelect.js";
11
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
12
+ //#region src/components/AppFilterBar.jsx
13
+ var p = [
14
+ "enum",
15
+ "multiEnum",
16
+ "dateRange",
17
+ "text"
18
+ ], m = 4, h = (e) => (e.type === "enum" || e.type === "multiEnum") && !e.options?.length, g = (e, t) => e.options?.find((e) => e.value === t)?.label ?? t;
19
+ function _(e, t) {
20
+ if (!s(e, t)) return [];
21
+ if (e.type === "enum") return [{
22
+ id: e.key,
23
+ text: g(e, t),
24
+ clear: () => o(e)
25
+ }];
26
+ if (e.type === "multiEnum") return t.map((n) => ({
27
+ id: `${e.key}:${n}`,
28
+ text: g(e, n),
29
+ clear: () => t.filter((e) => e !== n)
30
+ }));
31
+ if (e.type === "dateRange") {
32
+ let n = t.from && t.to ? `${t.from} to ${t.to}` : t.from ? `From ${t.from}` : `Until ${t.to}`;
33
+ return [{
34
+ id: e.key,
35
+ text: n,
36
+ clear: () => o(e)
37
+ }];
38
+ }
39
+ return [];
40
+ }
41
+ function v({ facets: r, value: a, onChange: c, className: l = "", ...u }) {
42
+ t("AppFilterBar", u);
43
+ for (let t of r) e("AppFilterBar", "facets[].type", t.type, p);
44
+ let m = r.filter((e) => !h(e)), g = m.flatMap((e) => _(e, a[e.key]).map((t) => ({
45
+ ...t,
46
+ facet: e
47
+ }))), v = m.filter((e) => s(e, a[e.key]));
48
+ return /* @__PURE__ */ f("div", {
49
+ className: `wui-filter-bar d-flex flex-wrap align-items-center gap-2${l ? ` ${l}` : ""}`,
50
+ ...u,
51
+ children: [
52
+ m.map((e) => /* @__PURE__ */ d(y, {
53
+ facet: e,
54
+ value: a[e.key],
55
+ onChange: (t) => c(e.key, t)
56
+ }, e.key)),
57
+ g.map((e) => /* @__PURE__ */ d(i, {
58
+ size: "sm",
59
+ label: `${e.facet.label}: ${e.text}`,
60
+ removeLabel: `Remove ${e.facet.label} filter ${e.text}`,
61
+ onRemove: () => c(e.facet.key, e.clear())
62
+ }, e.id)),
63
+ v.length > 1 && /* @__PURE__ */ d(n, {
64
+ variant: "ghost",
65
+ size: "sm",
66
+ onClick: () => {
67
+ for (let e of v) c(e.key, o(e));
68
+ },
69
+ children: "Clear all"
70
+ })
71
+ ]
72
+ });
73
+ }
74
+ function y({ facet: e, value: t, onChange: n }) {
75
+ if (e.type === "enum") {
76
+ let i = e.options ?? [];
77
+ return i.length < m ? /* @__PURE__ */ d(r, {
78
+ label: e.label,
79
+ name: e.key,
80
+ size: "sm",
81
+ value: t ?? "",
82
+ onChange: n,
83
+ options: [{
84
+ value: "",
85
+ label: "All"
86
+ }, ...i]
87
+ }) : /* @__PURE__ */ d(u, {
88
+ "aria-label": e.label,
89
+ name: e.key,
90
+ placeholder: e.label,
91
+ size: "sm",
92
+ clearable: !0,
93
+ value: t ?? "",
94
+ onChange: n,
95
+ options: i
96
+ });
97
+ }
98
+ return e.type === "multiEnum" ? /* @__PURE__ */ d(c, {
99
+ "aria-label": e.label,
100
+ name: e.key,
101
+ placeholder: e.label,
102
+ size: "sm",
103
+ collapseChips: !0,
104
+ values: t ?? [],
105
+ onChange: n,
106
+ options: e.options ?? []
107
+ }) : e.type === "dateRange" ? /* @__PURE__ */ d(a, {
108
+ ariaLabel: e.label,
109
+ startName: `${e.key}From`,
110
+ endName: `${e.key}To`,
111
+ placeholder: e.label,
112
+ size: "sm",
113
+ start: t?.from ?? "",
114
+ end: t?.to ?? "",
115
+ onChange: (e) => n({
116
+ from: e.start ?? "",
117
+ to: e.end ?? ""
118
+ })
119
+ }) : /* @__PURE__ */ d(l, {
120
+ ariaLabel: e.label,
121
+ name: e.key,
122
+ placeholder: e.label,
123
+ size: "sm",
124
+ value: t ?? "",
125
+ onChange: n
126
+ });
127
+ }
128
+ //#endregion
129
+ export { v as default };
@@ -0,0 +1,47 @@
1
+ import e from "./warnUnknownProps.js";
2
+ import t from "./renderIconProp.js";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import "@webority/ui-elements/elements/dock";
5
+ //#region src/components/AppFloatingDock.jsx
6
+ function a({ items: a = [], linkComponent: o, ariaLabel: s = "Quick navigation", magnify: c = !0, maxScale: l, radius: u, className: d = "", ...f }) {
7
+ return e("AppFloatingDock", f), /* @__PURE__ */ r("wui-dock", {
8
+ role: "navigation",
9
+ "aria-label": s,
10
+ static: c ? void 0 : "",
11
+ "max-scale": l ?? void 0,
12
+ radius: u ?? void 0,
13
+ class: d || void 0,
14
+ ...f,
15
+ children: a.map((e, a) => {
16
+ let s = e.key ?? `${e.title}-${a}`, c = /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("span", {
17
+ className: "dock-item-tip",
18
+ "aria-hidden": "true",
19
+ children: e.title
20
+ }), /* @__PURE__ */ r("span", {
21
+ className: "dock-item-icon",
22
+ children: t(e.icon, { size: 18 })
23
+ })] });
24
+ if (e.to && o) return /* @__PURE__ */ r(o, {
25
+ className: "dock-item",
26
+ to: e.to,
27
+ "aria-label": e.title,
28
+ children: c
29
+ }, s);
30
+ let l = e.href ?? e.to;
31
+ return l ? /* @__PURE__ */ r("a", {
32
+ className: "dock-item",
33
+ href: l,
34
+ "aria-label": e.title,
35
+ children: c
36
+ }, s) : /* @__PURE__ */ r("button", {
37
+ type: "button",
38
+ className: "dock-item",
39
+ onClick: e.onClick,
40
+ "aria-label": e.title,
41
+ children: c
42
+ }, s);
43
+ })
44
+ });
45
+ }
46
+ //#endregion
47
+ export { a as default };
@@ -0,0 +1,23 @@
1
+ import e from "./warnInvalidValue.js";
2
+ import t from "./warnUnknownProps.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/AppFormActions.jsx
5
+ var r = [
6
+ "end",
7
+ "start",
8
+ "between"
9
+ ];
10
+ function i({ children: i, sticky: a = !1, align: o = "end", className: s = "", ...c }) {
11
+ return t("AppFormActions", c), e("AppFormActions", "align", o, r), /* @__PURE__ */ n("div", {
12
+ className: [
13
+ "form-actions",
14
+ a ? "form-actions-sticky" : "",
15
+ o && o !== "end" ? `form-actions-${o}` : "",
16
+ s
17
+ ].filter(Boolean).join(" "),
18
+ ...c,
19
+ children: i
20
+ });
21
+ }
22
+ //#endregion
23
+ export { i as default };
@@ -0,0 +1,24 @@
1
+ import e from "./warnInvalidValue.js";
2
+ import t from "./warnUnknownProps.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/AppFormRow.jsx
5
+ var r = [
6
+ 1,
7
+ 2,
8
+ 3
9
+ ];
10
+ function i({ children: i, columns: a = 2, className: o = "", ...s }) {
11
+ t("AppFormRow", s), e("AppFormRow", "columns", a, r);
12
+ let { style: c, ...l } = s;
13
+ return /* @__PURE__ */ n("div", {
14
+ className: ["form-row-grid", o].filter(Boolean).join(" "),
15
+ style: {
16
+ "--form-cols": a,
17
+ ...c
18
+ },
19
+ ...l,
20
+ children: i
21
+ });
22
+ }
23
+ //#endregion
24
+ export { i as default };
@@ -0,0 +1,32 @@
1
+ import e from "./warnInvalidValue.js";
2
+ import t from "./warnUnknownProps.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/components/AppFormSection.jsx
5
+ var i = ["stacked", "side"], a = ["top", "start"], o = ["comfortable", "compact"];
6
+ function s({ children: s, title: c, description: l, layout: u = "stacked", labels: d = "top", density: f = "comfortable", className: p = "", ...m }) {
7
+ return t("AppFormSection", m), e("AppFormSection", "layout", u, i), e("AppFormSection", "labels", d, a), e("AppFormSection", "density", f, o), /* @__PURE__ */ r("section", {
8
+ className: [
9
+ "form-section",
10
+ u === "side" ? "wui-form-side" : "",
11
+ d === "start" ? "wui-form-labels-start" : "",
12
+ f === "compact" ? "wui-form-compact" : "",
13
+ p
14
+ ].filter(Boolean).join(" "),
15
+ ...m,
16
+ children: [(c != null || l != null) && /* @__PURE__ */ r("div", {
17
+ className: "form-section-head",
18
+ children: [c != null && /* @__PURE__ */ n("h3", {
19
+ className: "form-section-title",
20
+ children: c
21
+ }), l != null && /* @__PURE__ */ n("p", {
22
+ className: "form-section-desc",
23
+ children: l
24
+ })]
25
+ }), /* @__PURE__ */ n("div", {
26
+ className: "form-section-body",
27
+ children: s
28
+ })]
29
+ });
30
+ }
31
+ //#endregion
32
+ export { s as default };