@wix/auto-patterns 1.43.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/AutoPatternsApp/AutoPatternsApp.js +19 -5
- package/dist/cjs/components/AutoPatternsApp/AutoPatternsApp.js.map +1 -1
- package/dist/cjs/components/AutoPatternsApp/AutoPatternsApp.uni.driver.js +3 -0
- package/dist/cjs/components/AutoPatternsApp/AutoPatternsApp.uni.driver.js.map +1 -1
- package/dist/cjs/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js +29 -74
- package/dist/cjs/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js.map +1 -1
- package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +3 -3
- package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsEntityPage/EditModeEntityPage.js +26 -14
- package/dist/cjs/components/AutoPatternsEntityPage/EditModeEntityPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsEntityPage/ViewModeEntityPage.js +38 -29
- package/dist/cjs/components/AutoPatternsEntityPage/ViewModeEntityPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsEntityPage/index.js +0 -6
- package/dist/cjs/components/AutoPatternsEntityPage/index.js.map +1 -1
- package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js +147 -25
- package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
- package/dist/cjs/components/AutoPatternsRoute/AutoPatternsPage.js +68 -30
- package/dist/cjs/components/AutoPatternsRoute/AutoPatternsPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsRoute/AutoPatternsRoutes.js +8 -7
- package/dist/cjs/components/AutoPatternsRoute/AutoPatternsRoutes.js.map +1 -1
- package/dist/cjs/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.js +165 -0
- package/dist/cjs/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.js.map +1 -0
- package/dist/cjs/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.uni.driver.js +15 -0
- package/dist/cjs/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.uni.driver.js.map +1 -0
- package/dist/cjs/components/AutoPatternsSettingsPage/index.js +10 -0
- package/dist/cjs/components/AutoPatternsSettingsPage/index.js.map +1 -0
- package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js +141 -41
- package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
- package/dist/cjs/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js +169 -9
- package/dist/cjs/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js.map +1 -1
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/Checkbox.js +1 -1
- package/dist/cjs/components/fields/Checkbox.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/DateInput.js +9 -8
- package/dist/cjs/components/fields/DateInput.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/DateTime.js +13 -12
- package/dist/cjs/components/fields/DateTime.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/ImageInput.js +11 -10
- package/dist/cjs/components/fields/ImageInput.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/LongText.js +9 -8
- package/dist/cjs/components/fields/LongText.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/Number.js +9 -8
- package/dist/cjs/components/fields/Number.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/ShortText.js +9 -8
- package/dist/cjs/components/fields/ShortText.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/Url.js +11 -10
- package/dist/cjs/components/fields/Url.js.map +1 -0
- package/dist/cjs/components/fields/index.js +38 -0
- package/dist/cjs/components/fields/index.js.map +1 -0
- package/dist/cjs/components/fields/types.js.map +1 -0
- package/dist/cjs/components/fields/utils/dates.js.map +1 -0
- package/dist/cjs/components/{AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js → layouts/ContentCard.js} +26 -15
- package/dist/cjs/components/layouts/ContentCard.js.map +1 -0
- package/dist/cjs/components/layouts/ContentCardLayout.js +157 -0
- package/dist/cjs/components/layouts/ContentCardLayout.js.map +1 -0
- package/dist/cjs/components/layouts/ContentSkeleton.js +98 -0
- package/dist/cjs/components/layouts/ContentSkeleton.js.map +1 -0
- package/dist/cjs/components/layouts/FormField.js +52 -0
- package/dist/cjs/components/layouts/FormField.js.map +1 -0
- package/dist/cjs/components/layouts/ViewField.js +68 -0
- package/dist/cjs/components/layouts/ViewField.js.map +1 -0
- package/dist/cjs/components/layouts/types.js +4 -0
- package/dist/cjs/components/layouts/types.js.map +1 -0
- package/dist/cjs/hooks/getCommonCollectionFeaturesAsync.js +11 -0
- package/dist/cjs/hooks/getCommonCollectionFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/getFilterComponent.js +52 -0
- package/dist/cjs/hooks/getFilterComponent.js.map +1 -0
- package/dist/cjs/hooks/index.js +4 -11
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/pluginsDynamicImports.js +25 -0
- package/dist/cjs/hooks/pluginsDynamicImports.js.map +1 -0
- package/dist/cjs/hooks/useAsyncFeaturesPromiseState.js +30 -0
- package/dist/cjs/hooks/useAsyncFeaturesPromiseState.js.map +1 -0
- package/dist/cjs/hooks/useBaseCollectionComponentReadyFeatures.js +62 -0
- package/dist/cjs/hooks/useBaseCollectionComponentReadyFeatures.js.map +1 -0
- package/dist/cjs/hooks/useBasePatternsStateParams.js +36 -0
- package/dist/cjs/hooks/useBasePatternsStateParams.js.map +1 -0
- package/dist/cjs/hooks/useBaseTableFeatures.js +2 -1
- package/dist/cjs/hooks/useBaseTableFeatures.js.map +1 -1
- package/dist/cjs/hooks/useCollectionInitAsyncDeps.js +15 -0
- package/dist/cjs/hooks/useCollectionInitAsyncDeps.js.map +1 -0
- package/dist/cjs/hooks/useCommonCollectionFeatures.js +14 -4
- package/dist/cjs/hooks/useCommonCollectionFeatures.js.map +1 -1
- package/dist/cjs/hooks/useFilters.js +17 -103
- package/dist/cjs/hooks/useFilters.js.map +1 -1
- package/dist/cjs/hooks/useFiltersState.js +112 -0
- package/dist/cjs/hooks/useFiltersState.js.map +1 -0
- package/dist/cjs/hooks/useGridFeaturesAsync.js +42 -0
- package/dist/cjs/hooks/useGridFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/useGridVisibleFieldIds.js +17 -0
- package/dist/cjs/hooks/useGridVisibleFieldIds.js.map +1 -0
- package/dist/cjs/hooks/usePagePath.js +4 -1
- package/dist/cjs/hooks/usePagePath.js.map +1 -1
- package/dist/cjs/hooks/useSettingsPageMoreActions.js +36 -0
- package/dist/cjs/hooks/useSettingsPageMoreActions.js.map +1 -0
- package/dist/cjs/hooks/useSyncCollectionStateToAppContext.js +22 -0
- package/dist/cjs/hooks/useSyncCollectionStateToAppContext.js.map +1 -0
- package/dist/cjs/hooks/useTableFeaturesAsync.js +51 -0
- package/dist/cjs/hooks/useTableFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/useTableGridSwitchFeaturesAsync.js +52 -0
- package/dist/cjs/hooks/useTableGridSwitchFeaturesAsync.js.map +1 -0
- package/dist/cjs/hooks/useTableSections.js +18 -0
- package/dist/cjs/hooks/useTableSections.js.map +1 -0
- package/dist/cjs/providers/AutoPatternsOverridesContext.js +1 -1
- package/dist/cjs/providers/AutoPatternsOverridesContext.js.map +1 -1
- package/dist/cjs/types/SettingsPageConfig.js +4 -0
- package/dist/cjs/types/SettingsPageConfig.js.map +1 -0
- package/dist/cjs/types/actions/base.js.map +1 -1
- package/dist/cjs/types/actions/entityPageActions.js.map +1 -1
- package/dist/cjs/types/actions/formPageActions.js +4 -0
- package/dist/cjs/types/actions/formPageActions.js.map +1 -0
- package/dist/cjs/types/actions/index.js +6 -0
- package/dist/cjs/types/actions/index.js.map +1 -1
- package/dist/cjs/types/index.js +6 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/types.js.map +1 -1
- package/dist/cjs/utils/filterCreators.js +16 -31
- package/dist/cjs/utils/filterCreators.js.map +1 -1
- package/dist/cjs/utils/minimalRequiredPatternsRuntimeCheck.js +18 -0
- package/dist/cjs/utils/minimalRequiredPatternsRuntimeCheck.js.map +1 -0
- package/dist/cjs/utils/minimalRequiredRuntimeCheck.js +21 -0
- package/dist/cjs/utils/minimalRequiredRuntimeCheck.js.map +1 -0
- package/dist/esm/components/AutoPatternsApp/AutoPatternsApp.js +14 -1
- package/dist/esm/components/AutoPatternsApp/AutoPatternsApp.js.map +1 -1
- package/dist/esm/components/AutoPatternsApp/AutoPatternsApp.uni.driver.js +4 -1
- package/dist/esm/components/AutoPatternsApp/AutoPatternsApp.uni.driver.js.map +1 -1
- package/dist/esm/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js +23 -31
- package/dist/esm/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js.map +1 -1
- package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +3 -3
- package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsEntityPage/EditModeEntityPage.js +21 -8
- package/dist/esm/components/AutoPatternsEntityPage/EditModeEntityPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsEntityPage/ViewModeEntityPage.js +21 -12
- package/dist/esm/components/AutoPatternsEntityPage/ViewModeEntityPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsEntityPage/index.js +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/index.js.map +1 -1
- package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js +134 -28
- package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
- package/dist/esm/components/AutoPatternsRoute/AutoPatternsPage.js +34 -13
- package/dist/esm/components/AutoPatternsRoute/AutoPatternsPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsRoute/AutoPatternsRoutes.js +2 -1
- package/dist/esm/components/AutoPatternsRoute/AutoPatternsRoutes.js.map +1 -1
- package/dist/esm/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.js +108 -0
- package/dist/esm/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.js.map +1 -0
- package/dist/esm/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.uni.driver.js +10 -0
- package/dist/esm/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.uni.driver.js.map +1 -0
- package/dist/esm/components/AutoPatternsSettingsPage/index.js +2 -0
- package/dist/esm/components/AutoPatternsSettingsPage/index.js.map +1 -0
- package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js +126 -42
- package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
- package/dist/esm/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js +155 -10
- package/dist/esm/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js.map +1 -1
- package/dist/esm/components/fields/Checkbox.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/DateInput.js +7 -6
- package/dist/esm/components/fields/DateInput.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/DateTime.js +7 -6
- package/dist/esm/components/fields/DateTime.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/ImageInput.js +9 -8
- package/dist/esm/components/fields/ImageInput.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/LongText.js +7 -6
- package/dist/esm/components/fields/LongText.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/Number.js +7 -6
- package/dist/esm/components/fields/Number.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/ShortText.js +7 -6
- package/dist/esm/components/fields/ShortText.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/Url.js +7 -6
- package/dist/esm/components/fields/Url.js.map +1 -0
- package/dist/esm/components/fields/index.js +10 -0
- package/dist/esm/components/fields/index.js.map +1 -0
- package/dist/esm/components/fields/types.js.map +1 -0
- package/dist/esm/components/fields/utils/dates.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js → layouts/ContentCard.js} +19 -8
- package/dist/esm/components/layouts/ContentCard.js.map +1 -0
- package/dist/esm/components/{AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js → layouts/ContentCardLayout.js} +38 -19
- package/dist/esm/components/layouts/ContentCardLayout.js.map +1 -0
- package/dist/esm/components/layouts/ContentSkeleton.js +47 -0
- package/dist/esm/components/layouts/ContentSkeleton.js.map +1 -0
- package/dist/esm/components/layouts/FormField.js +40 -0
- package/dist/esm/components/layouts/FormField.js.map +1 -0
- package/dist/esm/components/layouts/ViewField.js +43 -0
- package/dist/esm/components/layouts/ViewField.js.map +1 -0
- package/dist/esm/components/layouts/types.js +2 -0
- package/dist/esm/components/layouts/types.js.map +1 -0
- package/dist/esm/hooks/getCommonCollectionFeaturesAsync.js +7 -0
- package/dist/esm/hooks/getCommonCollectionFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/getFilterComponent.js +48 -0
- package/dist/esm/hooks/getFilterComponent.js.map +1 -0
- package/dist/esm/hooks/index.js +1 -2
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/pluginsDynamicImports.js +13 -0
- package/dist/esm/hooks/pluginsDynamicImports.js.map +1 -0
- package/dist/esm/hooks/useAsyncFeaturesPromiseState.js +28 -0
- package/dist/esm/hooks/useAsyncFeaturesPromiseState.js.map +1 -0
- package/dist/esm/hooks/useBaseCollectionComponentReadyFeatures.js +58 -0
- package/dist/esm/hooks/useBaseCollectionComponentReadyFeatures.js.map +1 -0
- package/dist/esm/hooks/useBasePatternsStateParams.js +32 -0
- package/dist/esm/hooks/useBasePatternsStateParams.js.map +1 -0
- package/dist/esm/hooks/useBaseTableFeatures.js +1 -0
- package/dist/esm/hooks/useBaseTableFeatures.js.map +1 -1
- package/dist/esm/hooks/useCollectionInitAsyncDeps.js +11 -0
- package/dist/esm/hooks/useCollectionInitAsyncDeps.js.map +1 -0
- package/dist/esm/hooks/useCommonCollectionFeatures.js +1 -0
- package/dist/esm/hooks/useCommonCollectionFeatures.js.map +1 -1
- package/dist/esm/hooks/useFilters.js +14 -100
- package/dist/esm/hooks/useFilters.js.map +1 -1
- package/dist/esm/hooks/useFiltersState.js +107 -0
- package/dist/esm/hooks/useFiltersState.js.map +1 -0
- package/dist/esm/hooks/useGridFeaturesAsync.js +37 -0
- package/dist/esm/hooks/useGridFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/useGridVisibleFieldIds.js +13 -0
- package/dist/esm/hooks/useGridVisibleFieldIds.js.map +1 -0
- package/dist/esm/hooks/usePagePath.js +4 -1
- package/dist/esm/hooks/usePagePath.js.map +1 -1
- package/dist/esm/hooks/useSettingsPageMoreActions.js +32 -0
- package/dist/esm/hooks/useSettingsPageMoreActions.js.map +1 -0
- package/dist/esm/hooks/useSyncCollectionStateToAppContext.js +18 -0
- package/dist/esm/hooks/useSyncCollectionStateToAppContext.js.map +1 -0
- package/dist/esm/hooks/useTableFeaturesAsync.js +46 -0
- package/dist/esm/hooks/useTableFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/useTableGridSwitchFeaturesAsync.js +47 -0
- package/dist/esm/hooks/useTableGridSwitchFeaturesAsync.js.map +1 -0
- package/dist/esm/hooks/useTableSections.js +14 -0
- package/dist/esm/hooks/useTableSections.js.map +1 -0
- package/dist/esm/providers/AutoPatternsOverridesContext.js.map +1 -1
- package/dist/esm/types/SettingsPageConfig.js +2 -0
- package/dist/esm/types/SettingsPageConfig.js.map +1 -0
- package/dist/esm/types/actions/base.js.map +1 -1
- package/dist/esm/types/actions/entityPageActions.js.map +1 -1
- package/dist/esm/types/actions/formPageActions.js +2 -0
- package/dist/esm/types/actions/formPageActions.js.map +1 -0
- package/dist/esm/types/actions/index.js +1 -0
- package/dist/esm/types/actions/index.js.map +1 -1
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/types.js.map +1 -1
- package/dist/esm/utils/filterCreators.js +17 -32
- package/dist/esm/utils/filterCreators.js.map +1 -1
- package/dist/esm/utils/minimalRequiredPatternsRuntimeCheck.js +14 -0
- package/dist/esm/utils/minimalRequiredPatternsRuntimeCheck.js.map +1 -0
- package/dist/esm/utils/minimalRequiredRuntimeCheck.js +17 -0
- package/dist/esm/utils/minimalRequiredRuntimeCheck.js.map +1 -0
- package/dist/types/components/AutoPatternsApp/AutoPatternsApp.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsApp/AutoPatternsApp.uni.driver.d.ts +4 -1
- package/dist/types/components/AutoPatternsApp/AutoPatternsApp.uni.driver.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.d.ts +6 -0
- package/dist/types/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsEntityPage/EditModeEntityPage.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsEntityPage/ViewModeEntityPage.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsEntityPage/index.d.ts +0 -1
- package/dist/types/components/AutoPatternsEntityPage/index.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts +17 -2
- package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsRoute/AutoPatternsPage.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsRoute/AutoPatternsRoutes.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.d.ts +6 -0
- package/dist/types/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.uni.driver.d.ts +145 -0
- package/dist/types/components/AutoPatternsSettingsPage/AutoPatternsSettingsPage.uni.driver.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsSettingsPage/index.d.ts +2 -0
- package/dist/types/components/AutoPatternsSettingsPage/index.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts +17 -2
- package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.d.ts +18 -2
- package/dist/types/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.d.ts.map +1 -1
- package/dist/types/components/fields/Checkbox.d.ts.map +1 -0
- package/dist/types/components/fields/DateInput.d.ts.map +1 -0
- package/dist/types/components/fields/DateTime.d.ts.map +1 -0
- package/dist/types/components/fields/ImageInput.d.ts.map +1 -0
- package/dist/types/components/fields/LongText.d.ts.map +1 -0
- package/dist/types/components/fields/Number.d.ts.map +1 -0
- package/dist/types/components/fields/ShortText.d.ts.map +1 -0
- package/dist/types/components/fields/Url.d.ts.map +1 -0
- package/dist/types/components/fields/index.d.ts +10 -0
- package/dist/types/components/fields/index.d.ts.map +1 -0
- package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/types.d.ts +4 -1
- package/dist/types/components/fields/types.d.ts.map +1 -0
- package/dist/types/components/fields/utils/dates.d.ts.map +1 -0
- package/dist/types/components/layouts/ContentCard.d.ts +17 -0
- package/dist/types/components/layouts/ContentCard.d.ts.map +1 -0
- package/dist/types/components/layouts/ContentCardLayout.d.ts +18 -0
- package/dist/types/components/layouts/ContentCardLayout.d.ts.map +1 -0
- package/dist/types/components/layouts/ContentSkeleton.d.ts +9 -0
- package/dist/types/components/layouts/ContentSkeleton.d.ts.map +1 -0
- package/dist/types/components/layouts/FormField.d.ts +13 -0
- package/dist/types/components/layouts/FormField.d.ts.map +1 -0
- package/dist/types/components/layouts/ViewField.d.ts +8 -0
- package/dist/types/components/layouts/ViewField.d.ts.map +1 -0
- package/dist/types/components/layouts/types.d.ts +3 -0
- package/dist/types/components/layouts/types.d.ts.map +1 -0
- package/dist/types/hooks/getCommonCollectionFeaturesAsync.d.ts +4 -0
- package/dist/types/hooks/getCommonCollectionFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/getFilterComponent.d.ts +4 -0
- package/dist/types/hooks/getFilterComponent.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +1 -2
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/pluginsDynamicImports.d.ts +7 -0
- package/dist/types/hooks/pluginsDynamicImports.d.ts.map +1 -0
- package/dist/types/hooks/useAsyncFeaturesPromiseState.d.ts +6 -0
- package/dist/types/hooks/useAsyncFeaturesPromiseState.d.ts.map +1 -0
- package/dist/types/hooks/useBaseCollectionComponentReadyFeatures.d.ts +36 -0
- package/dist/types/hooks/useBaseCollectionComponentReadyFeatures.d.ts.map +1 -0
- package/dist/types/hooks/useBasePatternsStateParams.d.ts +31 -0
- package/dist/types/hooks/useBasePatternsStateParams.d.ts.map +1 -0
- package/dist/types/hooks/useBaseTableFeatures.d.ts +2 -0
- package/dist/types/hooks/useBaseTableFeatures.d.ts.map +1 -1
- package/dist/types/hooks/useCollectionInitAsyncDeps.d.ts +4 -0
- package/dist/types/hooks/useCollectionInitAsyncDeps.d.ts.map +1 -0
- package/dist/types/hooks/useCommonCollectionFeatures.d.ts +1 -0
- package/dist/types/hooks/useCommonCollectionFeatures.d.ts.map +1 -1
- package/dist/types/hooks/useFilters.d.ts +9 -21
- package/dist/types/hooks/useFilters.d.ts.map +1 -1
- package/dist/types/hooks/useFiltersState.d.ts +26 -0
- package/dist/types/hooks/useFiltersState.d.ts.map +1 -0
- package/dist/types/hooks/useGridDragAndDrop.d.ts +1 -1
- package/dist/types/hooks/useGridFeaturesAsync.d.ts +26 -0
- package/dist/types/hooks/useGridFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/useGridVisibleFieldIds.d.ts +3 -0
- package/dist/types/hooks/useGridVisibleFieldIds.d.ts.map +1 -0
- package/dist/types/hooks/usePagePath.d.ts.map +1 -1
- package/dist/types/hooks/useSettingsPageMoreActions.d.ts +5 -0
- package/dist/types/hooks/useSettingsPageMoreActions.d.ts.map +1 -0
- package/dist/types/hooks/useSyncCollectionStateToAppContext.d.ts +6 -0
- package/dist/types/hooks/useSyncCollectionStateToAppContext.d.ts.map +1 -0
- package/dist/types/hooks/useTableFeaturesAsync.d.ts +29 -0
- package/dist/types/hooks/useTableFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/useTableGridSwitchDragAndDrop.d.ts +1 -1
- package/dist/types/hooks/useTableGridSwitchFeaturesAsync.d.ts +29 -0
- package/dist/types/hooks/useTableGridSwitchFeaturesAsync.d.ts.map +1 -0
- package/dist/types/hooks/useTableSections.d.ts +8 -0
- package/dist/types/hooks/useTableSections.d.ts.map +1 -0
- package/dist/types/providers/AutoPatternsOverridesContext.d.ts +2 -2
- package/dist/types/providers/AutoPatternsOverridesContext.d.ts.map +1 -1
- package/dist/types/testkit/enzyme.d.ts +1 -0
- package/dist/types/testkit/enzyme.d.ts.map +1 -1
- package/dist/types/testkit/jsdom.d.ts +1 -0
- package/dist/types/testkit/jsdom.d.ts.map +1 -1
- package/dist/types/testkit/playwright.d.ts +1 -0
- package/dist/types/testkit/playwright.d.ts.map +1 -1
- package/dist/types/testkit/puppeteer.d.ts +1 -0
- package/dist/types/testkit/puppeteer.d.ts.map +1 -1
- package/dist/types/types/SettingsPageConfig.d.ts +140 -0
- package/dist/types/types/SettingsPageConfig.d.ts.map +1 -0
- package/dist/types/types/actions/base.d.ts +1 -0
- package/dist/types/types/actions/base.d.ts.map +1 -1
- package/dist/types/types/actions/entityPageActions.d.ts +2 -7
- package/dist/types/types/actions/entityPageActions.d.ts.map +1 -1
- package/dist/types/types/actions/formPageActions.d.ts +8 -0
- package/dist/types/types/actions/formPageActions.d.ts.map +1 -0
- package/dist/types/types/actions/index.d.ts +1 -0
- package/dist/types/types/actions/index.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/types.d.ts +20 -1
- package/dist/types/types/types.d.ts.map +1 -1
- package/dist/types/utils/filterCreators.d.ts +10 -19
- package/dist/types/utils/filterCreators.d.ts.map +1 -1
- package/dist/types/utils/minimalRequiredPatternsRuntimeCheck.d.ts +5 -0
- package/dist/types/utils/minimalRequiredPatternsRuntimeCheck.d.ts.map +1 -0
- package/dist/types/utils/minimalRequiredRuntimeCheck.d.ts +9 -0
- package/dist/types/utils/minimalRequiredRuntimeCheck.d.ts.map +1 -0
- package/docs/GETTING_STARTED.md +73 -18
- package/mcp-docs/app_config_structure.md +66 -3
- package/mcp-docs/auto-patterns-guide.md +86 -6
- package/mcp-docs/index.md +4 -0
- package/mcp-docs/pages_configuration.md +20 -3
- package/mcp-docs/settings_page.md +599 -0
- package/package.json +14 -13
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/Checkbox.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/DateInput.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/DateTime.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/FormFieldInput.js +0 -59
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/FormFieldInput.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/ImageInput.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/LongText.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/Number.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/ShortText.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/Url.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/types.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/Fields/utils/dates.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js +0 -119
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js +0 -79
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/index.js +0 -16
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/index.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/SkeletonEntity.js +0 -198
- package/dist/cjs/components/AutoPatternsEntityPage/SkeletonEntity.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js +0 -77
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js.map +0 -1
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js +0 -109
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js.map +0 -1
- package/dist/cjs/hooks/useGridFeatures.js +0 -63
- package/dist/cjs/hooks/useGridFeatures.js.map +0 -1
- package/dist/cjs/hooks/useTableFeatures.js +0 -79
- package/dist/cjs/hooks/useTableFeatures.js.map +0 -1
- package/dist/cjs/hooks/useTableGridSwitchFeatures.js +0 -83
- package/dist/cjs/hooks/useTableGridSwitchFeatures.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/Checkbox.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/DateInput.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/DateTime.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/FormFieldInput.js +0 -46
- package/dist/esm/components/AutoPatternsEntityPage/Fields/FormFieldInput.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/ImageInput.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/LongText.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/Number.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/ShortText.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/Url.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/types.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/Fields/utils/dates.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js +0 -48
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/index.js +0 -3
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/index.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/SkeletonEntity.js +0 -91
- package/dist/esm/components/AutoPatternsEntityPage/SkeletonEntity.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js +0 -31
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js.map +0 -1
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js +0 -66
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js.map +0 -1
- package/dist/esm/hooks/useGridFeatures.js +0 -58
- package/dist/esm/hooks/useGridFeatures.js.map +0 -1
- package/dist/esm/hooks/useTableFeatures.js +0 -74
- package/dist/esm/hooks/useTableFeatures.js.map +0 -1
- package/dist/esm/hooks/useTableGridSwitchFeatures.js +0 -78
- package/dist/esm/hooks/useTableGridSwitchFeatures.js.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/Checkbox.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/DateInput.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/DateTime.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/FormFieldInput.d.ts +0 -10
- package/dist/types/components/AutoPatternsEntityPage/Fields/FormFieldInput.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/ImageInput.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/LongText.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/Number.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/ShortText.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/Url.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/types.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/Fields/utils/dates.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.d.ts +0 -11
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.d.ts +0 -13
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.d.ts +0 -8
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/index.d.ts +0 -3
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/index.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/SkeletonEntity.d.ts +0 -7
- package/dist/types/components/AutoPatternsEntityPage/SkeletonEntity.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.d.ts +0 -8
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.d.ts.map +0 -1
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.d.ts +0 -8
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.d.ts.map +0 -1
- package/dist/types/hooks/useGridFeatures.d.ts +0 -43
- package/dist/types/hooks/useGridFeatures.d.ts.map +0 -1
- package/dist/types/hooks/useTableFeatures.d.ts +0 -27
- package/dist/types/hooks/useTableFeatures.d.ts.map +0 -1
- package/dist/types/hooks/useTableGridSwitchFeatures.d.ts +0 -52
- package/dist/types/hooks/useTableGridSwitchFeatures.d.ts.map +0 -1
- /package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/types.js +0 -0
- /package/dist/cjs/components/{AutoPatternsEntityPage/Fields → fields}/utils/dates.js +0 -0
- /package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/Checkbox.js +0 -0
- /package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/types.js +0 -0
- /package/dist/esm/components/{AutoPatternsEntityPage/Fields → fields}/utils/dates.js +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/Checkbox.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/DateInput.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/DateTime.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/ImageInput.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/LongText.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/Number.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/ShortText.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/Url.d.ts +0 -0
- /package/dist/types/components/{AutoPatternsEntityPage/Fields → fields}/utils/dates.d.ts +0 -0
package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Cell, Layout } from '@wix/design-system';
|
|
3
|
-
import { useSchema } from '../../../providers/SchemaContext';
|
|
4
|
-
import { useAutoPatternsOverridesContext } from '../../../providers';
|
|
5
|
-
import { RenderViewField } from '../RenderLayout/RenderViewField';
|
|
6
|
-
// TODO: remove this component and use RenderLayoutContent instead
|
|
7
|
-
export const RenderViewLayoutContent = _ref => {
|
|
8
|
-
var _content$container$ch, _overrides$components;
|
|
9
|
-
let {
|
|
10
|
-
entity,
|
|
11
|
-
content,
|
|
12
|
-
level,
|
|
13
|
-
sectionId,
|
|
14
|
-
cardIndex,
|
|
15
|
-
contentIndex
|
|
16
|
-
} = _ref;
|
|
17
|
-
const schema = useSchema();
|
|
18
|
-
const overrides = useAutoPatternsOverridesContext();
|
|
19
|
-
switch (content.type) {
|
|
20
|
-
case 'field':
|
|
21
|
-
if (!content.field.fieldId) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
const field = schema.fields[content.field.fieldId];
|
|
25
|
-
if (!field) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return /*#__PURE__*/React.createElement(RenderViewField, {
|
|
29
|
-
field: field,
|
|
30
|
-
fieldId: content.field.fieldId,
|
|
31
|
-
entity: entity,
|
|
32
|
-
span: content.field.span
|
|
33
|
-
});
|
|
34
|
-
case 'container':
|
|
35
|
-
if (!((_content$container$ch = content.container.children) != null && _content$container$ch.length)) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return /*#__PURE__*/React.createElement(Cell, {
|
|
39
|
-
span: content.container.span
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Layout, null, content.container.children.map((child, index) => /*#__PURE__*/React.createElement(RenderViewLayoutContent, {
|
|
41
|
-
key: `${sectionId}-card-${cardIndex}-content-${contentIndex}-level-${level}-child-${index}`,
|
|
42
|
-
entity: entity,
|
|
43
|
-
content: child,
|
|
44
|
-
level: level + 1,
|
|
45
|
-
sectionId: sectionId,
|
|
46
|
-
cardIndex: cardIndex,
|
|
47
|
-
contentIndex: index
|
|
48
|
-
}))));
|
|
49
|
-
case 'component':
|
|
50
|
-
if (!content.component.componentId) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const Component = overrides == null || (_overrides$components = overrides.components) == null ? void 0 : _overrides$components[content.component.componentId];
|
|
54
|
-
if (!Component) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
return /*#__PURE__*/React.createElement(Cell, {
|
|
58
|
-
span: content.component.span
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Component, {
|
|
60
|
-
entity: entity
|
|
61
|
-
}));
|
|
62
|
-
default:
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=RenderViewLayoutContent.js.map
|
package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Cell","Layout","useSchema","useAutoPatternsOverridesContext","RenderViewField","RenderViewLayoutContent","_ref","_content$container$ch","_overrides$components","entity","content","level","sectionId","cardIndex","contentIndex","schema","overrides","type","field","fieldId","fields","createElement","span","container","children","length","map","child","index","key","component","componentId","Component","components"],"sources":["../../../../../src/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.tsx"],"sourcesContent":["import React from 'react';\nimport { Cell, Layout } from '@wix/design-system';\nimport { useSchema } from '../../../providers/SchemaContext';\nimport { useAutoPatternsOverridesContext } from '../../../providers';\nimport { RenderViewField } from '../RenderLayout/RenderViewField';\nimport { RenderLayoutContentProps } from '../RenderLayout';\n\ninterface RenderViewLayoutContentProps\n extends Omit<RenderLayoutContentProps, 'setInputRef'> {\n entity: Record<string, any>;\n}\n\n// TODO: remove this component and use RenderLayoutContent instead\nexport const RenderViewLayoutContent: React.FC<\n RenderViewLayoutContentProps\n> = ({ entity, content, level, sectionId, cardIndex, contentIndex }) => {\n const schema = useSchema();\n const overrides = useAutoPatternsOverridesContext();\n\n switch (content.type) {\n case 'field':\n if (!content.field.fieldId) {\n return null;\n }\n\n const field = schema.fields[content.field.fieldId];\n if (!field) {\n return null;\n }\n\n return (\n <RenderViewField\n field={field}\n fieldId={content.field.fieldId}\n entity={entity}\n span={content.field.span}\n />\n );\n\n case 'container':\n if (!content.container.children?.length) {\n return null;\n }\n\n return (\n <Cell span={content.container.span}>\n <Layout>\n {content.container.children.map((child, index) => (\n <RenderViewLayoutContent\n key={`${sectionId}-card-${cardIndex}-content-${contentIndex}-level-${level}-child-${index}`}\n entity={entity}\n content={child}\n level={level + 1}\n sectionId={sectionId}\n cardIndex={cardIndex}\n contentIndex={index}\n />\n ))}\n </Layout>\n </Cell>\n );\n\n case 'component':\n if (!content.component.componentId) {\n return null;\n }\n\n const Component = overrides?.components?.[content.component.componentId];\n if (!Component) {\n return null;\n }\n\n return (\n <Cell span={content.component.span}>\n <Component entity={entity} />\n </Cell>\n );\n\n default:\n return null;\n }\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,MAAM,QAAQ,oBAAoB;AACjD,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,+BAA+B,QAAQ,oBAAoB;AACpE,SAASC,eAAe,QAAQ,iCAAiC;AAQjE;AACA,OAAO,MAAMC,uBAEZ,GAAGC,IAAA,IAAoE;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EAAA,IAAnE;IAAEC,MAAM;IAAEC,OAAO;IAAEC,KAAK;IAAEC,SAAS;IAAEC,SAAS;IAAEC;EAAa,CAAC,GAAAR,IAAA;EACjE,MAAMS,MAAM,GAAGb,SAAS,CAAC,CAAC;EAC1B,MAAMc,SAAS,GAAGb,+BAA+B,CAAC,CAAC;EAEnD,QAAQO,OAAO,CAACO,IAAI;IAClB,KAAK,OAAO;MACV,IAAI,CAACP,OAAO,CAACQ,KAAK,CAACC,OAAO,EAAE;QAC1B,OAAO,IAAI;MACb;MAEA,MAAMD,KAAK,GAAGH,MAAM,CAACK,MAAM,CAACV,OAAO,CAACQ,KAAK,CAACC,OAAO,CAAC;MAClD,IAAI,CAACD,KAAK,EAAE;QACV,OAAO,IAAI;MACb;MAEA,oBACEnB,KAAA,CAAAsB,aAAA,CAACjB,eAAe;QACdc,KAAK,EAAEA,KAAM;QACbC,OAAO,EAAET,OAAO,CAACQ,KAAK,CAACC,OAAQ;QAC/BV,MAAM,EAAEA,MAAO;QACfa,IAAI,EAAEZ,OAAO,CAACQ,KAAK,CAACI;MAAK,CAC1B,CAAC;IAGN,KAAK,WAAW;MACd,IAAI,GAAAf,qBAAA,GAACG,OAAO,CAACa,SAAS,CAACC,QAAQ,aAA1BjB,qBAAA,CAA4BkB,MAAM,GAAE;QACvC,OAAO,IAAI;MACb;MAEA,oBACE1B,KAAA,CAAAsB,aAAA,CAACrB,IAAI;QAACsB,IAAI,EAAEZ,OAAO,CAACa,SAAS,CAACD;MAAK,gBACjCvB,KAAA,CAAAsB,aAAA,CAACpB,MAAM,QACJS,OAAO,CAACa,SAAS,CAACC,QAAQ,CAACE,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,kBAC3C7B,KAAA,CAAAsB,aAAA,CAAChB,uBAAuB;QACtBwB,GAAG,EAAE,GAAGjB,SAAS,SAASC,SAAS,YAAYC,YAAY,UAAUH,KAAK,UAAUiB,KAAK,EAAG;QAC5FnB,MAAM,EAAEA,MAAO;QACfC,OAAO,EAAEiB,KAAM;QACfhB,KAAK,EAAEA,KAAK,GAAG,CAAE;QACjBC,SAAS,EAAEA,SAAU;QACrBC,SAAS,EAAEA,SAAU;QACrBC,YAAY,EAAEc;MAAM,CACrB,CACF,CACK,CACJ,CAAC;IAGX,KAAK,WAAW;MACd,IAAI,CAAClB,OAAO,CAACoB,SAAS,CAACC,WAAW,EAAE;QAClC,OAAO,IAAI;MACb;MAEA,MAAMC,SAAS,GAAGhB,SAAS,aAAAR,qBAAA,GAATQ,SAAS,CAAEiB,UAAU,qBAArBzB,qBAAA,CAAwBE,OAAO,CAACoB,SAAS,CAACC,WAAW,CAAC;MACxE,IAAI,CAACC,SAAS,EAAE;QACd,OAAO,IAAI;MACb;MAEA,oBACEjC,KAAA,CAAAsB,aAAA,CAACrB,IAAI;QAACsB,IAAI,EAAEZ,OAAO,CAACoB,SAAS,CAACR;MAAK,gBACjCvB,KAAA,CAAAsB,aAAA,CAACW,SAAS;QAACvB,MAAM,EAAEA;MAAO,CAAE,CACxB,CAAC;IAGX;MACE,OAAO,IAAI;EACf;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { useFetchData } from './useFetchData';
|
|
2
|
-
import { useGridCollection, useSelector } from '@wix/patterns';
|
|
3
|
-
import { useCommonCollectionFeatures } from './useCommonCollectionFeatures';
|
|
4
|
-
import { useFilters } from './useFilters';
|
|
5
|
-
import { useBaseGridFeatures } from './useBaseGridFeatures';
|
|
6
|
-
import { useBaseCollectionParams } from './useBaseCollectionParams';
|
|
7
|
-
import { useAppContextSync } from './useAppContextSync';
|
|
8
|
-
import { useCallback } from 'react';
|
|
9
|
-
import { useGridDragAndDrop } from './useGridDragAndDrop';
|
|
10
|
-
export const useGridFeatures = configuration => {
|
|
11
|
-
const {
|
|
12
|
-
renderItem,
|
|
13
|
-
imagePlacement,
|
|
14
|
-
preset,
|
|
15
|
-
visibleFieldIds
|
|
16
|
-
} = useBaseGridFeatures(configuration);
|
|
17
|
-
const {
|
|
18
|
-
filterComponent,
|
|
19
|
-
filtersObject,
|
|
20
|
-
filterFieldMapping
|
|
21
|
-
} = useFilters(configuration.filters);
|
|
22
|
-
const {
|
|
23
|
-
fetchData
|
|
24
|
-
} = useFetchData({
|
|
25
|
-
searchableFieldIds: visibleFieldIds,
|
|
26
|
-
filterFieldMapping
|
|
27
|
-
});
|
|
28
|
-
const params = useBaseCollectionParams({
|
|
29
|
-
config: configuration.collection,
|
|
30
|
-
fetchData,
|
|
31
|
-
filters: filtersObject
|
|
32
|
-
});
|
|
33
|
-
const dragAndDropProps = useGridDragAndDrop(configuration);
|
|
34
|
-
const state = useGridCollection(params);
|
|
35
|
-
const items = useSelector(() => state.collection.result.items);
|
|
36
|
-
const refreshCollection = useCallback(() => {
|
|
37
|
-
return () => {
|
|
38
|
-
return state.collection.clearResultAndMoveToStart({
|
|
39
|
-
force: true
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
}, [state.collection]);
|
|
43
|
-
useAppContextSync(items, refreshCollection);
|
|
44
|
-
const commonFeatures = useCommonCollectionFeatures({
|
|
45
|
-
...configuration,
|
|
46
|
-
collectionState: state.collection
|
|
47
|
-
});
|
|
48
|
-
return {
|
|
49
|
-
...commonFeatures,
|
|
50
|
-
state,
|
|
51
|
-
imagePlacement,
|
|
52
|
-
preset,
|
|
53
|
-
renderItem,
|
|
54
|
-
filters: filterComponent,
|
|
55
|
-
dragAndDropProps
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=useGridFeatures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useFetchData","useGridCollection","useSelector","useCommonCollectionFeatures","useFilters","useBaseGridFeatures","useBaseCollectionParams","useAppContextSync","useCallback","useGridDragAndDrop","useGridFeatures","configuration","renderItem","imagePlacement","preset","visibleFieldIds","filterComponent","filtersObject","filterFieldMapping","filters","fetchData","searchableFieldIds","params","config","collection","dragAndDropProps","state","items","result","refreshCollection","clearResultAndMoveToStart","force","commonFeatures","collectionState"],"sources":["../../../src/hooks/useGridFeatures.tsx"],"sourcesContent":["import { GridConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useGridCollection, useSelector } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useBaseGridFeatures } from './useBaseGridFeatures';\nimport { useBaseCollectionParams } from './useBaseCollectionParams';\nimport { useAppContextSync } from './useAppContextSync';\nimport { useCallback } from 'react';\nimport { useGridDragAndDrop } from './useGridDragAndDrop';\n\nexport const useGridFeatures = (configuration: GridConfig) => {\n const { renderItem, imagePlacement, preset, visibleFieldIds } =\n useBaseGridFeatures(configuration);\n\n const { filterComponent, filtersObject, filterFieldMapping } = useFilters(\n configuration.filters,\n );\n\n const { fetchData } = useFetchData({\n searchableFieldIds: visibleFieldIds,\n filterFieldMapping,\n });\n\n const params = useBaseCollectionParams({\n config: configuration.collection,\n fetchData,\n filters: filtersObject,\n });\n\n const dragAndDropProps = useGridDragAndDrop(configuration);\n\n const state = useGridCollection<any>(params);\n const items = useSelector(() => state.collection.result.items);\n\n const refreshCollection = useCallback(() => {\n return () => {\n return state.collection.clearResultAndMoveToStart({ force: true });\n };\n }, [state.collection]);\n\n useAppContextSync(items, refreshCollection);\n\n const commonFeatures = useCommonCollectionFeatures({\n ...configuration,\n collectionState: state.collection,\n });\n\n return {\n ...commonFeatures,\n state,\n imagePlacement,\n preset,\n renderItem,\n filters: filterComponent,\n dragAndDropProps,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,iBAAiB,EAAEC,WAAW,QAAQ,eAAe;AAC9D,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,OAAO,MAAMC,eAAe,GAAIC,aAAyB,IAAK;EAC5D,MAAM;IAAEC,UAAU;IAAEC,cAAc;IAAEC,MAAM;IAAEC;EAAgB,CAAC,GAC3DV,mBAAmB,CAACM,aAAa,CAAC;EAEpC,MAAM;IAAEK,eAAe;IAAEC,aAAa;IAAEC;EAAmB,CAAC,GAAGd,UAAU,CACvEO,aAAa,CAACQ,OAChB,CAAC;EAED,MAAM;IAAEC;EAAU,CAAC,GAAGpB,YAAY,CAAC;IACjCqB,kBAAkB,EAAEN,eAAe;IACnCG;EACF,CAAC,CAAC;EAEF,MAAMI,MAAM,GAAGhB,uBAAuB,CAAC;IACrCiB,MAAM,EAAEZ,aAAa,CAACa,UAAU;IAChCJ,SAAS;IACTD,OAAO,EAAEF;EACX,CAAC,CAAC;EAEF,MAAMQ,gBAAgB,GAAGhB,kBAAkB,CAACE,aAAa,CAAC;EAE1D,MAAMe,KAAK,GAAGzB,iBAAiB,CAAMqB,MAAM,CAAC;EAC5C,MAAMK,KAAK,GAAGzB,WAAW,CAAC,MAAMwB,KAAK,CAACF,UAAU,CAACI,MAAM,CAACD,KAAK,CAAC;EAE9D,MAAME,iBAAiB,GAAGrB,WAAW,CAAC,MAAM;IAC1C,OAAO,MAAM;MACX,OAAOkB,KAAK,CAACF,UAAU,CAACM,yBAAyB,CAAC;QAAEC,KAAK,EAAE;MAAK,CAAC,CAAC;IACpE,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAACF,UAAU,CAAC,CAAC;EAEtBjB,iBAAiB,CAACoB,KAAK,EAAEE,iBAAiB,CAAC;EAE3C,MAAMG,cAAc,GAAG7B,2BAA2B,CAAC;IACjD,GAAGQ,aAAa;IAChBsB,eAAe,EAAEP,KAAK,CAACF;EACzB,CAAC,CAAC;EAEF,OAAO;IACL,GAAGQ,cAAc;IACjBN,KAAK;IACLb,cAAc;IACdC,MAAM;IACNF,UAAU;IACVO,OAAO,EAAEH,eAAe;IACxBS;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { useFetchData } from './useFetchData';
|
|
2
|
-
import { TableSections, useSelector, useTableCollection } from '@wix/patterns';
|
|
3
|
-
import { useCommonCollectionFeatures } from './useCommonCollectionFeatures';
|
|
4
|
-
import { useFilters } from './useFilters';
|
|
5
|
-
import { useBaseTableFeatures } from './useBaseTableFeatures';
|
|
6
|
-
import { useAutoPatternsOverridesContext } from '../providers/AutoPatternsOverridesContext';
|
|
7
|
-
import { useBaseCollectionParams } from './useBaseCollectionParams';
|
|
8
|
-
import { useAppContextSync } from './useAppContextSync';
|
|
9
|
-
import { useCallback } from 'react';
|
|
10
|
-
import { useTableDragAndDrop } from './useTableDragAndDrop';
|
|
11
|
-
export const useTableFeatures = configuration => {
|
|
12
|
-
var _configuration$sectio, _overrides$sections;
|
|
13
|
-
const {
|
|
14
|
-
filterComponent,
|
|
15
|
-
filtersObject,
|
|
16
|
-
filterFieldMapping
|
|
17
|
-
} = useFilters(configuration.filters);
|
|
18
|
-
const {
|
|
19
|
-
customColumns,
|
|
20
|
-
visibleFieldIds,
|
|
21
|
-
columns,
|
|
22
|
-
onRowClick,
|
|
23
|
-
stickyColumns,
|
|
24
|
-
stickySelectionColumn,
|
|
25
|
-
showTitleBar,
|
|
26
|
-
dataExtension
|
|
27
|
-
} = useBaseTableFeatures(configuration);
|
|
28
|
-
const {
|
|
29
|
-
fetchData
|
|
30
|
-
} = useFetchData({
|
|
31
|
-
searchableFieldIds: visibleFieldIds,
|
|
32
|
-
filterFieldMapping
|
|
33
|
-
});
|
|
34
|
-
const dragAndDropProps = useTableDragAndDrop(configuration);
|
|
35
|
-
const overrides = useAutoPatternsOverridesContext();
|
|
36
|
-
const params = useBaseCollectionParams({
|
|
37
|
-
config: configuration.collection,
|
|
38
|
-
fetchData,
|
|
39
|
-
filters: filtersObject
|
|
40
|
-
});
|
|
41
|
-
const state = useTableCollection(params);
|
|
42
|
-
const items = useSelector(() => state.collection.result.items);
|
|
43
|
-
const refreshCollection = useCallback(() => {
|
|
44
|
-
return () => {
|
|
45
|
-
return state.collection.clearResultAndMoveToStart({
|
|
46
|
-
force: true
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
}, [state.collection]);
|
|
50
|
-
useAppContextSync(items, refreshCollection);
|
|
51
|
-
const commonFeatures = useCommonCollectionFeatures({
|
|
52
|
-
...configuration,
|
|
53
|
-
collectionState: state.collection
|
|
54
|
-
});
|
|
55
|
-
const sections = (_configuration$sectio = configuration.sections) != null && _configuration$sectio.id && overrides != null && (_overrides$sections = overrides.sections) != null && _overrides$sections[configuration.sections.id] ? {
|
|
56
|
-
renderSection: overrides.sections[configuration.sections.id],
|
|
57
|
-
TableSections
|
|
58
|
-
} : undefined;
|
|
59
|
-
return {
|
|
60
|
-
...commonFeatures,
|
|
61
|
-
state,
|
|
62
|
-
columns,
|
|
63
|
-
filters: filterComponent,
|
|
64
|
-
customColumns,
|
|
65
|
-
dragAndDropProps,
|
|
66
|
-
onRowClick,
|
|
67
|
-
stickyColumns,
|
|
68
|
-
stickySelectionColumn,
|
|
69
|
-
showTitleBar,
|
|
70
|
-
sections,
|
|
71
|
-
dataExtension
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=useTableFeatures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useFetchData","TableSections","useSelector","useTableCollection","useCommonCollectionFeatures","useFilters","useBaseTableFeatures","useAutoPatternsOverridesContext","useBaseCollectionParams","useAppContextSync","useCallback","useTableDragAndDrop","useTableFeatures","configuration","_configuration$sectio","_overrides$sections","filterComponent","filtersObject","filterFieldMapping","filters","customColumns","visibleFieldIds","columns","onRowClick","stickyColumns","stickySelectionColumn","showTitleBar","dataExtension","fetchData","searchableFieldIds","dragAndDropProps","overrides","params","config","collection","state","items","result","refreshCollection","clearResultAndMoveToStart","force","commonFeatures","collectionState","sections","id","renderSection","undefined"],"sources":["../../../src/hooks/useTableFeatures.tsx"],"sourcesContent":["import { TableConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { TableSections, useSelector, useTableCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\nimport { useAutoPatternsOverridesContext } from '../providers/AutoPatternsOverridesContext';\nimport { useBaseCollectionParams } from './useBaseCollectionParams';\nimport { useAppContextSync } from './useAppContextSync';\nimport { useCallback } from 'react';\nimport { useTableDragAndDrop } from './useTableDragAndDrop';\n\nexport const useTableFeatures = (configuration: TableConfig) => {\n const { filterComponent, filtersObject, filterFieldMapping } = useFilters(\n configuration.filters,\n );\n\n const {\n customColumns,\n visibleFieldIds,\n columns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n showTitleBar,\n dataExtension,\n } = useBaseTableFeatures(configuration);\n\n const { fetchData } = useFetchData({\n searchableFieldIds: visibleFieldIds,\n filterFieldMapping,\n });\n\n const dragAndDropProps = useTableDragAndDrop(configuration);\n\n const overrides = useAutoPatternsOverridesContext();\n\n const params = useBaseCollectionParams({\n config: configuration.collection,\n fetchData,\n filters: filtersObject,\n });\n\n const state = useTableCollection<any>(params);\n const items = useSelector(() => state.collection.result.items);\n\n const refreshCollection = useCallback(() => {\n return () => {\n return state.collection.clearResultAndMoveToStart({ force: true });\n };\n }, [state.collection]);\n\n useAppContextSync(items, refreshCollection);\n\n const commonFeatures = useCommonCollectionFeatures({\n ...configuration,\n collectionState: state.collection,\n });\n\n const sections =\n configuration.sections?.id &&\n overrides?.sections?.[configuration.sections.id]\n ? {\n renderSection: overrides.sections[configuration.sections.id],\n TableSections,\n }\n : undefined;\n\n return {\n ...commonFeatures,\n state,\n columns,\n filters: filterComponent,\n customColumns,\n dragAndDropProps,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n showTitleBar,\n sections,\n dataExtension,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,aAAa,EAAEC,WAAW,EAAEC,kBAAkB,QAAQ,eAAe;AAC9E,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,+BAA+B,QAAQ,2CAA2C;AAC3F,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,mBAAmB,QAAQ,uBAAuB;AAE3D,OAAO,MAAMC,gBAAgB,GAAIC,aAA0B,IAAK;EAAA,IAAAC,qBAAA,EAAAC,mBAAA;EAC9D,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAmB,CAAC,GAAGb,UAAU,CACvEQ,aAAa,CAACM,OAChB,CAAC;EAED,MAAM;IACJC,aAAa;IACbC,eAAe;IACfC,OAAO;IACPC,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBC,YAAY;IACZC;EACF,CAAC,GAAGrB,oBAAoB,CAACO,aAAa,CAAC;EAEvC,MAAM;IAAEe;EAAU,CAAC,GAAG5B,YAAY,CAAC;IACjC6B,kBAAkB,EAAER,eAAe;IACnCH;EACF,CAAC,CAAC;EAEF,MAAMY,gBAAgB,GAAGnB,mBAAmB,CAACE,aAAa,CAAC;EAE3D,MAAMkB,SAAS,GAAGxB,+BAA+B,CAAC,CAAC;EAEnD,MAAMyB,MAAM,GAAGxB,uBAAuB,CAAC;IACrCyB,MAAM,EAAEpB,aAAa,CAACqB,UAAU;IAChCN,SAAS;IACTT,OAAO,EAAEF;EACX,CAAC,CAAC;EAEF,MAAMkB,KAAK,GAAGhC,kBAAkB,CAAM6B,MAAM,CAAC;EAC7C,MAAMI,KAAK,GAAGlC,WAAW,CAAC,MAAMiC,KAAK,CAACD,UAAU,CAACG,MAAM,CAACD,KAAK,CAAC;EAE9D,MAAME,iBAAiB,GAAG5B,WAAW,CAAC,MAAM;IAC1C,OAAO,MAAM;MACX,OAAOyB,KAAK,CAACD,UAAU,CAACK,yBAAyB,CAAC;QAAEC,KAAK,EAAE;MAAK,CAAC,CAAC;IACpE,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAACD,UAAU,CAAC,CAAC;EAEtBzB,iBAAiB,CAAC2B,KAAK,EAAEE,iBAAiB,CAAC;EAE3C,MAAMG,cAAc,GAAGrC,2BAA2B,CAAC;IACjD,GAAGS,aAAa;IAChB6B,eAAe,EAAEP,KAAK,CAACD;EACzB,CAAC,CAAC;EAEF,MAAMS,QAAQ,GACZ,CAAA7B,qBAAA,GAAAD,aAAa,CAAC8B,QAAQ,aAAtB7B,qBAAA,CAAwB8B,EAAE,IAC1Bb,SAAS,aAAAhB,mBAAA,GAATgB,SAAS,CAAEY,QAAQ,aAAnB5B,mBAAA,CAAsBF,aAAa,CAAC8B,QAAQ,CAACC,EAAE,CAAC,GAC5C;IACEC,aAAa,EAAEd,SAAS,CAACY,QAAQ,CAAC9B,aAAa,CAAC8B,QAAQ,CAACC,EAAE,CAAC;IAC5D3C;EACF,CAAC,GACD6C,SAAS;EAEf,OAAO;IACL,GAAGL,cAAc;IACjBN,KAAK;IACLb,OAAO;IACPH,OAAO,EAAEH,eAAe;IACxBI,aAAa;IACbU,gBAAgB;IAChBP,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBC,YAAY;IACZiB,QAAQ;IACRhB;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { useFetchData } from './useFetchData';
|
|
2
|
-
import { useSelector, useTableGridSwitchCollection } from '@wix/patterns';
|
|
3
|
-
import { useCommonCollectionFeatures } from './useCommonCollectionFeatures';
|
|
4
|
-
import { useFilters } from './useFilters';
|
|
5
|
-
import { useBaseGridFeatures } from './useBaseGridFeatures';
|
|
6
|
-
import { useBaseTableFeatures } from './useBaseTableFeatures';
|
|
7
|
-
import { useBaseCollectionParams } from './useBaseCollectionParams';
|
|
8
|
-
import { useAppContextSync } from './useAppContextSync';
|
|
9
|
-
import { useCallback } from 'react';
|
|
10
|
-
import { useTableGridSwitchDragAndDrop } from './useTableGridSwitchDragAndDrop';
|
|
11
|
-
export const useTableGridSwitchFeatures = config => {
|
|
12
|
-
const {
|
|
13
|
-
filterComponent,
|
|
14
|
-
filtersObject,
|
|
15
|
-
filterFieldMapping
|
|
16
|
-
} = useFilters(config.filters);
|
|
17
|
-
const {
|
|
18
|
-
preset,
|
|
19
|
-
imagePlacement,
|
|
20
|
-
visibleFieldIds: gridVisibleFieldIds,
|
|
21
|
-
renderItem
|
|
22
|
-
} = useBaseGridFeatures(config);
|
|
23
|
-
const {
|
|
24
|
-
customColumns,
|
|
25
|
-
visibleFieldIds: tableVisibleFieldIds,
|
|
26
|
-
columns: tableColumns,
|
|
27
|
-
onRowClick,
|
|
28
|
-
stickyColumns,
|
|
29
|
-
stickySelectionColumn,
|
|
30
|
-
showTitleBar,
|
|
31
|
-
dataExtension
|
|
32
|
-
} = useBaseTableFeatures(config);
|
|
33
|
-
const {
|
|
34
|
-
fetchData
|
|
35
|
-
} = useFetchData({
|
|
36
|
-
searchableFieldIds: Array.from(new Set([...tableVisibleFieldIds, ...gridVisibleFieldIds])),
|
|
37
|
-
filterFieldMapping
|
|
38
|
-
});
|
|
39
|
-
const params = useBaseCollectionParams({
|
|
40
|
-
config: config.collection,
|
|
41
|
-
fetchData,
|
|
42
|
-
filters: filtersObject
|
|
43
|
-
});
|
|
44
|
-
const dragAndDropProps = useTableGridSwitchDragAndDrop(config);
|
|
45
|
-
const state = useTableGridSwitchCollection(params);
|
|
46
|
-
const items = useSelector(() => state.collection.result.items);
|
|
47
|
-
const refreshCollection = useCallback(() => {
|
|
48
|
-
return () => {
|
|
49
|
-
return state.collection.clearResultAndMoveToStart({
|
|
50
|
-
force: true
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
}, [state.collection]);
|
|
54
|
-
useAppContextSync(items, refreshCollection);
|
|
55
|
-
const commonFeatures = useCommonCollectionFeatures({
|
|
56
|
-
...config,
|
|
57
|
-
collectionState: state.collection
|
|
58
|
-
});
|
|
59
|
-
return {
|
|
60
|
-
...commonFeatures,
|
|
61
|
-
state,
|
|
62
|
-
columns: tableColumns,
|
|
63
|
-
filters: filterComponent,
|
|
64
|
-
customColumns,
|
|
65
|
-
onRowClick,
|
|
66
|
-
stickyColumns,
|
|
67
|
-
stickySelectionColumn,
|
|
68
|
-
horizontalScroll: true,
|
|
69
|
-
// Grid specific features
|
|
70
|
-
imagePlacement,
|
|
71
|
-
preset,
|
|
72
|
-
renderItem,
|
|
73
|
-
showTitleBar,
|
|
74
|
-
dataExtension,
|
|
75
|
-
...dragAndDropProps
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=useTableGridSwitchFeatures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useFetchData","useSelector","useTableGridSwitchCollection","useCommonCollectionFeatures","useFilters","useBaseGridFeatures","useBaseTableFeatures","useBaseCollectionParams","useAppContextSync","useCallback","useTableGridSwitchDragAndDrop","useTableGridSwitchFeatures","config","filterComponent","filtersObject","filterFieldMapping","filters","preset","imagePlacement","visibleFieldIds","gridVisibleFieldIds","renderItem","customColumns","tableVisibleFieldIds","columns","tableColumns","onRowClick","stickyColumns","stickySelectionColumn","showTitleBar","dataExtension","fetchData","searchableFieldIds","Array","from","Set","params","collection","dragAndDropProps","state","items","result","refreshCollection","clearResultAndMoveToStart","force","commonFeatures","collectionState","horizontalScroll"],"sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"sourcesContent":["import { TableGridSwitchConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useSelector, useTableGridSwitchCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useBaseGridFeatures } from './useBaseGridFeatures';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\nimport { useBaseCollectionParams } from './useBaseCollectionParams';\nimport { useAppContextSync } from './useAppContextSync';\nimport { useCallback } from 'react';\nimport { useTableGridSwitchDragAndDrop } from './useTableGridSwitchDragAndDrop';\n\nexport const useTableGridSwitchFeatures = (config: TableGridSwitchConfig) => {\n const { filterComponent, filtersObject, filterFieldMapping } = useFilters(\n config.filters,\n );\n\n const {\n preset,\n imagePlacement,\n visibleFieldIds: gridVisibleFieldIds,\n renderItem,\n } = useBaseGridFeatures(config);\n\n const {\n customColumns,\n visibleFieldIds: tableVisibleFieldIds,\n columns: tableColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n showTitleBar,\n dataExtension,\n } = useBaseTableFeatures(config);\n\n const { fetchData } = useFetchData({\n searchableFieldIds: Array.from(\n new Set([...tableVisibleFieldIds, ...gridVisibleFieldIds]),\n ),\n filterFieldMapping,\n });\n\n const params = useBaseCollectionParams({\n config: config.collection,\n fetchData,\n filters: filtersObject,\n });\n\n const dragAndDropProps = useTableGridSwitchDragAndDrop(config);\n\n const state = useTableGridSwitchCollection<any>(params);\n const items = useSelector(() => state.collection.result.items);\n\n const refreshCollection = useCallback(() => {\n return () => {\n return state.collection.clearResultAndMoveToStart({ force: true });\n };\n }, [state.collection]);\n\n useAppContextSync(items, refreshCollection);\n\n const commonFeatures = useCommonCollectionFeatures({\n ...config,\n collectionState: state.collection,\n });\n\n return {\n ...commonFeatures,\n state,\n columns: tableColumns,\n filters: filterComponent,\n customColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n horizontalScroll: true,\n // Grid specific features\n imagePlacement,\n preset,\n renderItem,\n showTitleBar,\n dataExtension,\n ...dragAndDropProps,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,WAAW,EAAEC,4BAA4B,QAAQ,eAAe;AACzE,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,6BAA6B,QAAQ,iCAAiC;AAE/E,OAAO,MAAMC,0BAA0B,GAAIC,MAA6B,IAAK;EAC3E,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAmB,CAAC,GAAGX,UAAU,CACvEQ,MAAM,CAACI,OACT,CAAC;EAED,MAAM;IACJC,MAAM;IACNC,cAAc;IACdC,eAAe,EAAEC,mBAAmB;IACpCC;EACF,CAAC,GAAGhB,mBAAmB,CAACO,MAAM,CAAC;EAE/B,MAAM;IACJU,aAAa;IACbH,eAAe,EAAEI,oBAAoB;IACrCC,OAAO,EAAEC,YAAY;IACrBC,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBC,YAAY;IACZC;EACF,CAAC,GAAGxB,oBAAoB,CAACM,MAAM,CAAC;EAEhC,MAAM;IAAEmB;EAAU,CAAC,GAAG/B,YAAY,CAAC;IACjCgC,kBAAkB,EAAEC,KAAK,CAACC,IAAI,CAC5B,IAAIC,GAAG,CAAC,CAAC,GAAGZ,oBAAoB,EAAE,GAAGH,mBAAmB,CAAC,CAC3D,CAAC;IACDL;EACF,CAAC,CAAC;EAEF,MAAMqB,MAAM,GAAG7B,uBAAuB,CAAC;IACrCK,MAAM,EAAEA,MAAM,CAACyB,UAAU;IACzBN,SAAS;IACTf,OAAO,EAAEF;EACX,CAAC,CAAC;EAEF,MAAMwB,gBAAgB,GAAG5B,6BAA6B,CAACE,MAAM,CAAC;EAE9D,MAAM2B,KAAK,GAAGrC,4BAA4B,CAAMkC,MAAM,CAAC;EACvD,MAAMI,KAAK,GAAGvC,WAAW,CAAC,MAAMsC,KAAK,CAACF,UAAU,CAACI,MAAM,CAACD,KAAK,CAAC;EAE9D,MAAME,iBAAiB,GAAGjC,WAAW,CAAC,MAAM;IAC1C,OAAO,MAAM;MACX,OAAO8B,KAAK,CAACF,UAAU,CAACM,yBAAyB,CAAC;QAAEC,KAAK,EAAE;MAAK,CAAC,CAAC;IACpE,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAACF,UAAU,CAAC,CAAC;EAEtB7B,iBAAiB,CAACgC,KAAK,EAAEE,iBAAiB,CAAC;EAE3C,MAAMG,cAAc,GAAG1C,2BAA2B,CAAC;IACjD,GAAGS,MAAM;IACTkC,eAAe,EAAEP,KAAK,CAACF;EACzB,CAAC,CAAC;EAEF,OAAO;IACL,GAAGQ,cAAc;IACjBN,KAAK;IACLf,OAAO,EAAEC,YAAY;IACrBT,OAAO,EAAEH,eAAe;IACxBS,aAAa;IACbI,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBmB,gBAAgB,EAAE,IAAI;IACtB;IACA7B,cAAc;IACdD,MAAM;IACNI,UAAU;IACVQ,YAAY;IACZC,aAAa;IACb,GAAGQ;EACL,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,OAAO,CAAC;CAAG;AAEjE,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,sBAc5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/DateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAAE,cAAc,EAAgB,MAAM,SAAS,CAAC;AASvD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC;CAAG;AAuBnE,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,sBA2EzC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/DateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAQpE,OAAO,EAAE,cAAc,EAAgB,MAAM,SAAS,CAAC;AAQvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC;CAAG;AAEvE,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,sBAuL5C,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Field, PatternsFieldType } from '../../../types';
|
|
3
|
-
import { BaseInputProps } from './types';
|
|
4
|
-
export declare const EDITABLE_INPUT_ELEMENTS: Partial<Record<PatternsFieldType, React.ComponentType<any>>>;
|
|
5
|
-
export interface FormFieldInputProps {
|
|
6
|
-
field: Field;
|
|
7
|
-
inputRef?: BaseInputProps<any>['inputRef'];
|
|
8
|
-
}
|
|
9
|
-
export declare const FormFieldInput: (props: FormFieldInputProps) => React.JSX.Element | null;
|
|
10
|
-
//# sourceMappingURL=FormFieldInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/FormFieldInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAO1D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAC3C,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAUpD,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,6BA0BxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/ImageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAWzC,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAElE,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,sBAmEhD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LongText.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/LongText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQzC,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAEhE,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,sBA2C5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/Number.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQzC,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC;CAAG;AAErE,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,sBA4DxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShortText.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/ShortText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQzC,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAEjE,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBA8D9C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Url.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/Url.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AASzC,MAAM,WAAW,QAAS,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAE3D,eAAO,MAAM,GAAG,GAAI,OAAO,QAAQ,sBAuDlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/Fields/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;CACxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AutoPatternsEntityPage/Fields/utils/dates.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,GAAI,MAAM,IAAI,GAAG,MAAM,SACL,CAAC;AAGtD,eAAO,MAAM,iCAAiC,GAAI,MAAM,IAAI,GAAG,MAAM,WAMpE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardLayout } from '../../../types';
|
|
3
|
-
import { BaseInputRef } from '../Fields/types';
|
|
4
|
-
export interface RenderLayoutCardProps {
|
|
5
|
-
layout: CardLayout;
|
|
6
|
-
sectionId: string;
|
|
7
|
-
cardIndex: number;
|
|
8
|
-
setInputRef: (id: string, input: BaseInputRef) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const RenderLayoutCard: React.FC<RenderLayoutCardProps>;
|
|
11
|
-
//# sourceMappingURL=RenderLayoutCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderLayoutCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmC5D,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LayoutContent } from '../../../types';
|
|
3
|
-
import { BaseInputRef } from '../Fields/types';
|
|
4
|
-
export interface RenderLayoutContentProps {
|
|
5
|
-
content: LayoutContent;
|
|
6
|
-
level: number;
|
|
7
|
-
sectionId: string;
|
|
8
|
-
cardIndex: number;
|
|
9
|
-
contentIndex: number;
|
|
10
|
-
setInputRef: (id: string, input: BaseInputRef) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const RenderLayoutContent: React.FC<RenderLayoutContentProps>;
|
|
13
|
-
//# sourceMappingURL=RenderLayoutContent.d.ts.map
|
package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderLayoutContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgFlE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderViewField.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CA6CA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EntityPageConfig } from '../../types';
|
|
3
|
-
export interface SkeletonEntityProps {
|
|
4
|
-
entityPage: EntityPageConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const SkeletonEntity: ({ entityPage }: SkeletonEntityProps) => React.JSX.Element;
|
|
7
|
-
//# sourceMappingURL=SkeletonEntity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonEntity.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsEntityPage/SkeletonEntity.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAA6B,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAyED,eAAO,MAAM,cAAc,GAAI,gBAAgB,mBAAmB,sBAyCjE,CAAC"}
|
package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RenderLayoutCardProps } from '../RenderLayout';
|
|
3
|
-
interface RenderViewLayoutCardProps extends Omit<RenderLayoutCardProps, 'setInputRef'> {
|
|
4
|
-
entity: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
export declare const RenderViewLayoutCard: React.FC<RenderViewLayoutCardProps>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=RenderViewLayoutCard.d.ts.map
|
package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderViewLayoutCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,UAAU,yBACR,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC;IAClD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAGD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmCpE,CAAC"}
|
package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RenderLayoutContentProps } from '../RenderLayout';
|
|
3
|
-
interface RenderViewLayoutContentProps extends Omit<RenderLayoutContentProps, 'setInputRef'> {
|
|
4
|
-
entity: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
export declare const RenderViewLayoutContent: React.FC<RenderViewLayoutContentProps>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=RenderViewLayoutContent.d.ts.map
|
package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderViewLayoutContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,UAAU,4BACR,SAAQ,IAAI,CAAC,wBAAwB,EAAE,aAAa,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAGD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAC5C,4BAA4B,CAmE7B,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { GridConfig } from '../types';
|
|
2
|
-
export declare const useGridFeatures: (configuration: GridConfig) => {
|
|
3
|
-
state: import("@wix/patterns").GridState<any, import("@wix/patterns").OptionalFiltersMap>;
|
|
4
|
-
imagePlacement: "top" | "side" | undefined;
|
|
5
|
-
preset: "title" | "full" | "empty" | undefined;
|
|
6
|
-
renderItem: (gridItem: any) => {
|
|
7
|
-
backgroundImageUrl?: string | undefined;
|
|
8
|
-
subtitle?: string | undefined;
|
|
9
|
-
id: any;
|
|
10
|
-
title: string;
|
|
11
|
-
};
|
|
12
|
-
filters: import("react").JSX.Element | undefined;
|
|
13
|
-
dragAndDropProps: {
|
|
14
|
-
dragAndDrop: {
|
|
15
|
-
SortableContext: (<T, F extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/GridDragAndDropDndKit/GridSortableContext").GridSortableContextProps<T, F>) => import("react").JSX.Element) & {
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
18
|
-
DraggableCard: (<T_1, F_1 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardProps<T_1, F_1>) => import("react").JSX.Element) & {
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
DraggableCardOverlay: (<T_2, F_2 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardOverlayProps<T_2, F_2>) => import("react").ReactPortal) & {
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
setStateObject: <T, F extends import("@wix/patterns").FiltersMap>({ state, modalsContainerRef, }: {
|
|
25
|
-
state: import("@wix/patterns/dist/types/state").GridBaseState<T, F>;
|
|
26
|
-
modalsContainerRef: {
|
|
27
|
-
current: HTMLElement | null | undefined;
|
|
28
|
-
};
|
|
29
|
-
}) => void;
|
|
30
|
-
};
|
|
31
|
-
dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
|
|
32
|
-
dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
|
|
33
|
-
dragAndDropCategories?: never[][] | null | undefined;
|
|
34
|
-
} | null;
|
|
35
|
-
search: boolean;
|
|
36
|
-
title: import("react").JSX.Element | undefined;
|
|
37
|
-
views: import("react").JSX.Element | undefined;
|
|
38
|
-
emptyState: import("react").JSX.Element;
|
|
39
|
-
actionCell: (item: any, index: any, api: any) => {};
|
|
40
|
-
bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
|
|
41
|
-
optimisticActions: import("@wix/patterns").CollectionOptimisticActions<unknown, import("@wix/patterns").FiltersMap>;
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=useGridFeatures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGridFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGridFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAWtC,eAAO,MAAM,eAAe,GAAI,eAAe,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CxD,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TableConfig } from '../types';
|
|
2
|
-
export declare const useTableFeatures: (configuration: TableConfig) => {
|
|
3
|
-
state: import("@wix/patterns").TableState<any, import("@wix/patterns").OptionalFiltersMap>;
|
|
4
|
-
columns: import("@wix/patterns").TableColumn<any>[];
|
|
5
|
-
filters: import("react").JSX.Element | undefined;
|
|
6
|
-
customColumns: import("react").JSX.Element | undefined;
|
|
7
|
-
dragAndDropProps: {};
|
|
8
|
-
onRowClick: (item: any, index: any) => void | null;
|
|
9
|
-
stickyColumns: number | undefined;
|
|
10
|
-
stickySelectionColumn: boolean;
|
|
11
|
-
showTitleBar: boolean;
|
|
12
|
-
sections: {
|
|
13
|
-
renderSection: (item: any) => import("@wix/patterns").Section;
|
|
14
|
-
TableSections: (<T, F extends import("@wix/patterns").FiltersMap>({ renderSection, table, columns, ...collectionTableProps }: import("@wix/patterns/dist/types/components/TableSections").TableSectionsProps<T, F>) => React.JSX.Element) & {
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
} | undefined;
|
|
18
|
-
dataExtension: import("react").JSX.Element | undefined;
|
|
19
|
-
search: boolean;
|
|
20
|
-
title: import("react").JSX.Element | undefined;
|
|
21
|
-
views: import("react").JSX.Element | undefined;
|
|
22
|
-
emptyState: import("react").JSX.Element;
|
|
23
|
-
actionCell: (item: any, index: any, api: any) => {};
|
|
24
|
-
bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
|
|
25
|
-
optimisticActions: import("@wix/patterns").CollectionOptimisticActions<unknown, import("@wix/patterns").FiltersMap>;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=useTableFeatures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAYvC,eAAO,MAAM,gBAAgB,GAAI,eAAe,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAsE1D,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { TableGridSwitchConfig } from '../types';
|
|
2
|
-
export declare const useTableGridSwitchFeatures: (config: TableGridSwitchConfig) => {
|
|
3
|
-
dragAndDrop?: {
|
|
4
|
-
grid: {
|
|
5
|
-
SortableContext: (<T, F extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/GridDragAndDropDndKit/GridSortableContext").GridSortableContextProps<T, F>) => import("react").JSX.Element) & {
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
DraggableCard: (<T_1, F_1 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardProps<T_1, F_1>) => import("react").JSX.Element) & {
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
DraggableCardOverlay: (<T_2, F_2 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardOverlayProps<T_2, F_2>) => import("react").ReactPortal) & {
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
setStateObject: <T_3, F_3 extends import("@wix/patterns").FiltersMap>({ state, modalsContainerRef, }: {
|
|
15
|
-
state: import("@wix/patterns/dist/types/state").GridBaseState<T_3, F_3>;
|
|
16
|
-
modalsContainerRef: {
|
|
17
|
-
current: HTMLElement | null | undefined;
|
|
18
|
-
};
|
|
19
|
-
}) => void;
|
|
20
|
-
};
|
|
21
|
-
table: import("@wix/patterns/dist/types/components/TableDragAndDrop").TableDragAndDropType;
|
|
22
|
-
} | undefined;
|
|
23
|
-
dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
|
|
24
|
-
dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
|
|
25
|
-
dragAndDropCategories?: never[][] | null | undefined;
|
|
26
|
-
state: import("@wix/patterns").TableGridSwitchState<any, import("@wix/patterns").OptionalFiltersMap>;
|
|
27
|
-
columns: import("@wix/patterns").TableColumn<any>[];
|
|
28
|
-
filters: import("react").JSX.Element | undefined;
|
|
29
|
-
customColumns: import("react").JSX.Element | undefined;
|
|
30
|
-
onRowClick: (item: any, index: any) => void | null;
|
|
31
|
-
stickyColumns: number | undefined;
|
|
32
|
-
stickySelectionColumn: boolean;
|
|
33
|
-
horizontalScroll: boolean;
|
|
34
|
-
imagePlacement: "top" | "side" | undefined;
|
|
35
|
-
preset: "title" | "full" | "empty" | undefined;
|
|
36
|
-
renderItem: (gridItem: any) => {
|
|
37
|
-
backgroundImageUrl?: string | undefined;
|
|
38
|
-
subtitle?: string | undefined;
|
|
39
|
-
id: any;
|
|
40
|
-
title: string;
|
|
41
|
-
};
|
|
42
|
-
showTitleBar: boolean;
|
|
43
|
-
dataExtension: import("react").JSX.Element | undefined;
|
|
44
|
-
search: boolean;
|
|
45
|
-
title: import("react").JSX.Element | undefined;
|
|
46
|
-
views: import("react").JSX.Element | undefined;
|
|
47
|
-
emptyState: import("react").JSX.Element;
|
|
48
|
-
actionCell: (item: any, index: any, api: any) => {};
|
|
49
|
-
bulkActionToolbar: ((param: import("./useBulkActionToolbar").BulkActionToolbarRenderProp) => import("react").JSX.Element) | undefined;
|
|
50
|
-
optimisticActions: import("@wix/patterns").CollectionOptimisticActions<unknown, import("@wix/patterns").FiltersMap>;
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=useTableGridSwitchFeatures.d.ts.map
|