@webority/ui-react 0.34.0 → 0.35.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.
- package/dist/components/AppAccordion.js +57 -0
- package/dist/components/AppActionIcon.js +53 -0
- package/dist/components/AppAlert.js +85 -0
- package/dist/components/AppAsyncBlock.js +48 -0
- package/dist/components/AppAutocomplete.js +93 -0
- package/dist/components/AppAvatar.js +143 -0
- package/dist/components/AppAvatarGroup.js +43 -0
- package/dist/components/AppAvatarPicker.js +247 -0
- package/dist/components/AppBadge.js +28 -0
- package/dist/components/AppBanner.js +49 -0
- package/dist/components/AppBreadcrumbs.js +24 -0
- package/dist/components/AppButton.js +85 -0
- package/dist/components/AppCalendar.js +72 -0
- package/dist/components/AppCard.js +110 -0
- package/dist/components/AppChart.js +153 -0
- package/dist/components/AppChartCard.js +125 -0
- package/dist/components/AppCheckbox.js +21 -0
- package/dist/components/AppChip.js +71 -0
- package/dist/components/AppChoiceCard.js +69 -0
- package/dist/components/AppChoiceChip.js +31 -0
- package/dist/components/AppColorField.js +63 -0
- package/dist/components/AppColumnMenu.js +27 -0
- package/dist/components/AppCommandPalette.js +164 -0
- package/dist/components/AppCompareTable.js +41 -0
- package/dist/components/AppConfirmDialog.js +93 -0
- package/dist/components/AppConsentBanner.js +37 -0
- package/dist/components/AppContextMenu.js +46 -0
- package/dist/components/AppCopyButton.js +41 -0
- package/dist/components/AppCountrySelect.js +75 -0
- package/dist/components/AppDashboardCell.js +19 -0
- package/dist/components/AppDashboardGrid.js +12 -0
- package/dist/components/AppDataTable.js +213 -0
- package/dist/components/AppDatePicker.js +59 -0
- package/dist/components/AppDateRangePicker.js +73 -0
- package/dist/components/AppDescriptions.js +40 -0
- package/dist/components/AppDropZone.js +106 -0
- package/dist/components/AppDropdown.js +90 -0
- package/dist/components/AppEmptyState.js +37 -0
- package/dist/components/AppErrorSummary.js +37 -0
- package/dist/components/AppFileAttachment.js +140 -0
- package/dist/components/AppFilePicker.js +220 -0
- package/dist/components/AppFileViewer.js +50 -0
- package/dist/components/AppFilterBar.js +129 -0
- package/dist/components/AppFloatingDock.js +47 -0
- package/dist/components/AppFormActions.js +23 -0
- package/dist/components/AppFormRow.js +24 -0
- package/dist/components/AppFormSection.js +32 -0
- package/dist/components/AppIcon.js +147 -0
- package/dist/components/AppInfoList.js +36 -0
- package/dist/components/AppInfoTip.js +41 -0
- package/dist/components/AppInput.js +269 -0
- package/dist/components/AppKanban.js +269 -0
- package/dist/components/AppKpiTile.js +91 -0
- package/dist/components/AppLink.js +74 -0
- package/dist/components/AppLogoPicker.js +264 -0
- package/dist/components/AppMeter.js +42 -0
- package/dist/components/AppModal.js +124 -0
- package/dist/components/AppMultiSelect.js +75 -0
- package/dist/components/AppNumberInput.js +139 -0
- package/dist/components/AppOtpInput.js +53 -0
- package/dist/components/AppPageHeader.js +82 -0
- package/dist/components/AppPagination.js +66 -0
- package/dist/components/AppPhoneNumberInput.js +53 -0
- package/dist/components/AppPopover.js +47 -0
- package/dist/components/AppPricingCard.js +58 -0
- package/dist/components/AppProgress.js +42 -0
- package/dist/components/AppQrCode.js +40 -0
- package/dist/components/AppRadio.js +21 -0
- package/dist/components/AppRadioGroup.js +79 -0
- package/dist/components/AppRepeater.js +57 -0
- package/dist/components/AppRequiredMark.js +11 -0
- package/dist/components/AppResourceCard.js +38 -0
- package/dist/components/AppResult.js +66 -0
- package/dist/components/AppRichText.js +72 -0
- package/dist/components/AppScrollbar.js +16 -0
- package/dist/components/AppSearch.js +52 -0
- package/dist/components/AppSegmented.js +87 -0
- package/dist/components/AppSelect.js +95 -0
- package/dist/components/AppSelectMini.js +45 -0
- package/dist/components/AppShell.js +709 -0
- package/dist/components/AppSidebarMenu.js +77 -0
- package/dist/components/AppSkeleton.js +24 -0
- package/dist/components/AppSlider.js +76 -0
- package/dist/components/AppSortableList.js +63 -0
- package/dist/components/AppSparkline.js +47 -0
- package/dist/components/AppSpinner.js +23 -0
- package/dist/components/AppSplash.js +62 -0
- package/dist/components/AppStatusBadge.js +22 -0
- package/dist/components/AppStepper.js +94 -0
- package/dist/components/AppSwitch.js +26 -0
- package/dist/components/AppTableEmptyState.js +30 -0
- package/dist/components/AppTablePagination.js +85 -0
- package/dist/components/AppTableToolbar.js +41 -0
- package/dist/components/AppTabs.js +195 -0
- package/dist/components/AppTagInput.js +63 -0
- package/dist/components/AppTextarea.js +81 -0
- package/dist/components/AppThemeToggle.js +102 -0
- package/dist/components/AppTimePicker.js +68 -0
- package/dist/components/AppTimeline.js +102 -0
- package/dist/components/AppToast.js +169 -0
- package/dist/components/AppToolbar.js +63 -0
- package/dist/components/AppTooltip.js +50 -0
- package/dist/components/AppTour.js +39 -0
- package/dist/components/AppTreeView.js +61 -0
- package/dist/components/AppWizard.js +82 -0
- package/dist/components/AppWorkspaceSwitcher.js +176 -0
- package/dist/components/ModalIcons.js +18 -0
- package/dist/components/iconCatalogLoaders.g.js +170 -0
- package/dist/components/iconCatalogNames.g.js +4 -0
- package/dist/components/iconGlyphs.g.js +211 -0
- package/dist/components/renderIconProp.js +13 -0
- package/dist/components/toast.js +41 -0
- package/dist/components/toastStore.js +78 -0
- package/dist/components/useWuiControl.js +106 -0
- package/dist/components/warnInvalidValue.js +17 -0
- package/dist/components/warnUnknownProps.js +17 -0
- package/dist/components/withTooltip.js +12 -0
- package/dist/lib/CheckField.js +37 -0
- package/dist/lib/FileItemRow.js +44 -0
- package/dist/lib/emptyValue.js +6 -0
- package/dist/lib/fileItem.js +27 -0
- package/dist/lib/focusField.js +14 -0
- package/dist/lib/listQuery.js +57 -0
- package/dist/lib/navMatch.js +29 -0
- package/dist/lib/pageWindow.js +14 -0
- package/dist/lib/qrCode.js +577 -0
- package/dist/lib/shellCookie.js +16 -0
- package/dist/lib/useCommandPaletteShortcut.js +15 -0
- package/dist/lib/useFloatingStack.js +25 -0
- package/dist/lib/useListQuery.js +120 -0
- package/dist/lib/usePagination.js +29 -0
- package/dist/lib/useTableView.js +42 -0
- package/dist/types/components/AppAutocomplete.d.ts +1 -1
- package/dist/types/components/AppAvatarPicker.d.ts +55 -0
- package/dist/types/components/AppCommandPalette.d.ts +1 -1
- package/dist/types/components/AppConsentBanner.d.ts +1 -1
- package/dist/types/components/AppContextMenu.d.ts +1 -1
- package/dist/types/components/AppCountrySelect.d.ts +1 -1
- package/dist/types/components/AppDatePicker.d.ts +1 -1
- package/dist/types/components/AppDateRangePicker.d.ts +1 -1
- package/dist/types/components/AppFloatingDock.d.ts +1 -1
- package/dist/types/components/AppKanban.d.ts +7 -2
- package/dist/types/components/AppLogoPicker.d.ts +1 -0
- package/dist/types/components/AppMultiSelect.d.ts +1 -1
- package/dist/types/components/AppOtpInput.d.ts +1 -1
- package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
- package/dist/types/components/AppSelect.d.ts +1 -1
- package/dist/types/components/AppSelectMini.d.ts +1 -1
- package/dist/types/components/AppSlider.d.ts +1 -1
- package/dist/types/components/AppSortableList.d.ts +1 -1
- package/dist/types/components/AppTagInput.d.ts +1 -1
- package/dist/types/components/AppThemeToggle.d.ts +9 -6
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/dist/types/components/AppTour.d.ts +1 -1
- package/dist/types/components/AppTreeView.d.ts +1 -1
- package/dist/types/components/AppWizard.d.ts +1 -1
- package/dist/types/components/ModalIcons.d.ts +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/ui-react.js +117 -9525
- package/package.json +3 -3
- /package/dist/{a.g-Cp8GEdyM.js → components/iconCatalogFull/bold/a.g.js} +0 -0
- /package/dist/{b.g-bKDfj9c5.js → components/iconCatalogFull/bold/b.g.js} +0 -0
- /package/dist/{c.g-DqGwABja.js → components/iconCatalogFull/bold/c.g.js} +0 -0
- /package/dist/{d.g-CipOBRsw.js → components/iconCatalogFull/bold/d.g.js} +0 -0
- /package/dist/{e.g-ChGIrYgq.js → components/iconCatalogFull/bold/e.g.js} +0 -0
- /package/dist/{f.g-DmHdWgNZ.js → components/iconCatalogFull/bold/f.g.js} +0 -0
- /package/dist/{g.g--ThCZYIr.js → components/iconCatalogFull/bold/g.g.js} +0 -0
- /package/dist/{h.g-Ci-Er6CR.js → components/iconCatalogFull/bold/h.g.js} +0 -0
- /package/dist/{i.g-DZQ65QIT.js → components/iconCatalogFull/bold/i.g.js} +0 -0
- /package/dist/{j.g-aomxS6QS.js → components/iconCatalogFull/bold/j.g.js} +0 -0
- /package/dist/{k.g-Bb2wQ2Ms.js → components/iconCatalogFull/bold/k.g.js} +0 -0
- /package/dist/{l.g-DZ1zMM1w.js → components/iconCatalogFull/bold/l.g.js} +0 -0
- /package/dist/{m.g-DFbdZm5W.js → components/iconCatalogFull/bold/m.g.js} +0 -0
- /package/dist/{n.g-UvurkmXk.js → components/iconCatalogFull/bold/n.g.js} +0 -0
- /package/dist/{o.g-D5Y5oCQH.js → components/iconCatalogFull/bold/o.g.js} +0 -0
- /package/dist/{p.g-CXg3EaEZ.js → components/iconCatalogFull/bold/p.g.js} +0 -0
- /package/dist/{q.g-Cy7tXvtO.js → components/iconCatalogFull/bold/q.g.js} +0 -0
- /package/dist/{r.g-C8yWsdze.js → components/iconCatalogFull/bold/r.g.js} +0 -0
- /package/dist/{s.g-Duv4gf-_.js → components/iconCatalogFull/bold/s.g.js} +0 -0
- /package/dist/{t.g-C4d7xUwA.js → components/iconCatalogFull/bold/t.g.js} +0 -0
- /package/dist/{u.g-D96_3gsv.js → components/iconCatalogFull/bold/u.g.js} +0 -0
- /package/dist/{v.g-taJ1oC9Z.js → components/iconCatalogFull/bold/v.g.js} +0 -0
- /package/dist/{w.g-DnmMiN_H.js → components/iconCatalogFull/bold/w.g.js} +0 -0
- /package/dist/{x.g-DWUT_reV.js → components/iconCatalogFull/bold/x.g.js} +0 -0
- /package/dist/{z.g-Bmt20-ur.js → components/iconCatalogFull/bold/z.g.js} +0 -0
- /package/dist/{a.g-B1BBAE2l.js → components/iconCatalogFull/broken/a.g.js} +0 -0
- /package/dist/{b.g-B162ikjP.js → components/iconCatalogFull/broken/b.g.js} +0 -0
- /package/dist/{c.g-DiBD244Y.js → components/iconCatalogFull/broken/c.g.js} +0 -0
- /package/dist/{d.g-Cs9TrwFl.js → components/iconCatalogFull/broken/d.g.js} +0 -0
- /package/dist/{e.g-Ce9W1eMC.js → components/iconCatalogFull/broken/e.g.js} +0 -0
- /package/dist/{f.g-YGFA9XSP.js → components/iconCatalogFull/broken/f.g.js} +0 -0
- /package/dist/{g.g-CztV9P0x.js → components/iconCatalogFull/broken/g.g.js} +0 -0
- /package/dist/{h.g-CzRUdkfn.js → components/iconCatalogFull/broken/h.g.js} +0 -0
- /package/dist/{i.g-iI15Wiv2.js → components/iconCatalogFull/broken/i.g.js} +0 -0
- /package/dist/{j.g-CTjAiDOh.js → components/iconCatalogFull/broken/j.g.js} +0 -0
- /package/dist/{k.g-CifZIVeO.js → components/iconCatalogFull/broken/k.g.js} +0 -0
- /package/dist/{l.g-BMDbVi8H.js → components/iconCatalogFull/broken/l.g.js} +0 -0
- /package/dist/{m.g-Dcv_pEO4.js → components/iconCatalogFull/broken/m.g.js} +0 -0
- /package/dist/{n.g-DG8THBSN.js → components/iconCatalogFull/broken/n.g.js} +0 -0
- /package/dist/{o.g-BmDWTFR9.js → components/iconCatalogFull/broken/o.g.js} +0 -0
- /package/dist/{p.g-DBbjzvfV.js → components/iconCatalogFull/broken/p.g.js} +0 -0
- /package/dist/{q.g-CtDV62pA.js → components/iconCatalogFull/broken/q.g.js} +0 -0
- /package/dist/{r.g-Dus-zLxh.js → components/iconCatalogFull/broken/r.g.js} +0 -0
- /package/dist/{s.g-Ccoxarre.js → components/iconCatalogFull/broken/s.g.js} +0 -0
- /package/dist/{t.g-Dhkar577.js → components/iconCatalogFull/broken/t.g.js} +0 -0
- /package/dist/{u.g-C6mC8OrR.js → components/iconCatalogFull/broken/u.g.js} +0 -0
- /package/dist/{v.g-Ccd_-2QB.js → components/iconCatalogFull/broken/v.g.js} +0 -0
- /package/dist/{w.g-DN5a2C4A.js → components/iconCatalogFull/broken/w.g.js} +0 -0
- /package/dist/{x.g-6q1-4uTL.js → components/iconCatalogFull/broken/x.g.js} +0 -0
- /package/dist/{z.g-z49BBBLF.js → components/iconCatalogFull/broken/z.g.js} +0 -0
- /package/dist/{a.g-5LWyM-GC.js → components/iconCatalogFull/bulk/a.g.js} +0 -0
- /package/dist/{b.g-Bu-DvCAC.js → components/iconCatalogFull/bulk/b.g.js} +0 -0
- /package/dist/{c.g-DL8VdtRB.js → components/iconCatalogFull/bulk/c.g.js} +0 -0
- /package/dist/{d.g-Dp8Eazt1.js → components/iconCatalogFull/bulk/d.g.js} +0 -0
- /package/dist/{e.g-DxMDwDJJ.js → components/iconCatalogFull/bulk/e.g.js} +0 -0
- /package/dist/{f.g-D2SOwc4J.js → components/iconCatalogFull/bulk/f.g.js} +0 -0
- /package/dist/{g.g-gPtoLmT2.js → components/iconCatalogFull/bulk/g.g.js} +0 -0
- /package/dist/{h.g-ezEFj2YC.js → components/iconCatalogFull/bulk/h.g.js} +0 -0
- /package/dist/{i.g-DMM4-xE0.js → components/iconCatalogFull/bulk/i.g.js} +0 -0
- /package/dist/{j.g-BPszpMm1.js → components/iconCatalogFull/bulk/j.g.js} +0 -0
- /package/dist/{k.g-BeMlVIgm.js → components/iconCatalogFull/bulk/k.g.js} +0 -0
- /package/dist/{l.g-C_pTRDDL.js → components/iconCatalogFull/bulk/l.g.js} +0 -0
- /package/dist/{m.g-CytECcy1.js → components/iconCatalogFull/bulk/m.g.js} +0 -0
- /package/dist/{n.g-BDt_DYat.js → components/iconCatalogFull/bulk/n.g.js} +0 -0
- /package/dist/{o.g-DSyIOA1B.js → components/iconCatalogFull/bulk/o.g.js} +0 -0
- /package/dist/{p.g-D5tA2vwU.js → components/iconCatalogFull/bulk/p.g.js} +0 -0
- /package/dist/{q.g-1Lw4aFTv.js → components/iconCatalogFull/bulk/q.g.js} +0 -0
- /package/dist/{r.g-C5gZi2H7.js → components/iconCatalogFull/bulk/r.g.js} +0 -0
- /package/dist/{s.g-D41EhCR8.js → components/iconCatalogFull/bulk/s.g.js} +0 -0
- /package/dist/{t.g-Bxhb2WIA.js → components/iconCatalogFull/bulk/t.g.js} +0 -0
- /package/dist/{u.g-D7I_vPrG.js → components/iconCatalogFull/bulk/u.g.js} +0 -0
- /package/dist/{v.g-CF_fpvOP.js → components/iconCatalogFull/bulk/v.g.js} +0 -0
- /package/dist/{w.g-7MAxYD_f.js → components/iconCatalogFull/bulk/w.g.js} +0 -0
- /package/dist/{x.g-DUo4WukH.js → components/iconCatalogFull/bulk/x.g.js} +0 -0
- /package/dist/{z.g-CIYyNruu.js → components/iconCatalogFull/bulk/z.g.js} +0 -0
- /package/dist/{a.g-CKE-UVlB.js → components/iconCatalogFull/linear/a.g.js} +0 -0
- /package/dist/{b.g-Dkq-W_Lw.js → components/iconCatalogFull/linear/b.g.js} +0 -0
- /package/dist/{c.g-b4cy8Ev3.js → components/iconCatalogFull/linear/c.g.js} +0 -0
- /package/dist/{d.g-C3NmjrFi.js → components/iconCatalogFull/linear/d.g.js} +0 -0
- /package/dist/{e.g-DNY2Uh45.js → components/iconCatalogFull/linear/e.g.js} +0 -0
- /package/dist/{f.g-_qCUZhKl.js → components/iconCatalogFull/linear/f.g.js} +0 -0
- /package/dist/{g.g-DiC2yVQt.js → components/iconCatalogFull/linear/g.g.js} +0 -0
- /package/dist/{h.g-C0eQ0GQE.js → components/iconCatalogFull/linear/h.g.js} +0 -0
- /package/dist/{i.g-V-F-OHrS.js → components/iconCatalogFull/linear/i.g.js} +0 -0
- /package/dist/{j.g-BvuipVWw.js → components/iconCatalogFull/linear/j.g.js} +0 -0
- /package/dist/{k.g-Bq4FcDK3.js → components/iconCatalogFull/linear/k.g.js} +0 -0
- /package/dist/{l.g-DA6nIw_z.js → components/iconCatalogFull/linear/l.g.js} +0 -0
- /package/dist/{m.g-Cj4NTa9B.js → components/iconCatalogFull/linear/m.g.js} +0 -0
- /package/dist/{n.g-DhZ0Lcm6.js → components/iconCatalogFull/linear/n.g.js} +0 -0
- /package/dist/{o.g-C5BY8UNh.js → components/iconCatalogFull/linear/o.g.js} +0 -0
- /package/dist/{p.g-CXYzEsVb.js → components/iconCatalogFull/linear/p.g.js} +0 -0
- /package/dist/{q.g-Bg-QqUEk.js → components/iconCatalogFull/linear/q.g.js} +0 -0
- /package/dist/{r.g-BSSEI7vV.js → components/iconCatalogFull/linear/r.g.js} +0 -0
- /package/dist/{s.g-5lIn93sd.js → components/iconCatalogFull/linear/s.g.js} +0 -0
- /package/dist/{t.g-C9DMEGtG.js → components/iconCatalogFull/linear/t.g.js} +0 -0
- /package/dist/{u.g-ia-nNvjK.js → components/iconCatalogFull/linear/u.g.js} +0 -0
- /package/dist/{v.g-IFr8O1YA.js → components/iconCatalogFull/linear/v.g.js} +0 -0
- /package/dist/{w.g-BrAIH76H.js → components/iconCatalogFull/linear/w.g.js} +0 -0
- /package/dist/{x.g-CIuI3Fqx.js → components/iconCatalogFull/linear/x.g.js} +0 -0
- /package/dist/{z.g-BUP3BJiy.js → components/iconCatalogFull/linear/z.g.js} +0 -0
- /package/dist/{a.g-KjYETv0g.js → components/iconCatalogFull/outline/a.g.js} +0 -0
- /package/dist/{b.g-MJlor3xB.js → components/iconCatalogFull/outline/b.g.js} +0 -0
- /package/dist/{c.g-PBMUuqTQ.js → components/iconCatalogFull/outline/c.g.js} +0 -0
- /package/dist/{d.g-DVdiUnBR.js → components/iconCatalogFull/outline/d.g.js} +0 -0
- /package/dist/{e.g-2mocZT4k.js → components/iconCatalogFull/outline/e.g.js} +0 -0
- /package/dist/{f.g-CIsVyKpG.js → components/iconCatalogFull/outline/f.g.js} +0 -0
- /package/dist/{g.g-CJ1Yjs6-.js → components/iconCatalogFull/outline/g.g.js} +0 -0
- /package/dist/{h.g-CgHsGdLb.js → components/iconCatalogFull/outline/h.g.js} +0 -0
- /package/dist/{i.g-Ba9q7vMi.js → components/iconCatalogFull/outline/i.g.js} +0 -0
- /package/dist/{j.g-AT7T_7fn.js → components/iconCatalogFull/outline/j.g.js} +0 -0
- /package/dist/{k.g-BJ0rj5XB.js → components/iconCatalogFull/outline/k.g.js} +0 -0
- /package/dist/{l.g-B_bLp8m2.js → components/iconCatalogFull/outline/l.g.js} +0 -0
- /package/dist/{m.g-Dgj5H5KY.js → components/iconCatalogFull/outline/m.g.js} +0 -0
- /package/dist/{n.g-CM9J_tyR.js → components/iconCatalogFull/outline/n.g.js} +0 -0
- /package/dist/{o.g-B9NPVFUv.js → components/iconCatalogFull/outline/o.g.js} +0 -0
- /package/dist/{p.g-Dt5NMAPz.js → components/iconCatalogFull/outline/p.g.js} +0 -0
- /package/dist/{q.g-C4dBmUaO.js → components/iconCatalogFull/outline/q.g.js} +0 -0
- /package/dist/{r.g-D1cgPNdo.js → components/iconCatalogFull/outline/r.g.js} +0 -0
- /package/dist/{s.g-CikU_E1r.js → components/iconCatalogFull/outline/s.g.js} +0 -0
- /package/dist/{t.g-Cvg4dLth.js → components/iconCatalogFull/outline/t.g.js} +0 -0
- /package/dist/{u.g-DihXFOEv.js → components/iconCatalogFull/outline/u.g.js} +0 -0
- /package/dist/{v.g-Yt58dVke.js → components/iconCatalogFull/outline/v.g.js} +0 -0
- /package/dist/{w.g-DgdwQxer.js → components/iconCatalogFull/outline/w.g.js} +0 -0
- /package/dist/{x.g-B-WlL4DI.js → components/iconCatalogFull/outline/x.g.js} +0 -0
- /package/dist/{z.g-CSusgZor.js → components/iconCatalogFull/outline/z.g.js} +0 -0
- /package/dist/{a.g-D1PdkV5E.js → components/iconCatalogFull/twotone/a.g.js} +0 -0
- /package/dist/{b.g-F1eKfRpo.js → components/iconCatalogFull/twotone/b.g.js} +0 -0
- /package/dist/{c.g-DKzspN6u.js → components/iconCatalogFull/twotone/c.g.js} +0 -0
- /package/dist/{d.g-C8KPpY8s.js → components/iconCatalogFull/twotone/d.g.js} +0 -0
- /package/dist/{e.g-B1bvEARe.js → components/iconCatalogFull/twotone/e.g.js} +0 -0
- /package/dist/{f.g-DEKavmMH.js → components/iconCatalogFull/twotone/f.g.js} +0 -0
- /package/dist/{g.g-B1u2EvQZ.js → components/iconCatalogFull/twotone/g.g.js} +0 -0
- /package/dist/{h.g-Dxw84X7K.js → components/iconCatalogFull/twotone/h.g.js} +0 -0
- /package/dist/{i.g-BNxSASLW.js → components/iconCatalogFull/twotone/i.g.js} +0 -0
- /package/dist/{j.g-BBP7_cik.js → components/iconCatalogFull/twotone/j.g.js} +0 -0
- /package/dist/{k.g-DSSazL_b.js → components/iconCatalogFull/twotone/k.g.js} +0 -0
- /package/dist/{l.g-eEit84D7.js → components/iconCatalogFull/twotone/l.g.js} +0 -0
- /package/dist/{m.g-DDIUTIAb.js → components/iconCatalogFull/twotone/m.g.js} +0 -0
- /package/dist/{n.g-BIYpVBEb.js → components/iconCatalogFull/twotone/n.g.js} +0 -0
- /package/dist/{o.g-B95BaazY.js → components/iconCatalogFull/twotone/o.g.js} +0 -0
- /package/dist/{p.g-HXmphCe0.js → components/iconCatalogFull/twotone/p.g.js} +0 -0
- /package/dist/{q.g-CPyhElA_.js → components/iconCatalogFull/twotone/q.g.js} +0 -0
- /package/dist/{r.g-DIEF7HkY.js → components/iconCatalogFull/twotone/r.g.js} +0 -0
- /package/dist/{s.g-BX2BLrIK.js → components/iconCatalogFull/twotone/s.g.js} +0 -0
- /package/dist/{t.g-9FQPNgd_.js → components/iconCatalogFull/twotone/t.g.js} +0 -0
- /package/dist/{u.g-Cl8s3gGa.js → components/iconCatalogFull/twotone/u.g.js} +0 -0
- /package/dist/{v.g-BxRTxjbP.js → components/iconCatalogFull/twotone/v.g.js} +0 -0
- /package/dist/{w.g-BRwJSEbR.js → components/iconCatalogFull/twotone/w.g.js} +0 -0
- /package/dist/{x.g-Cc7upOBC.js → components/iconCatalogFull/twotone/x.g.js} +0 -0
- /package/dist/{z.g-COIy6PjH.js → components/iconCatalogFull/twotone/z.g.js} +0 -0
- /package/dist/{iconVariants.g-BBn9-u3W.js → components/iconVariants.g.js} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useInsertionEffect as n, useRef as r } from "react";
|
|
2
|
+
//#region src/components/useWuiControl.js
|
|
3
|
+
function i({ ref: i, value: c, onChange: l, readValue: u, writeValue: d, events: f = a, on: p } = {}) {
|
|
4
|
+
let m = r(null), h = u ?? o, g = d ?? s, _ = (f || a).join("\0"), v = Object.keys(p ?? {}).join("\0"), y = r(null);
|
|
5
|
+
y.current === null && (y.current = {
|
|
6
|
+
ref: i,
|
|
7
|
+
value: c,
|
|
8
|
+
onChange: l,
|
|
9
|
+
read: h,
|
|
10
|
+
write: g,
|
|
11
|
+
eventKey: _,
|
|
12
|
+
on: p
|
|
13
|
+
}), n(() => {
|
|
14
|
+
y.current = {
|
|
15
|
+
ref: i,
|
|
16
|
+
value: c,
|
|
17
|
+
onChange: l,
|
|
18
|
+
read: h,
|
|
19
|
+
write: g,
|
|
20
|
+
eventKey: _,
|
|
21
|
+
on: p
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
let b = r(null), x = e(() => {
|
|
25
|
+
let e = b.current;
|
|
26
|
+
if (e) {
|
|
27
|
+
for (let t of e.names) e.el.removeEventListener(t, e.handler);
|
|
28
|
+
for (let t of e.extraNames) e.el.removeEventListener(t, e.extraHandler);
|
|
29
|
+
b.current = null;
|
|
30
|
+
}
|
|
31
|
+
}, []), S = e((e) => {
|
|
32
|
+
let t = y.current.eventKey ? y.current.eventKey.split("\0") : a, n = Object.keys(y.current.on ?? {}), r = {
|
|
33
|
+
el: e,
|
|
34
|
+
names: t,
|
|
35
|
+
extraNames: n,
|
|
36
|
+
last: void 0
|
|
37
|
+
};
|
|
38
|
+
r.handler = () => {
|
|
39
|
+
let t = y.current.read(e);
|
|
40
|
+
Object.is(t, r.last) || (r.last = t, y.current.onChange?.(t));
|
|
41
|
+
}, r.extraHandler = (e) => y.current.on?.[e.type]?.(e);
|
|
42
|
+
for (let n of t) e.addEventListener(n, r.handler);
|
|
43
|
+
for (let t of n) e.addEventListener(t, r.extraHandler);
|
|
44
|
+
b.current = r;
|
|
45
|
+
}, []), C = e((e) => {
|
|
46
|
+
m.current = e;
|
|
47
|
+
let t = y.current.ref;
|
|
48
|
+
typeof t == "function" ? t(e) : t && (t.current = e), x(), e && (S(e), y.current.value !== void 0 && y.current.write(e, y.current.value));
|
|
49
|
+
}, [x, S]);
|
|
50
|
+
return t(() => {
|
|
51
|
+
let e = m.current;
|
|
52
|
+
if (!e || c === void 0) return;
|
|
53
|
+
g(e, c);
|
|
54
|
+
let t = b.current;
|
|
55
|
+
t && !Object.is(c, t.last) && (t.last = void 0);
|
|
56
|
+
}, [c, g]), t(() => {
|
|
57
|
+
let e = m.current, t = b.current;
|
|
58
|
+
!e || !t || (t.names.join("\0") !== (_ || a.join("\0")) || t.extraNames.join("\0") !== v) && (x(), S(e));
|
|
59
|
+
}, [
|
|
60
|
+
_,
|
|
61
|
+
v,
|
|
62
|
+
x,
|
|
63
|
+
S
|
|
64
|
+
]), {
|
|
65
|
+
setRef: C,
|
|
66
|
+
innerRef: m
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
var a = ["change"];
|
|
70
|
+
function o(e) {
|
|
71
|
+
return e.value;
|
|
72
|
+
}
|
|
73
|
+
function s(e, t) {
|
|
74
|
+
let n = t ?? "";
|
|
75
|
+
String(e.value ?? "") !== String(n) && (e.value = n);
|
|
76
|
+
}
|
|
77
|
+
function c(e, t) {
|
|
78
|
+
let n = e || [], r = t || [];
|
|
79
|
+
return n.length === r.length && n.every((e, t) => {
|
|
80
|
+
let n = r[t];
|
|
81
|
+
if (e === n) return !0;
|
|
82
|
+
if (e == null || n == null || typeof e != "object" || typeof n != "object") return Object.is(e, n);
|
|
83
|
+
let i = Object.keys(e);
|
|
84
|
+
return i.length === Object.keys(n).length && i.every((t) => Object.is(e[t], n[t]));
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function l(e) {
|
|
88
|
+
return e.values;
|
|
89
|
+
}
|
|
90
|
+
function u(e, t) {
|
|
91
|
+
let n = t || [], r = e.values || [];
|
|
92
|
+
(n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
|
|
93
|
+
}
|
|
94
|
+
function d(e) {
|
|
95
|
+
return {
|
|
96
|
+
start: e.start,
|
|
97
|
+
end: e.end
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function f(e, t) {
|
|
101
|
+
if (t === void 0) return;
|
|
102
|
+
let n = Number.parseFloat(t);
|
|
103
|
+
Number.isFinite(n) && e.value !== n && (e.value = n);
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
export { i as default, c as optionsEqual, d as readRange, l as readValues, f as writeNumberValue, u as writeValues };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/warnInvalidValue.js
|
|
2
|
+
var e = () => {
|
|
3
|
+
try {
|
|
4
|
+
return process.env.NODE_ENV !== "production";
|
|
5
|
+
} catch {
|
|
6
|
+
return !0;
|
|
7
|
+
}
|
|
8
|
+
}, t = /* @__PURE__ */ new Set();
|
|
9
|
+
function n(n, r, i, a) {
|
|
10
|
+
if (!e() || i == null) return;
|
|
11
|
+
let o = a instanceof Set ? a : new Set(a);
|
|
12
|
+
if (o.has(i)) return;
|
|
13
|
+
let s = `${n}.${r}.${String(i)}`;
|
|
14
|
+
t.has(s) || (t.add(s), console.warn(`[@webority/ui-react] <${n}> received ${r}="${String(i)}", which is not one of ${[...o].map((e) => `"${e}"`).join(" | ")}. The component fell back to its default, so this renders something other than what the call site asks for — check the value against the component catalogue at https://ui-react.webority.dev.`));
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/warnUnknownProps.js
|
|
2
|
+
var e = /* @__PURE__ */ new Set(/* @__PURE__ */ "id.title.role.style.className.class.tabIndex.lang.dir.hidden.slot.part.draggable.spellCheck.translate.inert.popover.name.type.value.defaultValue.checked.defaultChecked.placeholder.disabled.readOnly.required.autoFocus.autoComplete.form.formAction.formMethod.formNoValidate.formTarget.min.max.step.minLength.maxLength.pattern.multiple.accept.capture.rows.cols.wrap.list.htmlFor.inputMode.enterKeyHint.href.target.rel.download.ping.referrerPolicy.src.srcSet.alt.width.height.loading.decoding.sizes.crossOrigin.useMap.colSpan.rowSpan.headers.scope.span.key.ref.children.dangerouslySetInnerHTML.suppressHydrationWarning".split(".")), t = () => {
|
|
3
|
+
try {
|
|
4
|
+
return process.env.NODE_ENV !== "production";
|
|
5
|
+
} catch {
|
|
6
|
+
return !0;
|
|
7
|
+
}
|
|
8
|
+
}, n = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), r = /* @__PURE__ */ new Set();
|
|
9
|
+
function i(i, a) {
|
|
10
|
+
if (!(!t() || !a) && !("as" in a)) for (let t of Object.keys(a)) {
|
|
11
|
+
if (n(t) || e.has(t)) continue;
|
|
12
|
+
let a = `${i}.${t}`;
|
|
13
|
+
r.has(a) || (r.add(a), console.warn(`[@webority/ui-react] <${i}> received an unknown prop "${t}". It is not part of the component's API and is not a valid HTML attribute, so it will either be dropped or land on the DOM — check the prop name against the component catalogue at https://ui-react.webority.dev.`));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import e from "./AppTooltip.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/withTooltip.jsx
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
return r == null || r === "" ? n : /* @__PURE__ */ t(e, {
|
|
6
|
+
content: r,
|
|
7
|
+
placement: i || "auto",
|
|
8
|
+
children: n
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { forwardRef as e, useId as t } from "react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region src/lib/CheckField.jsx
|
|
4
|
+
var i = e(function({ label: e, id: i, name: a, error: o, hint: s, className: c = "", rest: l = {}, inputType: u, wrapperClass: d }, f) {
|
|
5
|
+
let p = t(), m = i || p, h = o ? `${m}-error` : void 0, g = s ? `${m}-hint` : void 0;
|
|
6
|
+
return /* @__PURE__ */ r("div", {
|
|
7
|
+
className: `${d}${c ? ` ${c}` : ""}`,
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ n("input", {
|
|
10
|
+
type: u,
|
|
11
|
+
className: "form-check-input",
|
|
12
|
+
id: m,
|
|
13
|
+
name: a,
|
|
14
|
+
ref: f,
|
|
15
|
+
"aria-invalid": o ? "true" : "false",
|
|
16
|
+
"aria-describedby": h || g,
|
|
17
|
+
...l
|
|
18
|
+
}),
|
|
19
|
+
e != null && /* @__PURE__ */ n("label", {
|
|
20
|
+
className: "form-check-label",
|
|
21
|
+
htmlFor: m,
|
|
22
|
+
children: e
|
|
23
|
+
}),
|
|
24
|
+
o ? /* @__PURE__ */ n("div", {
|
|
25
|
+
className: "field-error",
|
|
26
|
+
id: h,
|
|
27
|
+
children: o
|
|
28
|
+
}) : s ? /* @__PURE__ */ n("div", {
|
|
29
|
+
className: "field-hint",
|
|
30
|
+
id: g,
|
|
31
|
+
children: s
|
|
32
|
+
}) : null
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { i as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import e from "../components/AppIcon.js";
|
|
2
|
+
import { nameOf as t, sizeLabelOf as n, useItemUrl as r } from "./fileItem.js";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/lib/FileItemRow.jsx
|
|
5
|
+
function o({ item: o, isImage: s, onRemove: c, noun: l = "attachment" }) {
|
|
6
|
+
let u = r(o, s), d = t(o), f = n(o);
|
|
7
|
+
return /* @__PURE__ */ a("div", {
|
|
8
|
+
className: "attach-item",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ i("span", {
|
|
11
|
+
className: "attach-item-media",
|
|
12
|
+
children: u ? /* @__PURE__ */ i("img", {
|
|
13
|
+
src: u,
|
|
14
|
+
alt: d
|
|
15
|
+
}) : /* @__PURE__ */ i(e, {
|
|
16
|
+
name: "file-text",
|
|
17
|
+
size: 18
|
|
18
|
+
})
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ a("span", {
|
|
21
|
+
className: "attach-item-info",
|
|
22
|
+
children: [/* @__PURE__ */ i("span", {
|
|
23
|
+
className: "attach-name",
|
|
24
|
+
children: d
|
|
25
|
+
}), f && /* @__PURE__ */ i("span", {
|
|
26
|
+
className: "attach-size",
|
|
27
|
+
children: f
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ i("button", {
|
|
31
|
+
type: "button",
|
|
32
|
+
className: "attach-item-remove",
|
|
33
|
+
"aria-label": `Remove ${d || l}`,
|
|
34
|
+
onClick: c,
|
|
35
|
+
children: /* @__PURE__ */ i(e, {
|
|
36
|
+
name: "x",
|
|
37
|
+
size: 16
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { o as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/lib/fileItem.js
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
|
|
5
|
+
}
|
|
6
|
+
function r(e) {
|
|
7
|
+
return e instanceof File ? e.name : e?.name;
|
|
8
|
+
}
|
|
9
|
+
function i(e) {
|
|
10
|
+
return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
|
|
11
|
+
}
|
|
12
|
+
function a(n, r) {
|
|
13
|
+
let [i, a] = t(null);
|
|
14
|
+
return e(() => {
|
|
15
|
+
if (!r) {
|
|
16
|
+
a(null);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (n instanceof File) {
|
|
20
|
+
let e = URL.createObjectURL(n);
|
|
21
|
+
return a(e), () => URL.revokeObjectURL(e);
|
|
22
|
+
}
|
|
23
|
+
a(n?.url || null);
|
|
24
|
+
}, [n, r]), i;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { n as keyOf, r as nameOf, i as sizeLabelOf, a as useItemUrl };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/lib/focusField.js
|
|
2
|
+
var e = "input:not([type=\"hidden\"]):not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (!t) return !1;
|
|
5
|
+
let n = [document.getElementById(t), ...document.getElementsByName(t)];
|
|
6
|
+
for (let t of n) {
|
|
7
|
+
if (!t) continue;
|
|
8
|
+
let n = t.matches(e) ? t : t.querySelector(e);
|
|
9
|
+
if (n) return n.scrollIntoView?.({ block: "center" }), n.focus({ preventScroll: !0 }), !0;
|
|
10
|
+
}
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/lib/listQuery.js
|
|
2
|
+
var e = [
|
|
3
|
+
"page",
|
|
4
|
+
"pageSize",
|
|
5
|
+
"sortBy",
|
|
6
|
+
"sortOrder"
|
|
7
|
+
], t = ["asc", "desc"], n = (e) => e == null || e === "", r = (e) => String(e).padStart(2, "0"), i = (e) => e instanceof Date ? `${e.getFullYear()}-${r(e.getMonth() + 1)}-${r(e.getDate())}` : String(e);
|
|
8
|
+
function a(t) {
|
|
9
|
+
if (e.includes(t)) throw Error(`"${t}" is reserved by the list query (${e.join(", ")}) and cannot name a filter.`);
|
|
10
|
+
}
|
|
11
|
+
function o({ page: e, pageSize: r, sortBy: o, sortOrder: s, filters: c } = {}) {
|
|
12
|
+
if (!n(s) && !t.includes(s)) throw Error(`sortOrder must be "asc" or "desc", got "${s}".`);
|
|
13
|
+
let l = new URLSearchParams();
|
|
14
|
+
n(e) || l.set("page", String(e)), n(r) || l.set("pageSize", String(r)), n(o) || (l.set("sortBy", o), l.set("sortOrder", s || "asc"));
|
|
15
|
+
for (let [e, t] of Object.entries(c ?? {})) if (a(e), Array.isArray(t)) for (let r of t) n(r) || l.append(e, i(r));
|
|
16
|
+
else typeof t == "object" && t && !(t instanceof Date) ? (n(t.from) || l.set(`${e}From`, i(t.from)), n(t.to) || l.set(`${e}To`, i(t.to))) : n(t) || l.set(e, i(t));
|
|
17
|
+
return l;
|
|
18
|
+
}
|
|
19
|
+
function s(e) {
|
|
20
|
+
return e.type === "multiEnum" ? [] : e.type === "dateRange" ? {
|
|
21
|
+
from: "",
|
|
22
|
+
to: ""
|
|
23
|
+
} : "";
|
|
24
|
+
}
|
|
25
|
+
function c(e, t) {
|
|
26
|
+
return t == null ? !1 : e.type === "multiEnum" ? t.length > 0 : e.type === "dateRange" ? !!(t.from || t.to) : t !== "";
|
|
27
|
+
}
|
|
28
|
+
function l(t = []) {
|
|
29
|
+
let n = new Set(e);
|
|
30
|
+
for (let { key: e, type: r } of t) r === "dateRange" ? (n.add(`${e}From`), n.add(`${e}To`)) : n.add(e);
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
var u = (e, t) => {
|
|
34
|
+
let n = Number(e);
|
|
35
|
+
return Number.isInteger(n) && n >= 1 ? n : t;
|
|
36
|
+
};
|
|
37
|
+
function d(e, { facets: n = [], defaults: r = {} } = {}) {
|
|
38
|
+
let i = typeof e == "string" ? new URLSearchParams(e) : e;
|
|
39
|
+
for (let e of n) a(e.key);
|
|
40
|
+
let o = l(n), c = [...i.keys()].some((e) => o.has(e)), d = i.get("sortOrder"), f = {};
|
|
41
|
+
for (let e of n) {
|
|
42
|
+
let { key: t, type: n } = e, a;
|
|
43
|
+
a = c ? n === "multiEnum" ? i.getAll(t).filter(Boolean) : n === "dateRange" ? {
|
|
44
|
+
from: i.get(`${t}From`) ?? "",
|
|
45
|
+
to: i.get(`${t}To`) ?? ""
|
|
46
|
+
} : i.get(t) ?? "" : r.filters?.[t] ?? s(e), f[t] = a;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
page: u(i.get("page"), r.page ?? 1),
|
|
50
|
+
pageSize: u(i.get("pageSize"), r.pageSize ?? 10),
|
|
51
|
+
sortBy: i.get("sortBy") || r.sortBy,
|
|
52
|
+
sortOrder: t.includes(d) ? d : r.sortOrder ?? "asc",
|
|
53
|
+
filters: f
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { e as RESERVED_LIST_QUERY_KEYS, o as buildListQuery, s as emptyFacetValue, c as isFacetActive, l as listQueryParamNames, d as parseListQuery };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/lib/navMatch.js
|
|
2
|
+
var e = /^[a-z][a-z0-9+.-]*:/i;
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (typeof t != "string" || t.trim() === "") return null;
|
|
5
|
+
let n = t.trim(), r = n.search(/[?#]/);
|
|
6
|
+
if (r >= 0 && (n = n.slice(0, r)), n.startsWith("~/") && (n = n.slice(1)), n === "" || n.startsWith("//") || e.test(n)) return null;
|
|
7
|
+
for (n[0] !== "/" && (n = `/${n}`); n.length > 1 && n.endsWith("/");) n = n.slice(0, -1);
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
function n(e, t, n) {
|
|
11
|
+
return e.toLowerCase() === t.toLowerCase() ? !0 : n || t === "/" ? !1 : e.toLowerCase().startsWith(`${t.toLowerCase()}/`);
|
|
12
|
+
}
|
|
13
|
+
function r(e, t) {
|
|
14
|
+
return e == null || t == null ? e : e.toLowerCase() === t.toLowerCase() ? "/" : e.toLowerCase().startsWith(`${t.toLowerCase()}/`) ? e.slice(t.length) : e;
|
|
15
|
+
}
|
|
16
|
+
function i(e, i, { exact: a = !1, also: o, pathBase: s } = {}) {
|
|
17
|
+
let c = t(e);
|
|
18
|
+
if (c == null) return -1;
|
|
19
|
+
let l = t(s);
|
|
20
|
+
l === "/" && (l = null);
|
|
21
|
+
let u = -1, d = (e, t) => {
|
|
22
|
+
e != null && n(c, e, t) && (u = Math.max(u, e.length));
|
|
23
|
+
};
|
|
24
|
+
d(r(t(i), l), a);
|
|
25
|
+
for (let e of o ?? []) d(r(t(e), l), !1);
|
|
26
|
+
return u;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { i as navMatchScore, t as normalizeNavPath };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/lib/pageWindow.js
|
|
2
|
+
var e = (e, t) => {
|
|
3
|
+
let n = [];
|
|
4
|
+
for (let r = e; r <= t; r += 1) n.push(r);
|
|
5
|
+
return n;
|
|
6
|
+
};
|
|
7
|
+
function t(t, n, { siblingCount: r = 2, boundaryCount: i = 1 } = {}) {
|
|
8
|
+
let a = Math.max(1, n), o = Math.min(Math.max(1, t), a);
|
|
9
|
+
if (a <= r * 2 + 3 + i * 2) return e(1, a);
|
|
10
|
+
let s = Math.max(o - r, i + 2), c = Math.min(o + r, a - i - 1), l = s > i + 2, u = c < a - i - 1, d = e(1, i);
|
|
11
|
+
return d.push(...l ? ["ellipsis-left"] : e(i + 1, s - 1)), d.push(...e(s, c)), d.push(...u ? ["ellipsis-right"] : e(c + 1, a - i)), d.push(...e(a - i + 1, a)), d;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as pageWindow };
|