@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
package/esm/code/Json.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Box } from "@mui/material";
|
|
2
|
+
import jsonLexer from "json-lexer";
|
|
3
|
+
import React, { Fragment, useMemo } from "react";
|
|
4
|
+
import { useCodeColors } from "../VCThemeProvider";
|
|
5
|
+
export function Json({ data }) {
|
|
6
|
+
const tokens = useMemo(() => {
|
|
7
|
+
const jsonString = JSON.stringify(data, null, 4);
|
|
8
|
+
return detectKeys(jsonLexer(jsonString));
|
|
9
|
+
}, [data]);
|
|
10
|
+
const colors = useCodeColors();
|
|
11
|
+
return (React.createElement(Fragment, null, tokens.map(({ type, value, raw }) => {
|
|
12
|
+
switch (type) {
|
|
13
|
+
case "punctuator":
|
|
14
|
+
return raw;
|
|
15
|
+
case "whitespace":
|
|
16
|
+
return raw;
|
|
17
|
+
case "literal":
|
|
18
|
+
return React.createElement(Box, { component: "span", color: colors.literal }, raw);
|
|
19
|
+
case "number":
|
|
20
|
+
return React.createElement(Box, { component: "span", color: colors.number }, raw);
|
|
21
|
+
case "string":
|
|
22
|
+
return React.createElement(Box, { component: "span", color: colors.string }, raw);
|
|
23
|
+
case "key":
|
|
24
|
+
return React.createElement(Box, { component: "span", color: colors.key }, value);
|
|
25
|
+
}
|
|
26
|
+
})));
|
|
27
|
+
}
|
|
28
|
+
function detectKeys(tokens) {
|
|
29
|
+
const tree = [];
|
|
30
|
+
let nextStringIsKey = false;
|
|
31
|
+
return tokens.map(token => {
|
|
32
|
+
if (token.type == "string" && nextStringIsKey) {
|
|
33
|
+
return Object.assign(Object.assign({}, token), { type: "key" });
|
|
34
|
+
}
|
|
35
|
+
if (token.type == "punctuator") {
|
|
36
|
+
switch (token.value) {
|
|
37
|
+
case "{":
|
|
38
|
+
tree.push("object");
|
|
39
|
+
nextStringIsKey = true;
|
|
40
|
+
break;
|
|
41
|
+
case "[":
|
|
42
|
+
tree.push("array");
|
|
43
|
+
break;
|
|
44
|
+
case "}":
|
|
45
|
+
case "]":
|
|
46
|
+
tree.pop();
|
|
47
|
+
nextStringIsKey = tree[tree.length - 1] == "object";
|
|
48
|
+
break;
|
|
49
|
+
case ":":
|
|
50
|
+
nextStringIsKey = false;
|
|
51
|
+
break;
|
|
52
|
+
case ",":
|
|
53
|
+
nextStringIsKey = tree[tree.length - 1] == "object";
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return token;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=Json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Json.js","sourceRoot":"","sources":["../../src/code/Json.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,eAAe,CAAC;AAClC,OAAO,SAAwB,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;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AAe,GAAG,KAAK,CAAC;IAE5B,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACzB,IAAI,KAAK,CAAC,IAAI,IAAI,QAAQ,IAAI,eAAe,EAAE,CAAC;YAC/C,uCACI,KAAK,KACR,IAAI,EAAE,KAAK,IACV;QACH,CAAC;QACD,IAAI,KAAK,CAAC,IAAI,IAAI,YAAY,EAAE,CAAC;YAChC,QAAQ,KAAK,CAAC,KAAK,EAAE,CAAC;gBACrB,KAAK,GAAG;oBACP,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBACpB,eAAe,GAAG,IAAI,CAAC;oBACvB,MAAM;gBACP,KAAK,GAAG;oBACP,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACnB,MAAM;gBACP,KAAK,GAAG,CAAC;gBACT,KAAK,GAAG;oBACP,IAAI,CAAC,GAAG,EAAE,CAAC;oBACX,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC;oBACpD,MAAM;gBACP,KAAK,GAAG;oBACP,eAAe,GAAG,KAAK,CAAC;oBACxB,MAAM;gBACP,KAAK,GAAG;oBACP,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC;oBACpD,MAAM;YACR,CAAC;QACF,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/code/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonProps } from "@mui/material";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
interface ConfirmButtonProps {
|
|
5
|
+
title: string;
|
|
6
|
+
confirmTitle?: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
onConfirm: () => Promise<any>;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
color?: ButtonProps["color"];
|
|
13
|
+
variant?: ButtonProps["variant"];
|
|
14
|
+
}
|
|
15
|
+
export declare function ConfirmButton(props: PropsWithChildren<ConfirmButtonProps>): JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Button } from "@mui/material";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { Fragment, useCallback } from "react";
|
|
13
|
+
import { useFlag, useIsMounted } from "../utils";
|
|
14
|
+
import { ConfirmDialog } from "./ConfirmDialog";
|
|
15
|
+
export function ConfirmButton(props) {
|
|
16
|
+
const { fullWidth, title, confirmTitle, cancel, icon, children, onConfirm, color, variant, disabled, } = props;
|
|
17
|
+
const isMounted = useIsMounted();
|
|
18
|
+
const [dialogOpen, setDialogOpen, clearDialogOpen] = useFlag(false);
|
|
19
|
+
const handleConfirm = useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
yield onConfirm();
|
|
21
|
+
if (isMounted) {
|
|
22
|
+
clearDialogOpen();
|
|
23
|
+
}
|
|
24
|
+
}), [onConfirm, isMounted]);
|
|
25
|
+
return (React.createElement(Fragment, null,
|
|
26
|
+
React.createElement(Button, { onClick: setDialogOpen, color: color, variant: variant, disabled: disabled, startIcon: icon, fullWidth: fullWidth }, title),
|
|
27
|
+
React.createElement(ConfirmDialog, { open: dialogOpen, onClose: clearDialogOpen, title: title, confirmTitle: confirmTitle, cancel: cancel, onConfirm: handleConfirm, color: color, fullWidth: fullWidth, icon: icon }, children)));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ConfirmButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmButton.js","sourceRoot":"","sources":["../../src/confirm/ConfirmButton.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAc,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,QAAQ,EAAqB,WAAW,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAc9C,MAAM,UAAU,aAAa,CAAC,KAA4C;IACtE,MAAM,EACF,SAAS,EACT,KAAK,EACL,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,GACX,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEpE,MAAM,aAAa,GAAG,WAAW,CAAC,GAAS,EAAE;QACzC,MAAM,SAAS,EAAE,CAAC;QAClB,IAAI,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE,CAAC;QACtB,CAAC;IACL,CAAC,CAAA,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAE3B,OAAO,CACH,oBAAC,QAAQ;QACL,oBAAC,MAAM,IACH,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,IAAI,EACf,SAAS,EAAE,SAAS,IAEnB,KAAK,CACD;QACT,oBAAC,aAAa,IACV,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,IAET,QAAQ,CACG,CACT,CACd,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonProps } from "@mui/material";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
interface ConfirmDialogProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
confirmTitle?: string;
|
|
9
|
+
cancel: string;
|
|
10
|
+
onConfirm: () => Promise<any>;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
color?: ButtonProps["color"];
|
|
14
|
+
}
|
|
15
|
+
export declare function ConfirmDialog(props: PropsWithChildren<ConfirmDialogProps>): JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Button, CircularProgress, Dialog, DialogActions, DialogContent, DialogTitle } from "@mui/material";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { useAsyncCallback } from "react-async-hook";
|
|
13
|
+
import { ErrorAlert } from "../ErrorAlert";
|
|
14
|
+
export function ConfirmDialog(props) {
|
|
15
|
+
const { open, onClose, title, confirmTitle = title, cancel, onConfirm, fullWidth = true, icon, color = "primary", children } = props;
|
|
16
|
+
const { loading, error, execute } = useAsyncCallback(onConfirm);
|
|
17
|
+
function handleSubmit(e) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
e.preventDefault();
|
|
20
|
+
if (e.currentTarget.reportValidity()) {
|
|
21
|
+
yield execute();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return (React.createElement(Dialog, { fullWidth: fullWidth, open: open, onClose: onClose },
|
|
26
|
+
React.createElement(DialogTitle, null, title),
|
|
27
|
+
React.createElement("form", { onSubmit: handleSubmit },
|
|
28
|
+
React.createElement(DialogContent, null, children),
|
|
29
|
+
error && (React.createElement(DialogContent, null,
|
|
30
|
+
React.createElement(ErrorAlert, { error: error }))),
|
|
31
|
+
React.createElement(DialogActions, null,
|
|
32
|
+
React.createElement(Button, { type: "submit", color: color, disabled: loading, startIcon: loading ? React.createElement(CircularProgress, { color: color, size: 16, sx: { mx: 0.25 } }) : icon }, confirmTitle),
|
|
33
|
+
React.createElement(Button, { onClick: onClose, color: "inherit" }, cancel)))));
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=ConfirmDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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AAK,EAAE,KAAK,EACZ,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,oBAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAAE,EAAE,IAAI,EAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IAEvF,YAAY,CACR;gBACT,oBAAC,MAAM,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,SAAS,IACpC,MAAM,CACF,CACG,CACb,CACF,CACZ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonProps } from "@mui/material";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
interface ConfirmIconButtonProps {
|
|
5
|
+
title: string;
|
|
6
|
+
confirmTitle?: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
onConfirm: () => Promise<any>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
color?: ButtonProps["color"];
|
|
12
|
+
}
|
|
13
|
+
export declare function ConfirmIconButton(props: PropsWithChildren<ConfirmIconButtonProps>): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { IconButton } from "@mui/material";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { Fragment, useCallback } from "react";
|
|
13
|
+
import { useFlag, useIsMounted } from "../utils";
|
|
14
|
+
import { ConfirmDialog } from "./ConfirmDialog";
|
|
15
|
+
export function ConfirmIconButton(props) {
|
|
16
|
+
const { title, confirmTitle, cancel, icon, children, onConfirm, color, disabled, } = props;
|
|
17
|
+
const isMounted = useIsMounted();
|
|
18
|
+
const [dialogOpen, setDialogOpen, clearDialogOpen] = useFlag(false);
|
|
19
|
+
const handleConfirm = useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
yield onConfirm();
|
|
21
|
+
if (isMounted) {
|
|
22
|
+
clearDialogOpen();
|
|
23
|
+
}
|
|
24
|
+
}), [onConfirm, isMounted]);
|
|
25
|
+
return (React.createElement(Fragment, null,
|
|
26
|
+
React.createElement(IconButton, { onClick: setDialogOpen, color: color, disabled: disabled, title: title }, icon),
|
|
27
|
+
React.createElement(ConfirmDialog, { open: dialogOpen, onClose: clearDialogOpen, title: title, confirmTitle: confirmTitle, cancel: cancel, onConfirm: handleConfirm, color: color, icon: icon }, children)));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ConfirmIconButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmIconButton.js","sourceRoot":"","sources":["../../src/confirm/ConfirmIconButton.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,QAAQ,EAAqB,WAAW,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAY9C,MAAM,UAAU,iBAAiB,CAAC,KAAgD;IACjF,MAAM,EACL,KAAK,EACL,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,GACR,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEpE,MAAM,aAAa,GAAG,WAAW,CAAC,GAAS,EAAE;QAC5C,MAAM,SAAS,EAAE,CAAC;QAClB,IAAI,SAAS,EAAE,CAAC;YACf,eAAe,EAAE,CAAC;QACnB,CAAC;IACF,CAAC,CAAA,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAE3B,OAAO,CACN,oBAAC,QAAQ;QACR,oBAAC,UAAU,IACV,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,IAEX,IAAI,CACO;QACb,oBAAC,aAAa,IACb,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,IAET,QAAQ,CACM,CACN,CACX,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonProps } from "@mui/material";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
interface ConfirmButtonProps {
|
|
5
|
+
title: string;
|
|
6
|
+
confirmTitle?: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
onConfirm: () => Promise<any>;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
color?: ButtonProps["color"];
|
|
13
|
+
}
|
|
14
|
+
export declare function ConfirmMenuItem(props: PropsWithChildren<ConfirmButtonProps>): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { ListItemIcon, ListItemText, MenuItem } from "@mui/material";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { Fragment, useCallback } from "react";
|
|
13
|
+
import { useFlag, useIsMounted } from "../utils";
|
|
14
|
+
import { ConfirmDialog } from "./ConfirmDialog";
|
|
15
|
+
export function ConfirmMenuItem(props) {
|
|
16
|
+
const { fullWidth, title, confirmTitle, cancel, icon, children, onConfirm, color, disabled, } = props;
|
|
17
|
+
const isMounted = useIsMounted();
|
|
18
|
+
const [dialogOpen, setDialogOpen, clearDialogOpen] = useFlag(false);
|
|
19
|
+
const handleConfirm = useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
yield onConfirm();
|
|
21
|
+
if (isMounted) {
|
|
22
|
+
clearDialogOpen();
|
|
23
|
+
}
|
|
24
|
+
}), [onConfirm, isMounted]);
|
|
25
|
+
return (React.createElement(Fragment, null,
|
|
26
|
+
React.createElement(MenuItem, { onClick: setDialogOpen, disabled: disabled },
|
|
27
|
+
icon && (React.createElement(ListItemIcon, null, icon)),
|
|
28
|
+
React.createElement(ListItemText, { primary: title })),
|
|
29
|
+
React.createElement(ConfirmDialog, { open: dialogOpen, onClose: clearDialogOpen, title: title, confirmTitle: confirmTitle, cancel: cancel, onConfirm: handleConfirm, color: color, fullWidth: fullWidth, icon: icon }, children)));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ConfirmMenuItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmMenuItem.js","sourceRoot":"","sources":["../../src/confirm/ConfirmMenuItem.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAChF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,QAAQ,EAAqB,WAAW,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAa9C,MAAM,UAAU,eAAe,CAAC,KAA4C;IACxE,MAAM,EACF,SAAS,EACT,KAAK,EACL,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,GACX,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEpE,MAAM,aAAa,GAAG,WAAW,CAAC,GAAS,EAAE;QACzC,MAAM,SAAS,EAAE,CAAC;QAClB,IAAI,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE,CAAC;QACtB,CAAC;IACL,CAAC,CAAA,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAE3B,OAAO,CACH,oBAAC,QAAQ;QACL,oBAAC,QAAQ,IACL,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ;YAEjB,IAAI,IAAI,CACL,oBAAC,YAAY,QAAE,IAAI,CAAgB,CACtC;YACD,oBAAC,YAAY,IAAC,OAAO,EAAE,KAAK,GAAI,CACzB;QACX,oBAAC,aAAa,IACV,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,IAET,QAAQ,CACG,CACT,CACd,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/confirm/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { Breakpoint } from "@mui/system";
|
|
3
|
+
interface ContainerLayoutProps extends PropsWithChildren<any> {
|
|
4
|
+
fixedWidth?: Breakpoint | false;
|
|
5
|
+
margin?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function ContainerLayout({ children, fixedWidth, margin, helpKey }: ContainerLayoutProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Container } from "@mui/material";
|
|
3
|
+
import { containerWidthToBreakPoint, useContainerSettingsContext } from "./ContainerSettingsContext";
|
|
4
|
+
import { useHelpSettingsContext } from "../help/HelpSettingsContext";
|
|
5
|
+
import { HelpDrawer } from "../help/HelpDrawer";
|
|
6
|
+
export function ContainerLayout({ children, fixedWidth, margin, helpKey }) {
|
|
7
|
+
const { width } = useContainerSettingsContext();
|
|
8
|
+
const { baseUrl } = useHelpSettingsContext();
|
|
9
|
+
let selectedWidth = fixedWidth;
|
|
10
|
+
if (!selectedWidth && width) {
|
|
11
|
+
selectedWidth = containerWidthToBreakPoint(width);
|
|
12
|
+
}
|
|
13
|
+
return (React.createElement(Container, { maxWidth: selectedWidth, id: "containerLayout" },
|
|
14
|
+
React.createElement(Box, { marginTop: margin != undefined ? margin : 5, id: "containerLayoutBoxScreen", display: "block", displayPrint: "none" },
|
|
15
|
+
children,
|
|
16
|
+
baseUrl &&
|
|
17
|
+
React.createElement(HelpDrawer, null)),
|
|
18
|
+
React.createElement(Box, { id: "containerLayoutBoxPrint", display: "none", displayPrint: "block", style: { marginTop: "-32px" } }, children)));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ContainerLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerLayout.js","sourceRoot":"","sources":["../../src/container/ContainerLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAC,GAAG,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,0BAA0B,EAAE,2BAA2B,EAAC,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAO9C,MAAM,UAAU,eAAe,CAAC,EAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAuB;IAC5F,MAAM,EAAC,KAAK,EAAC,GAAG,2BAA2B,EAAE,CAAC;IAC9C,MAAM,EAAC,OAAO,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAE3C,IAAI,aAAa,GAAG,UAAU,CAAC;IAC/B,IAAG,CAAC,aAAa,IAAI,KAAK,EAAE,CAAC;QAC5B,aAAa,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,CACN,oBAAC,SAAS,IAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAC,iBAAiB;QACvD,oBAAC,GAAG,IACH,SAAS,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAC3C,EAAE,EAAC,0BAA0B,EAC7B,OAAO,EAAC,OAAO,EACf,YAAY,EAAC,MAAM;YAElB,QAAQ;YACR,OAAO;gBACP,oBAAC,UAAU,OAAG,CAEV;QACN,oBAAC,GAAG,IAAC,EAAE,EAAC,yBAAyB,EAAC,OAAO,EAAC,MAAM,EAAC,YAAY,EAAC,OAAO,EAAC,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAC,IAC/F,QAAQ,CACJ,CACK,CACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { Breakpoint } from "@mui/system";
|
|
3
|
+
type ContainerWidth = Breakpoint | 'max';
|
|
4
|
+
export declare function nextWidth(currentWidth: ContainerWidth): ContainerWidth;
|
|
5
|
+
export declare function containerWidthToBreakPoint(width: ContainerWidth): Breakpoint | false;
|
|
6
|
+
interface ContainerSettingsContextData {
|
|
7
|
+
width: ContainerWidth;
|
|
8
|
+
setWidth: (width: ContainerWidth) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ContainerSettingsContextProvider({ children }: PropsWithChildren<any>): JSX.Element;
|
|
11
|
+
export declare function useContainerSettingsContext(): ContainerSettingsContextData;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
3
|
+
const availableWidths = ['lg', 'xl', 'max'];
|
|
4
|
+
export function nextWidth(currentWidth) {
|
|
5
|
+
const currentIndex = availableWidths.indexOf(currentWidth);
|
|
6
|
+
const nextIndex = currentIndex + 1;
|
|
7
|
+
return nextIndex >= availableWidths.length ? availableWidths[0] : availableWidths[nextIndex];
|
|
8
|
+
}
|
|
9
|
+
export function containerWidthToBreakPoint(width) {
|
|
10
|
+
return width === 'max' ? false : width;
|
|
11
|
+
}
|
|
12
|
+
const WIDTH_KEY = "variocube-container-width";
|
|
13
|
+
const DEFAULT_WIDTH = 'lg';
|
|
14
|
+
const emptyContext = {
|
|
15
|
+
width: DEFAULT_WIDTH,
|
|
16
|
+
setWidth: (width) => console.error(`Empty context should not call setWidth(${width}), you most likely do not have <ContainerSettingsContextProvider/> in your component tree.`)
|
|
17
|
+
};
|
|
18
|
+
const ContainerSettingsContext = createContext(emptyContext);
|
|
19
|
+
export function ContainerSettingsContextProvider({ children }) {
|
|
20
|
+
const [width, setWidth] = useState(undefined);
|
|
21
|
+
const handleSetWidth = useCallback((next) => {
|
|
22
|
+
console.log(`Setting container width to ${next}`);
|
|
23
|
+
localStorage.setItem(WIDTH_KEY, next);
|
|
24
|
+
setWidth(next);
|
|
25
|
+
}, []);
|
|
26
|
+
const defaultContext = useMemo(() => {
|
|
27
|
+
return {
|
|
28
|
+
width: width || DEFAULT_WIDTH,
|
|
29
|
+
setWidth: handleSetWidth
|
|
30
|
+
};
|
|
31
|
+
}, [width, handleSetWidth]);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
let configured = localStorage.getItem(WIDTH_KEY);
|
|
34
|
+
if (configured) {
|
|
35
|
+
setWidth(configured);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
setWidth(DEFAULT_WIDTH);
|
|
39
|
+
}
|
|
40
|
+
}, []);
|
|
41
|
+
return (React.createElement(ContainerSettingsContext.Provider, { value: defaultContext }, children));
|
|
42
|
+
}
|
|
43
|
+
export function useContainerSettingsContext() {
|
|
44
|
+
return useContext(ContainerSettingsContext);
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=ContainerSettingsContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerSettingsContext.js","sourceRoot":"","sources":["../../src/container/ContainerSettings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,CAAC;QAClD,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACtC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,cAAc,GAAG,OAAO,CAA+B,GAAG,EAAE;QAC9D,OAAO;YACH,KAAK,EAAE,KAAK,IAAI,aAAa;YAC7B,QAAQ,EAAE,cAAc;SAC3B,CAAC;IACN,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;IAE5B,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACjD,IAAG,UAAU,EAAE,CAAC;YACZ,QAAQ,CAAC,UAA4B,CAAC,CAAC;QAC3C,CAAC;aAAM,CAAC;YACJ,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC5B,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,oBAAC,wBAAwB,CAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,IACnD,QAAQ,CACuB,CACvC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B;IACvC,OAAO,UAAU,CAA+B,wBAAwB,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LinkProps } from "@mui/material/Link/Link";
|
|
3
|
+
interface ContainerWidthControlProps extends Omit<LinkProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
export declare function ContainerWidthControl(props: ContainerWidthControlProps): JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Link } from "@mui/material";
|
|
3
|
+
import { nextWidth, useContainerSettingsContext } from "./ContainerSettingsContext";
|
|
4
|
+
import { useCallback } from "react";
|
|
5
|
+
export function ContainerWidthControl(props) {
|
|
6
|
+
const { width, setWidth } = useContainerSettingsContext();
|
|
7
|
+
const handleChangeContainerWidth = useCallback(() => {
|
|
8
|
+
setWidth(nextWidth(width));
|
|
9
|
+
}, [width]);
|
|
10
|
+
return (React.createElement(Link, Object.assign({ href: "#", underline: "hover", color: "secondary", onClick: handleChangeContainerWidth }, props), width));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ContainerWidthControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerWidthControl.js","sourceRoot":"","sources":["../../src/container/ContainerWidthControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAE,2BAA2B,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAKlC,MAAM,UAAU,qBAAqB,CAAC,KAAiC;IACnE,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,2BAA2B,EAAE,CAAC;IAExD,MAAM,0BAA0B,GAAG,WAAW,CAAC,GAAG,EAAE;QAChD,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/B,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACH,oBAAC,IAAI,kBAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAE,0BAA0B,IAAM,KAAK,GAAG,KAAK,CAAQ,CACpH,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ContainerSettingsContextProvider, useContainerSettingsContext, containerWidthToBreakPoint, nextWidth } from "./ContainerSettingsContext";
|
|
2
|
+
export { ContainerLayout } from "./ContainerLayout";
|
|
3
|
+
export { ContainerWidthControl } from "./ContainerWidthControl";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gCAAgC,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,SAAS,EAAC,MAAM,4BAA4B,CAAC;AAChJ,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactComponentElement } from "react";
|
|
2
|
+
import { Page, PagingSettings } from "../Paging";
|
|
3
|
+
export type ColumnType = {
|
|
4
|
+
[sortKey: string]: {
|
|
5
|
+
show: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
align?: 'left' | 'right' | 'center';
|
|
8
|
+
unsortable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type ContentTableProps<T> = {
|
|
12
|
+
pageable: PagingSettings<keyof ColumnType>;
|
|
13
|
+
columns: ColumnType;
|
|
14
|
+
onPageableChange: (pageable: PagingSettings<keyof ColumnType>) => void;
|
|
15
|
+
onColumnsChange: (columns: ColumnType) => void;
|
|
16
|
+
page?: Page<T>;
|
|
17
|
+
inProgress?: boolean;
|
|
18
|
+
onFilterClick?: () => void;
|
|
19
|
+
renderEmptyContent?: ReactComponentElement<any>;
|
|
20
|
+
renderTableBody?: ReactComponentElement<any>;
|
|
21
|
+
renderFilterOptions?: ReactComponentElement<any>;
|
|
22
|
+
renderColumnFilter?: ReactComponentElement<any>;
|
|
23
|
+
};
|
|
24
|
+
export declare const ContentTable: <T extends unknown>(props: ContentTableProps<T>) => JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React, { Fragment, useMemo, useState } from "react";
|
|
2
|
+
import { Box, Button, Checkbox, CircularProgress, Dialog, DialogActions, DialogContent, FormControlLabel, Grid, IconButton, LinearProgress, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, useTheme } from "@mui/material";
|
|
3
|
+
import { FilterListIcon, TuningIcon } from "../icons";
|
|
4
|
+
import { UndrawEmpty } from "./UndrawEmpty";
|
|
5
|
+
export const ContentTable = (props) => {
|
|
6
|
+
const { page, pageable, columns, renderEmptyContent, renderTableBody, renderFilterOptions, renderColumnFilter, inProgress, onPageableChange, onColumnsChange, onFilterClick, } = props;
|
|
7
|
+
const currentPage = useMemo(() => page, [page]);
|
|
8
|
+
const currentPageable = useMemo(() => pageable, [pageable]);
|
|
9
|
+
const [showColumnSettings, setShowColumnSettings] = useState(false);
|
|
10
|
+
const handleSortColumn = (key) => {
|
|
11
|
+
const { sort, direction } = currentPageable;
|
|
12
|
+
let oD;
|
|
13
|
+
if (sort == key) {
|
|
14
|
+
oD = direction === 'desc' ? 'asc' : 'desc';
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
oD = 'desc';
|
|
18
|
+
}
|
|
19
|
+
updatePageable(Object.assign(Object.assign({}, currentPageable), { sort: key, direction: oD }));
|
|
20
|
+
};
|
|
21
|
+
const handlePageChange = (e, pageNumber) => {
|
|
22
|
+
updatePageable(Object.assign(Object.assign({}, currentPageable), { pageNumber: pageNumber }));
|
|
23
|
+
};
|
|
24
|
+
const handleRowsPerPageChange = (e) => {
|
|
25
|
+
updatePageable(Object.assign(Object.assign({}, currentPageable), { pageSize: e.target.value }));
|
|
26
|
+
};
|
|
27
|
+
const updatePageable = (settings) => {
|
|
28
|
+
onPageableChange(settings);
|
|
29
|
+
};
|
|
30
|
+
const toggleColumnSettings = () => setShowColumnSettings(!showColumnSettings);
|
|
31
|
+
const handleColumnsChange = (sortKey, show) => {
|
|
32
|
+
onColumnsChange(Object.assign(Object.assign({}, columns), { [sortKey]: Object.assign(Object.assign({}, columns[sortKey]), { show }) }));
|
|
33
|
+
};
|
|
34
|
+
const theme = useTheme();
|
|
35
|
+
return (React.createElement(Paper, { sx: { maxWidth: `calc(100vw - ${theme.spacing(4)})` } },
|
|
36
|
+
!currentPage && (React.createElement(Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 3 },
|
|
37
|
+
React.createElement(CircularProgress, null))),
|
|
38
|
+
currentPage && (React.createElement(Fragment, null,
|
|
39
|
+
React.createElement(Box, { p: 1 },
|
|
40
|
+
React.createElement(Grid, { container: true },
|
|
41
|
+
React.createElement(Grid, { item: true, display: "flex", flexGrow: 1, alignItems: "center" },
|
|
42
|
+
onFilterClick && (React.createElement(IconButton, { onClick: onFilterClick },
|
|
43
|
+
React.createElement(FilterListIcon, null))),
|
|
44
|
+
React.createElement(Box, { mx: 1 }),
|
|
45
|
+
renderFilterOptions && (renderFilterOptions)),
|
|
46
|
+
React.createElement(Grid, { item: true },
|
|
47
|
+
React.createElement(IconButton, { onClick: toggleColumnSettings },
|
|
48
|
+
React.createElement(TuningIcon, null))))),
|
|
49
|
+
React.createElement(TableContainer, null,
|
|
50
|
+
React.createElement(Table, { size: "small" },
|
|
51
|
+
React.createElement(TableHead, { sx: {
|
|
52
|
+
background: theme.palette.mode === 'light' ? theme.palette.grey[200] : theme.palette.grey[600]
|
|
53
|
+
} },
|
|
54
|
+
React.createElement(TableRow, null, Object.keys(columns).filter(k => columns[k].show).map((k) => (React.createElement(TableCell, { key: 'data-table-' + k, sx: { whiteSpace: 'nowrap' }, align: columns[k].align },
|
|
55
|
+
!columns[k].unsortable && (React.createElement(TableSortLabel, { active: currentPageable.sort === k, direction: currentPageable.sort === k ? currentPageable.direction : 'asc', onClick: () => handleSortColumn(k) }, columns[k].name)),
|
|
56
|
+
columns[k].unsortable && (columns[k].name)))))),
|
|
57
|
+
React.createElement(TableBody, { sx: {
|
|
58
|
+
'& > tr:not(.empty)': {
|
|
59
|
+
cursor: 'pointer',
|
|
60
|
+
'&:hover': {
|
|
61
|
+
background: `${theme.palette.mode === 'light' ? theme.palette.grey[50] : theme.palette.grey[800]} !important`
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
} },
|
|
65
|
+
currentPage.content.length === 0 && (renderEmptyContent ?
|
|
66
|
+
(React.createElement(Fragment, null, renderEmptyContent)) :
|
|
67
|
+
(React.createElement(TableRow, { className: 'empty' },
|
|
68
|
+
React.createElement(TableCell, { colSpan: Object.keys(columns).length },
|
|
69
|
+
React.createElement(Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 3 },
|
|
70
|
+
React.createElement(Box, { sx: {
|
|
71
|
+
height: 300,
|
|
72
|
+
[theme.breakpoints.down('md')]: {
|
|
73
|
+
height: 150
|
|
74
|
+
},
|
|
75
|
+
} },
|
|
76
|
+
React.createElement(UndrawEmpty, { height: "100%", width: "auto" }))))))),
|
|
77
|
+
renderTableBody))),
|
|
78
|
+
React.createElement(TablePagination, { rowsPerPageOptions: [10, 25, 50], component: "div", count: currentPage.totalElements, rowsPerPage: currentPageable.pageSize, page: currentPageable.pageNumber, onPageChange: handlePageChange, onRowsPerPageChange: handleRowsPerPageChange }),
|
|
79
|
+
inProgress && (React.createElement(LinearProgress, { variant: "indeterminate" })),
|
|
80
|
+
React.createElement(Dialog, { fullWidth: true, maxWidth: "sm", open: showColumnSettings },
|
|
81
|
+
React.createElement(DialogContent, null,
|
|
82
|
+
renderColumnFilter && React.createElement(Fragment, null, renderColumnFilter),
|
|
83
|
+
!renderColumnFilter && Object.keys(columns).map((k, i) => (React.createElement(FormControlLabel, { key: 'column-setting-' + i, label: columns[k].name, color: "primary", control: React.createElement(Checkbox, { checked: columns[k].show, onChange: e => handleColumnsChange(k, e.target.checked) }) })))),
|
|
84
|
+
React.createElement(DialogActions, null,
|
|
85
|
+
React.createElement(Button, { variant: "contained", color: "primary", onClick: toggleColumnSettings }, "OK")))))));
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=ContentTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentTable.js","sourceRo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