@rebasepro/cms 0.24.0 → 0.24.1-canary.g56af4a4
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/collection_editor/CollectionEditorDialogsContext.js +10 -0
- package/dist/collection_editor/CollectionEditorDialogsContext.js.map +1 -0
- package/dist/collection_editor/ConfigControllerProvider.js +274 -0
- package/dist/collection_editor/ConfigControllerProvider.js.map +1 -0
- package/dist/collection_editor/api/generateCollectionApi.js +64 -0
- package/dist/collection_editor/api/generateCollectionApi.js.map +1 -0
- package/dist/collection_editor/collection_wire.d.ts +13 -0
- package/dist/collection_editor/collection_wire.js +49 -0
- package/dist/collection_editor/collection_wire.js.map +1 -0
- package/dist/collection_editor/liveSchemaClient.js +130 -0
- package/dist/collection_editor/liveSchemaClient.js.map +1 -0
- package/dist/collection_editor/relation_kinds.js +74 -0
- package/dist/collection_editor/relation_kinds.js.map +1 -0
- package/dist/collection_editor/serializable_types.d.ts +4 -1
- package/dist/collection_editor/serializable_utils.js +504 -0
- package/dist/collection_editor/serializable_utils.js.map +1 -0
- package/dist/collection_editor/ui/EditorCollectionAction.js +37 -0
- package/dist/collection_editor/ui/EditorCollectionAction.js.map +1 -0
- package/dist/collection_editor/ui/MissingReferenceWidget.js +39 -0
- package/dist/collection_editor/ui/MissingReferenceWidget.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.js +160 -0
- package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.js +61 -0
- package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.js +731 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.js +220 -0
- package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionJsonImportDialog.js +160 -0
- package/dist/collection_editor/ui/collection_editor/CollectionJsonImportDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.js +394 -0
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.js +616 -0
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionStudioView.js +68 -0
- package/dist/collection_editor/ui/collection_editor/CollectionStudioView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionYupValidation.js +11 -0
- package/dist/collection_editor/ui/collection_editor/CollectionYupValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.js +148 -0
- package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.js +244 -0
- package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/EnumForm.js +222 -0
- package/dist/collection_editor/ui/collection_editor/EnumForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.js +204 -0
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/GetCodeDialog.js +108 -0
- package/dist/collection_editor/ui/collection_editor/GetCodeDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.js +163 -0
- package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.js +59 -0
- package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.js +640 -0
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.js +141 -0
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/PropertyTree.js +210 -0
- package/dist/collection_editor/ui/collection_editor/PropertyTree.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionStudioView.js +31 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionStudioView.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionsStudioView.js +25 -0
- package/dist/collection_editor/ui/collection_editor/RouterCollectionsStudioView.js.map +1 -0
- package/dist/{SchemaChangeDialog-CcFSXvkK.js → collection_editor/ui/collection_editor/SchemaChangeDialog.js} +42 -59
- package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/SwitchControl.js +24 -0
- package/dist/collection_editor/ui/collection_editor/SwitchControl.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/ViewModeSwitch.js +66 -0
- package/dist/collection_editor/ui/collection_editor/ViewModeSwitch.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.js +61 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.js +188 -0
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +12 -0
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.js +74 -0
- package/dist/collection_editor/ui/collection_editor/import/clean_import_data.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.js +100 -0
- package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/BooleanPropertyField.js +34 -0
- package/dist/collection_editor/ui/collection_editor/properties/BooleanPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/CommonPropertyFields.js +75 -0
- package/dist/collection_editor/ui/collection_editor/properties/CommonPropertyFields.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.js +338 -0
- package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.js +83 -0
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.js +15 -0
- package/dist/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.js +121 -0
- package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.js +127 -0
- package/dist/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/NumberPropertyField.js +151 -0
- package/dist/collection_editor/ui/collection_editor/properties/NumberPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.js +77 -0
- package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.js +254 -0
- package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.js +71 -0
- package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/StoragePropertyField.js +356 -0
- package/dist/collection_editor/ui/collection_editor/properties/StoragePropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/StringPropertyField.js +173 -0
- package/dist/collection_editor/ui/collection_editor/properties/StringPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/UrlPropertyField.js +79 -0
- package/dist/collection_editor/ui/collection_editor/properties/UrlPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.js +34 -0
- package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.js +47 -0
- package/dist/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.js +47 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.js +62 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.js +119 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +10 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.js +178 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.js +23 -0
- package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/blog_template.js +116 -0
- package/dist/collection_editor/ui/collection_editor/templates/blog_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/pages_template.js +182 -0
- package/dist/collection_editor/ui/collection_editor/templates/pages_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/products_template.js +87 -0
- package/dist/collection_editor/ui/collection_editor/templates/products_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/templates/users_template.js +46 -0
- package/dist/collection_editor/ui/collection_editor/templates/users_template.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/util.js +20 -0
- package/dist/collection_editor/ui/collection_editor/util.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/utils/strings.js +2 -0
- package/dist/collection_editor/ui/collection_editor/utils/supported_fields.js +37 -0
- package/dist/collection_editor/ui/collection_editor/utils/supported_fields.js.map +1 -0
- package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.js +192 -0
- package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.js.map +1 -0
- package/dist/collection_editor/useCollectionEditorController.js +12 -0
- package/dist/collection_editor/useCollectionEditorController.js.map +1 -0
- package/dist/collection_editor/useCollectionsConfigController.js +12 -0
- package/dist/collection_editor/useCollectionsConfigController.js.map +1 -0
- package/dist/collection_editor/useJsonCollectionsConfigController.js +191 -0
- package/dist/collection_editor/useJsonCollectionsConfigController.js.map +1 -0
- package/dist/collection_editor/useLiveSchemaEditing.js +214 -0
- package/dist/collection_editor/useLiveSchemaEditing.js.map +1 -0
- package/dist/collection_editor/useLocalCollectionsConfigController.js +228 -0
- package/dist/collection_editor/useLocalCollectionsConfigController.js.map +1 -0
- package/dist/collection_editor/useSafeSnackbarController.js +13 -0
- package/dist/collection_editor/useSafeSnackbarController.js.map +1 -0
- package/dist/collection_editor/validateCollectionJson.js +289 -0
- package/dist/collection_editor/validateCollectionJson.js.map +1 -0
- package/dist/collection_editor_ui.js +7 -33
- package/dist/components/AdditionalFieldValue.js +60 -0
- package/dist/components/AdditionalFieldValue.js.map +1 -0
- package/dist/components/AdminModeSyncer.js +41 -0
- package/dist/components/AdminModeSyncer.js.map +1 -0
- package/dist/components/ArrayContainer.d.ts +8 -2
- package/dist/components/ArrayContainer.js +363 -0
- package/dist/components/ArrayContainer.js.map +1 -0
- package/dist/components/ClearFilterSortButton.js +33 -0
- package/dist/components/ClearFilterSortButton.js.map +1 -0
- package/dist/components/CollectionEditorDialogs.js +49 -0
- package/dist/components/CollectionEditorDialogs.js.map +1 -0
- package/dist/components/CollectionPanel.js +95 -0
- package/dist/components/CollectionPanel.js.map +1 -0
- package/dist/components/CollectionTableBinding/CollectionRowActions.js +165 -0
- package/dist/components/CollectionTableBinding/CollectionRowActions.js.map +1 -0
- package/dist/components/CollectionTableBinding/CollectionTableBinding.js +329 -0
- package/dist/components/CollectionTableBinding/CollectionTableBinding.js.map +1 -0
- package/dist/components/CollectionTableBinding/PropertyTableCell.js +311 -0
- package/dist/components/CollectionTableBinding/PropertyTableCell.js.map +1 -0
- package/dist/components/CollectionTableBinding/column_utils.js +85 -0
- package/dist/components/CollectionTableBinding/column_utils.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/CompactEntityCellField.js +45 -0
- package/dist/components/CollectionTableBinding/fields/CompactEntityCellField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.js +66 -0
- package/dist/components/CollectionTableBinding/fields/TableMultipleRelationField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.js +86 -0
- package/dist/components/CollectionTableBinding/fields/TableReferenceField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationField.js +93 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.js +33 -0
- package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/TableStorageUpload.js +171 -0
- package/dist/components/CollectionTableBinding/fields/TableStorageUpload.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.js +91 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableSelect.js.map +1 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableUserSelect.js +36 -0
- package/dist/components/CollectionTableBinding/fields/VirtualTableUserSelect.js.map +1 -0
- package/dist/components/CollectionTableBinding/index.js +6 -0
- package/dist/components/CollectionTableBinding/internal/CollectionTableToolbar.js +50 -0
- package/dist/components/CollectionTableBinding/internal/CollectionTableToolbar.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCell.d.ts +2 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCell.js +223 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCell.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCellActions.js +58 -0
- package/dist/components/CollectionTableBinding/internal/EntityTableCellActions.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/TableCellOpener.js +53 -0
- package/dist/components/CollectionTableBinding/internal/TableCellOpener.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/common.js +40 -0
- package/dist/components/CollectionTableBinding/internal/common.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.js +270 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useDraggable.js +68 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useDraggable.js.map +1 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useWindowSize.js +24 -0
- package/dist/components/CollectionTableBinding/internal/popup_field/useWindowSize.js.map +1 -0
- package/dist/components/CollectionTableBinding/table_bindings.js +306 -0
- package/dist/components/CollectionTableBinding/table_bindings.js.map +1 -0
- package/dist/components/CollectionViewBinding/BoardCardBinding.js +160 -0
- package/dist/components/CollectionViewBinding/BoardCardBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.js +471 -0
- package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionCardViewBinding.js +108 -0
- package/dist/components/CollectionViewBinding/CollectionCardViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.js +988 -0
- package/dist/components/CollectionViewBinding/CollectionListViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionViewActions.js +146 -0
- package/dist/components/CollectionViewBinding/CollectionViewActions.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionViewBinding.js +1209 -0
- package/dist/components/CollectionViewBinding/CollectionViewBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.js +133 -0
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.js.map +1 -0
- package/dist/components/CollectionViewBinding/EntityCardBinding.js +133 -0
- package/dist/components/CollectionViewBinding/EntityCardBinding.js.map +1 -0
- package/dist/components/CollectionViewBinding/FilterPresetsButton.js +203 -0
- package/dist/components/CollectionViewBinding/FilterPresetsButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/FiltersDialog.js +148 -0
- package/dist/components/CollectionViewBinding/FiltersDialog.js.map +1 -0
- package/dist/components/CollectionViewBinding/SearchExplanation.js +86 -0
- package/dist/components/CollectionViewBinding/SearchExplanation.js.map +1 -0
- package/dist/components/CollectionViewBinding/SearchHighlight.js +262 -0
- package/dist/components/CollectionViewBinding/SearchHighlight.js.map +1 -0
- package/dist/components/CollectionViewBinding/SlotValue.js +117 -0
- package/dist/components/CollectionViewBinding/SlotValue.js.map +1 -0
- package/dist/components/CollectionViewBinding/SortButton.js +214 -0
- package/dist/components/CollectionViewBinding/SortButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitListCloseButton.js +41 -0
- package/dist/components/CollectionViewBinding/SplitListCloseButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitListShowButton.js +29 -0
- package/dist/components/CollectionViewBinding/SplitListShowButton.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitListView.js +311 -0
- package/dist/components/CollectionViewBinding/SplitListView.js.map +1 -0
- package/dist/components/CollectionViewBinding/SplitViewContext.js +21 -0
- package/dist/components/CollectionViewBinding/SplitViewContext.js.map +1 -0
- package/dist/components/CollectionViewBinding/ViewModeToggle.js +150 -0
- package/dist/components/CollectionViewBinding/ViewModeToggle.js.map +1 -0
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.js +49 -0
- package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.js.map +1 -0
- package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.js +122 -0
- package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.js.map +1 -0
- package/dist/components/CollectionViewBinding/useBoardDataController.js +530 -0
- package/dist/components/CollectionViewBinding/useBoardDataController.js.map +1 -0
- package/dist/components/CollectionViewBinding/usePreviewSlots.d.ts +4 -1
- package/dist/components/CollectionViewBinding/usePreviewSlots.js +384 -0
- package/dist/components/CollectionViewBinding/usePreviewSlots.js.map +1 -0
- package/dist/components/CollectionViewBinding/useSelectionController.js +104 -0
- package/dist/components/CollectionViewBinding/useSelectionController.js.map +1 -0
- package/dist/components/CollectionViewBinding/utils.js +21 -0
- package/dist/components/CollectionViewBinding/utils.js.map +1 -0
- package/dist/components/DefaultAppBar.js +179 -0
- package/dist/components/DefaultAppBar.js.map +1 -0
- package/dist/components/DefaultDrawer.js +364 -0
- package/dist/components/DefaultDrawer.js.map +1 -0
- package/dist/components/DeleteEntityDialog.js +256 -0
- package/dist/components/DeleteEntityDialog.js.map +1 -0
- package/dist/components/DetailViewBinding.js +504 -0
- package/dist/components/DetailViewBinding.js.map +1 -0
- package/dist/components/DrawerNavigationGroup.js +74 -0
- package/dist/components/DrawerNavigationGroup.js.map +1 -0
- package/dist/components/DrawerNavigationItem.d.ts +8 -0
- package/dist/components/DrawerNavigationItem.js +45 -0
- package/dist/components/DrawerNavigationItem.js.map +1 -0
- package/dist/components/EditFormActions.js +210 -0
- package/dist/components/EditFormActions.js.map +1 -0
- package/dist/components/EditViewBinding.js +802 -0
- package/dist/components/EditViewBinding.js.map +1 -0
- package/dist/components/EntityDisplayHeader.js +139 -0
- package/dist/components/EntityDisplayHeader.js.map +1 -0
- package/dist/components/EntityIdentityBar.js +364 -0
- package/dist/components/EntityIdentityBar.js.map +1 -0
- package/dist/components/EntityInspector.js +96 -0
- package/dist/components/EntityInspector.js.map +1 -0
- package/dist/components/EntityPreviewBinding.js +282 -0
- package/dist/components/EntityPreviewBinding.js.map +1 -0
- package/dist/components/EntityPreviewNesting.js +53 -0
- package/dist/components/EntityPreviewNesting.js.map +1 -0
- package/dist/components/EntityViewBinding.js +246 -0
- package/dist/components/EntityViewBinding.js.map +1 -0
- package/dist/components/FieldCaption.js +17 -0
- package/dist/components/FieldCaption.js.map +1 -0
- package/dist/components/HomePage/ContentHomePage.js +326 -0
- package/dist/components/HomePage/ContentHomePage.js.map +1 -0
- package/dist/components/HomePage/FavouritesView.js +44 -0
- package/dist/components/HomePage/FavouritesView.js.map +1 -0
- package/dist/components/HomePage/HomePageDnD.js +436 -0
- package/dist/components/HomePage/HomePageDnD.js.map +1 -0
- package/dist/components/HomePage/NavigationCard.js +59 -0
- package/dist/components/HomePage/NavigationCard.js.map +1 -0
- package/dist/components/HomePage/NavigationCardBinding.js +70 -0
- package/dist/components/HomePage/NavigationCardBinding.js.map +1 -0
- package/dist/components/HomePage/NavigationGroup.js +98 -0
- package/dist/components/HomePage/NavigationGroup.js.map +1 -0
- package/dist/components/HomePage/RenameGroupDialog.js +89 -0
- package/dist/components/HomePage/RenameGroupDialog.js.map +1 -0
- package/dist/components/InlineEntityPreview.js +116 -0
- package/dist/components/InlineEntityPreview.js.map +1 -0
- package/dist/{JsonPreviewBinding-v0w3H0fp.js → components/JsonPreviewBinding.js} +2 -2
- package/dist/components/JsonPreviewBinding.js.map +1 -0
- package/dist/components/NavigationLoadingErrorView.js +27 -0
- package/dist/components/NavigationLoadingErrorView.js.map +1 -0
- package/dist/components/PickerTrigger.js +27 -0
- package/dist/components/PickerTrigger.js.map +1 -0
- package/dist/components/PropertyCollectionView.js +215 -0
- package/dist/components/PropertyCollectionView.js.map +1 -0
- package/dist/components/PropertyConfigBadge.js +19 -0
- package/dist/components/PropertyConfigBadge.js.map +1 -0
- package/dist/components/PropertyKeyHint.js +58 -0
- package/dist/components/PropertyKeyHint.js.map +1 -0
- package/dist/components/RebaseAuthGate.js +35 -0
- package/dist/components/RebaseAuthGate.js.map +1 -0
- package/dist/components/RebaseCMS.js +44 -0
- package/dist/components/RebaseCMS.js.map +1 -0
- package/dist/components/RebaseLayout.js +59 -0
- package/dist/components/RebaseLayout.js.map +1 -0
- package/dist/components/RebaseNavigation.js +211 -0
- package/dist/components/RebaseNavigation.js.map +1 -0
- package/dist/components/RebaseRouteDefs.js +96 -0
- package/dist/components/RebaseRouteDefs.js.map +1 -0
- package/dist/components/RebaseShell.js +50 -0
- package/dist/components/RebaseShell.js.map +1 -0
- package/dist/components/ReferenceTable/SelectionTableBinding.js +224 -0
- package/dist/components/ReferenceTable/SelectionTableBinding.js.map +1 -0
- package/dist/components/ReferenceWidget.js +100 -0
- package/dist/components/ReferenceWidget.js.map +1 -0
- package/dist/components/RelationSelector.js +625 -0
- package/dist/components/RelationSelector.js.map +1 -0
- package/dist/components/SearchIconsView.js +52 -0
- package/dist/components/SearchIconsView.js.map +1 -0
- package/dist/components/SelectableTable/SelectableTable.d.ts +1 -1
- package/dist/components/SelectableTable/SelectableTable.js +158 -0
- package/dist/components/SelectableTable/SelectableTable.js.map +1 -0
- package/dist/components/SelectableTable/SelectableTableContext.js +8 -0
- package/dist/components/SelectableTable/SelectableTableContext.js.map +1 -0
- package/dist/components/SelectableTable/SelectionStore.js +29 -0
- package/dist/components/SelectableTable/SelectionStore.js.map +1 -0
- package/dist/components/SelectableTable/filters/BooleanFilterField.js +28 -0
- package/dist/components/SelectableTable/filters/BooleanFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/DateTimeFilterField.js +93 -0
- package/dist/components/SelectableTable/filters/DateTimeFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/FilterFieldBinding.js +132 -0
- package/dist/components/SelectableTable/filters/FilterFieldBinding.js.map +1 -0
- package/dist/components/SelectableTable/filters/ReferenceFilterField.js +157 -0
- package/dist/components/SelectableTable/filters/ReferenceFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/RelationFilterField.js +169 -0
- package/dist/components/SelectableTable/filters/RelationFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/StringNumberFilterField.js +181 -0
- package/dist/components/SelectableTable/filters/StringNumberFilterField.js.map +1 -0
- package/dist/components/SelectableTable/filters/null_filter.js +36 -0
- package/dist/components/SelectableTable/filters/null_filter.js.map +1 -0
- package/dist/components/SideDialogs.js +149 -0
- package/dist/components/SideDialogs.js.map +1 -0
- package/dist/components/SidePanelBinding.js +287 -0
- package/dist/components/SidePanelBinding.js.map +1 -0
- package/dist/components/SidePanelProvider.js +69 -0
- package/dist/components/SidePanelProvider.js.map +1 -0
- package/dist/components/UserSelector.d.ts +2 -0
- package/dist/components/UserSelector.js +418 -0
- package/dist/components/UserSelector.js.map +1 -0
- package/dist/components/admin/CreationResultDialog.js +118 -0
- package/dist/components/admin/CreationResultDialog.js.map +1 -0
- package/dist/components/app/AppBar.js +14 -0
- package/dist/components/app/AppBar.js.map +1 -0
- package/dist/components/app/Drawer.js +26 -0
- package/dist/components/app/Drawer.js.map +1 -0
- package/dist/components/app/Scaffold.js +229 -0
- package/dist/components/app/Scaffold.js.map +1 -0
- package/dist/components/app/useApp.js +24 -0
- package/dist/components/app/useApp.js.map +1 -0
- package/dist/components/common/ActionMenuLabel.js +30 -0
- package/dist/components/common/ActionMenuLabel.js.map +1 -0
- package/dist/components/common/default_entity_actions.js +590 -0
- package/dist/components/common/default_entity_actions.js.map +1 -0
- package/dist/components/drawer_expansion.d.ts +25 -0
- package/dist/components/drawer_expansion.js +44 -0
- package/dist/components/drawer_expansion.js.map +1 -0
- package/dist/components/field_configs.d.ts +2 -2
- package/dist/components/field_configs.js +431 -0
- package/dist/components/field_configs.js.map +1 -0
- package/dist/components/field_ids.d.ts +11 -0
- package/dist/components/field_ids.js +58 -0
- package/dist/components/field_ids.js.map +1 -0
- package/dist/components/history/EntityHistoryEntry.js +151 -0
- package/dist/components/history/EntityHistoryEntry.js.map +1 -0
- package/dist/components/history/EntityHistoryView.js +157 -0
- package/dist/components/history/EntityHistoryView.js.map +1 -0
- package/dist/components/history/UserChip.js +21 -0
- package/dist/components/history/UserChip.js.map +1 -0
- package/dist/components/history/index.js +4 -0
- package/dist/components/lazy_record_views.d.ts +10 -0
- package/dist/components/lazy_record_views.js +57 -0
- package/dist/components/lazy_record_views.js.map +1 -0
- package/dist/contexts/BreacrumbsContext.js +28 -0
- package/dist/contexts/BreacrumbsContext.js.map +1 -0
- package/dist/contexts/EditorAIControllerContext.d.ts +18 -0
- package/dist/contexts/EditorAIControllerContext.js +29 -0
- package/dist/contexts/EditorAIControllerContext.js.map +1 -0
- package/dist/contexts/SideDialogsControllerContext.js +7 -0
- package/dist/contexts/SideDialogsControllerContext.js.map +1 -0
- package/dist/data_export/export/BasicExportAction.js +151 -0
- package/dist/data_export/export/BasicExportAction.js.map +1 -0
- package/dist/data_export/export/ExportCollectionAction.js +297 -0
- package/dist/data_export/export/ExportCollectionAction.js.map +1 -0
- package/dist/data_export/export/additional_fields.js +40 -0
- package/dist/data_export/export/additional_fields.js.map +1 -0
- package/dist/data_export/export/export.d.ts +35 -0
- package/dist/data_export/export/export.js +400 -0
- package/dist/data_export/export/export.js.map +1 -0
- package/dist/data_export/export/fetch_export_data.d.ts +17 -7
- package/dist/data_export/export/fetch_export_data.js +67 -0
- package/dist/data_export/export/fetch_export_data.js.map +1 -0
- package/dist/data_export/export/index.d.ts +4 -2
- package/dist/data_export/export/index.js +5 -0
- package/dist/data_import/components/DataNewPropertiesMapping.js +207 -0
- package/dist/data_import/components/DataNewPropertiesMapping.js.map +1 -0
- package/dist/data_import/components/ImportConversionProblems.js +89 -0
- package/dist/data_import/components/ImportConversionProblems.js.map +1 -0
- package/dist/data_import/components/ImportFileUpload.js +43 -0
- package/dist/data_import/components/ImportFileUpload.js.map +1 -0
- package/dist/data_import/components/ImportNewPropertyFieldPreview.js +42 -0
- package/dist/data_import/components/ImportNewPropertyFieldPreview.js.map +1 -0
- package/dist/data_import/components/ImportSaveInProgress.js +105 -0
- package/dist/data_import/components/ImportSaveInProgress.js.map +1 -0
- package/dist/data_import/hooks/useImportConfig.js +34 -0
- package/dist/data_import/hooks/useImportConfig.js.map +1 -0
- package/dist/{import-DjQoRrIU.js → data_import/import/ImportCollectionAction.js} +53 -43
- package/dist/data_import/import/ImportCollectionAction.js.map +1 -0
- package/dist/data_import/import/index.js +2 -0
- package/dist/data_import/utils/csv.js +146 -0
- package/dist/data_import/utils/csv.js.map +1 -0
- package/dist/data_import/utils/data.js +366 -0
- package/dist/data_import/utils/data.js.map +1 -0
- package/dist/data_import/utils/file_headers.js +32 -0
- package/dist/data_import/utils/file_headers.js.map +1 -0
- package/dist/data_import/utils/file_to_json.js +149 -0
- package/dist/data_import/utils/file_to_json.js.map +1 -0
- package/dist/data_import/utils/get_import_inference_type.js +14 -0
- package/dist/data_import/utils/get_import_inference_type.js.map +1 -0
- package/dist/data_import/utils/id_column.js +27 -0
- package/dist/data_import/utils/id_column.js.map +1 -0
- package/dist/data_import/utils/import_columns.js +92 -0
- package/dist/data_import/utils/import_columns.js.map +1 -0
- package/dist/data_import/utils/save_entities.d.ts +33 -4
- package/dist/data_import/utils/save_entities.js +244 -0
- package/dist/data_import/utils/save_entities.js.map +1 -0
- package/dist/data_import/utils/transforms.js +83 -0
- package/dist/data_import/utils/transforms.js.map +1 -0
- package/dist/editor/components/SlashCommandMenu.js +497 -0
- package/dist/editor/components/SlashCommandMenu.js.map +1 -0
- package/dist/editor/components/editor-bubble-item.js +24 -0
- package/dist/editor/components/editor-bubble-item.js.map +1 -0
- package/dist/editor/components/editor-bubble.js +97 -0
- package/dist/editor/components/editor-bubble.js.map +1 -0
- package/dist/editor/components/image-bubble.js +148 -0
- package/dist/editor/components/image-bubble.js.map +1 -0
- package/dist/editor/components/table-bubble.js +406 -0
- package/dist/editor/components/table-bubble.js.map +1 -0
- package/dist/editor/editor.js +423 -0
- package/dist/editor/editor.js.map +1 -0
- package/dist/editor/extensions/HighlightDecorationExtension.js +74 -0
- package/dist/editor/extensions/HighlightDecorationExtension.js.map +1 -0
- package/dist/editor/extensions/Image.d.ts +7 -1
- package/dist/editor/extensions/Image.js +160 -0
- package/dist/editor/extensions/Image.js.map +1 -0
- package/dist/editor/extensions/TextLoadingDecorationExtension.js +82 -0
- package/dist/editor/extensions/TextLoadingDecorationExtension.js.map +1 -0
- package/dist/editor/extensions/clipboard.js +63 -0
- package/dist/editor/extensions/clipboard.js.map +1 -0
- package/dist/editor/extensions/drag-and-drop.js +354 -0
- package/dist/editor/extensions/drag-and-drop.js.map +1 -0
- package/dist/editor/hooks/useProseMirror.js +101 -0
- package/dist/editor/hooks/useProseMirror.js.map +1 -0
- package/dist/editor/hooks/useProseMirrorContext.js +11 -0
- package/dist/editor/hooks/useProseMirrorContext.js.map +1 -0
- package/dist/editor/markdown.js +154 -0
- package/dist/editor/markdown.js.map +1 -0
- package/dist/editor/nodeViews/ImageComponent.js +35 -0
- package/dist/editor/nodeViews/ImageComponent.js.map +1 -0
- package/dist/editor/nodeViews/ReactNodeView.js +57 -0
- package/dist/editor/nodeViews/ReactNodeView.js.map +1 -0
- package/dist/editor/nodeViews/TaskItemComponent.js +29 -0
- package/dist/editor/nodeViews/TaskItemComponent.js.map +1 -0
- package/dist/editor/nodeViews/index.js +21 -0
- package/dist/editor/nodeViews/index.js.map +1 -0
- package/dist/editor/plugins/index.js +54 -0
- package/dist/editor/plugins/index.js.map +1 -0
- package/dist/editor/plugins/inputrules.js +54 -0
- package/dist/editor/plugins/inputrules.js.map +1 -0
- package/dist/editor/plugins/placeholderPlugin.js +38 -0
- package/dist/editor/plugins/placeholderPlugin.js.map +1 -0
- package/dist/editor/plugins/slashCommandPlugin.js +40 -0
- package/dist/editor/plugins/slashCommandPlugin.js.map +1 -0
- package/dist/editor/sanitize-html.js +190 -0
- package/dist/editor/sanitize-html.js.map +1 -0
- package/dist/{markdown-CCqp8ibf.js → editor/schema.js} +2 -159
- package/dist/editor/schema.js.map +1 -0
- package/dist/editor/selectors/link-selector.js +118 -0
- package/dist/editor/selectors/link-selector.js.map +1 -0
- package/dist/editor/selectors/node-selector.js +118 -0
- package/dist/editor/selectors/node-selector.js.map +1 -0
- package/dist/editor/selectors/text-buttons.js +71 -0
- package/dist/editor/selectors/text-buttons.js.map +1 -0
- package/dist/editor/utils/prosemirror-utils.js +92 -0
- package/dist/editor/utils/prosemirror-utils.js.map +1 -0
- package/dist/editor/utils/remove_classes.js +16 -0
- package/dist/editor/utils/remove_classes.js.map +1 -0
- package/dist/editor.js +1 -3147
- package/dist/form/EntityForm.js +734 -0
- package/dist/form/EntityForm.js.map +1 -0
- package/dist/form/EntityFormActions.js +101 -0
- package/dist/form/EntityFormActions.js.map +1 -0
- package/dist/form/EntityFormBinding.js +257 -0
- package/dist/form/EntityFormBinding.js.map +1 -0
- package/dist/form/PropertyFieldBinding.js +298 -0
- package/dist/form/PropertyFieldBinding.js.map +1 -0
- package/dist/form/components/ErrorFocus.js +33 -0
- package/dist/form/components/ErrorFocus.js.map +1 -0
- package/dist/form/components/FieldBlock.js +118 -0
- package/dist/form/components/FieldBlock.js.map +1 -0
- package/dist/form/components/FieldHelperText.js +56 -0
- package/dist/form/components/FieldHelperText.js.map +1 -0
- package/dist/form/components/FormRail.js +118 -0
- package/dist/form/components/FormRail.js.map +1 -0
- package/dist/form/components/FormSections.js +63 -0
- package/dist/form/components/FormSections.js.map +1 -0
- package/dist/form/components/LabelWithIcon.js +29 -0
- package/dist/form/components/LabelWithIcon.js.map +1 -0
- package/dist/form/components/LocalChangesMenu.js +127 -0
- package/dist/form/components/LocalChangesMenu.js.map +1 -0
- package/dist/form/components/StorageItemPreview.js +46 -0
- package/dist/form/components/StorageItemPreview.js.map +1 -0
- package/dist/form/components/StorageUploadProgress.js +84 -0
- package/dist/form/components/StorageUploadProgress.js.map +1 -0
- package/dist/form/components/useRailVisible.js +43 -0
- package/dist/form/components/useRailVisible.js.map +1 -0
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.js +84 -0
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.js +125 -0
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/BinaryFieldBinding.js +135 -0
- package/dist/form/field_bindings/BinaryFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/BlockFieldBinding.js +164 -0
- package/dist/form/field_bindings/BlockFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/DateTimeFieldBinding.js +47 -0
- package/dist/form/field_bindings/DateTimeFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/GeopointFieldBinding.js +148 -0
- package/dist/form/field_bindings/GeopointFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/KeyValueFieldBinding.js +450 -0
- package/dist/form/field_bindings/KeyValueFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MapFieldBinding.js +77 -0
- package/dist/form/field_bindings/MapFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.js +215 -0
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MultiSelectFieldBinding.js +88 -0
- package/dist/form/field_bindings/MultiSelectFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/MultipleRelationFieldBinding.js +118 -0
- package/dist/form/field_bindings/MultipleRelationFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/ReadOnlyFieldBinding.js +52 -0
- package/dist/form/field_bindings/ReadOnlyFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/ReferenceFieldBinding.js +99 -0
- package/dist/form/field_bindings/ReferenceFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/RelationFieldBinding.js +135 -0
- package/dist/form/field_bindings/RelationFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/RepeatFieldBinding.js +103 -0
- package/dist/form/field_bindings/RepeatFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/SelectFieldBinding.js +80 -0
- package/dist/form/field_bindings/SelectFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/StorageUploadFieldBinding.js +266 -0
- package/dist/form/field_bindings/StorageUploadFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/SwitchFieldBinding.js +41 -0
- package/dist/form/field_bindings/SwitchFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/TextFieldBinding.js +114 -0
- package/dist/form/field_bindings/TextFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/UserSelectFieldBinding.js +48 -0
- package/dist/form/field_bindings/UserSelectFieldBinding.js.map +1 -0
- package/dist/form/field_bindings/VectorFieldBinding.js +147 -0
- package/dist/form/field_bindings/VectorFieldBinding.js.map +1 -0
- package/dist/form/form_keyboard_scope.d.ts +26 -0
- package/dist/form/form_keyboard_scope.js +39 -0
- package/dist/form/form_keyboard_scope.js.map +1 -0
- package/dist/form/form_uploads.d.ts +24 -0
- package/dist/form/form_uploads.js +31 -0
- package/dist/form/form_uploads.js.map +1 -0
- package/dist/form/form_utils.d.ts +24 -0
- package/dist/form/form_utils.js +280 -0
- package/dist/form/form_utils.js.map +1 -0
- package/dist/form/resolve_cell_property.d.ts +32 -0
- package/dist/form/resolve_cell_property.js +80 -0
- package/dist/form/resolve_cell_property.js.map +1 -0
- package/dist/form/resolve_form_properties.d.ts +2 -1
- package/dist/form/resolve_form_properties.js +78 -0
- package/dist/form/resolve_form_properties.js.map +1 -0
- package/dist/form/useClearRestoreValue.js +27 -0
- package/dist/form/useClearRestoreValue.js.map +1 -0
- package/dist/form/useUndoableDiscard.js +36 -0
- package/dist/form/useUndoableDiscard.js.map +1 -0
- package/dist/form/validation.d.ts +20 -0
- package/dist/form/validation.js +416 -0
- package/dist/form/validation.js.map +1 -0
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.js +22 -0
- package/dist/hooks/navigation/contexts/CollectionRegistryContext.js.map +1 -0
- package/dist/hooks/navigation/contexts/NavigationStateContext.js +15 -0
- package/dist/hooks/navigation/contexts/NavigationStateContext.js.map +1 -0
- package/dist/hooks/navigation/contexts/UrlContext.js +22 -0
- package/dist/hooks/navigation/contexts/UrlContext.js.map +1 -0
- package/dist/hooks/navigation/useAsyncResolver.js +68 -0
- package/dist/hooks/navigation/useAsyncResolver.js.map +1 -0
- package/dist/hooks/navigation/useBuildCollectionRegistryController.js +141 -0
- package/dist/hooks/navigation/useBuildCollectionRegistryController.js.map +1 -0
- package/dist/hooks/navigation/useBuildNavigationStateController.js +77 -0
- package/dist/hooks/navigation/useBuildNavigationStateController.js.map +1 -0
- package/dist/hooks/navigation/useBuildUrlController.js +57 -0
- package/dist/hooks/navigation/useBuildUrlController.js.map +1 -0
- package/dist/hooks/navigation/useNavigationResolution.js +177 -0
- package/dist/hooks/navigation/useNavigationResolution.js.map +1 -0
- package/dist/hooks/navigation/useResolvedCollections.js +56 -0
- package/dist/hooks/navigation/useResolvedCollections.js.map +1 -0
- package/dist/hooks/navigation/useResolvedViews.js +94 -0
- package/dist/hooks/navigation/useResolvedViews.js.map +1 -0
- package/dist/hooks/navigation/useTopLevelNavigation.js +162 -0
- package/dist/hooks/navigation/useTopLevelNavigation.js.map +1 -0
- package/dist/hooks/navigation/utils.js +125 -0
- package/dist/hooks/navigation/utils.js.map +1 -0
- package/dist/hooks/useAdminContext.js +45 -0
- package/dist/hooks/useAdminContext.js.map +1 -0
- package/dist/hooks/useBreadcrumbsController.js +17 -0
- package/dist/hooks/useBreadcrumbsController.js.map +1 -0
- package/dist/hooks/useBuildSideDialogsController.js +96 -0
- package/dist/hooks/useBuildSideDialogsController.js.map +1 -0
- package/dist/hooks/useBuildSidePanel.js +208 -0
- package/dist/hooks/useBuildSidePanel.js.map +1 -0
- package/dist/hooks/useChildViewSource.js +41 -0
- package/dist/hooks/useChildViewSource.js.map +1 -0
- package/dist/hooks/useEntityDisplay.js +136 -0
- package/dist/hooks/useEntityDisplay.js.map +1 -0
- package/dist/hooks/useEntityDisplayTitle.js +34 -0
- package/dist/hooks/useEntityDisplayTitle.js.map +1 -0
- package/dist/hooks/useHistory.js +137 -0
- package/dist/hooks/useHistory.js.map +1 -0
- package/dist/hooks/useRecordActions.js +108 -0
- package/dist/hooks/useRecordActions.js.map +1 -0
- package/dist/hooks/useReferencePaths.js +32 -0
- package/dist/hooks/useReferencePaths.js.map +1 -0
- package/dist/hooks/useResolvedNavigationFrom.js +83 -0
- package/dist/hooks/useResolvedNavigationFrom.js.map +1 -0
- package/dist/hooks/useResolvedUsers.js +109 -0
- package/dist/hooks/useResolvedUsers.js.map +1 -0
- package/dist/hooks/useSelectionDialog.js +53 -0
- package/dist/hooks/useSelectionDialog.js.map +1 -0
- package/dist/hooks/useSideDialogsController.js +8 -0
- package/dist/hooks/useSideDialogsController.js.map +1 -0
- package/dist/hooks/useSidePanel.js +15 -0
- package/dist/hooks/useSidePanel.js.map +1 -0
- package/dist/hooks/useStorageReferenceResolver.d.ts +4 -2
- package/dist/hooks/useStorageReferenceResolver.js +49 -0
- package/dist/hooks/useStorageReferenceResolver.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +149 -3867
- package/dist/preview/PropertyPreview.js +260 -0
- package/dist/preview/PropertyPreview.js.map +1 -0
- package/dist/preview/compact_text.js +52 -0
- package/dist/preview/compact_text.js.map +1 -0
- package/dist/preview/components/ArrayEnumPreview.js +24 -0
- package/dist/preview/components/ArrayEnumPreview.js.map +1 -0
- package/dist/preview/components/BooleanPreview.js +25 -0
- package/dist/preview/components/BooleanPreview.js.map +1 -0
- package/dist/preview/components/DatePreview.d.ts +3 -2
- package/dist/preview/components/DatePreview.js +87 -0
- package/dist/preview/components/DatePreview.js.map +1 -0
- package/dist/preview/components/EmptyValue.js +13 -0
- package/dist/preview/components/EmptyValue.js.map +1 -0
- package/dist/preview/components/EnumValuesChip.js +26 -0
- package/dist/preview/components/EnumValuesChip.js.map +1 -0
- package/dist/preview/components/ImagePreview.d.ts +7 -1
- package/dist/preview/components/ImagePreview.js +112 -0
- package/dist/preview/components/ImagePreview.js.map +1 -0
- package/dist/preview/components/InlineEntityListPreview.js +31 -0
- package/dist/preview/components/InlineEntityListPreview.js.map +1 -0
- package/dist/preview/components/ReferencePreview.js +162 -0
- package/dist/preview/components/ReferencePreview.js.map +1 -0
- package/dist/preview/components/RelationPreview.js +196 -0
- package/dist/preview/components/RelationPreview.js.map +1 -0
- package/dist/preview/components/StorageMarkdown.d.ts +2 -1
- package/dist/preview/components/StorageMarkdown.js +49 -0
- package/dist/preview/components/StorageMarkdown.js.map +1 -0
- package/dist/preview/components/StorageThumbnail.js +183 -0
- package/dist/preview/components/StorageThumbnail.js.map +1 -0
- package/dist/preview/components/UrlComponentPreview.d.ts +3 -1
- package/dist/preview/components/UrlComponentPreview.js +88 -0
- package/dist/preview/components/UrlComponentPreview.js.map +1 -0
- package/dist/preview/components/UserPreview.js +30 -0
- package/dist/preview/components/UserPreview.js.map +1 -0
- package/dist/preview/components/date_fns_locales.js +124 -0
- package/dist/preview/components/date_fns_locales.js.map +1 -0
- package/dist/preview/components/storageRenditions.d.ts +10 -0
- package/dist/preview/components/storageRenditions.js +93 -0
- package/dist/preview/components/storageRenditions.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfMapsPreview.js +44 -0
- package/dist/preview/property_previews/ArrayOfMapsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfReferencesPreview.js +48 -0
- package/dist/preview/property_previews/ArrayOfReferencesPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfRelationsPreview.js +50 -0
- package/dist/preview/property_previews/ArrayOfRelationsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.js +30 -0
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOfStringsPreview.js +42 -0
- package/dist/preview/property_previews/ArrayOfStringsPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayOneOfPreview.js +47 -0
- package/dist/preview/property_previews/ArrayOneOfPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.js +25 -0
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.js.map +1 -0
- package/dist/preview/property_previews/ArrayPropertyPreview.js +48 -0
- package/dist/preview/property_previews/ArrayPropertyPreview.js.map +1 -0
- package/dist/preview/property_previews/MapPropertyPreview.js +137 -0
- package/dist/preview/property_previews/MapPropertyPreview.js.map +1 -0
- package/dist/preview/property_previews/NumberPropertyPreview.js +34 -0
- package/dist/preview/property_previews/NumberPropertyPreview.js.map +1 -0
- package/dist/preview/property_previews/SkeletonPropertyComponent.js +151 -0
- package/dist/preview/property_previews/SkeletonPropertyComponent.js.map +1 -0
- package/dist/preview/property_previews/StringPropertyPreview.js +49 -0
- package/dist/preview/property_previews/StringPropertyPreview.js.map +1 -0
- package/dist/preview/util.d.ts +4 -3
- package/dist/{util-D7ebttKT.js → preview/util.js} +8 -5
- package/dist/preview/util.js.map +1 -0
- package/dist/routes/CustomViewRoute.js +26 -0
- package/dist/routes/CustomViewRoute.js.map +1 -0
- package/dist/routes/RebaseRoute.js +311 -0
- package/dist/routes/RebaseRoute.js.map +1 -0
- package/dist/selection/SelectionMenu.js +90 -0
- package/dist/selection/SelectionMenu.js.map +1 -0
- package/dist/selection/resolve_selection.js +79 -0
- package/dist/selection/resolve_selection.js.map +1 -0
- package/dist/util/caller_scopes.js +25 -0
- package/dist/util/caller_scopes.js.map +1 -0
- package/dist/util/collection_open_mode.d.ts +20 -0
- package/dist/util/collection_open_mode.js +32 -0
- package/dist/util/collection_open_mode.js.map +1 -0
- package/dist/util/dataControllerAdapter.js +65 -0
- package/dist/util/dataControllerAdapter.js.map +1 -0
- package/dist/util/entity_actions.d.ts +5 -0
- package/dist/util/entity_actions.js +77 -0
- package/dist/util/entity_actions.js.map +1 -0
- package/dist/util/entity_pages.d.ts +37 -3
- package/dist/util/entity_pages.js +71 -0
- package/dist/util/entity_pages.js.map +1 -0
- package/dist/util/find_entities_by_ids.d.ts +23 -0
- package/dist/util/find_entities_by_ids.js +55 -0
- package/dist/util/find_entities_by_ids.js.map +1 -0
- package/dist/util/fit_inline_actions.js +40 -0
- package/dist/util/fit_inline_actions.js.map +1 -0
- package/dist/util/format_collection_date.d.ts +29 -0
- package/dist/util/format_collection_date.js +60 -0
- package/dist/util/format_collection_date.js.map +1 -0
- package/dist/util/map_with_concurrency.js +46 -0
- package/dist/util/map_with_concurrency.js.map +1 -0
- package/dist/util/navigation_utils.js +44 -0
- package/dist/util/navigation_utils.js.map +1 -0
- package/dist/util/number_format.js +33 -0
- package/dist/util/number_format.js.map +1 -0
- package/dist/util/previews.js +71 -0
- package/dist/util/previews.js.map +1 -0
- package/dist/util/propertyConfigMapper.js +83 -0
- package/dist/util/propertyConfigMapper.js.map +1 -0
- package/dist/util/property_utils.js +141 -0
- package/dist/util/property_utils.js.map +1 -0
- package/dist/util/resolutions.js +55 -0
- package/dist/util/resolutions.js.map +1 -0
- package/dist/util/view_constants.js +35 -0
- package/dist/util/view_constants.js.map +1 -0
- package/dist/util/view_mode.js +112 -0
- package/dist/util/view_mode.js.map +1 -0
- package/package.json +13 -9
- package/dist/CollectionEditorDialog-p5-I-Apu.js +0 -3669
- package/dist/CollectionEditorDialog-p5-I-Apu.js.map +0 -1
- package/dist/JsonPreviewBinding-v0w3H0fp.js.map +0 -1
- package/dist/PropertyEditView-DDB_X-00.js +0 -3837
- package/dist/PropertyEditView-DDB_X-00.js.map +0 -1
- package/dist/RouterCollectionsStudioView-SGBV4CMg.js +0 -212
- package/dist/RouterCollectionsStudioView-SGBV4CMg.js.map +0 -1
- package/dist/SchemaChangeDialog-CcFSXvkK.js.map +0 -1
- package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +0 -13
- package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +0 -8
- package/dist/collection_editor_ui.js.map +0 -1
- package/dist/editor.js.map +0 -1
- package/dist/export-DCHuPD1a.js +0 -520
- package/dist/export-DCHuPD1a.js.map +0 -1
- package/dist/history-CBd6SBRs.js +0 -314
- package/dist/history-CBd6SBRs.js.map +0 -1
- package/dist/import-DjQoRrIU.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/markdown-CCqp8ibf.js.map +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.js +0 -13
- package/dist/util-BRvKFMLa.js +0 -27773
- package/dist/util-BRvKFMLa.js.map +0 -1
- package/dist/util-D7ebttKT.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringPropertyValidation.js","names":[],"sources":["../../../../../../src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.tsx"],"sourcesContent":["import { FieldCaption } from \"../../../../_cms_internals\";\nimport React from \"react\";\n\nimport { Field, FormexFieldProps, getIn, useFormex } from \"@rebasepro/forms\";\n;\nimport { Alert, DebouncedTextField } from \"@rebasepro/ui\";\nimport { useTranslation } from \"@rebasepro/app\";\nimport { GeneralPropertyValidation } from \"./GeneralPropertyValidation\";\nimport { SwitchControl } from \"../../SwitchControl\";\nimport { serializeRegExp } from \"@rebasepro/utils\";\n\n/** The column types whose width `validation.max` sets. */\nconst SIZED_COLUMN_TYPES = [\"varchar\", \"char\"];\n\nconst widthOf = (value: unknown): number | undefined => {\n const n = typeof value === \"string\" && value.trim() !== \"\" ? Number(value) : value;\n return typeof n === \"number\" && Number.isFinite(n) && n > 0 ? n : undefined;\n};\n\n/**\n * The narrower width an edit gives an existing `varchar` or `char` column, or\n * `undefined` when it gives none.\n *\n * On those column types `max` is the column's width, so a smaller one — or a\n * first one on an unbounded `varchar` — is a DDL change on a table that may\n * hold longer values. A property the form did not start from (a new one) has\n * no column yet, and a `text` column's `max` is a form rule only.\n */\nexport function narrowedColumnWidth(initialValues: unknown, values: unknown): number | undefined {\n const initialType = getIn(initialValues, \"columnType\");\n const columnType = getIn(values, \"columnType\");\n if (typeof columnType !== \"string\" || !SIZED_COLUMN_TYPES.includes(columnType)) return undefined;\n if (initialType !== columnType) return undefined;\n const to = widthOf(getIn(values, \"validation.max\"));\n if (to === undefined) return undefined;\n const from = widthOf(getIn(initialValues, \"validation.max\"));\n if (from === undefined) return columnType === \"varchar\" ? to : undefined;\n return to < from ? to : undefined;\n}\n\nexport function StringPropertyValidation({\n length,\n lowercase,\n matches,\n max,\n min,\n trim,\n uppercase,\n disabled,\n showErrors\n}: {\n length?: boolean;\n min?: boolean;\n max?: boolean;\n trim?: boolean;\n matches?: boolean;\n lowercase?: boolean;\n uppercase?: boolean;\n disabled: boolean;\n showErrors: boolean;\n}) {\n\n const {\n values,\n initialValues,\n handleChange,\n errors\n } = useFormex();\n const { t } = useTranslation();\n\n const validationLength = \"validation.length\";\n const validationMin = \"validation.min\";\n const validationMax = \"validation.max\";\n const validationTrim = \"validation.trim\";\n const validationMatches = \"validation.matches\";\n const validationLowercase = \"validation.lowercase\";\n const validationUppercase = \"validation.uppercase\";\n\n const matchesError = getIn(errors, validationMatches);\n const narrowedWidth = max ? narrowedColumnWidth(initialValues, values) : undefined;\n\n const matchesValue = getIn(values, validationMatches);\n const matchesStringValue = typeof matchesValue === \"string\" ? matchesValue : serializeRegExp(matchesValue as RegExp);\n return (\n <div className={\"grid grid-cols-12 gap-2\"}>\n\n <GeneralPropertyValidation disabled={disabled}/>\n\n <div className={\"grid grid-cols-12 gap-2 col-span-12\"}>\n\n {lowercase && <div className={\"col-span-4\"}>\n <Field name={validationLowercase}\n type=\"checkbox\">\n {({ field, form }: FormexFieldProps) => {\n return <SwitchControl\n label={t(\"lowercase\")}\n disabled={disabled}\n form={form}\n field={field}/>\n }}\n </Field>\n </div>}\n\n {uppercase && <div className={\"col-span-4\"}>\n <Field name={validationUppercase}\n type=\"checkbox\">\n {({ field, form }: FormexFieldProps) => {\n return <SwitchControl\n label={t(\"uppercase\")}\n disabled={disabled}\n form={form}\n field={field}/>\n }}\n </Field>\n </div>}\n\n {trim && <div className={\"col-span-4\"}>\n <Field name={validationTrim}\n type=\"checkbox\">\n {({ field, form }: FormexFieldProps) => {\n return <SwitchControl\n label={t(\"trim\")}\n disabled={disabled}\n form={form}\n field={field}/>\n }}\n </Field>\n </div>}\n\n </div>\n\n <div className={\"grid grid-cols-12 gap-2 col-span-12\"}>\n {length && <div className={\"col-span-4\"}>\n <DebouncedTextField\n value={getIn(values, validationLength) as number | undefined}\n label={t(\"exact_length\")}\n name={validationLength}\n type=\"number\"\n size=\"small\"\n\n disabled={disabled}\n onChange={handleChange}/>\n </div>}\n\n {min && <div className={\"col-span-4\"}>\n <DebouncedTextField value={getIn(values, validationMin) as number | undefined}\n label={t(\"min_length\")}\n name={validationMin}\n type=\"number\"\n size=\"small\"\n\n disabled={disabled}\n onChange={handleChange}/>\n </div>}\n\n {max && <div className={\"col-span-4\"}>\n <DebouncedTextField value={getIn(values, validationMax) as number | undefined}\n label={t(\"max_length\")}\n name={validationMax}\n type=\"number\"\n size=\"small\"\n\n disabled={disabled}\n onChange={handleChange}/>\n </div>}\n\n {narrowedWidth !== undefined && <div className={\"col-span-12\"}>\n <Alert color=\"warning\" size=\"small\">\n {t(\"varchar_narrowing_warning\", {\n columnType: getIn(values, \"columnType\") as string,\n max: narrowedWidth\n })}\n </Alert>\n </div>}\n\n </div>\n\n {matches && <div className={\"col-span-12\"}>\n <Field name={validationMatches}\n as={DebouncedTextField}\n label={t(\"matches_regex\")}\n size=\"small\"\n disabled={disabled}\n value={matchesStringValue}\n error={Boolean(matchesError)}/>\n <FieldCaption error={Boolean(matchesError)}>\n {matchesError ? t(\"not_valid_regexp\") : t(\"regex_helper\")}\n </FieldCaption>\n </div>}\n\n </div>\n );\n\n}\n"],"mappings":";;;;;;;;;;;AAYA,IAAM,qBAAqB,CAAC,WAAW,MAAM;AAE7C,IAAM,WAAW,UAAuC;CACpD,MAAM,IAAI,OAAO,UAAU,YAAY,MAAM,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI;CAC7E,OAAO,OAAO,MAAM,YAAY,OAAO,SAAS,CAAC,KAAK,IAAI,IAAI,IAAI,KAAA;AACtE;;;;;;;;;;AAWA,SAAgB,oBAAoB,eAAwB,QAAqC;CAC7F,MAAM,cAAc,MAAM,eAAe,YAAY;CACrD,MAAM,aAAa,MAAM,QAAQ,YAAY;CAC7C,IAAI,OAAO,eAAe,YAAY,CAAC,mBAAmB,SAAS,UAAU,GAAG,OAAO,KAAA;CACvF,IAAI,gBAAgB,YAAY,OAAO,KAAA;CACvC,MAAM,KAAK,QAAQ,MAAM,QAAQ,gBAAgB,CAAC;CAClD,IAAI,OAAO,KAAA,GAAW,OAAO,KAAA;CAC7B,MAAM,OAAO,QAAQ,MAAM,eAAe,gBAAgB,CAAC;CAC3D,IAAI,SAAS,KAAA,GAAW,OAAO,eAAe,YAAY,KAAK,KAAA;CAC/D,OAAO,KAAK,OAAO,KAAK,KAAA;AAC5B;AAEA,SAAgB,yBAAyB,EACrC,QACA,WACA,SACA,KACA,KACA,MACA,WACA,UACA,cAWD;CAEC,MAAM,EACF,QACA,eACA,cACA,WACA,UAAU;CACd,MAAM,EAAE,MAAM,eAAe;CAE7B,MAAM,mBAAmB;CACzB,MAAM,gBAAgB;CACtB,MAAM,gBAAgB;CACtB,MAAM,iBAAiB;CACvB,MAAM,oBAAoB;CAC1B,MAAM,sBAAsB;CAC5B,MAAM,sBAAsB;CAE5B,MAAM,eAAe,MAAM,QAAQ,iBAAiB;CACpD,MAAM,gBAAgB,MAAM,oBAAoB,eAAe,MAAM,IAAI,KAAA;CAEzE,MAAM,eAAe,MAAM,QAAQ,iBAAiB;CACpD,MAAM,qBAAqB,OAAO,iBAAiB,WAAW,eAAe,gBAAgB,YAAsB;CACnH,OACI,qBAAC,OAAD;EAAK,WAAW;YAAhB;GAEI,oBAAC,2BAAD,EAAqC,SAAU,CAAA;GAE/C,qBAAC,OAAD;IAAK,WAAW;cAAhB;KAEK,aAAa,oBAAC,OAAD;MAAK,WAAW;gBAC1B,oBAAC,OAAD;OAAO,MAAM;OACT,MAAK;kBACH,EAAE,OAAO,WAA6B;QACpC,OAAO,oBAAC,eAAD;SACH,OAAO,EAAE,WAAW;SACV;SACJ;SACC;QAAO,CAAA;OACtB;MACG,CAAA;KACN,CAAA;KAEJ,aAAa,oBAAC,OAAD;MAAK,WAAW;gBAC1B,oBAAC,OAAD;OAAO,MAAM;OACT,MAAK;kBACH,EAAE,OAAO,WAA6B;QACpC,OAAO,oBAAC,eAAD;SACH,OAAO,EAAE,WAAW;SACV;SACJ;SACC;QAAO,CAAA;OACtB;MACG,CAAA;KACN,CAAA;KAEJ,QAAQ,oBAAC,OAAD;MAAK,WAAW;gBACrB,oBAAC,OAAD;OAAO,MAAM;OACT,MAAK;kBACH,EAAE,OAAO,WAA6B;QACpC,OAAO,oBAAC,eAAD;SACH,OAAO,EAAE,MAAM;SACL;SACJ;SACC;QAAO,CAAA;OACtB;MACG,CAAA;KACN,CAAA;IAEJ;;GAEL,qBAAC,OAAD;IAAK,WAAW;cAAhB;KACK,UAAU,oBAAC,OAAD;MAAK,WAAW;gBACvB,oBAAC,oBAAD;OACI,OAAO,MAAM,QAAQ,gBAAgB;OACrC,OAAO,EAAE,cAAc;OACvB,MAAM;OACN,MAAK;OACL,MAAK;OAEK;OACV,UAAU;MAAc,CAAA;KAC3B,CAAA;KAEJ,OAAO,oBAAC,OAAD;MAAK,WAAW;gBACpB,oBAAC,oBAAD;OAAoB,OAAO,MAAM,QAAQ,aAAa;OAClD,OAAO,EAAE,YAAY;OACrB,MAAM;OACN,MAAK;OACL,MAAK;OAEK;OACV,UAAU;MAAc,CAAA;KAC3B,CAAA;KAEJ,OAAO,oBAAC,OAAD;MAAK,WAAW;gBACpB,oBAAC,oBAAD;OAAoB,OAAO,MAAM,QAAQ,aAAa;OAClD,OAAO,EAAE,YAAY;OACrB,MAAM;OACN,MAAK;OACL,MAAK;OAEK;OACV,UAAU;MAAc,CAAA;KAC3B,CAAA;KAEJ,kBAAkB,KAAA,KAAa,oBAAC,OAAD;MAAK,WAAW;gBAC5C,oBAAC,OAAD;OAAO,OAAM;OAAU,MAAK;iBACvB,EAAE,6BAA6B;QAC5B,YAAY,MAAM,QAAQ,YAAY;QACtC,KAAK;OACT,CAAC;MACE,CAAA;KACN,CAAA;IAEJ;;GAEJ,WAAW,qBAAC,OAAD;IAAK,WAAW;cAAhB,CACR,oBAAC,OAAD;KAAO,MAAM;KACT,IAAI;KACJ,OAAO,EAAE,eAAe;KACxB,MAAK;KACK;KACV,OAAO;KACP,OAAO,QAAQ,YAAY;IAAG,CAAA,GAClC,oBAAC,cAAD;KAAc,OAAO,QAAQ,YAAY;eACpC,eAAe,EAAE,kBAAkB,IAAI,EAAE,cAAc;IAC9C,CAAA,CACb;;EAEJ;;AAGb"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckSquareIcon, ExpandablePanel, Typography } from "@rebasepro/ui";
|
|
3
|
+
//#region src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.tsx
|
|
4
|
+
function ValidationPanel({ children }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(ExpandablePanel, {
|
|
6
|
+
initiallyExpanded: false,
|
|
7
|
+
asField: true,
|
|
8
|
+
innerClassName: "p-4",
|
|
9
|
+
title: /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark",
|
|
11
|
+
children: [/* @__PURE__ */ jsx(CheckSquareIcon, {}), /* @__PURE__ */ jsx(Typography, {
|
|
12
|
+
variant: "subtitle2",
|
|
13
|
+
className: "ml-4",
|
|
14
|
+
children: "Validation"
|
|
15
|
+
})]
|
|
16
|
+
}),
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ValidationPanel };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=ValidationPanel.js.map
|
package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationPanel.js","names":[],"sources":["../../../../../../src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\n\nimport { CheckSquareIcon, ExpandablePanel, Typography } from \"@rebasepro/ui\";\n\nexport function ValidationPanel({\n children\n}: { children?: React.ReactNode }) {\n\n return (\n <ExpandablePanel\n initiallyExpanded={false}\n asField={true}\n innerClassName=\"p-4\"\n title={\n <div className=\"flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark\">\n <CheckSquareIcon/>\n <Typography variant={\"subtitle2\"}\n className=\"ml-4\">\n Validation\n </Typography>\n </div>\n }>\n\n {children}\n\n </ExpandablePanel>\n )\n}\n"],"mappings":";;;AAIA,SAAgB,gBAAgB,EAC5B,YAC+B;CAE/B,OACI,oBAAC,iBAAD;EACI,mBAAmB;EACnB,SAAS;EACT,gBAAe;EACf,OACI,qBAAC,OAAD;GAAK,WAAU;aAAf,CACI,oBAAC,iBAAD,CAAiB,CAAA,GACjB,oBAAC,YAAD;IAAY,SAAS;IACjB,WAAU;cAAO;GAET,CAAA,CACX;;EAGR;CAEY,CAAA;AAEzB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
//#region src/collection_editor/ui/collection_editor/templates/blog_template.ts
|
|
2
|
+
var blogCollectionTemplate = {
|
|
3
|
+
slug: "blog",
|
|
4
|
+
table: "blog",
|
|
5
|
+
name: "Blog",
|
|
6
|
+
singularName: "Blog entry",
|
|
7
|
+
icon: "FileText",
|
|
8
|
+
description: "A collection of blog entries",
|
|
9
|
+
defaultSize: "l",
|
|
10
|
+
properties: {
|
|
11
|
+
name: {
|
|
12
|
+
name: "Name",
|
|
13
|
+
validation: { required: true },
|
|
14
|
+
type: "string"
|
|
15
|
+
},
|
|
16
|
+
header_image: {
|
|
17
|
+
name: "Header image",
|
|
18
|
+
type: "string",
|
|
19
|
+
storage: {
|
|
20
|
+
storagePath: "images",
|
|
21
|
+
acceptedFiles: ["image/*"],
|
|
22
|
+
metadata: { cacheControl: "max-age=1000000" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
content: {
|
|
26
|
+
name: "Content",
|
|
27
|
+
description: "Content blocks for the blog entry",
|
|
28
|
+
validation: { required: true },
|
|
29
|
+
type: "array",
|
|
30
|
+
oneOf: {
|
|
31
|
+
typeField: "type",
|
|
32
|
+
valueField: "value",
|
|
33
|
+
properties: {
|
|
34
|
+
text: {
|
|
35
|
+
type: "string",
|
|
36
|
+
name: "Text",
|
|
37
|
+
admin: { markdown: true }
|
|
38
|
+
},
|
|
39
|
+
quote: {
|
|
40
|
+
type: "string",
|
|
41
|
+
name: "Quote",
|
|
42
|
+
admin: { multiline: true }
|
|
43
|
+
},
|
|
44
|
+
images: {
|
|
45
|
+
name: "Images",
|
|
46
|
+
type: "array",
|
|
47
|
+
of: {
|
|
48
|
+
type: "string",
|
|
49
|
+
storage: {
|
|
50
|
+
storagePath: "images",
|
|
51
|
+
acceptedFiles: ["image/*"],
|
|
52
|
+
metadata: { cacheControl: "max-age=1000000" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
description: "This fields allows uploading multiple images at once and reordering"
|
|
56
|
+
},
|
|
57
|
+
products: {
|
|
58
|
+
name: "Products",
|
|
59
|
+
type: "array",
|
|
60
|
+
of: {
|
|
61
|
+
type: "reference",
|
|
62
|
+
path: "products",
|
|
63
|
+
admin: { previewProperties: ["name", "main_image"] }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
propertiesOrder: [
|
|
68
|
+
"text",
|
|
69
|
+
"quote",
|
|
70
|
+
"images",
|
|
71
|
+
"products"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
created_on: {
|
|
76
|
+
name: "Created on",
|
|
77
|
+
type: "date",
|
|
78
|
+
autoValue: "on_create"
|
|
79
|
+
},
|
|
80
|
+
status: {
|
|
81
|
+
name: "Status",
|
|
82
|
+
validation: { required: true },
|
|
83
|
+
type: "string",
|
|
84
|
+
enum: {
|
|
85
|
+
published: {
|
|
86
|
+
id: "published",
|
|
87
|
+
label: "Published"
|
|
88
|
+
},
|
|
89
|
+
draft: "Draft"
|
|
90
|
+
},
|
|
91
|
+
defaultValue: "draft"
|
|
92
|
+
},
|
|
93
|
+
publish_date: {
|
|
94
|
+
name: "Publish date",
|
|
95
|
+
type: "date",
|
|
96
|
+
admin: { clearable: true }
|
|
97
|
+
},
|
|
98
|
+
reviewed: {
|
|
99
|
+
name: "Reviewed",
|
|
100
|
+
type: "boolean"
|
|
101
|
+
},
|
|
102
|
+
tags: {
|
|
103
|
+
name: "Tags",
|
|
104
|
+
description: "Example of generic array",
|
|
105
|
+
type: "array",
|
|
106
|
+
of: {
|
|
107
|
+
type: "string",
|
|
108
|
+
admin: { previewAsTag: true }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
export { blogCollectionTemplate };
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=blog_template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blog_template.js","names":[],"sources":["../../../../../src/collection_editor/ui/collection_editor/templates/blog_template.ts"],"sourcesContent":["import type { AdminCollection } from \"@rebasepro/cms-types\";\n\nexport const blogCollectionTemplate = {\n slug: \"blog\",\n table: \"blog\",\n name: \"Blog\",\n singularName: \"Blog entry\",\n icon: \"FileText\",\n description: \"A collection of blog entries\",\n defaultSize: \"l\",\n properties: {\n name: {\n name: \"Name\",\n validation: { required: true },\n type: \"string\"\n },\n header_image: {\n name: \"Header image\",\n type: \"string\",\n storage: {\n storagePath: \"images\",\n acceptedFiles: [\"image/*\"],\n metadata: {\n cacheControl: \"max-age=1000000\"\n }\n }\n },\n content: {\n name: \"Content\",\n description: \"Content blocks for the blog entry\",\n validation: { required: true },\n type: \"array\",\n oneOf: {\n typeField: \"type\",\n valueField: \"value\",\n properties: {\n text: {\n type: \"string\",\n name: \"Text\",\n admin: { markdown: true }\n },\n quote: {\n type: \"string\",\n name: \"Quote\",\n admin: { multiline: true }\n },\n images: {\n name: \"Images\",\n type: \"array\",\n of: {\n type: \"string\",\n storage: {\n storagePath: \"images\",\n acceptedFiles: [\"image/*\"],\n metadata: {\n cacheControl: \"max-age=1000000\"\n }\n }\n },\n description: \"This fields allows uploading multiple images at once and reordering\"\n },\n products: {\n name: \"Products\",\n type: \"array\",\n of: {\n type: \"reference\",\n path: \"products\",\n admin: { previewProperties: [\"name\", \"main_image\"] }\n }\n }\n },\n propertiesOrder: [\"text\", \"quote\", \"images\", \"products\"]\n }\n },\n created_on: {\n name: \"Created on\",\n type: \"date\",\n autoValue: \"on_create\"\n },\n status: {\n name: \"Status\",\n validation: { required: true },\n type: \"string\",\n enum: {\n published: {\n id: \"published\",\n label: \"Published\"\n },\n draft: \"Draft\"\n },\n defaultValue: \"draft\"\n },\n publish_date: {\n name: \"Publish date\",\n type: \"date\",\n admin: { clearable: true }\n },\n reviewed: {\n name: \"Reviewed\",\n type: \"boolean\"\n },\n tags: {\n name: \"Tags\",\n description: \"Example of generic array\",\n type: \"array\",\n of: {\n type: \"string\",\n admin: { previewAsTag: true }\n }\n }\n }\n} satisfies AdminCollection;\n"],"mappings":";AAEA,IAAa,yBAAyB;CAClC,MAAM;CACN,OAAO;CACP,MAAM;CACN,cAAc;CACd,MAAM;CACN,aAAa;CACb,aAAa;CACb,YAAY;EACR,MAAM;GACF,MAAM;GACN,YAAY,EAAE,UAAU,KAAK;GAC7B,MAAM;EACV;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,SAAS;IACL,aAAa;IACb,eAAe,CAAC,SAAS;IACzB,UAAU,EACN,cAAc,kBAClB;GACJ;EACJ;EACA,SAAS;GACL,MAAM;GACN,aAAa;GACb,YAAY,EAAE,UAAU,KAAK;GAC7B,MAAM;GACN,OAAO;IACH,WAAW;IACX,YAAY;IACZ,YAAY;KACR,MAAM;MACF,MAAM;MACN,MAAM;MACN,OAAO,EAAE,UAAU,KAAK;KAC5B;KACA,OAAO;MACH,MAAM;MACN,MAAM;MACN,OAAO,EAAE,WAAW,KAAK;KAC7B;KACA,QAAQ;MACJ,MAAM;MACN,MAAM;MACN,IAAI;OACA,MAAM;OACN,SAAS;QACL,aAAa;QACb,eAAe,CAAC,SAAS;QACzB,UAAU,EACN,cAAc,kBAClB;OACJ;MACJ;MACA,aAAa;KACjB;KACA,UAAU;MACN,MAAM;MACN,MAAM;MACN,IAAI;OACA,MAAM;OACN,MAAM;OACN,OAAO,EAAE,mBAAmB,CAAC,QAAQ,YAAY,EAAE;MACvD;KACJ;IACJ;IACA,iBAAiB;KAAC;KAAQ;KAAS;KAAU;IAAU;GAC3D;EACJ;EACA,YAAY;GACR,MAAM;GACN,MAAM;GACN,WAAW;EACf;EACA,QAAQ;GACJ,MAAM;GACN,YAAY,EAAE,UAAU,KAAK;GAC7B,MAAM;GACN,MAAM;IACF,WAAW;KACP,IAAI;KACJ,OAAO;IACX;IACA,OAAO;GACX;GACA,cAAc;EAClB;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,OAAO,EAAE,WAAW,KAAK;EAC7B;EACA,UAAU;GACN,MAAM;GACN,MAAM;EACV;EACA,MAAM;GACF,MAAM;GACN,aAAa;GACb,MAAM;GACN,IAAI;IACA,MAAM;IACN,OAAO,EAAE,cAAc,KAAK;GAChC;EACJ;CACJ;AACJ"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//#region src/collection_editor/ui/collection_editor/templates/pages_template.ts
|
|
2
|
+
var pagesCollectionTemplate = {
|
|
3
|
+
slug: "pages",
|
|
4
|
+
table: "pages",
|
|
5
|
+
name: "Pages",
|
|
6
|
+
singularName: "Page",
|
|
7
|
+
icon: "File",
|
|
8
|
+
description: "List of website pages that can be edited here",
|
|
9
|
+
properties: {
|
|
10
|
+
title: {
|
|
11
|
+
type: "string",
|
|
12
|
+
name: "Page Title",
|
|
13
|
+
validation: { required: true }
|
|
14
|
+
},
|
|
15
|
+
slug: {
|
|
16
|
+
type: "string",
|
|
17
|
+
name: "URL Slug",
|
|
18
|
+
validation: {
|
|
19
|
+
required: true,
|
|
20
|
+
unique: true,
|
|
21
|
+
matches: "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
22
|
+
matchesMessage: "Must be lowercase, alphanumeric, and hyphenated"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
hero_section: {
|
|
26
|
+
type: "map",
|
|
27
|
+
name: "Hero Section",
|
|
28
|
+
properties: {
|
|
29
|
+
headline: {
|
|
30
|
+
type: "string",
|
|
31
|
+
name: "Headline",
|
|
32
|
+
validation: { required: true }
|
|
33
|
+
},
|
|
34
|
+
subhead: {
|
|
35
|
+
type: "string",
|
|
36
|
+
name: "Subheadline"
|
|
37
|
+
},
|
|
38
|
+
background_image: {
|
|
39
|
+
type: "string",
|
|
40
|
+
name: "Background Image",
|
|
41
|
+
storage: {
|
|
42
|
+
storagePath: "page_hero/images",
|
|
43
|
+
acceptedFiles: ["image/*"]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
call_to_action: {
|
|
47
|
+
type: "string",
|
|
48
|
+
name: "Call to Action"
|
|
49
|
+
},
|
|
50
|
+
call_to_action_link: {
|
|
51
|
+
type: "string",
|
|
52
|
+
name: "CTA Link",
|
|
53
|
+
url: true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
content: {
|
|
58
|
+
type: "array",
|
|
59
|
+
name: "Content",
|
|
60
|
+
oneOf: { properties: {
|
|
61
|
+
section: {
|
|
62
|
+
type: "map",
|
|
63
|
+
name: "Section",
|
|
64
|
+
properties: {
|
|
65
|
+
title: {
|
|
66
|
+
type: "string",
|
|
67
|
+
name: "Section Title",
|
|
68
|
+
validation: { required: true }
|
|
69
|
+
},
|
|
70
|
+
content: {
|
|
71
|
+
type: "string",
|
|
72
|
+
name: "Section Content",
|
|
73
|
+
admin: { markdown: true }
|
|
74
|
+
},
|
|
75
|
+
image: {
|
|
76
|
+
type: "string",
|
|
77
|
+
name: "Section Image",
|
|
78
|
+
storage: {
|
|
79
|
+
storagePath: "page_sections/images",
|
|
80
|
+
acceptedFiles: ["image/*"]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
link: {
|
|
84
|
+
type: "string",
|
|
85
|
+
name: "Section Link",
|
|
86
|
+
url: true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
image: {
|
|
91
|
+
type: "string",
|
|
92
|
+
name: "Image",
|
|
93
|
+
storage: {
|
|
94
|
+
storagePath: "page_sections/images",
|
|
95
|
+
acceptedFiles: ["image/*"]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
slider: {
|
|
99
|
+
type: "array",
|
|
100
|
+
name: "Slider",
|
|
101
|
+
of: {
|
|
102
|
+
type: "map",
|
|
103
|
+
properties: {
|
|
104
|
+
title: {
|
|
105
|
+
type: "string",
|
|
106
|
+
name: "Title",
|
|
107
|
+
validation: { required: true }
|
|
108
|
+
},
|
|
109
|
+
image: {
|
|
110
|
+
type: "string",
|
|
111
|
+
storage: {
|
|
112
|
+
storagePath: "page_sections/images",
|
|
113
|
+
acceptedFiles: ["image/*"]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
} }
|
|
120
|
+
},
|
|
121
|
+
sidebar: {
|
|
122
|
+
type: "map",
|
|
123
|
+
name: "Sidebar",
|
|
124
|
+
properties: {
|
|
125
|
+
title: {
|
|
126
|
+
type: "string",
|
|
127
|
+
name: "Sidebar Title",
|
|
128
|
+
validation: { required: false }
|
|
129
|
+
},
|
|
130
|
+
content: {
|
|
131
|
+
type: "string",
|
|
132
|
+
name: "Sidebar Content",
|
|
133
|
+
admin: { markdown: true }
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
seo_metadata: {
|
|
138
|
+
type: "map",
|
|
139
|
+
name: "SEO Metadata",
|
|
140
|
+
properties: {
|
|
141
|
+
meta_title: {
|
|
142
|
+
type: "string",
|
|
143
|
+
name: "Meta Title"
|
|
144
|
+
},
|
|
145
|
+
meta_description: {
|
|
146
|
+
type: "string",
|
|
147
|
+
name: "Meta Description"
|
|
148
|
+
},
|
|
149
|
+
focus_keywords: {
|
|
150
|
+
type: "array",
|
|
151
|
+
name: "Focus Keywords",
|
|
152
|
+
of: { type: "string" }
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
footer_override: {
|
|
157
|
+
type: "string",
|
|
158
|
+
name: "Footer Override",
|
|
159
|
+
admin: { markdown: true }
|
|
160
|
+
},
|
|
161
|
+
publish_date: {
|
|
162
|
+
type: "date",
|
|
163
|
+
name: "Publish Date",
|
|
164
|
+
validation: { required: true }
|
|
165
|
+
},
|
|
166
|
+
last_updated: {
|
|
167
|
+
type: "date",
|
|
168
|
+
name: "Last Updated",
|
|
169
|
+
autoValue: "on_update"
|
|
170
|
+
},
|
|
171
|
+
is_published: {
|
|
172
|
+
type: "boolean",
|
|
173
|
+
name: "Is Published",
|
|
174
|
+
admin: { columnWidth: 100 },
|
|
175
|
+
description: "Should this page be live on the site?"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
//#endregion
|
|
180
|
+
export { pagesCollectionTemplate };
|
|
181
|
+
|
|
182
|
+
//# sourceMappingURL=pages_template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages_template.js","names":[],"sources":["../../../../../src/collection_editor/ui/collection_editor/templates/pages_template.ts"],"sourcesContent":["import type { AdminCollection } from \"@rebasepro/cms-types\";\n\nexport const pagesCollectionTemplate = {\n slug: \"pages\",\n table: \"pages\",\n name: \"Pages\",\n singularName: \"Page\",\n icon: \"File\",\n description: \"List of website pages that can be edited here\",\n properties: {\n title: {\n type: \"string\",\n name: \"Page Title\",\n validation: { required: true }\n },\n slug: {\n type: \"string\",\n name: \"URL Slug\",\n validation: {\n required: true,\n unique: true,\n matches: \"^[a-z0-9]+(?:-[a-z0-9]+)*$\",\n matchesMessage: \"Must be lowercase, alphanumeric, and hyphenated\"\n }\n },\n hero_section: {\n type: \"map\",\n name: \"Hero Section\",\n properties: {\n headline: {\n type: \"string\",\n name: \"Headline\",\n validation: { required: true }\n },\n subhead: {\n type: \"string\",\n name: \"Subheadline\"\n },\n background_image: {\n type: \"string\",\n name: \"Background Image\",\n storage: {\n storagePath: \"page_hero/images\",\n acceptedFiles: [\"image/*\"]\n }\n },\n call_to_action: {\n type: \"string\",\n name: \"Call to Action\"\n },\n call_to_action_link: {\n type: \"string\",\n name: \"CTA Link\",\n url: true\n }\n }\n },\n content: {\n type: \"array\",\n name: \"Content\",\n oneOf: {\n properties: {\n section: {\n type: \"map\",\n name: \"Section\",\n properties: {\n title: {\n type: \"string\",\n name: \"Section Title\",\n validation: { required: true }\n },\n content: {\n type: \"string\",\n name: \"Section Content\",\n admin: { markdown: true }\n },\n image: {\n type: \"string\",\n name: \"Section Image\",\n storage: {\n storagePath: \"page_sections/images\",\n acceptedFiles: [\"image/*\"]\n }\n },\n link: {\n type: \"string\",\n name: \"Section Link\",\n url: true\n }\n }\n },\n image: {\n type: \"string\",\n name: \"Image\",\n storage: {\n storagePath: \"page_sections/images\",\n acceptedFiles: [\"image/*\"]\n }\n },\n slider: {\n type: \"array\",\n name: \"Slider\",\n of: {\n type: \"map\",\n properties: {\n title: {\n type: \"string\",\n name: \"Title\",\n validation: { required: true }\n },\n image: {\n type: \"string\",\n storage: {\n storagePath: \"page_sections/images\",\n acceptedFiles: [\"image/*\"]\n }\n }\n }\n }\n }\n }\n }\n },\n sidebar: {\n type: \"map\",\n name: \"Sidebar\",\n properties: {\n title: {\n type: \"string\",\n name: \"Sidebar Title\",\n validation: { required: false }\n },\n content: {\n type: \"string\",\n name: \"Sidebar Content\",\n admin: { markdown: true }\n }\n }\n },\n seo_metadata: {\n type: \"map\",\n name: \"SEO Metadata\",\n properties: {\n meta_title: {\n type: \"string\",\n name: \"Meta Title\"\n },\n meta_description: {\n type: \"string\",\n name: \"Meta Description\"\n },\n focus_keywords: {\n type: \"array\",\n name: \"Focus Keywords\",\n of: {\n type: \"string\"\n }\n }\n }\n },\n footer_override: {\n type: \"string\",\n name: \"Footer Override\",\n admin: { markdown: true }\n },\n publish_date: {\n type: \"date\",\n name: \"Publish Date\",\n validation: { required: true }\n },\n last_updated: {\n type: \"date\",\n name: \"Last Updated\",\n autoValue: \"on_update\"\n },\n is_published: {\n type: \"boolean\",\n name: \"Is Published\",\n admin: { columnWidth: 100 },\n description: \"Should this page be live on the site?\"\n }\n }\n} satisfies AdminCollection;\n"],"mappings":";AAEA,IAAa,0BAA0B;CACnC,MAAM;CACN,OAAO;CACP,MAAM;CACN,cAAc;CACd,MAAM;CACN,aAAa;CACb,YAAY;EACR,OAAO;GACH,MAAM;GACN,MAAM;GACN,YAAY,EAAE,UAAU,KAAK;EACjC;EACA,MAAM;GACF,MAAM;GACN,MAAM;GACN,YAAY;IACR,UAAU;IACV,QAAQ;IACR,SAAS;IACT,gBAAgB;GACpB;EACJ;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,YAAY;IACR,UAAU;KACN,MAAM;KACN,MAAM;KACN,YAAY,EAAE,UAAU,KAAK;IACjC;IACA,SAAS;KACL,MAAM;KACN,MAAM;IACV;IACA,kBAAkB;KACd,MAAM;KACN,MAAM;KACN,SAAS;MACL,aAAa;MACb,eAAe,CAAC,SAAS;KAC7B;IACJ;IACA,gBAAgB;KACZ,MAAM;KACN,MAAM;IACV;IACA,qBAAqB;KACjB,MAAM;KACN,MAAM;KACN,KAAK;IACT;GACJ;EACJ;EACA,SAAS;GACL,MAAM;GACN,MAAM;GACN,OAAO,EACH,YAAY;IACR,SAAS;KACL,MAAM;KACN,MAAM;KACN,YAAY;MACR,OAAO;OACH,MAAM;OACN,MAAM;OACN,YAAY,EAAE,UAAU,KAAK;MACjC;MACA,SAAS;OACL,MAAM;OACN,MAAM;OACN,OAAO,EAAE,UAAU,KAAK;MAC5B;MACA,OAAO;OACH,MAAM;OACN,MAAM;OACN,SAAS;QACL,aAAa;QACb,eAAe,CAAC,SAAS;OAC7B;MACJ;MACA,MAAM;OACF,MAAM;OACN,MAAM;OACN,KAAK;MACT;KACJ;IACJ;IACA,OAAO;KACH,MAAM;KACN,MAAM;KACN,SAAS;MACL,aAAa;MACb,eAAe,CAAC,SAAS;KAC7B;IACJ;IACA,QAAQ;KACJ,MAAM;KACN,MAAM;KACN,IAAI;MACA,MAAM;MACN,YAAY;OACR,OAAO;QACH,MAAM;QACN,MAAM;QACN,YAAY,EAAE,UAAU,KAAK;OACjC;OACA,OAAO;QACH,MAAM;QACN,SAAS;SACL,aAAa;SACb,eAAe,CAAC,SAAS;QAC7B;OACJ;MACJ;KACJ;IACJ;GACJ,EACJ;EACJ;EACA,SAAS;GACL,MAAM;GACN,MAAM;GACN,YAAY;IACR,OAAO;KACH,MAAM;KACN,MAAM;KACN,YAAY,EAAE,UAAU,MAAM;IAClC;IACA,SAAS;KACL,MAAM;KACN,MAAM;KACN,OAAO,EAAE,UAAU,KAAK;IAC5B;GACJ;EACJ;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,YAAY;IACR,YAAY;KACR,MAAM;KACN,MAAM;IACV;IACA,kBAAkB;KACd,MAAM;KACN,MAAM;IACV;IACA,gBAAgB;KACZ,MAAM;KACN,MAAM;KACN,IAAI,EACA,MAAM,SACV;IACJ;GACJ;EACJ;EACA,iBAAiB;GACb,MAAM;GACN,MAAM;GACN,OAAO,EAAE,UAAU,KAAK;EAC5B;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,YAAY,EAAE,UAAU,KAAK;EACjC;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,WAAW;EACf;EACA,cAAc;GACV,MAAM;GACN,MAAM;GACN,OAAO,EAAE,aAAa,IAAI;GAC1B,aAAa;EACjB;CACJ;AACJ"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//#region src/collection_editor/ui/collection_editor/templates/products_template.ts
|
|
2
|
+
var productsCollectionTemplate = {
|
|
3
|
+
slug: "products",
|
|
4
|
+
table: "products",
|
|
5
|
+
name: "Products",
|
|
6
|
+
singularName: "Product",
|
|
7
|
+
icon: "ShoppingCart",
|
|
8
|
+
description: "List of the products currently sold in your shop",
|
|
9
|
+
properties: {
|
|
10
|
+
name: {
|
|
11
|
+
type: "string",
|
|
12
|
+
name: "Name",
|
|
13
|
+
description: "Name of this product",
|
|
14
|
+
validation: { required: true }
|
|
15
|
+
},
|
|
16
|
+
brand: {
|
|
17
|
+
type: "string",
|
|
18
|
+
name: "Brand",
|
|
19
|
+
validation: { required: true }
|
|
20
|
+
},
|
|
21
|
+
description: {
|
|
22
|
+
type: "string",
|
|
23
|
+
name: "Description",
|
|
24
|
+
description: "Description of this product, supports markdown",
|
|
25
|
+
admin: { markdown: true }
|
|
26
|
+
},
|
|
27
|
+
main_image: {
|
|
28
|
+
type: "string",
|
|
29
|
+
name: "Image",
|
|
30
|
+
storage: {
|
|
31
|
+
storagePath: "images",
|
|
32
|
+
acceptedFiles: ["image/*"]
|
|
33
|
+
},
|
|
34
|
+
description: "Upload field for images"
|
|
35
|
+
},
|
|
36
|
+
available: {
|
|
37
|
+
type: "boolean",
|
|
38
|
+
name: "Available",
|
|
39
|
+
admin: { columnWidth: 100 },
|
|
40
|
+
description: "Is this product available in the website"
|
|
41
|
+
},
|
|
42
|
+
price: {
|
|
43
|
+
type: "number",
|
|
44
|
+
name: "Price",
|
|
45
|
+
validation: {
|
|
46
|
+
requiredMessage: "You must set a positive price",
|
|
47
|
+
min: 0
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
images: {
|
|
51
|
+
type: "array",
|
|
52
|
+
name: "Images",
|
|
53
|
+
admin: { hideFromCollection: true },
|
|
54
|
+
of: {
|
|
55
|
+
type: "string",
|
|
56
|
+
storage: {
|
|
57
|
+
storagePath: "images",
|
|
58
|
+
acceptedFiles: ["image/*"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
related_products: {
|
|
63
|
+
type: "array",
|
|
64
|
+
name: "Related products",
|
|
65
|
+
description: "Products related to this one",
|
|
66
|
+
of: {
|
|
67
|
+
type: "reference",
|
|
68
|
+
path: "products"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
metadata: {
|
|
72
|
+
name: "Metadata",
|
|
73
|
+
description: "This is an example of a map property",
|
|
74
|
+
type: "map",
|
|
75
|
+
keyValue: true
|
|
76
|
+
},
|
|
77
|
+
added_on: {
|
|
78
|
+
type: "date",
|
|
79
|
+
name: "Added on",
|
|
80
|
+
autoValue: "on_create"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
export { productsCollectionTemplate };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=products_template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products_template.js","names":[],"sources":["../../../../../src/collection_editor/ui/collection_editor/templates/products_template.ts"],"sourcesContent":["import type { AdminCollection } from \"@rebasepro/cms-types\";\n\nexport const productsCollectionTemplate = {\n slug: \"products\",\n table: \"products\",\n name: \"Products\",\n singularName: \"Product\",\n icon: \"ShoppingCart\",\n description: \"List of the products currently sold in your shop\",\n properties: {\n name: {\n type: \"string\",\n name: \"Name\",\n description: \"Name of this product\",\n validation: {\n required: true\n }\n },\n brand: {\n type: \"string\",\n name: \"Brand\",\n validation: {\n required: true\n }\n },\n description: {\n type: \"string\",\n name: \"Description\",\n description: \"Description of this product, supports markdown\",\n admin: { markdown: true }\n },\n main_image: {\n type: \"string\",\n name: \"Image\",\n storage: {\n storagePath: \"images\",\n acceptedFiles: [\"image/*\"]\n },\n description: \"Upload field for images\"\n },\n available: {\n type: \"boolean\",\n name: \"Available\",\n admin: { columnWidth: 100 },\n description: \"Is this product available in the website\"\n },\n price: {\n type: \"number\",\n name: \"Price\",\n validation: {\n requiredMessage: \"You must set a positive price\",\n min: 0\n }\n },\n images: {\n type: \"array\",\n name: \"Images\",\n admin: { hideFromCollection: true },\n of: {\n type: \"string\",\n storage: {\n storagePath: \"images\",\n acceptedFiles: [\"image/*\"]\n }\n }\n },\n related_products: {\n type: \"array\",\n name: \"Related products\",\n description: \"Products related to this one\",\n of: {\n type: \"reference\",\n path: \"products\"\n }\n },\n metadata: {\n name: \"Metadata\",\n description: \"This is an example of a map property\",\n type: \"map\",\n keyValue: true\n },\n added_on: {\n type: \"date\",\n name: \"Added on\",\n autoValue: \"on_create\"\n }\n }\n} satisfies AdminCollection;\n"],"mappings":";AAEA,IAAa,6BAA6B;CACtC,MAAM;CACN,OAAO;CACP,MAAM;CACN,cAAc;CACd,MAAM;CACN,aAAa;CACb,YAAY;EACR,MAAM;GACF,MAAM;GACN,MAAM;GACN,aAAa;GACb,YAAY,EACR,UAAU,KACd;EACJ;EACA,OAAO;GACH,MAAM;GACN,MAAM;GACN,YAAY,EACR,UAAU,KACd;EACJ;EACA,aAAa;GACT,MAAM;GACN,MAAM;GACN,aAAa;GACb,OAAO,EAAE,UAAU,KAAK;EAC5B;EACA,YAAY;GACR,MAAM;GACN,MAAM;GACN,SAAS;IACL,aAAa;IACb,eAAe,CAAC,SAAS;GAC7B;GACA,aAAa;EACjB;EACA,WAAW;GACP,MAAM;GACN,MAAM;GACN,OAAO,EAAE,aAAa,IAAI;GAC1B,aAAa;EACjB;EACA,OAAO;GACH,MAAM;GACN,MAAM;GACN,YAAY;IACR,iBAAiB;IACjB,KAAK;GACT;EACJ;EACA,QAAQ;GACJ,MAAM;GACN,MAAM;GACN,OAAO,EAAE,oBAAoB,KAAK;GAClC,IAAI;IACA,MAAM;IACN,SAAS;KACL,aAAa;KACb,eAAe,CAAC,SAAS;IAC7B;GACJ;EACJ;EACA,kBAAkB;GACd,MAAM;GACN,MAAM;GACN,aAAa;GACb,IAAI;IACA,MAAM;IACN,MAAM;GACV;EACJ;EACA,UAAU;GACN,MAAM;GACN,aAAa;GACb,MAAM;GACN,UAAU;EACd;EACA,UAAU;GACN,MAAM;GACN,MAAM;GACN,WAAW;EACf;CACJ;AACJ"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/collection_editor/ui/collection_editor/templates/users_template.ts
|
|
2
|
+
var usersCollectionTemplate = {
|
|
3
|
+
slug: "users",
|
|
4
|
+
table: "users",
|
|
5
|
+
name: "Users",
|
|
6
|
+
singularName: "User",
|
|
7
|
+
description: "Registered users in the app/web",
|
|
8
|
+
icon: "User",
|
|
9
|
+
properties: {
|
|
10
|
+
displayName: {
|
|
11
|
+
name: "Display name",
|
|
12
|
+
type: "string"
|
|
13
|
+
},
|
|
14
|
+
email: {
|
|
15
|
+
name: "Email",
|
|
16
|
+
type: "string",
|
|
17
|
+
email: true
|
|
18
|
+
},
|
|
19
|
+
emailVerified: {
|
|
20
|
+
name: "Email verified",
|
|
21
|
+
type: "boolean"
|
|
22
|
+
},
|
|
23
|
+
phone: {
|
|
24
|
+
name: "Phone",
|
|
25
|
+
type: "string"
|
|
26
|
+
},
|
|
27
|
+
favourite_products: {
|
|
28
|
+
name: "Favourite products",
|
|
29
|
+
type: "array",
|
|
30
|
+
of: {
|
|
31
|
+
type: "reference",
|
|
32
|
+
path: "products"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
photoURL: {
|
|
36
|
+
name: "Photo URL",
|
|
37
|
+
type: "string",
|
|
38
|
+
url: true,
|
|
39
|
+
admin: { urlPreview: "image" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { usersCollectionTemplate };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=users_template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users_template.js","names":[],"sources":["../../../../../src/collection_editor/ui/collection_editor/templates/users_template.ts"],"sourcesContent":["import type { AdminCollection } from \"@rebasepro/cms-types\";\n\nexport const usersCollectionTemplate = {\n slug: \"users\",\n table: \"users\",\n name: \"Users\",\n singularName: \"User\",\n description: \"Registered users in the app/web\",\n icon: \"User\",\n properties: {\n displayName: {\n name: \"Display name\",\n type: \"string\"\n },\n email: {\n name: \"Email\",\n type: \"string\",\n email: true\n },\n emailVerified: {\n name: \"Email verified\",\n type: \"boolean\"\n },\n phone: {\n name: \"Phone\",\n type: \"string\"\n },\n favourite_products: {\n name: \"Favourite products\",\n type: \"array\",\n of: {\n type: \"reference\",\n path: \"products\"\n }\n },\n photoURL: {\n name: \"Photo URL\",\n type: \"string\",\n // `url` says the data is a URL — it is part of the API contract, and\n // it is a boolean. How the panel renders it is `admin.urlPreview`.\n url: true,\n admin: { urlPreview: \"image\" }\n }\n }\n} satisfies AdminCollection;\n"],"mappings":";AAEA,IAAa,0BAA0B;CACnC,MAAM;CACN,OAAO;CACP,MAAM;CACN,cAAc;CACd,aAAa;CACb,MAAM;CACN,YAAY;EACR,aAAa;GACT,MAAM;GACN,MAAM;EACV;EACA,OAAO;GACH,MAAM;GACN,MAAM;GACN,OAAO;EACX;EACA,eAAe;GACX,MAAM;GACN,MAAM;EACV;EACA,OAAO;GACH,MAAM;GACN,MAAM;EACV;EACA,oBAAoB;GAChB,MAAM;GACN,MAAM;GACN,IAAI;IACA,MAAM;IACN,MAAM;GACV;EACJ;EACA,UAAU;GACN,MAAM;GACN,MAAM;GAGN,KAAK;GACL,OAAO,EAAE,YAAY,QAAQ;EACjC;CACJ;AACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/collection_editor/ui/collection_editor/util.ts
|
|
2
|
+
function idToPropertiesPath(id) {
|
|
3
|
+
return "properties." + id.replaceAll(".", ".properties.");
|
|
4
|
+
}
|
|
5
|
+
function namespaceToPropertiesPath(namespace) {
|
|
6
|
+
return namespace ? "properties." + namespace.replaceAll(".", ".properties.") + ".properties" : "properties";
|
|
7
|
+
}
|
|
8
|
+
function namespaceToPropertiesOrderPath(namespace) {
|
|
9
|
+
return namespace ? "properties." + namespace.replaceAll(".", ".properties.") + ".propertiesOrder" : "propertiesOrder";
|
|
10
|
+
}
|
|
11
|
+
function getFullId(propertyKey, propertyNamespace) {
|
|
12
|
+
return propertyNamespace ? `${propertyNamespace}.${propertyKey}` : propertyKey;
|
|
13
|
+
}
|
|
14
|
+
function getFullIdPath(propertyKey, propertyNamespace) {
|
|
15
|
+
return idToPropertiesPath(propertyNamespace ? `${propertyNamespace}.${propertyKey}` : propertyKey);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { getFullId, getFullIdPath, idToPropertiesPath, namespaceToPropertiesOrderPath, namespaceToPropertiesPath };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","names":[],"sources":["../../../../src/collection_editor/ui/collection_editor/util.ts"],"sourcesContent":["export function idToPropertiesPath(id: string): string {\n return \"properties.\" + id.replaceAll(\".\", \".properties.\");\n}\n\nexport function namespaceToPropertiesPath(namespace?: string): string {\n return namespace\n ? \"properties.\" + namespace.replaceAll(\".\", \".properties.\") + \".properties\"\n : \"properties\";\n}\n\nexport function namespaceToPropertiesOrderPath(namespace?: string): string {\n return namespace\n ? \"properties.\" + namespace.replaceAll(\".\", \".properties.\") + \".propertiesOrder\"\n : \"propertiesOrder\";\n}\n\nexport function getFullId(propertyKey: string, propertyNamespace?: string): string {\n return propertyNamespace\n ? `${propertyNamespace}.${propertyKey}`\n : propertyKey;\n}\n\nexport function getFullIdPath(propertyKey: string, propertyNamespace?: string): string {\n const keyWithNamespace = propertyNamespace\n ? `${propertyNamespace}.${propertyKey}`\n : propertyKey;\n return idToPropertiesPath(keyWithNamespace);\n}\n"],"mappings":";AAAA,SAAgB,mBAAmB,IAAoB;CACnD,OAAO,gBAAgB,GAAG,WAAW,KAAK,cAAc;AAC5D;AAEA,SAAgB,0BAA0B,WAA4B;CAClE,OAAO,YACD,gBAAgB,UAAU,WAAW,KAAK,cAAc,IAAI,gBAC5D;AACV;AAEA,SAAgB,+BAA+B,WAA4B;CACvE,OAAO,YACD,gBAAgB,UAAU,WAAW,KAAK,cAAc,IAAI,qBAC5D;AACV;AAEA,SAAgB,UAAU,aAAqB,mBAAoC;CAC/E,OAAO,oBACD,GAAG,kBAAkB,GAAG,gBACxB;AACV;AAEA,SAAgB,cAAc,aAAqB,mBAAoC;CAInF,OAAO,mBAHkB,oBACnB,GAAG,kBAAkB,GAAG,gBACxB,WACoC;AAC9C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DEFAULT_FIELD_CONFIGS } from "../../../../components/field_configs.js";
|
|
2
|
+
//#region src/collection_editor/ui/collection_editor/utils/supported_fields.tsx
|
|
3
|
+
var supportedFieldsIds = [
|
|
4
|
+
"text_field",
|
|
5
|
+
"multiline",
|
|
6
|
+
"markdown",
|
|
7
|
+
"url",
|
|
8
|
+
"email",
|
|
9
|
+
"user_select",
|
|
10
|
+
"select",
|
|
11
|
+
"multi_select",
|
|
12
|
+
"number_input",
|
|
13
|
+
"number_select",
|
|
14
|
+
"multi_number_select",
|
|
15
|
+
"file_upload",
|
|
16
|
+
"multi_file_upload",
|
|
17
|
+
"reference",
|
|
18
|
+
"multi_references",
|
|
19
|
+
"relation",
|
|
20
|
+
"switch",
|
|
21
|
+
"date_time",
|
|
22
|
+
"group",
|
|
23
|
+
"key_value",
|
|
24
|
+
"repeat",
|
|
25
|
+
"block",
|
|
26
|
+
"vector_input",
|
|
27
|
+
"geopoint",
|
|
28
|
+
"binary"
|
|
29
|
+
];
|
|
30
|
+
var supportedFields = Object.entries(DEFAULT_FIELD_CONFIGS).filter(([id]) => supportedFieldsIds.includes(id)).map(([id, config]) => ({ [id]: config })).reduce((a, b) => ({
|
|
31
|
+
...a,
|
|
32
|
+
...b
|
|
33
|
+
}), {});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { supportedFields, supportedFieldsIds };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=supported_fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported_fields.js","names":[],"sources":["../../../../../src/collection_editor/ui/collection_editor/utils/supported_fields.tsx"],"sourcesContent":["import { DEFAULT_FIELD_CONFIGS } from \"../../../../components/field_configs\";\nimport { PropertyConfigId, PropertyConfig } from \"@rebasepro/cms-types\";\n\nexport const supportedFieldsIds: PropertyConfigId[] = [\n \"text_field\",\n \"multiline\",\n \"markdown\",\n \"url\",\n \"email\",\n \"user_select\",\n \"select\",\n \"multi_select\",\n \"number_input\",\n \"number_select\",\n \"multi_number_select\",\n \"file_upload\",\n \"multi_file_upload\",\n \"reference\",\n \"multi_references\",\n \"relation\",\n \"switch\",\n \"date_time\",\n \"group\",\n \"key_value\",\n \"repeat\",\n \"block\",\n // These three have a field binding and a property editor, and were simply\n // never added to the picker — so a property of the type rendered correctly\n // once it existed, but there was no way to create one from the UI.\n \"vector_input\",\n \"geopoint\",\n \"binary\"\n];\n\nexport const supportedFields: Record<string, PropertyConfig> = Object.entries(DEFAULT_FIELD_CONFIGS)\n .filter(([id]) => supportedFieldsIds.includes(id as PropertyConfigId))\n .map(([id, config]) => ({ [id]: config }))\n .reduce((a, b) => ({ ...a,\n...b }), {});\n"],"mappings":";;AAGA,IAAa,qBAAyC;CAClD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAIA;CACA;CACA;AACJ;AAEA,IAAa,kBAAkD,OAAO,QAAQ,qBAAqB,CAAC,CAC/F,QAAQ,CAAC,QAAQ,mBAAmB,SAAS,EAAsB,CAAC,CAAC,CACrE,KAAK,CAAC,IAAI,aAAa,GAAG,KAAK,OAAO,EAAE,CAAC,CACzC,QAAQ,GAAG,OAAO;CAAE,GAAG;CAC5B,GAAG;AAAE,IAAI,CAAC,CAAC"}
|