@headless-adminapp/app 0.0.12-alpha.0 → 0.0.15-alpha.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/package.json +8 -16
- package/src/app/context.ts +0 -11
- package/src/app/hooks/index.ts +0 -1
- package/src/app/hooks/useAppContext.ts +0 -13
- package/src/app/index.ts +0 -2
- package/src/appearance/context.ts +0 -13
- package/src/appearance/hooks/index.ts +0 -1
- package/src/appearance/hooks/useAppearanceContext.ts +0 -13
- package/src/appearance/index.ts +0 -6
- package/src/auth/AuthProvider.tsx +0 -118
- package/src/auth/context.ts +0 -41
- package/src/auth/hooks/index.ts +0 -2
- package/src/auth/hooks/useAuthSession.ts +0 -17
- package/src/auth/hooks/useLogout.ts +0 -23
- package/src/auth/index.ts +0 -4
- package/src/auth/types.ts +0 -17
- package/src/builders/CommandBuilder.ts +0 -777
- package/src/builders/SchemaExperienceBuilder.ts +0 -488
- package/src/builders/index.ts +0 -5
- package/src/command/hooks/index.ts +0 -2
- package/src/command/hooks/useBaseCommandHandlerContext.ts +0 -51
- package/src/command/hooks/useCommands.ts +0 -26
- package/src/command/index.ts +0 -2
- package/src/command/types.ts +0 -116
- package/src/command/utils/index.ts +0 -142
- package/src/components/ScrollView/index.tsx +0 -26
- package/src/dataform/DataFormProvider/DataResolver.tsx +0 -186
- package/src/dataform/DataFormProvider/InitialValueResolver.tsx +0 -55
- package/src/dataform/DataFormProvider/ReadonlyInfoResolver.tsx +0 -35
- package/src/dataform/DataFormProvider/index.tsx +0 -102
- package/src/dataform/context.ts +0 -53
- package/src/dataform/hooks/index.ts +0 -12
- package/src/dataform/hooks/useFormInstance.ts +0 -6
- package/src/dataform/hooks/useFormIsDirty.ts +0 -7
- package/src/dataform/hooks/useFormIsReadonly.ts +0 -11
- package/src/dataform/hooks/useFormNotifications.ts +0 -46
- package/src/dataform/hooks/useFormRecord.ts +0 -7
- package/src/dataform/hooks/useFormSave.ts +0 -147
- package/src/dataform/hooks/useFormSchema.ts +0 -13
- package/src/dataform/hooks/useLoadFormGridPage.ts +0 -97
- package/src/dataform/hooks/useMainFormCommands.ts +0 -65
- package/src/dataform/hooks/useRecordId.ts +0 -6
- package/src/dataform/hooks/useRecordTitle.ts +0 -22
- package/src/dataform/hooks/useSelectedForm.ts +0 -14
- package/src/dataform/index.ts +0 -4
- package/src/dataform/utils/index.ts +0 -594
- package/src/datagrid/DataGridProvider/DataResolver.tsx +0 -281
- package/src/datagrid/DataGridProvider/index.tsx +0 -134
- package/src/datagrid/DataGridProvider/transformViewColumns.ts +0 -54
- package/src/datagrid/DataGridProvider/utils.ts +0 -89
- package/src/datagrid/column-filter/constants.ts +0 -493
- package/src/datagrid/column-filter/index.ts +0 -3
- package/src/datagrid/column-filter/types.ts +0 -68
- package/src/datagrid/column-filter/utils.ts +0 -19
- package/src/datagrid/context.ts +0 -66
- package/src/datagrid/hooks/index.ts +0 -20
- package/src/datagrid/hooks/useChangeView.ts +0 -18
- package/src/datagrid/hooks/useGridColumnFilter.ts +0 -28
- package/src/datagrid/hooks/useGridColumns.ts +0 -13
- package/src/datagrid/hooks/useGridCommands.ts +0 -21
- package/src/datagrid/hooks/useGridData.ts +0 -8
- package/src/datagrid/hooks/useGridDataState.ts +0 -8
- package/src/datagrid/hooks/useGridExtraFilter.ts +0 -6
- package/src/datagrid/hooks/useGridOptions.ts +0 -3
- package/src/datagrid/hooks/useGridPagination.ts +0 -3
- package/src/datagrid/hooks/useGridRefresh.ts +0 -19
- package/src/datagrid/hooks/useGridSchema.ts +0 -13
- package/src/datagrid/hooks/useGridSelection.ts +0 -28
- package/src/datagrid/hooks/useGridSorting.ts +0 -23
- package/src/datagrid/hooks/useGridViewLookupData.ts +0 -10
- package/src/datagrid/hooks/useLoadMainGridPage.ts +0 -90
- package/src/datagrid/hooks/useMainGridCommands.ts +0 -255
- package/src/datagrid/hooks/useMaxRecords.ts +0 -6
- package/src/datagrid/hooks/useSearchText.ts +0 -22
- package/src/datagrid/hooks/useSelectedView.ts +0 -14
- package/src/datagrid/hooks/useSubGridCommands.ts +0 -104
- package/src/datagrid/index.ts +0 -14
- package/src/dialog/DialogProvider.tsx +0 -20
- package/src/dialog/context.ts +0 -14
- package/src/dialog/hooks/index.ts +0 -8
- package/src/dialog/hooks/useCloseDialog.ts +0 -36
- package/src/dialog/hooks/useDialogItem.ts +0 -8
- package/src/dialog/hooks/useDialogItems.ts +0 -6
- package/src/dialog/hooks/useOpenAlertDialog.ts +0 -30
- package/src/dialog/hooks/useOpenConfirmDialog.ts +0 -45
- package/src/dialog/hooks/useOpenDialog.ts +0 -39
- package/src/dialog/hooks/useOpenErrorDialog.ts +0 -26
- package/src/dialog/hooks/useOpenPromptDialog.ts +0 -46
- package/src/dialog/index.ts +0 -7
- package/src/form/FormValidationStringContext.ts +0 -30
- package/src/form/index.ts +0 -6
- package/src/hooks/index.ts +0 -5
- package/src/hooks/useDebouncedValue.ts +0 -38
- package/src/hooks/useElementLayout.ts +0 -49
- package/src/hooks/useIsMobile.ts +0 -21
- package/src/hooks/useStorageState.ts +0 -36
- package/src/hooks/useSystemColorScheme.ts +0 -38
- package/src/index.css +0 -4
- package/src/insights/context.ts +0 -5
- package/src/insights/hooks/index.ts +0 -14
- package/src/insights/index.ts +0 -2
- package/src/locale/context.ts +0 -7
- package/src/locale/index.ts +0 -3
- package/src/locale/types.ts +0 -3
- package/src/locale/useLocale.ts +0 -13
- package/src/metadata/MetadataProvider.tsx +0 -51
- package/src/metadata/context.ts +0 -15
- package/src/metadata/hooks/index.ts +0 -8
- package/src/metadata/hooks/useAppStore.ts +0 -6
- package/src/metadata/hooks/useExperienceStore.ts +0 -6
- package/src/metadata/hooks/useExperienceView.ts +0 -36
- package/src/metadata/hooks/useExperienceViewCommands.ts +0 -20
- package/src/metadata/hooks/useExperienceViewLookup.ts +0 -33
- package/src/metadata/hooks/useExperienceViewSubgridCommands.ts +0 -20
- package/src/metadata/hooks/useMetadata.ts +0 -44
- package/src/metadata/hooks/useSchema.ts +0 -11
- package/src/metadata/index.ts +0 -3
- package/src/mutable/context.ts +0 -71
- package/src/mutable/index.ts +0 -14
- package/src/mutable/state.ts +0 -13
- package/src/mutable/type.ts +0 -9
- package/src/mutable/utils.ts +0 -80
- package/src/navigation/hooks/useOpenForm.ts +0 -34
- package/src/progress-indicator/ProgressIndicatorProvider.tsx +0 -77
- package/src/progress-indicator/context.ts +0 -12
- package/src/progress-indicator/hooks/index.ts +0 -1
- package/src/progress-indicator/hooks/useProgressIndicator.ts +0 -15
- package/src/progress-indicator/index.ts +0 -6
- package/src/providers/PageEntityFormProvider/index.tsx +0 -34
- package/src/providers/PageEntityViewProvider/index.tsx +0 -39
- package/src/recordset/RecordSetProvider.tsx +0 -55
- package/src/recordset/context.ts +0 -12
- package/src/recordset/hooks/index.ts +0 -3
- package/src/recordset/hooks/useRecordSetResult.ts +0 -94
- package/src/recordset/hooks/useRecordSetSetter.ts +0 -21
- package/src/recordset/hooks/useRecordSetVisibility.ts +0 -24
- package/src/recordset/index.ts +0 -3
- package/src/route/RouteProvider.tsx +0 -76
- package/src/route/context.ts +0 -39
- package/src/route/hooks/index.ts +0 -5
- package/src/route/hooks/useBasePath.ts +0 -7
- package/src/route/hooks/usePathname.ts +0 -7
- package/src/route/hooks/useRouteResolver.ts +0 -7
- package/src/route/hooks/useRouter.ts +0 -7
- package/src/route/hooks/useSearchParams.ts +0 -7
- package/src/route/index.ts +0 -2
- package/src/route/types.ts +0 -1
- package/src/store/ClientAppStore.ts +0 -20
- package/src/store/ComponentStore.tsx +0 -22
- package/src/store/EventManager.ts +0 -33
- package/src/store/SchemaExperienceStore.ts +0 -374
- package/src/store/index.ts +0 -4
- package/src/toast-notification/ToastNotificationProvider.tsx +0 -23
- package/src/toast-notification/context.ts +0 -17
- package/src/toast-notification/hooks/index.ts +0 -3
- package/src/toast-notification/hooks/useCloseToastNotification.ts +0 -36
- package/src/toast-notification/hooks/useOpenToastNotification.ts +0 -38
- package/src/toast-notification/hooks/useToastNotificationItems.ts +0 -6
- package/src/toast-notification/index.ts +0 -7
- package/src/transport/InMemoryDataService/index.ts +0 -157
- package/src/transport/RestDataService/index.ts +0 -151
- package/src/transport/context.ts +0 -6
- package/src/transport/hooks/index.ts +0 -1
- package/src/transport/hooks/useDataService.ts +0 -13
- package/src/transport/index.ts +0 -2
- package/src/utils/calculateColumnWidths.ts +0 -72
- package/src/utils/index.ts +0 -1
- package/src/widget/context.ts +0 -5
- package/src/widget/hooks/index.ts +0 -11
- package/src/widget/index.ts +0 -1
- package/tsconfig.json +0 -9
- package/tsconfig.tsbuildinfo +0 -1
- /package/{dist/app → app}/context.d.ts +0 -0
- /package/{dist/app → app}/context.js +0 -0
- /package/{dist/app → app}/hooks/index.d.ts +0 -0
- /package/{dist/app → app}/hooks/index.js +0 -0
- /package/{dist/app → app}/hooks/useAppContext.d.ts +0 -0
- /package/{dist/app → app}/hooks/useAppContext.js +0 -0
- /package/{dist/app → app}/index.d.ts +0 -0
- /package/{dist/app → app}/index.js +0 -0
- /package/{dist/appearance → appearance}/context.d.ts +0 -0
- /package/{dist/appearance → appearance}/context.js +0 -0
- /package/{dist/appearance → appearance}/hooks/index.d.ts +0 -0
- /package/{dist/appearance → appearance}/hooks/index.js +0 -0
- /package/{dist/appearance → appearance}/hooks/useAppearanceContext.d.ts +0 -0
- /package/{dist/appearance → appearance}/hooks/useAppearanceContext.js +0 -0
- /package/{dist/appearance → appearance}/index.d.ts +0 -0
- /package/{dist/appearance → appearance}/index.js +0 -0
- /package/{dist/auth → auth}/AuthProvider.d.ts +0 -0
- /package/{dist/auth → auth}/AuthProvider.js +0 -0
- /package/{dist/auth → auth}/context.d.ts +0 -0
- /package/{dist/auth → auth}/context.js +0 -0
- /package/{dist/auth → auth}/hooks/index.d.ts +0 -0
- /package/{dist/auth → auth}/hooks/index.js +0 -0
- /package/{dist/auth → auth}/hooks/useAuthSession.d.ts +0 -0
- /package/{dist/auth → auth}/hooks/useAuthSession.js +0 -0
- /package/{dist/auth → auth}/hooks/useLogout.d.ts +0 -0
- /package/{dist/auth → auth}/hooks/useLogout.js +0 -0
- /package/{dist/auth → auth}/index.d.ts +0 -0
- /package/{dist/auth → auth}/index.js +0 -0
- /package/{dist/auth → auth}/types.d.ts +0 -0
- /package/{dist/auth → auth}/types.js +0 -0
- /package/{dist/builders → builders}/CommandBuilder.d.ts +0 -0
- /package/{dist/builders → builders}/CommandBuilder.js +0 -0
- /package/{dist/builders → builders}/SchemaExperienceBuilder.d.ts +0 -0
- /package/{dist/builders → builders}/SchemaExperienceBuilder.js +0 -0
- /package/{dist/builders → builders}/index.d.ts +0 -0
- /package/{dist/builders → builders}/index.js +0 -0
- /package/{dist/command → command}/hooks/index.d.ts +0 -0
- /package/{dist/command → command}/hooks/index.js +0 -0
- /package/{dist/command → command}/hooks/useBaseCommandHandlerContext.d.ts +0 -0
- /package/{dist/command → command}/hooks/useBaseCommandHandlerContext.js +0 -0
- /package/{dist/command → command}/hooks/useCommands.d.ts +0 -0
- /package/{dist/command → command}/hooks/useCommands.js +0 -0
- /package/{dist/command → command}/index.d.ts +0 -0
- /package/{dist/command → command}/index.js +0 -0
- /package/{dist/command → command}/types.d.ts +0 -0
- /package/{dist/command → command}/types.js +0 -0
- /package/{dist/command → command}/utils/index.d.ts +0 -0
- /package/{dist/command → command}/utils/index.js +0 -0
- /package/{dist/components → components}/ScrollView/index.d.ts +0 -0
- /package/{dist/components → components}/ScrollView/index.js +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/DataResolver.d.ts +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/DataResolver.js +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/InitialValueResolver.d.ts +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/InitialValueResolver.js +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/ReadonlyInfoResolver.d.ts +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/ReadonlyInfoResolver.js +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/index.d.ts +0 -0
- /package/{dist/dataform → dataform}/DataFormProvider/index.js +0 -0
- /package/{dist/dataform → dataform}/context.d.ts +0 -0
- /package/{dist/dataform → dataform}/context.js +0 -0
- /package/{dist/dataform → dataform}/hooks/index.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/index.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormInstance.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormInstance.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormIsDirty.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormIsDirty.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormIsReadonly.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormIsReadonly.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormNotifications.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormNotifications.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormRecord.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormRecord.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormSave.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormSave.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormSchema.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useFormSchema.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useLoadFormGridPage.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useLoadFormGridPage.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useMainFormCommands.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useMainFormCommands.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useRecordId.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useRecordId.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useRecordTitle.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useRecordTitle.js +0 -0
- /package/{dist/dataform → dataform}/hooks/useSelectedForm.d.ts +0 -0
- /package/{dist/dataform → dataform}/hooks/useSelectedForm.js +0 -0
- /package/{dist/dataform → dataform}/index.d.ts +0 -0
- /package/{dist/dataform → dataform}/index.js +0 -0
- /package/{dist/dataform → dataform}/utils/index.d.ts +0 -0
- /package/{dist/dataform → dataform}/utils/index.js +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/DataResolver.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/DataResolver.js +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/index.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/index.js +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/transformViewColumns.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/transformViewColumns.js +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/utils.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/DataGridProvider/utils.js +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/constants.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/constants.js +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/index.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/index.js +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/types.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/types.js +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/utils.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/column-filter/utils.js +0 -0
- /package/{dist/datagrid → datagrid}/context.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/context.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/index.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/index.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useChangeView.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useChangeView.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridColumnFilter.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridColumnFilter.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridColumns.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridColumns.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridCommands.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridCommands.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridData.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridData.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridDataState.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridDataState.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridExtraFilter.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridExtraFilter.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridOptions.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridOptions.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridPagination.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridPagination.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridRefresh.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridRefresh.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridSchema.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridSchema.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridSelection.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridSelection.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridSorting.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridSorting.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridViewLookupData.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useGridViewLookupData.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useLoadMainGridPage.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useLoadMainGridPage.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useMainGridCommands.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useMainGridCommands.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useMaxRecords.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useMaxRecords.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useSearchText.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useSearchText.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useSelectedView.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useSelectedView.js +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useSubGridCommands.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/hooks/useSubGridCommands.js +0 -0
- /package/{dist/datagrid → datagrid}/index.d.ts +0 -0
- /package/{dist/datagrid → datagrid}/index.js +0 -0
- /package/{dist/dialog → dialog}/DialogProvider.d.ts +0 -0
- /package/{dist/dialog → dialog}/DialogProvider.js +0 -0
- /package/{dist/dialog → dialog}/context.d.ts +0 -0
- /package/{dist/dialog → dialog}/context.js +0 -0
- /package/{dist/dialog → dialog}/hooks/index.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/index.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useCloseDialog.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useCloseDialog.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useDialogItem.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useDialogItem.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useDialogItems.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useDialogItems.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenAlertDialog.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenAlertDialog.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenConfirmDialog.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenConfirmDialog.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenDialog.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenDialog.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenErrorDialog.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenErrorDialog.js +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenPromptDialog.d.ts +0 -0
- /package/{dist/dialog → dialog}/hooks/useOpenPromptDialog.js +0 -0
- /package/{dist/dialog → dialog}/index.d.ts +0 -0
- /package/{dist/dialog → dialog}/index.js +0 -0
- /package/{dist/form → form}/FormValidationStringContext.d.ts +0 -0
- /package/{dist/form → form}/FormValidationStringContext.js +0 -0
- /package/{dist/form → form}/index.d.ts +0 -0
- /package/{dist/form → form}/index.js +0 -0
- /package/{dist/hooks → hooks}/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/index.js +0 -0
- /package/{dist/hooks → hooks}/useDebouncedValue.d.ts +0 -0
- /package/{dist/hooks → hooks}/useDebouncedValue.js +0 -0
- /package/{dist/hooks → hooks}/useElementLayout.d.ts +0 -0
- /package/{dist/hooks → hooks}/useElementLayout.js +0 -0
- /package/{dist/hooks → hooks}/useIsMobile.d.ts +0 -0
- /package/{dist/hooks → hooks}/useIsMobile.js +0 -0
- /package/{dist/hooks → hooks}/useStorageState.d.ts +0 -0
- /package/{dist/hooks → hooks}/useStorageState.js +0 -0
- /package/{dist/hooks → hooks}/useSystemColorScheme.d.ts +0 -0
- /package/{dist/hooks → hooks}/useSystemColorScheme.js +0 -0
- /package/{dist/insights → insights}/context.d.ts +0 -0
- /package/{dist/insights → insights}/context.js +0 -0
- /package/{dist/insights → insights}/hooks/index.d.ts +0 -0
- /package/{dist/insights → insights}/hooks/index.js +0 -0
- /package/{dist/insights → insights}/index.d.ts +0 -0
- /package/{dist/insights → insights}/index.js +0 -0
- /package/{dist/locale → locale}/context.d.ts +0 -0
- /package/{dist/locale → locale}/context.js +0 -0
- /package/{dist/locale → locale}/index.d.ts +0 -0
- /package/{dist/locale → locale}/index.js +0 -0
- /package/{dist/locale → locale}/types.d.ts +0 -0
- /package/{dist/locale → locale}/types.js +0 -0
- /package/{dist/locale → locale}/useLocale.d.ts +0 -0
- /package/{dist/locale → locale}/useLocale.js +0 -0
- /package/{dist/metadata → metadata}/MetadataProvider.d.ts +0 -0
- /package/{dist/metadata → metadata}/MetadataProvider.js +0 -0
- /package/{dist/metadata → metadata}/context.d.ts +0 -0
- /package/{dist/metadata → metadata}/context.js +0 -0
- /package/{dist/metadata → metadata}/hooks/index.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/index.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useAppStore.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useAppStore.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceStore.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceStore.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceView.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceView.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceViewCommands.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceViewCommands.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceViewLookup.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceViewLookup.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceViewSubgridCommands.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useExperienceViewSubgridCommands.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useMetadata.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useMetadata.js +0 -0
- /package/{dist/metadata → metadata}/hooks/useSchema.d.ts +0 -0
- /package/{dist/metadata → metadata}/hooks/useSchema.js +0 -0
- /package/{dist/metadata → metadata}/index.d.ts +0 -0
- /package/{dist/metadata → metadata}/index.js +0 -0
- /package/{dist/mutable → mutable}/context.d.ts +0 -0
- /package/{dist/mutable → mutable}/context.js +0 -0
- /package/{dist/mutable → mutable}/index.d.ts +0 -0
- /package/{dist/mutable → mutable}/index.js +0 -0
- /package/{dist/mutable → mutable}/state.d.ts +0 -0
- /package/{dist/mutable → mutable}/state.js +0 -0
- /package/{dist/mutable → mutable}/type.d.ts +0 -0
- /package/{dist/mutable → mutable}/type.js +0 -0
- /package/{dist/mutable → mutable}/utils.d.ts +0 -0
- /package/{dist/mutable → mutable}/utils.js +0 -0
- /package/{dist/navigation → navigation}/hooks/useOpenForm.d.ts +0 -0
- /package/{dist/navigation → navigation}/hooks/useOpenForm.js +0 -0
- /package/{dist/progress-indicator → progress-indicator}/ProgressIndicatorProvider.d.ts +0 -0
- /package/{dist/progress-indicator → progress-indicator}/ProgressIndicatorProvider.js +0 -0
- /package/{dist/progress-indicator → progress-indicator}/context.d.ts +0 -0
- /package/{dist/progress-indicator → progress-indicator}/context.js +0 -0
- /package/{dist/progress-indicator → progress-indicator}/hooks/index.d.ts +0 -0
- /package/{dist/progress-indicator → progress-indicator}/hooks/index.js +0 -0
- /package/{dist/progress-indicator → progress-indicator}/hooks/useProgressIndicator.d.ts +0 -0
- /package/{dist/progress-indicator → progress-indicator}/hooks/useProgressIndicator.js +0 -0
- /package/{dist/progress-indicator → progress-indicator}/index.d.ts +0 -0
- /package/{dist/progress-indicator → progress-indicator}/index.js +0 -0
- /package/{dist/providers → providers}/PageEntityFormProvider/index.d.ts +0 -0
- /package/{dist/providers → providers}/PageEntityFormProvider/index.js +0 -0
- /package/{dist/providers → providers}/PageEntityViewProvider/index.d.ts +0 -0
- /package/{dist/providers → providers}/PageEntityViewProvider/index.js +0 -0
- /package/{dist/recordset → recordset}/RecordSetProvider.d.ts +0 -0
- /package/{dist/recordset → recordset}/RecordSetProvider.js +0 -0
- /package/{dist/recordset → recordset}/context.d.ts +0 -0
- /package/{dist/recordset → recordset}/context.js +0 -0
- /package/{dist/recordset → recordset}/hooks/index.d.ts +0 -0
- /package/{dist/recordset → recordset}/hooks/index.js +0 -0
- /package/{dist/recordset → recordset}/hooks/useRecordSetResult.d.ts +0 -0
- /package/{dist/recordset → recordset}/hooks/useRecordSetResult.js +0 -0
- /package/{dist/recordset → recordset}/hooks/useRecordSetSetter.d.ts +0 -0
- /package/{dist/recordset → recordset}/hooks/useRecordSetSetter.js +0 -0
- /package/{dist/recordset → recordset}/hooks/useRecordSetVisibility.d.ts +0 -0
- /package/{dist/recordset → recordset}/hooks/useRecordSetVisibility.js +0 -0
- /package/{dist/recordset → recordset}/index.d.ts +0 -0
- /package/{dist/recordset → recordset}/index.js +0 -0
- /package/{dist/route → route}/RouteProvider.d.ts +0 -0
- /package/{dist/route → route}/RouteProvider.js +0 -0
- /package/{dist/route → route}/context.d.ts +0 -0
- /package/{dist/route → route}/context.js +0 -0
- /package/{dist/route → route}/hooks/index.d.ts +0 -0
- /package/{dist/route → route}/hooks/index.js +0 -0
- /package/{dist/route → route}/hooks/useBasePath.d.ts +0 -0
- /package/{dist/route → route}/hooks/useBasePath.js +0 -0
- /package/{dist/route → route}/hooks/usePathname.d.ts +0 -0
- /package/{dist/route → route}/hooks/usePathname.js +0 -0
- /package/{dist/route → route}/hooks/useRouteResolver.d.ts +0 -0
- /package/{dist/route → route}/hooks/useRouteResolver.js +0 -0
- /package/{dist/route → route}/hooks/useRouter.d.ts +0 -0
- /package/{dist/route → route}/hooks/useRouter.js +0 -0
- /package/{dist/route → route}/hooks/useSearchParams.d.ts +0 -0
- /package/{dist/route → route}/hooks/useSearchParams.js +0 -0
- /package/{dist/route → route}/index.d.ts +0 -0
- /package/{dist/route → route}/index.js +0 -0
- /package/{dist/route → route}/types.d.ts +0 -0
- /package/{dist/route → route}/types.js +0 -0
- /package/{dist/store → store}/ClientAppStore.d.ts +0 -0
- /package/{dist/store → store}/ClientAppStore.js +0 -0
- /package/{dist/store → store}/ComponentStore.d.ts +0 -0
- /package/{dist/store → store}/ComponentStore.js +0 -0
- /package/{dist/store → store}/EventManager.d.ts +0 -0
- /package/{dist/store → store}/EventManager.js +0 -0
- /package/{dist/store → store}/SchemaExperienceStore.d.ts +0 -0
- /package/{dist/store → store}/SchemaExperienceStore.js +0 -0
- /package/{dist/store → store}/index.d.ts +0 -0
- /package/{dist/store → store}/index.js +0 -0
- /package/{dist/toast-notification → toast-notification}/ToastNotificationProvider.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/ToastNotificationProvider.js +0 -0
- /package/{dist/toast-notification → toast-notification}/context.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/context.js +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/index.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/index.js +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/useCloseToastNotification.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/useCloseToastNotification.js +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/useOpenToastNotification.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/useOpenToastNotification.js +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/useToastNotificationItems.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/hooks/useToastNotificationItems.js +0 -0
- /package/{dist/toast-notification → toast-notification}/index.d.ts +0 -0
- /package/{dist/toast-notification → toast-notification}/index.js +0 -0
- /package/{dist/transport → transport}/InMemoryDataService/index.d.ts +0 -0
- /package/{dist/transport → transport}/InMemoryDataService/index.js +0 -0
- /package/{dist/transport → transport}/RestDataService/index.d.ts +0 -0
- /package/{dist/transport → transport}/RestDataService/index.js +0 -0
- /package/{dist/transport → transport}/context.d.ts +0 -0
- /package/{dist/transport → transport}/context.js +0 -0
- /package/{dist/transport → transport}/hooks/index.d.ts +0 -0
- /package/{dist/transport → transport}/hooks/index.js +0 -0
- /package/{dist/transport → transport}/hooks/useDataService.d.ts +0 -0
- /package/{dist/transport → transport}/hooks/useDataService.js +0 -0
- /package/{dist/transport → transport}/index.d.ts +0 -0
- /package/{dist/transport → transport}/index.js +0 -0
- /package/{dist/utils → utils}/calculateColumnWidths.d.ts +0 -0
- /package/{dist/utils → utils}/calculateColumnWidths.js +0 -0
- /package/{dist/utils → utils}/index.d.ts +0 -0
- /package/{dist/utils → utils}/index.js +0 -0
- /package/{dist/widget → widget}/context.d.ts +0 -0
- /package/{dist/widget → widget}/context.js +0 -0
- /package/{dist/widget → widget}/hooks/index.d.ts +0 -0
- /package/{dist/widget → widget}/hooks/index.js +0 -0
- /package/{dist/widget → widget}/index.d.ts +0 -0
- /package/{dist/widget → widget}/index.js +0 -0
|
@@ -1,493 +0,0 @@
|
|
|
1
|
-
import type { AttributeType } from '@headless-adminapp/core/attributes';
|
|
2
|
-
|
|
3
|
-
import { OperatorOptionConfig, OperatorStrings } from './types';
|
|
4
|
-
|
|
5
|
-
export const defaultOperatorStrings: OperatorStrings = {
|
|
6
|
-
equals: 'Equals',
|
|
7
|
-
doesNotEqual: 'Does not equal',
|
|
8
|
-
contains: 'Contains',
|
|
9
|
-
doesNotContain: 'Does not contain',
|
|
10
|
-
beginsWith: 'Begins with',
|
|
11
|
-
doesNotBeginWith: 'Does not begin with',
|
|
12
|
-
endsWith: 'Ends with',
|
|
13
|
-
doesNotEndWith: 'Does not end with',
|
|
14
|
-
containsData: 'Contains data',
|
|
15
|
-
doesNotContainData: 'Does not contain data',
|
|
16
|
-
greaterThan: 'Greater than',
|
|
17
|
-
greaterThanOrEquals: 'Greater than or equals',
|
|
18
|
-
lessThan: 'Less than',
|
|
19
|
-
lessThanOrEquals: 'Less than or equals',
|
|
20
|
-
between: 'Between',
|
|
21
|
-
on: 'On',
|
|
22
|
-
onOrAfter: 'On or after',
|
|
23
|
-
onOrBefore: 'On or before',
|
|
24
|
-
today: 'Today',
|
|
25
|
-
yesterday: 'Yesterday',
|
|
26
|
-
tomorrow: 'Tomorrow',
|
|
27
|
-
thisWeek: 'This week',
|
|
28
|
-
thisMonth: 'This month',
|
|
29
|
-
thisYear: 'This year',
|
|
30
|
-
thisFiscalYear: 'This fiscal year',
|
|
31
|
-
nextWeek: 'Next week',
|
|
32
|
-
nextSevenDays: 'Next 7 days',
|
|
33
|
-
nextMonth: 'Next month',
|
|
34
|
-
nextYear: 'Next year',
|
|
35
|
-
nextFiscalYear: 'Next fiscal year',
|
|
36
|
-
nextXHours: 'Next X hours',
|
|
37
|
-
nextXDays: 'Next X days',
|
|
38
|
-
nextXWeeks: 'Next X weeks',
|
|
39
|
-
nextXMonths: 'Next X months',
|
|
40
|
-
nextXYears: 'Next X years',
|
|
41
|
-
lastWeek: 'Last week',
|
|
42
|
-
lastSevenDays: 'Last 7 days',
|
|
43
|
-
lastMonth: 'Last month',
|
|
44
|
-
lastYear: 'Last year',
|
|
45
|
-
lastFiscalYear: 'Last fiscal year',
|
|
46
|
-
lastXHours: 'Last X hours',
|
|
47
|
-
lastXDays: 'Last X days',
|
|
48
|
-
lastXWeeks: 'Last X weeks',
|
|
49
|
-
lastXMonths: 'Last X months',
|
|
50
|
-
lastXYears: 'Last X years',
|
|
51
|
-
olderthanXHours: 'Older than X hours',
|
|
52
|
-
olderthanXDays: 'Older than X days',
|
|
53
|
-
olderthanXWeeks: 'Older than X weeks',
|
|
54
|
-
olderthanXMonths: 'Older than X months',
|
|
55
|
-
olderthanXYears: 'Older than X years',
|
|
56
|
-
inFiscalYear: 'In fiscal year',
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const stringOperatorOptions: OperatorOptionConfig[] = [
|
|
60
|
-
{
|
|
61
|
-
value: 'eq',
|
|
62
|
-
labelKey: 'equals',
|
|
63
|
-
controls: ['string'],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
value: 'ne',
|
|
67
|
-
labelKey: 'doesNotEqual',
|
|
68
|
-
controls: ['string'],
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
value: 'like',
|
|
72
|
-
labelKey: 'contains',
|
|
73
|
-
controls: ['string'],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
value: 'not-like',
|
|
77
|
-
labelKey: 'doesNotContain',
|
|
78
|
-
controls: ['string'],
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
value: 'begins-with',
|
|
82
|
-
labelKey: 'beginsWith',
|
|
83
|
-
controls: ['string'],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
value: 'not-begin-with',
|
|
87
|
-
labelKey: 'doesNotBeginWith',
|
|
88
|
-
controls: ['string'],
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
value: 'ends-with',
|
|
92
|
-
labelKey: 'endsWith',
|
|
93
|
-
controls: ['string'],
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
value: 'not-end-with',
|
|
97
|
-
labelKey: 'doesNotEndWith',
|
|
98
|
-
controls: ['string'],
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
value: 'not-null',
|
|
102
|
-
labelKey: 'containsData',
|
|
103
|
-
controls: [],
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
value: 'null',
|
|
107
|
-
labelKey: 'doesNotContainData',
|
|
108
|
-
controls: [],
|
|
109
|
-
},
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
const numberOperatorOptions: OperatorOptionConfig[] = [
|
|
113
|
-
{
|
|
114
|
-
value: 'eq',
|
|
115
|
-
labelKey: 'equals',
|
|
116
|
-
controls: ['number'],
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
value: 'ne',
|
|
120
|
-
labelKey: 'doesNotEqual',
|
|
121
|
-
controls: ['number'],
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
value: 'not-null',
|
|
125
|
-
labelKey: 'containsData',
|
|
126
|
-
controls: [],
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
value: 'null',
|
|
130
|
-
labelKey: 'doesNotContainData',
|
|
131
|
-
controls: [],
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
value: 'gt',
|
|
135
|
-
labelKey: 'greaterThan',
|
|
136
|
-
controls: ['number'],
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
value: 'gte',
|
|
140
|
-
labelKey: 'greaterThanOrEquals',
|
|
141
|
-
controls: ['number'],
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
value: 'lt',
|
|
145
|
-
labelKey: 'lessThan',
|
|
146
|
-
controls: ['number'],
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
value: 'lte',
|
|
150
|
-
labelKey: 'lessThanOrEquals',
|
|
151
|
-
controls: ['number'],
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
value: 'between',
|
|
155
|
-
labelKey: 'between',
|
|
156
|
-
controls: ['number', 'number'],
|
|
157
|
-
},
|
|
158
|
-
];
|
|
159
|
-
|
|
160
|
-
const moneyOperatorOptions: OperatorOptionConfig[] = [
|
|
161
|
-
{
|
|
162
|
-
value: 'eq',
|
|
163
|
-
labelKey: 'equals',
|
|
164
|
-
controls: ['money'],
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
value: 'ne',
|
|
168
|
-
labelKey: 'doesNotEqual',
|
|
169
|
-
controls: ['money'],
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
value: 'not-null',
|
|
173
|
-
labelKey: 'containsData',
|
|
174
|
-
controls: [],
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
value: 'null',
|
|
178
|
-
labelKey: 'doesNotContainData',
|
|
179
|
-
controls: [],
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
value: 'gt',
|
|
183
|
-
labelKey: 'greaterThan',
|
|
184
|
-
controls: ['money'],
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
value: 'gte',
|
|
188
|
-
labelKey: 'greaterThanOrEquals',
|
|
189
|
-
controls: ['money'],
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
value: 'lt',
|
|
193
|
-
labelKey: 'lessThan',
|
|
194
|
-
controls: ['money'],
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
value: 'lte',
|
|
198
|
-
labelKey: 'lessThanOrEquals',
|
|
199
|
-
controls: ['money'],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
value: 'between',
|
|
203
|
-
labelKey: 'between',
|
|
204
|
-
controls: ['money', 'money'],
|
|
205
|
-
},
|
|
206
|
-
];
|
|
207
|
-
|
|
208
|
-
const dateOperatorOptions: OperatorOptionConfig[] = [
|
|
209
|
-
{
|
|
210
|
-
value: 'on',
|
|
211
|
-
labelKey: 'on',
|
|
212
|
-
controls: ['date'],
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
value: 'on-or-after',
|
|
216
|
-
labelKey: 'onOrAfter',
|
|
217
|
-
controls: ['date'],
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
value: 'on-or-before',
|
|
221
|
-
labelKey: 'onOrBefore',
|
|
222
|
-
controls: ['date'],
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
value: 'today',
|
|
226
|
-
labelKey: 'today',
|
|
227
|
-
controls: [],
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
value: 'yesterday',
|
|
231
|
-
labelKey: 'yesterday',
|
|
232
|
-
controls: [],
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
value: 'tomorrow',
|
|
236
|
-
labelKey: 'tomorrow',
|
|
237
|
-
controls: [],
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
value: 'this-week',
|
|
241
|
-
labelKey: 'thisWeek',
|
|
242
|
-
controls: [],
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
value: 'this-month',
|
|
246
|
-
labelKey: 'thisMonth',
|
|
247
|
-
controls: [],
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
value: 'this-year',
|
|
251
|
-
labelKey: 'thisYear',
|
|
252
|
-
controls: [],
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
value: 'this-fiscal-year',
|
|
256
|
-
labelKey: 'thisFiscalYear',
|
|
257
|
-
controls: [],
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
value: 'next-week',
|
|
261
|
-
labelKey: 'nextWeek',
|
|
262
|
-
controls: [],
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
value: 'next-seven-days',
|
|
266
|
-
labelKey: 'nextSevenDays',
|
|
267
|
-
controls: [],
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
value: 'next-month',
|
|
271
|
-
labelKey: 'nextMonth',
|
|
272
|
-
controls: [],
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
value: 'next-year',
|
|
276
|
-
labelKey: 'nextYear',
|
|
277
|
-
controls: [],
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
value: 'next-fiscal-year',
|
|
281
|
-
labelKey: 'nextFiscalYear',
|
|
282
|
-
controls: [],
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
value: 'next-x-hours',
|
|
286
|
-
labelKey: 'nextXHours',
|
|
287
|
-
controls: [],
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
value: 'next-x-days',
|
|
291
|
-
labelKey: 'nextXDays',
|
|
292
|
-
controls: [],
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
value: 'next-x-weeks',
|
|
296
|
-
labelKey: 'nextXWeeks',
|
|
297
|
-
controls: [],
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
value: 'next-x-months',
|
|
301
|
-
labelKey: 'nextXMonths',
|
|
302
|
-
controls: [],
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
value: 'next-x-years',
|
|
306
|
-
labelKey: 'nextXYears',
|
|
307
|
-
controls: [],
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
value: 'last-week',
|
|
311
|
-
labelKey: 'lastWeek',
|
|
312
|
-
controls: [],
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
value: 'last-seven-days',
|
|
316
|
-
labelKey: 'lastSevenDays',
|
|
317
|
-
controls: [],
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
value: 'last-month',
|
|
321
|
-
labelKey: 'lastMonth',
|
|
322
|
-
controls: [],
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
value: 'last-year',
|
|
326
|
-
labelKey: 'lastYear',
|
|
327
|
-
controls: [],
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
value: 'last-fiscal-year',
|
|
331
|
-
labelKey: 'lastFiscalYear',
|
|
332
|
-
controls: [],
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
value: 'last-x-hours',
|
|
336
|
-
labelKey: 'lastXHours',
|
|
337
|
-
controls: ['number'],
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
value: 'last-x-days',
|
|
341
|
-
labelKey: 'lastXDays',
|
|
342
|
-
controls: ['number'],
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
value: 'last-x-weeks',
|
|
346
|
-
labelKey: 'lastXWeeks',
|
|
347
|
-
controls: ['number'],
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
value: 'last-x-months',
|
|
351
|
-
labelKey: 'lastXMonths',
|
|
352
|
-
controls: ['number'],
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
value: 'last-x-years',
|
|
356
|
-
labelKey: 'lastXYears',
|
|
357
|
-
controls: ['number'],
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
value: 'olderthan-x-hours',
|
|
361
|
-
labelKey: 'olderthanXHours',
|
|
362
|
-
controls: ['number'],
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
value: 'olderthan-x-days',
|
|
366
|
-
labelKey: 'olderthanXDays',
|
|
367
|
-
controls: ['number'],
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
value: 'olderthan-x-weeks',
|
|
371
|
-
labelKey: 'olderthanXWeeks',
|
|
372
|
-
controls: ['number'],
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
value: 'olderthan-x-months',
|
|
376
|
-
labelKey: 'olderthanXMonths',
|
|
377
|
-
controls: ['number'],
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
value: 'olderthan-x-years',
|
|
381
|
-
labelKey: 'olderthanXYears',
|
|
382
|
-
controls: ['number'],
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
value: 'in-fiscal-year',
|
|
386
|
-
labelKey: 'inFiscalYear',
|
|
387
|
-
controls: [],
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
value: 'between',
|
|
391
|
-
labelKey: 'between',
|
|
392
|
-
controls: ['date', 'date'],
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
value: 'not-null',
|
|
396
|
-
labelKey: 'containsData',
|
|
397
|
-
controls: [],
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
value: 'null',
|
|
401
|
-
labelKey: 'doesNotContainData',
|
|
402
|
-
controls: [],
|
|
403
|
-
},
|
|
404
|
-
];
|
|
405
|
-
|
|
406
|
-
const choiceOperatorOptions: OperatorOptionConfig[] = [
|
|
407
|
-
{
|
|
408
|
-
value: 'in',
|
|
409
|
-
labelKey: 'equals',
|
|
410
|
-
controls: ['choice'],
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
value: 'not-in',
|
|
414
|
-
labelKey: 'doesNotEqual',
|
|
415
|
-
controls: ['choice'],
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
value: 'not-null',
|
|
419
|
-
labelKey: 'containsData',
|
|
420
|
-
controls: [],
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
value: 'null',
|
|
424
|
-
labelKey: 'doesNotContainData',
|
|
425
|
-
controls: [],
|
|
426
|
-
},
|
|
427
|
-
];
|
|
428
|
-
|
|
429
|
-
const lookupOperatorOptions: OperatorOptionConfig[] = [
|
|
430
|
-
{
|
|
431
|
-
value: 'in',
|
|
432
|
-
labelKey: 'equals',
|
|
433
|
-
controls: ['lookup'],
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
value: 'not-in',
|
|
437
|
-
labelKey: 'doesNotEqual',
|
|
438
|
-
controls: ['lookup'],
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
value: 'not-null',
|
|
442
|
-
labelKey: 'containsData',
|
|
443
|
-
controls: [],
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
value: 'null',
|
|
447
|
-
labelKey: 'doesNotContainData',
|
|
448
|
-
controls: [],
|
|
449
|
-
},
|
|
450
|
-
];
|
|
451
|
-
|
|
452
|
-
const booleanOperatorOptions: OperatorOptionConfig[] = [
|
|
453
|
-
{
|
|
454
|
-
value: 'in',
|
|
455
|
-
labelKey: 'equals',
|
|
456
|
-
controls: ['boolean'],
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
value: 'not-in',
|
|
460
|
-
labelKey: 'doesNotEqual',
|
|
461
|
-
controls: ['boolean'],
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
value: 'not-null',
|
|
465
|
-
labelKey: 'containsData',
|
|
466
|
-
controls: [],
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
value: 'null',
|
|
470
|
-
labelKey: 'doesNotContainData',
|
|
471
|
-
controls: [],
|
|
472
|
-
},
|
|
473
|
-
];
|
|
474
|
-
|
|
475
|
-
const idOperatorOptions: OperatorOptionConfig[] = [];
|
|
476
|
-
|
|
477
|
-
const attachmentOperatorOptions: OperatorOptionConfig[] = [];
|
|
478
|
-
|
|
479
|
-
export const operatorOptions: Record<AttributeType, OperatorOptionConfig[]> = {
|
|
480
|
-
id: idOperatorOptions,
|
|
481
|
-
boolean: booleanOperatorOptions,
|
|
482
|
-
choice: choiceOperatorOptions,
|
|
483
|
-
choices: choiceOperatorOptions,
|
|
484
|
-
date: dateOperatorOptions,
|
|
485
|
-
lookup: lookupOperatorOptions,
|
|
486
|
-
money: moneyOperatorOptions,
|
|
487
|
-
number: numberOperatorOptions,
|
|
488
|
-
string: stringOperatorOptions,
|
|
489
|
-
attachment: attachmentOperatorOptions,
|
|
490
|
-
mixed: [],
|
|
491
|
-
daterange: [],
|
|
492
|
-
lookups: [],
|
|
493
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { AttributeType } from '@headless-adminapp/core/attributes';
|
|
2
|
-
import type { OperatorKey } from '@headless-adminapp/core/transport';
|
|
3
|
-
|
|
4
|
-
export interface OperatorStrings {
|
|
5
|
-
equals: string;
|
|
6
|
-
doesNotEqual: string;
|
|
7
|
-
contains: string;
|
|
8
|
-
doesNotContain: string;
|
|
9
|
-
beginsWith: string;
|
|
10
|
-
doesNotBeginWith: string;
|
|
11
|
-
endsWith: string;
|
|
12
|
-
doesNotEndWith: string;
|
|
13
|
-
containsData: string;
|
|
14
|
-
doesNotContainData: string;
|
|
15
|
-
greaterThan: string;
|
|
16
|
-
greaterThanOrEquals: string;
|
|
17
|
-
lessThan: string;
|
|
18
|
-
lessThanOrEquals: string;
|
|
19
|
-
between: string;
|
|
20
|
-
on: string;
|
|
21
|
-
onOrAfter: string;
|
|
22
|
-
onOrBefore: string;
|
|
23
|
-
today: string;
|
|
24
|
-
yesterday: string;
|
|
25
|
-
tomorrow: string;
|
|
26
|
-
thisWeek: string;
|
|
27
|
-
thisMonth: string;
|
|
28
|
-
thisYear: string;
|
|
29
|
-
thisFiscalYear: string;
|
|
30
|
-
nextWeek: string;
|
|
31
|
-
nextSevenDays: string;
|
|
32
|
-
nextMonth: string;
|
|
33
|
-
nextYear: string;
|
|
34
|
-
nextFiscalYear: string;
|
|
35
|
-
nextXHours: string;
|
|
36
|
-
nextXDays: string;
|
|
37
|
-
nextXWeeks: string;
|
|
38
|
-
nextXMonths: string;
|
|
39
|
-
nextXYears: string;
|
|
40
|
-
lastWeek: string;
|
|
41
|
-
lastSevenDays: string;
|
|
42
|
-
lastMonth: string;
|
|
43
|
-
lastYear: string;
|
|
44
|
-
lastFiscalYear: string;
|
|
45
|
-
lastXHours: string;
|
|
46
|
-
lastXDays: string;
|
|
47
|
-
lastXWeeks: string;
|
|
48
|
-
lastXMonths: string;
|
|
49
|
-
lastXYears: string;
|
|
50
|
-
olderthanXHours: string;
|
|
51
|
-
olderthanXDays: string;
|
|
52
|
-
olderthanXWeeks: string;
|
|
53
|
-
olderthanXMonths: string;
|
|
54
|
-
olderthanXYears: string;
|
|
55
|
-
inFiscalYear: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type OperatorOptionConfig = {
|
|
59
|
-
value: OperatorKey;
|
|
60
|
-
labelKey: keyof OperatorStrings;
|
|
61
|
-
controls: AttributeType[];
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type OperatorOption = {
|
|
65
|
-
value: OperatorKey;
|
|
66
|
-
label: string;
|
|
67
|
-
controls: AttributeType[];
|
|
68
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { AttributeType } from '@headless-adminapp/core/attributes';
|
|
2
|
-
|
|
3
|
-
import { operatorOptions } from './constants';
|
|
4
|
-
import { OperatorOption, OperatorStrings } from './types';
|
|
5
|
-
|
|
6
|
-
export const getLocalizedOperatorOptions = (
|
|
7
|
-
strings: OperatorStrings
|
|
8
|
-
): Record<AttributeType, OperatorOption[]> => {
|
|
9
|
-
return Object.entries(operatorOptions).reduce(
|
|
10
|
-
(acc, [key, value]) => ({
|
|
11
|
-
...acc,
|
|
12
|
-
[key]: value.map((option) => ({
|
|
13
|
-
...option,
|
|
14
|
-
label: strings[option.labelKey],
|
|
15
|
-
})),
|
|
16
|
-
}),
|
|
17
|
-
{} as Record<AttributeType, OperatorOption[]>
|
|
18
|
-
);
|
|
19
|
-
};
|
package/src/datagrid/context.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { LocalizedDataLookup } from '@headless-adminapp/core/attributes';
|
|
2
|
-
import { CommandItemExperience } from '@headless-adminapp/core/experience/command';
|
|
3
|
-
import {
|
|
4
|
-
ColumnCondition,
|
|
5
|
-
EntityMainGridCommandContext,
|
|
6
|
-
EntitySubGridCommandContext,
|
|
7
|
-
SortingState,
|
|
8
|
-
View,
|
|
9
|
-
ViewColumn,
|
|
10
|
-
} from '@headless-adminapp/core/experience/view';
|
|
11
|
-
import {
|
|
12
|
-
InferredSchemaType,
|
|
13
|
-
Schema,
|
|
14
|
-
SchemaAttributes,
|
|
15
|
-
} from '@headless-adminapp/core/schema';
|
|
16
|
-
import {
|
|
17
|
-
Filter,
|
|
18
|
-
RetriveRecordsResult,
|
|
19
|
-
} from '@headless-adminapp/core/transport';
|
|
20
|
-
|
|
21
|
-
import { createContext } from '../mutable/context';
|
|
22
|
-
|
|
23
|
-
export interface TransformedViewColumn<
|
|
24
|
-
S extends SchemaAttributes = SchemaAttributes
|
|
25
|
-
> extends ViewColumn<S> {
|
|
26
|
-
id: string;
|
|
27
|
-
label: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface GridContextState<
|
|
31
|
-
S extends SchemaAttributes = SchemaAttributes,
|
|
32
|
-
CommandContext extends
|
|
33
|
-
| EntityMainGridCommandContext
|
|
34
|
-
| EntitySubGridCommandContext = EntityMainGridCommandContext
|
|
35
|
-
> {
|
|
36
|
-
// from props
|
|
37
|
-
schema: Schema<S>;
|
|
38
|
-
view: View<S>;
|
|
39
|
-
viewLookup: LocalizedDataLookup[];
|
|
40
|
-
onChangeView: (viewId: string) => void;
|
|
41
|
-
extraFilter?: Filter;
|
|
42
|
-
commands: CommandItemExperience<CommandContext>[][];
|
|
43
|
-
maxRecords?: number;
|
|
44
|
-
|
|
45
|
-
// internal state (visual and filters)
|
|
46
|
-
columns: TransformedViewColumn<S>[];
|
|
47
|
-
searchText: string;
|
|
48
|
-
columnFilters: Partial<Record<keyof S, ColumnCondition>>;
|
|
49
|
-
sorting: SortingState<S>;
|
|
50
|
-
|
|
51
|
-
// internal state (selection)
|
|
52
|
-
selectedIds: string[];
|
|
53
|
-
|
|
54
|
-
// internal state (data)
|
|
55
|
-
data: RetriveRecordsResult<InferredSchemaType<S>> | null;
|
|
56
|
-
dataState: {
|
|
57
|
-
isFetching: boolean;
|
|
58
|
-
hasNextPage: boolean;
|
|
59
|
-
isFetchingNextPage: boolean;
|
|
60
|
-
};
|
|
61
|
-
fetchNextPage: () => void;
|
|
62
|
-
isSubGrid: boolean;
|
|
63
|
-
allowViewSelection: boolean;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export const GridContext = createContext<GridContextState>();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './useChangeView';
|
|
2
|
-
export * from './useGridColumnFilter';
|
|
3
|
-
export * from './useGridColumns';
|
|
4
|
-
export * from './useGridCommands';
|
|
5
|
-
export * from './useGridData';
|
|
6
|
-
export * from './useGridDataState';
|
|
7
|
-
export * from './useGridExtraFilter';
|
|
8
|
-
export * from './useGridOptions';
|
|
9
|
-
export * from './useGridPagination';
|
|
10
|
-
export * from './useGridRefresh';
|
|
11
|
-
export * from './useGridSchema';
|
|
12
|
-
export * from './useGridSelection';
|
|
13
|
-
export * from './useGridSorting';
|
|
14
|
-
export * from './useGridViewLookupData';
|
|
15
|
-
export * from './useMainGridCommands';
|
|
16
|
-
export * from './useMaxRecords';
|
|
17
|
-
export * from './useSearchText';
|
|
18
|
-
export * from './useSelectedView';
|
|
19
|
-
export * from './useSubGridCommands';
|
|
20
|
-
export * from './useLoadMainGridPage';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
import { useContextSelector } from '../../mutable/context';
|
|
4
|
-
import { GridContext } from '../context';
|
|
5
|
-
|
|
6
|
-
export function useChangeView() {
|
|
7
|
-
const onChangeView = useContextSelector(
|
|
8
|
-
GridContext,
|
|
9
|
-
(state) => state.onChangeView
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
return useCallback(
|
|
13
|
-
(viewId: string) => {
|
|
14
|
-
onChangeView(viewId);
|
|
15
|
-
},
|
|
16
|
-
[onChangeView]
|
|
17
|
-
);
|
|
18
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ColumnCondition } from '@headless-adminapp/core/experience/view';
|
|
2
|
-
import { useCallback } from 'react';
|
|
3
|
-
|
|
4
|
-
import { useContextSelector, useContextSetValue } from '../../mutable/context';
|
|
5
|
-
import { GridContext } from '../context';
|
|
6
|
-
|
|
7
|
-
export function useGridColumnFilter() {
|
|
8
|
-
const columnFilters = useContextSelector(
|
|
9
|
-
GridContext,
|
|
10
|
-
(state) => state.columnFilters
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
const setValue = useContextSetValue(GridContext);
|
|
14
|
-
|
|
15
|
-
const setColumnFilter = useCallback(
|
|
16
|
-
(columnName: string, value: ColumnCondition | undefined) => {
|
|
17
|
-
setValue((state) => ({
|
|
18
|
-
columnFilters: {
|
|
19
|
-
...state.columnFilters,
|
|
20
|
-
[columnName]: value,
|
|
21
|
-
},
|
|
22
|
-
}));
|
|
23
|
-
},
|
|
24
|
-
[setValue]
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
return [columnFilters, setColumnFilter] as const;
|
|
28
|
-
}
|