@dextinity/admin 2.0.0-canary-20260729062014
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/LICENSE +24 -0
- package/lib/ContentOverflow.d.ts +38 -0
- package/lib/ContentOverflow.d.ts.map +1 -0
- package/lib/ContentOverflow.js +138 -0
- package/lib/DeleteMutation.d.ts +15 -0
- package/lib/DeleteMutation.d.ts.map +1 -0
- package/lib/DeleteMutation.js +87 -0
- package/lib/FinalForm.d.ts +34 -0
- package/lib/FinalForm.d.ts.map +1 -0
- package/lib/FinalForm.js +341 -0
- package/lib/FinalFormSaveButton.d.ts +8 -0
- package/lib/FinalFormSaveButton.d.ts.map +1 -0
- package/lib/FinalFormSaveButton.js +35 -0
- package/lib/FinalFormSaveCancelButtonsLegacy.d.ts +31 -0
- package/lib/FinalFormSaveCancelButtonsLegacy.d.ts.map +1 -0
- package/lib/FinalFormSaveCancelButtonsLegacy.js +60 -0
- package/lib/FinalFormSaveSplitButton.d.ts +11 -0
- package/lib/FinalFormSaveSplitButton.d.ts.map +1 -0
- package/lib/FinalFormSaveSplitButton.js +116 -0
- package/lib/FormMutation.d.ts +15 -0
- package/lib/FormMutation.d.ts.map +1 -0
- package/lib/FormMutation.js +28 -0
- package/lib/Selected.d.ts +27 -0
- package/lib/Selected.d.ts.map +1 -0
- package/lib/Selected.js +75 -0
- package/lib/Selection.d.ts +17 -0
- package/lib/Selection.d.ts.map +1 -0
- package/lib/Selection.js +83 -0
- package/lib/SelectionApi.d.ts +6 -0
- package/lib/SelectionApi.d.ts.map +1 -0
- package/lib/SelectionApi.js +1 -0
- package/lib/SelectionRoute.d.ts +24 -0
- package/lib/SelectionRoute.d.ts.map +1 -0
- package/lib/SelectionRoute.js +103 -0
- package/lib/alert/Alert.d.ts +60 -0
- package/lib/alert/Alert.d.ts.map +1 -0
- package/lib/alert/Alert.js +101 -0
- package/lib/apollo/filterByFragment.d.ts +7 -0
- package/lib/apollo/filterByFragment.d.ts.map +1 -0
- package/lib/apollo/filterByFragment.js +182 -0
- package/lib/apollo/useFocusAwarePolling.d.ts +5 -0
- package/lib/apollo/useFocusAwarePolling.d.ts.map +1 -0
- package/lib/apollo/useFocusAwarePolling.js +38 -0
- package/lib/appHeader/AppHeader.d.ts +26 -0
- package/lib/appHeader/AppHeader.d.ts.map +1 -0
- package/lib/appHeader/AppHeader.js +56 -0
- package/lib/appHeader/button/AppHeaderButton.d.ts +31 -0
- package/lib/appHeader/button/AppHeaderButton.d.ts.map +1 -0
- package/lib/appHeader/button/AppHeaderButton.js +39 -0
- package/lib/appHeader/button/AppHeaderButton.styles.d.ts +28 -0
- package/lib/appHeader/button/AppHeaderButton.styles.d.ts.map +1 -0
- package/lib/appHeader/button/AppHeaderButton.styles.js +34 -0
- package/lib/appHeader/dropdown/AppHeaderDropdown.d.ts +39 -0
- package/lib/appHeader/dropdown/AppHeaderDropdown.d.ts.map +1 -0
- package/lib/appHeader/dropdown/AppHeaderDropdown.js +106 -0
- package/lib/appHeader/fillSpace/AppHeaderFillSpace.d.ts +24 -0
- package/lib/appHeader/fillSpace/AppHeaderFillSpace.d.ts.map +1 -0
- package/lib/appHeader/fillSpace/AppHeaderFillSpace.js +31 -0
- package/lib/appHeader/menuButton/AppHeaderMenuButton.d.ts +19 -0
- package/lib/appHeader/menuButton/AppHeaderMenuButton.d.ts.map +1 -0
- package/lib/appHeader/menuButton/AppHeaderMenuButton.js +58 -0
- package/lib/buildRestMutation.d.ts +14 -0
- package/lib/buildRestMutation.d.ts.map +1 -0
- package/lib/buildRestMutation.js +21 -0
- package/lib/clipboard/readClipboardText.d.ts +2 -0
- package/lib/clipboard/readClipboardText.d.ts.map +1 -0
- package/lib/clipboard/readClipboardText.js +39 -0
- package/lib/clipboard/writeClipboardText.d.ts +3 -0
- package/lib/clipboard/writeClipboardText.d.ts.map +1 -0
- package/lib/clipboard/writeClipboardText.js +27 -0
- package/lib/common/ClearInputAdornment.d.ts +27 -0
- package/lib/common/ClearInputAdornment.d.ts.map +1 -0
- package/lib/common/ClearInputAdornment.js +62 -0
- package/lib/common/CometLogo.d.ts +6 -0
- package/lib/common/CometLogo.d.ts.map +1 -0
- package/lib/common/CometLogo.js +35 -0
- package/lib/common/DeleteDialog.d.ts +10 -0
- package/lib/common/DeleteDialog.d.ts.map +1 -0
- package/lib/common/DeleteDialog.js +76 -0
- package/lib/common/Dialog.d.ts +30 -0
- package/lib/common/Dialog.d.ts.map +1 -0
- package/lib/common/Dialog.js +73 -0
- package/lib/common/FieldSet.d.ts +40 -0
- package/lib/common/FieldSet.d.ts.map +1 -0
- package/lib/common/FieldSet.js +138 -0
- package/lib/common/FillSpace.d.ts +21 -0
- package/lib/common/FillSpace.d.ts.map +1 -0
- package/lib/common/FillSpace.js +27 -0
- package/lib/common/FullHeightContent.d.ts +26 -0
- package/lib/common/FullHeightContent.d.ts.map +1 -0
- package/lib/common/FullHeightContent.js +47 -0
- package/lib/common/HoverActions.d.ts +29 -0
- package/lib/common/HoverActions.d.ts.map +1 -0
- package/lib/common/HoverActions.js +71 -0
- package/lib/common/Loading.d.ts +6 -0
- package/lib/common/Loading.d.ts.map +1 -0
- package/lib/common/Loading.js +66 -0
- package/lib/common/MainContent.d.ts +28 -0
- package/lib/common/MainContent.d.ts.map +1 -0
- package/lib/common/MainContent.js +70 -0
- package/lib/common/OpenPickerAdornment.d.ts +32 -0
- package/lib/common/OpenPickerAdornment.d.ts.map +1 -0
- package/lib/common/OpenPickerAdornment.js +62 -0
- package/lib/common/ReadOnlyAdornment.d.ts +26 -0
- package/lib/common/ReadOnlyAdornment.d.ts.map +1 -0
- package/lib/common/ReadOnlyAdornment.js +42 -0
- package/lib/common/Tooltip.d.ts +35 -0
- package/lib/common/Tooltip.d.ts.map +1 -0
- package/lib/common/Tooltip.js +148 -0
- package/lib/common/buttons/Button.d.ts +44 -0
- package/lib/common/buttons/Button.d.ts.map +1 -0
- package/lib/common/buttons/Button.js +136 -0
- package/lib/common/buttons/CopyToClipboardButton.d.ts +31 -0
- package/lib/common/buttons/CopyToClipboardButton.d.ts.map +1 -0
- package/lib/common/buttons/CopyToClipboardButton.js +117 -0
- package/lib/common/buttons/SaveButton.d.ts +21 -0
- package/lib/common/buttons/SaveButton.d.ts.map +1 -0
- package/lib/common/buttons/SaveButton.js +35 -0
- package/lib/common/buttons/cancel/CancelButton.d.ts +20 -0
- package/lib/common/buttons/cancel/CancelButton.d.ts.map +1 -0
- package/lib/common/buttons/cancel/CancelButton.js +37 -0
- package/lib/common/buttons/clearinput/ClearInputButton.d.ts +32 -0
- package/lib/common/buttons/clearinput/ClearInputButton.d.ts.map +1 -0
- package/lib/common/buttons/clearinput/ClearInputButton.js +49 -0
- package/lib/common/buttons/delete/DeleteButton.d.ts +21 -0
- package/lib/common/buttons/delete/DeleteButton.d.ts.map +1 -0
- package/lib/common/buttons/delete/DeleteButton.js +37 -0
- package/lib/common/buttons/feedback/FeedbackButton.d.ts +35 -0
- package/lib/common/buttons/feedback/FeedbackButton.d.ts.map +1 -0
- package/lib/common/buttons/feedback/FeedbackButton.js +165 -0
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.d.ts +30 -0
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.d.ts.map +1 -0
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.js +61 -0
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.sc.d.ts +33 -0
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.sc.d.ts.map +1 -0
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.sc.js +15 -0
- package/lib/common/buttons/okay/OkayButton.d.ts +21 -0
- package/lib/common/buttons/okay/OkayButton.d.ts.map +1 -0
- package/lib/common/buttons/okay/OkayButton.js +36 -0
- package/lib/common/buttons/split/SplitButton.d.ts +44 -0
- package/lib/common/buttons/split/SplitButton.d.ts.map +1 -0
- package/lib/common/buttons/split/SplitButton.js +168 -0
- package/lib/common/buttons/split/SplitButtonContext.d.ts +12 -0
- package/lib/common/buttons/split/SplitButtonContext.d.ts.map +1 -0
- package/lib/common/buttons/split/SplitButtonContext.js +11 -0
- package/lib/common/buttons/split/useSplitButtonContext.d.ts +6 -0
- package/lib/common/buttons/split/useSplitButtonContext.d.ts.map +1 -0
- package/lib/common/buttons/split/useSplitButtonContext.js +9 -0
- package/lib/common/toolbar/DataGridToolbar.d.ts +21 -0
- package/lib/common/toolbar/DataGridToolbar.d.ts.map +1 -0
- package/lib/common/toolbar/DataGridToolbar.js +37 -0
- package/lib/common/toolbar/StackToolbar.d.ts +4 -0
- package/lib/common/toolbar/StackToolbar.d.ts.map +1 -0
- package/lib/common/toolbar/StackToolbar.js +18 -0
- package/lib/common/toolbar/Toolbar.d.ts +42 -0
- package/lib/common/toolbar/Toolbar.d.ts.map +1 -0
- package/lib/common/toolbar/Toolbar.js +93 -0
- package/lib/common/toolbar/ToolbarBreadcrumbs.d.ts +41 -0
- package/lib/common/toolbar/ToolbarBreadcrumbs.d.ts.map +1 -0
- package/lib/common/toolbar/ToolbarBreadcrumbs.js +244 -0
- package/lib/common/toolbar/actions/ToolbarActionButton.d.ts +30 -0
- package/lib/common/toolbar/actions/ToolbarActionButton.d.ts.map +1 -0
- package/lib/common/toolbar/actions/ToolbarActionButton.js +78 -0
- package/lib/common/toolbar/actions/ToolbarActions.d.ts +17 -0
- package/lib/common/toolbar/actions/ToolbarActions.d.ts.map +1 -0
- package/lib/common/toolbar/actions/ToolbarActions.js +32 -0
- package/lib/common/toolbar/automatictitleitem/ToolbarAutomaticTitleItem.d.ts +30 -0
- package/lib/common/toolbar/automatictitleitem/ToolbarAutomaticTitleItem.d.ts.map +1 -0
- package/lib/common/toolbar/automatictitleitem/ToolbarAutomaticTitleItem.js +37 -0
- package/lib/common/toolbar/backbutton/ToolbarBackButton.d.ts +35 -0
- package/lib/common/toolbar/backbutton/ToolbarBackButton.d.ts.map +1 -0
- package/lib/common/toolbar/backbutton/ToolbarBackButton.js +64 -0
- package/lib/common/toolbar/fillspace/ToolbarFillSpace.d.ts +27 -0
- package/lib/common/toolbar/fillspace/ToolbarFillSpace.d.ts.map +1 -0
- package/lib/common/toolbar/fillspace/ToolbarFillSpace.js +33 -0
- package/lib/common/toolbar/item/ToolbarItem.d.ts +24 -0
- package/lib/common/toolbar/item/ToolbarItem.d.ts.map +1 -0
- package/lib/common/toolbar/item/ToolbarItem.js +32 -0
- package/lib/common/toolbar/titleitem/ToolbarTitleItem.d.ts +31 -0
- package/lib/common/toolbar/titleitem/ToolbarTitleItem.d.ts.map +1 -0
- package/lib/common/toolbar/titleitem/ToolbarTitleItem.js +40 -0
- package/lib/dataGrid/CrudContextMenu.d.ts +64 -0
- package/lib/dataGrid/CrudContextMenu.d.ts.map +1 -0
- package/lib/dataGrid/CrudContextMenu.js +354 -0
- package/lib/dataGrid/CrudMoreActionsMenu.d.ts +50 -0
- package/lib/dataGrid/CrudMoreActionsMenu.d.ts.map +1 -0
- package/lib/dataGrid/CrudMoreActionsMenu.js +208 -0
- package/lib/dataGrid/CrudVisibility.d.ts +6 -0
- package/lib/dataGrid/CrudVisibility.d.ts.map +1 -0
- package/lib/dataGrid/CrudVisibility.js +93 -0
- package/lib/dataGrid/CrudVisibilityIcon.d.ts +7 -0
- package/lib/dataGrid/CrudVisibilityIcon.d.ts.map +1 -0
- package/lib/dataGrid/CrudVisibilityIcon.js +14 -0
- package/lib/dataGrid/DataGridPanel.d.ts +48 -0
- package/lib/dataGrid/DataGridPanel.d.ts.map +1 -0
- package/lib/dataGrid/DataGridPanel.js +284 -0
- package/lib/dataGrid/GridCellContent.d.ts +32 -0
- package/lib/dataGrid/GridCellContent.d.ts.map +1 -0
- package/lib/dataGrid/GridCellContent.js +78 -0
- package/lib/dataGrid/GridColDef.d.ts +36 -0
- package/lib/dataGrid/GridColDef.d.ts.map +1 -0
- package/lib/dataGrid/GridColDef.js +1 -0
- package/lib/dataGrid/GridColumnsButton.d.ts +3 -0
- package/lib/dataGrid/GridColumnsButton.d.ts.map +1 -0
- package/lib/dataGrid/GridColumnsButton.js +27 -0
- package/lib/dataGrid/GridFilterButton.d.ts +3 -0
- package/lib/dataGrid/GridFilterButton.d.ts.map +1 -0
- package/lib/dataGrid/GridFilterButton.js +48 -0
- package/lib/dataGrid/GridToolbarQuickFilter.d.ts +10 -0
- package/lib/dataGrid/GridToolbarQuickFilter.d.ts.map +1 -0
- package/lib/dataGrid/GridToolbarQuickFilter.js +97 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.d.ts +26 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.d.ts.map +1 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.js +135 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.sc.d.ts +31 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.sc.d.ts.map +1 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.sc.js +30 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.d.ts +35 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.d.ts.map +1 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.js +76 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.styles.d.ts +41 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.styles.d.ts.map +1 -0
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.styles.js +32 -0
- package/lib/dataGrid/excelExport/applyDefaultStyling.d.ts +3 -0
- package/lib/dataGrid/excelExport/applyDefaultStyling.d.ts.map +1 -0
- package/lib/dataGrid/excelExport/applyDefaultStyling.js +46 -0
- package/lib/dataGrid/excelExport/generateExcelFile.d.ts +9 -0
- package/lib/dataGrid/excelExport/generateExcelFile.d.ts.map +1 -0
- package/lib/dataGrid/excelExport/generateExcelFile.js +95 -0
- package/lib/dataGrid/excelExport/useDataGridExcelExport.d.ts +24 -0
- package/lib/dataGrid/excelExport/useDataGridExcelExport.d.ts.map +1 -0
- package/lib/dataGrid/excelExport/useDataGridExcelExport.js +139 -0
- package/lib/dataGrid/gridColumnTypes.d.ts +11 -0
- package/lib/dataGrid/gridColumnTypes.d.ts.map +1 -0
- package/lib/dataGrid/gridColumnTypes.js +190 -0
- package/lib/dataGrid/muiGridFilterToGql.d.ts +32 -0
- package/lib/dataGrid/muiGridFilterToGql.d.ts.map +1 -0
- package/lib/dataGrid/muiGridFilterToGql.js +62 -0
- package/lib/dataGrid/muiGridPagingToGql.d.ts +8 -0
- package/lib/dataGrid/muiGridPagingToGql.d.ts.map +1 -0
- package/lib/dataGrid/muiGridPagingToGql.js +8 -0
- package/lib/dataGrid/muiGridSortToGql.d.ts +9 -0
- package/lib/dataGrid/muiGridSortToGql.d.ts.map +1 -0
- package/lib/dataGrid/muiGridSortToGql.js +23 -0
- package/lib/dataGrid/pagination/DataGridPagination.d.ts +24 -0
- package/lib/dataGrid/pagination/DataGridPagination.d.ts.map +1 -0
- package/lib/dataGrid/pagination/DataGridPagination.js +69 -0
- package/lib/dataGrid/pagination/DataGridPagination.styles.d.ts +13 -0
- package/lib/dataGrid/pagination/DataGridPagination.styles.d.ts.map +1 -0
- package/lib/dataGrid/pagination/DataGridPagination.styles.js +12 -0
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.d.ts +29 -0
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.d.ts.map +1 -0
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.js +71 -0
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.styles.d.ts +19 -0
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.styles.d.ts.map +1 -0
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.styles.js +19 -0
- package/lib/dataGrid/renderStaticSelectCell.d.ts +3 -0
- package/lib/dataGrid/renderStaticSelectCell.d.ts.map +1 -0
- package/lib/dataGrid/renderStaticSelectCell.js +19 -0
- package/lib/dataGrid/useBufferedRowCount.d.ts +2 -0
- package/lib/dataGrid/useBufferedRowCount.d.ts.map +1 -0
- package/lib/dataGrid/useBufferedRowCount.js +21 -0
- package/lib/dataGrid/useDataGridRemote.d.ts +22 -0
- package/lib/dataGrid/useDataGridRemote.d.ts.map +1 -0
- package/lib/dataGrid/useDataGridRemote.js +31 -0
- package/lib/dataGrid/useDataGridUrlState.d.ts +23 -0
- package/lib/dataGrid/useDataGridUrlState.d.ts.map +1 -0
- package/lib/dataGrid/useDataGridUrlState.js +108 -0
- package/lib/dataGrid/usePersistentColumnState.d.ts +16 -0
- package/lib/dataGrid/usePersistentColumnState.d.ts.map +1 -0
- package/lib/dataGrid/usePersistentColumnState.js +156 -0
- package/lib/dateTime/datePicker/DatePicker.d.ts +64 -0
- package/lib/dateTime/datePicker/DatePicker.d.ts.map +1 -0
- package/lib/dateTime/datePicker/DatePicker.js +137 -0
- package/lib/dateTime/datePickerField/DatePickerField.d.ts +15 -0
- package/lib/dateTime/datePickerField/DatePickerField.d.ts.map +1 -0
- package/lib/dateTime/datePickerField/DatePickerField.js +31 -0
- package/lib/dateTime/dateRangePicker/DateRangePicker.d.ts +71 -0
- package/lib/dateTime/dateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/lib/dateTime/dateRangePicker/DateRangePicker.js +176 -0
- package/lib/dateTime/dateRangePickerField/DateRangePickerField.d.ts +13 -0
- package/lib/dateTime/dateRangePickerField/DateRangePickerField.d.ts.map +1 -0
- package/lib/dateTime/dateRangePickerField/DateRangePickerField.js +31 -0
- package/lib/dateTime/dateTimePicker/DateTimePicker.d.ts +64 -0
- package/lib/dateTime/dateTimePicker/DateTimePicker.d.ts.map +1 -0
- package/lib/dateTime/dateTimePicker/DateTimePicker.js +137 -0
- package/lib/dateTime/dateTimePickerField/DateTimePickerField.d.ts +12 -0
- package/lib/dateTime/dateTimePickerField/DateTimePickerField.d.ts.map +1 -0
- package/lib/dateTime/dateTimePickerField/DateTimePickerField.js +31 -0
- package/lib/dateTime/dateTimeRangePicker/DateTimeRangePicker.d.ts +71 -0
- package/lib/dateTime/dateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -0
- package/lib/dateTime/dateTimeRangePicker/DateTimeRangePicker.js +180 -0
- package/lib/dateTime/dateTimeRangePickerField/DateTimeRangePickerField.d.ts +13 -0
- package/lib/dateTime/dateTimeRangePickerField/DateTimeRangePickerField.d.ts.map +1 -0
- package/lib/dateTime/dateTimeRangePickerField/DateTimeRangePickerField.js +31 -0
- package/lib/dateTime/timePicker/TimePicker.d.ts +64 -0
- package/lib/dateTime/timePicker/TimePicker.d.ts.map +1 -0
- package/lib/dateTime/timePicker/TimePicker.js +137 -0
- package/lib/dateTime/timePickerField/TimePickerField.d.ts +12 -0
- package/lib/dateTime/timePickerField/TimePickerField.d.ts.map +1 -0
- package/lib/dateTime/timePickerField/TimePickerField.js +31 -0
- package/lib/dateTime/timeRangePicker/TimeRangePicker.d.ts +71 -0
- package/lib/dateTime/timeRangePicker/TimeRangePicker.d.ts.map +1 -0
- package/lib/dateTime/timeRangePicker/TimeRangePicker.js +191 -0
- package/lib/dateTime/timeRangePickerField/TimeRangePickerField.d.ts +13 -0
- package/lib/dateTime/timeRangePickerField/TimeRangePickerField.d.ts.map +1 -0
- package/lib/dateTime/timeRangePickerField/TimeRangePickerField.js +31 -0
- package/lib/dateTime/utils.d.ts +10 -0
- package/lib/dateTime/utils.d.ts.map +1 -0
- package/lib/dateTime/utils.js +35 -0
- package/lib/editDialog/EditDialog.d.ts +32 -0
- package/lib/editDialog/EditDialog.d.ts.map +1 -0
- package/lib/editDialog/EditDialog.js +143 -0
- package/lib/editDialog/EditDialogApiContext.d.ts +14 -0
- package/lib/editDialog/EditDialogApiContext.d.ts.map +1 -0
- package/lib/editDialog/EditDialogApiContext.js +5 -0
- package/lib/error/errorHandler/ErrorHandlerProvider.d.ts +8 -0
- package/lib/error/errorHandler/ErrorHandlerProvider.d.ts.map +1 -0
- package/lib/error/errorHandler/ErrorHandlerProvider.js +16 -0
- package/lib/error/errorboundary/ErrorBoundary.d.ts +38 -0
- package/lib/error/errorboundary/ErrorBoundary.d.ts.map +1 -0
- package/lib/error/errorboundary/ErrorBoundary.js +187 -0
- package/lib/error/errorboundary/RouteWithErrorBoundary.d.ts +4 -0
- package/lib/error/errorboundary/RouteWithErrorBoundary.d.ts.map +1 -0
- package/lib/error/errorboundary/RouteWithErrorBoundary.js +15 -0
- package/lib/error/errordialog/ErrorDialog.d.ts +20 -0
- package/lib/error/errordialog/ErrorDialog.d.ts.map +1 -0
- package/lib/error/errordialog/ErrorDialog.js +315 -0
- package/lib/error/errordialog/ErrorDialogHandler.d.ts +2 -0
- package/lib/error/errordialog/ErrorDialogHandler.d.ts.map +1 -0
- package/lib/error/errordialog/ErrorDialogHandler.js +31 -0
- package/lib/error/errordialog/ErrorScope.d.ts +9 -0
- package/lib/error/errordialog/ErrorScope.d.ts.map +1 -0
- package/lib/error/errordialog/ErrorScope.js +18 -0
- package/lib/error/errordialog/createErrorDialogApolloLink.d.ts +4 -0
- package/lib/error/errordialog/createErrorDialogApolloLink.d.ts.map +1 -0
- package/lib/error/errordialog/createErrorDialogApolloLink.js +59 -0
- package/lib/error/errordialog/errorDialogVar.d.ts +3 -0
- package/lib/error/errordialog/errorDialogVar.d.ts.map +1 -0
- package/lib/error/errordialog/errorDialogVar.js +2 -0
- package/lib/error/errordialog/useErrorDialog.d.ts +6 -0
- package/lib/error/errordialog/useErrorDialog.d.ts.map +1 -0
- package/lib/error/errordialog/useErrorDialog.js +10 -0
- package/lib/fetchProvider/fetch.d.ts +10 -0
- package/lib/fetchProvider/fetch.d.ts.map +1 -0
- package/lib/fetchProvider/fetch.js +45 -0
- package/lib/fileIcons/Excel.d.ts +3 -0
- package/lib/fileIcons/Excel.d.ts.map +1 -0
- package/lib/fileIcons/Excel.js +18 -0
- package/lib/fileIcons/File.d.ts +3 -0
- package/lib/fileIcons/File.d.ts.map +1 -0
- package/lib/fileIcons/File.js +18 -0
- package/lib/fileIcons/FileIcon.d.ts +7 -0
- package/lib/fileIcons/FileIcon.d.ts.map +1 -0
- package/lib/fileIcons/FileIcon.js +46 -0
- package/lib/fileIcons/Jpg.d.ts +3 -0
- package/lib/fileIcons/Jpg.d.ts.map +1 -0
- package/lib/fileIcons/Jpg.js +18 -0
- package/lib/fileIcons/Pdf.d.ts +3 -0
- package/lib/fileIcons/Pdf.d.ts.map +1 -0
- package/lib/fileIcons/Pdf.js +18 -0
- package/lib/fileIcons/Png.d.ts +3 -0
- package/lib/fileIcons/Png.d.ts.map +1 -0
- package/lib/fileIcons/Png.js +18 -0
- package/lib/fileIcons/Powerpoint.d.ts +3 -0
- package/lib/fileIcons/Powerpoint.d.ts.map +1 -0
- package/lib/fileIcons/Powerpoint.js +18 -0
- package/lib/fileIcons/Word.d.ts +3 -0
- package/lib/fileIcons/Word.d.ts.map +1 -0
- package/lib/fileIcons/Word.js +18 -0
- package/lib/fileIcons/Zip.d.ts +3 -0
- package/lib/fileIcons/Zip.d.ts.map +1 -0
- package/lib/fileIcons/Zip.js +18 -0
- package/lib/form/Autocomplete.d.ts +19 -0
- package/lib/form/Autocomplete.d.ts.map +1 -0
- package/lib/form/Autocomplete.js +108 -0
- package/lib/form/Checkbox.d.ts +12 -0
- package/lib/form/Checkbox.d.ts.map +1 -0
- package/lib/form/Checkbox.js +32 -0
- package/lib/form/Field.d.ts +22 -0
- package/lib/form/Field.d.ts.map +1 -0
- package/lib/form/Field.js +163 -0
- package/lib/form/FieldContainer.d.ts +47 -0
- package/lib/form/FieldContainer.d.ts.map +1 -0
- package/lib/form/FieldContainer.js +181 -0
- package/lib/form/FinalFormAsyncAutocomplete.d.ts +14 -0
- package/lib/form/FinalFormAsyncAutocomplete.d.ts.map +1 -0
- package/lib/form/FinalFormAsyncAutocomplete.js +28 -0
- package/lib/form/FinalFormAsyncSelect.d.ts +15 -0
- package/lib/form/FinalFormAsyncSelect.d.ts.map +1 -0
- package/lib/form/FinalFormAsyncSelect.js +22 -0
- package/lib/form/FinalFormContextProvider.d.ts +13 -0
- package/lib/form/FinalFormContextProvider.d.ts.map +1 -0
- package/lib/form/FinalFormContextProvider.js +34 -0
- package/lib/form/FinalFormDebug.d.ts +25 -0
- package/lib/form/FinalFormDebug.d.ts.map +1 -0
- package/lib/form/FinalFormDebug.js +83 -0
- package/lib/form/FinalFormFileSelect.d.ts +6 -0
- package/lib/form/FinalFormFileSelect.d.ts.map +1 -0
- package/lib/form/FinalFormFileSelect.js +119 -0
- package/lib/form/FinalFormInput.d.ts +9 -0
- package/lib/form/FinalFormInput.d.ts.map +1 -0
- package/lib/form/FinalFormInput.js +115 -0
- package/lib/form/FinalFormNumberInput.d.ts +14 -0
- package/lib/form/FinalFormNumberInput.d.ts.map +1 -0
- package/lib/form/FinalFormNumberInput.js +104 -0
- package/lib/form/FinalFormRangeInput.d.ts +37 -0
- package/lib/form/FinalFormRangeInput.d.ts.map +1 -0
- package/lib/form/FinalFormRangeInput.js +190 -0
- package/lib/form/FinalFormSearchTextField.d.ts +25 -0
- package/lib/form/FinalFormSearchTextField.d.ts.map +1 -0
- package/lib/form/FinalFormSearchTextField.js +43 -0
- package/lib/form/FinalFormSelect.d.ts +22 -0
- package/lib/form/FinalFormSelect.d.ts.map +1 -0
- package/lib/form/FinalFormSelect.js +181 -0
- package/lib/form/FinalFormSelect.sc.d.ts +3 -0
- package/lib/form/FinalFormSelect.sc.d.ts.map +1 -0
- package/lib/form/FinalFormSelect.sc.js +28 -0
- package/lib/form/FinalFormToggleButtonGroup.d.ts +18 -0
- package/lib/form/FinalFormToggleButtonGroup.d.ts.map +1 -0
- package/lib/form/FinalFormToggleButtonGroup.js +99 -0
- package/lib/form/FormSection.d.ts +43 -0
- package/lib/form/FormSection.d.ts.map +1 -0
- package/lib/form/FormSection.js +78 -0
- package/lib/form/Radio.d.ts +10 -0
- package/lib/form/Radio.d.ts.map +1 -0
- package/lib/form/Radio.js +34 -0
- package/lib/form/Switch.d.ts +12 -0
- package/lib/form/Switch.d.ts.map +1 -0
- package/lib/form/Switch.js +32 -0
- package/lib/form/fields/AsyncAutocompleteField.d.ts +9 -0
- package/lib/form/fields/AsyncAutocompleteField.d.ts.map +1 -0
- package/lib/form/fields/AsyncAutocompleteField.js +14 -0
- package/lib/form/fields/AsyncSelectField.d.ts +5 -0
- package/lib/form/fields/AsyncSelectField.d.ts.map +1 -0
- package/lib/form/fields/AsyncSelectField.js +14 -0
- package/lib/form/fields/AutocompleteField.d.ts +5 -0
- package/lib/form/fields/AutocompleteField.d.ts.map +1 -0
- package/lib/form/fields/AutocompleteField.js +14 -0
- package/lib/form/fields/CheckboxField.d.ts +13 -0
- package/lib/form/fields/CheckboxField.d.ts.map +1 -0
- package/lib/form/fields/CheckboxField.js +33 -0
- package/lib/form/fields/CheckboxListField.d.ts +14 -0
- package/lib/form/fields/CheckboxListField.d.ts.map +1 -0
- package/lib/form/fields/CheckboxListField.js +66 -0
- package/lib/form/fields/NumberField.d.ts +5 -0
- package/lib/form/fields/NumberField.d.ts.map +1 -0
- package/lib/form/fields/NumberField.js +17 -0
- package/lib/form/fields/RadioGroupField.d.ts +14 -0
- package/lib/form/fields/RadioGroupField.d.ts.map +1 -0
- package/lib/form/fields/RadioGroupField.js +45 -0
- package/lib/form/fields/SearchField.d.ts +5 -0
- package/lib/form/fields/SearchField.d.ts.map +1 -0
- package/lib/form/fields/SearchField.js +17 -0
- package/lib/form/fields/SelectField.d.ts +22 -0
- package/lib/form/fields/SelectField.d.ts.map +1 -0
- package/lib/form/fields/SelectField.js +39 -0
- package/lib/form/fields/SwitchField.d.ts +15 -0
- package/lib/form/fields/SwitchField.d.ts.map +1 -0
- package/lib/form/fields/SwitchField.js +33 -0
- package/lib/form/fields/TextAreaField.d.ts +5 -0
- package/lib/form/fields/TextAreaField.d.ts.map +1 -0
- package/lib/form/fields/TextAreaField.js +20 -0
- package/lib/form/fields/TextField.d.ts +5 -0
- package/lib/form/fields/TextField.d.ts.map +1 -0
- package/lib/form/fields/TextField.js +14 -0
- package/lib/form/fields/ToggleButtonGroupField.d.ts +11 -0
- package/lib/form/fields/ToggleButtonGroupField.d.ts.map +1 -0
- package/lib/form/fields/ToggleButtonGroupField.js +33 -0
- package/lib/form/file/FileDropzone.d.ts +39 -0
- package/lib/form/file/FileDropzone.d.ts.map +1 -0
- package/lib/form/file/FileDropzone.js +170 -0
- package/lib/form/file/FileSelect.d.ts +55 -0
- package/lib/form/file/FileSelect.d.ts.map +1 -0
- package/lib/form/file/FileSelect.js +169 -0
- package/lib/form/file/FileSelectListItem.d.ts +49 -0
- package/lib/form/file/FileSelectListItem.d.ts.map +1 -0
- package/lib/form/file/FileSelectListItem.js +240 -0
- package/lib/form/file/commonErrorMessages.d.ts +6 -0
- package/lib/form/file/commonErrorMessages.d.ts.map +1 -0
- package/lib/form/file/commonErrorMessages.js +21 -0
- package/lib/form/file/fileSelectItemTypes.d.ts +16 -0
- package/lib/form/file/fileSelectItemTypes.d.ts.map +1 -0
- package/lib/form/file/fileSelectItemTypes.js +1 -0
- package/lib/form/helpers/OnChangeField.d.ts +7 -0
- package/lib/form/helpers/OnChangeField.d.ts.map +1 -0
- package/lib/form/helpers/OnChangeField.js +18 -0
- package/lib/form/useAsyncAutocompleteOptionsProps.d.ts +18 -0
- package/lib/form/useAsyncAutocompleteOptionsProps.d.ts.map +1 -0
- package/lib/form/useAsyncAutocompleteOptionsProps.js +139 -0
- package/lib/fullPageAlert/FullPageAlert.d.ts +47 -0
- package/lib/fullPageAlert/FullPageAlert.d.ts.map +1 -0
- package/lib/fullPageAlert/FullPageAlert.js +139 -0
- package/lib/fullPageAlert/FullPageAlert.styles.d.ts +73 -0
- package/lib/fullPageAlert/FullPageAlert.styles.d.ts.map +1 -0
- package/lib/fullPageAlert/FullPageAlert.styles.js +47 -0
- package/lib/fullPageAlert/FullPageAlertBackground.d.ts +7 -0
- package/lib/fullPageAlert/FullPageAlertBackground.d.ts.map +1 -0
- package/lib/fullPageAlert/FullPageAlertBackground.js +201 -0
- package/lib/helpers/PrettyBytes.d.ts +10 -0
- package/lib/helpers/PrettyBytes.d.ts.map +1 -0
- package/lib/helpers/PrettyBytes.js +40 -0
- package/lib/helpers/ThemedComponentBaseProps.d.ts +13 -0
- package/lib/helpers/ThemedComponentBaseProps.d.ts.map +1 -0
- package/lib/helpers/ThemedComponentBaseProps.js +1 -0
- package/lib/helpers/createComponentSlot.d.ts +23 -0
- package/lib/helpers/createComponentSlot.d.ts.map +1 -0
- package/lib/helpers/createComponentSlot.js +66 -0
- package/lib/helpers/downloadFile.d.ts +7 -0
- package/lib/helpers/downloadFile.d.ts.map +1 -0
- package/lib/helpers/downloadFile.js +22 -0
- package/lib/helpers/useTopOffset.d.ts +3 -0
- package/lib/helpers/useTopOffset.d.ts.map +1 -0
- package/lib/helpers/useTopOffset.js +26 -0
- package/lib/helpers/useWindowSize.d.ts +6 -0
- package/lib/helpers/useWindowSize.d.ts.map +1 -0
- package/lib/helpers/useWindowSize.js +29 -0
- package/lib/hooks/useAsyncOptionsProps.d.ts +12 -0
- package/lib/hooks/useAsyncOptionsProps.d.ts.map +1 -0
- package/lib/hooks/useAsyncOptionsProps.js +74 -0
- package/lib/hooks/useElementIsOverflowing.d.ts +3 -0
- package/lib/hooks/useElementIsOverflowing.d.ts.map +1 -0
- package/lib/hooks/useElementIsOverflowing.js +41 -0
- package/lib/hooks/useStoredState.d.ts +7 -0
- package/lib/hooks/useStoredState.d.ts.map +1 -0
- package/lib/hooks/useStoredState.js +49 -0
- package/lib/index.d.ts +249 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +230 -0
- package/lib/inlineAlert/InlineAlert.d.ts +70 -0
- package/lib/inlineAlert/InlineAlert.d.ts.map +1 -0
- package/lib/inlineAlert/InlineAlert.js +102 -0
- package/lib/inlineAlert/InlineAlert.sc.d.ts +31 -0
- package/lib/inlineAlert/InlineAlert.sc.d.ts.map +1 -0
- package/lib/inlineAlert/InlineAlert.sc.js +34 -0
- package/lib/inputWithPopper/InputWithPopper.d.ts +28 -0
- package/lib/inputWithPopper/InputWithPopper.d.ts.map +1 -0
- package/lib/inputWithPopper/InputWithPopper.js +136 -0
- package/lib/inputWithPopper/InputWithPopper.slots.d.ts +26 -0
- package/lib/inputWithPopper/InputWithPopper.slots.d.ts.map +1 -0
- package/lib/inputWithPopper/InputWithPopper.slots.js +24 -0
- package/lib/messages.d.ts +192 -0
- package/lib/messages.d.ts.map +1 -0
- package/lib/messages.js +192 -0
- package/lib/mui/MasterLayout.d.ts +36 -0
- package/lib/mui/MasterLayout.d.ts.map +1 -0
- package/lib/mui/MasterLayout.js +131 -0
- package/lib/mui/MasterLayoutContext.d.ts +6 -0
- package/lib/mui/MasterLayoutContext.d.ts.map +1 -0
- package/lib/mui/MasterLayoutContext.js +4 -0
- package/lib/mui/ThemeProvider.d.ts +8 -0
- package/lib/mui/ThemeProvider.d.ts.map +1 -0
- package/lib/mui/ThemeProvider.js +24 -0
- package/lib/mui/mainNavigation/CollapsibleItem.d.ts +39 -0
- package/lib/mui/mainNavigation/CollapsibleItem.d.ts.map +1 -0
- package/lib/mui/mainNavigation/CollapsibleItem.js +230 -0
- package/lib/mui/mainNavigation/CollapsibleItem.styles.d.ts +36 -0
- package/lib/mui/mainNavigation/CollapsibleItem.styles.d.ts.map +1 -0
- package/lib/mui/mainNavigation/CollapsibleItem.styles.js +40 -0
- package/lib/mui/mainNavigation/Context.d.ts +17 -0
- package/lib/mui/mainNavigation/Context.d.ts.map +1 -0
- package/lib/mui/mainNavigation/Context.js +43 -0
- package/lib/mui/mainNavigation/Item.d.ts +37 -0
- package/lib/mui/mainNavigation/Item.d.ts.map +1 -0
- package/lib/mui/mainNavigation/Item.js +76 -0
- package/lib/mui/mainNavigation/Item.styles.d.ts +32 -0
- package/lib/mui/mainNavigation/Item.styles.d.ts.map +1 -0
- package/lib/mui/mainNavigation/Item.styles.js +25 -0
- package/lib/mui/mainNavigation/ItemAnchorLink.d.ts +6 -0
- package/lib/mui/mainNavigation/ItemAnchorLink.d.ts.map +1 -0
- package/lib/mui/mainNavigation/ItemAnchorLink.js +42 -0
- package/lib/mui/mainNavigation/ItemGroup.d.ts +34 -0
- package/lib/mui/mainNavigation/ItemGroup.d.ts.map +1 -0
- package/lib/mui/mainNavigation/ItemGroup.js +131 -0
- package/lib/mui/mainNavigation/ItemRouterLink.d.ts +16 -0
- package/lib/mui/mainNavigation/ItemRouterLink.d.ts.map +1 -0
- package/lib/mui/mainNavigation/ItemRouterLink.js +49 -0
- package/lib/mui/mainNavigation/MainNavigation.d.ts +31 -0
- package/lib/mui/mainNavigation/MainNavigation.d.ts.map +1 -0
- package/lib/mui/mainNavigation/MainNavigation.js +120 -0
- package/lib/mui/mainNavigation/MainNavigation.styles.d.ts +21 -0
- package/lib/mui/mainNavigation/MainNavigation.styles.d.ts.map +1 -0
- package/lib/mui/mainNavigation/MainNavigation.styles.js +39 -0
- package/lib/mui/mui-private-theming.d.js +0 -0
- package/lib/renderFinalFormChildren.d.ts +4 -0
- package/lib/renderFinalFormChildren.d.ts.map +1 -0
- package/lib/renderFinalFormChildren.js +30 -0
- package/lib/router/BrowserRouter.d.ts +3 -0
- package/lib/router/BrowserRouter.d.ts.map +1 -0
- package/lib/router/BrowserRouter.js +34 -0
- package/lib/router/ConfirmationDialog.d.ts +37 -0
- package/lib/router/ConfirmationDialog.d.ts.map +1 -0
- package/lib/router/ConfirmationDialog.js +120 -0
- package/lib/router/Context.d.ts +19 -0
- package/lib/router/Context.d.ts.map +1 -0
- package/lib/router/Context.js +2 -0
- package/lib/router/ForcePromptRoute.d.ts +3 -0
- package/lib/router/ForcePromptRoute.d.ts.map +1 -0
- package/lib/router/ForcePromptRoute.js +29 -0
- package/lib/router/MemoryRouter.d.ts +3 -0
- package/lib/router/MemoryRouter.d.ts.map +1 -0
- package/lib/router/MemoryRouter.js +34 -0
- package/lib/router/Prompt.d.ts +25 -0
- package/lib/router/Prompt.d.ts.map +1 -0
- package/lib/router/Prompt.js +67 -0
- package/lib/router/PromptHandler.d.ts +13 -0
- package/lib/router/PromptHandler.d.ts.map +1 -0
- package/lib/router/PromptHandler.js +181 -0
- package/lib/router/SubRoute.d.ts +11 -0
- package/lib/router/SubRoute.d.ts.map +1 -0
- package/lib/router/SubRoute.js +63 -0
- package/lib/rowActions/RowActionsIconItem.d.ts +14 -0
- package/lib/rowActions/RowActionsIconItem.d.ts.map +1 -0
- package/lib/rowActions/RowActionsIconItem.js +38 -0
- package/lib/rowActions/RowActionsItem.d.ts +16 -0
- package/lib/rowActions/RowActionsItem.d.ts.map +1 -0
- package/lib/rowActions/RowActionsItem.js +52 -0
- package/lib/rowActions/RowActionsListItem.d.ts +19 -0
- package/lib/rowActions/RowActionsListItem.d.ts.map +1 -0
- package/lib/rowActions/RowActionsListItem.js +51 -0
- package/lib/rowActions/RowActionsMenu.d.ts +13 -0
- package/lib/rowActions/RowActionsMenu.d.ts.map +1 -0
- package/lib/rowActions/RowActionsMenu.js +52 -0
- package/lib/rowActions/RowActionsSubMenu.d.ts +21 -0
- package/lib/rowActions/RowActionsSubMenu.d.ts.map +1 -0
- package/lib/rowActions/RowActionsSubMenu.js +68 -0
- package/lib/saveBoundary/SaveBoundary.d.ts +35 -0
- package/lib/saveBoundary/SaveBoundary.d.ts.map +1 -0
- package/lib/saveBoundary/SaveBoundary.js +175 -0
- package/lib/saveBoundary/SaveBoundarySaveButton.d.ts +3 -0
- package/lib/saveBoundary/SaveBoundarySaveButton.d.ts.map +1 -0
- package/lib/saveBoundary/SaveBoundarySaveButton.js +36 -0
- package/lib/section/SectionHeadline.d.ts +47 -0
- package/lib/section/SectionHeadline.d.ts.map +1 -0
- package/lib/section/SectionHeadline.js +108 -0
- package/lib/snackbar/SnackbarProvider.d.ts +12 -0
- package/lib/snackbar/SnackbarProvider.d.ts.map +1 -0
- package/lib/snackbar/SnackbarProvider.js +65 -0
- package/lib/snackbar/UndoSnackbar.d.ts +9 -0
- package/lib/snackbar/UndoSnackbar.d.ts.map +1 -0
- package/lib/snackbar/UndoSnackbar.js +43 -0
- package/lib/stack/Api.d.ts +27 -0
- package/lib/stack/Api.d.ts.map +1 -0
- package/lib/stack/Api.js +37 -0
- package/lib/stack/Breadcrumb.d.ts +20 -0
- package/lib/stack/Breadcrumb.d.ts.map +1 -0
- package/lib/stack/Breadcrumb.js +67 -0
- package/lib/stack/Page.d.ts +10 -0
- package/lib/stack/Page.d.ts.map +1 -0
- package/lib/stack/Page.js +27 -0
- package/lib/stack/Stack.d.ts +20 -0
- package/lib/stack/Stack.d.ts.map +1 -0
- package/lib/stack/Stack.js +179 -0
- package/lib/stack/StackLink.d.ts +11 -0
- package/lib/stack/StackLink.d.ts.map +1 -0
- package/lib/stack/StackLink.js +32 -0
- package/lib/stack/StackPageTitle.d.ts +14 -0
- package/lib/stack/StackPageTitle.d.ts.map +1 -0
- package/lib/stack/StackPageTitle.js +48 -0
- package/lib/stack/Switch.d.ts +20 -0
- package/lib/stack/Switch.d.ts.map +1 -0
- package/lib/stack/Switch.js +204 -0
- package/lib/stack/SwitchMeta.d.ts +18 -0
- package/lib/stack/SwitchMeta.d.ts.map +1 -0
- package/lib/stack/SwitchMeta.js +81 -0
- package/lib/stack/backbutton/StackBackButton.d.ts +20 -0
- package/lib/stack/backbutton/StackBackButton.d.ts.map +1 -0
- package/lib/stack/backbutton/StackBackButton.js +44 -0
- package/lib/stack/breadcrumbs/BreadcrumbLink.d.ts +3 -0
- package/lib/stack/breadcrumbs/BreadcrumbLink.d.ts.map +1 -0
- package/lib/stack/breadcrumbs/BreadcrumbLink.js +21 -0
- package/lib/stack/breadcrumbs/BreadcrumbsEntry.d.ts +11 -0
- package/lib/stack/breadcrumbs/BreadcrumbsEntry.d.ts.map +1 -0
- package/lib/stack/breadcrumbs/BreadcrumbsEntry.js +62 -0
- package/lib/stack/breadcrumbs/BreadcrumbsOverflow.d.ts +11 -0
- package/lib/stack/breadcrumbs/BreadcrumbsOverflow.d.ts.map +1 -0
- package/lib/stack/breadcrumbs/BreadcrumbsOverflow.js +75 -0
- package/lib/stack/breadcrumbs/StackBreadcrumbs.d.ts +42 -0
- package/lib/stack/breadcrumbs/StackBreadcrumbs.d.ts.map +1 -0
- package/lib/stack/breadcrumbs/StackBreadcrumbs.js +112 -0
- package/lib/stack/breadcrumbs/utils.d.ts +6 -0
- package/lib/stack/breadcrumbs/utils.d.ts.map +1 -0
- package/lib/stack/breadcrumbs/utils.js +86 -0
- package/lib/stack/useIsActiveStackSwitch.d.ts +2 -0
- package/lib/stack/useIsActiveStackSwitch.d.ts.map +1 -0
- package/lib/stack/useIsActiveStackSwitch.js +14 -0
- package/lib/table/AddButton.d.ts +14 -0
- package/lib/table/AddButton.d.ts.map +1 -0
- package/lib/table/AddButton.js +51 -0
- package/lib/table/DeleteButton.d.ts +20 -0
- package/lib/table/DeleteButton.d.ts.map +1 -0
- package/lib/table/DeleteButton.js +94 -0
- package/lib/table/ExcelExportButton.d.ts +13 -0
- package/lib/table/ExcelExportButton.d.ts.map +1 -0
- package/lib/table/ExcelExportButton.js +41 -0
- package/lib/table/LocalChangesToolbar.d.ts +13 -0
- package/lib/table/LocalChangesToolbar.d.ts.map +1 -0
- package/lib/table/LocalChangesToolbar.js +32 -0
- package/lib/table/Pagination.d.ts +12 -0
- package/lib/table/Pagination.d.ts.map +1 -0
- package/lib/table/Pagination.js +72 -0
- package/lib/table/Table.d.ts +108 -0
- package/lib/table/Table.d.ts.map +1 -0
- package/lib/table/Table.js +253 -0
- package/lib/table/TableBodyRow.d.ts +36 -0
- package/lib/table/TableBodyRow.d.ts.map +1 -0
- package/lib/table/TableBodyRow.js +52 -0
- package/lib/table/TableDndOrder.d.ts +36 -0
- package/lib/table/TableDndOrder.d.ts.map +1 -0
- package/lib/table/TableDndOrder.js +178 -0
- package/lib/table/TableFilterFinalForm.d.ts +19 -0
- package/lib/table/TableFilterFinalForm.d.ts.map +1 -0
- package/lib/table/TableFilterFinalForm.js +105 -0
- package/lib/table/TableLocalChanges.d.ts +62 -0
- package/lib/table/TableLocalChanges.d.ts.map +1 -0
- package/lib/table/TableLocalChanges.js +229 -0
- package/lib/table/TableQuery.d.ts +48 -0
- package/lib/table/TableQuery.d.ts.map +1 -0
- package/lib/table/TableQuery.js +92 -0
- package/lib/table/TableQueryContext.d.ts +24 -0
- package/lib/table/TableQueryContext.d.ts.map +1 -0
- package/lib/table/TableQueryContext.js +14 -0
- package/lib/table/excelexport/IExportApi.d.ts +11 -0
- package/lib/table/excelexport/IExportApi.d.ts.map +1 -0
- package/lib/table/excelexport/IExportApi.js +1 -0
- package/lib/table/excelexport/applyDefaultStyling.d.ts +3 -0
- package/lib/table/excelexport/applyDefaultStyling.d.ts.map +1 -0
- package/lib/table/excelexport/applyDefaultStyling.js +60 -0
- package/lib/table/excelexport/createExcelExportDownload.d.ts +15 -0
- package/lib/table/excelexport/createExcelExportDownload.d.ts.map +1 -0
- package/lib/table/excelexport/createExcelExportDownload.js +116 -0
- package/lib/table/excelexport/useExportDisplayedTableData.d.ts +7 -0
- package/lib/table/excelexport/useExportDisplayedTableData.d.ts.map +1 -0
- package/lib/table/excelexport/useExportDisplayedTableData.js +62 -0
- package/lib/table/excelexport/useExportPagedTableQuery.d.ts +15 -0
- package/lib/table/excelexport/useExportPagedTableQuery.d.ts.map +1 -0
- package/lib/table/excelexport/useExportPagedTableQuery.js +111 -0
- package/lib/table/excelexport/useExportTableQuery.d.ts +9 -0
- package/lib/table/excelexport/useExportTableQuery.d.ts.map +1 -0
- package/lib/table/excelexport/useExportTableQuery.js +84 -0
- package/lib/table/filterbar/FilterBar.d.ts +35 -0
- package/lib/table/filterbar/FilterBar.d.ts.map +1 -0
- package/lib/table/filterbar/FilterBar.js +48 -0
- package/lib/table/filterbar/dirtyFieldsCount.d.ts +2 -0
- package/lib/table/filterbar/dirtyFieldsCount.d.ts.map +1 -0
- package/lib/table/filterbar/dirtyFieldsCount.js +42 -0
- package/lib/table/filterbar/filterBarActiveFilterBadge/FilterBarActiveFilterBadge.d.ts +34 -0
- package/lib/table/filterbar/filterBarActiveFilterBadge/FilterBarActiveFilterBadge.d.ts.map +1 -0
- package/lib/table/filterbar/filterBarActiveFilterBadge/FilterBarActiveFilterBadge.js +54 -0
- package/lib/table/filterbar/filterBarButton/FilterBarButton.d.ts +39 -0
- package/lib/table/filterbar/filterBarButton/FilterBarButton.d.ts.map +1 -0
- package/lib/table/filterbar/filterBarButton/FilterBarButton.js +78 -0
- package/lib/table/filterbar/filterBarMoreFilters/FilterBarMoreFilters.d.ts +37 -0
- package/lib/table/filterbar/filterBarMoreFilters/FilterBarMoreFilters.d.ts.map +1 -0
- package/lib/table/filterbar/filterBarMoreFilters/FilterBarMoreFilters.js +80 -0
- package/lib/table/filterbar/filterBarPopoverFilter/FilterBarPopoverFilter.d.ts +53 -0
- package/lib/table/filterbar/filterBarPopoverFilter/FilterBarPopoverFilter.d.ts.map +1 -0
- package/lib/table/filterbar/filterBarPopoverFilter/FilterBarPopoverFilter.js +174 -0
- package/lib/table/isVisible.d.ts +3 -0
- package/lib/table/isVisible.d.ts.map +1 -0
- package/lib/table/isVisible.js +10 -0
- package/lib/table/paging/IPagingInfo.d.ts +12 -0
- package/lib/table/paging/IPagingInfo.d.ts.map +1 -0
- package/lib/table/paging/IPagingInfo.js +1 -0
- package/lib/table/paging/createOffsetLimitPagingAction.d.ts +11 -0
- package/lib/table/paging/createOffsetLimitPagingAction.d.ts.map +1 -0
- package/lib/table/paging/createOffsetLimitPagingAction.js +32 -0
- package/lib/table/paging/createPagePagingActions.d.ts +13 -0
- package/lib/table/paging/createPagePagingActions.d.ts.map +1 -0
- package/lib/table/paging/createPagePagingActions.js +18 -0
- package/lib/table/paging/createRelayPagingActions.d.ts +20 -0
- package/lib/table/paging/createRelayPagingActions.d.ts.map +1 -0
- package/lib/table/paging/createRelayPagingActions.js +19 -0
- package/lib/table/paging/createRestPagingActions.d.ts +16 -0
- package/lib/table/paging/createRestPagingActions.d.ts.map +1 -0
- package/lib/table/paging/createRestPagingActions.js +26 -0
- package/lib/table/paging/createRestStartLimitPagingActions.d.ts +12 -0
- package/lib/table/paging/createRestStartLimitPagingActions.d.ts.map +1 -0
- package/lib/table/paging/createRestStartLimitPagingActions.js +22 -0
- package/lib/table/safeColumnGet.d.ts +2 -0
- package/lib/table/safeColumnGet.d.ts.map +1 -0
- package/lib/table/safeColumnGet.js +13 -0
- package/lib/table/usePersistedState.d.ts +10 -0
- package/lib/table/usePersistedState.d.ts.map +1 -0
- package/lib/table/usePersistedState.js +33 -0
- package/lib/table/usePersistedStateId.d.ts +5 -0
- package/lib/table/usePersistedStateId.d.ts.map +1 -0
- package/lib/table/usePersistedStateId.js +12 -0
- package/lib/table/useTableQuery.d.ts +35 -0
- package/lib/table/useTableQuery.d.ts.map +1 -0
- package/lib/table/useTableQuery.js +82 -0
- package/lib/table/useTableQueryFilter.d.ts +17 -0
- package/lib/table/useTableQueryFilter.d.ts.map +1 -0
- package/lib/table/useTableQueryFilter.js +63 -0
- package/lib/table/useTableQueryPaging.d.ts +24 -0
- package/lib/table/useTableQueryPaging.d.ts.map +1 -0
- package/lib/table/useTableQueryPaging.js +54 -0
- package/lib/table/useTableQuerySort.d.ts +28 -0
- package/lib/table/useTableQuerySort.d.ts.map +1 -0
- package/lib/table/useTableQuerySort.js +50 -0
- package/lib/table/withTableQueryContext.d.ts +16 -0
- package/lib/table/withTableQueryContext.d.ts.map +1 -0
- package/lib/table/withTableQueryContext.js +37 -0
- package/lib/tabs/RouterTabs.d.ts +36 -0
- package/lib/tabs/RouterTabs.d.ts.map +1 -0
- package/lib/tabs/RouterTabs.js +160 -0
- package/lib/tabs/TabScrollButton.d.ts +23 -0
- package/lib/tabs/TabScrollButton.d.ts.map +1 -0
- package/lib/tabs/TabScrollButton.js +48 -0
- package/lib/tabs/Tabs.d.ts +50 -0
- package/lib/tabs/Tabs.d.ts.map +1 -0
- package/lib/tabs/Tabs.js +113 -0
- package/lib/theme/breakpointsOptions.d.ts +6 -0
- package/lib/theme/breakpointsOptions.d.ts.map +1 -0
- package/lib/theme/breakpointsOptions.js +10 -0
- package/lib/theme/colors.d.ts +16 -0
- package/lib/theme/colors.d.ts.map +1 -0
- package/lib/theme/colors.js +56 -0
- package/lib/theme/componentsTheme/MuiAccordion.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiAccordion.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiAccordion.js +38 -0
- package/lib/theme/componentsTheme/MuiAlert.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiAlert.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiAlert.js +62 -0
- package/lib/theme/componentsTheme/MuiAlertTitle.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiAlertTitle.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiAlertTitle.js +18 -0
- package/lib/theme/componentsTheme/MuiAppBar.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiAppBar.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiAppBar.js +13 -0
- package/lib/theme/componentsTheme/MuiAutocomplete.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiAutocomplete.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiAutocomplete.js +43 -0
- package/lib/theme/componentsTheme/MuiBadge.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiBadge.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiBadge.js +31 -0
- package/lib/theme/componentsTheme/MuiButton.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiButton.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiButton.js +164 -0
- package/lib/theme/componentsTheme/MuiButtonGroup.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiButtonGroup.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiButtonGroup.js +62 -0
- package/lib/theme/componentsTheme/MuiCard.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiCard.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiCard.js +21 -0
- package/lib/theme/componentsTheme/MuiCardContent.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiCardContent.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiCardContent.js +20 -0
- package/lib/theme/componentsTheme/MuiCardHeader.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiCardHeader.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiCardHeader.js +34 -0
- package/lib/theme/componentsTheme/MuiCheckbox.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiCheckbox.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiCheckbox.js +65 -0
- package/lib/theme/componentsTheme/MuiChip.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiChip.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiChip.js +121 -0
- package/lib/theme/componentsTheme/MuiDataGrid.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDataGrid.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDataGrid.js +330 -0
- package/lib/theme/componentsTheme/MuiDialog.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDialog.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDialog.js +45 -0
- package/lib/theme/componentsTheme/MuiDialogActions.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDialogActions.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDialogActions.js +25 -0
- package/lib/theme/componentsTheme/MuiDialogContent.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDialogContent.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDialogContent.js +27 -0
- package/lib/theme/componentsTheme/MuiDialogContentText.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDialogContentText.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDialogContentText.js +18 -0
- package/lib/theme/componentsTheme/MuiDialogTitle.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDialogTitle.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDialogTitle.js +33 -0
- package/lib/theme/componentsTheme/MuiDrawer.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiDrawer.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiDrawer.js +18 -0
- package/lib/theme/componentsTheme/MuiFormControlLabel.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiFormControlLabel.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiFormControlLabel.js +19 -0
- package/lib/theme/componentsTheme/MuiFormHelperText.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiFormHelperText.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiFormHelperText.js +25 -0
- package/lib/theme/componentsTheme/MuiFormLabel.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiFormLabel.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiFormLabel.js +32 -0
- package/lib/theme/componentsTheme/MuiIconButton.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiIconButton.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiIconButton.js +41 -0
- package/lib/theme/componentsTheme/MuiInput.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiInput.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiInput.js +13 -0
- package/lib/theme/componentsTheme/MuiInputAdornment.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiInputAdornment.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiInputAdornment.js +24 -0
- package/lib/theme/componentsTheme/MuiInputBase.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiInputBase.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiInputBase.js +57 -0
- package/lib/theme/componentsTheme/MuiLinearProgress.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiLinearProgress.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiLinearProgress.js +20 -0
- package/lib/theme/componentsTheme/MuiLink.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiLink.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiLink.js +24 -0
- package/lib/theme/componentsTheme/MuiList.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiList.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiList.js +20 -0
- package/lib/theme/componentsTheme/MuiListItem.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiListItem.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiListItem.js +16 -0
- package/lib/theme/componentsTheme/MuiListItemAvatar.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiListItemAvatar.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiListItemAvatar.js +17 -0
- package/lib/theme/componentsTheme/MuiListItemButton.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiListItemButton.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiListItemButton.js +15 -0
- package/lib/theme/componentsTheme/MuiListItemIcon.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiListItemIcon.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiListItemIcon.js +18 -0
- package/lib/theme/componentsTheme/MuiListItemText.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiListItemText.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiListItemText.js +29 -0
- package/lib/theme/componentsTheme/MuiMenu.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiMenu.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiMenu.js +18 -0
- package/lib/theme/componentsTheme/MuiMenuItem.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiMenuItem.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiMenuItem.js +23 -0
- package/lib/theme/componentsTheme/MuiNativeSelect.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiNativeSelect.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiNativeSelect.js +21 -0
- package/lib/theme/componentsTheme/MuiPaper.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiPaper.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiPaper.js +23 -0
- package/lib/theme/componentsTheme/MuiPickerPopper.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiPickerPopper.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiPickerPopper.js +16 -0
- package/lib/theme/componentsTheme/MuiPickersInputBase.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiPickersInputBase.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiPickersInputBase.js +66 -0
- package/lib/theme/componentsTheme/MuiPickersTextField.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiPickersTextField.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiPickersTextField.js +13 -0
- package/lib/theme/componentsTheme/MuiPopover.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiPopover.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiPopover.js +13 -0
- package/lib/theme/componentsTheme/MuiRadio.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiRadio.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiRadio.js +53 -0
- package/lib/theme/componentsTheme/MuiSelect.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiSelect.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiSelect.js +22 -0
- package/lib/theme/componentsTheme/MuiSvgIcon.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiSvgIcon.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiSvgIcon.js +27 -0
- package/lib/theme/componentsTheme/MuiSwitch.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiSwitch.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiSwitch.js +76 -0
- package/lib/theme/componentsTheme/MuiTab.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTab.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTab.js +33 -0
- package/lib/theme/componentsTheme/MuiTableCell.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTableCell.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTableCell.js +46 -0
- package/lib/theme/componentsTheme/MuiTableFooter.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTableFooter.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTableFooter.js +18 -0
- package/lib/theme/componentsTheme/MuiTablePagination.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTablePagination.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTablePagination.js +20 -0
- package/lib/theme/componentsTheme/MuiTableRow.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTableRow.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTableRow.js +16 -0
- package/lib/theme/componentsTheme/MuiTabs.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTabs.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTabs.js +35 -0
- package/lib/theme/componentsTheme/MuiToggleButton.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiToggleButton.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiToggleButton.js +22 -0
- package/lib/theme/componentsTheme/MuiToggleButtonGroup.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiToggleButtonGroup.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiToggleButtonGroup.js +18 -0
- package/lib/theme/componentsTheme/MuiTooltip.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTooltip.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTooltip.js +13 -0
- package/lib/theme/componentsTheme/MuiTypography.d.ts +3 -0
- package/lib/theme/componentsTheme/MuiTypography.d.ts.map +1 -0
- package/lib/theme/componentsTheme/MuiTypography.js +23 -0
- package/lib/theme/componentsTheme/commonListStyles.d.ts +7 -0
- package/lib/theme/componentsTheme/commonListStyles.d.ts.map +1 -0
- package/lib/theme/componentsTheme/commonListStyles.js +6 -0
- package/lib/theme/componentsTheme/getCommonSelectTheme.d.ts +39 -0
- package/lib/theme/componentsTheme/getCommonSelectTheme.d.ts.map +1 -0
- package/lib/theme/componentsTheme/getCommonSelectTheme.js +30 -0
- package/lib/theme/componentsTheme/getComponentsTheme.d.ts +5 -0
- package/lib/theme/componentsTheme/getComponentsTheme.d.ts.map +1 -0
- package/lib/theme/componentsTheme/getComponentsTheme.js +124 -0
- package/lib/theme/createCometTheme.d.ts +3 -0
- package/lib/theme/createCometTheme.d.ts.map +1 -0
- package/lib/theme/createCometTheme.js +67 -0
- package/lib/theme/paletteOptions.d.ts +23 -0
- package/lib/theme/paletteOptions.d.ts.map +1 -0
- package/lib/theme/paletteOptions.js +30 -0
- package/lib/theme/shadows.d.ts +3 -0
- package/lib/theme/shadows.d.ts.map +1 -0
- package/lib/theme/shadows.js +1 -0
- package/lib/theme/typographyOptions.d.ts +21 -0
- package/lib/theme/typographyOptions.d.ts.map +1 -0
- package/lib/theme/typographyOptions.js +127 -0
- package/lib/theme/utils/mergeOverrideStyles.d.ts +11 -0
- package/lib/theme/utils/mergeOverrideStyles.d.ts.map +1 -0
- package/lib/theme/utils/mergeOverrideStyles.js +35 -0
- package/lib/translator/BaseTranslationDialog.d.ts +13 -0
- package/lib/translator/BaseTranslationDialog.d.ts.map +1 -0
- package/lib/translator/BaseTranslationDialog.js +90 -0
- package/lib/translator/ContentTranslationServiceContext.d.ts +8 -0
- package/lib/translator/ContentTranslationServiceContext.d.ts.map +1 -0
- package/lib/translator/ContentTranslationServiceContext.js +7 -0
- package/lib/translator/ContentTranslationServiceProvider.d.ts +4 -0
- package/lib/translator/ContentTranslationServiceProvider.d.ts.map +1 -0
- package/lib/translator/ContentTranslationServiceProvider.js +18 -0
- package/lib/translator/PlainTextTranslationDialog.d.ts +11 -0
- package/lib/translator/PlainTextTranslationDialog.d.ts.map +1 -0
- package/lib/translator/PlainTextTranslationDialog.js +38 -0
- package/lib/translator/useContentTranslationService.d.ts +3 -0
- package/lib/translator/useContentTranslationService.d.ts.map +1 -0
- package/lib/translator/useContentTranslationService.js +5 -0
- package/lib/utils/test-utils.d.ts +6 -0
- package/lib/utils/test-utils.d.ts.map +1 -0
- package/lib/utils/test-utils.js +42 -0
- package/lib/utils/useObservedWidth.d.ts +3 -0
- package/lib/utils/useObservedWidth.d.ts.map +1 -0
- package/lib/utils/useObservedWidth.js +37 -0
- package/lib/vendor.d.js +0 -0
- package/package.json +158 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["onUndoClick", "payload"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { Slide, Snackbar } from "@mui/material";
|
|
11
|
+
import { FormattedMessage } from "react-intl";
|
|
12
|
+
import { Button } from "../common/buttons/Button";
|
|
13
|
+
import { messages } from "../messages";
|
|
14
|
+
import { useSnackbarApi } from "./SnackbarProvider";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
export var UndoSnackbar = function UndoSnackbar(_ref) {
|
|
17
|
+
var onUndoClick = _ref.onUndoClick,
|
|
18
|
+
payload = _ref.payload,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
var snackbarApi = useSnackbarApi();
|
|
21
|
+
var onClick = function onClick() {
|
|
22
|
+
snackbarApi.hideSnackbar();
|
|
23
|
+
onUndoClick(payload);
|
|
24
|
+
};
|
|
25
|
+
return /*#__PURE__*/_jsx(Snackbar, _objectSpread({
|
|
26
|
+
anchorOrigin: {
|
|
27
|
+
vertical: "bottom",
|
|
28
|
+
horizontal: "left"
|
|
29
|
+
},
|
|
30
|
+
autoHideDuration: 5000,
|
|
31
|
+
action: /*#__PURE__*/_jsx(Button, {
|
|
32
|
+
variant: "textLight",
|
|
33
|
+
size: "small",
|
|
34
|
+
onClick: onClick,
|
|
35
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, _objectSpread({}, messages.undo))
|
|
36
|
+
}),
|
|
37
|
+
TransitionComponent: function TransitionComponent(props) {
|
|
38
|
+
return /*#__PURE__*/_jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
39
|
+
direction: "right"
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
}, props));
|
|
43
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ComponentType, type FC, type ReactNode } from "react";
|
|
2
|
+
import type { BreadcrumbItem, SwitchItem } from "./Stack";
|
|
3
|
+
export interface IStackApi {
|
|
4
|
+
addBreadcrumb: (id: string, parentId: string, url: string, title: ReactNode) => void;
|
|
5
|
+
updateBreadcrumb: (id: string, parentId: string, url: string, title: ReactNode) => void;
|
|
6
|
+
removeBreadcrumb: (id: string) => void;
|
|
7
|
+
goBack: () => void;
|
|
8
|
+
goAllBack: () => void;
|
|
9
|
+
addSwitchMeta: (id: string, options: {
|
|
10
|
+
parentId: string;
|
|
11
|
+
activePage: string;
|
|
12
|
+
isInitialPageActive: boolean;
|
|
13
|
+
}) => void;
|
|
14
|
+
removeSwitchMeta: (id: string) => void;
|
|
15
|
+
switches: SwitchItem[];
|
|
16
|
+
breadCrumbs: BreadcrumbItem[];
|
|
17
|
+
}
|
|
18
|
+
export declare const StackApiContext: import("react").Context<IStackApi | undefined>;
|
|
19
|
+
export declare function useStackApi(): IStackApi | undefined;
|
|
20
|
+
export interface IWithApiProps {
|
|
21
|
+
stackApi?: IStackApi;
|
|
22
|
+
}
|
|
23
|
+
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
24
|
+
type Subtract<T, K> = Omit<T, keyof K>;
|
|
25
|
+
export declare const withStackApi: <P extends IWithApiProps>(WrappedComponent: ComponentType<P>) => FC<Subtract<P, IWithApiProps>>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=Api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Api.d.ts","sourceRoot":"","sources":["../../src/stack/Api.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiB,KAAK,EAAE,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAE/F,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,WAAW,SAAS;IACtB,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrF,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACxF,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,mBAAmB,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACrH,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,cAAc,EAAE,CAAC;CACjC;AACD,eAAO,MAAM,eAAe,gDAAkD,CAAC;AAC/E,wBAAgB,WAAW,0BAE1B;AAaD,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAGvC,eAAO,MAAM,YAAY,GACpB,CAAC,SAAS,aAAa,EAAE,kBAAkB,aAAa,CAAC,CAAC,CAAC,KAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,aAAa,CAAC,CAC4C,CAAC"}
|
package/lib/stack/Api.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { createContext, useContext } from "react";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export var StackApiContext = /*#__PURE__*/createContext(undefined);
|
|
10
|
+
export function useStackApi() {
|
|
11
|
+
return useContext(StackApiContext);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
export function withStackApi(WrappedComponent: ComponentClass) {
|
|
16
|
+
return forwardRef((props, ref) => {
|
|
17
|
+
return (
|
|
18
|
+
<StackApiContext.Consumer>
|
|
19
|
+
{stackApi => <WrappedComponent {...props} stackApi={stackApi} ref={ref} />}
|
|
20
|
+
</StackApiContext.Consumer>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
// TODO implement ref forwarding with typescript
|
|
27
|
+
export var withStackApi = function withStackApi(WrappedComponent) {
|
|
28
|
+
return function (props) {
|
|
29
|
+
return /*#__PURE__*/_jsx(StackApiContext.Consumer, {
|
|
30
|
+
children: function children(stackApi) {
|
|
31
|
+
return /*#__PURE__*/_jsx(WrappedComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
32
|
+
stackApi: stackApi
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, type ContextType, type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
import { StackApiContext } from "./Api";
|
|
3
|
+
type IProps = PropsWithChildren<{
|
|
4
|
+
url: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
ignoreParentId?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export declare class StackBreadcrumb extends Component<IProps> {
|
|
9
|
+
static contextType: import("react").Context<import("./Api").IStackApi | undefined>;
|
|
10
|
+
context: ContextType<typeof StackApiContext>;
|
|
11
|
+
id: string;
|
|
12
|
+
private parentId;
|
|
13
|
+
constructor(props: IProps);
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
17
|
+
componentWillUnmount(): void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../src/stack/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,WAAW,EAAiB,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3G,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAExC,KAAK,MAAM,GAAG,iBAAiB,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAC;AAIH,qBAAa,eAAgB,SAAQ,SAAS,CAAC,MAAM,CAAC;IAClD,OAAc,WAAW,iEAAmB;IACpC,OAAO,EAAE,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;IAE9C,EAAE,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,QAAQ,CAAS;gBACb,KAAK,EAAE,MAAM;IAIlB,MAAM;IAWN,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAMpC,oBAAoB;CAG9B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
11
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
+
import { Component, createContext } from "react";
|
|
16
|
+
import { v4 as uuid } from "uuid";
|
|
17
|
+
import { StackApiContext } from "./Api";
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
var BreadcrumbContext = /*#__PURE__*/createContext("");
|
|
20
|
+
export var StackBreadcrumb = /*#__PURE__*/function (_Component) {
|
|
21
|
+
function StackBreadcrumb(props) {
|
|
22
|
+
var _this;
|
|
23
|
+
_classCallCheck(this, StackBreadcrumb);
|
|
24
|
+
_this = _callSuper(this, StackBreadcrumb, [props]);
|
|
25
|
+
_defineProperty(_this, "id", void 0);
|
|
26
|
+
_defineProperty(_this, "parentId", void 0);
|
|
27
|
+
_this.id = uuid();
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
_inherits(StackBreadcrumb, _Component);
|
|
31
|
+
return _createClass(StackBreadcrumb, [{
|
|
32
|
+
key: "render",
|
|
33
|
+
value: function render() {
|
|
34
|
+
var _this2 = this;
|
|
35
|
+
return /*#__PURE__*/_jsx(BreadcrumbContext.Consumer, {
|
|
36
|
+
children: function children(parentId) {
|
|
37
|
+
_this2.parentId = !_this2.props.ignoreParentId ? parentId : "";
|
|
38
|
+
return /*#__PURE__*/_jsx(BreadcrumbContext.Provider, {
|
|
39
|
+
value: _this2.id,
|
|
40
|
+
children: _this2.props.children
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
key: "componentDidMount",
|
|
47
|
+
value: function componentDidMount() {
|
|
48
|
+
var _this$context;
|
|
49
|
+
(_this$context = this.context) === null || _this$context === void 0 || _this$context.addBreadcrumb(this.id, this.parentId, this.props.url, this.props.title);
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "componentDidUpdate",
|
|
53
|
+
value: function componentDidUpdate(prevProps) {
|
|
54
|
+
if (this.props.url !== prevProps.url || this.props.title !== prevProps.title) {
|
|
55
|
+
var _this$context2;
|
|
56
|
+
(_this$context2 = this.context) === null || _this$context2 === void 0 || _this$context2.updateBreadcrumb(this.id, this.parentId, this.props.url, this.props.title);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "componentWillUnmount",
|
|
61
|
+
value: function componentWillUnmount() {
|
|
62
|
+
var _this$context3;
|
|
63
|
+
(_this$context3 = this.context) === null || _this$context3 === void 0 || _this$context3.removeBreadcrumb(this.id);
|
|
64
|
+
}
|
|
65
|
+
}]);
|
|
66
|
+
}(Component);
|
|
67
|
+
_defineProperty(StackBreadcrumb, "contextType", StackApiContext);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component, type ReactNode } from "react";
|
|
2
|
+
export interface IStackPageProps {
|
|
3
|
+
name: string;
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
children: ((id: string) => ReactNode) | ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare class StackPage extends Component<IStackPageProps> {
|
|
8
|
+
render(): ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../src/stack/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC;CACrD;AAED,qBAAa,SAAU,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC9C,MAAM,IAAI,SAAS;CAG7B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
13
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
|
+
import { Component } from "react";
|
|
15
|
+
export var StackPage = /*#__PURE__*/function (_Component) {
|
|
16
|
+
function StackPage() {
|
|
17
|
+
_classCallCheck(this, StackPage);
|
|
18
|
+
return _callSuper(this, StackPage, arguments);
|
|
19
|
+
}
|
|
20
|
+
_inherits(StackPage, _Component);
|
|
21
|
+
return _createClass(StackPage, [{
|
|
22
|
+
key: "render",
|
|
23
|
+
value: function render() {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}]);
|
|
27
|
+
}(Component);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
interface StackProps {
|
|
3
|
+
topLevelTitle: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface BreadcrumbItem {
|
|
6
|
+
id: string;
|
|
7
|
+
parentId: string;
|
|
8
|
+
url: string;
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
locationUrl?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SwitchItem {
|
|
13
|
+
id: string;
|
|
14
|
+
parentId: string;
|
|
15
|
+
isInitialPageActive: boolean;
|
|
16
|
+
activePage?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Stack: (props: PropsWithChildren<StackProps>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../src/stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAC;AAmDjG,UAAU,UAAU;IAChB,aAAa,EAAE,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,KAAK,GAAI,OAAO,iBAAiB,CAAC,UAAU,CAAC,4CAsHzD,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
|
+
import { useCallback, useEffect, useState } from "react";
|
|
18
|
+
import { Route, useHistory, useLocation } from "react-router";
|
|
19
|
+
import { StackApiContext } from "./Api";
|
|
20
|
+
import { StackBreadcrumb } from "./Breadcrumb";
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
var sortByParentId = function sortByParentId(nodes) {
|
|
23
|
+
// first build a tree structure
|
|
24
|
+
var _addChildrenToNode = function addChildrenToNode(node) {
|
|
25
|
+
var currentNodeId = node ? node.id : "";
|
|
26
|
+
var sortTreeNode = {
|
|
27
|
+
node: node,
|
|
28
|
+
children: []
|
|
29
|
+
};
|
|
30
|
+
nodes.forEach(function (e) {
|
|
31
|
+
if (e.parentId === currentNodeId) {
|
|
32
|
+
sortTreeNode.children.push(_addChildrenToNode(e));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return sortTreeNode;
|
|
36
|
+
};
|
|
37
|
+
var tree = _addChildrenToNode(undefined);
|
|
38
|
+
|
|
39
|
+
// then traverse this tree
|
|
40
|
+
var _preOrderTraverse = function preOrderTraverse(sortTreeNode, fn) {
|
|
41
|
+
if (sortTreeNode.node) {
|
|
42
|
+
fn(sortTreeNode.node);
|
|
43
|
+
}
|
|
44
|
+
sortTreeNode.children.forEach(function (e) {
|
|
45
|
+
_preOrderTraverse(e, fn);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// and re-create a flat array again
|
|
50
|
+
var ret = [];
|
|
51
|
+
_preOrderTraverse(tree, function (node) {
|
|
52
|
+
ret.push(node);
|
|
53
|
+
});
|
|
54
|
+
return ret;
|
|
55
|
+
};
|
|
56
|
+
export var Stack = function Stack(props) {
|
|
57
|
+
var _useState = useState([]),
|
|
58
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
+
breadcrumbs = _useState2[0],
|
|
60
|
+
setBreadcrumbs = _useState2[1];
|
|
61
|
+
var _useState3 = useState([]),
|
|
62
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
63
|
+
switches = _useState4[0],
|
|
64
|
+
setSwitches = _useState4[1];
|
|
65
|
+
var history = useHistory();
|
|
66
|
+
var location = useLocation();
|
|
67
|
+
var getVisibleBreadcrumbs = useCallback(function () {
|
|
68
|
+
return sortByParentId(breadcrumbs).map(function (i) {
|
|
69
|
+
var _i$locationUrl;
|
|
70
|
+
return _objectSpread(_objectSpread({}, i), {}, {
|
|
71
|
+
url: (_i$locationUrl = i.locationUrl) !== null && _i$locationUrl !== void 0 ? _i$locationUrl : i.url
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}, [breadcrumbs]);
|
|
75
|
+
var goBack = useCallback(function () {
|
|
76
|
+
var breadcrumbs = getVisibleBreadcrumbs();
|
|
77
|
+
if (breadcrumbs[breadcrumbs.length - 2]) {
|
|
78
|
+
history.push(breadcrumbs[breadcrumbs.length - 2].url);
|
|
79
|
+
} else {
|
|
80
|
+
history.push(breadcrumbs[breadcrumbs.length - 1].url);
|
|
81
|
+
}
|
|
82
|
+
}, [history, getVisibleBreadcrumbs]);
|
|
83
|
+
var goAllBack = useCallback(function () {
|
|
84
|
+
history.push(breadcrumbs[0].url);
|
|
85
|
+
}, [history, breadcrumbs]);
|
|
86
|
+
var addBreadcrumb = useCallback(function (id, parentId, url, title) {
|
|
87
|
+
setBreadcrumbs(function (old) {
|
|
88
|
+
return [].concat(_toConsumableArray(old), [{
|
|
89
|
+
id: id,
|
|
90
|
+
parentId: parentId,
|
|
91
|
+
url: url,
|
|
92
|
+
title: title
|
|
93
|
+
}]);
|
|
94
|
+
});
|
|
95
|
+
}, []);
|
|
96
|
+
var updateBreadcrumb = useCallback(function (id, parentId, url, title) {
|
|
97
|
+
setBreadcrumbs(function (old) {
|
|
98
|
+
return old.map(function (crumb) {
|
|
99
|
+
return crumb.id === id ? _objectSpread(_objectSpread({}, crumb), {}, {
|
|
100
|
+
parentId: parentId,
|
|
101
|
+
url: url,
|
|
102
|
+
title: title
|
|
103
|
+
}) : crumb;
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}, []);
|
|
107
|
+
var removeBreadcrumb = useCallback(function (id) {
|
|
108
|
+
setBreadcrumbs(function (old) {
|
|
109
|
+
return old.filter(function (crumb) {
|
|
110
|
+
return crumb.id !== id;
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
}, []);
|
|
114
|
+
var addSwitchMeta = useCallback(function (id, options) {
|
|
115
|
+
setSwitches(function (old) {
|
|
116
|
+
var switches = _toConsumableArray(old);
|
|
117
|
+
var index = switches.findIndex(function (i) {
|
|
118
|
+
return i.id === id;
|
|
119
|
+
});
|
|
120
|
+
if (index === -1) {
|
|
121
|
+
switches.push(_objectSpread({
|
|
122
|
+
id: id
|
|
123
|
+
}, options));
|
|
124
|
+
} else {
|
|
125
|
+
switches[index] = _objectSpread({
|
|
126
|
+
id: id
|
|
127
|
+
}, options);
|
|
128
|
+
}
|
|
129
|
+
return switches;
|
|
130
|
+
});
|
|
131
|
+
}, []);
|
|
132
|
+
var removeSwitchMeta = useCallback(function (id) {
|
|
133
|
+
setSwitches(function (old) {
|
|
134
|
+
return old.filter(function (item) {
|
|
135
|
+
return item.id !== id;
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}, []);
|
|
139
|
+
useEffect(function () {
|
|
140
|
+
// execute on location change, set locationUrl for the last breadcrumb to the current location
|
|
141
|
+
setBreadcrumbs(function (old) {
|
|
142
|
+
if (old.length === 0) {
|
|
143
|
+
return old;
|
|
144
|
+
}
|
|
145
|
+
var sorted = sortByParentId(old);
|
|
146
|
+
sorted[sorted.length - 1].locationUrl = location.pathname + location.search; // modify object in place
|
|
147
|
+
return _toConsumableArray(old); // clone (with modified object) to new array to trigger a state update
|
|
148
|
+
});
|
|
149
|
+
}, [location]);
|
|
150
|
+
var visibleBreadcrumbs = getVisibleBreadcrumbs();
|
|
151
|
+
return /*#__PURE__*/_jsx(StackApiContext.Provider, {
|
|
152
|
+
value: {
|
|
153
|
+
addBreadcrumb: addBreadcrumb,
|
|
154
|
+
updateBreadcrumb: updateBreadcrumb,
|
|
155
|
+
removeBreadcrumb: removeBreadcrumb,
|
|
156
|
+
goBack: goBack,
|
|
157
|
+
goAllBack: goAllBack,
|
|
158
|
+
addSwitchMeta: addSwitchMeta,
|
|
159
|
+
removeSwitchMeta: removeSwitchMeta,
|
|
160
|
+
switches: sortByParentId(switches),
|
|
161
|
+
breadCrumbs: visibleBreadcrumbs
|
|
162
|
+
},
|
|
163
|
+
children: /*#__PURE__*/_jsx(Route, {
|
|
164
|
+
children: function children(routerProps) {
|
|
165
|
+
var topLevelTitle = props.topLevelTitle,
|
|
166
|
+
children = props.children;
|
|
167
|
+
if (!routerProps.match) {
|
|
168
|
+
return children;
|
|
169
|
+
}
|
|
170
|
+
return /*#__PURE__*/_jsx(StackBreadcrumb, {
|
|
171
|
+
title: topLevelTitle,
|
|
172
|
+
url: routerProps.match.url,
|
|
173
|
+
ignoreParentId: true,
|
|
174
|
+
children: children
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
});
|
|
179
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type LinkProps as RouterLinkProps } from "react-router-dom";
|
|
2
|
+
import { type IStackSwitchApi } from "./Switch";
|
|
3
|
+
interface StackLinkProps extends Omit<RouterLinkProps, "to"> {
|
|
4
|
+
pageName: string;
|
|
5
|
+
payload: string;
|
|
6
|
+
subUrl?: string;
|
|
7
|
+
switchApi?: IStackSwitchApi;
|
|
8
|
+
}
|
|
9
|
+
export declare const StackLink: import("react").ForwardRefExoticComponent<StackLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=StackLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackLink.d.ts","sourceRoot":"","sources":["../../src/stack/StackLink.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,SAAS,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,UAAU,CAAC;AAEnE,UAAU,cAAe,SAAQ,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS,8GAYrB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["switchApi", "payload", "pageName", "subUrl", "children"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
import { Link as RouterLink } from "react-router-dom";
|
|
12
|
+
import { useStackSwitchApi } from "./Switch";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export var StackLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
+
var externalSwitchApi = _ref.switchApi,
|
|
16
|
+
payload = _ref.payload,
|
|
17
|
+
pageName = _ref.pageName,
|
|
18
|
+
subUrl = _ref.subUrl,
|
|
19
|
+
children = _ref.children,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
var internalSwitchApi = useStackSwitchApi();
|
|
22
|
+
// external switchApi allows the creation of StackLinks outside of the stack with the useStackSwitch() hook
|
|
23
|
+
var _switchApi = externalSwitchApi !== undefined ? externalSwitchApi : internalSwitchApi;
|
|
24
|
+
return /*#__PURE__*/_jsx(RouterLink, _objectSpread(_objectSpread({
|
|
25
|
+
ref: ref,
|
|
26
|
+
to: function to() {
|
|
27
|
+
return _switchApi.getTargetUrl(pageName, payload, subUrl);
|
|
28
|
+
}
|
|
29
|
+
}, props), {}, {
|
|
30
|
+
children: children
|
|
31
|
+
}));
|
|
32
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component, type ContextType, type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
import { StackSwitchApiContext } from "./Switch";
|
|
3
|
+
type IProps = PropsWithChildren<{
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare class StackPageTitle extends Component<IProps> {
|
|
7
|
+
static contextType: import("react").Context<import("./Switch").IStackSwitchApi>;
|
|
8
|
+
context: ContextType<typeof StackSwitchApiContext>;
|
|
9
|
+
render(): ReactNode;
|
|
10
|
+
componentDidMount(): void;
|
|
11
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=StackPageTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackPageTitle.d.ts","sourceRoot":"","sources":["../../src/stack/StackPageTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,WAAW,EAAkB,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,KAAK,MAAM,GAAG,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC,CAAC;AAEH,qBAAa,cAAe,SAAQ,SAAS,CAAC,MAAM,CAAC;IACjD,OAAc,WAAW,8DAAyB;IAC1C,OAAO,EAAE,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAEpD,MAAM;IAIN,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,EAAE,MAAM;CAY9C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
11
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
+
import isEqual from "lodash.isequal";
|
|
16
|
+
import { Component, isValidElement } from "react";
|
|
17
|
+
import { StackSwitchApiContext } from "./Switch";
|
|
18
|
+
export var StackPageTitle = /*#__PURE__*/function (_Component) {
|
|
19
|
+
function StackPageTitle() {
|
|
20
|
+
_classCallCheck(this, StackPageTitle);
|
|
21
|
+
return _callSuper(this, StackPageTitle, arguments);
|
|
22
|
+
}
|
|
23
|
+
_inherits(StackPageTitle, _Component);
|
|
24
|
+
return _createClass(StackPageTitle, [{
|
|
25
|
+
key: "render",
|
|
26
|
+
value: function render() {
|
|
27
|
+
return this.props.children;
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
key: "componentDidMount",
|
|
31
|
+
value: function componentDidMount() {
|
|
32
|
+
this.context.updatePageBreadcrumbTitle(this.props.title);
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
key: "componentDidUpdate",
|
|
36
|
+
value: function componentDidUpdate(prevProps) {
|
|
37
|
+
var prevTitle = prevProps.title;
|
|
38
|
+
var currTitle = this.props.title;
|
|
39
|
+
if (/*#__PURE__*/isValidElement(prevTitle) && /*#__PURE__*/isValidElement(currTitle) && isEqual(prevTitle.props, currTitle.props)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (prevTitle !== currTitle) {
|
|
43
|
+
this.context.updatePageBreadcrumbTitle(currTitle);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}]);
|
|
47
|
+
}(Component);
|
|
48
|
+
_defineProperty(StackPageTitle, "contextType", StackSwitchApiContext);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentType, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import type { IStackPageProps } from "./Page";
|
|
3
|
+
interface IProps {
|
|
4
|
+
initialPage?: string;
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
children: Array<ReactElement<IStackPageProps>>;
|
|
7
|
+
disableForcePromptRoute?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const StackSwitchApiContext: import("react").Context<IStackSwitchApi>;
|
|
10
|
+
export declare function useStackSwitchApi(): IStackSwitchApi;
|
|
11
|
+
export interface IStackSwitchApi {
|
|
12
|
+
activatePage: (pageName: string, payload: string, subUrl?: string) => void;
|
|
13
|
+
getTargetUrl: (pageName: string, payload: string, subUrl?: string) => string;
|
|
14
|
+
updatePageBreadcrumbTitle: (title?: ReactNode) => void;
|
|
15
|
+
id?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function useStackSwitch(): [ComponentType<IProps>, IStackSwitchApi];
|
|
18
|
+
export declare function StackSwitch(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/stack/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,aAAa,EAIlB,KAAK,YAAY,EACjB,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG9C,UAAU,MAAM;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/C,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,qBAAqB,0CAUhC,CAAC;AACH,wBAAgB,iBAAiB,oBAEhC;AAED,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7E,yBAAyB,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAiBD,wBAAgB,cAAc,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC,CA0BzE;AAoJD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,2CAGxC"}
|