@wavemaker/react-runtime 11.14.1-16.6404
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/actions/base-action.js +32 -0
- package/actions/login-action.js +53 -0
- package/actions/logout-action.js +41 -0
- package/actions/navigation-action.js +145 -0
- package/actions/notification-action.js +147 -0
- package/actions/timer-action.js +164 -0
- package/actions/toast-provider.js +111 -0
- package/actions/toast.js +115 -0
- package/actions/toast.service.js +94 -0
- package/actions/types/index.js +11 -0
- package/components/advanced/carousel/index.js +456 -0
- package/components/advanced/carousel/props.js +5 -0
- package/components/advanced/carousel/template.js +72 -0
- package/components/advanced/login/index.js +307 -0
- package/components/advanced/login/props.js +5 -0
- package/components/advanced/marquee/index.js +158 -0
- package/components/advanced/marquee/props.js +5 -0
- package/components/basic/anchor/index.js +239 -0
- package/components/basic/anchor/props.js +5 -0
- package/components/basic/audio/index.js +61 -0
- package/components/basic/html/index.js +158 -0
- package/components/basic/icon/index.js +85 -0
- package/components/basic/iframe/iframe.utils.js +10 -0
- package/components/basic/iframe/index.js +95 -0
- package/components/basic/label/index.js +139 -0
- package/components/basic/message/index.js +120 -0
- package/components/basic/message/props.js +5 -0
- package/components/basic/picture/index.js +117 -0
- package/components/basic/picture/props.js +5 -0
- package/components/basic/progress-bar/index.js +168 -0
- package/components/basic/progress-bar/props.js +18 -0
- package/components/basic/progress-circle/index.js +196 -0
- package/components/basic/progress-circle/props.js +16 -0
- package/components/basic/richtexteditor/index.js +533 -0
- package/components/basic/richtexteditor/props.js +5 -0
- package/components/basic/search/index.js +1023 -0
- package/components/basic/search/props.js +5 -0
- package/components/basic/search/providers.js +350 -0
- package/components/basic/spinner/index.js +202 -0
- package/components/basic/spinner/props.js +12 -0
- package/components/basic/tile/index.js +91 -0
- package/components/basic/tree/Components/TreeNodeComponent.js +142 -0
- package/components/basic/tree/index.js +503 -0
- package/components/basic/tree/props.js +5 -0
- package/components/basic/tree/utils.js +154 -0
- package/components/basic/video/index.js +85 -0
- package/components/basic/video/props.js +5 -0
- package/components/chart/components/barColumnChart/index.js +132 -0
- package/components/chart/components/barColumnChart/props.js +5 -0
- package/components/chart/components/bubbleChart/index.js +176 -0
- package/components/chart/components/bubbleChart/props.js +5 -0
- package/components/chart/components/chartLegend/components/ClassicLegendItem.js +39 -0
- package/components/chart/components/chartLegend/components/FuriousLegendItem.js +81 -0
- package/components/chart/components/chartLegend/index.js +69 -0
- package/components/chart/components/chartLegend/props.js +5 -0
- package/components/chart/components/chartLegend/utils.js +31 -0
- package/components/chart/components/chartTooltip/index.js +53 -0
- package/components/chart/components/chartTooltip/styles.js +37 -0
- package/components/chart/components/chartTooltip/utils.js +23 -0
- package/components/chart/components/cumulativeLineChart/index.js +113 -0
- package/components/chart/components/cumulativeLineChart/props.js +5 -0
- package/components/chart/components/cumulativeLineChart/utils.js +34 -0
- package/components/chart/components/index.js +40 -0
- package/components/chart/components/lineAreaChart/index.js +140 -0
- package/components/chart/components/lineAreaChart/props.js +5 -0
- package/components/chart/components/noDataMessage/index.js +27 -0
- package/components/chart/components/pieDonutChart/index.js +171 -0
- package/components/chart/components/pieDonutChart/props.js +5 -0
- package/components/chart/constant.js +72 -0
- package/components/chart/index.js +930 -0
- package/components/chart/props.js +5 -0
- package/components/chart/utils.js +691 -0
- package/components/common/AppSpinner.js +36 -0
- package/components/common/app-spinner.js +26 -0
- package/components/common/index.js +12 -0
- package/components/constants.js +1208 -0
- package/components/container/accordion/accordion-pane/index.js +108 -0
- package/components/container/accordion/accordion-pane/props.js +11 -0
- package/components/container/accordion/index.js +232 -0
- package/components/container/accordion/props.js +13 -0
- package/components/container/alignment-utils.js +183 -0
- package/components/container/index.js +188 -0
- package/components/container/layout-grid/grid-column/index.js +34 -0
- package/components/container/layout-grid/grid-row/index.js +24 -0
- package/components/container/layout-grid/index.js +33 -0
- package/components/container/linear-layout/index.js +72 -0
- package/components/container/linear-layout/linear-layout-item/index.js +43 -0
- package/components/container/panel/components/panel-header/index.js +144 -0
- package/components/container/panel/components/panel-header/props.js +5 -0
- package/components/container/panel/hooks.js +144 -0
- package/components/container/panel/index.js +286 -0
- package/components/container/panel/props.js +5 -0
- package/components/container/props.js +5 -0
- package/components/container/tabs/index.js +379 -0
- package/components/container/tabs/props.js +20 -0
- package/components/container/tabs/tab-pane/index.js +42 -0
- package/components/container/tabs/tab-pane/props.js +5 -0
- package/components/container/wizard/WizardContext.js +16 -0
- package/components/container/wizard/components/StepComponents.js +100 -0
- package/components/container/wizard/components/WizardStep.js +89 -0
- package/components/container/wizard/index.js +710 -0
- package/components/container/wizard/props.js +5 -0
- package/components/container/wizard/utils.js +133 -0
- package/components/container/wizard/wizard-action/index.js +22 -0
- package/components/container/wizard/wizard-step/index.js +94 -0
- package/components/data/card/card-actions/index.js +24 -0
- package/components/data/card/card-content/index.js +38 -0
- package/components/data/card/card-footer/index.js +24 -0
- package/components/data/card/index.js +246 -0
- package/components/data/card/props.js +5 -0
- package/components/data/form/base-form/constant.js +39 -0
- package/components/data/form/base-form/index.js +460 -0
- package/components/data/form/base-form/props.js +29 -0
- package/components/data/form/base-form/utils.js +42 -0
- package/components/data/form/dynamic-fields/index.js +196 -0
- package/components/data/form/dynamic-fields/props.js +5 -0
- package/components/data/form/dynamic-fields/utils.js +237 -0
- package/components/data/form/form-action/index.js +71 -0
- package/components/data/form/form-body/index.js +26 -0
- package/components/data/form/form-context.js +34 -0
- package/components/data/form/form-controller/props.js +19 -0
- package/components/data/form/form-controller/validation-contrustor.js +313 -0
- package/components/data/form/form-controller/withFormController.js +320 -0
- package/components/data/form/form-field/base-field.js +138 -0
- package/components/data/form/form-field/index.js +36 -0
- package/components/data/form/form-field/props.js +5 -0
- package/components/data/form/form-footer/index.js +26 -0
- package/components/data/form/form-header/index.js +56 -0
- package/components/data/form/index.js +39 -0
- package/components/data/form/props.js +5 -0
- package/components/data/list/components/GroupHeader.js +35 -0
- package/components/data/list/components/GroupedListItems.js +98 -0
- package/components/data/list/components/ListContainer.js +27 -0
- package/components/data/list/components/ListDND.js +241 -0
- package/components/data/list/components/ListHeader.js +59 -0
- package/components/data/list/components/ListItem.js +148 -0
- package/components/data/list/components/ListItemWithTemplate.js +59 -0
- package/components/data/list/components/ListItems.js +231 -0
- package/components/data/list/components/ListPagination.js +165 -0
- package/components/data/list/components/LoadMoreButton.js +39 -0
- package/components/data/list/components/NoDataMessage.js +22 -0
- package/components/data/list/components/StandardListItems.js +84 -0
- package/components/data/list/components/index.js +119 -0
- package/components/data/list/components/props.js +5 -0
- package/components/data/list/hooks/index.js +75 -0
- package/components/data/list/hooks/props.js +5 -0
- package/components/data/list/hooks/useCurrentPageItems.js +48 -0
- package/components/data/list/hooks/useGroupedData.js +37 -0
- package/components/data/list/hooks/useListData.js +60 -0
- package/components/data/list/hooks/useListEffects.js +285 -0
- package/components/data/list/hooks/useListEventHandlers.js +291 -0
- package/components/data/list/hooks/useListPagination.js +168 -0
- package/components/data/list/hooks/useListState.js +98 -0
- package/components/data/list/hooks/useListStateManager.js +195 -0
- package/components/data/list/hooks/usePaginatedGroupedData.js +121 -0
- package/components/data/list/index.js +611 -0
- package/components/data/list/props.js +5 -0
- package/components/data/list/templates/media-template.js +53 -0
- package/components/data/list/utils/constants.js +81 -0
- package/components/data/list/utils/list-helpers.js +173 -0
- package/components/data/list/utils/list-widget-methods.js +114 -0
- package/components/data/live-filter/index.js +279 -0
- package/components/data/live-filter/props.js +12 -0
- package/components/data/live-form/index.js +93 -0
- package/components/data/live-form/props.js +16 -0
- package/components/data/pagination/components/BasicPagination.js +77 -0
- package/components/data/pagination/components/ClassicPagination.js +191 -0
- package/components/data/pagination/components/InlinePagination.js +99 -0
- package/components/data/pagination/components/LoadingComponent.js +31 -0
- package/components/data/pagination/components/PageSizeSelector.js +175 -0
- package/components/data/pagination/components/PagerNavigation.js +105 -0
- package/components/data/pagination/components/TotalRecords.js +52 -0
- package/components/data/pagination/components/index.js +47 -0
- package/components/data/pagination/components/props.js +5 -0
- package/components/data/pagination/hooks/index.js +19 -0
- package/components/data/pagination/hooks/props.js +5 -0
- package/components/data/pagination/hooks/useNavigationSize.js +44 -0
- package/components/data/pagination/hooks/usePagination.js +796 -0
- package/components/data/pagination/index.js +322 -0
- package/components/data/table/components/AddNewRow.js +190 -0
- package/components/data/table/components/EditableCell.js +91 -0
- package/components/data/table/components/FieldValidationError.js +24 -0
- package/components/data/table/components/RowExpansionButton.js +74 -0
- package/components/data/table/components/TableBody.js +279 -0
- package/components/data/table/components/TableFilters.js +325 -0
- package/components/data/table/components/TableFooterActions.js +48 -0
- package/components/data/table/components/TableHeader.js +174 -0
- package/components/data/table/components/TablePanelHeading.js +68 -0
- package/components/data/table/components/index.js +74 -0
- package/components/data/table/hooks/index.js +219 -0
- package/components/data/table/hooks/useCellState.js +117 -0
- package/components/data/table/hooks/useDynamicColumns.js +85 -0
- package/components/data/table/hooks/useEditingState.js +47 -0
- package/components/data/table/hooks/useFormWidget.js +184 -0
- package/components/data/table/hooks/usePaginationState.js +60 -0
- package/components/data/table/hooks/usePanelStructure.js +40 -0
- package/components/data/table/hooks/useResponsiveColumns.js +34 -0
- package/components/data/table/hooks/useRowExpansion.js +110 -0
- package/components/data/table/hooks/useRowHandlers.js +38 -0
- package/components/data/table/hooks/useRowSelection.js +213 -0
- package/components/data/table/hooks/useServerSideSorting.js +165 -0
- package/components/data/table/hooks/useTableColumns.js +263 -0
- package/components/data/table/hooks/useTableData.js +154 -0
- package/components/data/table/hooks/useTableEdit.js +467 -0
- package/components/data/table/hooks/useTableEffects.js +139 -0
- package/components/data/table/hooks/useTableFilter.js +389 -0
- package/components/data/table/hooks/useTableInitialization.js +103 -0
- package/components/data/table/hooks/useTableState.js +69 -0
- package/components/data/table/hooks/useTableStateManager.js +558 -0
- package/components/data/table/index.js +1295 -0
- package/components/data/table/live-table/index.js +232 -0
- package/components/data/table/props.js +5 -0
- package/components/data/table/table-action/index.js +78 -0
- package/components/data/table/table-column/index.js +35 -0
- package/components/data/table/table-row/index.js +49 -0
- package/components/data/table/table-row-action/index.js +74 -0
- package/components/data/table/utils/buildSelectionColumns.js +173 -0
- package/components/data/table/utils/columnBuilder.js +209 -0
- package/components/data/table/utils/columnProxy.js +48 -0
- package/components/data/table/utils/columnWidthDistribution.js +98 -0
- package/components/data/table/utils/constants.js +80 -0
- package/components/data/table/utils/crud-handlers.js +518 -0
- package/components/data/table/utils/dynamic-columns.js +118 -0
- package/components/data/table/utils/index.js +607 -0
- package/components/data/table/utils/renderDisplayCell.js +183 -0
- package/components/data/table/utils/selectionUtils.js +166 -0
- package/components/data/table/utils/table-helpers.js +100 -0
- package/components/data/table/utils/validation.js +124 -0
- package/components/data/types.js +113 -0
- package/components/data/utils/field-data-utils.js +66 -0
- package/components/data/utils/filter-field-util.js +81 -0
- package/components/data/utils/index.js +216 -0
- package/components/dialogs/alert-dialog/index.js +80 -0
- package/components/dialogs/confirm-dialog/index.js +105 -0
- package/components/dialogs/dialog/index.js +56 -0
- package/components/dialogs/dialog-actions/index.js +18 -0
- package/components/dialogs/dialog-body/index.js +21 -0
- package/components/dialogs/dialog-content/index.js +30 -0
- package/components/dialogs/dialog-header/index.js +93 -0
- package/components/dialogs/iframe-dialog/index.js +114 -0
- package/components/dialogs/index.js +129 -0
- package/components/dialogs/login-dialog/index.js +369 -0
- package/components/dialogs/login-dialog/props.js +5 -0
- package/components/dialogs/page-dialog/index.js +96 -0
- package/components/dialogs/withDialogWrapper.js +108 -0
- package/components/form/button/index.js +216 -0
- package/components/form/button-group/index.js +60 -0
- package/components/input/calendar/index.js +546 -0
- package/components/input/calendar/props.js +5 -0
- package/components/input/calendar/utils.js +340 -0
- package/components/input/chips/SortableChip/index.js +115 -0
- package/components/input/chips/SortableChip/props.js +5 -0
- package/components/input/chips/index.js +488 -0
- package/components/input/chips/props.js +5 -0
- package/components/input/chips/utils.js +259 -0
- package/components/input/color-picker/index.js +678 -0
- package/components/input/color-picker/props.js +5 -0
- package/components/input/composite/index.js +137 -0
- package/components/input/currency/index.js +263 -0
- package/components/input/currency/props.js +5 -0
- package/components/input/default/checkbox/index.js +230 -0
- package/components/input/default/checkbox/props.js +5 -0
- package/components/input/default/checkboxset/index.js +476 -0
- package/components/input/default/checkboxset/props.js +5 -0
- package/components/input/default/radioset/index.js +379 -0
- package/components/input/default/radioset/props.js +5 -0
- package/components/input/default/switch/index.js +490 -0
- package/components/input/default/switch/prop.js +5 -0
- package/components/input/epoch/date/components/DatePickerPopover.js +220 -0
- package/components/input/epoch/date/index.js +520 -0
- package/components/input/epoch/date/props.js +5 -0
- package/components/input/epoch/date/styled.js +70 -0
- package/components/input/epoch/date/utils.js +108 -0
- package/components/input/epoch/datetime/index.js +656 -0
- package/components/input/epoch/datetime/props.js +5 -0
- package/components/input/epoch/datetime/styled.js +90 -0
- package/components/input/epoch/datetime/utils.js +244 -0
- package/components/input/epoch/time/index.js +412 -0
- package/components/input/epoch/time/props.js +5 -0
- package/components/input/epoch/time/utils.js +209 -0
- package/components/input/fileupload/Utils.js +134 -0
- package/components/input/fileupload/components/ListItems.js +140 -0
- package/components/input/fileupload/components/MultiUpload.js +85 -0
- package/components/input/fileupload/components/SingleUpload.js +65 -0
- package/components/input/fileupload/index.js +170 -0
- package/components/input/fileupload/props.js +5 -0
- package/components/input/fileupload/useFileUpload.js +400 -0
- package/components/input/number/index.js +295 -0
- package/components/input/number/props.js +5 -0
- package/components/input/rating/index.js +368 -0
- package/components/input/rating/props.js +5 -0
- package/components/input/select/index.js +344 -0
- package/components/input/select/props.js +5 -0
- package/components/input/slider/index.js +167 -0
- package/components/input/slider/props.js +5 -0
- package/components/input/text/index.js +434 -0
- package/components/input/text/props.js +5 -0
- package/components/input/text/util.js +179 -0
- package/components/input/textarea/index.js +347 -0
- package/components/input/textarea/props.js +5 -0
- package/components/layout/footer/index.js +30 -0
- package/components/layout/header/index.js +30 -0
- package/components/layout/leftnav/index.js +44 -0
- package/components/layout/rightnav/index.js +32 -0
- package/components/layout/topnav/index.js +34 -0
- package/components/navbar/index.js +41 -0
- package/components/navbar/nav/index.js +102 -0
- package/components/navbar/nav/props.js +5 -0
- package/components/navbar/nav-item/index.js +44 -0
- package/components/navigation/breadcrumb/index.js +56 -0
- package/components/navigation/breadcrumb/props.js +5 -0
- package/components/navigation/menu/components/ListItems.js +66 -0
- package/components/navigation/menu/constants.js +101 -0
- package/components/navigation/menu/index.js +807 -0
- package/components/navigation/menu/props.js +5 -0
- package/components/navigation/popover/index.js +209 -0
- package/components/navigation/popover/props.js +15 -0
- package/components/page/content/index.js +28 -0
- package/components/page/error-boundary/index.js +108 -0
- package/components/page/index.js +137 -0
- package/components/page/page-content/index.js +23 -0
- package/components/page/partial/index.js +36 -0
- package/components/page/partial-container/index.js +48 -0
- package/components/page/props.js +5 -0
- package/components/page/toast-container/index.js +33 -0
- package/components/prefab/container/index.js +46 -0
- package/components/prefab/index.js +67 -0
- package/context/AppContext.js +25 -0
- package/context/AppSpinnerProvider.js +43 -0
- package/context/LocalizationProvider.js +79 -0
- package/context/PrefabContext.js +66 -0
- package/context/WidgetProvider.js +187 -0
- package/core/app-config.js +1 -0
- package/core/app.service.js +357 -0
- package/core/appVariablesStore.js +20 -0
- package/core/appstore.js +88 -0
- package/core/constants/currency-constant.js +1071 -0
- package/core/constants/events.js +34 -0
- package/core/constants/index.js +27 -0
- package/core/dialog.service.js +76 -0
- package/core/event-notifier.js +151 -0
- package/core/formatter/date-formatters.js +222 -0
- package/core/formatter/index.js +131 -0
- package/core/formatter/number-formatters.js +142 -0
- package/core/formatter/security-formatters.js +323 -0
- package/core/formatter/string-formatters.js +52 -0
- package/core/formatter/types.js +18 -0
- package/core/formatters.js +24 -0
- package/core/proxy-service.js +412 -0
- package/core/script-registry.js +63 -0
- package/core/security.service.js +11 -0
- package/core/util/common.js +33 -0
- package/core/util/dom.js +107 -0
- package/core/util/index.js +136 -0
- package/core/util/security.js +184 -0
- package/core/util/utils.js +189 -0
- package/core/widget-observer.js +98 -0
- package/higherOrder/BaseApp.js +430 -0
- package/higherOrder/BaseAppProps.js +5 -0
- package/higherOrder/BaseDateTime.js +251 -0
- package/higherOrder/BasePage.js +715 -0
- package/higherOrder/BasePartial.js +124 -0
- package/higherOrder/BasePrefab.js +145 -0
- package/higherOrder/DataNav.js +377 -0
- package/higherOrder/helper.js +43 -0
- package/higherOrder/props.js +5 -0
- package/higherOrder/withBaseWrapper.js +183 -0
- package/hooks/useAccess.js +308 -0
- package/hooks/useAppConfig.js +42 -0
- package/hooks/useAuth.js +562 -0
- package/hooks/useDataSourceSubscription.js +125 -0
- package/hooks/useDebounce.js +76 -0
- package/hooks/useDeviceVisibility.js +49 -0
- package/hooks/useHttp.js +338 -0
- package/libs/index.js +20 -0
- package/mui-config/theme-provider.js +17 -0
- package/mui-config/theme.js +371 -0
- package/package-lock.json +10177 -0
- package/package.json +95 -0
- package/store/index.js +33 -0
- package/store/middleware/navigationMiddleware.js +48 -0
- package/store/slices/appConfigSlice.js +103 -0
- package/store/slices/authSlice.js +508 -0
- package/store/slices/i18nSlice.js +206 -0
- package/types/index.js +15 -0
- package/utils/dataset-util.js +174 -0
- package/utils/eval-expression.js +32 -0
- package/utils/form-state.util.js +140 -0
- package/utils/form-utils.js +187 -0
- package/utils/format-util.js +260 -0
- package/utils/page-params-util.js +24 -0
- package/utils/resource-url.js +27 -0
- package/utils/state-persistance.js +343 -0
- package/utils/style-utils.js +73 -0
- package/utils/transformedDataset-utils.js +633 -0
- package/utils/widget-cleanup-util.js +84 -0
- package/utils/widgets.js +99 -0
- package/variables/base-variable.js +173 -0
- package/variables/constants.js +27 -0
- package/variables/live-variable.js +166 -0
- package/variables/model-variable.js +77 -0
- package/variables/service-variable.js +307 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TableFooterActions = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _material = require("@mui/material");
|
|
10
|
+
var _tableAction = _interopRequireDefault(require("../table-action"));
|
|
11
|
+
var _utils = require("../utils");
|
|
12
|
+
var __jsx = _react["default"].createElement;
|
|
13
|
+
var TableFooterActions = exports.TableFooterActions = function TableFooterActions(_ref) {
|
|
14
|
+
var footerActions = _ref.footerActions,
|
|
15
|
+
_ref$spacing = _ref.spacing,
|
|
16
|
+
spacing = _ref$spacing === void 0 ? "normal" : _ref$spacing,
|
|
17
|
+
_ref$isGridEditMode = _ref.isGridEditMode,
|
|
18
|
+
isGridEditMode = _ref$isGridEditMode === void 0 ? false : _ref$isGridEditMode,
|
|
19
|
+
_ref$isLoading = _ref.isLoading,
|
|
20
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
21
|
+
listener = _ref.listener;
|
|
22
|
+
if (footerActions.length === 0) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return __jsx(_material.Box, {
|
|
26
|
+
className: "app-datagrid-actions"
|
|
27
|
+
}, footerActions.map(function (action, index) {
|
|
28
|
+
return __jsx(_tableAction["default"], {
|
|
29
|
+
key: "footer-action-".concat(index, "-").concat(action.key || action.name),
|
|
30
|
+
className: (0, _utils.getButtonClasses)(action, spacing, isGridEditMode, isLoading),
|
|
31
|
+
"data-action-key": action.key,
|
|
32
|
+
onClick: action.onClick,
|
|
33
|
+
name: action["displayName"] || action.name || "Action",
|
|
34
|
+
displayName: action["displayName"],
|
|
35
|
+
title: action.title,
|
|
36
|
+
iconclass: action.iconclass,
|
|
37
|
+
action: action.action,
|
|
38
|
+
position: action.position,
|
|
39
|
+
shortcutkey: action.shortcutkey,
|
|
40
|
+
tabindex: typeof action.tabindex === "string" ? parseInt(action.tabindex, 10) : action.tabindex,
|
|
41
|
+
widgetType: action.widgetType,
|
|
42
|
+
listener: listener,
|
|
43
|
+
disabled: action.disabled || action.key === "addNewRow" && (isGridEditMode || isLoading),
|
|
44
|
+
show: action.show,
|
|
45
|
+
styles: action.styles
|
|
46
|
+
}, action.children);
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.TableHeaderComponent = void 0;
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _material = require("@mui/material");
|
|
12
|
+
var _reactTable = require("@tanstack/react-table");
|
|
13
|
+
var _utils = require("../utils");
|
|
14
|
+
var _TableFilters = require("./TableFilters");
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
16
|
+
var __jsx = _react["default"].createElement;
|
|
17
|
+
var TableHeaderComponent = exports.TableHeaderComponent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
18
|
+
var table = _ref.table,
|
|
19
|
+
enablesort = _ref.enablesort,
|
|
20
|
+
_ref$rowClass = _ref.rowClass,
|
|
21
|
+
rowClass = _ref$rowClass === void 0 ? "" : _ref$rowClass,
|
|
22
|
+
sorting = _ref.sorting,
|
|
23
|
+
columnSizing = _ref.columnSizing,
|
|
24
|
+
rowSelection = _ref.rowSelection,
|
|
25
|
+
rowExpansionConfig = _ref.rowExpansionConfig,
|
|
26
|
+
filterMode = _ref.filterMode,
|
|
27
|
+
columnFilters = _ref.columnFilters,
|
|
28
|
+
onColumnFilterChange = _ref.onColumnFilterChange,
|
|
29
|
+
renderFormWidget = _ref.renderFormWidget,
|
|
30
|
+
listener = _ref.listener;
|
|
31
|
+
var hasExpansion = rowExpansionConfig && rowExpansionConfig.show;
|
|
32
|
+
|
|
33
|
+
// Calculate where to insert the expansion header
|
|
34
|
+
var getExpansionInsertIndex = _react["default"].useMemo(function () {
|
|
35
|
+
var _table$getHeaderGroup;
|
|
36
|
+
if (!hasExpansion || !rowExpansionConfig) return -1;
|
|
37
|
+
var position = rowExpansionConfig.position;
|
|
38
|
+
var headers = ((_table$getHeaderGroup = table.getHeaderGroups()[0]) === null || _table$getHeaderGroup === void 0 ? void 0 : _table$getHeaderGroup.headers) || [];
|
|
39
|
+
|
|
40
|
+
// If position is -1, insert before last column
|
|
41
|
+
if (position === "-1" || position === -1) {
|
|
42
|
+
return headers.length - 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// If position is a number, use it as index for data columns
|
|
46
|
+
if (typeof position === "number" || typeof position === "string" && !isNaN(Number(position))) {
|
|
47
|
+
var positionNum = Number(position);
|
|
48
|
+
// Find the index of the first data column
|
|
49
|
+
var dataColumnStartIndex = 0;
|
|
50
|
+
for (var i = 0; i < headers.length; i++) {
|
|
51
|
+
var header = headers[i];
|
|
52
|
+
// Skip system columns (multiSelect, radioSelect, row-index, actions)
|
|
53
|
+
if (header.id !== "multiSelect" && header.id !== "radioSelect" && header.id !== "row-index" && header.id !== "actions") {
|
|
54
|
+
dataColumnStartIndex = i;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return dataColumnStartIndex + positionNum;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// If position is a string (column name), find the column
|
|
62
|
+
if (typeof position === "string") {
|
|
63
|
+
var columnIndex = headers.findIndex(function (header) {
|
|
64
|
+
// Check direct match with id
|
|
65
|
+
if (header.id === position || header.column.id === position) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
// Check accessorKey for nested paths
|
|
69
|
+
var column = header.column.columnDef;
|
|
70
|
+
if (column.accessorKey === position) {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
// For nested paths like "name.location.url", TanStack converts dots to underscores in id
|
|
74
|
+
var normalizedPosition = position.replace(/\./g, "_");
|
|
75
|
+
return header.id === normalizedPosition || header.column.id === normalizedPosition;
|
|
76
|
+
});
|
|
77
|
+
// Return index + 1 to place AFTER the named column
|
|
78
|
+
return columnIndex >= 0 ? columnIndex + 1 : 0;
|
|
79
|
+
}
|
|
80
|
+
return 0;
|
|
81
|
+
}, [hasExpansion, rowExpansionConfig, table]);
|
|
82
|
+
return __jsx(_material.TableHead, {
|
|
83
|
+
className: "table-header thead-sticky"
|
|
84
|
+
}, table.getHeaderGroups().map(function (headerGroup) {
|
|
85
|
+
return __jsx(_material.TableRow, {
|
|
86
|
+
key: headerGroup.id,
|
|
87
|
+
className: "".concat(_utils.TABLE_CSS_CLASSES.tableRow, " ").concat(rowClass)
|
|
88
|
+
}, headerGroup.headers.map(function (header, headerIndex) {
|
|
89
|
+
var cells = [];
|
|
90
|
+
|
|
91
|
+
// Insert expansion header before this cell if it's at the calculated position
|
|
92
|
+
if (hasExpansion && headerIndex === getExpansionInsertIndex) {
|
|
93
|
+
cells.push(__jsx(_material.TableCell, {
|
|
94
|
+
key: "expansion-header-".concat(headerIndex),
|
|
95
|
+
className: _utils.TABLE_CSS_CLASSES.headerCell,
|
|
96
|
+
style: {
|
|
97
|
+
width: (rowExpansionConfig === null || rowExpansionConfig === void 0 ? void 0 : rowExpansionConfig.columnwidth) || "50px",
|
|
98
|
+
padding: "8px",
|
|
99
|
+
userSelect: "none"
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Add the regular header cell
|
|
105
|
+
cells.push(__jsx(_material.TableCell, {
|
|
106
|
+
key: header.id,
|
|
107
|
+
className: _utils.TABLE_CSS_CLASSES.headerCell,
|
|
108
|
+
style: {
|
|
109
|
+
cursor: enablesort && header.column.getCanSort() ? "pointer" : "default",
|
|
110
|
+
userSelect: "none",
|
|
111
|
+
width: header.getSize(),
|
|
112
|
+
position: "relative"
|
|
113
|
+
},
|
|
114
|
+
title: header.column.columnDef.header && typeof header.column.columnDef.header !== "function" ? header.column.columnDef.header.toString() : "",
|
|
115
|
+
onClick: enablesort && header.column.getCanSort() ? header.column.getToggleSortingHandler() : undefined
|
|
116
|
+
}, __jsx(_material.Box, {
|
|
117
|
+
component: "span"
|
|
118
|
+
}, header.isPlaceholder ? null : (0, _reactTable.flexRender)(header.column.columnDef.header, header.getContext())), enablesort && header.column.getCanSort() && __jsx(_material.Box, {
|
|
119
|
+
style: {
|
|
120
|
+
zIndex: 90
|
|
121
|
+
},
|
|
122
|
+
component: "span",
|
|
123
|
+
className: "sort-buttons-container ".concat(header.column.getIsSorted() ? "active" : "")
|
|
124
|
+
}, __jsx(_material.Box, {
|
|
125
|
+
component: "i",
|
|
126
|
+
className: "sort-icon".concat(header.column.getIsSorted() === "asc" ? " ".concat(_utils.TABLE_CSS_CLASSES.ascIcon) : header.column.getIsSorted() === "desc" ? " ".concat(_utils.TABLE_CSS_CLASSES.descIcon) : "")
|
|
127
|
+
})), header.column.getCanResize() && __jsx(_material.Box, {
|
|
128
|
+
className: "ui-resizable-handle ui-resizable-e",
|
|
129
|
+
onMouseDown: header.getResizeHandler(),
|
|
130
|
+
onTouchStart: header.getResizeHandler()
|
|
131
|
+
})));
|
|
132
|
+
return __jsx(_react["default"].Fragment, {
|
|
133
|
+
key: "header-group-".concat(headerIndex)
|
|
134
|
+
}, cells);
|
|
135
|
+
}));
|
|
136
|
+
}), filterMode === "multicolumn" && __jsx(_TableFilters.TableFilterRow, {
|
|
137
|
+
columns: table.getAllFlatColumns().map(function (col) {
|
|
138
|
+
return col.columnDef;
|
|
139
|
+
}),
|
|
140
|
+
columnFilters: columnFilters || {},
|
|
141
|
+
onColumnFilterChange: onColumnFilterChange || function () {},
|
|
142
|
+
filterMode: filterMode,
|
|
143
|
+
renderFormWidget: renderFormWidget,
|
|
144
|
+
listener: listener
|
|
145
|
+
}));
|
|
146
|
+
}, function (prevProps, nextProps) {
|
|
147
|
+
// Compare props including the sorting state
|
|
148
|
+
var prevSorting = prevProps.sorting || [];
|
|
149
|
+
var nextSorting = nextProps.sorting || [];
|
|
150
|
+
|
|
151
|
+
// Deep compare sorting arrays
|
|
152
|
+
var sortingEqual = prevSorting.length === nextSorting.length && prevSorting.every(function (prevSort, index) {
|
|
153
|
+
var nextSort = nextSorting[index];
|
|
154
|
+
return prevSort.id === nextSort.id && prevSort.desc === nextSort.desc;
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// Compare column sizing
|
|
158
|
+
var prevSizing = prevProps.columnSizing || {};
|
|
159
|
+
var nextSizing = nextProps.columnSizing || {};
|
|
160
|
+
var sizingKeys = new Set([].concat((0, _toConsumableArray2["default"])(Object.keys(prevSizing)), (0, _toConsumableArray2["default"])(Object.keys(nextSizing))));
|
|
161
|
+
var sizingEqual = Array.from(sizingKeys).every(function (key) {
|
|
162
|
+
return prevSizing[key] === nextSizing[key];
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
// Compare row selection
|
|
166
|
+
var prevSelection = prevProps.rowSelection || {};
|
|
167
|
+
var nextSelection = nextProps.rowSelection || {};
|
|
168
|
+
var selectionKeys = new Set([].concat((0, _toConsumableArray2["default"])(Object.keys(prevSelection)), (0, _toConsumableArray2["default"])(Object.keys(nextSelection))));
|
|
169
|
+
var selectionEqual = selectionKeys.size === Object.keys(prevSelection).length && selectionKeys.size === Object.keys(nextSelection).length && Array.from(selectionKeys).every(function (key) {
|
|
170
|
+
return prevSelection[key] === nextSelection[key];
|
|
171
|
+
});
|
|
172
|
+
return prevProps.enablesort === nextProps.enablesort && prevProps.rowClass === nextProps.rowClass && sortingEqual && sizingEqual && selectionEqual && prevProps.rowExpansionConfig === nextProps.rowExpansionConfig && prevProps.columnsVersion === nextProps.columnsVersion && prevProps.filterMode === nextProps.filterMode && JSON.stringify(prevProps.columnFilters || {}) === JSON.stringify(nextProps.columnFilters || {});
|
|
173
|
+
});
|
|
174
|
+
TableHeaderComponent.displayName = "TableHeaderComponent";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TablePanelHeading = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _material = require("@mui/material");
|
|
10
|
+
var _tableAction = _interopRequireDefault(require("../table-action"));
|
|
11
|
+
var _utils = require("../utils");
|
|
12
|
+
var __jsx = _react["default"].createElement;
|
|
13
|
+
var TablePanelHeading = exports.TablePanelHeading = function TablePanelHeading(_ref) {
|
|
14
|
+
var title = _ref.title,
|
|
15
|
+
subheading = _ref.subheading,
|
|
16
|
+
iconclass = _ref.iconclass,
|
|
17
|
+
_ref$exportOptions = _ref.exportOptions,
|
|
18
|
+
exportOptions = _ref$exportOptions === void 0 ? [] : _ref$exportOptions,
|
|
19
|
+
headerActions = _ref.headerActions,
|
|
20
|
+
_ref$spacing = _ref.spacing,
|
|
21
|
+
spacing = _ref$spacing === void 0 ? "normal" : _ref$spacing,
|
|
22
|
+
_ref$isGridEditMode = _ref.isGridEditMode,
|
|
23
|
+
isGridEditMode = _ref$isGridEditMode === void 0 ? false : _ref$isGridEditMode,
|
|
24
|
+
_ref$isLoading = _ref.isLoading,
|
|
25
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
26
|
+
listener = _ref.listener;
|
|
27
|
+
return __jsx(_material.Box, {
|
|
28
|
+
className: "panel-heading"
|
|
29
|
+
}, __jsx(_material.Box, {
|
|
30
|
+
component: "h3",
|
|
31
|
+
className: "panel-title"
|
|
32
|
+
}, __jsx(_material.Box, {
|
|
33
|
+
className: "pull-left"
|
|
34
|
+
}, iconclass && __jsx(_material.Box, {
|
|
35
|
+
component: "i",
|
|
36
|
+
className: "app-icon panel-icon ".concat(iconclass)
|
|
37
|
+
})), __jsx(_material.Box, {
|
|
38
|
+
className: "pull-left"
|
|
39
|
+
}, title && __jsx(_material.Box, {
|
|
40
|
+
component: "div",
|
|
41
|
+
className: "heading"
|
|
42
|
+
}, title), subheading && __jsx(_material.Box, {
|
|
43
|
+
component: "div",
|
|
44
|
+
className: "description"
|
|
45
|
+
}, subheading)), ((exportOptions === null || exportOptions === void 0 ? void 0 : exportOptions.length) > 0 || headerActions.length > 0) && __jsx(_material.Box, {
|
|
46
|
+
className: "panel-actions app-datagrid-actions"
|
|
47
|
+
}, headerActions.map(function (action, index) {
|
|
48
|
+
return __jsx(_tableAction["default"], {
|
|
49
|
+
key: "header-action-".concat(index, "-").concat(action.key || action.name),
|
|
50
|
+
className: (0, _utils.getButtonClasses)(action, spacing, isGridEditMode, isLoading),
|
|
51
|
+
"data-action-key": action.key,
|
|
52
|
+
onClick: action.onClick,
|
|
53
|
+
name: action["displayName"] || action.name || "Action",
|
|
54
|
+
displayName: action["displayName"],
|
|
55
|
+
title: action.title,
|
|
56
|
+
iconclass: action.iconclass,
|
|
57
|
+
action: action.action,
|
|
58
|
+
position: action.position,
|
|
59
|
+
shortcutkey: action.shortcutkey,
|
|
60
|
+
tabindex: typeof action.tabindex === "string" ? parseInt(action.tabindex, 10) : action.tabindex,
|
|
61
|
+
widgetType: action.widgetType,
|
|
62
|
+
listener: listener,
|
|
63
|
+
disabled: action.disabled || action.key === "addNewRow" && (isGridEditMode || isLoading),
|
|
64
|
+
show: action.show,
|
|
65
|
+
styles: action.styles
|
|
66
|
+
}, action.children);
|
|
67
|
+
}), (exportOptions === null || exportOptions === void 0 ? void 0 : exportOptions.length) > 0 && __jsx(_material.Box, null, "Export Options Available"))));
|
|
68
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AddNewRow", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _AddNewRow.AddNewRow;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "EditableCell", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _EditableCell.EditableCell;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "FieldValidationError", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _FieldValidationError.FieldValidationError;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "GlobalSearchFilter", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _TableFilters.GlobalSearchFilter;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "RowExpansionButton", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _RowExpansionButton.RowExpansionButton;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "TableBodyComponent", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _TableBody.TableBodyComponent;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "TableFilterRow", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _TableFilters.TableFilterRow;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "TableFooterActions", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _TableFooterActions.TableFooterActions;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "TableHeaderComponent", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _TableHeader.TableHeaderComponent;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "TablePanelHeading", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _TablePanelHeading.TablePanelHeading;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var _TablePanelHeading = require("./TablePanelHeading");
|
|
67
|
+
var _TableFooterActions = require("./TableFooterActions");
|
|
68
|
+
var _AddNewRow = require("./AddNewRow");
|
|
69
|
+
var _EditableCell = require("./EditableCell");
|
|
70
|
+
var _FieldValidationError = require("./FieldValidationError");
|
|
71
|
+
var _TableBody = require("./TableBody");
|
|
72
|
+
var _TableHeader = require("./TableHeader");
|
|
73
|
+
var _RowExpansionButton = require("./RowExpansionButton");
|
|
74
|
+
var _TableFilters = require("./TableFilters");
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
useTableState: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "useTableState", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _useTableState.useTableState;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var _useTableData = require("./useTableData");
|
|
16
|
+
Object.keys(_useTableData).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _useTableData[key]) return;
|
|
20
|
+
Object.defineProperty(exports, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _useTableData[key];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
var _useFormWidget = require("./useFormWidget");
|
|
28
|
+
Object.keys(_useFormWidget).forEach(function (key) {
|
|
29
|
+
if (key === "default" || key === "__esModule") return;
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
|
+
if (key in exports && exports[key] === _useFormWidget[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _useFormWidget[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _useTableEdit = require("./useTableEdit");
|
|
40
|
+
Object.keys(_useTableEdit).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
43
|
+
if (key in exports && exports[key] === _useTableEdit[key]) return;
|
|
44
|
+
Object.defineProperty(exports, key, {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _useTableEdit[key];
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
var _usePanelStructure = require("./usePanelStructure");
|
|
52
|
+
Object.keys(_usePanelStructure).forEach(function (key) {
|
|
53
|
+
if (key === "default" || key === "__esModule") return;
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
55
|
+
if (key in exports && exports[key] === _usePanelStructure[key]) return;
|
|
56
|
+
Object.defineProperty(exports, key, {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
return _usePanelStructure[key];
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
var _useTableColumns = require("./useTableColumns");
|
|
64
|
+
Object.keys(_useTableColumns).forEach(function (key) {
|
|
65
|
+
if (key === "default" || key === "__esModule") return;
|
|
66
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
67
|
+
if (key in exports && exports[key] === _useTableColumns[key]) return;
|
|
68
|
+
Object.defineProperty(exports, key, {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function get() {
|
|
71
|
+
return _useTableColumns[key];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
var _useRowSelection = require("./useRowSelection");
|
|
76
|
+
Object.keys(_useRowSelection).forEach(function (key) {
|
|
77
|
+
if (key === "default" || key === "__esModule") return;
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
79
|
+
if (key in exports && exports[key] === _useRowSelection[key]) return;
|
|
80
|
+
Object.defineProperty(exports, key, {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function get() {
|
|
83
|
+
return _useRowSelection[key];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
var _useTableState = require("./useTableState");
|
|
88
|
+
var _useCellState = require("./useCellState");
|
|
89
|
+
Object.keys(_useCellState).forEach(function (key) {
|
|
90
|
+
if (key === "default" || key === "__esModule") return;
|
|
91
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
92
|
+
if (key in exports && exports[key] === _useCellState[key]) return;
|
|
93
|
+
Object.defineProperty(exports, key, {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function get() {
|
|
96
|
+
return _useCellState[key];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
var _useEditingState = require("./useEditingState");
|
|
101
|
+
Object.keys(_useEditingState).forEach(function (key) {
|
|
102
|
+
if (key === "default" || key === "__esModule") return;
|
|
103
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
104
|
+
if (key in exports && exports[key] === _useEditingState[key]) return;
|
|
105
|
+
Object.defineProperty(exports, key, {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function get() {
|
|
108
|
+
return _useEditingState[key];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
var _useRowHandlers = require("./useRowHandlers");
|
|
113
|
+
Object.keys(_useRowHandlers).forEach(function (key) {
|
|
114
|
+
if (key === "default" || key === "__esModule") return;
|
|
115
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
116
|
+
if (key in exports && exports[key] === _useRowHandlers[key]) return;
|
|
117
|
+
Object.defineProperty(exports, key, {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function get() {
|
|
120
|
+
return _useRowHandlers[key];
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
var _usePaginationState = require("./usePaginationState");
|
|
125
|
+
Object.keys(_usePaginationState).forEach(function (key) {
|
|
126
|
+
if (key === "default" || key === "__esModule") return;
|
|
127
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
128
|
+
if (key in exports && exports[key] === _usePaginationState[key]) return;
|
|
129
|
+
Object.defineProperty(exports, key, {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function get() {
|
|
132
|
+
return _usePaginationState[key];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
var _useTableInitialization = require("./useTableInitialization");
|
|
137
|
+
Object.keys(_useTableInitialization).forEach(function (key) {
|
|
138
|
+
if (key === "default" || key === "__esModule") return;
|
|
139
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
140
|
+
if (key in exports && exports[key] === _useTableInitialization[key]) return;
|
|
141
|
+
Object.defineProperty(exports, key, {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function get() {
|
|
144
|
+
return _useTableInitialization[key];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
var _useRowExpansion = require("./useRowExpansion");
|
|
149
|
+
Object.keys(_useRowExpansion).forEach(function (key) {
|
|
150
|
+
if (key === "default" || key === "__esModule") return;
|
|
151
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
152
|
+
if (key in exports && exports[key] === _useRowExpansion[key]) return;
|
|
153
|
+
Object.defineProperty(exports, key, {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function get() {
|
|
156
|
+
return _useRowExpansion[key];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
var _useServerSideSorting = require("./useServerSideSorting");
|
|
161
|
+
Object.keys(_useServerSideSorting).forEach(function (key) {
|
|
162
|
+
if (key === "default" || key === "__esModule") return;
|
|
163
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
164
|
+
if (key in exports && exports[key] === _useServerSideSorting[key]) return;
|
|
165
|
+
Object.defineProperty(exports, key, {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function get() {
|
|
168
|
+
return _useServerSideSorting[key];
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
var _useTableEffects = require("./useTableEffects");
|
|
173
|
+
Object.keys(_useTableEffects).forEach(function (key) {
|
|
174
|
+
if (key === "default" || key === "__esModule") return;
|
|
175
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
176
|
+
if (key in exports && exports[key] === _useTableEffects[key]) return;
|
|
177
|
+
Object.defineProperty(exports, key, {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function get() {
|
|
180
|
+
return _useTableEffects[key];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
var _useTableStateManager = require("./useTableStateManager");
|
|
185
|
+
Object.keys(_useTableStateManager).forEach(function (key) {
|
|
186
|
+
if (key === "default" || key === "__esModule") return;
|
|
187
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
188
|
+
if (key in exports && exports[key] === _useTableStateManager[key]) return;
|
|
189
|
+
Object.defineProperty(exports, key, {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function get() {
|
|
192
|
+
return _useTableStateManager[key];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
var _useTableFilter = require("./useTableFilter");
|
|
197
|
+
Object.keys(_useTableFilter).forEach(function (key) {
|
|
198
|
+
if (key === "default" || key === "__esModule") return;
|
|
199
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
200
|
+
if (key in exports && exports[key] === _useTableFilter[key]) return;
|
|
201
|
+
Object.defineProperty(exports, key, {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function get() {
|
|
204
|
+
return _useTableFilter[key];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
var _useDynamicColumns = require("./useDynamicColumns");
|
|
209
|
+
Object.keys(_useDynamicColumns).forEach(function (key) {
|
|
210
|
+
if (key === "default" || key === "__esModule") return;
|
|
211
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
212
|
+
if (key in exports && exports[key] === _useDynamicColumns[key]) return;
|
|
213
|
+
Object.defineProperty(exports, key, {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function get() {
|
|
216
|
+
return _useDynamicColumns[key];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|