@dasidev/dasi-ui 1.0.0

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 (450) hide show
  1. package/README.md +346 -0
  2. package/bin/dasi-cli.cjs +184 -0
  3. package/dist/date-selector-test-BlukYeWl.js +91 -0
  4. package/dist/favicon.ico +0 -0
  5. package/dist/html2canvas.esm-CKxSAI8P.js +4886 -0
  6. package/dist/img/brand/ic_pln.svg +12 -0
  7. package/dist/img/brand/mapp_power_logo.svg +21 -0
  8. package/dist/img/common/pltu_ulumbu_flores_ntt.jpeg +0 -0
  9. package/dist/index-BQSA2aPs.js +126556 -0
  10. package/dist/index.es-DQWt-PZn.js +5769 -0
  11. package/dist/index.es.js +11 -0
  12. package/dist/index.umd.js +8564 -0
  13. package/dist/informasi-gudang-BmoEy2RL.js +164 -0
  14. package/dist/informasi-gudang-DXfS46Nh.js +50 -0
  15. package/dist/purify.es-C-9oolON.js +546 -0
  16. package/dist/scripts/pdf.worker.min.js +29 -0
  17. package/dist/scripts/pdf.worker.min.mjs +29 -0
  18. package/dist/scripts/pdf.worker.mjs +57722 -0
  19. package/dist/scripts/pdf.worker.mjs.map +1 -0
  20. package/dist/style.css +1 -0
  21. package/dist/test-schema-JFghGc0_.js +8 -0
  22. package/dist/test-schema-uusFsJe4.js +438 -0
  23. package/dist/types-l0sNRNKZ.js +1 -0
  24. package/package.json +178 -0
  25. package/src/App.vue +18 -0
  26. package/src/__tests__/index.test.ts +9 -0
  27. package/src/api/api.ts +117 -0
  28. package/src/assets/app-selector.svg +3 -0
  29. package/src/assets/dasi.png +0 -0
  30. package/src/assets/foto_ss.svg +21 -0
  31. package/src/assets/icons/circle-blue.svg +4 -0
  32. package/src/assets/icons/circle-gray.svg +15 -0
  33. package/src/assets/icons/circle-green.svg +4 -0
  34. package/src/assets/icons/circle-orange.svg +4 -0
  35. package/src/assets/icons/circle-purple.svg +4 -0
  36. package/src/assets/icons/circle-red.svg +15 -0
  37. package/src/assets/icons/harbor.svg +12 -0
  38. package/src/assets/icons/ic-box-red.svg +8 -0
  39. package/src/assets/icons/ic-chevron-right.svg +1 -0
  40. package/src/assets/icons/ic-loading.svg +9 -0
  41. package/src/assets/icons/ic-reset.svg +16 -0
  42. package/src/assets/icons/ic-sailing.svg +5 -0
  43. package/src/assets/icons/icon-app-selector.svg +3 -0
  44. package/src/assets/icons/icon-browser-check.svg +4 -0
  45. package/src/assets/icons/icon-calendar.svg +3 -0
  46. package/src/assets/icons/icon-chart-bar.svg +3 -0
  47. package/src/assets/icons/icon-chart-doc.svg +16 -0
  48. package/src/assets/icons/icon-chart-line.svg +10 -0
  49. package/src/assets/icons/icon-chart-mix.svg +15 -0
  50. package/src/assets/icons/icon-chart-pie.svg +11 -0
  51. package/src/assets/icons/icon-continue.svg +12 -0
  52. package/src/assets/icons/icon-dashboard-2.svg +17 -0
  53. package/src/assets/icons/icon-dashboard.svg +3 -0
  54. package/src/assets/icons/icon-data-kelistrikan.svg +19 -0
  55. package/src/assets/icons/icon-data-sentral.svg +11 -0
  56. package/src/assets/icons/icon-database.svg +5 -0
  57. package/src/assets/icons/icon-desktop.svg +3 -0
  58. package/src/assets/icons/icon-download.svg +13 -0
  59. package/src/assets/icons/icon-energi-primer.svg +12 -0
  60. package/src/assets/icons/icon-faba-apk2.svg +11 -0
  61. package/src/assets/icons/icon-faba.svg +11 -0
  62. package/src/assets/icons/icon-factory.svg +14 -0
  63. package/src/assets/icons/icon-globe-doc.svg +19 -0
  64. package/src/assets/icons/icon-ikk.svg +10 -0
  65. package/src/assets/icons/icon-kbb.svg +13 -0
  66. package/src/assets/icons/icon-kos.svg +16 -0
  67. package/src/assets/icons/icon-kpi-bod.svg +15 -0
  68. package/src/assets/icons/icon-kss.svg +14 -0
  69. package/src/assets/icons/icon-map.svg +12 -0
  70. package/src/assets/icons/icon-monitoring-harian.svg +13 -0
  71. package/src/assets/icons/icon-notification.svg +4 -0
  72. package/src/assets/icons/icon-overview.svg +17 -0
  73. package/src/assets/icons/icon-pltu.svg +13 -0
  74. package/src/assets/icons/icon-sebaran-sentral.svg +12 -0
  75. package/src/assets/icons/icon-select-data-kelistrikan.svg +19 -0
  76. package/src/assets/icons/icon-select-data-sentral.svg +11 -0
  77. package/src/assets/icons/icon-select-energi-primer.svg +12 -0
  78. package/src/assets/icons/icon-select-faba-apk2.svg +11 -0
  79. package/src/assets/icons/icon-select-ikk.svg +10 -0
  80. package/src/assets/icons/icon-select-kbb.svg +13 -0
  81. package/src/assets/icons/icon-select-kos.svg +16 -0
  82. package/src/assets/icons/icon-select-kpi-bod.svg +15 -0
  83. package/src/assets/icons/icon-select-kss.svg +14 -0
  84. package/src/assets/icons/icon-select-monitoring-harian.svg +13 -0
  85. package/src/assets/icons/icon-select-overview.svg +17 -0
  86. package/src/assets/icons/icon-select-sebaran-sentral.svg +12 -0
  87. package/src/assets/icons/icon-sentral-white.svg +13 -0
  88. package/src/assets/icons/icon-shipping.svg +5 -0
  89. package/src/assets/icons/icon-sort.svg +5 -0
  90. package/src/assets/icons/icon-tree-box.svg +14 -0
  91. package/src/assets/icons/icon-warehouse.svg +12 -0
  92. package/src/assets/icons/pin-green.svg +3 -0
  93. package/src/assets/icons/pin-orange.svg +3 -0
  94. package/src/assets/icons/pin-purple.svg +3 -0
  95. package/src/assets/icons/ship.svg +3 -0
  96. package/src/assets/icons/shipment/icon-antri.svg +15 -0
  97. package/src/assets/icons/shipment/icon-bongkar.svg +4 -0
  98. package/src/assets/icons/shipment/icon-invoice.svg +6 -0
  99. package/src/assets/icons/shipment/icon-loading.svg +8 -0
  100. package/src/assets/icons/shipment/icon-pembayaran.svg +13 -0
  101. package/src/assets/icons/shipment/icon-pengiriman.svg +4 -0
  102. package/src/assets/icons/shipment/icon-sailing.svg +4 -0
  103. package/src/assets/icons/shipment/icon-shipment-completed.svg +6 -0
  104. package/src/assets/icons/shipment/icon-shipment-in-progress.svg +6 -0
  105. package/src/assets/icons/shipment/icon-shipment-over-sla.svg +6 -0
  106. package/src/assets/icons/shipment/icon-spt.svg +4 -0
  107. package/src/assets/icons/shipment/icon-total-shipment.svg +4 -0
  108. package/src/assets/icons/upload_doc_icon.svg +42 -0
  109. package/src/assets/icons/upload_icon_blue.svg +14 -0
  110. package/src/assets/login-bg-day-min.jpg +0 -0
  111. package/src/assets/login-bg-night-min.jpg +0 -0
  112. package/src/assets/login-bg.jpg +0 -0
  113. package/src/assets/login-day.png +0 -0
  114. package/src/assets/login-night.png +0 -0
  115. package/src/assets/lucide-circle-plus-blue.svg +1 -0
  116. package/src/assets/pdf-logo.svg +11 -0
  117. package/src/assets/pemasok-card-bg.svg +6 -0
  118. package/src/assets/success_animation.gif +0 -0
  119. package/src/assets/success_animation.mp4 +0 -0
  120. package/src/assets/success_animation.webm +0 -0
  121. package/src/components/button/BtnAddOutline.vue +14 -0
  122. package/src/components/button/BtnCircle.vue +10 -0
  123. package/src/components/button/BtnOutline.vue +15 -0
  124. package/src/components/button/BtnPrimary.vue +25 -0
  125. package/src/components/button/BtnSecondary.vue +26 -0
  126. package/src/components/detail/AccountDetailTimeline.vue +144 -0
  127. package/src/components/detail/ApprovalInfo.vue +288 -0
  128. package/src/components/detail/DCI2.vue +164 -0
  129. package/src/components/detail/DetailContentHeader.vue +83 -0
  130. package/src/components/detail/DetailContentItem.vue +186 -0
  131. package/src/components/detail/DetailContentItems.vue +388 -0
  132. package/src/components/detail/DetailContentLoading.vue +12 -0
  133. package/src/components/detail/DetailContentTablet.vue +10 -0
  134. package/src/components/detail/DetailSheet.vue +294 -0
  135. package/src/components/detail/DetailTimeline.vue +191 -0
  136. package/src/components/detail/DocApprovalDialog.vue +29 -0
  137. package/src/components/detail/DocViewerContent.vue +991 -0
  138. package/src/components/dialog/ConfirmDialog.vue +96 -0
  139. package/src/components/dialog/DialogBase.vue +53 -0
  140. package/src/components/dialog/DialogSelect.vue +212 -0
  141. package/src/components/dialog/ErrorDialog.vue +63 -0
  142. package/src/components/dialog/FormDialog.vue +141 -0
  143. package/src/components/dialog/FormInputerDialog.vue +91 -0
  144. package/src/components/dialog/InfoDialog.vue +74 -0
  145. package/src/components/dialog/SuccessDialog.vue +51 -0
  146. package/src/components/examples/TestSchemaExample.vue +288 -0
  147. package/src/components/forms/auth/LoginForm.vue +806 -0
  148. package/src/components/forms/auth/PwdScore.vue +68 -0
  149. package/src/components/helper/ApiTester.vue +153 -0
  150. package/src/components/helper/ChangePwd.vue +150 -0
  151. package/src/components/helper/CheckboxElement.vue +43 -0
  152. package/src/components/helper/ConfigSwitcher.vue +54 -0
  153. package/src/components/helper/Copyright.vue +10 -0
  154. package/src/components/helper/ErrorScreen.vue +40 -0
  155. package/src/components/helper/LucideIcon.vue +27 -0
  156. package/src/components/helper/PdfViewer.vue +103 -0
  157. package/src/components/helper/PinInputer.vue +205 -0
  158. package/src/components/helper/PrivacyPolicy.vue +122 -0
  159. package/src/components/layout/PageActivityHeader.vue +48 -0
  160. package/src/components/layout/PageHeader.vue +70 -0
  161. package/src/components/loadings/LoadingDialog.vue +29 -0
  162. package/src/components/loadings/LoadingDialogSpin.vue +25 -0
  163. package/src/components/loadings/LoadingIndicator.vue +38 -0
  164. package/src/components/loadings/LoadingScreen.vue +23 -0
  165. package/src/components/notif/Notif.vue +103 -0
  166. package/src/components/notif/NotifItem.vue +41 -0
  167. package/src/components/pages/Header.vue +431 -0
  168. package/src/components/pages/Leftbar.vue +417 -0
  169. package/src/components/pages/PageActivity.vue +108 -0
  170. package/src/components/pages/PageActivityContent.vue +597 -0
  171. package/src/components/pages/PageContentTable.vue +589 -0
  172. package/src/components/pages/PageTab.vue +84 -0
  173. package/src/components/selector/BaseSelector.vue +1136 -0
  174. package/src/components/selector/ConfigDataSelector.vue +136 -0
  175. package/src/components/settings/SettingsItem.vue +38 -0
  176. package/src/components/tab/TabView.vue +11 -0
  177. package/src/components/tab/TabViewItem.vue +18 -0
  178. package/src/components/tab/TabViewItemBar.vue +9 -0
  179. package/src/components/tables/CellHover.vue +65 -0
  180. package/src/components/tables/DashboardDataTable.vue +707 -0
  181. package/src/components/tables/DataStatusTag.vue +52 -0
  182. package/src/components/tables/DataTable.vue +156 -0
  183. package/src/components/tables/DataTableAccordion.vue +249 -0
  184. package/src/components/tables/DataTableActionRow.vue +64 -0
  185. package/src/components/tables/DataTableCell.vue +272 -0
  186. package/src/components/tables/DataTableHeader.vue +60 -0
  187. package/src/components/tables/DataTableRow.vue +213 -0
  188. package/src/components/tables/ExpandedTable.vue +259 -0
  189. package/src/components/tables/PageTable.vue +73 -0
  190. package/src/components/tables/Pagination.vue +98 -0
  191. package/src/components/tables/dropdown/BaseDropdownTable.vue +140 -0
  192. package/src/components/tables/dropdown/DropdownTableActivity.vue +33 -0
  193. package/src/components/tables/dropdown/DropdownTableAsset.vue +30 -0
  194. package/src/components/tables/dropdown/DropdownTableConfig.vue +30 -0
  195. package/src/components/tables/dropdown/DropdownTableDataKonektor.vue +31 -0
  196. package/src/components/tables/dropdown/DropdownTableDataLabel.vue +30 -0
  197. package/src/components/tables/dropdown/DropdownTableDataSchema.vue +31 -0
  198. package/src/components/tables/dropdown/DropdownTableFabaPemanfaat.vue +30 -0
  199. package/src/components/tables/dropdown/DropdownTableGroup.vue +36 -0
  200. package/src/components/tables/dropdown/DropdownTableHalaman.vue +33 -0
  201. package/src/components/tables/dropdown/DropdownTableLevel.vue +66 -0
  202. package/src/components/tables/dropdown/DropdownTableOrganization.vue +47 -0
  203. package/src/components/tables/dropdown/DropdownTablePengelola.vue +28 -0
  204. package/src/components/tables/dropdown/DropdownTableQueryLayer.vue +29 -0
  205. package/src/components/tables/dropdown/DropdownTableSentral.vue +33 -0
  206. package/src/components/tables/dropdown/DropdownTableWarehouse.vue +30 -0
  207. package/src/components/tables/dropdown/TableDropdown.vue +52 -0
  208. package/src/components/ui/accordion/Accordion.vue +19 -0
  209. package/src/components/ui/accordion/AccordionContent.vue +24 -0
  210. package/src/components/ui/accordion/AccordionItem.vue +24 -0
  211. package/src/components/ui/accordion/AccordionTrigger.vue +42 -0
  212. package/src/components/ui/accordion/index.ts +4 -0
  213. package/src/components/ui/alert-dialog/AlertDialog.vue +14 -0
  214. package/src/components/ui/alert-dialog/AlertDialogAction.vue +20 -0
  215. package/src/components/ui/alert-dialog/AlertDialogCancel.vue +20 -0
  216. package/src/components/ui/alert-dialog/AlertDialogContent.vue +42 -0
  217. package/src/components/ui/alert-dialog/AlertDialogDescription.vue +25 -0
  218. package/src/components/ui/alert-dialog/AlertDialogFooter.vue +21 -0
  219. package/src/components/ui/alert-dialog/AlertDialogHeader.vue +16 -0
  220. package/src/components/ui/alert-dialog/AlertDialogTitle.vue +22 -0
  221. package/src/components/ui/alert-dialog/AlertDialogTrigger.vue +11 -0
  222. package/src/components/ui/alert-dialog/index.ts +9 -0
  223. package/src/components/ui/avatar/Avatar.vue +24 -0
  224. package/src/components/ui/avatar/AvatarFallback.vue +11 -0
  225. package/src/components/ui/avatar/AvatarImage.vue +9 -0
  226. package/src/components/ui/avatar/UsersAvatar.vue +28 -0
  227. package/src/components/ui/avatar/index.ts +24 -0
  228. package/src/components/ui/button/Button.vue +27 -0
  229. package/src/components/ui/button/index.ts +34 -0
  230. package/src/components/ui/calendar/Calendar.vue +325 -0
  231. package/src/components/ui/calendar/index.ts +22 -0
  232. package/src/components/ui/checkbox/Checkbox.vue +33 -0
  233. package/src/components/ui/checkbox/index.ts +1 -0
  234. package/src/components/ui/command/Command.vue +30 -0
  235. package/src/components/ui/command/CommandDialog.vue +21 -0
  236. package/src/components/ui/command/CommandEmpty.vue +20 -0
  237. package/src/components/ui/command/CommandGroup.vue +29 -0
  238. package/src/components/ui/command/CommandInput.vue +33 -0
  239. package/src/components/ui/command/CommandItem.vue +26 -0
  240. package/src/components/ui/command/CommandList.vue +27 -0
  241. package/src/components/ui/command/CommandSeparator.vue +23 -0
  242. package/src/components/ui/command/CommandShortcut.vue +14 -0
  243. package/src/components/ui/command/index.ts +9 -0
  244. package/src/components/ui/context-menu/ContextMenu.vue +15 -0
  245. package/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +40 -0
  246. package/src/components/ui/context-menu/ContextMenuContent.vue +36 -0
  247. package/src/components/ui/context-menu/ContextMenuGroup.vue +11 -0
  248. package/src/components/ui/context-menu/ContextMenuItem.vue +34 -0
  249. package/src/components/ui/context-menu/ContextMenuLabel.vue +25 -0
  250. package/src/components/ui/context-menu/ContextMenuPortal.vue +11 -0
  251. package/src/components/ui/context-menu/ContextMenuRadioGroup.vue +19 -0
  252. package/src/components/ui/context-menu/ContextMenuRadioItem.vue +40 -0
  253. package/src/components/ui/context-menu/ContextMenuSeparator.vue +20 -0
  254. package/src/components/ui/context-menu/ContextMenuShortcut.vue +14 -0
  255. package/src/components/ui/context-menu/ContextMenuSub.vue +19 -0
  256. package/src/components/ui/context-menu/ContextMenuSubContent.vue +35 -0
  257. package/src/components/ui/context-menu/ContextMenuSubTrigger.vue +34 -0
  258. package/src/components/ui/context-menu/ContextMenuTrigger.vue +13 -0
  259. package/src/components/ui/context-menu/index.ts +14 -0
  260. package/src/components/ui/datetime/DatetimeRangeComponent.vue +52 -0
  261. package/src/components/ui/dialog/Dialog.vue +14 -0
  262. package/src/components/ui/dialog/DialogClose.vue +11 -0
  263. package/src/components/ui/dialog/DialogContent.vue +53 -0
  264. package/src/components/ui/dialog/DialogDescription.vue +24 -0
  265. package/src/components/ui/dialog/DialogFooter.vue +19 -0
  266. package/src/components/ui/dialog/DialogHeader.vue +16 -0
  267. package/src/components/ui/dialog/DialogScrollContent.vue +59 -0
  268. package/src/components/ui/dialog/DialogTitle.vue +29 -0
  269. package/src/components/ui/dialog/DialogTrigger.vue +11 -0
  270. package/src/components/ui/dialog/index.ts +9 -0
  271. package/src/components/ui/dropdown-menu/DropdownMenu.vue +14 -0
  272. package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +40 -0
  273. package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +38 -0
  274. package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +11 -0
  275. package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +28 -0
  276. package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +24 -0
  277. package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +19 -0
  278. package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +41 -0
  279. package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +22 -0
  280. package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
  281. package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
  282. package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +30 -0
  283. package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +33 -0
  284. package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +13 -0
  285. package/src/components/ui/dropdown-menu/index.ts +16 -0
  286. package/src/components/ui/form/FormControl.vue +16 -0
  287. package/src/components/ui/form/FormDescription.vue +20 -0
  288. package/src/components/ui/form/FormItem.vue +25 -0
  289. package/src/components/ui/form/FormLabel.vue +23 -0
  290. package/src/components/ui/form/FormMessage.vue +16 -0
  291. package/src/components/ui/form/index.ts +6 -0
  292. package/src/components/ui/form/useFormField.ts +30 -0
  293. package/src/components/ui/hover-card/HoverCard.vue +14 -0
  294. package/src/components/ui/hover-card/HoverCardContent.vue +41 -0
  295. package/src/components/ui/hover-card/HoverCardTrigger.vue +11 -0
  296. package/src/components/ui/hover-card/index.ts +3 -0
  297. package/src/components/ui/input/Input.vue +24 -0
  298. package/src/components/ui/input/index.ts +1 -0
  299. package/src/components/ui/label/Label.vue +27 -0
  300. package/src/components/ui/label/index.ts +1 -0
  301. package/src/components/ui/pagination/PaginationEllipsis.vue +22 -0
  302. package/src/components/ui/pagination/PaginationFirst.vue +29 -0
  303. package/src/components/ui/pagination/PaginationLast.vue +29 -0
  304. package/src/components/ui/pagination/PaginationNext.vue +29 -0
  305. package/src/components/ui/pagination/PaginationPrev.vue +29 -0
  306. package/src/components/ui/pagination/index.ts +10 -0
  307. package/src/components/ui/pin-input/PinInput.vue +23 -0
  308. package/src/components/ui/pin-input/PinInputGroup.vue +18 -0
  309. package/src/components/ui/pin-input/PinInputInput.vue +18 -0
  310. package/src/components/ui/pin-input/PinInputSeparator.vue +15 -0
  311. package/src/components/ui/pin-input/index.ts +4 -0
  312. package/src/components/ui/popover/Popover.vue +15 -0
  313. package/src/components/ui/popover/PopoverContent.vue +48 -0
  314. package/src/components/ui/popover/PopoverTrigger.vue +11 -0
  315. package/src/components/ui/popover/index.ts +4 -0
  316. package/src/components/ui/preview/PreviewPdf.vue +118 -0
  317. package/src/components/ui/progress/ProgressCircle.vue +27 -0
  318. package/src/components/ui/progress/SemiCircularProgressBar.vue +83 -0
  319. package/src/components/ui/progress/TotalCalories.vue +31 -0
  320. package/src/components/ui/radio-group/RadioGroup.vue +25 -0
  321. package/src/components/ui/radio-group/RadioGroupItem.vue +37 -0
  322. package/src/components/ui/radio-group/index.ts +2 -0
  323. package/src/components/ui/scroll-area/ScrollArea.vue +29 -0
  324. package/src/components/ui/scroll-area/ScrollBar.vue +30 -0
  325. package/src/components/ui/scroll-area/index.ts +2 -0
  326. package/src/components/ui/select/Select.vue +15 -0
  327. package/src/components/ui/select/SelectContent.vue +52 -0
  328. package/src/components/ui/select/SelectGroup.vue +19 -0
  329. package/src/components/ui/select/SelectInline.vue +84 -0
  330. package/src/components/ui/select/SelectItem.vue +44 -0
  331. package/src/components/ui/select/SelectItemText.vue +11 -0
  332. package/src/components/ui/select/SelectLabel.vue +13 -0
  333. package/src/components/ui/select/SelectScrollDownButton.vue +24 -0
  334. package/src/components/ui/select/SelectScrollUpButton.vue +24 -0
  335. package/src/components/ui/select/SelectSeparator.vue +17 -0
  336. package/src/components/ui/select/SelectTrigger.vue +31 -0
  337. package/src/components/ui/select/SelectTriggerCustom.vue +23 -0
  338. package/src/components/ui/select/SelectValue.vue +11 -0
  339. package/src/components/ui/select/index.ts +12 -0
  340. package/src/components/ui/separator/Separator.vue +20 -0
  341. package/src/components/ui/separator/index.ts +1 -0
  342. package/src/components/ui/sheet/Sheet.vue +14 -0
  343. package/src/components/ui/sheet/SheetClose.vue +11 -0
  344. package/src/components/ui/sheet/SheetContent.vue +48 -0
  345. package/src/components/ui/sheet/SheetDescription.vue +22 -0
  346. package/src/components/ui/sheet/SheetFooter.vue +19 -0
  347. package/src/components/ui/sheet/SheetHeader.vue +16 -0
  348. package/src/components/ui/sheet/SheetTitle.vue +22 -0
  349. package/src/components/ui/sheet/SheetTrigger.vue +11 -0
  350. package/src/components/ui/sheet/index.ts +31 -0
  351. package/src/components/ui/skeleton/Skeleton.vue +28 -0
  352. package/src/components/ui/skeleton/index.ts +1 -0
  353. package/src/components/ui/sonner/Sonner.vue +22 -0
  354. package/src/components/ui/sonner/index.ts +1 -0
  355. package/src/components/ui/star/StarRating.vue +19 -0
  356. package/src/components/ui/switch/Switch.vue +37 -0
  357. package/src/components/ui/switch/index.ts +1 -0
  358. package/src/components/ui/table/Table.vue +16 -0
  359. package/src/components/ui/table/TableBody.vue +14 -0
  360. package/src/components/ui/table/TableCaption.vue +14 -0
  361. package/src/components/ui/table/TableCell.vue +21 -0
  362. package/src/components/ui/table/TableEmpty.vue +37 -0
  363. package/src/components/ui/table/TableFooter.vue +14 -0
  364. package/src/components/ui/table/TableHead.vue +14 -0
  365. package/src/components/ui/table/TableHeader.vue +14 -0
  366. package/src/components/ui/table/TableRow.vue +14 -0
  367. package/src/components/ui/table/index.ts +8 -0
  368. package/src/components/ui/tabs/Tabs.vue +15 -0
  369. package/src/components/ui/tabs/TabsContent.vue +22 -0
  370. package/src/components/ui/tabs/TabsList.vue +25 -0
  371. package/src/components/ui/tabs/TabsTrigger.vue +27 -0
  372. package/src/components/ui/tabs/index.ts +4 -0
  373. package/src/components/ui/tags-input/TagsInput.vue +22 -0
  374. package/src/components/ui/tags-input/TagsInputInput.vue +19 -0
  375. package/src/components/ui/tags-input/TagsInputItem.vue +22 -0
  376. package/src/components/ui/tags-input/TagsInputItemDelete.vue +24 -0
  377. package/src/components/ui/tags-input/TagsInputItemText.vue +19 -0
  378. package/src/components/ui/tags-input/index.ts +5 -0
  379. package/src/components/ui/textarea/Textarea.vue +24 -0
  380. package/src/components/ui/textarea/index.ts +1 -0
  381. package/src/components/ui/tooltip/Tooltip.vue +14 -0
  382. package/src/components/ui/tooltip/TooltipContent.vue +31 -0
  383. package/src/components/ui/tooltip/TooltipProvider.vue +11 -0
  384. package/src/components/ui/tooltip/TooltipTrigger.vue +11 -0
  385. package/src/components/ui/tooltip/index.ts +4 -0
  386. package/src/composables/useAppConfig.ts +332 -0
  387. package/src/composables/useDarkMode.ts +71 -0
  388. package/src/config/app.config.ts +318 -0
  389. package/src/config/examples/ecommerce.config.ts +132 -0
  390. package/src/config/examples/generic.config.ts +132 -0
  391. package/src/config/menu.config.ts +149 -0
  392. package/src/config/my-app.config.ts +134 -0
  393. package/src/config/test-config.ts +32 -0
  394. package/src/config/theme.config.ts +250 -0
  395. package/src/docs/index.ts +21 -0
  396. package/src/docs.scss +403 -0
  397. package/src/index.d.ts +5 -0
  398. package/src/index.ts +20 -0
  399. package/src/layouts/AuthLayout.vue +68 -0
  400. package/src/layouts/DefaultLayout.vue +119 -0
  401. package/src/layouts/DocsLayout.vue +681 -0
  402. package/src/layouts/FormGlobal.vue +50 -0
  403. package/src/layouts/GlobalDialog.vue +122 -0
  404. package/src/layouts/RakorConfirmDialog.vue +95 -0
  405. package/src/layouts/SettingsLayout.vue +115 -0
  406. package/src/lib/constants.ts +2 -0
  407. package/src/lib/detail.utils.ts +213 -0
  408. package/src/lib/form.utils.ts +1009 -0
  409. package/src/lib/page.flow.utils.ts +81 -0
  410. package/src/lib/page.utils.ts +865 -0
  411. package/src/lib/performance.utils.ts +302 -0
  412. package/src/lib/tablerow.utils.ts +51 -0
  413. package/src/lib/utils.ts +643 -0
  414. package/src/main.scss +717 -0
  415. package/src/main.ts +74 -0
  416. package/src/menu.ts +78 -0
  417. package/src/nestedlist_color.scss +161 -0
  418. package/src/router/index.ts +92 -0
  419. package/src/stores/auth.ts +117 -0
  420. package/src/stores/counter.ts +12 -0
  421. package/src/stores/dialog.ts +168 -0
  422. package/src/stores/form.ts +103 -0
  423. package/src/stores/tabs.ts +52 -0
  424. package/src/tw.scss +419 -0
  425. package/src/types/form.types.ts +348 -0
  426. package/src/types/types.ts +7 -0
  427. package/src/utils/config.utils.ts +149 -0
  428. package/src/views/NotFound.vue +30 -0
  429. package/src/views/PageActivity.vue +15 -0
  430. package/src/views/auth/LoginView.vue +7 -0
  431. package/src/views/auth/OauthCallback.vue +101 -0
  432. package/src/views/dashboard/index.vue +16 -0
  433. package/src/views/settings/AccountSettingsView.vue +70 -0
  434. package/src/views/settings/AuditLogsSettingsView.vue +116 -0
  435. package/src/views/settings/DeviceSettingsView.vue +70 -0
  436. package/src/views/settings/MainSettingsView.vue +12 -0
  437. package/src/views/settings/ProfileSettingsView.vue +104 -0
  438. package/src/vueform/config/informasi-gudang.ts +47 -0
  439. package/src/vueform/config/test-schema.ts +8 -0
  440. package/src/vueform/config/types.ts +768 -0
  441. package/src/vueform/customization/classes.js +46 -0
  442. package/src/vueform/customization/tailwind.classes.js +2117 -0
  443. package/src/vueform/elements/ConfigDataSelectorElement.vue +50 -0
  444. package/src/vueform/elements/DateSelectorElement.vue +323 -0
  445. package/src/vueform/elements/SelectorElement.vue +153 -0
  446. package/src/vueform/schemas/date-selector-test.ts +103 -0
  447. package/src/vueform/schemas/informasi-gudang.ts +160 -0
  448. package/src/vueform/schemas/test-schema.ts +483 -0
  449. package/src/vueform.config.js +77 -0
  450. package/src/vueform.validator.ts +77 -0
@@ -0,0 +1,546 @@
1
+ /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
2
+ const {
3
+ entries: Tt,
4
+ setPrototypeOf: st,
5
+ isFrozen: Bt,
6
+ getPrototypeOf: Yt,
7
+ getOwnPropertyDescriptor: Xt
8
+ } = Object;
9
+ let {
10
+ freeze: S,
11
+ seal: L,
12
+ create: Et
13
+ } = Object, {
14
+ apply: xe,
15
+ construct: Pe
16
+ } = typeof Reflect < "u" && Reflect;
17
+ S || (S = function(o) {
18
+ return o;
19
+ });
20
+ L || (L = function(o) {
21
+ return o;
22
+ });
23
+ xe || (xe = function(o, l) {
24
+ for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), O = 2; O < a; O++)
25
+ c[O - 2] = arguments[O];
26
+ return o.apply(l, c);
27
+ });
28
+ Pe || (Pe = function(o) {
29
+ for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
30
+ a[c - 1] = arguments[c];
31
+ return new o(...a);
32
+ });
33
+ const le = R(Array.prototype.forEach), jt = R(Array.prototype.lastIndexOf), lt = R(Array.prototype.pop), $ = R(Array.prototype.push), Vt = R(Array.prototype.splice), fe = R(String.prototype.toLowerCase), De = R(String.prototype.toString), Ne = R(String.prototype.match), q = R(String.prototype.replace), $t = R(String.prototype.indexOf), qt = R(String.prototype.trim), b = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), K = Kt(TypeError);
34
+ function R(s) {
35
+ return function(o) {
36
+ o instanceof RegExp && (o.lastIndex = 0);
37
+ for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
38
+ a[c - 1] = arguments[c];
39
+ return xe(s, o, a);
40
+ };
41
+ }
42
+ function Kt(s) {
43
+ return function() {
44
+ for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++)
45
+ l[a] = arguments[a];
46
+ return Pe(s, l);
47
+ };
48
+ }
49
+ function r(s, o) {
50
+ let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
51
+ st && st(s, null);
52
+ let a = o.length;
53
+ for (; a--; ) {
54
+ let c = o[a];
55
+ if (typeof c == "string") {
56
+ const O = l(c);
57
+ O !== c && (Bt(o) || (o[a] = O), c = O);
58
+ }
59
+ s[c] = !0;
60
+ }
61
+ return s;
62
+ }
63
+ function Zt(s) {
64
+ for (let o = 0; o < s.length; o++)
65
+ b(s, o) || (s[o] = null);
66
+ return s;
67
+ }
68
+ function C(s) {
69
+ const o = Et(null);
70
+ for (const [l, a] of Tt(s))
71
+ b(s, l) && (Array.isArray(a) ? o[l] = Zt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = C(a) : o[l] = a);
72
+ return o;
73
+ }
74
+ function Z(s, o) {
75
+ for (; s !== null; ) {
76
+ const a = Xt(s, o);
77
+ if (a) {
78
+ if (a.get)
79
+ return R(a.get);
80
+ if (typeof a.value == "function")
81
+ return R(a.value);
82
+ }
83
+ s = Yt(s);
84
+ }
85
+ function l() {
86
+ return null;
87
+ }
88
+ return l;
89
+ }
90
+ const ct = S(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ie = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Me = S(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Jt = S(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ce = S(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qt = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ft = S(["#text"]), ut = S(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), we = S(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), mt = S(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ce = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), en = L(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tn = L(/<%[\w\W]*|[\w\W]*%>/gm), nn = L(/\$\{[\w\W]*/gm), on = L(/^data-[\-\w.\u00B7-\uFFFF]+$/), an = L(/^aria-[\-\w]+$/), _t = L(
91
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
92
+ // eslint-disable-line no-useless-escape
93
+ ), rn = L(/^(?:\w+script|data):/i), sn = L(
94
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
95
+ // eslint-disable-line no-control-regex
96
+ ), gt = L(/^html$/i), ln = L(/^[a-z][.\w]*(-[.\w]+)+$/i);
97
+ var pt = /* @__PURE__ */ Object.freeze({
98
+ __proto__: null,
99
+ ARIA_ATTR: an,
100
+ ATTR_WHITESPACE: sn,
101
+ CUSTOM_ELEMENT: ln,
102
+ DATA_ATTR: on,
103
+ DOCTYPE_NAME: gt,
104
+ ERB_EXPR: tn,
105
+ IS_ALLOWED_URI: _t,
106
+ IS_SCRIPT_OR_DATA: rn,
107
+ MUSTACHE_EXPR: en,
108
+ TMPLIT_EXPR: nn
109
+ });
110
+ const J = {
111
+ element: 1,
112
+ attribute: 2,
113
+ text: 3,
114
+ cdataSection: 4,
115
+ entityReference: 5,
116
+ // Deprecated
117
+ entityNode: 6,
118
+ // Deprecated
119
+ progressingInstruction: 7,
120
+ comment: 8,
121
+ document: 9,
122
+ documentType: 10,
123
+ documentFragment: 11,
124
+ notation: 12
125
+ // Deprecated
126
+ }, cn = function() {
127
+ return typeof window > "u" ? null : window;
128
+ }, fn = function(o, l) {
129
+ if (typeof o != "object" || typeof o.createPolicy != "function")
130
+ return null;
131
+ let a = null;
132
+ const c = "data-tt-policy-suffix";
133
+ l && l.hasAttribute(c) && (a = l.getAttribute(c));
134
+ const O = "dompurify" + (a ? "#" + a : "");
135
+ try {
136
+ return o.createPolicy(O, {
137
+ createHTML(P) {
138
+ return P;
139
+ },
140
+ createScriptURL(P) {
141
+ return P;
142
+ }
143
+ });
144
+ } catch {
145
+ return console.warn("TrustedTypes policy " + O + " could not be created."), null;
146
+ }
147
+ }, dt = function() {
148
+ return {
149
+ afterSanitizeAttributes: [],
150
+ afterSanitizeElements: [],
151
+ afterSanitizeShadowDOM: [],
152
+ beforeSanitizeAttributes: [],
153
+ beforeSanitizeElements: [],
154
+ beforeSanitizeShadowDOM: [],
155
+ uponSanitizeAttribute: [],
156
+ uponSanitizeElement: [],
157
+ uponSanitizeShadowNode: []
158
+ };
159
+ };
160
+ function ht() {
161
+ let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cn();
162
+ const o = (i) => ht(i);
163
+ if (o.version = "3.2.7", o.removed = [], !s || !s.document || s.document.nodeType !== J.document || !s.Element)
164
+ return o.isSupported = !1, o;
165
+ let {
166
+ document: l
167
+ } = s;
168
+ const a = l, c = a.currentScript, {
169
+ DocumentFragment: O,
170
+ HTMLTemplateElement: P,
171
+ Node: ue,
172
+ Element: ve,
173
+ NodeFilter: W,
174
+ NamedNodeMap: At = s.NamedNodeMap || s.MozNamedAttrMap,
175
+ HTMLFormElement: St,
176
+ DOMParser: Rt,
177
+ trustedTypes: Q
178
+ } = s, B = ve.prototype, Ot = Z(B, "cloneNode"), yt = Z(B, "remove"), Lt = Z(B, "nextSibling"), bt = Z(B, "childNodes"), ee = Z(B, "parentNode");
179
+ if (typeof P == "function") {
180
+ const i = l.createElement("template");
181
+ i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
182
+ }
183
+ let g, Y = "";
184
+ const {
185
+ implementation: me,
186
+ createNodeIterator: Dt,
187
+ createDocumentFragment: Nt,
188
+ getElementsByTagName: It
189
+ } = l, {
190
+ importNode: Mt
191
+ } = a;
192
+ let h = dt();
193
+ o.isSupported = typeof Tt == "function" && typeof ee == "function" && me && me.createHTMLDocument !== void 0;
194
+ const {
195
+ MUSTACHE_EXPR: pe,
196
+ ERB_EXPR: de,
197
+ TMPLIT_EXPR: Te,
198
+ DATA_ATTR: Ct,
199
+ ARIA_ATTR: wt,
200
+ IS_SCRIPT_OR_DATA: xt,
201
+ ATTR_WHITESPACE: ke,
202
+ CUSTOM_ELEMENT: Pt
203
+ } = pt;
204
+ let {
205
+ IS_ALLOWED_URI: Ue
206
+ } = pt, p = null;
207
+ const Fe = r({}, [...ct, ...Ie, ...Me, ...Ce, ...ft]);
208
+ let T = null;
209
+ const He = r({}, [...ut, ...we, ...mt, ...ce]);
210
+ let u = Object.seal(Et(null, {
211
+ tagNameCheck: {
212
+ writable: !0,
213
+ configurable: !1,
214
+ enumerable: !0,
215
+ value: null
216
+ },
217
+ attributeNameCheck: {
218
+ writable: !0,
219
+ configurable: !1,
220
+ enumerable: !0,
221
+ value: null
222
+ },
223
+ allowCustomizedBuiltInElements: {
224
+ writable: !0,
225
+ configurable: !1,
226
+ enumerable: !0,
227
+ value: !1
228
+ }
229
+ })), X = null, Ee = null, ze = !0, _e = !0, Ge = !1, We = !0, v = !1, te = !0, w = !1, ge = !1, he = !1, k = !1, ne = !1, oe = !1, Be = !0, Ye = !1;
230
+ const vt = "user-content-";
231
+ let Ae = !0, j = !1, U = {}, F = null;
232
+ const Xe = r({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
233
+ let je = null;
234
+ const Ve = r({}, ["audio", "video", "img", "source", "image", "track"]);
235
+ let Se = null;
236
+ const $e = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ie = "http://www.w3.org/1998/Math/MathML", ae = "http://www.w3.org/2000/svg", N = "http://www.w3.org/1999/xhtml";
237
+ let H = N, Re = !1, Oe = null;
238
+ const kt = r({}, [ie, ae, N], De);
239
+ let re = r({}, ["mi", "mo", "mn", "ms", "mtext"]), se = r({}, ["annotation-xml"]);
240
+ const Ut = r({}, ["title", "style", "font", "a", "script"]);
241
+ let V = null;
242
+ const Ft = ["application/xhtml+xml", "text/html"], Ht = "text/html";
243
+ let d = null, z = null;
244
+ const zt = l.createElement("form"), qe = function(e) {
245
+ return e instanceof RegExp || e instanceof Function;
246
+ }, ye = function() {
247
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
248
+ if (!(z && z === e)) {
249
+ if ((!e || typeof e != "object") && (e = {}), e = C(e), V = // eslint-disable-next-line unicorn/prefer-includes
250
+ Ft.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ht : e.PARSER_MEDIA_TYPE, d = V === "application/xhtml+xml" ? De : fe, p = b(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, d) : Fe, T = b(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, d) : He, Oe = b(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, De) : kt, Se = b(e, "ADD_URI_SAFE_ATTR") ? r(C($e), e.ADD_URI_SAFE_ATTR, d) : $e, je = b(e, "ADD_DATA_URI_TAGS") ? r(C(Ve), e.ADD_DATA_URI_TAGS, d) : Ve, F = b(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, d) : Xe, X = b(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, d) : C({}), Ee = b(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, d) : C({}), U = b(e, "USE_PROFILES") ? e.USE_PROFILES : !1, ze = e.ALLOW_ARIA_ATTR !== !1, _e = e.ALLOW_DATA_ATTR !== !1, Ge = e.ALLOW_UNKNOWN_PROTOCOLS || !1, We = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, v = e.SAFE_FOR_TEMPLATES || !1, te = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, k = e.RETURN_DOM || !1, ne = e.RETURN_DOM_FRAGMENT || !1, oe = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, Be = e.SANITIZE_DOM !== !1, Ye = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, j = e.IN_PLACE || !1, Ue = e.ALLOWED_URI_REGEXP || _t, H = e.NAMESPACE || N, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, se = e.HTML_INTEGRATION_POINTS || se, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), v && (_e = !1), ne && (k = !0), U && (p = r({}, ft), T = [], U.html === !0 && (r(p, ct), r(T, ut)), U.svg === !0 && (r(p, Ie), r(T, we), r(T, ce)), U.svgFilters === !0 && (r(p, Me), r(T, we), r(T, ce)), U.mathMl === !0 && (r(p, Ce), r(T, mt), r(T, ce))), e.ADD_TAGS && (p === Fe && (p = C(p)), r(p, e.ADD_TAGS, d)), e.ADD_ATTR && (T === He && (T = C(T)), r(T, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && r(Se, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (F === Xe && (F = C(F)), r(F, e.FORBID_CONTENTS, d)), Ae && (p["#text"] = !0), w && r(p, ["html", "head", "body"]), p.table && (r(p, ["tbody"]), delete X.tbody), e.TRUSTED_TYPES_POLICY) {
251
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
252
+ throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
253
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
254
+ throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
255
+ g = e.TRUSTED_TYPES_POLICY, Y = g.createHTML("");
256
+ } else
257
+ g === void 0 && (g = fn(Q, c)), g !== null && typeof Y == "string" && (Y = g.createHTML(""));
258
+ S && S(e), z = e;
259
+ }
260
+ }, Ke = r({}, [...Ie, ...Me, ...Jt]), Ze = r({}, [...Ce, ...Qt]), Gt = function(e) {
261
+ let t = ee(e);
262
+ (!t || !t.tagName) && (t = {
263
+ namespaceURI: H,
264
+ tagName: "template"
265
+ });
266
+ const n = fe(e.tagName), f = fe(t.tagName);
267
+ return Oe[e.namespaceURI] ? e.namespaceURI === ae ? t.namespaceURI === N ? n === "svg" : t.namespaceURI === ie ? n === "svg" && (f === "annotation-xml" || re[f]) : !!Ke[n] : e.namespaceURI === ie ? t.namespaceURI === N ? n === "math" : t.namespaceURI === ae ? n === "math" && se[f] : !!Ze[n] : e.namespaceURI === N ? t.namespaceURI === ae && !se[f] || t.namespaceURI === ie && !re[f] ? !1 : !Ze[n] && (Ut[n] || !Ke[n]) : !!(V === "application/xhtml+xml" && Oe[e.namespaceURI]) : !1;
268
+ }, D = function(e) {
269
+ $(o.removed, {
270
+ element: e
271
+ });
272
+ try {
273
+ ee(e).removeChild(e);
274
+ } catch {
275
+ yt(e);
276
+ }
277
+ }, x = function(e, t) {
278
+ try {
279
+ $(o.removed, {
280
+ attribute: t.getAttributeNode(e),
281
+ from: t
282
+ });
283
+ } catch {
284
+ $(o.removed, {
285
+ attribute: null,
286
+ from: t
287
+ });
288
+ }
289
+ if (t.removeAttribute(e), e === "is")
290
+ if (k || ne)
291
+ try {
292
+ D(t);
293
+ } catch {
294
+ }
295
+ else
296
+ try {
297
+ t.setAttribute(e, "");
298
+ } catch {
299
+ }
300
+ }, Je = function(e) {
301
+ let t = null, n = null;
302
+ if (he)
303
+ e = "<remove></remove>" + e;
304
+ else {
305
+ const m = Ne(e, /^[\r\n\t ]+/);
306
+ n = m && m[0];
307
+ }
308
+ V === "application/xhtml+xml" && H === N && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
309
+ const f = g ? g.createHTML(e) : e;
310
+ if (H === N)
311
+ try {
312
+ t = new Rt().parseFromString(f, V);
313
+ } catch {
314
+ }
315
+ if (!t || !t.documentElement) {
316
+ t = me.createDocument(H, "template", null);
317
+ try {
318
+ t.documentElement.innerHTML = Re ? Y : f;
319
+ } catch {
320
+ }
321
+ }
322
+ const _ = t.body || t.documentElement;
323
+ return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), H === N ? It.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
324
+ }, Qe = function(e) {
325
+ return Dt.call(
326
+ e.ownerDocument || e,
327
+ e,
328
+ // eslint-disable-next-line no-bitwise
329
+ W.SHOW_ELEMENT | W.SHOW_COMMENT | W.SHOW_TEXT | W.SHOW_PROCESSING_INSTRUCTION | W.SHOW_CDATA_SECTION,
330
+ null
331
+ );
332
+ }, Le = function(e) {
333
+ return e instanceof St && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof At) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
334
+ }, et = function(e) {
335
+ return typeof ue == "function" && e instanceof ue;
336
+ };
337
+ function I(i, e, t) {
338
+ le(i, (n) => {
339
+ n.call(o, e, t, z);
340
+ });
341
+ }
342
+ const tt = function(e) {
343
+ let t = null;
344
+ if (I(h.beforeSanitizeElements, e, null), Le(e))
345
+ return D(e), !0;
346
+ const n = d(e.nodeName);
347
+ if (I(h.uponSanitizeElement, e, {
348
+ tagName: n,
349
+ allowedTags: p
350
+ }), te && e.hasChildNodes() && !et(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === J.progressingInstruction || te && e.nodeType === J.comment && A(/<[/\w]/g, e.data))
351
+ return D(e), !0;
352
+ if (!p[n] || X[n]) {
353
+ if (!X[n] && ot(n) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
354
+ return !1;
355
+ if (Ae && !F[n]) {
356
+ const f = ee(e) || e.parentNode, _ = bt(e) || e.childNodes;
357
+ if (_ && f) {
358
+ const m = _.length;
359
+ for (let y = m - 1; y >= 0; --y) {
360
+ const M = Ot(_[y], !0);
361
+ M.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(M, Lt(e));
362
+ }
363
+ }
364
+ }
365
+ return D(e), !0;
366
+ }
367
+ return e instanceof ve && !Gt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (v && e.nodeType === J.text && (t = e.textContent, le([pe, de, Te], (f) => {
368
+ t = q(t, f, " ");
369
+ }), e.textContent !== t && ($(o.removed, {
370
+ element: e.cloneNode()
371
+ }), e.textContent = t)), I(h.afterSanitizeElements, e, null), !1);
372
+ }, nt = function(e, t, n) {
373
+ if (Be && (t === "id" || t === "name") && (n in l || n in zt))
374
+ return !1;
375
+ if (!(_e && !Ee[t] && A(Ct, t))) {
376
+ if (!(ze && A(wt, t))) {
377
+ if (!T[t] || Ee[t]) {
378
+ if (
379
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
380
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
381
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
382
+ !(ot(e) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && A(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
383
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
384
+ t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
385
+ )
386
+ return !1;
387
+ } else if (!Se[t]) {
388
+ if (!A(Ue, q(n, ke, ""))) {
389
+ if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && $t(n, "data:") === 0 && je[e])) {
390
+ if (!(Ge && !A(xt, q(n, ke, "")))) {
391
+ if (n)
392
+ return !1;
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ return !0;
400
+ }, ot = function(e) {
401
+ return e !== "annotation-xml" && Ne(e, Pt);
402
+ }, it = function(e) {
403
+ I(h.beforeSanitizeAttributes, e, null);
404
+ const {
405
+ attributes: t
406
+ } = e;
407
+ if (!t || Le(e))
408
+ return;
409
+ const n = {
410
+ attrName: "",
411
+ attrValue: "",
412
+ keepAttr: !0,
413
+ allowedAttributes: T,
414
+ forceKeepAttr: void 0
415
+ };
416
+ let f = t.length;
417
+ for (; f--; ) {
418
+ const _ = t[f], {
419
+ name: m,
420
+ namespaceURI: y,
421
+ value: M
422
+ } = _, G = d(m), be = M;
423
+ let E = m === "value" ? be : qt(be);
424
+ if (n.attrName = G, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, I(h.uponSanitizeAttribute, e, n), E = n.attrValue, Ye && (G === "id" || G === "name") && (x(m, e), E = vt + E), te && A(/((--!?|])>)|<\/(style|title|textarea)/i, E)) {
425
+ x(m, e);
426
+ continue;
427
+ }
428
+ if (G === "attributename" && Ne(E, "href")) {
429
+ x(m, e);
430
+ continue;
431
+ }
432
+ if (n.forceKeepAttr)
433
+ continue;
434
+ if (!n.keepAttr) {
435
+ x(m, e);
436
+ continue;
437
+ }
438
+ if (!We && A(/\/>/i, E)) {
439
+ x(m, e);
440
+ continue;
441
+ }
442
+ v && le([pe, de, Te], (rt) => {
443
+ E = q(E, rt, " ");
444
+ });
445
+ const at = d(e.nodeName);
446
+ if (!nt(at, G, E)) {
447
+ x(m, e);
448
+ continue;
449
+ }
450
+ if (g && typeof Q == "object" && typeof Q.getAttributeType == "function" && !y)
451
+ switch (Q.getAttributeType(at, G)) {
452
+ case "TrustedHTML": {
453
+ E = g.createHTML(E);
454
+ break;
455
+ }
456
+ case "TrustedScriptURL": {
457
+ E = g.createScriptURL(E);
458
+ break;
459
+ }
460
+ }
461
+ if (E !== be)
462
+ try {
463
+ y ? e.setAttributeNS(y, m, E) : e.setAttribute(m, E), Le(e) ? D(e) : lt(o.removed);
464
+ } catch {
465
+ x(m, e);
466
+ }
467
+ }
468
+ I(h.afterSanitizeAttributes, e, null);
469
+ }, Wt = function i(e) {
470
+ let t = null;
471
+ const n = Qe(e);
472
+ for (I(h.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
473
+ I(h.uponSanitizeShadowNode, t, null), tt(t), it(t), t.content instanceof O && i(t.content);
474
+ I(h.afterSanitizeShadowDOM, e, null);
475
+ };
476
+ return o.sanitize = function(i) {
477
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, f = null, _ = null;
478
+ if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !et(i))
479
+ if (typeof i.toString == "function") {
480
+ if (i = i.toString(), typeof i != "string")
481
+ throw K("dirty is not a string, aborting");
482
+ } else
483
+ throw K("toString is not a function");
484
+ if (!o.isSupported)
485
+ return i;
486
+ if (ge || ye(e), o.removed = [], typeof i == "string" && (j = !1), j) {
487
+ if (i.nodeName) {
488
+ const M = d(i.nodeName);
489
+ if (!p[M] || X[M])
490
+ throw K("root node is forbidden and cannot be sanitized in-place");
491
+ }
492
+ } else if (i instanceof ue)
493
+ t = Je("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === J.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
494
+ else {
495
+ if (!k && !v && !w && // eslint-disable-next-line unicorn/prefer-includes
496
+ i.indexOf("<") === -1)
497
+ return g && oe ? g.createHTML(i) : i;
498
+ if (t = Je(i), !t)
499
+ return k ? null : oe ? Y : "";
500
+ }
501
+ t && he && D(t.firstChild);
502
+ const m = Qe(j ? i : t);
503
+ for (; f = m.nextNode(); )
504
+ tt(f), it(f), f.content instanceof O && Wt(f.content);
505
+ if (j)
506
+ return i;
507
+ if (k) {
508
+ if (ne)
509
+ for (_ = Nt.call(t.ownerDocument); t.firstChild; )
510
+ _.appendChild(t.firstChild);
511
+ else
512
+ _ = t;
513
+ return (T.shadowroot || T.shadowrootmode) && (_ = Mt.call(a, _, !0)), _;
514
+ }
515
+ let y = w ? t.outerHTML : t.innerHTML;
516
+ return w && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(gt, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
517
+ ` + y), v && le([pe, de, Te], (M) => {
518
+ y = q(y, M, " ");
519
+ }), g && oe ? g.createHTML(y) : y;
520
+ }, o.setConfig = function() {
521
+ let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
522
+ ye(i), ge = !0;
523
+ }, o.clearConfig = function() {
524
+ z = null, ge = !1;
525
+ }, o.isValidAttribute = function(i, e, t) {
526
+ z || ye({});
527
+ const n = d(i), f = d(e);
528
+ return nt(n, f, t);
529
+ }, o.addHook = function(i, e) {
530
+ typeof e == "function" && $(h[i], e);
531
+ }, o.removeHook = function(i, e) {
532
+ if (e !== void 0) {
533
+ const t = jt(h[i], e);
534
+ return t === -1 ? void 0 : Vt(h[i], t, 1)[0];
535
+ }
536
+ return lt(h[i]);
537
+ }, o.removeHooks = function(i) {
538
+ h[i] = [];
539
+ }, o.removeAllHooks = function() {
540
+ h = dt();
541
+ }, o;
542
+ }
543
+ var un = ht();
544
+ export {
545
+ un as default
546
+ };