@webority/ui-react 0.37.0 → 0.39.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 +1 -57
- package/dist/components/AppActionIcon.js +1 -53
- package/dist/components/AppAlert.js +1 -85
- package/dist/components/AppAsyncBlock.js +1 -48
- package/dist/components/AppAutocomplete.js +1 -93
- package/dist/components/AppAvatar.js +1 -143
- package/dist/components/AppAvatarGroup.js +1 -43
- package/dist/components/AppAvatarPicker.js +1 -247
- package/dist/components/AppBadge.js +1 -28
- package/dist/components/AppBanner.js +1 -49
- package/dist/components/AppBreadcrumbs.js +1 -24
- package/dist/components/AppButton.js +1 -85
- package/dist/components/AppCalendar.js +1 -72
- package/dist/components/AppCard.js +1 -110
- package/dist/components/AppChart.js +1 -153
- package/dist/components/AppChartCard.js +1 -125
- package/dist/components/AppCheckbox.js +1 -21
- package/dist/components/AppChip.js +1 -71
- package/dist/components/AppChoiceCard.js +1 -69
- package/dist/components/AppChoiceChip.js +1 -31
- package/dist/components/AppColorField.js +1 -63
- package/dist/components/AppColumnMenu.js +1 -27
- package/dist/components/AppCommandPalette.js +1 -164
- package/dist/components/AppCompareTable.js +1 -41
- package/dist/components/AppConfirmDialog.js +1 -93
- package/dist/components/AppConsentBanner.js +1 -37
- package/dist/components/AppContextMenu.js +1 -46
- package/dist/components/AppCopyButton.js +1 -41
- package/dist/components/AppCountrySelect.js +1 -75
- package/dist/components/AppDashboardCell.js +1 -19
- package/dist/components/AppDashboardGrid.js +1 -12
- package/dist/components/AppDataTable.js +1 -213
- package/dist/components/AppDatePicker.js +1 -59
- package/dist/components/AppDateRangePicker.js +1 -73
- package/dist/components/AppDescriptions.js +1 -40
- package/dist/components/AppDropZone.js +1 -106
- package/dist/components/AppDropdown.js +1 -90
- package/dist/components/AppEmptyState.js +1 -37
- package/dist/components/AppErrorSummary.js +1 -37
- package/dist/components/AppFileAttachment.js +1 -140
- package/dist/components/AppFilePicker.js +1 -220
- package/dist/components/AppFileViewer.js +1 -50
- package/dist/components/AppFilterBar.js +1 -129
- package/dist/components/AppFloatingDock.js +1 -47
- package/dist/components/AppFormActions.js +1 -23
- package/dist/components/AppFormRow.js +1 -24
- package/dist/components/AppFormSection.js +1 -32
- package/dist/components/AppIcon.js +1 -147
- package/dist/components/AppInfoList.js +1 -36
- package/dist/components/AppInfoTip.js +1 -41
- package/dist/components/AppInput.js +1 -269
- package/dist/components/AppKanban.js +1 -270
- package/dist/components/AppKpiTile.js +1 -91
- package/dist/components/AppLink.js +1 -74
- package/dist/components/AppLogoPicker.js +1 -264
- package/dist/components/AppMeter.js +1 -42
- package/dist/components/AppModal.js +1 -124
- package/dist/components/AppMultiSelect.js +1 -75
- package/dist/components/AppNumberInput.js +1 -139
- package/dist/components/AppOtpInput.js +1 -53
- package/dist/components/AppPageHeader.js +1 -82
- package/dist/components/AppPagination.js +1 -66
- package/dist/components/AppPhoneNumberInput.js +1 -53
- package/dist/components/AppPopover.js +1 -47
- package/dist/components/AppPricingCard.js +1 -58
- package/dist/components/AppProgress.js +1 -42
- package/dist/components/AppQrCode.js +1 -40
- package/dist/components/AppRadio.js +1 -21
- package/dist/components/AppRadioGroup.js +1 -79
- package/dist/components/AppRepeater.js +1 -57
- package/dist/components/AppRequiredMark.js +1 -11
- package/dist/components/AppResourceCard.js +1 -38
- package/dist/components/AppResult.js +1 -66
- package/dist/components/AppRichText.js +1 -72
- package/dist/components/AppRouteError.js +1 -0
- package/dist/components/AppScrollbar.js +1 -16
- package/dist/components/AppSearch.js +1 -52
- package/dist/components/AppSegmented.js +1 -87
- package/dist/components/AppSelect.js +1 -95
- package/dist/components/AppSelectMini.js +1 -45
- package/dist/components/AppShell.js +1 -712
- package/dist/components/AppSidebarMenu.js +1 -77
- package/dist/components/AppSkeleton.js +1 -24
- package/dist/components/AppSlider.js +1 -76
- package/dist/components/AppSortableList.js +1 -63
- package/dist/components/AppSparkline.js +1 -47
- package/dist/components/AppSpinner.js +1 -23
- package/dist/components/AppSplash.js +1 -62
- package/dist/components/AppStatusBadge.js +1 -22
- package/dist/components/AppStepper.js +1 -94
- package/dist/components/AppSwitch.js +1 -26
- package/dist/components/AppTableEmptyState.js +1 -30
- package/dist/components/AppTablePagination.js +1 -85
- package/dist/components/AppTableToolbar.js +1 -41
- package/dist/components/AppTabs.js +1 -195
- package/dist/components/AppTagInput.js +1 -63
- package/dist/components/AppTextarea.js +1 -81
- package/dist/components/AppThemeToggle.js +1 -102
- package/dist/components/AppTimePicker.js +1 -68
- package/dist/components/AppTimeline.js +1 -102
- package/dist/components/AppToast.js +1 -169
- package/dist/components/AppToolbar.js +1 -63
- package/dist/components/AppTooltip.js +1 -50
- package/dist/components/AppTour.js +1 -39
- package/dist/components/AppTreeView.js +1 -61
- package/dist/components/AppUpdateBar.js +1 -0
- package/dist/components/AppWizard.js +1 -82
- package/dist/components/AppWorkspaceSwitcher.js +1 -176
- package/dist/components/ModalIcons.js +1 -18
- package/dist/components/iconCatalogFull/bold/a.g.js +1 -69
- package/dist/components/iconCatalogFull/bold/b.g.js +1 -79
- package/dist/components/iconCatalogFull/bold/c.g.js +1 -98
- package/dist/components/iconCatalogFull/bold/d.g.js +1 -54
- package/dist/components/iconCatalogFull/bold/e.g.js +1 -34
- package/dist/components/iconCatalogFull/bold/f.g.js +1 -39
- package/dist/components/iconCatalogFull/bold/g.g.js +1 -43
- package/dist/components/iconCatalogFull/bold/h.g.js +1 -38
- package/dist/components/iconCatalogFull/bold/i.g.js +1 -20
- package/dist/components/iconCatalogFull/bold/j.g.js +1 -8
- package/dist/components/iconCatalogFull/bold/k.g.js +1 -9
- package/dist/components/iconCatalogFull/bold/l.g.js +1 -38
- package/dist/components/iconCatalogFull/bold/m.g.js +1 -91
- package/dist/components/iconCatalogFull/bold/n.g.js +1 -23
- package/dist/components/iconCatalogFull/bold/o.g.js +1 -11
- package/dist/components/iconCatalogFull/bold/p.g.js +1 -45
- package/dist/components/iconCatalogFull/bold/q.g.js +1 -12
- package/dist/components/iconCatalogFull/bold/r.g.js +1 -47
- package/dist/components/iconCatalogFull/bold/s.g.js +1 -99
- package/dist/components/iconCatalogFull/bold/t.g.js +1 -60
- package/dist/components/iconCatalogFull/bold/u.g.js +1 -17
- package/dist/components/iconCatalogFull/bold/v.g.js +1 -27
- package/dist/components/iconCatalogFull/bold/w.g.js +1 -30
- package/dist/components/iconCatalogFull/bold/x.g.js +1 -8
- package/dist/components/iconCatalogFull/bold/y.g.js +1 -0
- package/dist/components/iconCatalogFull/bold/z.g.js +1 -7
- package/dist/components/iconCatalogFull/broken/a.g.js +1 -69
- package/dist/components/iconCatalogFull/broken/b.g.js +1 -79
- package/dist/components/iconCatalogFull/broken/c.g.js +1 -98
- package/dist/components/iconCatalogFull/broken/d.g.js +1 -54
- package/dist/components/iconCatalogFull/broken/e.g.js +1 -34
- package/dist/components/iconCatalogFull/broken/f.g.js +1 -39
- package/dist/components/iconCatalogFull/broken/g.g.js +1 -43
- package/dist/components/iconCatalogFull/broken/h.g.js +1 -38
- package/dist/components/iconCatalogFull/broken/i.g.js +1 -20
- package/dist/components/iconCatalogFull/broken/j.g.js +1 -8
- package/dist/components/iconCatalogFull/broken/k.g.js +1 -9
- package/dist/components/iconCatalogFull/broken/l.g.js +1 -38
- package/dist/components/iconCatalogFull/broken/m.g.js +1 -91
- package/dist/components/iconCatalogFull/broken/n.g.js +1 -23
- package/dist/components/iconCatalogFull/broken/o.g.js +1 -11
- package/dist/components/iconCatalogFull/broken/p.g.js +1 -45
- package/dist/components/iconCatalogFull/broken/q.g.js +1 -12
- package/dist/components/iconCatalogFull/broken/r.g.js +1 -47
- package/dist/components/iconCatalogFull/broken/s.g.js +1 -99
- package/dist/components/iconCatalogFull/broken/t.g.js +1 -60
- package/dist/components/iconCatalogFull/broken/u.g.js +1 -17
- package/dist/components/iconCatalogFull/broken/v.g.js +1 -27
- package/dist/components/iconCatalogFull/broken/w.g.js +1 -30
- package/dist/components/iconCatalogFull/broken/x.g.js +1 -8
- package/dist/components/iconCatalogFull/broken/y.g.js +1 -0
- package/dist/components/iconCatalogFull/broken/z.g.js +1 -7
- package/dist/components/iconCatalogFull/bulk/a.g.js +1 -69
- package/dist/components/iconCatalogFull/bulk/b.g.js +1 -79
- package/dist/components/iconCatalogFull/bulk/c.g.js +1 -98
- package/dist/components/iconCatalogFull/bulk/d.g.js +1 -54
- package/dist/components/iconCatalogFull/bulk/e.g.js +1 -34
- package/dist/components/iconCatalogFull/bulk/f.g.js +1 -39
- package/dist/components/iconCatalogFull/bulk/g.g.js +1 -43
- package/dist/components/iconCatalogFull/bulk/h.g.js +1 -38
- package/dist/components/iconCatalogFull/bulk/i.g.js +1 -20
- package/dist/components/iconCatalogFull/bulk/j.g.js +1 -8
- package/dist/components/iconCatalogFull/bulk/k.g.js +1 -9
- package/dist/components/iconCatalogFull/bulk/l.g.js +1 -38
- package/dist/components/iconCatalogFull/bulk/m.g.js +1 -91
- package/dist/components/iconCatalogFull/bulk/n.g.js +1 -23
- package/dist/components/iconCatalogFull/bulk/o.g.js +1 -11
- package/dist/components/iconCatalogFull/bulk/p.g.js +1 -45
- package/dist/components/iconCatalogFull/bulk/q.g.js +1 -12
- package/dist/components/iconCatalogFull/bulk/r.g.js +1 -47
- package/dist/components/iconCatalogFull/bulk/s.g.js +1 -99
- package/dist/components/iconCatalogFull/bulk/t.g.js +1 -60
- package/dist/components/iconCatalogFull/bulk/u.g.js +1 -17
- package/dist/components/iconCatalogFull/bulk/v.g.js +1 -27
- package/dist/components/iconCatalogFull/bulk/w.g.js +1 -30
- package/dist/components/iconCatalogFull/bulk/x.g.js +1 -8
- package/dist/components/iconCatalogFull/bulk/y.g.js +1 -0
- package/dist/components/iconCatalogFull/bulk/z.g.js +1 -7
- package/dist/components/iconCatalogFull/linear/a.g.js +1 -69
- package/dist/components/iconCatalogFull/linear/b.g.js +1 -79
- package/dist/components/iconCatalogFull/linear/c.g.js +1 -98
- package/dist/components/iconCatalogFull/linear/d.g.js +1 -54
- package/dist/components/iconCatalogFull/linear/e.g.js +1 -34
- package/dist/components/iconCatalogFull/linear/f.g.js +1 -39
- package/dist/components/iconCatalogFull/linear/g.g.js +1 -43
- package/dist/components/iconCatalogFull/linear/h.g.js +1 -38
- package/dist/components/iconCatalogFull/linear/i.g.js +1 -20
- package/dist/components/iconCatalogFull/linear/j.g.js +1 -8
- package/dist/components/iconCatalogFull/linear/k.g.js +1 -9
- package/dist/components/iconCatalogFull/linear/l.g.js +1 -38
- package/dist/components/iconCatalogFull/linear/m.g.js +1 -91
- package/dist/components/iconCatalogFull/linear/n.g.js +1 -23
- package/dist/components/iconCatalogFull/linear/o.g.js +1 -11
- package/dist/components/iconCatalogFull/linear/p.g.js +1 -45
- package/dist/components/iconCatalogFull/linear/q.g.js +1 -12
- package/dist/components/iconCatalogFull/linear/r.g.js +1 -47
- package/dist/components/iconCatalogFull/linear/s.g.js +1 -99
- package/dist/components/iconCatalogFull/linear/t.g.js +1 -60
- package/dist/components/iconCatalogFull/linear/u.g.js +1 -17
- package/dist/components/iconCatalogFull/linear/v.g.js +1 -27
- package/dist/components/iconCatalogFull/linear/w.g.js +1 -30
- package/dist/components/iconCatalogFull/linear/x.g.js +1 -8
- package/dist/components/iconCatalogFull/linear/y.g.js +1 -0
- package/dist/components/iconCatalogFull/linear/z.g.js +1 -7
- package/dist/components/iconCatalogFull/outline/a.g.js +1 -69
- package/dist/components/iconCatalogFull/outline/b.g.js +1 -79
- package/dist/components/iconCatalogFull/outline/c.g.js +1 -98
- package/dist/components/iconCatalogFull/outline/d.g.js +1 -54
- package/dist/components/iconCatalogFull/outline/e.g.js +1 -34
- package/dist/components/iconCatalogFull/outline/f.g.js +1 -39
- package/dist/components/iconCatalogFull/outline/g.g.js +1 -43
- package/dist/components/iconCatalogFull/outline/h.g.js +1 -38
- package/dist/components/iconCatalogFull/outline/i.g.js +1 -20
- package/dist/components/iconCatalogFull/outline/j.g.js +1 -8
- package/dist/components/iconCatalogFull/outline/k.g.js +1 -9
- package/dist/components/iconCatalogFull/outline/l.g.js +1 -38
- package/dist/components/iconCatalogFull/outline/m.g.js +1 -91
- package/dist/components/iconCatalogFull/outline/n.g.js +1 -23
- package/dist/components/iconCatalogFull/outline/o.g.js +1 -11
- package/dist/components/iconCatalogFull/outline/p.g.js +1 -45
- package/dist/components/iconCatalogFull/outline/q.g.js +1 -12
- package/dist/components/iconCatalogFull/outline/r.g.js +1 -47
- package/dist/components/iconCatalogFull/outline/s.g.js +1 -99
- package/dist/components/iconCatalogFull/outline/t.g.js +1 -60
- package/dist/components/iconCatalogFull/outline/u.g.js +1 -17
- package/dist/components/iconCatalogFull/outline/v.g.js +1 -27
- package/dist/components/iconCatalogFull/outline/w.g.js +1 -30
- package/dist/components/iconCatalogFull/outline/x.g.js +1 -8
- package/dist/components/iconCatalogFull/outline/y.g.js +1 -0
- package/dist/components/iconCatalogFull/outline/z.g.js +1 -7
- package/dist/components/iconCatalogFull/twotone/a.g.js +1 -69
- package/dist/components/iconCatalogFull/twotone/b.g.js +1 -79
- package/dist/components/iconCatalogFull/twotone/c.g.js +1 -98
- package/dist/components/iconCatalogFull/twotone/d.g.js +1 -54
- package/dist/components/iconCatalogFull/twotone/e.g.js +1 -34
- package/dist/components/iconCatalogFull/twotone/f.g.js +1 -39
- package/dist/components/iconCatalogFull/twotone/g.g.js +1 -43
- package/dist/components/iconCatalogFull/twotone/h.g.js +1 -38
- package/dist/components/iconCatalogFull/twotone/i.g.js +1 -20
- package/dist/components/iconCatalogFull/twotone/j.g.js +1 -8
- package/dist/components/iconCatalogFull/twotone/k.g.js +1 -9
- package/dist/components/iconCatalogFull/twotone/l.g.js +1 -38
- package/dist/components/iconCatalogFull/twotone/m.g.js +1 -91
- package/dist/components/iconCatalogFull/twotone/n.g.js +1 -23
- package/dist/components/iconCatalogFull/twotone/o.g.js +1 -11
- package/dist/components/iconCatalogFull/twotone/p.g.js +1 -45
- package/dist/components/iconCatalogFull/twotone/q.g.js +1 -12
- package/dist/components/iconCatalogFull/twotone/r.g.js +1 -47
- package/dist/components/iconCatalogFull/twotone/s.g.js +1 -99
- package/dist/components/iconCatalogFull/twotone/t.g.js +1 -60
- package/dist/components/iconCatalogFull/twotone/u.g.js +1 -17
- package/dist/components/iconCatalogFull/twotone/v.g.js +1 -27
- package/dist/components/iconCatalogFull/twotone/w.g.js +1 -30
- package/dist/components/iconCatalogFull/twotone/x.g.js +1 -8
- package/dist/components/iconCatalogFull/twotone/y.g.js +1 -0
- package/dist/components/iconCatalogFull/twotone/z.g.js +1 -7
- package/dist/components/iconCatalogLoaders.g.js +1 -170
- package/dist/components/iconCatalogNames.g.js +1 -4
- package/dist/components/iconGlyphs.g.js +1 -211
- package/dist/components/iconVariants.g.js +1 -1040
- package/dist/components/renderIconProp.js +1 -13
- package/dist/components/toast.js +1 -41
- package/dist/components/toastStore.js +1 -78
- package/dist/components/useWuiControl.js +1 -106
- package/dist/components/warnInvalidValue.js +1 -17
- package/dist/components/warnUnknownProps.js +1 -17
- package/dist/components/withTooltip.js +1 -12
- package/dist/lib/CheckField.js +1 -37
- package/dist/lib/FileItemRow.js +1 -44
- package/dist/lib/emptyValue.js +1 -6
- package/dist/lib/fileItem.js +1 -27
- package/dist/lib/focusField.js +1 -14
- package/dist/lib/listQuery.js +1 -57
- package/dist/lib/navMatch.js +1 -29
- package/dist/lib/pageWindow.js +1 -14
- package/dist/lib/qrCode.js +1 -577
- package/dist/lib/shellCookie.js +1 -16
- package/dist/lib/useCommandPaletteShortcut.js +1 -15
- package/dist/lib/useFloatingStack.js +1 -25
- package/dist/lib/useListQuery.js +1 -120
- package/dist/lib/usePagination.js +1 -29
- package/dist/lib/useTableView.js +1 -42
- package/dist/types/components/AppAlert.d.ts +6 -1
- package/dist/types/components/AppCalendar.d.ts +8 -6
- package/dist/types/components/AppDatePicker.d.ts +4 -1
- package/dist/types/components/AppDateRangePicker.d.ts +2 -1
- package/dist/types/components/AppDropdown.d.ts +12 -1
- package/dist/types/components/AppRouteError.d.ts +32 -0
- package/dist/types/components/AppStepper.d.ts +8 -1
- package/dist/types/components/AppUpdateBar.d.ts +20 -0
- package/dist/types/components/AppWizard.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bold/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bold/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/bold/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bold/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bold/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/bold/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/bold/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/bold/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bold/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bold/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bold/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bold/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bold/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/broken/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/broken/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/broken/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/broken/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/broken/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/broken/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/broken/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/broken/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/broken/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/broken/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/broken/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/broken/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/broken/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bulk/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/bulk/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bulk/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bulk/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bulk/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bulk/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/bulk/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/bulk/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/bulk/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bulk/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bulk/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bulk/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bulk/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/linear/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/linear/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/linear/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/linear/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/linear/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/linear/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/linear/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/linear/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/linear/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/linear/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/linear/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/linear/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/linear/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/outline/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/outline/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/outline/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/outline/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/outline/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/outline/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/outline/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/outline/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/outline/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/outline/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/outline/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/outline/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/outline/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/twotone/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/twotone/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/twotone/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/twotone/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/twotone/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/twotone/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/twotone/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/twotone/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/twotone/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/twotone/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/twotone/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/twotone/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/twotone/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogLoaders.g.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/ui-react.js +1 -117
- package/package.json +7 -9
- package/dist/types/components/__tests__/restPassthrough.d.ts +0 -9
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import { createElement as t } from "react";
|
|
3
|
-
//#region src/components/renderIconProp.js
|
|
4
|
-
function n(n, { size: r = 16, className: i, variant: a } = {}) {
|
|
5
|
-
return n == null || n === !1 ? null : typeof n == "string" ? t(e, {
|
|
6
|
-
name: n,
|
|
7
|
-
size: r,
|
|
8
|
-
className: i,
|
|
9
|
-
variant: a
|
|
10
|
-
}) : n;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { n as default };
|
|
1
|
+
import e from"./AppIcon.js";import{createElement as t}from"react";function n(n,{size:r=16,className:i,variant:a}={}){return n==null||n===!1?null:typeof n==`string`?t(e,{name:n,size:r,className:i,variant:a}):n}export{n as default};
|
package/dist/components/toast.js
CHANGED
|
@@ -1,41 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region src/components/toast.js
|
|
3
|
-
function n() {
|
|
4
|
-
e();
|
|
5
|
-
}
|
|
6
|
-
var r = /* @__PURE__ */ new Set([
|
|
7
|
-
"success",
|
|
8
|
-
"info",
|
|
9
|
-
"warning",
|
|
10
|
-
"danger"
|
|
11
|
-
]);
|
|
12
|
-
function i(e, n = "info") {
|
|
13
|
-
let i = "info", a = {};
|
|
14
|
-
typeof n == "string" ? i = r.has(n) ? n : "info" : typeof n == "object" && n && (a = n, i = r.has(a.variant) ? a.variant : "info"), t(e, i, a);
|
|
15
|
-
}
|
|
16
|
-
function a(e, n = {}) {
|
|
17
|
-
t(e, "danger", n);
|
|
18
|
-
}
|
|
19
|
-
i.promise = (e, t, n = {}) => {
|
|
20
|
-
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
21
|
-
return i(t.loading || "Loading...", {
|
|
22
|
-
...n,
|
|
23
|
-
variant: "info",
|
|
24
|
-
id: r,
|
|
25
|
-
duration: 0
|
|
26
|
-
}), e.then((e) => (i((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
27
|
-
...n,
|
|
28
|
-
variant: "success",
|
|
29
|
-
id: r,
|
|
30
|
-
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
31
|
-
}), e)).catch((e) => {
|
|
32
|
-
throw i((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
33
|
-
...n,
|
|
34
|
-
variant: "danger",
|
|
35
|
-
id: r,
|
|
36
|
-
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
37
|
-
}), e;
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
|
-
export { n as dismissAll, a as errorToast, i as toast };
|
|
1
|
+
import{dismissAllToasts as e,pushToast as t}from"./toastStore.js";function n(){e()}var r=new Set([`success`,`info`,`warning`,`danger`]);function i(e,n=`info`){let i=`info`,a={};typeof n==`string`?i=r.has(n)?n:`info`:typeof n==`object`&&n&&(a=n,i=r.has(a.variant)?a.variant:`info`),t(e,i,a)}function a(e,n={}){t(e,`danger`,n)}i.promise=(e,t,n={})=>{let r=n.id||`promise-${Date.now()}-${Math.random()}`;return i(t.loading||`Loading...`,{...n,variant:`info`,id:r,duration:0}),e.then(e=>(i((typeof t.success==`function`?t.success(e):t.success)||`Done`,{...n,variant:`success`,id:r,duration:n.duration===void 0?5e3:n.duration}),e)).catch(e=>{throw i((typeof t.error==`function`?t.error(e):t.error)||`Error`,{...n,variant:`danger`,id:r,duration:n.duration===void 0?5e3:n.duration}),e})};export{n as dismissAll,a as errorToast,i as toast};
|
|
@@ -1,78 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = 0;
|
|
3
|
-
function a() {
|
|
4
|
-
for (let n of t) n(e);
|
|
5
|
-
}
|
|
6
|
-
function o(e) {
|
|
7
|
-
let t = n.get(e);
|
|
8
|
-
t !== void 0 && (clearTimeout(t), n.delete(e));
|
|
9
|
-
}
|
|
10
|
-
function s(e, t) {
|
|
11
|
-
if (e.length <= 6) return e;
|
|
12
|
-
let n = [...e], i = [];
|
|
13
|
-
for (; n.length > 6;) {
|
|
14
|
-
let e = n.findIndex((e) => e.id !== t && e.duration !== 0);
|
|
15
|
-
i.push(n.splice(e === -1 ? n.findIndex((e) => e.id !== t) : e, 1)[0]);
|
|
16
|
-
}
|
|
17
|
-
for (let e of i) o(e.id), r.delete(e.id);
|
|
18
|
-
return n;
|
|
19
|
-
}
|
|
20
|
-
function c(i) {
|
|
21
|
-
return t.add(i), i(e), () => {
|
|
22
|
-
if (t.delete(i), t.size === 0) for (let t of e) t.duration > 0 && !n.has(t.id) && (r.delete(t.id), n.set(t.id, setTimeout(() => d(t.id), t.duration)));
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function l(t, c, l = {}) {
|
|
26
|
-
let u = l.id, f = u || typeof t != "string" ? void 0 : `${c}:${t}`;
|
|
27
|
-
if (u) {
|
|
28
|
-
let i = e.find((e) => e.externalId === u);
|
|
29
|
-
if (i) {
|
|
30
|
-
o(i.id);
|
|
31
|
-
let s = l.duration === void 0 ? 5e3 : l.duration;
|
|
32
|
-
e = e.map((e) => e.id === i.id ? {
|
|
33
|
-
...e,
|
|
34
|
-
message: t,
|
|
35
|
-
variant: c,
|
|
36
|
-
title: l.title,
|
|
37
|
-
duration: s,
|
|
38
|
-
action: l.action,
|
|
39
|
-
animation: l.animation,
|
|
40
|
-
shape: l.shape,
|
|
41
|
-
surface: l.surface,
|
|
42
|
-
progress: l.progress
|
|
43
|
-
} : e), a(), s > 0 && !r.has(i.id) && n.set(i.id, setTimeout(() => d(i.id), s));
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
} else if (f && e.some((e) => e.key === f)) return;
|
|
47
|
-
let p = ++i, m = l.duration === void 0 ? 5e3 : l.duration;
|
|
48
|
-
e = s([...e, {
|
|
49
|
-
id: p,
|
|
50
|
-
externalId: u,
|
|
51
|
-
message: t,
|
|
52
|
-
variant: c,
|
|
53
|
-
title: l.title,
|
|
54
|
-
duration: m,
|
|
55
|
-
action: l.action,
|
|
56
|
-
animation: l.animation,
|
|
57
|
-
shape: l.shape,
|
|
58
|
-
surface: l.surface,
|
|
59
|
-
progress: l.progress,
|
|
60
|
-
key: f
|
|
61
|
-
}], p), a(), m > 0 && n.set(p, setTimeout(() => d(p), m));
|
|
62
|
-
}
|
|
63
|
-
function u(e) {
|
|
64
|
-
o(e), r.add(e);
|
|
65
|
-
}
|
|
66
|
-
function d(t) {
|
|
67
|
-
o(t), r.delete(t);
|
|
68
|
-
let n = e.filter((e) => e.id !== t);
|
|
69
|
-
n.length !== e.length && (e = n, a());
|
|
70
|
-
}
|
|
71
|
-
function f() {
|
|
72
|
-
if (!(e.length === 0 && n.size === 0 && r.size === 0)) {
|
|
73
|
-
for (let e of n.values()) clearTimeout(e);
|
|
74
|
-
n.clear(), r.clear(), e.length !== 0 && (e = [], a());
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
export { u as adoptToast, f as dismissAllToasts, d as dismissToast, l as pushToast, c as subscribeToasts };
|
|
1
|
+
var e=[],t=new Set,n=new Map,r=new Set,i=0;function a(){for(let n of t)n(e)}function o(e){let t=n.get(e);t!==void 0&&(clearTimeout(t),n.delete(e))}function s(e,t){if(e.length<=6)return e;let n=[...e],i=[];for(;n.length>6;){let e=n.findIndex(e=>e.id!==t&&e.duration!==0);i.push(n.splice(e===-1?n.findIndex(e=>e.id!==t):e,1)[0])}for(let e of i)o(e.id),r.delete(e.id);return n}function c(i){return t.add(i),i(e),()=>{if(t.delete(i),t.size===0)for(let t of e)t.duration>0&&!n.has(t.id)&&(r.delete(t.id),n.set(t.id,setTimeout(()=>d(t.id),t.duration)))}}function l(t,c,l={}){let u=l.id,f=u||typeof t!=`string`?void 0:`${c}:${t}`;if(u){let i=e.find(e=>e.externalId===u);if(i){o(i.id);let s=l.duration===void 0?5e3:l.duration;e=e.map(e=>e.id===i.id?{...e,message:t,variant:c,title:l.title,duration:s,action:l.action,animation:l.animation,shape:l.shape,surface:l.surface,progress:l.progress}:e),a(),s>0&&!r.has(i.id)&&n.set(i.id,setTimeout(()=>d(i.id),s));return}}else if(f&&e.some(e=>e.key===f))return;let p=++i,m=l.duration===void 0?5e3:l.duration;e=s([...e,{id:p,externalId:u,message:t,variant:c,title:l.title,duration:m,action:l.action,animation:l.animation,shape:l.shape,surface:l.surface,progress:l.progress,key:f}],p),a(),m>0&&n.set(p,setTimeout(()=>d(p),m))}function u(e){o(e),r.add(e)}function d(t){o(t),r.delete(t);let n=e.filter(e=>e.id!==t);n.length!==e.length&&(e=n,a())}function f(){if(!(e.length===0&&n.size===0&&r.size===0)){for(let e of n.values())clearTimeout(e);n.clear(),r.clear(),e.length!==0&&(e=[],a())}}export{u as adoptToast,f as dismissAllToasts,d as dismissToast,l as pushToast,c as subscribeToasts};
|
|
@@ -1,106 +1 @@
|
|
|
1
|
-
import
|
|
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 };
|
|
1
|
+
import{useCallback as e,useEffect as t,useInsertionEffect as n,useRef as r}from"react";function i({ref:i,value:c,onChange:l,readValue:u,writeValue:d,events:f=a,on:p}={}){let m=r(null),h=u??o,g=d??s,_=(f||a).join(`\0`),v=Object.keys(p??{}).join(`\0`),y=r(null);y.current===null&&(y.current={ref:i,value:c,onChange:l,read:h,write:g,eventKey:_,on:p}),n(()=>{y.current={ref:i,value:c,onChange:l,read:h,write:g,eventKey:_,on:p}});let b=r(null),x=e(()=>{let e=b.current;if(e){for(let t of e.names)e.el.removeEventListener(t,e.handler);for(let t of e.extraNames)e.el.removeEventListener(t,e.extraHandler);b.current=null}},[]),S=e(e=>{let t=y.current.eventKey?y.current.eventKey.split(`\0`):a,n=Object.keys(y.current.on??{}),r={el:e,names:t,extraNames:n,last:void 0};r.handler=()=>{let t=y.current.read(e);Object.is(t,r.last)||(r.last=t,y.current.onChange?.(t))},r.extraHandler=e=>y.current.on?.[e.type]?.(e);for(let n of t)e.addEventListener(n,r.handler);for(let t of n)e.addEventListener(t,r.extraHandler);b.current=r},[]),C=e(e=>{m.current=e;let t=y.current.ref;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))},[x,S]);return t(()=>{let e=m.current;if(!e||c===void 0)return;g(e,c);let t=b.current;t&&!Object.is(c,t.last)&&(t.last=void 0)},[c,g]),t(()=>{let e=m.current,t=b.current;!e||!t||(t.names.join(`\0`)!==(_||a.join(`\0`))||t.extraNames.join(`\0`)!==v)&&(x(),S(e))},[_,v,x,S]),{setRef:C,innerRef:m}}var a=[`change`];function o(e){return e.value}function s(e,t){let n=t??``;String(e.value??``)!==String(n)&&(e.value=n)}function c(e,t){let n=e||[],r=t||[];return n.length===r.length&&n.every((e,t)=>{let n=r[t];if(e===n)return!0;if(e==null||n==null||typeof e!=`object`||typeof n!=`object`)return Object.is(e,n);let i=Object.keys(e);return i.length===Object.keys(n).length&&i.every(t=>Object.is(e[t],n[t]))})}function l(e){return e.values}function u(e,t){let n=t||[],r=e.values||[];(n.length!==r.length||!n.every((e,t)=>e===r[t]))&&(e.values=n)}function d(e){return{start:e.start,end:e.end}}function f(e,t){if(t===void 0)return;let n=Number.parseFloat(t);Number.isFinite(n)&&e.value!==n&&(e.value=n)}export{i as default,c as optionsEqual,d as readRange,l as readValues,f as writeNumberValue,u as writeValues};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
var e=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},t=new Set;function n(n,r,i,a){if(!e()||i==null)return;let o=a instanceof Set?a:new Set(a);if(o.has(i))return;let s=`${n}.${r}.${String(i)}`;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.`))}export{n as default};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
var e=new Set(`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=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},n=e=>e.startsWith(`data-`)||e.startsWith(`aria-`)||/^on[A-Z]/.test(e),r=new Set;function i(i,a){if(!(!t()||!a)&&!(`as`in a))for(let t of Object.keys(a)){if(n(t)||e.has(t))continue;let a=`${i}.${t}`;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.`))}}export{i as default};
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import e from
|
|
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 };
|
|
1
|
+
import e from"./AppTooltip.js";import{jsx as t}from"react/jsx-runtime";function n(n,r,i){return r==null||r===``?n:t(e,{content:r,placement:i||`auto`,children:n})}export{n as default};
|
package/dist/lib/CheckField.js
CHANGED
|
@@ -1,37 +1 @@
|
|
|
1
|
-
import
|
|
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 };
|
|
1
|
+
import{forwardRef as e,useId as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";var i=e(function({label:e,id:i,name:a,error:o,hint:s,className:c=``,rest:l={},inputType:u,wrapperClass:d},f){let p=t(),m=i||p,h=o?`${m}-error`:void 0,g=s?`${m}-hint`:void 0;return r(`div`,{className:`${d}${c?` ${c}`:``}`,children:[n(`input`,{type:u,className:`form-check-input`,id:m,name:a,ref:f,"aria-invalid":o?`true`:`false`,"aria-describedby":h||g,...l}),e!=null&&n(`label`,{className:`form-check-label`,htmlFor:m,children:e}),o?n(`div`,{className:`field-error`,id:h,children:o}):s?n(`div`,{className:`field-hint`,id:g,children:s}):null]})});export{i as default};
|
package/dist/lib/FileItemRow.js
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
import e from
|
|
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 };
|
|
1
|
+
import e from"../components/AppIcon.js";import{nameOf as t,sizeLabelOf as n,useItemUrl as r}from"./fileItem.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({item:o,isImage:s,onRemove:c,noun:l=`attachment`}){let u=r(o,s),d=t(o),f=n(o);return a(`div`,{className:`attach-item`,children:[i(`span`,{className:`attach-item-media`,children:u?i(`img`,{src:u,alt:d}):i(e,{name:`file-text`,size:18})}),a(`span`,{className:`attach-item-info`,children:[i(`span`,{className:`attach-name`,children:d}),f&&i(`span`,{className:`attach-size`,children:f})]}),i(`button`,{type:`button`,className:`attach-item-remove`,"aria-label":`Remove ${d||l}`,onClick:c,children:i(e,{name:`x`,size:16})})]})}export{o as default};
|
package/dist/lib/emptyValue.js
CHANGED
package/dist/lib/fileItem.js
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import
|
|
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 };
|
|
1
|
+
import{useEffect as e,useState as t}from"react";function n(e){return e instanceof File?`${e.name}:${e.size}`:e?.url||e?.name||`item`}function r(e){return e instanceof File?e.name:e?.name}function i(e){return e instanceof File?`${(e.size/1024).toFixed(0)} KB`:null}function a(n,r){let[i,a]=t(null);return e(()=>{if(!r){a(null);return}if(n instanceof File){let e=URL.createObjectURL(n);return a(e),()=>URL.revokeObjectURL(e)}a(n?.url||null)},[n,r]),i}export{n as keyOf,r as nameOf,i as sizeLabelOf,a as useItemUrl};
|
package/dist/lib/focusField.js
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
var e=`input:not([type="hidden"]):not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex="-1"])`;function t(t){if(!t)return!1;let n=[document.getElementById(t),...document.getElementsByName(t)];for(let t of n){if(!t)continue;let n=t.matches(e)?t:t.querySelector(e);if(n)return n.scrollIntoView?.({block:`center`}),n.focus({preventScroll:!0}),!0}return!1}export{t as default};
|
package/dist/lib/listQuery.js
CHANGED
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
var e=[`page`,`pageSize`,`sortBy`,`sortOrder`],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);function a(t){if(e.includes(t))throw Error(`"${t}" is reserved by the list query (${e.join(`, `)}) and cannot name a filter.`)}function o({page:e,pageSize:r,sortBy:o,sortOrder:s,filters:c}={}){if(!n(s)&&!t.includes(s))throw Error(`sortOrder must be "asc" or "desc", got "${s}".`);let l=new URLSearchParams;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`));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));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));return l}function s(e){return e.type===`multiEnum`?[]:e.type===`dateRange`?{from:``,to:``}:``}function c(e,t){return t==null?!1:e.type===`multiEnum`?t.length>0:e.type===`dateRange`?!!(t.from||t.to):t!==``}function l(t=[]){let n=new Set(e);for(let{key:e,type:r}of t)r===`dateRange`?(n.add(`${e}From`),n.add(`${e}To`)):n.add(e);return n}var u=(e,t)=>{let n=Number(e);return Number.isInteger(n)&&n>=1?n:t};function d(e,{facets:n=[],defaults:r={}}={}){let i=typeof e==`string`?new URLSearchParams(e):e;for(let e of n)a(e.key);let o=l(n),c=[...i.keys()].some(e=>o.has(e)),d=i.get(`sortOrder`),f={};for(let e of n){let{key:t,type:n}=e,a;a=c?n===`multiEnum`?i.getAll(t).filter(Boolean):n===`dateRange`?{from:i.get(`${t}From`)??``,to:i.get(`${t}To`)??``}:i.get(t)??``:r.filters?.[t]??s(e),f[t]=a}return{page:u(i.get(`page`),r.page??1),pageSize:u(i.get(`pageSize`),r.pageSize??10),sortBy:i.get(`sortBy`)||r.sortBy,sortOrder:t.includes(d)?d:r.sortOrder??`asc`,filters:f}}export{e as RESERVED_LIST_QUERY_KEYS,o as buildListQuery,s as emptyFacetValue,c as isFacetActive,l as listQueryParamNames,d as parseListQuery};
|
package/dist/lib/navMatch.js
CHANGED
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
var e=/^[a-z][a-z0-9+.-]*:/i;function t(t){if(typeof t!=`string`||t.trim()===``)return null;let n=t.trim(),r=n.search(/[?#]/);if(r>=0&&(n=n.slice(0,r)),n.startsWith(`~/`)&&(n=n.slice(1)),n===``||n.startsWith(`//`)||e.test(n))return null;for(n[0]!==`/`&&(n=`/${n}`);n.length>1&&n.endsWith(`/`);)n=n.slice(0,-1);return n}function n(e,t,n){return e.toLowerCase()===t.toLowerCase()?!0:n||t===`/`?!1:e.toLowerCase().startsWith(`${t.toLowerCase()}/`)}function r(e,t){return e==null||t==null?e:e.toLowerCase()===t.toLowerCase()?`/`:e.toLowerCase().startsWith(`${t.toLowerCase()}/`)?e.slice(t.length):e}function i(e,i,{exact:a=!1,also:o,pathBase:s}={}){let c=t(e);if(c==null)return-1;let l=t(s);l===`/`&&(l=null);let u=-1,d=(e,t)=>{e!=null&&n(c,e,t)&&(u=Math.max(u,e.length))};d(r(t(i),l),a);for(let e of o??[])d(r(t(e),l),!1);return u}export{i as navMatchScore,t as normalizeNavPath};
|
package/dist/lib/pageWindow.js
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
var e=(e,t)=>{let n=[];for(let r=e;r<=t;r+=1)n.push(r);return n};function t(t,n,{siblingCount:r=2,boundaryCount:i=1}={}){let a=Math.max(1,n),o=Math.min(Math.max(1,t),a);if(a<=r*2+3+i*2)return e(1,a);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);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}export{t as pageWindow};
|