@webority/ui-react 0.36.0 → 0.38.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/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 -709
- 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/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/AppStepper.d.ts +8 -1
- 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/ui-react.js +1 -117
- package/package.json +7 -9
- package/dist/types/components/__tests__/restPassthrough.d.ts +0 -9
|
@@ -1,153 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import { forwardRef as n, useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
4
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppChart.jsx
|
|
6
|
-
var l = "wui-chart:select", u = "wui-chart:legend-change", d = "wui-chart:ready", f = [
|
|
7
|
-
"line",
|
|
8
|
-
"area",
|
|
9
|
-
"column",
|
|
10
|
-
"bar",
|
|
11
|
-
"donut",
|
|
12
|
-
"heatmap",
|
|
13
|
-
"calendar",
|
|
14
|
-
"funnel",
|
|
15
|
-
"gauge",
|
|
16
|
-
"waterfall",
|
|
17
|
-
"treemap",
|
|
18
|
-
"sankey",
|
|
19
|
-
"scatter",
|
|
20
|
-
"bubble",
|
|
21
|
-
"multiples"
|
|
22
|
-
], p = [
|
|
23
|
-
"none",
|
|
24
|
-
"stacked",
|
|
25
|
-
"percent"
|
|
26
|
-
], m = [
|
|
27
|
-
"ready",
|
|
28
|
-
"loading",
|
|
29
|
-
"empty",
|
|
30
|
-
"error"
|
|
31
|
-
], h = [
|
|
32
|
-
"auto",
|
|
33
|
-
"svg",
|
|
34
|
-
"canvas"
|
|
35
|
-
], g = ["chart", "table"], _ = "This chart couldn't load. Try again in a moment.", v = () => {
|
|
36
|
-
try {
|
|
37
|
-
return process.env.NODE_ENV !== "production";
|
|
38
|
-
} catch {
|
|
39
|
-
return !0;
|
|
40
|
-
}
|
|
41
|
-
}, y = !1;
|
|
42
|
-
function b() {
|
|
43
|
-
y || !v() || (y = !0, console.warn("[@webority/ui-react] <AppChart> has no `title`, which names the chart for assistive tech and its exported files."));
|
|
44
|
-
}
|
|
45
|
-
var x = (e) => e === "" ? void 0 : e, S = (e) => Array.isArray(e) ? e.map(S) : e == null || Object.getPrototypeOf(e) !== Object.prototype ? e : Object.fromEntries(Object.entries(e).filter(([, e]) => e !== "").map(([e, t]) => [e, S(t)])), C = (e) => ({
|
|
46
|
-
type: x(e.type),
|
|
47
|
-
title: x(e.title),
|
|
48
|
-
description: x(e.description),
|
|
49
|
-
data: e.data,
|
|
50
|
-
x: S(e.x),
|
|
51
|
-
series: S(e.series),
|
|
52
|
-
group: S(e.group),
|
|
53
|
-
to: S(e.to),
|
|
54
|
-
size: S(e.size),
|
|
55
|
-
trend: e.trend,
|
|
56
|
-
zoom: e.zoom,
|
|
57
|
-
bands: S(e.bands),
|
|
58
|
-
stack: x(e.stack),
|
|
59
|
-
y: S(e.y),
|
|
60
|
-
target: S(e.target),
|
|
61
|
-
height: e.height > 0 ? e.height : void 0,
|
|
62
|
-
state: x(e.state),
|
|
63
|
-
emptyText: x(e.emptyText),
|
|
64
|
-
errorText: x(e.errorText),
|
|
65
|
-
renderer: x(e.renderer)
|
|
66
|
-
}), w = (e, t) => t != null && Object.keys(e).every((n) => Object.is(e[n], t[n])), T = (e) => {
|
|
67
|
-
try {
|
|
68
|
-
return JSON.stringify(e);
|
|
69
|
-
} catch {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
}, E = n(function({ type: n, title: v, description: y, data: x, x: S, series: E, group: D, to: O, size: k, trend: A, zoom: j, bands: M, stack: N, y: P, target: F, height: I, state: L, emptyText: R, errorText: z, renderer: B, view: V, onSelect: H, onLegendChange: U, onReady: W, className: G = "", style: K, ...q }, J) {
|
|
73
|
-
t("AppChart", q), e("AppChart", "type", n, f), e("AppChart", "stack", N, p), e("AppChart", "state", L, m), e("AppChart", "renderer", B, h), e("AppChart", "view", V, g), v || b();
|
|
74
|
-
let Y = o(null), X = o({
|
|
75
|
-
props: null,
|
|
76
|
-
signature: null
|
|
77
|
-
}), Z = o({
|
|
78
|
-
onSelect: H,
|
|
79
|
-
onLegendChange: U,
|
|
80
|
-
onReady: W
|
|
81
|
-
}), [Q, $] = s(!1), ee = r((e) => {
|
|
82
|
-
Y.current = e, typeof J == "function" ? J(e) : J && (J.current = e);
|
|
83
|
-
}, [J]);
|
|
84
|
-
return i(() => {
|
|
85
|
-
Z.current = {
|
|
86
|
-
onSelect: H,
|
|
87
|
-
onLegendChange: U,
|
|
88
|
-
onReady: W
|
|
89
|
-
};
|
|
90
|
-
}), a(() => {
|
|
91
|
-
let e = Y.current;
|
|
92
|
-
if (!e) return;
|
|
93
|
-
let t = {
|
|
94
|
-
type: n,
|
|
95
|
-
title: v,
|
|
96
|
-
description: y,
|
|
97
|
-
data: x,
|
|
98
|
-
x: S,
|
|
99
|
-
series: E,
|
|
100
|
-
group: D,
|
|
101
|
-
to: O,
|
|
102
|
-
size: k,
|
|
103
|
-
trend: A,
|
|
104
|
-
zoom: j,
|
|
105
|
-
bands: M,
|
|
106
|
-
stack: N,
|
|
107
|
-
y: P,
|
|
108
|
-
target: F,
|
|
109
|
-
height: I,
|
|
110
|
-
state: L,
|
|
111
|
-
emptyText: R,
|
|
112
|
-
errorText: z,
|
|
113
|
-
renderer: B
|
|
114
|
-
};
|
|
115
|
-
if (w(t, X.current.props)) return;
|
|
116
|
-
X.current.props = t;
|
|
117
|
-
let r = C(t), i = T(r);
|
|
118
|
-
i !== null && i === X.current.signature || (X.current.signature = i, e.spec = r);
|
|
119
|
-
}), i(() => {
|
|
120
|
-
let e = Y.current, t = (e) => (t) => Z.current[e]?.(t.detail), n = [
|
|
121
|
-
[l, t("onSelect")],
|
|
122
|
-
[u, t("onLegendChange")],
|
|
123
|
-
[d, t("onReady")]
|
|
124
|
-
];
|
|
125
|
-
for (let [t, r] of n) e.addEventListener(t, r);
|
|
126
|
-
return () => {
|
|
127
|
-
for (let [t, r] of n) e.removeEventListener(t, r);
|
|
128
|
-
};
|
|
129
|
-
}, []), i(() => {
|
|
130
|
-
let e = !0;
|
|
131
|
-
return import("@webority/ui-elements/chart").catch((t) => {
|
|
132
|
-
console.warn("[AppChart] the chart failed to load:", t?.message), e && $(!0);
|
|
133
|
-
}), () => {
|
|
134
|
-
e = !1;
|
|
135
|
-
};
|
|
136
|
-
}, []), Q ? /* @__PURE__ */ c("div", {
|
|
137
|
-
className: G || void 0,
|
|
138
|
-
style: K,
|
|
139
|
-
role: "status",
|
|
140
|
-
children: /* @__PURE__ */ c("p", {
|
|
141
|
-
className: "wui-chart-state-text",
|
|
142
|
-
children: z || _
|
|
143
|
-
})
|
|
144
|
-
}) : /* @__PURE__ */ c("wui-chart", {
|
|
145
|
-
ref: ee,
|
|
146
|
-
view: V || void 0,
|
|
147
|
-
className: G || void 0,
|
|
148
|
-
style: K,
|
|
149
|
-
...q
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
//#endregion
|
|
153
|
-
export { E as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{forwardRef as n,useCallback as r,useEffect as i,useLayoutEffect as a,useRef as o,useState as s}from"react";import{jsx as c}from"react/jsx-runtime";var l=`wui-chart:select`,u=`wui-chart:legend-change`,d=`wui-chart:ready`,f=[`line`,`area`,`column`,`bar`,`donut`,`heatmap`,`calendar`,`funnel`,`gauge`,`waterfall`,`treemap`,`sankey`,`scatter`,`bubble`,`multiples`],p=[`none`,`stacked`,`percent`],m=[`ready`,`loading`,`empty`,`error`],h=[`auto`,`svg`,`canvas`],g=[`chart`,`table`],_=`This chart couldn't load. Try again in a moment.`,v=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},y=!1;function b(){y||!v()||(y=!0,console.warn("[@webority/ui-react] <AppChart> has no `title`, which names the chart for assistive tech and its exported files."))}var x=e=>e===``?void 0:e,S=e=>Array.isArray(e)?e.map(S):e==null||Object.getPrototypeOf(e)!==Object.prototype?e:Object.fromEntries(Object.entries(e).filter(([,e])=>e!==``).map(([e,t])=>[e,S(t)])),C=e=>({type:x(e.type),title:x(e.title),description:x(e.description),data:e.data,x:S(e.x),series:S(e.series),group:S(e.group),to:S(e.to),size:S(e.size),trend:e.trend,zoom:e.zoom,bands:S(e.bands),stack:x(e.stack),y:S(e.y),target:S(e.target),height:e.height>0?e.height:void 0,state:x(e.state),emptyText:x(e.emptyText),errorText:x(e.errorText),renderer:x(e.renderer)}),w=(e,t)=>t!=null&&Object.keys(e).every(n=>Object.is(e[n],t[n])),T=e=>{try{return JSON.stringify(e)}catch{return null}},E=n(function({type:n,title:v,description:y,data:x,x:S,series:E,group:D,to:O,size:k,trend:A,zoom:j,bands:M,stack:N,y:P,target:F,height:I,state:L,emptyText:R,errorText:z,renderer:B,view:V,onSelect:H,onLegendChange:U,onReady:W,className:G=``,style:K,...q},J){t(`AppChart`,q),e(`AppChart`,`type`,n,f),e(`AppChart`,`stack`,N,p),e(`AppChart`,`state`,L,m),e(`AppChart`,`renderer`,B,h),e(`AppChart`,`view`,V,g),v||b();let Y=o(null),X=o({props:null,signature:null}),Z=o({onSelect:H,onLegendChange:U,onReady:W}),[Q,$]=s(!1),ee=r(e=>{Y.current=e,typeof J==`function`?J(e):J&&(J.current=e)},[J]);return i(()=>{Z.current={onSelect:H,onLegendChange:U,onReady:W}}),a(()=>{let e=Y.current;if(!e)return;let t={type:n,title:v,description:y,data:x,x:S,series:E,group:D,to:O,size:k,trend:A,zoom:j,bands:M,stack:N,y:P,target:F,height:I,state:L,emptyText:R,errorText:z,renderer:B};if(w(t,X.current.props))return;X.current.props=t;let r=C(t),i=T(r);i!==null&&i===X.current.signature||(X.current.signature=i,e.spec=r)}),i(()=>{let e=Y.current,t=e=>t=>Z.current[e]?.(t.detail),n=[[l,t(`onSelect`)],[u,t(`onLegendChange`)],[d,t(`onReady`)]];for(let[t,r]of n)e.addEventListener(t,r);return()=>{for(let[t,r]of n)e.removeEventListener(t,r)}},[]),i(()=>{let e=!0;return import(`@webority/ui-elements/chart`).catch(t=>{console.warn(`[AppChart] the chart failed to load:`,t?.message),e&&$(!0)}),()=>{e=!1}},[]),Q?c(`div`,{className:G||void 0,style:K,role:`status`,children:c(`p`,{className:`wui-chart-state-text`,children:z||_})}):c(`wui-chart`,{ref:ee,view:V||void 0,className:G||void 0,style:K,...q})});export{E as default};
|
|
@@ -1,125 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./AppIcon.js";
|
|
3
|
-
import n from "./AppButton.js";
|
|
4
|
-
import r from "./AppCard.js";
|
|
5
|
-
import i from "./AppDropdown.js";
|
|
6
|
-
import a from "./AppSegmented.js";
|
|
7
|
-
import { useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
8
|
-
import { Dropdown as l } from "react-bootstrap";
|
|
9
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
-
//#region src/components/AppChartCard.jsx
|
|
11
|
-
var p = [{
|
|
12
|
-
value: "chart",
|
|
13
|
-
label: "Chart",
|
|
14
|
-
icon: "chart"
|
|
15
|
-
}, {
|
|
16
|
-
value: "table",
|
|
17
|
-
label: "Table",
|
|
18
|
-
icon: "grid"
|
|
19
|
-
}], m = () => {
|
|
20
|
-
try {
|
|
21
|
-
return process.env.NODE_ENV !== "production";
|
|
22
|
-
} catch {
|
|
23
|
-
return !0;
|
|
24
|
-
}
|
|
25
|
-
}, h = !1;
|
|
26
|
-
function g() {
|
|
27
|
-
h || !m() || (h = !0, console.warn("[@webority/ui-react] <AppChartCard> has no `title`, which is the card's heading and names its menu button."));
|
|
28
|
-
}
|
|
29
|
-
var _ = (e) => e.getAttribute("view") === "table" ? "table" : "chart";
|
|
30
|
-
function v({ title: m, subtitle: h, toolbar: v = !0, onRetry: y, footer: b, children: x, className: S = "", ...C }) {
|
|
31
|
-
e("AppChartCard", C), m || g();
|
|
32
|
-
let w = s(null), T = s(null), [E, D] = c("chart"), O = s(E);
|
|
33
|
-
O.current = E;
|
|
34
|
-
let [k, A] = c(!0), j = () => w.current?.querySelector("wui-chart");
|
|
35
|
-
o(() => {
|
|
36
|
-
let e = w.current, t = () => {
|
|
37
|
-
let t = e.querySelector("wui-chart");
|
|
38
|
-
if (t) {
|
|
39
|
-
if (t === T.current) {
|
|
40
|
-
D(_(t));
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
T.current = t, t.hasAttribute("view") ? D(_(t)) : O.current !== "chart" && t.setAttribute("view", O.current);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
t();
|
|
47
|
-
let n = new MutationObserver(t);
|
|
48
|
-
return n.observe(e, {
|
|
49
|
-
childList: !0,
|
|
50
|
-
subtree: !0,
|
|
51
|
-
attributes: !0,
|
|
52
|
-
attributeFilter: ["view"]
|
|
53
|
-
}), () => n.disconnect();
|
|
54
|
-
}, []);
|
|
55
|
-
let M = /* @__PURE__ */ f(u, { children: [
|
|
56
|
-
/* @__PURE__ */ d("button", {
|
|
57
|
-
type: "button",
|
|
58
|
-
className: "topbar-icon-btn wui-chart-card-tool wui-chart-card-legend-tool",
|
|
59
|
-
"aria-pressed": k,
|
|
60
|
-
"aria-label": "Show legend",
|
|
61
|
-
title: "Show or hide the legend",
|
|
62
|
-
onClick: () => A(!k),
|
|
63
|
-
children: /* @__PURE__ */ d(t, {
|
|
64
|
-
name: "list",
|
|
65
|
-
size: 16
|
|
66
|
-
})
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ d(a, {
|
|
69
|
-
size: "sm",
|
|
70
|
-
label: "View",
|
|
71
|
-
options: p,
|
|
72
|
-
value: E,
|
|
73
|
-
onChange: (e) => {
|
|
74
|
-
D(e), j()?.setAttribute("view", e);
|
|
75
|
-
}
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ f(i, {
|
|
78
|
-
icon: "more-horizontal",
|
|
79
|
-
label: m ? `More actions for ${m}` : "More actions",
|
|
80
|
-
children: [/* @__PURE__ */ f(l.Item, {
|
|
81
|
-
as: "button",
|
|
82
|
-
type: "button",
|
|
83
|
-
onClick: () => j()?.exportPng?.(),
|
|
84
|
-
children: [/* @__PURE__ */ d(t, {
|
|
85
|
-
name: "image",
|
|
86
|
-
size: 16
|
|
87
|
-
}), "Download PNG"]
|
|
88
|
-
}), /* @__PURE__ */ f(l.Item, {
|
|
89
|
-
as: "button",
|
|
90
|
-
type: "button",
|
|
91
|
-
onClick: () => j()?.exportCsv?.(),
|
|
92
|
-
children: [/* @__PURE__ */ d(t, {
|
|
93
|
-
name: "download",
|
|
94
|
-
size: 16
|
|
95
|
-
}), "Download CSV"]
|
|
96
|
-
})]
|
|
97
|
-
})
|
|
98
|
-
] }), N = [
|
|
99
|
-
"wui-chart-card",
|
|
100
|
-
k ? "" : "wui-chart-card-legend-off",
|
|
101
|
-
S
|
|
102
|
-
].filter(Boolean).join(" ");
|
|
103
|
-
return /* @__PURE__ */ f(r, {
|
|
104
|
-
title: m,
|
|
105
|
-
subtitle: h,
|
|
106
|
-
headerActions: v ? M : void 0,
|
|
107
|
-
footer: b,
|
|
108
|
-
className: N,
|
|
109
|
-
...C,
|
|
110
|
-
children: [/* @__PURE__ */ d("div", {
|
|
111
|
-
ref: w,
|
|
112
|
-
children: x
|
|
113
|
-
}), y && /* @__PURE__ */ d("div", {
|
|
114
|
-
className: "wui-chart-card-retry",
|
|
115
|
-
children: /* @__PURE__ */ d(n, {
|
|
116
|
-
variant: "outline",
|
|
117
|
-
size: "sm",
|
|
118
|
-
onClick: y,
|
|
119
|
-
children: "Try again"
|
|
120
|
-
})
|
|
121
|
-
})]
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
export { v as default };
|
|
1
|
+
import e from"./warnUnknownProps.js";import t from"./AppIcon.js";import n from"./AppButton.js";import r from"./AppCard.js";import i from"./AppDropdown.js";import a from"./AppSegmented.js";import{useLayoutEffect as o,useRef as s,useState as c}from"react";import{Dropdown as l}from"react-bootstrap";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";var p=[{value:`chart`,label:`Chart`,icon:`chart`},{value:`table`,label:`Table`,icon:`grid`}],m=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},h=!1;function g(){h||!m()||(h=!0,console.warn("[@webority/ui-react] <AppChartCard> has no `title`, which is the card's heading and names its menu button."))}var _=e=>e.getAttribute(`view`)===`table`?`table`:`chart`;function v({title:m,subtitle:h,toolbar:v=!0,onRetry:y,footer:b,children:x,className:S=``,...C}){e(`AppChartCard`,C),m||g();let w=s(null),T=s(null),[E,D]=c(`chart`),O=s(E);O.current=E;let[k,A]=c(!0),j=()=>w.current?.querySelector(`wui-chart`);o(()=>{let e=w.current,t=()=>{let t=e.querySelector(`wui-chart`);if(t){if(t===T.current){D(_(t));return}T.current=t,t.hasAttribute(`view`)?D(_(t)):O.current!==`chart`&&t.setAttribute(`view`,O.current)}};t();let n=new MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`view`]}),()=>n.disconnect()},[]);let M=f(u,{children:[d(`button`,{type:`button`,className:`topbar-icon-btn wui-chart-card-tool wui-chart-card-legend-tool`,"aria-pressed":k,"aria-label":`Show legend`,title:`Show or hide the legend`,onClick:()=>A(!k),children:d(t,{name:`list`,size:16})}),d(a,{size:`sm`,label:`View`,options:p,value:E,onChange:e=>{D(e),j()?.setAttribute(`view`,e)}}),f(i,{icon:`more-horizontal`,label:m?`More actions for ${m}`:`More actions`,children:[f(l.Item,{as:`button`,type:`button`,onClick:()=>j()?.exportPng?.(),children:[d(t,{name:`image`,size:16}),`Download PNG`]}),f(l.Item,{as:`button`,type:`button`,onClick:()=>j()?.exportCsv?.(),children:[d(t,{name:`download`,size:16}),`Download CSV`]})]})]}),N=[`wui-chart-card`,k?``:`wui-chart-card-legend-off`,S].filter(Boolean).join(` `);return f(r,{title:m,subtitle:h,headerActions:v?M:void 0,footer:b,className:N,...C,children:[d(`div`,{ref:w,children:x}),y&&d(`div`,{className:`wui-chart-card-retry`,children:d(n,{variant:`outline`,size:`sm`,onClick:y,children:`Try again`})})]})}export{v as default};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "../lib/CheckField.js";
|
|
3
|
-
import { forwardRef as n } from "react";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppCheckbox.jsx
|
|
6
|
-
var i = n(function({ label: n, id: i, name: a, error: o, hint: s, className: c = "", ...l }, u) {
|
|
7
|
-
return e("AppCheckbox", l), /* @__PURE__ */ r(t, {
|
|
8
|
-
ref: u,
|
|
9
|
-
label: n,
|
|
10
|
-
id: i,
|
|
11
|
-
name: a,
|
|
12
|
-
error: o,
|
|
13
|
-
hint: s,
|
|
14
|
-
className: c,
|
|
15
|
-
rest: l,
|
|
16
|
-
inputType: "checkbox",
|
|
17
|
-
wrapperClass: "form-check"
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { i as default };
|
|
1
|
+
import e from"./warnUnknownProps.js";import t from"../lib/CheckField.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";var i=n(function({label:n,id:i,name:a,error:o,hint:s,className:c=``,...l},u){return e(`AppCheckbox`,l),r(t,{ref:u,label:n,id:i,name:a,error:o,hint:s,className:c,rest:l,inputType:`checkbox`,wrapperClass:`form-check`})});export{i as default};
|
|
@@ -1,71 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import n from "./AppIcon.js";
|
|
4
|
-
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppChip.jsx
|
|
6
|
-
var o = [
|
|
7
|
-
"neutral",
|
|
8
|
-
"primary",
|
|
9
|
-
"success",
|
|
10
|
-
"warning",
|
|
11
|
-
"danger",
|
|
12
|
-
"info"
|
|
13
|
-
], s = [
|
|
14
|
-
"soft",
|
|
15
|
-
"outline",
|
|
16
|
-
"solid"
|
|
17
|
-
], c = ["sm", "md"];
|
|
18
|
-
function l({ label: l, children: u, tone: d = "neutral", variant: f = "soft", size: p = "md", leadingIcon: m, avatar: h, onRemove: g, onClick: _, disabled: v = !1, removeLabel: y, className: b = "", ...x }) {
|
|
19
|
-
t("AppChip", x), e("AppChip", "tone", d, o), e("AppChip", "variant", f, s), e("AppChip", "size", p, c);
|
|
20
|
-
let S = l ?? u, C = [
|
|
21
|
-
"chip",
|
|
22
|
-
d && d !== "neutral" ? d : "",
|
|
23
|
-
f === "outline" ? "chip-outline" : f === "solid" ? "chip-solid" : "",
|
|
24
|
-
p === "sm" ? "chip-sm" : "",
|
|
25
|
-
_ ? "chip-clickable" : "",
|
|
26
|
-
g ? "chip-removable" : "",
|
|
27
|
-
v ? "is-disabled" : "",
|
|
28
|
-
b
|
|
29
|
-
].filter(Boolean).join(" "), w = h ? /* @__PURE__ */ i("span", {
|
|
30
|
-
className: "chip-avatar",
|
|
31
|
-
children: typeof h == "string" ? /* @__PURE__ */ i("img", {
|
|
32
|
-
src: h,
|
|
33
|
-
alt: ""
|
|
34
|
-
}) : h
|
|
35
|
-
}) : m ? /* @__PURE__ */ i("span", {
|
|
36
|
-
className: "chip-ic",
|
|
37
|
-
children: /* @__PURE__ */ i(n, {
|
|
38
|
-
name: m,
|
|
39
|
-
size: p === "sm" ? 12 : 14
|
|
40
|
-
})
|
|
41
|
-
}) : null, T = _ ? /* @__PURE__ */ a("button", {
|
|
42
|
-
type: "button",
|
|
43
|
-
className: "chip-body",
|
|
44
|
-
onClick: _,
|
|
45
|
-
disabled: v,
|
|
46
|
-
children: [w, /* @__PURE__ */ i("span", {
|
|
47
|
-
className: "chip-label",
|
|
48
|
-
children: S
|
|
49
|
-
})]
|
|
50
|
-
}) : /* @__PURE__ */ a(r, { children: [w, /* @__PURE__ */ i("span", {
|
|
51
|
-
className: "chip-label",
|
|
52
|
-
children: S
|
|
53
|
-
})] });
|
|
54
|
-
return /* @__PURE__ */ a("span", {
|
|
55
|
-
className: C,
|
|
56
|
-
...x,
|
|
57
|
-
children: [T, g && /* @__PURE__ */ i("button", {
|
|
58
|
-
type: "button",
|
|
59
|
-
className: "chip-remove",
|
|
60
|
-
onClick: g,
|
|
61
|
-
disabled: v,
|
|
62
|
-
"aria-label": y || (typeof S == "string" ? `Remove ${S}` : "Remove"),
|
|
63
|
-
children: /* @__PURE__ */ i(n, {
|
|
64
|
-
name: "x",
|
|
65
|
-
size: p === "sm" ? 12 : 14
|
|
66
|
-
})
|
|
67
|
-
})]
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
export { l as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";var o=[`neutral`,`primary`,`success`,`warning`,`danger`,`info`],s=[`soft`,`outline`,`solid`],c=[`sm`,`md`];function l({label:l,children:u,tone:d=`neutral`,variant:f=`soft`,size:p=`md`,leadingIcon:m,avatar:h,onRemove:g,onClick:_,disabled:v=!1,removeLabel:y,className:b=``,...x}){t(`AppChip`,x),e(`AppChip`,`tone`,d,o),e(`AppChip`,`variant`,f,s),e(`AppChip`,`size`,p,c);let S=l??u,C=[`chip`,d&&d!==`neutral`?d:``,f===`outline`?`chip-outline`:f===`solid`?`chip-solid`:``,p===`sm`?`chip-sm`:``,_?`chip-clickable`:``,g?`chip-removable`:``,v?`is-disabled`:``,b].filter(Boolean).join(` `),w=h?i(`span`,{className:`chip-avatar`,children:typeof h==`string`?i(`img`,{src:h,alt:``}):h}):m?i(`span`,{className:`chip-ic`,children:i(n,{name:m,size:p===`sm`?12:14})}):null,T=_?a(`button`,{type:`button`,className:`chip-body`,onClick:_,disabled:v,children:[w,i(`span`,{className:`chip-label`,children:S})]}):a(r,{children:[w,i(`span`,{className:`chip-label`,children:S})]});return a(`span`,{className:C,...x,children:[T,g&&i(`button`,{type:`button`,className:`chip-remove`,onClick:g,disabled:v,"aria-label":y||(typeof S==`string`?`Remove ${S}`:`Remove`),children:i(n,{name:`x`,size:p===`sm`?12:14})})]})}export{l as default};
|
|
@@ -1,69 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import n from "./AppIcon.js";
|
|
4
|
-
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppChoiceCard.jsx
|
|
6
|
-
var o = {
|
|
7
|
-
sm: " wui-struct-card-sm",
|
|
8
|
-
md: "",
|
|
9
|
-
lg: " wui-struct-card-lg"
|
|
10
|
-
}, s = {
|
|
11
|
-
inline: "",
|
|
12
|
-
stacked: " wui-struct-card-stacked"
|
|
13
|
-
}, c = {
|
|
14
|
-
sm: 16,
|
|
15
|
-
md: 18,
|
|
16
|
-
lg: 22
|
|
17
|
-
};
|
|
18
|
-
function l({ name: l, multiple: u = !1, value: d, checked: f, onChange: p, icon: m, iconNode: h, iconSize: g, image: _, imageAlt: v = "", children: y, title: b, description: x, checkIcon: S = "check", checkSize: C = 18, hideCheck: w = !1, size: T = "md", layout: E = "inline", className: D = "", ...O }) {
|
|
19
|
-
t("AppChoiceCard", O), e("AppChoiceCard", "size", T, Object.keys(o)), e("AppChoiceCard", "layout", E, Object.keys(s));
|
|
20
|
-
let k = o[T] ?? "", A = s[E] ?? "", j = g ?? c[T] ?? c.md;
|
|
21
|
-
return /* @__PURE__ */ a("label", {
|
|
22
|
-
className: `struct-card${_ ? " struct-card-img-card" : ""}${k}${A}${w ? " wui-struct-card-no-check" : ""}${f ? " checked" : ""}${D ? ` ${D}` : ""}`,
|
|
23
|
-
...O,
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ i("input", {
|
|
26
|
-
type: u ? "checkbox" : "radio",
|
|
27
|
-
name: l,
|
|
28
|
-
value: d,
|
|
29
|
-
className: "struct-card-input",
|
|
30
|
-
checked: f,
|
|
31
|
-
onChange: p
|
|
32
|
-
}),
|
|
33
|
-
_ ? /* @__PURE__ */ i("span", {
|
|
34
|
-
className: "struct-card-media",
|
|
35
|
-
children: /* @__PURE__ */ i("img", {
|
|
36
|
-
className: "struct-card-img",
|
|
37
|
-
src: _,
|
|
38
|
-
alt: v
|
|
39
|
-
})
|
|
40
|
-
}) : h || m ? /* @__PURE__ */ i("span", {
|
|
41
|
-
className: "struct-card-ic",
|
|
42
|
-
children: h || /* @__PURE__ */ i(n, {
|
|
43
|
-
name: m,
|
|
44
|
-
size: j,
|
|
45
|
-
variant: f ? "bold" : void 0
|
|
46
|
-
})
|
|
47
|
-
}) : null,
|
|
48
|
-
/* @__PURE__ */ i("span", {
|
|
49
|
-
className: "struct-card-body",
|
|
50
|
-
children: y || /* @__PURE__ */ a(r, { children: [b && /* @__PURE__ */ i("span", {
|
|
51
|
-
className: "struct-card-title",
|
|
52
|
-
children: b
|
|
53
|
-
}), x && /* @__PURE__ */ i("span", {
|
|
54
|
-
className: "struct-card-desc",
|
|
55
|
-
children: x
|
|
56
|
-
})] })
|
|
57
|
-
}),
|
|
58
|
-
!w && /* @__PURE__ */ i("span", {
|
|
59
|
-
className: "struct-card-check",
|
|
60
|
-
children: /* @__PURE__ */ i(n, {
|
|
61
|
-
name: S,
|
|
62
|
-
size: C
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
export { l as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";var o={sm:` wui-struct-card-sm`,md:``,lg:` wui-struct-card-lg`},s={inline:``,stacked:` wui-struct-card-stacked`},c={sm:16,md:18,lg:22};function l({name:l,multiple:u=!1,value:d,checked:f,onChange:p,icon:m,iconNode:h,iconSize:g,image:_,imageAlt:v=``,children:y,title:b,description:x,checkIcon:S=`check`,checkSize:C=18,hideCheck:w=!1,size:T=`md`,layout:E=`inline`,className:D=``,...O}){t(`AppChoiceCard`,O),e(`AppChoiceCard`,`size`,T,Object.keys(o)),e(`AppChoiceCard`,`layout`,E,Object.keys(s));let k=o[T]??``,A=s[E]??``,j=g??c[T]??c.md;return a(`label`,{className:`struct-card${_?` struct-card-img-card`:``}${k}${A}${w?` wui-struct-card-no-check`:``}${f?` checked`:``}${D?` ${D}`:``}`,...O,children:[i(`input`,{type:u?`checkbox`:`radio`,name:l,value:d,className:`struct-card-input`,checked:f,onChange:p}),_?i(`span`,{className:`struct-card-media`,children:i(`img`,{className:`struct-card-img`,src:_,alt:v})}):h||m?i(`span`,{className:`struct-card-ic`,children:h||i(n,{name:m,size:j,variant:f?`bold`:void 0})}):null,i(`span`,{className:`struct-card-body`,children:y||a(r,{children:[b&&i(`span`,{className:`struct-card-title`,children:b}),x&&i(`span`,{className:`struct-card-desc`,children:x})]})}),!w&&i(`span`,{className:`struct-card-check`,children:i(n,{name:S,size:C})})]})}export{l as default};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/AppChoiceChip.jsx
|
|
5
|
-
var i = [
|
|
6
|
-
"sm",
|
|
7
|
-
"md",
|
|
8
|
-
"lg"
|
|
9
|
-
];
|
|
10
|
-
function a({ multiple: a = !0, label: o, name: s, value: c, checked: l, onChange: u, children: d, count: f, size: p = "md", className: m = "", ...h }) {
|
|
11
|
-
return t("AppChoiceChip", h), e("AppChoiceChip", "size", p, i), /* @__PURE__ */ r("label", {
|
|
12
|
-
className: `choice-chip${l ? " checked" : ""}${p === "sm" ? " choice-chip-sm" : p === "lg" ? " choice-chip-lg" : ""}${m ? ` ${m}` : ""}`,
|
|
13
|
-
...h,
|
|
14
|
-
children: [
|
|
15
|
-
/* @__PURE__ */ n("input", {
|
|
16
|
-
type: a ? "checkbox" : "radio",
|
|
17
|
-
name: s,
|
|
18
|
-
value: c,
|
|
19
|
-
checked: l,
|
|
20
|
-
onChange: u
|
|
21
|
-
}),
|
|
22
|
-
/* @__PURE__ */ n("span", { children: o ?? d }),
|
|
23
|
-
f != null && /* @__PURE__ */ n("span", {
|
|
24
|
-
className: "count",
|
|
25
|
-
children: f
|
|
26
|
-
})
|
|
27
|
-
]
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { a as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";var i=[`sm`,`md`,`lg`];function a({multiple:a=!0,label:o,name:s,value:c,checked:l,onChange:u,children:d,count:f,size:p=`md`,className:m=``,...h}){return t(`AppChoiceChip`,h),e(`AppChoiceChip`,`size`,p,i),r(`label`,{className:`choice-chip${l?` checked`:``}${p===`sm`?` choice-chip-sm`:p===`lg`?` choice-chip-lg`:``}${m?` ${m}`:``}`,...h,children:[n(`input`,{type:a?`checkbox`:`radio`,name:s,value:c,checked:l,onChange:u}),n(`span`,{children:o??d}),f!=null&&n(`span`,{className:`count`,children:f})]})}export{a as default};
|
|
@@ -1,63 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import n from "./AppRequiredMark.js";
|
|
4
|
-
import { useId as r } from "react";
|
|
5
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/AppColorField.jsx
|
|
7
|
-
var o = [
|
|
8
|
-
"sm",
|
|
9
|
-
"md",
|
|
10
|
-
"lg"
|
|
11
|
-
];
|
|
12
|
-
function s({ value: s = "#000000", onChange: c, label: l, required: u = !1, error: d, hint: f, name: p, id: m, disabled: h = !1, size: g = "md", className: _ = "", fieldClassName: v = "", ...y }) {
|
|
13
|
-
t("AppColorField", y), e("AppColorField", "size", g, o);
|
|
14
|
-
let b = r(), x = m || b, S = d ? `${x}-error` : f ? `${x}-hint` : void 0, C = (e) => /^#[0-9a-f]{6}$/i.test(e), w = g === "sm" ? " color-field-sm" : g === "lg" ? " color-field-lg" : "", T = g === "sm" ? " input-sm" : g === "lg" ? " input-lg" : "";
|
|
15
|
-
return /* @__PURE__ */ a("div", {
|
|
16
|
-
className: `field${v ? ` ${v}` : ""}`,
|
|
17
|
-
children: [
|
|
18
|
-
l && /* @__PURE__ */ a("label", {
|
|
19
|
-
className: "label",
|
|
20
|
-
htmlFor: x,
|
|
21
|
-
children: [l, u && /* @__PURE__ */ i(n, {})]
|
|
22
|
-
}),
|
|
23
|
-
/* @__PURE__ */ a("div", {
|
|
24
|
-
className: `color-field${w}`,
|
|
25
|
-
children: [/* @__PURE__ */ i("input", {
|
|
26
|
-
type: "color",
|
|
27
|
-
className: "color-field-swatch",
|
|
28
|
-
value: C(s) ? s : "#000000",
|
|
29
|
-
onChange: (e) => c?.(e.target.value),
|
|
30
|
-
disabled: h,
|
|
31
|
-
"aria-label": `${l || "Colour"}, colour picker`,
|
|
32
|
-
tabIndex: -1
|
|
33
|
-
}), /* @__PURE__ */ i("input", {
|
|
34
|
-
type: "text",
|
|
35
|
-
className: `input color-field-hex${T}${d ? " error" : ""}${_ ? ` ${_}` : ""}`,
|
|
36
|
-
id: x,
|
|
37
|
-
name: p,
|
|
38
|
-
value: s,
|
|
39
|
-
onChange: (e) => c?.(e.target.value),
|
|
40
|
-
placeholder: "#4F46E5",
|
|
41
|
-
spellCheck: !1,
|
|
42
|
-
maxLength: 7,
|
|
43
|
-
required: u,
|
|
44
|
-
disabled: h,
|
|
45
|
-
"aria-invalid": d ? "true" : "false",
|
|
46
|
-
"aria-describedby": S,
|
|
47
|
-
...y
|
|
48
|
-
})]
|
|
49
|
-
}),
|
|
50
|
-
d ? /* @__PURE__ */ i("div", {
|
|
51
|
-
className: "field-error",
|
|
52
|
-
id: `${x}-error`,
|
|
53
|
-
children: d
|
|
54
|
-
}) : f ? /* @__PURE__ */ i("div", {
|
|
55
|
-
className: "field-hint",
|
|
56
|
-
id: `${x}-hint`,
|
|
57
|
-
children: f
|
|
58
|
-
}) : null
|
|
59
|
-
]
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { s as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppRequiredMark.js";import{useId as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=[`sm`,`md`,`lg`];function s({value:s=`#000000`,onChange:c,label:l,required:u=!1,error:d,hint:f,name:p,id:m,disabled:h=!1,size:g=`md`,className:_=``,fieldClassName:v=``,...y}){t(`AppColorField`,y),e(`AppColorField`,`size`,g,o);let b=r(),x=m||b,S=d?`${x}-error`:f?`${x}-hint`:void 0,C=e=>/^#[0-9a-f]{6}$/i.test(e),w=g===`sm`?` color-field-sm`:g===`lg`?` color-field-lg`:``,T=g===`sm`?` input-sm`:g===`lg`?` input-lg`:``;return a(`div`,{className:`field${v?` ${v}`:``}`,children:[l&&a(`label`,{className:`label`,htmlFor:x,children:[l,u&&i(n,{})]}),a(`div`,{className:`color-field${w}`,children:[i(`input`,{type:`color`,className:`color-field-swatch`,value:C(s)?s:`#000000`,onChange:e=>c?.(e.target.value),disabled:h,"aria-label":`${l||`Colour`}, colour picker`,tabIndex:-1}),i(`input`,{type:`text`,className:`input color-field-hex${T}${d?` error`:``}${_?` ${_}`:``}`,id:x,name:p,value:s,onChange:e=>c?.(e.target.value),placeholder:`#4F46E5`,spellCheck:!1,maxLength:7,required:u,disabled:h,"aria-invalid":d?`true`:`false`,"aria-describedby":S,...y})]}),d?i(`div`,{className:`field-error`,id:`${x}-error`,children:d}):f?i(`div`,{className:`field-hint`,id:`${x}-hint`,children:f}):null]})}export{s as default};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./AppDropdown.js";
|
|
3
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/AppColumnMenu.jsx
|
|
5
|
-
function i({ columns: i, hiddenColumns: a = [], onToggle: o, label: s = "Columns", className: c = "", ...l }) {
|
|
6
|
-
e("AppColumnMenu", l);
|
|
7
|
-
let u = i.filter((e) => e.hideable);
|
|
8
|
-
return /* @__PURE__ */ r(t, {
|
|
9
|
-
icon: "layout-grid",
|
|
10
|
-
label: s,
|
|
11
|
-
menuClassName: `wui-column-menu${c ? ` ${c}` : ""}`,
|
|
12
|
-
children: [/* @__PURE__ */ n("div", {
|
|
13
|
-
className: "wui-column-menu-title",
|
|
14
|
-
children: s
|
|
15
|
-
}), u.map((e) => /* @__PURE__ */ r("label", {
|
|
16
|
-
className: "wui-column-menu-item",
|
|
17
|
-
children: [/* @__PURE__ */ n("input", {
|
|
18
|
-
type: "checkbox",
|
|
19
|
-
className: "wui-check",
|
|
20
|
-
checked: !a.includes(e.key),
|
|
21
|
-
onChange: () => o(e.key)
|
|
22
|
-
}), e.label]
|
|
23
|
-
}, e.key))]
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { i as default };
|
|
1
|
+
import e from"./warnUnknownProps.js";import t from"./AppDropdown.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({columns:i,hiddenColumns:a=[],onToggle:o,label:s=`Columns`,className:c=``,...l}){e(`AppColumnMenu`,l);let u=i.filter(e=>e.hideable);return r(t,{icon:`layout-grid`,label:s,menuClassName:`wui-column-menu${c?` ${c}`:``}`,children:[n(`div`,{className:`wui-column-menu-title`,children:s}),u.map(e=>r(`label`,{className:`wui-column-menu-item`,children:[n(`input`,{type:`checkbox`,className:`wui-check`,checked:!a.includes(e.key),onChange:()=>o(e.key)}),e.label]},e.key))]})}export{i as default};
|