@variocube/app-ui 1.14.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/README.md +65 -0
- package/esm/AppShell/AppShell.d.ts +12 -0
- package/esm/AppShell/AppShell.js +92 -0
- package/esm/AppShell/AppShell.js.map +1 -0
- package/esm/AppShell/index.d.ts +1 -0
- package/esm/AppShell/index.js +2 -0
- package/esm/AppShell/index.js.map +1 -0
- package/esm/ErrorAlert.d.ts +12 -0
- package/esm/ErrorAlert.js +61 -0
- package/esm/ErrorAlert.js.map +1 -0
- package/esm/Input/ActionsMenu.d.ts +9 -0
- package/esm/Input/ActionsMenu.js +29 -0
- package/esm/Input/ActionsMenu.js.map +1 -0
- package/esm/Input/Checkbox.d.ts +9 -0
- package/esm/Input/Checkbox.js +23 -0
- package/esm/Input/Checkbox.js.map +1 -0
- package/esm/Input/EmailSenderField.d.ts +8 -0
- package/esm/Input/EmailSenderField.js +71 -0
- package/esm/Input/EmailSenderField.js.map +1 -0
- package/esm/Input/NumberField.d.ts +10 -0
- package/esm/Input/NumberField.js +94 -0
- package/esm/Input/NumberField.js.map +1 -0
- package/esm/Input/RadioGroup.d.ts +12 -0
- package/esm/Input/RadioGroup.js +20 -0
- package/esm/Input/RadioGroup.js.map +1 -0
- package/esm/Input/Select.d.ts +11 -0
- package/esm/Input/Select.js +19 -0
- package/esm/Input/Select.js.map +1 -0
- package/esm/Input/Selector.d.ts +10 -0
- package/esm/Input/Selector.js +19 -0
- package/esm/Input/Selector.js.map +1 -0
- package/esm/Input/Switch.d.ts +9 -0
- package/esm/Input/Switch.js +23 -0
- package/esm/Input/Switch.js.map +1 -0
- package/esm/Input/TextField.d.ts +7 -0
- package/esm/Input/TextField.js +58 -0
- package/esm/Input/TextField.js.map +1 -0
- package/esm/Input/UrlUploadField.d.ts +9 -0
- package/esm/Input/UrlUploadField.js +43 -0
- package/esm/Input/UrlUploadField.js.map +1 -0
- package/esm/Input/index.d.ts +9 -0
- package/esm/Input/index.js +10 -0
- package/esm/Input/index.js.map +1 -0
- package/esm/LanguageSwitcher/LanguageSwitcher.d.ts +14 -0
- package/esm/LanguageSwitcher/LanguageSwitcher.js +20 -0
- package/esm/LanguageSwitcher/LanguageSwitcher.js.map +1 -0
- package/esm/LanguageSwitcher/index.d.ts +1 -0
- package/esm/LanguageSwitcher/index.js +2 -0
- package/esm/LanguageSwitcher/index.js.map +1 -0
- package/esm/Paging/Paging.d.ts +40 -0
- package/esm/Paging/Paging.js +43 -0
- package/esm/Paging/Paging.js.map +1 -0
- package/esm/Paging/index.d.ts +1 -0
- package/esm/Paging/index.js +2 -0
- package/esm/Paging/index.js.map +1 -0
- package/esm/VCThemeProvider/JetbrainsMonoFont.d.ts +5 -0
- package/esm/VCThemeProvider/JetbrainsMonoFont.js +52 -0
- package/esm/VCThemeProvider/JetbrainsMonoFont.js.map +1 -0
- package/esm/VCThemeProvider/RobotoFont.d.ts +7 -0
- package/esm/VCThemeProvider/RobotoFont.js +49 -0
- package/esm/VCThemeProvider/RobotoFont.js.map +1 -0
- package/esm/VCThemeProvider/ThemeModeSwitcher.d.ts +2 -0
- package/esm/VCThemeProvider/ThemeModeSwitcher.js +14 -0
- package/esm/VCThemeProvider/ThemeModeSwitcher.js.map +1 -0
- package/esm/VCThemeProvider/VCThemeProvider.d.ts +25 -0
- package/esm/VCThemeProvider/VCThemeProvider.js +173 -0
- package/esm/VCThemeProvider/VCThemeProvider.js.map +1 -0
- package/esm/VCThemeProvider/code-colors.d.ts +108 -0
- package/esm/VCThemeProvider/code-colors.js +26 -0
- package/esm/VCThemeProvider/code-colors.js.map +1 -0
- package/esm/VCThemeProvider/index.d.ts +5 -0
- package/esm/VCThemeProvider/index.js +6 -0
- package/esm/VCThemeProvider/index.js.map +1 -0
- package/esm/audit/AuditChanges.d.ts +9 -0
- package/esm/audit/AuditChanges.js +43 -0
- package/esm/audit/AuditChanges.js.map +1 -0
- package/esm/audit/AuditTimeline.d.ts +6 -0
- package/esm/audit/AuditTimeline.js +13 -0
- package/esm/audit/AuditTimeline.js.map +1 -0
- package/esm/audit/AuditTimelineItem.d.ts +10 -0
- package/esm/audit/AuditTimelineItem.js +27 -0
- package/esm/audit/AuditTimelineItem.js.map +1 -0
- package/esm/audit/index.d.ts +4 -0
- package/esm/audit/index.js +5 -0
- package/esm/audit/index.js.map +1 -0
- package/esm/audit/types.d.ts +42 -0
- package/esm/audit/types.js +2 -0
- package/esm/audit/types.js.map +1 -0
- package/esm/breadcrumbs.d.ts +6 -0
- package/esm/breadcrumbs.js +13 -0
- package/esm/breadcrumbs.js.map +1 -0
- package/esm/code/Code.d.ts +10 -0
- package/esm/code/Code.js +19 -0
- package/esm/code/Code.js.map +1 -0
- package/esm/code/CodeBlock.d.ts +4 -0
- package/esm/code/CodeBlock.js +6 -0
- package/esm/code/CodeBlock.js.map +1 -0
- package/esm/code/Json.d.ts +4 -0
- package/esm/code/Json.js +60 -0
- package/esm/code/Json.js.map +1 -0
- package/esm/code/index.d.ts +3 -0
- package/esm/code/index.js +4 -0
- package/esm/code/index.js.map +1 -0
- package/esm/confirm/ConfirmButton.d.ts +16 -0
- package/esm/confirm/ConfirmButton.js +29 -0
- package/esm/confirm/ConfirmButton.js.map +1 -0
- package/esm/confirm/ConfirmDialog.d.ts +16 -0
- package/esm/confirm/ConfirmDialog.js +35 -0
- package/esm/confirm/ConfirmDialog.js.map +1 -0
- package/esm/confirm/ConfirmIconButton.d.ts +14 -0
- package/esm/confirm/ConfirmIconButton.js +29 -0
- package/esm/confirm/ConfirmIconButton.js.map +1 -0
- package/esm/confirm/ConfirmMenuItem.d.ts +15 -0
- package/esm/confirm/ConfirmMenuItem.js +31 -0
- package/esm/confirm/ConfirmMenuItem.js.map +1 -0
- package/esm/confirm/index.d.ts +4 -0
- package/esm/confirm/index.js +5 -0
- package/esm/confirm/index.js.map +1 -0
- package/esm/container/ContainerLayout.d.ts +8 -0
- package/esm/container/ContainerLayout.js +20 -0
- package/esm/container/ContainerLayout.js.map +1 -0
- package/esm/container/ContainerSettingsContext.d.ts +12 -0
- package/esm/container/ContainerSettingsContext.js +46 -0
- package/esm/container/ContainerSettingsContext.js.map +1 -0
- package/esm/container/ContainerWidthControl.d.ts +6 -0
- package/esm/container/ContainerWidthControl.js +12 -0
- package/esm/container/ContainerWidthControl.js.map +1 -0
- package/esm/container/index.d.ts +3 -0
- package/esm/container/index.js +4 -0
- package/esm/container/index.js.map +1 -0
- package/esm/content-table/ContentTable.d.ts +25 -0
- package/esm/content-table/ContentTable.js +87 -0
- package/esm/content-table/ContentTable.js.map +1 -0
- package/esm/content-table/UndrawEmpty.d.ts +2 -0
- package/esm/content-table/UndrawEmpty.js +71 -0
- package/esm/content-table/UndrawEmpty.js.map +1 -0
- package/esm/content-table/index.d.ts +1 -0
- package/esm/content-table/index.js +2 -0
- package/esm/content-table/index.js.map +1 -0
- package/esm/country/countries.d.ts +34 -0
- package/esm/country/countries.js +266 -0
- package/esm/country/countries.js.map +1 -0
- package/esm/country/country-select.d.ts +8 -0
- package/esm/country/country-select.js +18 -0
- package/esm/country/country-select.js.map +1 -0
- package/esm/country/index.d.ts +5 -0
- package/esm/country/index.js +6 -0
- package/esm/country/index.js.map +1 -0
- package/esm/country/locale-select.d.ts +9 -0
- package/esm/country/locale-select.js +15 -0
- package/esm/country/locale-select.js.map +1 -0
- package/esm/country/locales.d.ts +10 -0
- package/esm/country/locales.js +190 -0
- package/esm/country/locales.js.map +1 -0
- package/esm/country/phone-prefix-select.d.ts +9 -0
- package/esm/country/phone-prefix-select.js +18 -0
- package/esm/country/phone-prefix-select.js.map +1 -0
- package/esm/cube/BoxFeatures.d.ts +11 -0
- package/esm/cube/BoxFeatures.js +40 -0
- package/esm/cube/BoxFeatures.js.map +1 -0
- package/esm/cube/BoxMaintenanceChip.d.ts +9 -0
- package/esm/cube/BoxMaintenanceChip.js +15 -0
- package/esm/cube/BoxMaintenanceChip.js.map +1 -0
- package/esm/cube/BoxNumber.d.ts +6 -0
- package/esm/cube/BoxNumber.js +6 -0
- package/esm/cube/BoxNumber.js.map +1 -0
- package/esm/cube/BoxType.d.ts +7 -0
- package/esm/cube/BoxType.js +21 -0
- package/esm/cube/BoxType.js.map +1 -0
- package/esm/cube/CubeConnectedChip.d.ts +9 -0
- package/esm/cube/CubeConnectedChip.js +22 -0
- package/esm/cube/CubeConnectedChip.js.map +1 -0
- package/esm/cube/LockStatusChip.d.ts +11 -0
- package/esm/cube/LockStatusChip.js +40 -0
- package/esm/cube/LockStatusChip.js.map +1 -0
- package/esm/cube/UtilizationBar.d.ts +11 -0
- package/esm/cube/UtilizationBar.js +38 -0
- package/esm/cube/UtilizationBar.js.map +1 -0
- package/esm/cube/accessibility.d.ts +48 -0
- package/esm/cube/accessibility.js +242 -0
- package/esm/cube/accessibility.js.map +1 -0
- package/esm/cube/index.d.ts +8 -0
- package/esm/cube/index.js +9 -0
- package/esm/cube/index.js.map +1 -0
- package/esm/data-table/DataTable.d.ts +63 -0
- package/esm/data-table/DataTable.js +124 -0
- package/esm/data-table/DataTable.js.map +1 -0
- package/esm/data-table/DataTableColumnSettings.d.ts +10 -0
- package/esm/data-table/DataTableColumnSettings.js +98 -0
- package/esm/data-table/DataTableColumnSettings.js.map +1 -0
- package/esm/data-table/DataTableHeader.d.ts +2 -0
- package/esm/data-table/DataTableHeader.js +6 -0
- package/esm/data-table/DataTableHeader.js.map +1 -0
- package/esm/data-table/DataTableToolbar.d.ts +2 -0
- package/esm/data-table/DataTableToolbar.js +6 -0
- package/esm/data-table/DataTableToolbar.js.map +1 -0
- package/esm/data-table/index.d.ts +8 -0
- package/esm/data-table/index.js +9 -0
- package/esm/data-table/index.js.map +1 -0
- package/esm/data-table/useDataTableColumnStorage.d.ts +5 -0
- package/esm/data-table/useDataTableColumnStorage.js +20 -0
- package/esm/data-table/useDataTableColumnStorage.js.map +1 -0
- package/esm/data-table/useDataTableStorage.d.ts +16 -0
- package/esm/data-table/useDataTableStorage.js +19 -0
- package/esm/data-table/useDataTableStorage.js.map +1 -0
- package/esm/data-table/useSpringPage.d.ts +6 -0
- package/esm/data-table/useSpringPage.js +18 -0
- package/esm/data-table/useSpringPage.js.map +1 -0
- package/esm/data-table/useSpringPageable.d.ts +9 -0
- package/esm/data-table/useSpringPageable.js +10 -0
- package/esm/data-table/useSpringPageable.js.map +1 -0
- package/esm/date-pickers/PlainAdapterCommon.d.ts +31 -0
- package/esm/date-pickers/PlainAdapterCommon.js +97 -0
- package/esm/date-pickers/PlainAdapterCommon.js.map +1 -0
- package/esm/date-pickers/PlainDateAdapter.d.ts +30 -0
- package/esm/date-pickers/PlainDateAdapter.js +114 -0
- package/esm/date-pickers/PlainDateAdapter.js.map +1 -0
- package/esm/date-pickers/PlainDatePicker.d.ts +21 -0
- package/esm/date-pickers/PlainDatePicker.js +26 -0
- package/esm/date-pickers/PlainDatePicker.js.map +1 -0
- package/esm/date-pickers/PlainDatePicker.spec.d.ts +1 -0
- package/esm/date-pickers/PlainDatePicker.spec.js +15 -0
- package/esm/date-pickers/PlainDatePicker.spec.js.map +1 -0
- package/esm/date-pickers/PlainDateTimeAdapter.d.ts +30 -0
- package/esm/date-pickers/PlainDateTimeAdapter.js +114 -0
- package/esm/date-pickers/PlainDateTimeAdapter.js.map +1 -0
- package/esm/date-pickers/PlainDateTimePicker.d.ts +20 -0
- package/esm/date-pickers/PlainDateTimePicker.js +26 -0
- package/esm/date-pickers/PlainDateTimePicker.js.map +1 -0
- package/esm/date-pickers/PlainDateTimePicker.spec.d.ts +1 -0
- package/esm/date-pickers/PlainDateTimePicker.spec.js +15 -0
- package/esm/date-pickers/PlainDateTimePicker.spec.js.map +1 -0
- package/esm/date-pickers/PlainTimeAdapter.d.ts +58 -0
- package/esm/date-pickers/PlainTimeAdapter.js +194 -0
- package/esm/date-pickers/PlainTimeAdapter.js.map +1 -0
- package/esm/date-pickers/PlainTimePicker.d.ts +16 -0
- package/esm/date-pickers/PlainTimePicker.js +24 -0
- package/esm/date-pickers/PlainTimePicker.js.map +1 -0
- package/esm/date-pickers/PlainTimePicker.spec.d.ts +1 -0
- package/esm/date-pickers/PlainTimePicker.spec.js +15 -0
- package/esm/date-pickers/PlainTimePicker.spec.js.map +1 -0
- package/esm/date-pickers/TemporalAdapter.d.ts +18 -0
- package/esm/date-pickers/TemporalAdapter.js +109 -0
- package/esm/date-pickers/TemporalAdapter.js.map +1 -0
- package/esm/date-pickers/TimezoneSelect.d.ts +9 -0
- package/esm/date-pickers/TimezoneSelect.js +357 -0
- package/esm/date-pickers/TimezoneSelect.js.map +1 -0
- package/esm/date-pickers/getFormatString.d.ts +11 -0
- package/esm/date-pickers/getFormatString.js +26 -0
- package/esm/date-pickers/getFormatString.js.map +1 -0
- package/esm/date-pickers/index.d.ts +5 -0
- package/esm/date-pickers/index.js +6 -0
- package/esm/date-pickers/index.js.map +1 -0
- package/esm/date-pickers/parse.d.ts +4 -0
- package/esm/date-pickers/parse.js +66 -0
- package/esm/date-pickers/parse.js.map +1 -0
- package/esm/date-pickers/timeframe-picker.d.ts +46 -0
- package/esm/date-pickers/timeframe-picker.js +120 -0
- package/esm/date-pickers/timeframe-picker.js.map +1 -0
- package/esm/date-pickers/useLocale.d.ts +1 -0
- package/esm/date-pickers/useLocale.js +6 -0
- package/esm/date-pickers/useLocale.js.map +1 -0
- package/esm/date-pickers/useRenderInput.d.ts +4 -0
- package/esm/date-pickers/useRenderInput.js +8 -0
- package/esm/date-pickers/useRenderInput.js.map +1 -0
- package/esm/fetch.d.ts +51 -0
- package/esm/fetch.js +138 -0
- package/esm/fetch.js.map +1 -0
- package/esm/filter/Filter.d.ts +38 -0
- package/esm/filter/Filter.js +72 -0
- package/esm/filter/Filter.js.map +1 -0
- package/esm/filter/index.d.ts +1 -0
- package/esm/filter/index.js +2 -0
- package/esm/filter/index.js.map +1 -0
- package/esm/formats/CompactFormat.d.ts +22 -0
- package/esm/formats/CompactFormat.js +21 -0
- package/esm/formats/CompactFormat.js.map +1 -0
- package/esm/formats/CompactFormat.spec.d.ts +1 -0
- package/esm/formats/CompactFormat.spec.js +22 -0
- package/esm/formats/CompactFormat.spec.js.map +1 -0
- package/esm/formats/CurrencyFormat.d.ts +39 -0
- package/esm/formats/CurrencyFormat.js +25 -0
- package/esm/formats/CurrencyFormat.js.map +1 -0
- package/esm/formats/CurrencyFormat.spec.d.ts +1 -0
- package/esm/formats/CurrencyFormat.spec.js +22 -0
- package/esm/formats/CurrencyFormat.spec.js.map +1 -0
- package/esm/formats/DecimalFormat.d.ts +29 -0
- package/esm/formats/DecimalFormat.js +22 -0
- package/esm/formats/DecimalFormat.js.map +1 -0
- package/esm/formats/DecimalFormat.spec.d.ts +1 -0
- package/esm/formats/DecimalFormat.spec.js +22 -0
- package/esm/formats/DecimalFormat.spec.js.map +1 -0
- package/esm/formats/DurationFormat.d.ts +23 -0
- package/esm/formats/DurationFormat.js +35 -0
- package/esm/formats/DurationFormat.js.map +1 -0
- package/esm/formats/DurationFormat.spec.d.ts +1 -0
- package/esm/formats/DurationFormat.spec.js +52 -0
- package/esm/formats/DurationFormat.spec.js.map +1 -0
- package/esm/formats/RelativeTemporalFormat.d.ts +22 -0
- package/esm/formats/RelativeTemporalFormat.js +57 -0
- package/esm/formats/RelativeTemporalFormat.js.map +1 -0
- package/esm/formats/RelativeTemporalFormat.spec.d.ts +1 -0
- package/esm/formats/RelativeTemporalFormat.spec.js +77 -0
- package/esm/formats/RelativeTemporalFormat.spec.js.map +1 -0
- package/esm/formats/SwitchableTemporalFormat.d.ts +5 -0
- package/esm/formats/SwitchableTemporalFormat.js +11 -0
- package/esm/formats/SwitchableTemporalFormat.js.map +1 -0
- package/esm/formats/TemporalFormat.d.ts +27 -0
- package/esm/formats/TemporalFormat.js +19 -0
- package/esm/formats/TemporalFormat.js.map +1 -0
- package/esm/formats/TemporalFormat.spec.d.ts +1 -0
- package/esm/formats/TemporalFormat.spec.js +87 -0
- package/esm/formats/TemporalFormat.spec.js.map +1 -0
- package/esm/formats/TemporalRangeFormat.d.ts +30 -0
- package/esm/formats/TemporalRangeFormat.js +17 -0
- package/esm/formats/TemporalRangeFormat.js.map +1 -0
- package/esm/formats/TemporalRangeFormat.spec.d.ts +1 -0
- package/esm/formats/TemporalRangeFormat.spec.js +87 -0
- package/esm/formats/TemporalRangeFormat.spec.js.map +1 -0
- package/esm/formats/index.d.ts +8 -0
- package/esm/formats/index.js +9 -0
- package/esm/formats/index.js.map +1 -0
- package/esm/formats/types.d.ts +2 -0
- package/esm/formats/types.js +2 -0
- package/esm/formats/types.js.map +1 -0
- package/esm/formats/useDateTimeFormat.d.ts +2 -0
- package/esm/formats/useDateTimeFormat.js +7 -0
- package/esm/formats/useDateTimeFormat.js.map +1 -0
- package/esm/formats/useNumberFormat.d.ts +1 -0
- package/esm/formats/useNumberFormat.js +6 -0
- package/esm/formats/useNumberFormat.js.map +1 -0
- package/esm/formats/useRelativeTimeFormat.d.ts +1 -0
- package/esm/formats/useRelativeTimeFormat.js +6 -0
- package/esm/formats/useRelativeTimeFormat.js.map +1 -0
- package/esm/forms/EditForm.d.ts +13 -0
- package/esm/forms/EditForm.js +22 -0
- package/esm/forms/EditForm.js.map +1 -0
- package/esm/forms/SearchForm.d.ts +7 -0
- package/esm/forms/SearchForm.js +36 -0
- package/esm/forms/SearchForm.js.map +1 -0
- package/esm/forms/SubmitButton.d.ts +9 -0
- package/esm/forms/SubmitButton.js +28 -0
- package/esm/forms/SubmitButton.js.map +1 -0
- package/esm/forms/index.d.ts +4 -0
- package/esm/forms/index.js +5 -0
- package/esm/forms/index.js.map +1 -0
- package/esm/forms/useFormSubmit.d.ts +12 -0
- package/esm/forms/useFormSubmit.js +28 -0
- package/esm/forms/useFormSubmit.js.map +1 -0
- package/esm/getNavigatorLanguages.d.ts +5 -0
- package/esm/getNavigatorLanguages.js +11 -0
- package/esm/getNavigatorLanguages.js.map +1 -0
- package/esm/getSupportedFormatLocale.d.ts +19 -0
- package/esm/getSupportedFormatLocale.js +21 -0
- package/esm/getSupportedFormatLocale.js.map +1 -0
- package/esm/help/HelpButton.d.ts +12 -0
- package/esm/help/HelpButton.js +74 -0
- package/esm/help/HelpButton.js.map +1 -0
- package/esm/help/HelpDrawer.d.ts +3 -0
- package/esm/help/HelpDrawer.js +48 -0
- package/esm/help/HelpDrawer.js.map +1 -0
- package/esm/help/HelpSettingsContext.d.ts +26 -0
- package/esm/help/HelpSettingsContext.js +94 -0
- package/esm/help/HelpSettingsContext.js.map +1 -0
- package/esm/help/index.d.ts +3 -0
- package/esm/help/index.js +4 -0
- package/esm/help/index.js.map +1 -0
- package/esm/icons.d.ts +21 -0
- package/esm/icons.js +22 -0
- package/esm/icons.js.map +1 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.js +35 -0
- package/esm/index.js.map +1 -0
- package/esm/layout/ErrorBoundary.d.ts +46 -0
- package/esm/layout/ErrorBoundary.js +186 -0
- package/esm/layout/ErrorBoundary.js.map +1 -0
- package/esm/layout/NotFound.d.ts +9 -0
- package/esm/layout/NotFound.js +26 -0
- package/esm/layout/NotFound.js.map +1 -0
- package/esm/layout/NotFoundSvg.d.ts +2 -0
- package/esm/layout/NotFoundSvg.js +37 -0
- package/esm/layout/NotFoundSvg.js.map +1 -0
- package/esm/layout/UserNav.d.ts +15 -0
- package/esm/layout/UserNav.js +50 -0
- package/esm/layout/UserNav.js.map +1 -0
- package/esm/layout/index.d.ts +5 -0
- package/esm/layout/index.js +6 -0
- package/esm/layout/index.js.map +1 -0
- package/esm/layout/layout-context.d.ts +9 -0
- package/esm/layout/layout-context.js +23 -0
- package/esm/layout/layout-context.js.map +1 -0
- package/esm/layout/page-title.d.ts +7 -0
- package/esm/layout/page-title.js +41 -0
- package/esm/layout/page-title.js.map +1 -0
- package/esm/list/List.d.ts +14 -0
- package/esm/list/List.js +25 -0
- package/esm/list/List.js.map +1 -0
- package/esm/list/SkeletonListItem.d.ts +14 -0
- package/esm/list/SkeletonListItem.js +11 -0
- package/esm/list/SkeletonListItem.js.map +1 -0
- package/esm/list/index.d.ts +1 -0
- package/esm/list/index.js +2 -0
- package/esm/list/index.js.map +1 -0
- package/esm/localization.d.ts +140 -0
- package/esm/localization.js +200 -0
- package/esm/localization.js.map +1 -0
- package/esm/logo/Logo.d.ts +7 -0
- package/esm/logo/Logo.js +29 -0
- package/esm/logo/Logo.js.map +1 -0
- package/esm/logo/VCAppLogo.d.ts +7 -0
- package/esm/logo/VCAppLogo.js +28 -0
- package/esm/logo/VCAppLogo.js.map +1 -0
- package/esm/logo/VCLogo.d.ts +4 -0
- package/esm/logo/VCLogo.js +33 -0
- package/esm/logo/VCLogo.js.map +1 -0
- package/esm/logo/VCLogoIcon.d.ts +4 -0
- package/esm/logo/VCLogoIcon.js +36 -0
- package/esm/logo/VCLogoIcon.js.map +1 -0
- package/esm/logo/index.d.ts +4 -0
- package/esm/logo/index.js +5 -0
- package/esm/logo/index.js.map +1 -0
- package/esm/splash/index.d.ts +3 -0
- package/esm/splash/index.js +37 -0
- package/esm/splash/index.js.map +1 -0
- package/esm/spring.d.ts +14 -0
- package/esm/spring.js +2 -0
- package/esm/spring.js.map +1 -0
- package/esm/storage/MemoryStorage.d.ts +7 -0
- package/esm/storage/MemoryStorage.js +18 -0
- package/esm/storage/MemoryStorage.js.map +1 -0
- package/esm/storage/index.d.ts +2 -0
- package/esm/storage/index.js +3 -0
- package/esm/storage/index.js.map +1 -0
- package/esm/storage/storage.d.ts +16 -0
- package/esm/storage/storage.js +87 -0
- package/esm/storage/storage.js.map +1 -0
- package/esm/storage/useStorage.d.ts +1 -0
- package/esm/storage/useStorage.js +29 -0
- package/esm/storage/useStorage.js.map +1 -0
- package/esm/tabs/Tabs.d.ts +10 -0
- package/esm/tabs/Tabs.js +95 -0
- package/esm/tabs/Tabs.js.map +1 -0
- package/esm/tabs/index.d.ts +1 -0
- package/esm/tabs/index.js +2 -0
- package/esm/tabs/index.js.map +1 -0
- package/esm/temporal/index.d.ts +2 -0
- package/esm/temporal/index.js +3 -0
- package/esm/temporal/index.js.map +1 -0
- package/esm/temporal/parse.d.ts +4 -0
- package/esm/temporal/parse.js +25 -0
- package/esm/temporal/parse.js.map +1 -0
- package/esm/temporal/polyfill.d.ts +34 -0
- package/esm/temporal/polyfill.js +10 -0
- package/esm/temporal/polyfill.js.map +1 -0
- package/esm/utils/defined.d.ts +1 -0
- package/esm/utils/defined.js +4 -0
- package/esm/utils/defined.js.map +1 -0
- package/esm/utils/index.d.ts +3 -0
- package/esm/utils/index.js +4 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/useFlag.d.ts +1 -0
- package/esm/utils/useFlag.js +9 -0
- package/esm/utils/useFlag.js.map +1 -0
- package/esm/utils/useIsMounted.d.ts +1 -0
- package/esm/utils/useIsMounted.js +12 -0
- package/esm/utils/useIsMounted.js.map +1 -0
- package/esm/view/View.d.ts +9 -0
- package/esm/view/View.js +22 -0
- package/esm/view/View.js.map +1 -0
- package/esm/view/ViewHeader.d.ts +10 -0
- package/esm/view/ViewHeader.js +15 -0
- package/esm/view/ViewHeader.js.map +1 -0
- package/esm/view/index.d.ts +2 -0
- package/esm/view/index.js +3 -0
- package/esm/view/index.js.map +1 -0
- package/package.json +72 -0
- package/src/AppShell/AppShell.tsx +165 -0
- package/src/AppShell/index.tsx +1 -0
- package/src/ErrorAlert.tsx +71 -0
- package/src/Input/ActionsMenu.tsx +102 -0
- package/src/Input/Checkbox.tsx +33 -0
- package/src/Input/EmailSenderField.tsx +64 -0
- package/src/Input/NumberField.tsx +127 -0
- package/src/Input/RadioGroup.tsx +37 -0
- package/src/Input/Select.tsx +33 -0
- package/src/Input/Selector.tsx +21 -0
- package/src/Input/Switch.tsx +33 -0
- package/src/Input/TextField.tsx +69 -0
- package/src/Input/UrlUploadField.tsx +84 -0
- package/src/Input/index.ts +9 -0
- package/src/LanguageSwitcher/LanguageSwitcher.tsx +63 -0
- package/src/LanguageSwitcher/index.ts +1 -0
- package/src/Paging/Paging.ts +77 -0
- package/src/Paging/index.ts +1 -0
- package/src/VCThemeProvider/JetbrainsMonoFont.tsx +55 -0
- package/src/VCThemeProvider/RobotoFont.tsx +52 -0
- package/src/VCThemeProvider/ThemeModeSwitcher.tsx +23 -0
- package/src/VCThemeProvider/VCThemeProvider.tsx +232 -0
- package/src/VCThemeProvider/code-colors.ts +34 -0
- package/src/VCThemeProvider/files.d.ts +2 -0
- package/src/VCThemeProvider/index.ts +5 -0
- package/src/audit/AuditChanges.tsx +82 -0
- package/src/audit/AuditTimeline.tsx +25 -0
- package/src/audit/AuditTimelineItem.tsx +75 -0
- package/src/audit/index.ts +4 -0
- package/src/audit/types.ts +46 -0
- package/src/breadcrumbs.tsx +27 -0
- package/src/code/Code.tsx +53 -0
- package/src/code/CodeBlock.tsx +15 -0
- package/src/code/Json.tsx +73 -0
- package/src/code/index.ts +3 -0
- package/src/confirm/ConfirmButton.tsx +69 -0
- package/src/confirm/ConfirmDialog.tsx +68 -0
- package/src/confirm/ConfirmIconButton.tsx +62 -0
- package/src/confirm/ConfirmMenuItem.tsx +66 -0
- package/src/confirm/index.ts +4 -0
- package/src/container/ContainerLayout.tsx +40 -0
- package/src/container/ContainerSettingsContext.tsx +77 -0
- package/src/container/ContainerWidthControl.tsx +20 -0
- package/src/container/index.ts +3 -0
- package/src/content-table/ContentTable.tsx +214 -0
- package/src/content-table/UndrawEmpty.tsx +285 -0
- package/src/content-table/index.ts +1 -0
- package/src/country/countries.ts +268 -0
- package/src/country/country-select.tsx +48 -0
- package/src/country/index.ts +5 -0
- package/src/country/locale-select.tsx +43 -0
- package/src/country/locales.ts +192 -0
- package/src/country/phone-prefix-select.tsx +50 -0
- package/src/cube/BoxFeatures.tsx +91 -0
- package/src/cube/BoxMaintenanceChip.tsx +33 -0
- package/src/cube/BoxNumber.tsx +10 -0
- package/src/cube/BoxType.tsx +22 -0
- package/src/cube/CubeConnectedChip.tsx +16 -0
- package/src/cube/LockStatusChip.tsx +54 -0
- package/src/cube/UtilizationBar.tsx +94 -0
- package/src/cube/accessibility.tsx +422 -0
- package/src/cube/index.tsx +8 -0
- package/src/data-table/DataTable.tsx +338 -0
- package/src/data-table/DataTableColumnSettings.tsx +204 -0
- package/src/data-table/DataTableHeader.tsx +10 -0
- package/src/data-table/DataTableToolbar.tsx +10 -0
- package/src/data-table/index.tsx +8 -0
- package/src/data-table/useDataTableColumnStorage.ts +26 -0
- package/src/data-table/useDataTableStorage.ts +43 -0
- package/src/data-table/useSpringPage.ts +21 -0
- package/src/data-table/useSpringPageable.ts +25 -0
- package/src/date-pickers/PlainAdapterCommon.ts +125 -0
- package/src/date-pickers/PlainDateAdapter.spec.ts +50 -0
- package/src/date-pickers/PlainDateAdapter.ts +139 -0
- package/src/date-pickers/PlainDatePicker.spec.tsx +22 -0
- package/src/date-pickers/PlainDatePicker.tsx +73 -0
- package/src/date-pickers/PlainDateTimeAdapter.spec.ts +50 -0
- package/src/date-pickers/PlainDateTimeAdapter.ts +140 -0
- package/src/date-pickers/PlainDateTimePicker.spec.tsx +22 -0
- package/src/date-pickers/PlainDateTimePicker.tsx +65 -0
- package/src/date-pickers/PlainTimeAdapter.ts +247 -0
- package/src/date-pickers/PlainTimePicker.spec.tsx +22 -0
- package/src/date-pickers/PlainTimePicker.tsx +45 -0
- package/src/date-pickers/TemporalAdapter.ts +150 -0
- package/src/date-pickers/TimezoneSelect.tsx +387 -0
- package/src/date-pickers/getFormatString.ts +38 -0
- package/src/date-pickers/index.ts +5 -0
- package/src/date-pickers/parse.spec.ts +43 -0
- package/src/date-pickers/parse.ts +72 -0
- package/src/date-pickers/timeframe-picker.tsx +202 -0
- package/src/date-pickers/useLocale.ts +6 -0
- package/src/date-pickers/useRenderInput.tsx +20 -0
- package/src/fetch.spec.ts +85 -0
- package/src/fetch.ts +165 -0
- package/src/filter/Filter.tsx +194 -0
- package/src/filter/index.ts +1 -0
- package/src/formats/CompactFormat.spec.tsx +25 -0
- package/src/formats/CompactFormat.tsx +48 -0
- package/src/formats/CurrencyFormat.spec.tsx +25 -0
- package/src/formats/CurrencyFormat.tsx +77 -0
- package/src/formats/DecimalFormat.spec.tsx +25 -0
- package/src/formats/DecimalFormat.tsx +59 -0
- package/src/formats/DurationFormat.spec.tsx +57 -0
- package/src/formats/DurationFormat.tsx +72 -0
- package/src/formats/RelativeTemporalFormat.spec.tsx +84 -0
- package/src/formats/RelativeTemporalFormat.tsx +86 -0
- package/src/formats/SwitchableTemporalFormat.tsx +17 -0
- package/src/formats/TemporalFormat.spec.tsx +110 -0
- package/src/formats/TemporalFormat.tsx +58 -0
- package/src/formats/TemporalRangeFormat.spec.tsx +159 -0
- package/src/formats/TemporalRangeFormat.tsx +62 -0
- package/src/formats/index.ts +8 -0
- package/src/formats/types.ts +4 -0
- package/src/formats/useDateTimeFormat.ts +7 -0
- package/src/formats/useNumberFormat.ts +6 -0
- package/src/formats/useRelativeTimeFormat.ts +6 -0
- package/src/forms/EditForm.tsx +69 -0
- package/src/forms/SearchForm.tsx +51 -0
- package/src/forms/SubmitButton.tsx +34 -0
- package/src/forms/index.ts +4 -0
- package/src/forms/useFormSubmit.tsx +28 -0
- package/src/getNavigatorLanguages.ts +11 -0
- package/src/getSupportedFormatLocale.ts +24 -0
- package/src/help/HelpButton.tsx +134 -0
- package/src/help/HelpDrawer.tsx +65 -0
- package/src/help/HelpSettingsContext.tsx +178 -0
- package/src/help/index.ts +3 -0
- package/src/icons.ts +23 -0
- package/src/index.ts +34 -0
- package/src/layout/ErrorBoundary.tsx +232 -0
- package/src/layout/NotFound.tsx +51 -0
- package/src/layout/NotFoundSvg.tsx +172 -0
- package/src/layout/UserNav.tsx +107 -0
- package/src/layout/index.ts +5 -0
- package/src/layout/layout-context.tsx +40 -0
- package/src/layout/page-title.tsx +33 -0
- package/src/list/List.tsx +40 -0
- package/src/list/SkeletonListItem.tsx +50 -0
- package/src/list/index.tsx +1 -0
- package/src/localization.tsx +404 -0
- package/src/logo/Logo.tsx +35 -0
- package/src/logo/VCAppLogo.tsx +28 -0
- package/src/logo/VCLogo.tsx +56 -0
- package/src/logo/VCLogoIcon.tsx +55 -0
- package/src/logo/V_C_LOGO.svg +1 -0
- package/src/logo/V_C_LOGO_ICON.svg +1 -0
- package/src/logo/V_C_LOGO_ICON_WHITE.svg +1 -0
- package/src/logo/V_C_LOGO_WHITE.svg +1 -0
- package/src/logo/index.tsx +4 -0
- package/src/splash/index.tsx +34 -0
- package/src/splash/template.html +86 -0
- package/src/spring.ts +15 -0
- package/src/storage/MemoryStorage.ts +21 -0
- package/src/storage/index.ts +2 -0
- package/src/storage/storage.ts +97 -0
- package/src/storage/useStorage.ts +35 -0
- package/src/tabs/Tabs.tsx +187 -0
- package/src/tabs/index.ts +1 -0
- package/src/temporal/index.ts +2 -0
- package/src/temporal/parse.ts +29 -0
- package/src/temporal/polyfill.ts +36 -0
- package/src/utils/defined.ts +4 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/useFlag.ts +9 -0
- package/src/utils/useIsMounted.ts +12 -0
- package/src/view/View.tsx +22 -0
- package/src/view/ViewHeader.tsx +35 -0
- package/src/view/index.ts +2 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class MemoryStorage {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.data = new Map();
|
|
4
|
+
}
|
|
5
|
+
getItem(key) {
|
|
6
|
+
return this.data.get(key);
|
|
7
|
+
}
|
|
8
|
+
setItem(key, value) {
|
|
9
|
+
return this.data.set(key, value);
|
|
10
|
+
}
|
|
11
|
+
removeItem(key) {
|
|
12
|
+
return this.data.delete(key);
|
|
13
|
+
}
|
|
14
|
+
clear() {
|
|
15
|
+
return this.data.clear();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=MemoryStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryStorage.js","sourceRoot":"","sources":["../../src/storage/MemoryStorage.ts"],"names":[],"mappings":"AACA,MAAM,OAAO,aAAa;IAA1B;QAEqB,SAAI,GAAG,IAAI,GAAG,EAAkB,CAAC;IAiBtD,CAAC;IAfG,OAAO,CAAC,GAAW;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAa;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,UAAU,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,KAAK;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type StorageChangeListener = (oldValue?: string, newValue?: string) => void;
|
|
2
|
+
declare class StorageWrapper {
|
|
3
|
+
private readonly listeners;
|
|
4
|
+
private readonly storageArea;
|
|
5
|
+
constructor();
|
|
6
|
+
addChangeListener(key: string, listener: StorageChangeListener): void;
|
|
7
|
+
removeChangeListener(key: string, listener: StorageChangeListener): void;
|
|
8
|
+
write(key: string, value?: string): void;
|
|
9
|
+
delete(key: string): void;
|
|
10
|
+
read(key: string): string | null | undefined;
|
|
11
|
+
private notifyChangeListener;
|
|
12
|
+
private getOrCreateListeners;
|
|
13
|
+
private createListeners;
|
|
14
|
+
}
|
|
15
|
+
export declare const storage: StorageWrapper;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { MemoryStorage } from "./MemoryStorage";
|
|
2
|
+
const TEST_KEY = "__check_storage_supported";
|
|
3
|
+
function isSupported(storage) {
|
|
4
|
+
if (!storage) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
try {
|
|
8
|
+
storage.setItem(TEST_KEY, "1");
|
|
9
|
+
storage.removeItem(TEST_KEY);
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function findSupportedStorage() {
|
|
17
|
+
return [window.localStorage, window.sessionStorage].find(isSupported)
|
|
18
|
+
|| new MemoryStorage();
|
|
19
|
+
}
|
|
20
|
+
class StorageWrapper {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.listeners = new Map();
|
|
23
|
+
this.storageArea = findSupportedStorage();
|
|
24
|
+
window.addEventListener("storage", event => {
|
|
25
|
+
const { storageArea, key, oldValue, newValue } = event;
|
|
26
|
+
if (storageArea == this.storageArea && key && oldValue != newValue) {
|
|
27
|
+
this.notifyChangeListener(key, oldValue || undefined, newValue || undefined);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
addChangeListener(key, listener) {
|
|
32
|
+
this.getOrCreateListeners(key).add(listener);
|
|
33
|
+
}
|
|
34
|
+
removeChangeListener(key, listener) {
|
|
35
|
+
this.getOrCreateListeners(key).delete(listener);
|
|
36
|
+
}
|
|
37
|
+
write(key, value) {
|
|
38
|
+
const oldValue = this.read(key);
|
|
39
|
+
try {
|
|
40
|
+
if (value !== undefined) {
|
|
41
|
+
this.storageArea.setItem(key, value);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.storageArea.removeItem(key);
|
|
45
|
+
}
|
|
46
|
+
this.notifyChangeListener(key, oldValue, value);
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
// ignore error
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
delete(key) {
|
|
53
|
+
const oldValue = this.read(key);
|
|
54
|
+
try {
|
|
55
|
+
this.storageArea.removeItem(key);
|
|
56
|
+
this.notifyChangeListener(key, oldValue, undefined);
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
// ignore error
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
read(key) {
|
|
63
|
+
try {
|
|
64
|
+
return this.storageArea.getItem(key);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
// ignore error
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
notifyChangeListener(key, oldValue, newValue) {
|
|
72
|
+
const listeners = this.listeners.get(key);
|
|
73
|
+
if (listeners) {
|
|
74
|
+
listeners.forEach(listener => listener(oldValue, newValue));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
getOrCreateListeners(key) {
|
|
78
|
+
return this.listeners.get(key) || this.createListeners(key);
|
|
79
|
+
}
|
|
80
|
+
createListeners(key) {
|
|
81
|
+
const listeners = new Set();
|
|
82
|
+
this.listeners.set(key, listeners);
|
|
83
|
+
return listeners;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export const storage = new StorageWrapper();
|
|
87
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/storage/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,QAAQ,GAAG,2BAA2B,CAAC;AAE7C,SAAS,WAAW,CAAC,OAAiB;IACrC,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACJ,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QAC/B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACb,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACd,CAAC;AACF,CAAC;AAED,SAAS,oBAAoB;IAC5B,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,cAAc,C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;IAClB,CAAC;CACD;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useStorage<T>(key: string, defaultValue: T): [T, (newValue: T) => void];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useCallback, useLayoutEffect, useMemo, useState } from "react";
|
|
2
|
+
import { storage } from "./storage";
|
|
3
|
+
export function useStorage(key, defaultValue) {
|
|
4
|
+
const defaultValueSerialized = useMemo(() => JSON.stringify(defaultValue), [defaultValue]);
|
|
5
|
+
const readStateFromStorage = useCallback(() => {
|
|
6
|
+
const storageValue = storage.read(key);
|
|
7
|
+
return storageValue !== null && storageValue !== void 0 ? storageValue : defaultValueSerialized;
|
|
8
|
+
}, [key, defaultValueSerialized]);
|
|
9
|
+
const [value, setValue] = useState(readStateFromStorage);
|
|
10
|
+
const updateStateFromStorage = useCallback(() => {
|
|
11
|
+
setValue(readStateFromStorage());
|
|
12
|
+
}, [readStateFromStorage]);
|
|
13
|
+
useLayoutEffect(() => {
|
|
14
|
+
storage.addChangeListener(key, updateStateFromStorage);
|
|
15
|
+
return () => storage.removeChangeListener(key, updateStateFromStorage);
|
|
16
|
+
}, [key, updateStateFromStorage]);
|
|
17
|
+
const typedValue = useMemo(() => JSON.parse(value), [value]);
|
|
18
|
+
const setTypedValue = useCallback((newValue) => {
|
|
19
|
+
const value = JSON.stringify(newValue);
|
|
20
|
+
if (value != defaultValueSerialized) {
|
|
21
|
+
storage.write(key, value);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
storage.delete(key);
|
|
25
|
+
}
|
|
26
|
+
}, [key, defaultValueSerialized]);
|
|
27
|
+
return [typedValue, setTypedValue];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=useStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStorage.js","sourceRoot":"","sources":["../../src/storage/useStorage.ts"],"names":[],"m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ACjD,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,KAAK,IAAI,sBAAsB,EAAE,CAAC;YACrC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACP,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC;IACF,CAAC,EAAE,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAElC,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TabsProps as MuiTabsProps } from "@mui/material/Tabs";
|
|
3
|
+
import { TabProps as MuiTabProps } from "@mui/material/Tab";
|
|
4
|
+
interface TabProps extends MuiTabProps<React.ElementType> {
|
|
5
|
+
}
|
|
6
|
+
interface TabsProps extends MuiTabsProps {
|
|
7
|
+
items: TabProps[];
|
|
8
|
+
}
|
|
9
|
+
export declare function Tabs(props: TabsProps): JSX.Element;
|
|
10
|
+
export {};
|
package/esm/tabs/Tabs.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { Fragment, useEffect, useRef, useState } from "react";
|
|
13
|
+
import { IconButton, ListItemIcon, ListItemText, Menu, MenuItem, Stack } from "@mui/material";
|
|
14
|
+
import MuiTabs from "@mui/material/Tabs";
|
|
15
|
+
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
|
|
16
|
+
import MuiTab from "@mui/material/Tab";
|
|
17
|
+
const hiddenSx = {
|
|
18
|
+
visibility: 'hidden',
|
|
19
|
+
height: 0,
|
|
20
|
+
maxHeight: 'unset',
|
|
21
|
+
minHeight: 'unset',
|
|
22
|
+
padding: 0
|
|
23
|
+
};
|
|
24
|
+
export function Tabs(props) {
|
|
25
|
+
const { orientation = "horizontal", scrollButtons = "auto", allowScrollButtonsMobile = true, sx, onChange, items: inItems, value } = props, rest = __rest(props, ["orientation", "scrollButtons", "allowScrollButtonsMobile", "sx", "onChange", "items", "value"]);
|
|
26
|
+
const items = inItems.map((item, i) => (Object.assign(Object.assign({}, item), { value: typeof item.value == "undefined" ? i : item.value })));
|
|
27
|
+
const ref = useRef(null);
|
|
28
|
+
const [dropdownEl, setDropdownEl] = useState(null);
|
|
29
|
+
const [overflowIndex, setOverflowIndex] = useState(items.length);
|
|
30
|
+
const selectedIndex = items.findIndex((item) => item.value == value);
|
|
31
|
+
function handleTabOverflow(root, items) {
|
|
32
|
+
// clientWidth: what the user can see
|
|
33
|
+
// scrollWidth: actual size of the DOM object
|
|
34
|
+
const { clientWidth } = root;
|
|
35
|
+
// this basically loop through each item size and adding up the width of all items
|
|
36
|
+
// if the width exceed the clientWidth of the root node, item will be hidden from the horizontal tab display
|
|
37
|
+
// else the item remains visible and its ref from the dropdown list will be hidden otherwise
|
|
38
|
+
let overflowIndex = 0;
|
|
39
|
+
let itemsWidth = 0;
|
|
40
|
+
for (let i = 0; i < items.length; i++) {
|
|
41
|
+
itemsWidth += items[i].width;
|
|
42
|
+
if (itemsWidth < clientWidth) {
|
|
43
|
+
overflowIndex++;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
setOverflowIndex(overflowIndex);
|
|
47
|
+
}
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (ref.current) {
|
|
50
|
+
// fetch the root node of tabs
|
|
51
|
+
const root = Array.from(ref.current.children).find(e => e.className.includes('tabRoot'));
|
|
52
|
+
if (root) {
|
|
53
|
+
// from the root node, traverse down to list node of tab items
|
|
54
|
+
const list = Array.from(root.children).find(e => e.className.includes('tabList'));
|
|
55
|
+
const items = list ? Array.from(list.children).map((e, index) => ({ index, width: e.clientWidth })) : [];
|
|
56
|
+
// apply the resize observer to the root node and watch for the size changes
|
|
57
|
+
const resizeObserver = new ResizeObserver(() => handleTabOverflow(root, items));
|
|
58
|
+
resizeObserver.observe(root);
|
|
59
|
+
return () => resizeObserver.disconnect();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, [ref]);
|
|
63
|
+
return (React.createElement(Stack, { flex: 1, direction: "row", alignItems: "center", sx: {
|
|
64
|
+
borderBottom: 1,
|
|
65
|
+
borderColor: "divider"
|
|
66
|
+
} },
|
|
67
|
+
React.createElement(MuiTabs, Object.assign({ ref: ref, orientation: "horizontal", visibleScrollbar: false, scrollButtons: false, allowScrollButtonsMobile: false, sx: Object.assign(Object.assign({}, sx), { flex: 1 }), classes: {
|
|
68
|
+
scroller: 'tabRoot',
|
|
69
|
+
flexContainer: 'tabList'
|
|
70
|
+
}, value: value, onChange: onChange }, rest), items
|
|
71
|
+
.map((tabProps, i) => (React.createElement(MuiTab, Object.assign({ key: 'muiTab-' + i, iconPosition: "start" }, tabProps, { sx: Object.assign(Object.assign(Object.assign({}, tabProps.sx), (i >= overflowIndex ? { display: "none" } : undefined)), { minHeight: 48 }) }))))),
|
|
72
|
+
(overflowIndex < items.length) && (React.createElement(Fragment, null,
|
|
73
|
+
React.createElement(IconButton, { sx: {
|
|
74
|
+
ml: 1
|
|
75
|
+
}, onClick: ev => setDropdownEl(ev.currentTarget), color: selectedIndex >= overflowIndex ? "primary" : "default" },
|
|
76
|
+
React.createElement(MoreHorizIcon, { fontSize: "inherit" })),
|
|
77
|
+
React.createElement(Menu, { anchorEl: dropdownEl, open: !!dropdownEl, onClose: () => setDropdownEl(null) }, items
|
|
78
|
+
.map((tabProps, i) => {
|
|
79
|
+
const { label, icon, onClick, component, value: itemValue } = tabProps, rest = __rest(tabProps, ["label", "icon", "onClick", "component", "value"]);
|
|
80
|
+
const selected = value == itemValue;
|
|
81
|
+
function handleClick(ev) {
|
|
82
|
+
if (!selected && onChange) {
|
|
83
|
+
onChange(ev, i);
|
|
84
|
+
}
|
|
85
|
+
if (onClick) {
|
|
86
|
+
onClick(ev);
|
|
87
|
+
}
|
|
88
|
+
setDropdownEl(null);
|
|
89
|
+
}
|
|
90
|
+
return (React.createElement(MenuItem, Object.assign({ key: 'dropdownItem-' + i, onClick: handleClick, component: component !== null && component !== void 0 ? component : "li", sx: i < overflowIndex ? hiddenSx : {}, selected: selected }, rest),
|
|
91
|
+
icon && React.createElement(ListItemIcon, null, icon),
|
|
92
|
+
React.createElement(ListItemText, null, label)));
|
|
93
|
+
}))))));
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/tabs/Tabs.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAkB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACnF,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AAC5F,OAAO,OAAoC,MAAM,oBAAoB,CAAC;AACtE,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,MAAiC,MAAM,mBAAmB,CAAC;AAclE,MAAM,QAAQ,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,OAAO;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3,"file":"index.js","sourceRoot":"","sources":["../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/temporal/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function tryParsePlainDate(value: string | undefined | null): import("@js-temporal/polyfill").Temporal.PlainDate | null;
|
|
2
|
+
export declare function tryParsePlainDateTime(value: string | undefined | null): import("@js-temporal/polyfill").Temporal.PlainDateTime | null;
|
|
3
|
+
export declare function tryParsePlainTime(value: string | undefined | null): import("@js-temporal/polyfill").Temporal.PlainTime | null;
|
|
4
|
+
export declare function tryParseInstant(value: string | undefined | null): import("@js-temporal/polyfill").Temporal.Instant | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Instant, PlainDate, PlainDateTime, PlainTime } from "./polyfill";
|
|
2
|
+
export function tryParsePlainDate(value) {
|
|
3
|
+
return tryParseString(value, v => PlainDate.from(v, { overflow: "reject" }));
|
|
4
|
+
}
|
|
5
|
+
export function tryParsePlainDateTime(value) {
|
|
6
|
+
return tryParseString(value, v => PlainDateTime.from(v, { overflow: "reject" }));
|
|
7
|
+
}
|
|
8
|
+
export function tryParsePlainTime(value) {
|
|
9
|
+
return tryParseString(value, v => PlainTime.from(v, { overflow: "reject" }));
|
|
10
|
+
}
|
|
11
|
+
export function tryParseInstant(value) {
|
|
12
|
+
return tryParseString(value, Instant.from);
|
|
13
|
+
}
|
|
14
|
+
function tryParseString(value, parseFn) {
|
|
15
|
+
if (value) {
|
|
16
|
+
try {
|
|
17
|
+
return parseFn(value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
// ignore parse error
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|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|
2
|
+
* This module is a compatibility layer for the coming release of the Temporal API
|
|
3
|
+
* in browsers. It exports all relevant objects from the API to allow a smooth
|
|
4
|
+
* switch to a conditional polyfill or using the browser built-ins.
|
|
5
|
+
*/
|
|
6
|
+
import { Temporal, Intl, toTemporalInstant } from '@js-temporal/polyfill';
|
|
7
|
+
export declare const Instant: typeof Temporal.Instant, ZonedDateTime: typeof Temporal.ZonedDateTime, PlainDateTime: typeof Temporal.PlainDateTime, PlainDate: typeof Temporal.PlainDate, PlainTime: typeof Temporal.PlainTime, Now: {
|
|
8
|
+
instant: () => Temporal.Instant;
|
|
9
|
+
zonedDateTime: (calendar: Temporal.CalendarLike, tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.ZonedDateTime;
|
|
10
|
+
zonedDateTimeISO: (tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.ZonedDateTime;
|
|
11
|
+
plainDateTime: (calendar: Temporal.CalendarLike, tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.PlainDateTime;
|
|
12
|
+
plainDateTimeISO: (tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.PlainDateTime;
|
|
13
|
+
plainDate: (calendar: Temporal.CalendarLike, tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.PlainDate;
|
|
14
|
+
plainDateISO: (tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.PlainDate;
|
|
15
|
+
plainTimeISO: (tzLike?: Temporal.TimeZoneLike | undefined) => Temporal.PlainTime;
|
|
16
|
+
timeZone: () => Temporal.TimeZone;
|
|
17
|
+
readonly [Symbol.toStringTag]: "Temporal.Now";
|
|
18
|
+
}, Duration: typeof Temporal.Duration, TimeZone: typeof Temporal.TimeZone;
|
|
19
|
+
export type Instant = Temporal.Instant;
|
|
20
|
+
export type ZonedDateTime = Temporal.ZonedDateTime;
|
|
21
|
+
export type PlainDateTime = Temporal.PlainDateTime;
|
|
22
|
+
export type PlainDate = Temporal.PlainDate;
|
|
23
|
+
export type PlainTime = Temporal.PlainTime;
|
|
24
|
+
export type Duration = Temporal.Duration;
|
|
25
|
+
export type TimeZone = Temporal.TimeZone;
|
|
26
|
+
export declare const DateTimeFormat: {
|
|
27
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): Intl.DateTimeFormat;
|
|
28
|
+
new (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): Intl.DateTimeFormat;
|
|
29
|
+
supportedLocalesOf(locales: string | string[], options?: Intl.DateTimeFormatOptions | undefined): string[];
|
|
30
|
+
};
|
|
31
|
+
export type DateTimeFormat = Intl.DateTimeFormat;
|
|
32
|
+
export type DateTimeFormatOptions = Intl.DateTimeFormatOptions;
|
|
33
|
+
export type Formattable = Intl.Formattable;
|
|
34
|
+
export { toTemporalInstant };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module is a compatibility layer for the coming release of the Temporal API
|
|
3
|
+
* in browsers. It exports all relevant objects from the API to allow a smooth
|
|
4
|
+
* switch to a conditional polyfill or using the browser built-ins.
|
|
5
|
+
*/
|
|
6
|
+
import { Temporal, Intl, toTemporalInstant } from '@js-temporal/polyfill';
|
|
7
|
+
export const { Instant, ZonedDateTime, PlainDateTime, PlainDate, PlainTime, Now, Duration, TimeZone } = Temporal;
|
|
8
|
+
export const { DateTimeFormat } = Intl;
|
|
9
|
+
export { toTemporalInstant };
|
|
10
|
+
//# sourceMappingURL=polyfill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill.js","sourceRoot":"","sources":["../../src/temporal/polyfill.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,EACT,OAAO,EACP,aAAa,EACb,aAAa,EACb,SAAS,EACT,SAAS,EACT,GAAG,EACH,QAAQ,EACR,QAAQ,EACX,GAAG,QAAQ,CAAC;AAUb,MAAM,CAAC,MAAM,EACT,cAAc,EACjB,GAAG,IAAI,CAAC;AAMT,OAAO,EAAC,iBAAiB,EAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function defined<T>(x: T | undefined): x is T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defined.js","sourceRoot":"","sources":["../../src/utils/defined.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,OAAO,CAAI,CAAgB;IACvC,OAAO,CAAC,KAAK,SAAS,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useFlag(initialValue: boolean): readonly [boolean, () => void, () => void, () => void];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useCallback, useState } from "react";
|
|
2
|
+
export function useFlag(initialValue) {
|
|
3
|
+
const [flag, setFlag] = useState(initialValue);
|
|
4
|
+
const set = useCallback(() => setFlag(true), []);
|
|
5
|
+
const clear = useCallback(() => setFlag(false), []);
|
|
6
|
+
const toggle = useCallback(() => setFlag(prev => !prev), []);
|
|
7
|
+
return [flag, set, clear, toggle];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=useFlag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFlag.js","sourceRoot":"","sources":["../../src/utils/useFlag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAE5C,MAAM,UAAU,OAAO,CAAC,YAAqB;IACzC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7D,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMounted(): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
export function useIsMounted() {
|
|
3
|
+
const isMounted = useRef(false);
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
isMounted.current = true;
|
|
6
|
+
return () => {
|
|
7
|
+
isMounted.current = false;
|
|
8
|
+
};
|
|
9
|
+
}, []);
|
|
10
|
+
return isMounted.current;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=useIsMounted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsMounted.js","sourceRoot":"","sources":["../../src/utils/useIsMounted.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAExC,MAAM,UAAU,YAAY;IACxB,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAChC,SAAS,CAAC,GAAG,EAAE;QACX,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC;QACzB,OAAO,GAAG,EAAE;YACR,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;QAC9B,CAAC,CAAA;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,SAAS,CAAC,OAAO,CAAC;AAC7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContainerProps } from "@mui/material";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
export interface ViewProps extends ContainerProps {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
error?: any;
|
|
6
|
+
spacing?: number;
|
|
7
|
+
py?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function View(props: PropsWithChildren<ViewProps>): JSX.Element;
|
package/esm/view/View.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { Container, Stack } from "@mui/material";
|
|
13
|
+
import React from "react";
|
|
14
|
+
import { ErrorAlert } from "../ErrorAlert";
|
|
15
|
+
export function View(props) {
|
|
16
|
+
const { maxWidth, loading, error, spacing = 2, py = 4, children } = props, containerProps = __rest(props, ["maxWidth", "loading", "error", "spacing", "py", "children"]);
|
|
17
|
+
return (React.createElement(Container, Object.assign({ maxWidth: maxWidth }, containerProps),
|
|
18
|
+
React.createElement(Stack, { spacing: spacing, py: py, sx: { opacity: loading ? 0.5 : 1 } },
|
|
19
|
+
error && React.createElement(ErrorAlert, { error: error }),
|
|
20
|
+
children)));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=View.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../src/view/View.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAC,SAAS,EAAkB,KAAK,EAAC,MAAM,eAAe,CAAC;AAC/D,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AASzC,MAAM,UAAU,IAAI,CAAC,KAAmC;IACvD,MAAM,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,QAAQ,KAAuB,KAAK,EAAvB,cAAc,UAAI,KAAK,EAApF,6DAA4E,CAAQ,CAAC;IAC3F,OAAO,CACN,oBAAC,SAAS,kBAAC,QAAQ,EAAE,QAAQ,IAAM,cAAc;QAChD,oBAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAC;YAC/D,KAAK,IAAI,oBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,GAAI;YACrC,QAAQ,CACF,CACG,CACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TypographyProps } from "@mui/material";
|
|
2
|
+
import React, { PropsWithChildren } from "react";
|
|
3
|
+
export interface ViewHeaderProps {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
titleVariant?: TypographyProps["variant"];
|
|
6
|
+
titleAdornment?: React.ReactNode;
|
|
7
|
+
subTitle?: React.ReactNode;
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function ViewHeader(props: PropsWithChildren<ViewHeaderProps>): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Box, Grid, Stack, Typography } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { PageTitle } from "../layout";
|
|
4
|
+
export function ViewHeader(props) {
|
|
5
|
+
const { title, titleVariant, titleAdornment, subTitle, actions } = props;
|
|
6
|
+
return (React.createElement(Box, null,
|
|
7
|
+
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "space-between", alignItems: "center" },
|
|
8
|
+
React.createElement(Grid, { item: true, xs: true },
|
|
9
|
+
React.createElement(Stack, { direction: "row", spacing: 2, alignItems: "center" },
|
|
10
|
+
React.createElement(PageTitle, { title: title, variant: titleVariant, overflow: "hidden", textOverflow: "ellipsis" }),
|
|
11
|
+
titleAdornment),
|
|
12
|
+
React.createElement(Typography, { variant: "subtitle1" }, subTitle)),
|
|
13
|
+
actions && (React.createElement(Grid, { item: true }, actions)))));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ViewHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewHeader.js","sourceRoot":"","sources":["../../src/view/ViewHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAkB,MAAM,eAAe,CAAC;AAC5E,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AAUpC,MAAM,UAAU,UAAU,CAAC,KAAyC;IACnE,MAAM,EAAC,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAC,GAAG,KAAK,CAAC;IACvE,OAAO,CACN,oBAAC,GAAG;QACH,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,EAAC,UAAU,EAAC,QAAQ;YAC7E,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE;gBACZ,oBAAC,KAAK,IAAC,SAAS,EAAC,KAAK,EAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAC,QAAQ;oBACrD,oBAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAC,QAAQ,EAAC,YAAY,EAAC,UAAU,GAAG;oBAC3F,cAAc,CACR;gBACR,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW,IAC7B,QAAQ,CACG,CACP;YACN,OAAO,IAAI,CACX,oBAAC,IAAI,IAAC,IAAI,UACR,OAAO,CACF,CACP,CACK,CACF,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
|