@tachybase/client 0.23.8-alpha.32 → 0.23.8-alpha.34
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/lib/api-client/APIClient.js +179 -0
- package/lib/api-client/APIClientProvider.js +45 -0
- package/lib/api-client/__tests__/APIClient.test.js +90 -0
- package/lib/api-client/context.js +39 -0
- package/lib/api-client/demos/demo1.js +80 -0
- package/lib/api-client/demos/demo2.js +79 -0
- package/lib/api-client/demos/demo3.js +122 -0
- package/lib/api-client/hooks/assign.js +110 -0
- package/lib/api-client/hooks/index.js +83 -0
- package/lib/api-client/hooks/useAPIClient.js +40 -0
- package/lib/api-client/hooks/useRequest.js +72 -0
- package/lib/api-client/hooks/useResource.js +40 -0
- package/lib/api-client/index.js +92 -0
- package/lib/application/AppSchemaComponentProvider.js +63 -0
- package/lib/application/Application.js +360 -0
- package/lib/application/AttachmentPreviewManager.js +67 -0
- package/lib/application/NoticesManager.js +154 -0
- package/lib/application/Plugin.js +96 -0
- package/lib/application/PluginContextMenu.js +65 -0
- package/lib/application/PluginManager.js +117 -0
- package/lib/application/RouterManager.js +150 -0
- package/lib/application/SystemSettingsManager.js +145 -0
- package/lib/application/UserSettingsManager.js +147 -0
- package/lib/application/WebSocketClient.js +190 -0
- package/lib/application/__tests__/Application.test.js +517 -0
- package/lib/application/__tests__/Plugin.test.js +233 -0
- package/lib/application/__tests__/PluginSettingsManager.test.js +192 -0
- package/lib/application/__tests__/RouterManager.test.js +347 -0
- package/lib/application/__tests__/SchemaInitializer.test.js +170 -0
- package/lib/application/__tests__/SchemaToolbar.test.js +150 -0
- package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.js +194 -0
- package/lib/application/__tests__/hooks.test.js +92 -0
- package/lib/application/__tests__/utils/remotePlugins.test.js +325 -0
- package/lib/application/__tests__/utils.test.js +106 -0
- package/lib/application/components/AppComponent.js +89 -0
- package/lib/application/components/BlankComponent.js +43 -0
- package/lib/application/components/MainComponent.js +65 -0
- package/lib/application/components/RouterContextCleaner.js +64 -0
- package/lib/application/components/defaultComponents.js +59 -0
- package/lib/application/components/index.js +92 -0
- package/lib/application/context.js +38 -0
- package/lib/application/demos/demo1.js +144 -0
- package/lib/application/demos/demo2.js +160 -0
- package/lib/application/demos/demo3.js +46 -0
- package/lib/application/hoc/index.js +65 -0
- package/lib/application/hoc/withDynamicSchemaProps.js +164 -0
- package/lib/application/hooks/index.js +83 -0
- package/lib/application/hooks/useApp.js +38 -0
- package/lib/application/hooks/usePlugin.js +40 -0
- package/lib/application/hooks/useRouter.js +40 -0
- package/lib/application/index.js +233 -0
- package/lib/application/schema-initializer/SchemaInitializer.js +112 -0
- package/lib/application/schema-initializer/SchemaInitializerManager.js +108 -0
- package/lib/application/schema-initializer/components/SchemaInitializerActionModal.js +145 -0
- package/lib/application/schema-initializer/components/SchemaInitializerButton.js +87 -0
- package/lib/application/schema-initializer/components/SchemaInitializerChildren.js +104 -0
- package/lib/application/schema-initializer/components/SchemaInitializerDivider.js +47 -0
- package/lib/application/schema-initializer/components/SchemaInitializerItem.js +139 -0
- package/lib/application/schema-initializer/components/SchemaInitializerItemGroup.js +71 -0
- package/lib/application/schema-initializer/components/SchemaInitializerItems.js +45 -0
- package/lib/application/schema-initializer/components/SchemaInitializerSelect.js +98 -0
- package/lib/application/schema-initializer/components/SchemaInitializerSubMenu.js +157 -0
- package/lib/application/schema-initializer/components/SchemaInitializerSwitch.js +73 -0
- package/lib/application/schema-initializer/components/index.js +146 -0
- package/lib/application/schema-initializer/components/style.js +75 -0
- package/lib/application/schema-initializer/context/index.js +59 -0
- package/lib/application/schema-initializer/hoc/index.js +165 -0
- package/lib/application/schema-initializer/hooks/index.js +251 -0
- package/lib/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.js +51 -0
- package/lib/application/schema-initializer/index.js +119 -0
- package/lib/application/schema-initializer/types.js +19 -0
- package/lib/application/schema-settings/SchemaSettings.js +107 -0
- package/lib/application/schema-settings/SchemaSettingsDefaults.js +249 -0
- package/lib/application/schema-settings/SchemaSettingsManager.js +108 -0
- package/lib/application/schema-settings/components/SchemaSettingsChildren.js +125 -0
- package/lib/application/schema-settings/components/SchemaSettingsIcon.js +67 -0
- package/lib/application/schema-settings/components/SchemaSettingsWrapper.js +81 -0
- package/lib/application/schema-settings/components/index.js +74 -0
- package/lib/application/schema-settings/context/index.js +42 -0
- package/lib/application/schema-settings/hooks/index.js +92 -0
- package/lib/application/schema-settings/index.js +110 -0
- package/lib/application/schema-settings/types.js +19 -0
- package/lib/application/schema-toolbar/context/index.js +51 -0
- package/lib/application/schema-toolbar/hooks/index.js +59 -0
- package/lib/application/schema-toolbar/index.js +74 -0
- package/lib/application/utils/globalDeps.js +112 -0
- package/lib/application/utils/index.js +74 -0
- package/lib/application/utils/remotePlugins.js +153 -0
- package/lib/async-data-provider/index.js +57 -0
- package/lib/block-provider/BlockProvider.js +373 -0
- package/lib/block-provider/DetailsBlockProvider.js +149 -0
- package/lib/block-provider/FilterFormBlockProvider.js +53 -0
- package/lib/block-provider/FormBlockProvider.js +220 -0
- package/lib/block-provider/FormFieldProvider.js +122 -0
- package/lib/block-provider/MobileProvider.js +50 -0
- package/lib/block-provider/PageLayout.js +43 -0
- package/lib/block-provider/TableBlockProvider.js +147 -0
- package/lib/block-provider/TableFieldProvider.js +202 -0
- package/lib/block-provider/TableSelectorProvider.js +338 -0
- package/lib/block-provider/TreeBlockProvider.js +154 -0
- package/lib/block-provider/hooks/index.js +1559 -0
- package/lib/block-provider/hooks/useDataBlockSourceId.js +48 -0
- package/lib/block-provider/hooks/useFormActiveFields.js +69 -0
- package/lib/block-provider/hooks/useIsMobile.js +41 -0
- package/lib/block-provider/hooks/useParsedFilter.js +96 -0
- package/lib/block-provider/index.js +155 -0
- package/lib/built-in/acl/ACLPlugin.js +47 -0
- package/lib/built-in/acl/ACLProvider.js +328 -0
- package/lib/built-in/acl/ACLShortcut.js +57 -0
- package/lib/built-in/acl/Configuration/ConfigureCenter.js +158 -0
- package/lib/built-in/acl/Configuration/MenuConfigure.js +181 -0
- package/lib/built-in/acl/Configuration/MenuItemsProvider.js +76 -0
- package/lib/built-in/acl/Configuration/PermisionProvider.js +105 -0
- package/lib/built-in/acl/Configuration/RoleConfigure.js +175 -0
- package/lib/built-in/acl/Configuration/RoleTable.js +75 -0
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +251 -0
- package/lib/built-in/acl/Configuration/ScopeSelect.js +76 -0
- package/lib/built-in/acl/Configuration/StrategyActions.js +143 -0
- package/lib/built-in/acl/Configuration/index.js +153 -0
- package/lib/built-in/acl/Configuration/schemas/roles.js +443 -0
- package/lib/built-in/acl/Configuration/schemas/scopes.js +397 -0
- package/lib/built-in/acl/Configuration/schemas/useRoleResourceValues.js +69 -0
- package/lib/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.js +57 -0
- package/lib/built-in/acl/index.js +92 -0
- package/lib/built-in/acl/style.js +57 -0
- package/lib/built-in/admin-layout/AdminContent.js +47 -0
- package/lib/built-in/admin-layout/AdminTabs.js +43 -0
- package/lib/built-in/admin-layout/NoticeArea.js +50 -0
- package/lib/built-in/admin-layout/components/AddNewButton.js +89 -0
- package/lib/built-in/admin-layout/components/WelcomeCard.js +115 -0
- package/lib/built-in/admin-layout/index.js +350 -0
- package/lib/built-in/admin-layout/style.js +176 -0
- package/lib/built-in/assistant/Assistant.provider.js +125 -0
- package/lib/built-in/assistant/ai-chat/index.js +378 -0
- package/lib/built-in/assistant/ai-chat/index.module.js +64 -0
- package/lib/{index.css → built-in/assistant/ai-chat/index_module.css} +0 -64
- package/lib/built-in/assistant/calculator/AutoScalingText.js +67 -0
- package/lib/built-in/assistant/calculator/Calculator.js +283 -0
- package/lib/built-in/assistant/calculator/CalculatorDisplay.js +55 -0
- package/lib/built-in/assistant/calculator/CalculatorKey.js +45 -0
- package/lib/built-in/assistant/calculator/CalculatorProvider.js +65 -0
- package/lib/built-in/assistant/calculator/Draggable.js +102 -0
- package/lib/built-in/assistant/calculator/style.js +59 -0
- package/lib/built-in/assistant/index.js +46 -0
- package/lib/built-in/assistant/search-and-jump/index.js +96 -0
- package/lib/built-in/attachment-preview/index.js +49 -0
- package/lib/built-in/attachment-preview/interface.js +19 -0
- package/lib/built-in/attachment-preview/previewers/file-default.js +117 -0
- package/lib/built-in/attachment-preview/previewers/file-pdf.js +143 -0
- package/lib/built-in/attachment-preview/previewers/file-pdf.style.js +79 -0
- package/lib/built-in/attachment-preview/previewers/file-sheet.js +153 -0
- package/lib/built-in/attachment-preview/previewers/file-sheet.style.js +79 -0
- package/lib/built-in/attachment-preview/previewers/image-jpeg.js +68 -0
- package/lib/built-in/attachment-preview/previewers/image-png.js +68 -0
- package/lib/built-in/attachment-preview/previewers/image-svg.js +54 -0
- package/lib/built-in/attachment-preview/previewers/index.js +110 -0
- package/lib/built-in/block-schema-component/index.js +121 -0
- package/lib/built-in/built-in-collections/index.js +94 -0
- package/lib/built-in/context-menu/ContextMenu.provider.js +102 -0
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +183 -0
- package/lib/built-in/context-menu/index.js +52 -0
- package/lib/built-in/context-menu/useContextMenu.js +39 -0
- package/lib/built-in/document-title/index.js +91 -0
- package/lib/built-in/dynamic-page/DynamicPage.js +70 -0
- package/lib/built-in/dynamic-page/index.js +109 -0
- package/lib/built-in/dynamic-page/style.js +87 -0
- package/lib/built-in/dynamic-page/utils.js +97 -0
- package/lib/built-in/index.js +664 -0
- package/lib/built-in/locale/LocalePlugin.js +132 -0
- package/lib/built-in/locale/loadConstrueLocale.js +233 -0
- package/lib/built-in/page-style/CustomAdminHeader.js +43 -0
- package/lib/built-in/page-style/PageStyle.provider.js +67 -0
- package/lib/built-in/page-style/TabContent.js +101 -0
- package/lib/built-in/page-style/TabHeader.js +129 -0
- package/lib/built-in/page-style/index.js +48 -0
- package/lib/built-in/page-style/usePageStyle.js +38 -0
- package/lib/built-in/page-style/useTabSettings.js +105 -0
- package/lib/built-in/pinned-list/PinnedPluginListProvider.js +96 -0
- package/lib/built-in/pinned-list/PluginPinnedList.js +42 -0
- package/lib/built-in/pinned-list/context.js +40 -0
- package/lib/built-in/pinned-list/index.js +74 -0
- package/lib/built-in/pm/PluginCard.js +305 -0
- package/lib/built-in/pm/PluginDetail.js +369 -0
- package/lib/built-in/pm/PluginDocument.js +105 -0
- package/lib/built-in/pm/PluginForm/form/PluginNpmForm.js +175 -0
- package/lib/built-in/pm/PluginForm/form/PluginUploadForm.js +141 -0
- package/lib/built-in/pm/PluginForm/form/PluginUrlForm.js +135 -0
- package/lib/built-in/pm/PluginForm/modal/PluginAddModal.js +95 -0
- package/lib/built-in/pm/PluginForm/modal/PluginUpgradeModal.js +99 -0
- package/lib/built-in/pm/PluginManager.js +319 -0
- package/lib/built-in/pm/index.js +90 -0
- package/lib/built-in/pm/style.js +106 -0
- package/lib/built-in/pm/types.js +19 -0
- package/lib/built-in/quick-access/Action.js +124 -0
- package/lib/built-in/quick-access/Block.js +163 -0
- package/lib/built-in/quick-access/CustomRequestActionSchemaInitializerItem.js +125 -0
- package/lib/built-in/quick-access/LinkActionSchemaInitializerItem.js +118 -0
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +126 -0
- package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.js +153 -0
- package/lib/built-in/quick-access/SchemaSettingsBlockTitleItem.js +79 -0
- package/lib/built-in/quick-access/blockInitializerItem.js +53 -0
- package/lib/built-in/quick-access/blockSchema.js +53 -0
- package/lib/built-in/quick-access/blockSettings.js +100 -0
- package/lib/built-in/quick-access/configureActions.js +49 -0
- package/lib/built-in/quick-access/index.js +65 -0
- package/lib/built-in/scroll-assistant/ScrollAssistant.provider.js +76 -0
- package/lib/built-in/scroll-assistant/ScrollAssistantStatus.provider.js +57 -0
- package/lib/built-in/scroll-assistant/index.js +61 -0
- package/lib/built-in/scroll-assistant/useJoystick.js +201 -0
- package/lib/built-in/setting-layout/AdminSettings.js +161 -0
- package/lib/built-in/setting-layout/SettingLayout.js +170 -0
- package/lib/built-in/setting-layout/SettingsCenterDropdown.js +109 -0
- package/lib/built-in/system-settings/SystemSettingsProvider.js +53 -0
- package/lib/built-in/system-settings/SystemSettingsShortcut.js +196 -0
- package/lib/built-in/system-settings/index.js +98 -0
- package/lib/built-in/system-version/SystemVersion.provider.js +68 -0
- package/lib/built-in/system-version/index.js +42 -0
- package/lib/built-in/user-settings/UserSettingsLayout.js +203 -0
- package/lib/built-in/user-settings/index.js +51 -0
- package/lib/built-in/user-settings/style.js +106 -0
- package/lib/collection-manager/CollectionHistoryProvider.js +94 -0
- package/lib/collection-manager/CollectionManagerProvider.js +93 -0
- package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js +57 -0
- package/lib/collection-manager/CollectionProvider_deprecated.js +55 -0
- package/lib/collection-manager/Configuration/AddCollectionAction.js +259 -0
- package/lib/collection-manager/Configuration/AddFieldAction.js +409 -0
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +174 -0
- package/lib/collection-manager/Configuration/DeleteCollectionAction.js +257 -0
- package/lib/collection-manager/Configuration/EditCollectionAction.js +223 -0
- package/lib/collection-manager/Configuration/EditFieldAction.js +297 -0
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +163 -0
- package/lib/collection-manager/Configuration/ImportCollectionMetaAction.js +176 -0
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +265 -0
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +233 -0
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +200 -0
- package/lib/collection-manager/Configuration/ViewInheritedField.js +188 -0
- package/lib/collection-manager/Configuration/components/CollectionCategory.js +52 -0
- package/lib/collection-manager/Configuration/components/CollectionFieldInterfaceTag.js +53 -0
- package/lib/collection-manager/Configuration/components/CollectionTemplateTag.js +52 -0
- package/lib/collection-manager/Configuration/components/FieldSummary.js +67 -0
- package/lib/collection-manager/Configuration/components/Summary.js +95 -0
- package/lib/collection-manager/Configuration/components/TemplateSummary.js +67 -0
- package/lib/collection-manager/Configuration/components/index.js +360 -0
- package/lib/collection-manager/Configuration/index.js +225 -0
- package/lib/collection-manager/Configuration/interfaces.js +70 -0
- package/lib/collection-manager/ResourceActionProvider.js +174 -0
- package/lib/collection-manager/action-hooks.js +615 -0
- package/lib/collection-manager/collectionPlugin.js +163 -0
- package/lib/collection-manager/context.js +41 -0
- package/lib/collection-manager/demos/demo2.js +140 -0
- package/lib/collection-manager/demos/demo3.js +124 -0
- package/lib/collection-manager/demos/demo4.js +202 -0
- package/lib/collection-manager/demos/demo5.js +186 -0
- package/lib/collection-manager/hooks/index.js +92 -0
- package/lib/collection-manager/hooks/useCollectionDataSource.js +51 -0
- package/lib/collection-manager/hooks/useCollectionField_deprecated.js +55 -0
- package/lib/collection-manager/hooks/useCollectionManager_deprecated.js +272 -0
- package/lib/collection-manager/hooks/useCollection_deprecated.js +88 -0
- package/lib/collection-manager/hooks/useDialect.js +45 -0
- package/lib/collection-manager/index.js +437 -0
- package/lib/collection-manager/interfaces/__tests__/json.js +47 -0
- package/lib/collection-manager/interfaces/checkbox.js +83 -0
- package/lib/collection-manager/interfaces/checkboxGroup.js +77 -0
- package/lib/collection-manager/interfaces/chinaRegion.js +136 -0
- package/lib/collection-manager/interfaces/collection.js +77 -0
- package/lib/collection-manager/interfaces/color.js +65 -0
- package/lib/collection-manager/interfaces/components/index.js +88 -0
- package/lib/collection-manager/interfaces/createdAt.js +69 -0
- package/lib/collection-manager/interfaces/createdBy.js +89 -0
- package/lib/collection-manager/interfaces/datetime.js +78 -0
- package/lib/collection-manager/interfaces/email.js +76 -0
- package/lib/collection-manager/interfaces/icon.js +62 -0
- package/lib/collection-manager/interfaces/id.js +88 -0
- package/lib/collection-manager/interfaces/index.js +407 -0
- package/lib/collection-manager/interfaces/input.js +216 -0
- package/lib/collection-manager/interfaces/integer.js +152 -0
- package/lib/collection-manager/interfaces/json.js +109 -0
- package/lib/collection-manager/interfaces/linkTo.js +126 -0
- package/lib/collection-manager/interfaces/m2m.js +251 -0
- package/lib/collection-manager/interfaces/m2o.js +193 -0
- package/lib/collection-manager/interfaces/markdown.js +111 -0
- package/lib/collection-manager/interfaces/multipleSelect.js +82 -0
- package/lib/collection-manager/interfaces/nanoid.js +94 -0
- package/lib/collection-manager/interfaces/number.js +165 -0
- package/lib/collection-manager/interfaces/o2m.js +226 -0
- package/lib/collection-manager/interfaces/o2o.js +488 -0
- package/lib/collection-manager/interfaces/password.js +97 -0
- package/lib/collection-manager/interfaces/percent.js +196 -0
- package/lib/collection-manager/interfaces/phone.js +68 -0
- package/lib/collection-manager/interfaces/properties/index.js +539 -0
- package/lib/collection-manager/interfaces/properties/operators.js +436 -0
- package/lib/collection-manager/interfaces/radioGroup.js +68 -0
- package/lib/collection-manager/interfaces/richText.js +109 -0
- package/lib/collection-manager/interfaces/select.js +80 -0
- package/lib/collection-manager/interfaces/sort.js +140 -0
- package/lib/collection-manager/interfaces/subTable.js +231 -0
- package/lib/collection-manager/interfaces/tableoid.js +82 -0
- package/lib/collection-manager/interfaces/textarea.js +109 -0
- package/lib/collection-manager/interfaces/time.js +81 -0
- package/lib/collection-manager/interfaces/types.js +19 -0
- package/lib/collection-manager/interfaces/unixTimestamp.js +86 -0
- package/lib/collection-manager/interfaces/updatedAt.js +69 -0
- package/lib/collection-manager/interfaces/updatedBy.js +89 -0
- package/lib/collection-manager/interfaces/url.js +68 -0
- package/lib/collection-manager/interfaces/uuid.js +82 -0
- package/lib/collection-manager/mixins/InheritanceCollectionMixin.js +221 -0
- package/lib/collection-manager/sub-table.js +275 -0
- package/lib/collection-manager/templates/components/PresetFields.js +262 -0
- package/lib/collection-manager/templates/components/PreviewFields.js +357 -0
- package/lib/collection-manager/templates/components/PreviewTable.js +174 -0
- package/lib/collection-manager/templates/components/sql-collection/FieldsConfigure.js +328 -0
- package/lib/collection-manager/templates/components/sql-collection/PreviewTable.js +94 -0
- package/lib/collection-manager/templates/components/sql-collection/SQLInput.js +124 -0
- package/lib/collection-manager/templates/components/sql-collection/SQLRequestProvider.js +85 -0
- package/lib/collection-manager/templates/components/sql-collection/index.js +92 -0
- package/lib/collection-manager/templates/expression.js +96 -0
- package/lib/collection-manager/templates/general.js +54 -0
- package/lib/collection-manager/templates/import.js +53 -0
- package/lib/collection-manager/templates/index.js +110 -0
- package/lib/collection-manager/templates/properties/index.js +104 -0
- package/lib/collection-manager/templates/sql.js +119 -0
- package/lib/collection-manager/templates/tree.js +112 -0
- package/lib/collection-manager/templates/types.js +19 -0
- package/lib/collection-manager/templates/view.js +193 -0
- package/lib/collection-manager/types.js +19 -0
- package/lib/collection-manager/utils.js +55 -0
- package/lib/common/SelectWithTitle.js +78 -0
- package/lib/common/appInfo/CurrentAppInfoProvider.js +53 -0
- package/lib/common/appInfo/index.js +65 -0
- package/lib/common/index.js +83 -0
- package/lib/common/useFieldComponentName.js +57 -0
- package/lib/common/useNiceDropdownHeight.js +52 -0
- package/lib/data-source/__tests__/collection/AssociationProvider.test.js +120 -0
- package/lib/data-source/__tests__/collection/Collection.test.js +304 -0
- package/lib/data-source/__tests__/collection/CollectionManager.test.js +304 -0
- package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.js +121 -0
- package/lib/data-source/__tests__/collection/CollectionProvider.test.js +113 -0
- package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.js +94 -0
- package/lib/data-source/__tests__/collection-field/CollectionField.test.js +74 -0
- package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.js +58 -0
- package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.js +169 -0
- package/lib/data-source/__tests__/collection-record/CollectionRecord.test.js +28 -0
- package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.js +260 -0
- package/lib/data-source/__tests__/collection-record/isNewRecord.test.js +52 -0
- package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.js +130 -0
- package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.js +50 -0
- package/lib/data-source/__tests__/data-block/DataBlockProvider.test.js +154 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.js +122 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.js +187 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.js +143 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.js +222 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.js +172 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.js +128 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/createApp.js +103 -0
- package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.js +42 -0
- package/lib/data-source/__tests__/data-source/DataSource.test.js +82 -0
- package/lib/data-source/__tests__/data-source/DataSourceManager.test.js +173 -0
- package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.js +37 -0
- package/lib/data-source/__tests__/data-source/DataSourceProvider.test.js +86 -0
- package/lib/data-source/__tests__/utils.test.js +62 -0
- package/lib/data-source/collection/AssociationProvider.js +78 -0
- package/lib/data-source/collection/Collection.js +211 -0
- package/lib/data-source/collection/CollectionManager.js +153 -0
- package/lib/data-source/collection/CollectionManagerProvider.js +84 -0
- package/lib/data-source/collection/CollectionProvider.js +75 -0
- package/lib/data-source/collection/ExtendCollectionsProvider.js +66 -0
- package/lib/data-source/collection/index.js +110 -0
- package/lib/data-source/collection/utils.js +85 -0
- package/lib/data-source/collection-field/CollectionField.js +108 -0
- package/lib/data-source/collection-field/CollectionFieldProvider.js +76 -0
- package/lib/data-source/collection-field/index.js +74 -0
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +69 -0
- package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.js +95 -0
- package/lib/data-source/collection-field-interface/index.js +74 -0
- package/lib/data-source/collection-record/CollectionRecord.js +64 -0
- package/lib/data-source/collection-record/CollectionRecordProvider.js +101 -0
- package/lib/data-source/collection-record/index.js +74 -0
- package/lib/data-source/collection-record/isNewRecord.js +44 -0
- package/lib/data-source/collection-template/CollectionTemplate.js +68 -0
- package/lib/data-source/collection-template/CollectionTemplateManager.js +88 -0
- package/lib/data-source/collection-template/index.js +74 -0
- package/lib/data-source/commonsSettingsItem/fieldComponent.js +105 -0
- package/lib/data-source/commonsSettingsItem/index.js +65 -0
- package/lib/data-source/components/CollectionDeletedPlaceholder.js +115 -0
- package/lib/data-source/components/DataSourceApplicationProvider.js +49 -0
- package/lib/data-source/components/index.js +74 -0
- package/lib/data-source/data-block/DataBlockProvider.js +117 -0
- package/lib/data-source/data-block/DataBlockRequestProvider.js +160 -0
- package/lib/data-source/data-block/DataBlockResourceProvider.js +90 -0
- package/lib/data-source/data-block/context/ConfigSetting.provider.js +46 -0
- package/lib/data-source/data-block/index.js +92 -0
- package/lib/data-source/data-source/DataSource.js +107 -0
- package/lib/data-source/data-source/DataSourceManager.js +158 -0
- package/lib/data-source/data-source/DataSourceManagerProvider.js +52 -0
- package/lib/data-source/data-source/DataSourceProvider.js +105 -0
- package/lib/data-source/data-source/index.js +92 -0
- package/lib/data-source/index.js +146 -0
- package/lib/data-source/utils.js +52 -0
- package/lib/env.d.js +6 -0
- package/lib/filter-provider/FilterProvider.js +177 -0
- package/lib/filter-provider/__tests__/transformToFilter.js +72 -0
- package/lib/filter-provider/__tests__/useFilter.js +48 -0
- package/lib/filter-provider/__tests__/utiles.test.js +272 -0
- package/lib/filter-provider/index.js +74 -0
- package/lib/filter-provider/utils.js +238 -0
- package/lib/flag-provider/FlagProvider.js +57 -0
- package/lib/flag-provider/__tests__/flag-provider.test.js +26 -0
- package/lib/flag-provider/hooks/useFlag.js +38 -0
- package/lib/flag-provider/index.js +74 -0
- package/lib/global.css +34 -0
- package/lib/hooks/index.js +74 -0
- package/lib/hooks/useAdminSchemaUid.js +38 -0
- package/lib/hooks/useMenuItem.js +122 -0
- package/lib/hooks/useViewport.js +69 -0
- package/lib/i18n/i18n.js +73 -0
- package/lib/i18n/index.js +65 -0
- package/lib/icon/Icon.js +109 -0
- package/lib/icon/__tests__/icon.test.js +63 -0
- package/lib/icon/demos/antd-icon.js +41 -0
- package/lib/icon/demos/custom-icon.js +50 -0
- package/lib/icon/demos/iconfont.js +44 -0
- package/lib/icon/demos/register-icon.js +57 -0
- package/lib/icon/index.js +65 -0
- package/lib/icon/preloaded.js +163 -0
- package/lib/index.js +676 -0
- package/lib/modules/actions/ActionSchemaToolbar.js +44 -0
- package/lib/modules/actions/add-child/CreateChildInitializer.js +98 -0
- package/lib/modules/actions/add-child/addChildActionSettings.js +98 -0
- package/lib/modules/actions/add-new/CreateActionInitializer.js +101 -0
- package/lib/modules/actions/add-new/addNewActionSettings.js +91 -0
- package/lib/modules/actions/add-new/createFormBlockInitializers.js +90 -0
- package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.js +97 -0
- package/lib/modules/actions/add-record/customizeAddRecordActionSettings.js +69 -0
- package/lib/modules/actions/add-record/customizeCreateFormBlockInitializers.js +70 -0
- package/lib/modules/actions/bulk-destroy/BulkDestroyActionInitializer.js +69 -0
- package/lib/modules/actions/bulk-destroy/bulkDeleteActionSettings.js +64 -0
- package/lib/modules/actions/delete/DestroyActionInitializer.js +62 -0
- package/lib/modules/actions/delete/deleteActionSettings.js +73 -0
- package/lib/modules/actions/disassociate/DisassociateActionInitializer.js +62 -0
- package/lib/modules/actions/disassociate/__e2e__/disassociate.test.js +46 -0
- package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +419 -0
- package/lib/modules/actions/disassociate/disassociateActionSettings.js +73 -0
- package/lib/modules/actions/expand-collapse/ExpandableActionInitializer.js +60 -0
- package/lib/modules/actions/expand-collapse/expendableActionSettings.js +152 -0
- package/lib/modules/actions/filter/FilterActionInitializer.js +56 -0
- package/lib/modules/actions/filter/filterActionSettings.js +117 -0
- package/lib/modules/actions/link/customizeLinkActionSettings.js +156 -0
- package/lib/modules/actions/link/hooks.js +233 -0
- package/lib/modules/actions/refresh/RefreshActionInitializer.js +55 -0
- package/lib/modules/actions/refresh/refreshActionSettings.js +64 -0
- package/lib/modules/actions/save-record/SaveRecordActionInitializer.js +68 -0
- package/lib/modules/actions/save-record/customizeSaveRecordActionSettings.js +86 -0
- package/lib/modules/actions/submit/CreateSubmitActionInitializer.js +61 -0
- package/lib/modules/actions/submit/UpdateSubmitActionInitializer.js +65 -0
- package/lib/modules/actions/submit/createSubmitActionSettings.js +245 -0
- package/lib/modules/actions/submit/updateSubmitActionSettings.js +124 -0
- package/lib/modules/actions/update-record/UpdateRecordActionInitializer.js +66 -0
- package/lib/modules/actions/update-record/customizeUpdateRecordActionSettings.js +96 -0
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +93 -0
- package/lib/modules/actions/view-edit-popup/RecordFormBlockInitializers.js +69 -0
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +91 -0
- package/lib/modules/actions/view-edit-popup/ViewActionInitializer.js +90 -0
- package/lib/modules/actions/view-edit-popup/customizePopupActionSettings.js +83 -0
- package/lib/modules/actions/view-edit-popup/editActionSettings.js +78 -0
- package/lib/modules/actions/view-edit-popup/viewActionSettings.js +83 -0
- package/lib/modules/blocks/BlockSchemaToolbar.js +90 -0
- package/lib/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.js +74 -0
- package/lib/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.js +84 -0
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.js +119 -0
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.js +79 -0
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +21 -0
- package/lib/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.js +92 -0
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +251 -0
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.js +43 -0
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.js +39 -0
- package/lib/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.js +123 -0
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.js +119 -0
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.js +120 -0
- package/lib/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.js +108 -0
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.js +105 -0
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.js +31 -0
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +21 -0
- package/lib/modules/blocks/data-blocks/details-single/createDetailsUISchema.js +88 -0
- package/lib/modules/blocks/data-blocks/details-single/detailsBlockSettings.js +84 -0
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.js +56 -0
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.js +39 -0
- package/lib/modules/blocks/data-blocks/form/CreateFormBlockInitializer.js +82 -0
- package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.js +327 -0
- package/lib/modules/blocks/data-blocks/form/FormBlockInitializer.js +114 -0
- package/lib/modules/blocks/data-blocks/form/FormItemSchemaToolbar.js +43 -0
- package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.js +119 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.js +21 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.js +33 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.js +175 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.js +35 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.js +148 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1261 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +6047 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.js +23 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.js +219 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +26 -0
- package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +25 -0
- package/lib/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.js +85 -0
- package/lib/modules/blocks/data-blocks/form/createEditFormBlockUISchema.js +88 -0
- package/lib/modules/blocks/data-blocks/form/createFormActionInitializers.js +79 -0
- package/lib/modules/blocks/data-blocks/form/createFormBlockSettings.js +173 -0
- package/lib/modules/blocks/data-blocks/form/editFormBlockSettings.js +106 -0
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +573 -0
- package/lib/modules/blocks/data-blocks/form/formActionInitializers.js +79 -0
- package/lib/modules/blocks/data-blocks/form/formItemInitializers.js +73 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.js +43 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.js +39 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.js +49 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.js +39 -0
- package/lib/modules/blocks/data-blocks/form/index.js +182 -0
- package/lib/modules/blocks/data-blocks/form/updateFormActionInitializers.js +90 -0
- package/lib/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.js +119 -0
- package/lib/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.js +78 -0
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.js +227 -0
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.js +55 -0
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.js +33 -0
- package/lib/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.js +109 -0
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +479 -0
- package/lib/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.js +134 -0
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.js +46 -0
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.js +51 -0
- package/lib/modules/blocks/data-blocks/grid-card/utils.js +50 -0
- package/lib/modules/blocks/data-blocks/list/ListActionInitializers.js +115 -0
- package/lib/modules/blocks/data-blocks/list/ListBlockInitializer.js +78 -0
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.js +218 -0
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.js +30 -0
- package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.js +31 -0
- package/lib/modules/blocks/data-blocks/list/createListBlockUISchema.js +104 -0
- package/lib/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.js +43 -0
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +297 -0
- package/lib/modules/blocks/data-blocks/list/listItemActionInitializers.js +134 -0
- package/lib/modules/blocks/data-blocks/table/TableActionColumnInitializers.js +288 -0
- package/lib/modules/blocks/data-blocks/table/TableActionInitializers.js +165 -0
- package/lib/modules/blocks/data-blocks/table/TableBlockInitializer.js +78 -0
- package/lib/modules/blocks/data-blocks/table/TableColumnInitializers.js +139 -0
- package/lib/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.js +63 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.js +16 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.js +40 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.js +26 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.js +38 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.js +426 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.js +876 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +979 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.js +49 -0
- package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +23 -0
- package/lib/modules/blocks/data-blocks/table/createTableBlockUISchema.js +116 -0
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.js +70 -0
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +185 -0
- package/lib/modules/blocks/data-blocks/table/index.js +137 -0
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +450 -0
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +367 -0
- package/lib/modules/blocks/data-blocks/table/utils.js +51 -0
- package/lib/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.js +58 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.js +166 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.js +153 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +728 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.js +46 -0
- package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +21 -0
- package/lib/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.js +81 -0
- package/lib/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.js +38 -0
- package/lib/modules/blocks/data-blocks/table-selector/index.js +74 -0
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +344 -0
- package/lib/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.js +42 -0
- package/lib/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.js +63 -0
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.js +66 -0
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.js +69 -0
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +47 -0
- package/lib/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.js +65 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.js +92 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +261 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.js +188 -0
- package/lib/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.js +38 -0
- package/lib/modules/blocks/filter-blocks/form/FilterFormActionInitializers.js +66 -0
- package/lib/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.js +71 -0
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.js +122 -0
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.js +105 -0
- package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +30 -0
- package/lib/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.js +80 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormBlockSettings.js +100 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +403 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormItemInitializers.js +75 -0
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.js +38 -0
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.js +39 -0
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.js +66 -0
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.js +108 -0
- package/lib/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.js +100 -0
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +403 -0
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.js +75 -0
- package/lib/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.js +64 -0
- package/lib/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.js +60 -0
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.js +17 -0
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.js +40 -0
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/other-blocks/markdown/markdownBlockSettings.js +73 -0
- package/lib/modules/blocks/useParentRecordCommon.js +41 -0
- package/lib/modules/blocks/useSourceId.js +46 -0
- package/lib/modules/blocks/useSourceKey.js +40 -0
- package/lib/modules/dialog/__e2e__/schemaInitializer.test.js +395 -0
- package/lib/modules/dialog/__e2e__/schemaSettings.test.js +66 -0
- package/lib/modules/dialog/__e2e__/templatesOfBug.js +2161 -0
- package/lib/modules/dialog/__e2e__/zIndex.test.js +42 -0
- package/lib/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.js +125 -0
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +430 -0
- package/lib/modules/fields/component/Checkbox/checkboxComponentFieldSettings.js +87 -0
- package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.js +109 -0
- package/lib/modules/fields/component/DatePicker/__e2e__/utils.js +358 -0
- package/lib/modules/fields/component/DatePicker/datePickerComponentFieldSettings.js +56 -0
- package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.js +183 -0
- package/lib/modules/fields/component/FileManager/fileManagerComponentFieldSettings.js +224 -0
- package/lib/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.js +136 -0
- package/lib/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.js +61 -0
- package/lib/modules/fields/component/Nester/subformComponentFieldSettings.js +159 -0
- package/lib/modules/fields/component/Picker/TableSelectorInitializers.js +120 -0
- package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.js +225 -0
- package/lib/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.js +133 -0
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +87 -0
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +427 -0
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +443 -0
- package/lib/modules/fields/component/Tag/tagComponentFieldSettings.js +206 -0
- package/lib/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.js +56 -0
- package/lib/modules/fields/initializer/CollectionFieldInitializer.js +49 -0
- package/lib/modules/fields/initializer/TableCollectionFieldInitializer.js +49 -0
- package/lib/modules/menu/GroupItem.js +112 -0
- package/lib/modules/menu/LinkMenuItem.js +118 -0
- package/lib/modules/menu/PageMenuItem.js +127 -0
- package/lib/modules/menu/__e2e__/dragAndDrop.test.js +34 -0
- package/lib/modules/menu/__e2e__/schemaInitializer.test.js +108 -0
- package/lib/modules/menu/__e2e__/schemaSettings.test.js +354 -0
- package/lib/modules/menu/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/menu/menuItemInitializer.js +83 -0
- package/lib/modules/page/BlockInitializers.js +111 -0
- package/lib/modules/page/__e2e__/blockInitializers.test.js +24 -0
- package/lib/modules/page/__e2e__/dragAndDrop.test.js +23 -0
- package/lib/modules/page/__e2e__/schemaInitailizer.test.js +22 -0
- package/lib/modules/page/__e2e__/schemaSettings.test.js +141 -0
- package/lib/modules/page/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/plugin-manager/__e2e__/pluginManager.test.js +120 -0
- package/lib/modules/plugin-manager/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/user-center/__e2e__/settings.test.js +19 -0
- package/lib/modules/variable/DeclareVariable.js +51 -0
- package/lib/modules/variable/useVariable.js +46 -0
- package/lib/powered-by/index.js +77 -0
- package/lib/record-provider/index.js +92 -0
- package/lib/route-switch/RouteSchemaComponent.js +46 -0
- package/lib/route-switch/index.js +65 -0
- package/lib/schema-component/antd/AntdSchemaComponentProvider.js +73 -0
- package/lib/schema-component/antd/__builtins__/hooks/index.js +83 -0
- package/lib/schema-component/antd/__builtins__/hooks/useConfig.js +39 -0
- package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.js +46 -0
- package/lib/schema-component/antd/__builtins__/hooks/useToken.js +40 -0
- package/lib/schema-component/antd/__builtins__/index.js +92 -0
- package/lib/schema-component/antd/__builtins__/loading.js +49 -0
- package/lib/schema-component/antd/__builtins__/portal.js +86 -0
- package/lib/schema-component/antd/__builtins__/render.js +82 -0
- package/lib/schema-component/antd/__builtins__/style.js +100 -0
- package/lib/schema-component/antd/action/Action.Area.js +155 -0
- package/lib/schema-component/antd/action/Action.Area.style.js +74 -0
- package/lib/schema-component/antd/action/Action.Container.js +77 -0
- package/lib/schema-component/antd/action/Action.Designer.js +957 -0
- package/lib/schema-component/antd/action/Action.Drawer.js +186 -0
- package/lib/schema-component/antd/action/Action.Drawer.style.js +80 -0
- package/lib/schema-component/antd/action/Action.Link.js +63 -0
- package/lib/schema-component/antd/action/Action.Modal.js +222 -0
- package/lib/schema-component/antd/action/Action.Page.js +118 -0
- package/lib/schema-component/antd/action/Action.Popover.js +6 -0
- package/lib/schema-component/antd/action/Action.Sheet.js +130 -0
- package/lib/schema-component/antd/action/Action.js +280 -0
- package/lib/schema-component/antd/action/Action.style.js +81 -0
- package/lib/schema-component/antd/action/ActionBar.js +179 -0
- package/lib/schema-component/antd/action/__tests__/action.test.js +154 -0
- package/lib/schema-component/antd/action/context.js +52 -0
- package/lib/schema-component/antd/action/demos/demo1.js +104 -0
- package/lib/schema-component/antd/action/demos/demo2.js +109 -0
- package/lib/schema-component/antd/action/demos/demo3.js +175 -0
- package/lib/schema-component/antd/action/demos/demo4.js +92 -0
- package/lib/schema-component/antd/action/demos/demo5.js +245 -0
- package/lib/schema-component/antd/action/demos/demo6.js +129 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfAction.js +71 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.js +59 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfModal.js +59 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.js +59 -0
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.js +64 -0
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForModal.js +64 -0
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForPopover.js +56 -0
- package/lib/schema-component/antd/action/hooks.js +97 -0
- package/lib/schema-component/antd/action/index.js +146 -0
- package/lib/schema-component/antd/action/types.js +19 -0
- package/lib/schema-component/antd/action/utils.js +249 -0
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelect.js +250 -0
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.js +249 -0
- package/lib/schema-component/antd/appends-tree-select/index.js +74 -0
- package/lib/schema-component/antd/association-cascader/AssociationCascader.js +171 -0
- package/lib/schema-component/antd/association-cascader/index.js +65 -0
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +159 -0
- package/lib/schema-component/antd/association-field/AssociationSelect.js +222 -0
- package/lib/schema-component/antd/association-field/Editable.js +151 -0
- package/lib/schema-component/antd/association-field/FileManager.js +250 -0
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +444 -0
- package/lib/schema-component/antd/association-field/InternalCascader.js +415 -0
- package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +133 -0
- package/lib/schema-component/antd/association-field/InternalNester.js +129 -0
- package/lib/schema-component/antd/association-field/InternalPicker.js +277 -0
- package/lib/schema-component/antd/association-field/InternalPopoverNester.js +165 -0
- package/lib/schema-component/antd/association-field/InternalSubTable.js +140 -0
- package/lib/schema-component/antd/association-field/InternalTag.js +170 -0
- package/lib/schema-component/antd/association-field/InternalViewer.js +185 -0
- package/lib/schema-component/antd/association-field/Nester.js +295 -0
- package/lib/schema-component/antd/association-field/ReadPretty.js +81 -0
- package/lib/schema-component/antd/association-field/SubTable.js +312 -0
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +371 -0
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +101 -0
- package/lib/schema-component/antd/association-field/SubTabs/index.js +65 -0
- package/lib/schema-component/antd/association-field/SubTabs/styles.js +59 -0
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +103 -0
- package/lib/schema-component/antd/association-field/context.js +38 -0
- package/lib/schema-component/antd/association-field/hooks.js +204 -0
- package/lib/schema-component/antd/association-field/index.js +109 -0
- package/lib/schema-component/antd/association-field/schema.js +167 -0
- package/lib/schema-component/antd/association-field/util.js +158 -0
- package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +88 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +74 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.js +89 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +182 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +180 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.style.js +135 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.js +125 -0
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +65 -0
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +57 -0
- package/lib/schema-component/antd/association-filter/utilts.js +38 -0
- package/lib/schema-component/antd/association-select/AssociationSelect.js +915 -0
- package/lib/schema-component/antd/association-select/ReadPretty.js +65 -0
- package/lib/schema-component/antd/association-select/__tests__/association-select.test.js +51 -0
- package/lib/schema-component/antd/association-select/demos/demo1.js +89 -0
- package/lib/schema-component/antd/association-select/index.js +65 -0
- package/lib/schema-component/antd/association-select/useServiceOptions.js +116 -0
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +92 -0
- package/lib/schema-component/antd/auto-complete/index.js +65 -0
- package/lib/schema-component/antd/block-item/BlockItem.js +97 -0
- package/lib/schema-component/antd/block-item/BlockToolbar.js +125 -0
- package/lib/schema-component/antd/block-item/__tests__/block-item.test.js +49 -0
- package/lib/schema-component/antd/block-item/demos/demo1.js +94 -0
- package/lib/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.js +87 -0
- package/lib/schema-component/antd/block-item/index.js +65 -0
- package/lib/schema-component/antd/block-item/useBlockToolbar.js +132 -0
- package/lib/schema-component/antd/card-item/CardItem.js +73 -0
- package/lib/schema-component/antd/card-item/__tests__/card-item.test.js +46 -0
- package/lib/schema-component/antd/card-item/demos/demo1.js +65 -0
- package/lib/schema-component/antd/card-item/index.js +65 -0
- package/lib/schema-component/antd/card-item/style.js +59 -0
- package/lib/schema-component/antd/cascader/Cascader.js +108 -0
- package/lib/schema-component/antd/cascader/ReadPretty.js +64 -0
- package/lib/schema-component/antd/cascader/__tests__/cascader.test.js +65 -0
- package/lib/schema-component/antd/cascader/defaultFieldNames.js +42 -0
- package/lib/schema-component/antd/cascader/demos/demo1.js +116 -0
- package/lib/schema-component/antd/cascader/demos/demo2.js +163 -0
- package/lib/schema-component/antd/cascader/index.js +65 -0
- package/lib/schema-component/antd/checkbox/Checkbox.js +134 -0
- package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.js +76 -0
- package/lib/schema-component/antd/checkbox/demos/checkbox.group.js +88 -0
- package/lib/schema-component/antd/checkbox/demos/checkbox.js +74 -0
- package/lib/schema-component/antd/checkbox/index.js +65 -0
- package/lib/schema-component/antd/collection-select/CollectionSelect.js +182 -0
- package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.js +51 -0
- package/lib/schema-component/antd/collection-select/demos/demo1.js +70 -0
- package/lib/schema-component/antd/collection-select/index.js +65 -0
- package/lib/schema-component/antd/color-picker/ColorPicker.js +135 -0
- package/lib/schema-component/antd/color-picker/ReadPretty.js +67 -0
- package/lib/schema-component/antd/color-picker/demos/demo1.js +83 -0
- package/lib/schema-component/antd/color-picker/index.js +65 -0
- package/lib/schema-component/antd/color-picker/util.js +195 -0
- package/lib/schema-component/antd/color-select/ColorSelect.js +83 -0
- package/lib/schema-component/antd/color-select/__tests__/color-select.test.js +51 -0
- package/lib/schema-component/antd/color-select/demos/demo1.js +74 -0
- package/lib/schema-component/antd/color-select/index.js +65 -0
- package/lib/schema-component/antd/cron/Cron.js +117 -0
- package/lib/schema-component/antd/cron/CronSet.js +154 -0
- package/lib/schema-component/antd/cron/__tests__/cron-set.test.js +66 -0
- package/lib/schema-component/antd/cron/demos/demo1.js +66 -0
- package/lib/schema-component/antd/cron/demos/demo2.js +85 -0
- package/lib/schema-component/antd/cron/index.js +74 -0
- package/lib/schema-component/antd/custom-cascader/CustomCascader.js +69 -0
- package/lib/schema-component/antd/custom-cascader/ReadPretty.js +64 -0
- package/lib/schema-component/antd/custom-cascader/defaultFieldNames.js +42 -0
- package/lib/schema-component/antd/custom-cascader/index.js +65 -0
- package/lib/schema-component/antd/date-picker/DatePicker.js +196 -0
- package/lib/schema-component/antd/date-picker/ReadPretty.js +87 -0
- package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.js +222 -0
- package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.js +145 -0
- package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.js +235 -0
- package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.js +94 -0
- package/lib/schema-component/antd/date-picker/__tests__/util.test.js +201 -0
- package/lib/schema-component/antd/date-picker/demos/demo1.js +91 -0
- package/lib/schema-component/antd/date-picker/demos/demo10.js +95 -0
- package/lib/schema-component/antd/date-picker/demos/demo11.js +99 -0
- package/lib/schema-component/antd/date-picker/demos/demo2.js +94 -0
- package/lib/schema-component/antd/date-picker/demos/demo3.js +92 -0
- package/lib/schema-component/antd/date-picker/demos/demo4.js +120 -0
- package/lib/schema-component/antd/date-picker/demos/demo5.js +119 -0
- package/lib/schema-component/antd/date-picker/demos/demo6.js +119 -0
- package/lib/schema-component/antd/date-picker/demos/demo7.js +95 -0
- package/lib/schema-component/antd/date-picker/demos/demo8.js +95 -0
- package/lib/schema-component/antd/date-picker/demos/demo9.js +95 -0
- package/lib/schema-component/antd/date-picker/index.js +65 -0
- package/lib/schema-component/antd/date-picker/util.js +216 -0
- package/lib/schema-component/antd/details/Details.js +66 -0
- package/lib/schema-component/antd/details/__tests__/details.test.js +45 -0
- package/lib/schema-component/antd/details/demos/demo1.js +76 -0
- package/lib/schema-component/antd/details/index.js +65 -0
- package/lib/schema-component/antd/error-fallback/ErrorFallback.js +93 -0
- package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.js +52 -0
- package/lib/schema-component/antd/error-fallback/demos/demo1.js +47 -0
- package/lib/schema-component/antd/error-fallback/index.js +65 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +141 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.js +104 -0
- package/lib/schema-component/antd/expand-action/index.js +40 -0
- package/lib/schema-component/antd/filter/DynamicComponent.js +106 -0
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +157 -0
- package/lib/schema-component/antd/filter/Filter.js +90 -0
- package/lib/schema-component/antd/filter/FilterAction.js +199 -0
- package/lib/schema-component/antd/filter/FilterGroup.js +168 -0
- package/lib/schema-component/antd/filter/FilterItem.js +119 -0
- package/lib/schema-component/antd/filter/FilterItems.js +58 -0
- package/lib/schema-component/antd/filter/SaveDefaultValue.js +70 -0
- package/lib/schema-component/antd/filter/__tests__/filter.test.js +152 -0
- package/lib/schema-component/antd/filter/context.js +44 -0
- package/lib/schema-component/antd/filter/demos/demo2.js +163 -0
- package/lib/schema-component/antd/filter/demos/demo3.js +230 -0
- package/lib/schema-component/antd/filter/demos/demo4.js +218 -0
- package/lib/schema-component/antd/filter/demos/demo5.js +165 -0
- package/lib/schema-component/antd/filter/demos/demo6.js +152 -0
- package/lib/schema-component/antd/filter/index.js +83 -0
- package/lib/schema-component/antd/filter/useFilterActionProps.js +269 -0
- package/lib/schema-component/antd/filter/useOperators.js +57 -0
- package/lib/schema-component/antd/filter/useValues.js +172 -0
- package/lib/schema-component/antd/filter/utils.js +49 -0
- package/lib/schema-component/antd/form/Form.Designer.js +46 -0
- package/lib/schema-component/antd/form/Form.Settings.js +68 -0
- package/lib/schema-component/antd/form/Form.js +182 -0
- package/lib/schema-component/antd/form/__tests__/form.test.js +155 -0
- package/lib/schema-component/antd/form/demos/apiClient.js +65 -0
- package/lib/schema-component/antd/form/demos/demo1.js +107 -0
- package/lib/schema-component/antd/form/demos/demo2.js +107 -0
- package/lib/schema-component/antd/form/demos/demo3.js +106 -0
- package/lib/schema-component/antd/form/demos/demo4.js +114 -0
- package/lib/schema-component/antd/form/demos/demo5.js +148 -0
- package/lib/schema-component/antd/form/demos/demo6.js +105 -0
- package/lib/schema-component/antd/form/demos/demo7.js +109 -0
- package/lib/schema-component/antd/form/demos/demo8.js +120 -0
- package/lib/schema-component/antd/form/index.js +74 -0
- package/lib/schema-component/antd/form-dialog/index.js +203 -0
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +41 -0
- package/lib/schema-component/antd/form-item/FormItem.FilterFormSettings.js +176 -0
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +1261 -0
- package/lib/schema-component/antd/form-item/FormItem.js +185 -0
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +621 -0
- package/lib/schema-component/antd/form-item/__tests__/form-item.test.js +47 -0
- package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.js +34 -0
- package/lib/schema-component/antd/form-item/__tests__/utils.test.js +72 -0
- package/lib/schema-component/antd/form-item/demos/demo1.js +71 -0
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +117 -0
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +132 -0
- package/lib/schema-component/antd/form-item/hooks/useSpecialCase.js +159 -0
- package/lib/schema-component/antd/form-item/index.js +92 -0
- package/lib/schema-component/antd/form-item/utils.js +56 -0
- package/lib/schema-component/antd/form-tab/index.js +189 -0
- package/lib/schema-component/antd/form-v2/Form.Designer.js +69 -0
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.js +49 -0
- package/lib/schema-component/antd/form-v2/Form.Settings.js +351 -0
- package/lib/schema-component/antd/form-v2/Form.js +364 -0
- package/lib/schema-component/antd/form-v2/FormField.js +64 -0
- package/lib/schema-component/antd/form-v2/Templates.js +240 -0
- package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.js +84 -0
- package/lib/schema-component/antd/form-v2/demos/collections.js +1601 -0
- package/lib/schema-component/antd/form-v2/demos/demo1.js +156 -0
- package/lib/schema-component/antd/form-v2/demos/demo2.js +179 -0
- package/lib/schema-component/antd/form-v2/demos/demo3.js +165 -0
- package/lib/schema-component/antd/form-v2/index.js +115 -0
- package/lib/schema-component/antd/form-v2/utils.js +192 -0
- package/lib/schema-component/antd/grid/Block.js +58 -0
- package/lib/schema-component/antd/grid/Grid.js +533 -0
- package/lib/schema-component/antd/grid/Grid.style.js +79 -0
- package/lib/schema-component/antd/grid/__tests__/grid.test.js +63 -0
- package/lib/schema-component/antd/grid/demos/demo1.js +228 -0
- package/lib/schema-component/antd/grid/demos/demo2.js +131 -0
- package/lib/schema-component/antd/grid/demos/demo3.js +118 -0
- package/lib/schema-component/antd/grid/index.js +74 -0
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +118 -0
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.style.js +58 -0
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +300 -0
- package/lib/schema-component/antd/grid-card/GridCard.Item.js +111 -0
- package/lib/schema-component/antd/grid-card/GridCard.js +204 -0
- package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.js +44 -0
- package/lib/schema-component/antd/grid-card/demos/demo1.js +40 -0
- package/lib/schema-component/antd/grid-card/hooks.js +74 -0
- package/lib/schema-component/antd/grid-card/index.js +65 -0
- package/lib/schema-component/antd/grid-card/options.js +83 -0
- package/lib/schema-component/antd/icon-picker/IconFilterInput.js +65 -0
- package/lib/schema-component/antd/icon-picker/IconList.js +84 -0
- package/lib/schema-component/antd/icon-picker/IconPicker.js +109 -0
- package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.js +60 -0
- package/lib/schema-component/antd/icon-picker/demos/icon-picker.js +74 -0
- package/lib/schema-component/antd/icon-picker/index.js +65 -0
- package/lib/schema-component/antd/index.css +30 -0
- package/lib/schema-component/antd/index.js +881 -0
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +98 -0
- package/lib/schema-component/antd/input/Input.js +62 -0
- package/lib/schema-component/antd/input/Json.js +108 -0
- package/lib/schema-component/antd/input/ReadPretty.js +201 -0
- package/lib/schema-component/antd/input/__tests__/Input.test.js +153 -0
- package/lib/schema-component/antd/input/demos/input.js +74 -0
- package/lib/schema-component/antd/input/demos/json.js +80 -0
- package/lib/schema-component/antd/input/demos/textarea.js +102 -0
- package/lib/schema-component/antd/input/demos/url.js +76 -0
- package/lib/schema-component/antd/input/index.js +101 -0
- package/lib/schema-component/antd/input/shared.js +44 -0
- package/lib/schema-component/antd/input-number/InputNumber.js +54 -0
- package/lib/schema-component/antd/input-number/ReadPretty.js +153 -0
- package/lib/schema-component/antd/input-number/__tests__/input-number.test.js +153 -0
- package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.js +82 -0
- package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.js +84 -0
- package/lib/schema-component/antd/input-number/demos/inputNumber.js +74 -0
- package/lib/schema-component/antd/input-number/index.js +65 -0
- package/lib/schema-component/antd/list/List.Decorator.js +145 -0
- package/lib/schema-component/antd/list/List.Designer.js +254 -0
- package/lib/schema-component/antd/list/List.Item.js +101 -0
- package/lib/schema-component/antd/list/List.js +129 -0
- package/lib/schema-component/antd/list/List.style.js +89 -0
- package/lib/schema-component/antd/list/__tests__/list.test.js +44 -0
- package/lib/schema-component/antd/list/demos/demo1.js +40 -0
- package/lib/schema-component/antd/list/hooks.js +47 -0
- package/lib/schema-component/antd/list/index.js +65 -0
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +61 -0
- package/lib/schema-component/antd/markdown/Markdown.Void.js +158 -0
- package/lib/schema-component/antd/markdown/Markdown.js +82 -0
- package/lib/schema-component/antd/markdown/__tests__/markdown.test.js +63 -0
- package/lib/schema-component/antd/markdown/demos/demo1.js +74 -0
- package/lib/schema-component/antd/markdown/demos/demo2.js +85 -0
- package/lib/schema-component/antd/markdown/index.js +65 -0
- package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.js +99 -0
- package/lib/schema-component/antd/markdown/md.js +63 -0
- package/lib/schema-component/antd/markdown/style.js +254 -0
- package/lib/schema-component/antd/markdown/util.js +88 -0
- package/lib/schema-component/antd/menu/Menu.Designer.js +469 -0
- package/lib/schema-component/antd/menu/Menu.js +625 -0
- package/lib/schema-component/antd/menu/Menu.styles.js +111 -0
- package/lib/schema-component/antd/menu/MenuItemInitializers/index.js +45 -0
- package/lib/schema-component/antd/menu/__tests__/menu.test.js +75 -0
- package/lib/schema-component/antd/menu/demos/demo1.js +127 -0
- package/lib/schema-component/antd/menu/demos/demo2.js +130 -0
- package/lib/schema-component/antd/menu/demos/demo3.js +169 -0
- package/lib/schema-component/antd/menu/index.js +83 -0
- package/lib/schema-component/antd/menu/locale.js +37 -0
- package/lib/schema-component/antd/menu/util.js +70 -0
- package/lib/schema-component/antd/nanoIDInput/NanoIDInput.js +67 -0
- package/lib/schema-component/antd/nanoIDInput/index.js +65 -0
- package/lib/schema-component/antd/page/FixedBlock.js +147 -0
- package/lib/schema-component/antd/page/FixedBlockDesignerItem.js +74 -0
- package/lib/schema-component/antd/page/Page.Settings.js +181 -0
- package/lib/schema-component/antd/page/Page.js +269 -0
- package/lib/schema-component/antd/page/PageTab.Settings.js +122 -0
- package/lib/schema-component/antd/page/PageTabDesigner.js +99 -0
- package/lib/schema-component/antd/page/__tests__/page.test.js +53 -0
- package/lib/schema-component/antd/page/demos/demo1.js +72 -0
- package/lib/schema-component/antd/page/hooks/useIsBlockInPage.js +46 -0
- package/lib/schema-component/antd/page/index.js +101 -0
- package/lib/schema-component/antd/page/style.js +177 -0
- package/lib/schema-component/antd/pagination/index.js +56 -0
- package/lib/schema-component/antd/password/Password.js +115 -0
- package/lib/schema-component/antd/password/PasswordStrength.js +45 -0
- package/lib/schema-component/antd/password/__tests__/password.test.js +64 -0
- package/lib/schema-component/antd/password/__tests__/utils.test.js +28 -0
- package/lib/schema-component/antd/password/demos/demo1.js +74 -0
- package/lib/schema-component/antd/password/demos/demo2.js +77 -0
- package/lib/schema-component/antd/password/index.js +65 -0
- package/lib/schema-component/antd/password/utils.js +140 -0
- package/lib/schema-component/antd/percent/Percent.js +68 -0
- package/lib/schema-component/antd/percent/__tests__/percent.test.js +51 -0
- package/lib/schema-component/antd/percent/demos/percent.js +74 -0
- package/lib/schema-component/antd/percent/index.js +65 -0
- package/lib/schema-component/antd/popover/Popover.js +73 -0
- package/lib/schema-component/antd/popover/index.js +65 -0
- package/lib/schema-component/antd/preview/Preview.js +323 -0
- package/lib/schema-component/antd/preview/__tests__/preview.test.js +46 -0
- package/lib/schema-component/antd/preview/demos/demo1.js +129 -0
- package/lib/schema-component/antd/preview/index.js +65 -0
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +164 -0
- package/lib/schema-component/antd/quick-edit/index.js +65 -0
- package/lib/schema-component/antd/radio/Radio.js +75 -0
- package/lib/schema-component/antd/radio/__tests__/radio.test.js +80 -0
- package/lib/schema-component/antd/radio/demos/demo1.js +74 -0
- package/lib/schema-component/antd/radio/demos/demo2.js +86 -0
- package/lib/schema-component/antd/radio/demos/demo3.js +88 -0
- package/lib/schema-component/antd/radio/index.js +65 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +289 -0
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +154 -0
- package/lib/schema-component/antd/record-picker/RecordPicker.js +39 -0
- package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.js +62 -0
- package/lib/schema-component/antd/record-picker/demos/demo1.js +223 -0
- package/lib/schema-component/antd/record-picker/demos/mockData.js +247 -0
- package/lib/schema-component/antd/record-picker/index.js +120 -0
- package/lib/schema-component/antd/record-picker/useFieldNames.js +46 -0
- package/lib/schema-component/antd/record-picker/util.js +87 -0
- package/lib/schema-component/antd/remote-select/ReadPretty.js +78 -0
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +273 -0
- package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.js +51 -0
- package/lib/schema-component/antd/remote-select/demos/demo1.js +89 -0
- package/lib/schema-component/antd/remote-select/index.js +65 -0
- package/lib/schema-component/antd/remote-select/shared.js +37 -0
- package/lib/schema-component/antd/rich-text/RichText.js +107 -0
- package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.js +48 -0
- package/lib/schema-component/antd/rich-text/demos/demo1.js +75 -0
- package/lib/schema-component/antd/rich-text/index.js +65 -0
- package/lib/schema-component/antd/rich-text/style.js +847 -0
- package/lib/schema-component/antd/rich-text/style.js.LICENSE.txt +6 -0
- package/lib/schema-component/antd/scroll-area/ScrollArea.js +78 -0
- package/lib/schema-component/antd/scroll-area/index.js +65 -0
- package/lib/schema-component/antd/select/FormulaSelect.js +230 -0
- package/lib/schema-component/antd/select/ReadPretty.js +67 -0
- package/lib/schema-component/antd/select/Select.js +204 -0
- package/lib/schema-component/antd/select/__tests__/select.test.js +78 -0
- package/lib/schema-component/antd/select/__tests__/utils.test.js +136 -0
- package/lib/schema-component/antd/select/demos/demo1.js +106 -0
- package/lib/schema-component/antd/select/demos/demo2.js +110 -0
- package/lib/schema-component/antd/select/demos/demo3.js +118 -0
- package/lib/schema-component/antd/select/index.js +74 -0
- package/lib/schema-component/antd/select/utils.js +73 -0
- package/lib/schema-component/antd/space/index.js +68 -0
- package/lib/schema-component/antd/table/Table.Array.Designer.js +46 -0
- package/lib/schema-component/antd/table/Table.Array.js +342 -0
- package/lib/schema-component/antd/table/Table.Column.ActionBar.js +77 -0
- package/lib/schema-component/antd/table/Table.Column.Decorator.js +84 -0
- package/lib/schema-component/antd/table/Table.Column.Designer.js +192 -0
- package/lib/schema-component/antd/table/Table.Column.js +44 -0
- package/lib/schema-component/antd/table/Table.Designer.js +51 -0
- package/lib/schema-component/antd/table/Table.RowActionDesigner.js +67 -0
- package/lib/schema-component/antd/table/Table.RowSelection.js +63 -0
- package/lib/schema-component/antd/table/Table.Void.Designer.js +275 -0
- package/lib/schema-component/antd/table/Table.Void.js +153 -0
- package/lib/schema-component/antd/table/__tests__/table.test.js +59 -0
- package/lib/schema-component/antd/table/demos/demo1.js +97 -0
- package/lib/schema-component/antd/table/demos/demo2.js +97 -0
- package/lib/schema-component/antd/table/demos/demo3.js +97 -0
- package/lib/schema-component/antd/table/demos/demo4.js +251 -0
- package/lib/schema-component/antd/table/index.js +58 -0
- package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +67 -0
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +84 -0
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +95 -0
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +495 -0
- package/lib/schema-component/antd/table-v2/Table.Column.js +45 -0
- package/lib/schema-component/antd/table-v2/Table.Designer.js +51 -0
- package/lib/schema-component/antd/table-v2/Table.Index.js +44 -0
- package/lib/schema-component/antd/table-v2/Table.js +495 -0
- package/lib/schema-component/antd/table-v2/Table.styles.js +169 -0
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +363 -0
- package/lib/schema-component/antd/table-v2/TableField.js +85 -0
- package/lib/schema-component/antd/table-v2/TableSelector.js +37 -0
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +320 -0
- package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.js +49 -0
- package/lib/schema-component/antd/table-v2/components/ColumnFieldProvider.js +73 -0
- package/lib/schema-component/antd/table-v2/demos/collections.js +1596 -0
- package/lib/schema-component/antd/table-v2/demos/demo1.js +268 -0
- package/lib/schema-component/antd/table-v2/demos/demo2.js +151 -0
- package/lib/schema-component/antd/table-v2/index.js +143 -0
- package/lib/schema-component/antd/table-v2/utils.js +55 -0
- package/lib/schema-component/antd/tabs/Tabs.Designer.js +166 -0
- package/lib/schema-component/antd/tabs/Tabs.js +147 -0
- package/lib/schema-component/antd/tabs/__tests__/tabs.test.js +49 -0
- package/lib/schema-component/antd/tabs/context.js +61 -0
- package/lib/schema-component/antd/tabs/demos/demo1.js +101 -0
- package/lib/schema-component/antd/tabs/index.js +74 -0
- package/lib/schema-component/antd/time-picker/ReadPretty.js +70 -0
- package/lib/schema-component/antd/time-picker/TimePicker.js +57 -0
- package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.js +81 -0
- package/lib/schema-component/antd/time-picker/demos/demo1.js +74 -0
- package/lib/schema-component/antd/time-picker/demos/demo2.js +74 -0
- package/lib/schema-component/antd/time-picker/index.js +65 -0
- package/lib/schema-component/antd/tree/Tree.js +116 -0
- package/lib/schema-component/antd/tree/index.js +36 -0
- package/lib/schema-component/antd/tree-select/ReadPretty.js +110 -0
- package/lib/schema-component/antd/tree-select/TreeSelect.js +49 -0
- package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.js +49 -0
- package/lib/schema-component/antd/tree-select/demos/demo1.js +118 -0
- package/lib/schema-component/antd/tree-select/index.js +65 -0
- package/lib/schema-component/antd/unixTimestamp/UnixTimestamp.js +90 -0
- package/lib/schema-component/antd/unixTimestamp/index.js +65 -0
- package/lib/schema-component/antd/upload/ReadPretty.js +249 -0
- package/lib/schema-component/antd/upload/Upload.js +380 -0
- package/lib/schema-component/antd/upload/__tests__/upload.test.js +49 -0
- package/lib/schema-component/antd/upload/demos/apiClient.js +77 -0
- package/lib/schema-component/antd/upload/demos/demo1.js +96 -0
- package/lib/schema-component/antd/upload/demos/demo2.js +163 -0
- package/lib/schema-component/antd/upload/index.js +65 -0
- package/lib/schema-component/antd/upload/placeholder.js +99 -0
- package/lib/schema-component/antd/upload/shared.js +236 -0
- package/lib/schema-component/antd/upload/style.js +109 -0
- package/lib/schema-component/antd/upload/type.d.js +8 -0
- package/lib/schema-component/antd/variable/CodeMirror.js +132 -0
- package/lib/schema-component/antd/variable/Input.js +360 -0
- package/lib/schema-component/antd/variable/JSONInput.js +71 -0
- package/lib/schema-component/antd/variable/RawTextArea.js +133 -0
- package/lib/schema-component/antd/variable/TextArea.js +436 -0
- package/lib/schema-component/antd/variable/Variable.js +67 -0
- package/lib/schema-component/antd/variable/VariableSelect.js +115 -0
- package/lib/schema-component/antd/variable/VariableSelect.style.js +64 -0
- package/lib/schema-component/antd/variable/XButton.js +55 -0
- package/lib/schema-component/antd/variable/__tests__/variable.test.js +82 -0
- package/lib/schema-component/antd/variable/demos/demo1.js +78 -0
- package/lib/schema-component/antd/variable/demos/demo2.js +78 -0
- package/lib/schema-component/antd/variable/demos/demo3.js +78 -0
- package/lib/schema-component/antd/variable/index.js +65 -0
- package/lib/schema-component/antd/variable/style.js +209 -0
- package/lib/schema-component/common/dnd-context/index.js +134 -0
- package/lib/schema-component/common/index.js +74 -0
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +171 -0
- package/lib/schema-component/common/infinite-scroll/style.js +62 -0
- package/lib/schema-component/common/sortable-item/SortableItem.js +185 -0
- package/lib/schema-component/common/sortable-item/index.js +65 -0
- package/lib/schema-component/common/utils/logic.js +434 -0
- package/lib/schema-component/common/utils/uitls.js +163 -0
- package/lib/schema-component/context.js +38 -0
- package/lib/schema-component/core/DesignableSwitch.js +71 -0
- package/lib/schema-component/core/FormProvider.js +87 -0
- package/lib/schema-component/core/RemoteSchemaComponent.js +78 -0
- package/lib/schema-component/core/SchemaComponent.js +94 -0
- package/lib/schema-component/core/SchemaComponentOptions.js +79 -0
- package/lib/schema-component/core/SchemaComponentPlugin.js +47 -0
- package/lib/schema-component/core/SchemaComponentProvider.js +118 -0
- package/lib/schema-component/core/index.js +119 -0
- package/lib/schema-component/demos/demo1.js +123 -0
- package/lib/schema-component/demos/demo2.js +57 -0
- package/lib/schema-component/demos/demo3.js +58 -0
- package/lib/schema-component/demos/demo4.js +58 -0
- package/lib/schema-component/hooks/__tests__/designable.test.js +555 -0
- package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.js +96 -0
- package/lib/schema-component/hooks/index.js +164 -0
- package/lib/schema-component/hooks/useAttach.js +50 -0
- package/lib/schema-component/hooks/useCompile.js +74 -0
- package/lib/schema-component/hooks/useComponent.js +44 -0
- package/lib/schema-component/hooks/useDesignable.js +713 -0
- package/lib/schema-component/hooks/useDesigner.js +53 -0
- package/lib/schema-component/hooks/useFieldComponentOptions.js +121 -0
- package/lib/schema-component/hooks/useFieldModeOptions.js +317 -0
- package/lib/schema-component/hooks/useFieldProps.js +52 -0
- package/lib/schema-component/hooks/useFieldTitle.js +56 -0
- package/lib/schema-component/hooks/useProps.js +49 -0
- package/lib/schema-component/hooks/useSchemaComponentContext.js +40 -0
- package/lib/schema-component/hooks/useTableSize.js +65 -0
- package/lib/schema-component/index.js +110 -0
- package/lib/schema-component/types.js +8 -0
- package/lib/schema-initializer/SchemaInitializerPlugin.js +160 -0
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +80 -0
- package/lib/schema-initializer/buttons/FormItemInitializers.js +190 -0
- package/lib/schema-initializer/buttons/RecordBlockInitializers.js +410 -0
- package/lib/schema-initializer/buttons/SubTableActionInitializers.js +69 -0
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +201 -0
- package/lib/schema-initializer/buttons/index.js +110 -0
- package/lib/schema-initializer/components/CreateRecordAction.js +390 -0
- package/lib/schema-initializer/components/DeletedField.js +47 -0
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +169 -0
- package/lib/schema-initializer/components/assigned-field/index.js +65 -0
- package/lib/schema-initializer/components/index.js +74 -0
- package/lib/schema-initializer/demos/basic.js +96 -0
- package/lib/schema-initializer/demos/build-type.js +117 -0
- package/lib/schema-initializer/demos/custom-button.js +128 -0
- package/lib/schema-initializer/demos/custom-items-component.js +134 -0
- package/lib/schema-initializer/demos/dynamic-visible-children.js +115 -0
- package/lib/schema-initializer/demos/insert-schema-action.js +126 -0
- package/lib/schema-initializer/demos/insert-schema-basic.js +146 -0
- package/lib/schema-initializer/demos/insert-schema-form-item.js +170 -0
- package/lib/schema-initializer/demos/nested-items.js +182 -0
- package/lib/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.js +55 -0
- package/lib/schema-initializer/index.js +185 -0
- package/lib/schema-initializer/items/ActionInitializer.js +48 -0
- package/lib/schema-initializer/items/BlockInitializer.js +62 -0
- package/lib/schema-initializer/items/CreateFilterActionInitializer.js +55 -0
- package/lib/schema-initializer/items/CreateResetActionInitializer.js +50 -0
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +514 -0
- package/lib/schema-initializer/items/CustomizeActionInitializer.js +46 -0
- package/lib/schema-initializer/items/DataBlockInitializer.js +360 -0
- package/lib/schema-initializer/items/DeleteEventActionInitializer.js +58 -0
- package/lib/schema-initializer/items/FilterBlockInitializer.js +37 -0
- package/lib/schema-initializer/items/G2PlotInitializer.js +50 -0
- package/lib/schema-initializer/items/InitializerWithSwitch.js +59 -0
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +116 -0
- package/lib/schema-initializer/items/RecordAssociationGridCardBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordAssociationListBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +115 -0
- package/lib/schema-initializer/items/SelectActionInitializer.js +97 -0
- package/lib/schema-initializer/items/SubmitActionInitializer.js +55 -0
- package/lib/schema-initializer/items/TableActionColumnInitializer.js +73 -0
- package/lib/schema-initializer/items/index.js +263 -0
- package/lib/schema-initializer/style.js +51 -0
- package/lib/schema-initializer/utils.js +1438 -0
- package/lib/schema-items/GeneralSchemaItems.js +198 -0
- package/lib/schema-items/GeneralSettings.js +241 -0
- package/lib/schema-items/OpenModeSchemaItems.js +221 -0
- package/lib/schema-items/index.js +74 -0
- package/lib/schema-settings/DataTemplates/FormDataTemplates.js +324 -0
- package/lib/schema-settings/DataTemplates/TreeLabel.js +64 -0
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +94 -0
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +306 -0
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.style.js +41 -0
- package/lib/schema-settings/DataTemplates/components/Designer.js +208 -0
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +319 -0
- package/lib/schema-settings/DataTemplates/index.js +65 -0
- package/lib/schema-settings/DataTemplates/utils.js +282 -0
- package/lib/schema-settings/DateFormat/ExpiresRadio.js +171 -0
- package/lib/schema-settings/EditCustomDefaultValue.js +143 -0
- package/lib/schema-settings/EditFormulaTitleField.js +133 -0
- package/lib/schema-settings/EnableChildCollections/DynamicComponent.js +98 -0
- package/lib/schema-settings/EnableChildCollections/index.js +135 -0
- package/lib/schema-settings/GeneralSchemaDesigner.js +313 -0
- package/lib/schema-settings/LinkageRules/DynamicComponent.js +104 -0
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +272 -0
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +118 -0
- package/lib/schema-settings/LinkageRules/ValueDynamicComponent.js +204 -0
- package/lib/schema-settings/LinkageRules/Variables.js +132 -0
- package/lib/schema-settings/LinkageRules/action-hooks.js +137 -0
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +86 -0
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +304 -0
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.style.js +41 -0
- package/lib/schema-settings/LinkageRules/context.js +44 -0
- package/lib/schema-settings/LinkageRules/index.js +228 -0
- package/lib/schema-settings/LinkageRules/type.js +51 -0
- package/lib/schema-settings/LinkageRules/useValues.js +102 -0
- package/lib/schema-settings/SchemaSettingCollection.js +84 -0
- package/lib/schema-settings/SchemaSettingComponent.js +72 -0
- package/lib/schema-settings/SchemaSettings.js +1409 -0
- package/lib/schema-settings/SchemaSettingsDataScope.js +134 -0
- package/lib/schema-settings/SchemaSettingsDateFormat.js +233 -0
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +252 -0
- package/lib/schema-settings/SchemaSettingsNumberFormat.js +212 -0
- package/lib/schema-settings/SchemaSettingsPlugin.js +142 -0
- package/lib/schema-settings/SchemaSettingsSortingRule.js +171 -0
- package/lib/schema-settings/VariableInput/VariableInput.js +214 -0
- package/lib/schema-settings/VariableInput/hooks/index.js +83 -0
- package/lib/schema-settings/VariableInput/hooks/useBaseVariable.js +209 -0
- package/lib/schema-settings/VariableInput/hooks/useBlockCollection.js +44 -0
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +132 -0
- package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +197 -0
- package/lib/schema-settings/VariableInput/hooks/useFilterVariable.js +86 -0
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +77 -0
- package/lib/schema-settings/VariableInput/hooks/useIterationVariable.js +80 -0
- package/lib/schema-settings/VariableInput/hooks/useParentRecordVariable.js +78 -0
- package/lib/schema-settings/VariableInput/hooks/usePopupVariable.js +58 -0
- package/lib/schema-settings/VariableInput/hooks/useRecordVariable.js +87 -0
- package/lib/schema-settings/VariableInput/hooks/useRoleVariable.js +76 -0
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +76 -0
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +136 -0
- package/lib/schema-settings/VariableInput/index.js +74 -0
- package/lib/schema-settings/VariableInput/type.js +19 -0
- package/lib/schema-settings/VariableInput/utils/formatVariableScop.js +47 -0
- package/lib/schema-settings/demos/basic.js +94 -0
- package/lib/schema-settings/demos/built-type.js +176 -0
- package/lib/schema-settings/demos/custom-component.js +76 -0
- package/lib/schema-settings/demos/demo3.js +134 -0
- package/lib/schema-settings/demos/schema-basic.js +98 -0
- package/lib/schema-settings/filter-form/FormFilterScope.js +143 -0
- package/lib/schema-settings/filter-form/context.js +43 -0
- package/lib/schema-settings/hooks/useFilterFormCustomProps.js +50 -0
- package/lib/schema-settings/hooks/useGetAriaLabelOfDesigner.js +58 -0
- package/lib/schema-settings/hooks/useIsAllowToSetDefaultValue.js +117 -0
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +50 -0
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +88 -0
- package/lib/schema-settings/index.js +218 -0
- package/lib/schema-settings/isPatternDisabled.js +41 -0
- package/lib/schema-settings/styles.js +118 -0
- package/lib/schema-settings/types.js +19 -0
- package/lib/schema-templates/BlockTemplate.js +76 -0
- package/lib/schema-templates/BlockTemplateDetails.js +134 -0
- package/lib/schema-templates/BlockTemplatePage.js +67 -0
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +113 -0
- package/lib/schema-templates/collections/uiSchemaTemplates.js +55 -0
- package/lib/schema-templates/index.js +92 -0
- package/lib/schema-templates/schemas/CollectionTitle.js +71 -0
- package/lib/schema-templates/schemas/uiSchemaTemplates.js +265 -0
- package/lib/schema-templates/useSchemaTemplateManager.js +122 -0
- package/lib/style/css-variable/CSSVariableProvider.js +109 -0
- package/lib/style/css-variable/index.js +50 -0
- package/lib/style/index.js +44 -0
- package/lib/style/theme/AntdAppProvider.js +69 -0
- package/lib/style/theme/defaultTheme.js +55 -0
- package/lib/style/theme/index.js +165 -0
- package/lib/style/theme/type.js +19 -0
- package/lib/style/useToken.js +40 -0
- package/lib/testUtils/index.js +65 -0
- package/lib/testUtils/mockAPIClient.js +64 -0
- package/lib/user/ChangePassword.js +191 -0
- package/lib/user/CurrentUser.js +258 -0
- package/lib/user/CurrentUserProvider.js +97 -0
- package/lib/user/CurrentUserSettingsMenuProvider.js +104 -0
- package/lib/user/EditProfile.js +183 -0
- package/lib/user/LanguageSettings.js +94 -0
- package/lib/user/SwitchRole.js +75 -0
- package/lib/user/VerificationCode.js +117 -0
- package/lib/user/__tests__/current-user-settings-menu-provider.test.js +43 -0
- package/lib/user/index.js +83 -0
- package/lib/variables/VariablesProvider.js +264 -0
- package/lib/variables/__tests__/useVariables.test.js +442 -0
- package/lib/variables/__tests__/utils/filterEmptyValues.test.js +53 -0
- package/lib/variables/__tests__/utils/getPath.test.js +11 -0
- package/lib/variables/__tests__/utils/getVariableName.test.js +11 -0
- package/lib/variables/__tests__/utils/isVariable.test.js +29 -0
- package/lib/variables/__tests__/utils/transformVariableValue.test.js +143 -0
- package/lib/variables/__tests__/utils/uniq.test.js +84 -0
- package/lib/variables/constants.js +38 -0
- package/lib/variables/hooks/useBuiltinVariables.js +85 -0
- package/lib/variables/hooks/useContextVariable.js +61 -0
- package/lib/variables/hooks/useLocalVariables.js +102 -0
- package/lib/variables/hooks/useVariables.js +39 -0
- package/lib/variables/index.js +152 -0
- package/lib/variables/types.js +19 -0
- package/lib/variables/utils/filterEmptyValues.js +41 -0
- package/lib/variables/utils/getAction.js +44 -0
- package/lib/variables/utils/getPath.js +41 -0
- package/lib/variables/utils/getVariableName.js +58 -0
- package/lib/variables/utils/hasRequested.js +58 -0
- package/lib/variables/utils/isVariable.js +47 -0
- package/lib/variables/utils/transformVariableValue.js +78 -0
- package/lib/variables/utils/uniq.js +58 -0
- package/package.json +7 -6
- package/lib/index.mjs +0 -94810
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = function(module) {
|
|
5
|
+
var getter = module && module.__esModule ? function() {
|
|
6
|
+
return module['default'];
|
|
7
|
+
} : function() {
|
|
8
|
+
return module;
|
|
9
|
+
};
|
|
10
|
+
__webpack_require__.d(getter, {
|
|
11
|
+
a: getter
|
|
12
|
+
});
|
|
13
|
+
return getter;
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
18
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: definition[key]
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = function(obj, prop) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
(()=>{
|
|
30
|
+
__webpack_require__.r = function(exports1) {
|
|
31
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
32
|
+
value: 'Module'
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
var __webpack_exports__ = {};
|
|
40
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
APIClient: ()=>APIClient
|
|
43
|
+
});
|
|
44
|
+
const external_react_namespaceObject = require("react");
|
|
45
|
+
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
46
|
+
const sdk_namespaceObject = require("@tachybase/sdk");
|
|
47
|
+
const external_antd_namespaceObject = require("antd");
|
|
48
|
+
function _define_property(obj, key, value) {
|
|
49
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
50
|
+
value: value,
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true,
|
|
53
|
+
writable: true
|
|
54
|
+
});
|
|
55
|
+
else obj[key] = value;
|
|
56
|
+
return obj;
|
|
57
|
+
}
|
|
58
|
+
function notify(type, messages, instance) {
|
|
59
|
+
var _messages_map;
|
|
60
|
+
if (!(null == messages ? void 0 : messages.length)) return;
|
|
61
|
+
instance[type]({
|
|
62
|
+
message: null === (_messages_map = messages.map) || void 0 === _messages_map ? void 0 : _messages_map.call(messages, (item)=>external_react_default().createElement('div', {}, 'string' == typeof item ? item : item.message))
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const handleErrorMessage = (error, notification)=>{
|
|
66
|
+
var _error_response;
|
|
67
|
+
const reader = new FileReader();
|
|
68
|
+
reader.readAsText(null == error ? void 0 : null === (_error_response = error.response) || void 0 === _error_response ? void 0 : _error_response.data, 'utf-8');
|
|
69
|
+
reader.onload = function() {
|
|
70
|
+
const messages = JSON.parse(reader.result).errors;
|
|
71
|
+
notify('error', messages, notification);
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
const errorCache = new Map();
|
|
75
|
+
function offsetToTimeZone(offset) {
|
|
76
|
+
const hours = Math.floor(Math.abs(offset));
|
|
77
|
+
const minutes = Math.abs(offset % 1 * 60);
|
|
78
|
+
const formattedHours = (hours < 10 ? '0' : '') + hours;
|
|
79
|
+
const formattedMinutes = (minutes < 10 ? '0' : '') + minutes;
|
|
80
|
+
const sign = offset >= 0 ? '+' : '-';
|
|
81
|
+
return sign + formattedHours + ':' + formattedMinutes;
|
|
82
|
+
}
|
|
83
|
+
const getCurrentTimezone = ()=>{
|
|
84
|
+
const timezoneOffset = new Date().getTimezoneOffset() / -60;
|
|
85
|
+
return offsetToTimeZone(timezoneOffset);
|
|
86
|
+
};
|
|
87
|
+
class APIClient extends sdk_namespaceObject.APIClient {
|
|
88
|
+
service(uid) {
|
|
89
|
+
return this.services[uid];
|
|
90
|
+
}
|
|
91
|
+
getHeaders() {
|
|
92
|
+
var _window_location, _window;
|
|
93
|
+
const headers = super.getHeaders();
|
|
94
|
+
const appName = this.app.getName();
|
|
95
|
+
if (appName) headers['X-App'] = appName;
|
|
96
|
+
headers['X-Timezone'] = getCurrentTimezone();
|
|
97
|
+
headers['X-Hostname'] = null === (_window = window) || void 0 === _window ? void 0 : null === (_window_location = _window.location) || void 0 === _window_location ? void 0 : _window_location.hostname;
|
|
98
|
+
return headers;
|
|
99
|
+
}
|
|
100
|
+
interceptors() {
|
|
101
|
+
this.axios.interceptors.request.use((config)=>{
|
|
102
|
+
config.headers['X-With-ACL-Meta'] = true;
|
|
103
|
+
const appName = this.app ? (0, sdk_namespaceObject.getSubAppName)(this.app.getPublicPath()) : null;
|
|
104
|
+
if (appName) config.headers['X-App'] = appName;
|
|
105
|
+
return config;
|
|
106
|
+
});
|
|
107
|
+
super.interceptors();
|
|
108
|
+
this.useNotificationMiddleware();
|
|
109
|
+
this.axios.interceptors.response.use((response)=>response, (error)=>{
|
|
110
|
+
var _error_response_data, _error_response;
|
|
111
|
+
const errs = (null == error ? void 0 : null === (_error_response = error.response) || void 0 === _error_response ? void 0 : null === (_error_response_data = _error_response.data) || void 0 === _error_response_data ? void 0 : _error_response_data.errors) || [
|
|
112
|
+
{
|
|
113
|
+
message: 'Server error'
|
|
114
|
+
}
|
|
115
|
+
];
|
|
116
|
+
if (errs.find((error)=>'ROLE_NOT_FOUND_ERR' === error.code)) this.auth.setRole(null);
|
|
117
|
+
throw error;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
useNotificationMiddleware() {
|
|
121
|
+
this.axios.interceptors.response.use((response)=>{
|
|
122
|
+
var _response_data_messages, _response_data;
|
|
123
|
+
if (null === (_response_data = response.data) || void 0 === _response_data ? void 0 : null === (_response_data_messages = _response_data.messages) || void 0 === _response_data_messages ? void 0 : _response_data_messages.length) {
|
|
124
|
+
const messages = response.data.messages.filter((item)=>{
|
|
125
|
+
const lastTime = errorCache.get('string' == typeof item ? item : item.message);
|
|
126
|
+
if (lastTime && new Date().getTime() - lastTime < 500) return false;
|
|
127
|
+
errorCache.set(item.message, new Date().getTime());
|
|
128
|
+
return true;
|
|
129
|
+
});
|
|
130
|
+
notify('success', messages, this.notification);
|
|
131
|
+
}
|
|
132
|
+
return response;
|
|
133
|
+
}, (error)=>{
|
|
134
|
+
var _error_response_data, _error_response, _error_response_data1, _error_response1;
|
|
135
|
+
if (this.silence) throw error;
|
|
136
|
+
const redirectTo = null == error ? void 0 : null === (_error_response = error.response) || void 0 === _error_response ? void 0 : null === (_error_response_data = _error_response.data) || void 0 === _error_response_data ? void 0 : _error_response_data.redirectTo;
|
|
137
|
+
if (redirectTo) return window.location.href = redirectTo;
|
|
138
|
+
if ((null == error ? void 0 : null === (_error_response1 = error.response) || void 0 === _error_response1 ? void 0 : null === (_error_response_data1 = _error_response1.data) || void 0 === _error_response_data1 ? void 0 : _error_response_data1.type) === 'application/json') handleErrorMessage(error, this.notification);
|
|
139
|
+
else {
|
|
140
|
+
var _error_response_data_error, _error_response_data2, _error_response2, _error_response_data3, _error_response3, _error_response_data4, _error_response4;
|
|
141
|
+
if (errorCache.size > 10) errorCache.clear();
|
|
142
|
+
const maintaining = !!(null == error ? void 0 : null === (_error_response2 = error.response) || void 0 === _error_response2 ? void 0 : null === (_error_response_data2 = _error_response2.data) || void 0 === _error_response_data2 ? void 0 : null === (_error_response_data_error = _error_response_data2.error) || void 0 === _error_response_data_error ? void 0 : _error_response_data_error.maintaining);
|
|
143
|
+
if (this.app.maintaining !== maintaining) this.app.maintaining = maintaining;
|
|
144
|
+
if (this.app.maintaining) {
|
|
145
|
+
var _error_response_data5, _error_response5;
|
|
146
|
+
this.app.error = null == error ? void 0 : null === (_error_response5 = error.response) || void 0 === _error_response5 ? void 0 : null === (_error_response_data5 = _error_response5.data) || void 0 === _error_response_data5 ? void 0 : _error_response_data5.error;
|
|
147
|
+
throw error;
|
|
148
|
+
}
|
|
149
|
+
if (this.app.error) this.app.error = null;
|
|
150
|
+
let errs = (null == error ? void 0 : null === (_error_response3 = error.response) || void 0 === _error_response3 ? void 0 : null === (_error_response_data3 = _error_response3.data) || void 0 === _error_response_data3 ? void 0 : _error_response_data3.errors) || (null == error ? void 0 : null === (_error_response4 = error.response) || void 0 === _error_response4 ? void 0 : null === (_error_response_data4 = _error_response4.data) || void 0 === _error_response_data4 ? void 0 : _error_response_data4.messages) || [
|
|
151
|
+
{
|
|
152
|
+
message: 'Server error'
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
errs = errs.filter((error)=>{
|
|
156
|
+
const lastTime = errorCache.get(error.message);
|
|
157
|
+
if (lastTime && new Date().getTime() - lastTime < 500) return false;
|
|
158
|
+
errorCache.set(error.message, new Date().getTime());
|
|
159
|
+
return true;
|
|
160
|
+
});
|
|
161
|
+
if (0 === errs.length) throw error;
|
|
162
|
+
notify('error', errs, this.notification);
|
|
163
|
+
}
|
|
164
|
+
throw error;
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
silent() {
|
|
168
|
+
this.silence = true;
|
|
169
|
+
return this;
|
|
170
|
+
}
|
|
171
|
+
constructor(...args){
|
|
172
|
+
super(...args), _define_property(this, "services", {}), _define_property(this, "silence", false), _define_property(this, "app", void 0), _define_property(this, "notification", external_antd_namespaceObject.notification);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
var __webpack_export_target__ = exports;
|
|
176
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
177
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
178
|
+
value: true
|
|
179
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __webpack_exports__ = {};
|
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
APIClientProvider: ()=>APIClientProvider
|
|
30
|
+
});
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
require("react");
|
|
33
|
+
const external_context_js_namespaceObject = require("./context.js");
|
|
34
|
+
const APIClientProvider = (props)=>{
|
|
35
|
+
const { apiClient, children } = props;
|
|
36
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_context_js_namespaceObject.APIClientContext.Provider, {
|
|
37
|
+
value: apiClient,
|
|
38
|
+
children: children
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var __webpack_export_target__ = exports;
|
|
42
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
43
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
44
|
+
value: true
|
|
45
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = function(module) {
|
|
5
|
+
var getter = module && module.__esModule ? function() {
|
|
6
|
+
return module['default'];
|
|
7
|
+
} : function() {
|
|
8
|
+
return module;
|
|
9
|
+
};
|
|
10
|
+
__webpack_require__.d(getter, {
|
|
11
|
+
a: getter
|
|
12
|
+
});
|
|
13
|
+
return getter;
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
18
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: definition[key]
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = function(obj, prop) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __webpack_exports__ = {};
|
|
30
|
+
const external_axios_namespaceObject = require("axios");
|
|
31
|
+
var external_axios_default = /*#__PURE__*/ __webpack_require__.n(external_axios_namespaceObject);
|
|
32
|
+
const external_APIClient_js_namespaceObject = require("../APIClient.js");
|
|
33
|
+
describe('APIClient', ()=>{
|
|
34
|
+
describe('axios', ()=>{
|
|
35
|
+
it('case 1', ()=>{
|
|
36
|
+
const apiClient = new external_APIClient_js_namespaceObject.APIClient();
|
|
37
|
+
expect(apiClient.axios).toBeDefined();
|
|
38
|
+
expect(typeof apiClient.axios).toBe('function');
|
|
39
|
+
expect(typeof apiClient.axios.request).toBe('function');
|
|
40
|
+
});
|
|
41
|
+
it('case 2', ()=>{
|
|
42
|
+
const apiClient = new external_APIClient_js_namespaceObject.APIClient({
|
|
43
|
+
baseURL: 'http://localhost/api/'
|
|
44
|
+
});
|
|
45
|
+
expect(apiClient.axios.defaults.baseURL).toBe('http://localhost/api/');
|
|
46
|
+
});
|
|
47
|
+
it('case 3', ()=>{
|
|
48
|
+
const instance = external_axios_default().create();
|
|
49
|
+
const apiClient = new external_APIClient_js_namespaceObject.APIClient(instance);
|
|
50
|
+
expect(apiClient.axios).toBe(instance);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
test('should reset role when role is not found', async ()=>{
|
|
54
|
+
const instance = external_axios_default().create();
|
|
55
|
+
instance.interceptors.response.use((response)=>response, (error)=>{
|
|
56
|
+
error = {
|
|
57
|
+
response: {
|
|
58
|
+
data: {
|
|
59
|
+
errors: [
|
|
60
|
+
{
|
|
61
|
+
code: 'ROLE_NOT_FOUND_ERR'
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
throw error;
|
|
68
|
+
});
|
|
69
|
+
const apiClient = new external_APIClient_js_namespaceObject.APIClient(instance);
|
|
70
|
+
apiClient.app = {};
|
|
71
|
+
apiClient.auth.setRole('not-found');
|
|
72
|
+
expect(apiClient.auth.role).toBe('not-found');
|
|
73
|
+
try {
|
|
74
|
+
await apiClient.request({
|
|
75
|
+
method: 'GET',
|
|
76
|
+
url: '/api/test'
|
|
77
|
+
});
|
|
78
|
+
} catch (err) {
|
|
79
|
+
console.log(err);
|
|
80
|
+
expect(err).toBeDefined();
|
|
81
|
+
expect(err.response.data.errors[0].code).toBe('ROLE_NOT_FOUND_ERR');
|
|
82
|
+
}
|
|
83
|
+
expect(apiClient.auth.role).toBeFalsy();
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
var __webpack_export_target__ = exports;
|
|
87
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
88
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
89
|
+
value: true
|
|
90
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __webpack_exports__ = {};
|
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
APIClientContext: ()=>APIClientContext
|
|
30
|
+
});
|
|
31
|
+
const external_react_namespaceObject = require("react");
|
|
32
|
+
const external_APIClient_js_namespaceObject = require("./APIClient.js");
|
|
33
|
+
const APIClientContext = (0, external_react_namespaceObject.createContext)(new external_APIClient_js_namespaceObject.APIClient());
|
|
34
|
+
APIClientContext.displayName = 'APIClientContext';
|
|
35
|
+
var __webpack_export_target__ = exports;
|
|
36
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
37
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
38
|
+
value: true
|
|
39
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = function(module) {
|
|
5
|
+
var getter = module && module.__esModule ? function() {
|
|
6
|
+
return module['default'];
|
|
7
|
+
} : function() {
|
|
8
|
+
return module;
|
|
9
|
+
};
|
|
10
|
+
__webpack_require__.d(getter, {
|
|
11
|
+
a: getter
|
|
12
|
+
});
|
|
13
|
+
return getter;
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
18
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: definition[key]
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = function(obj, prop) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
(()=>{
|
|
30
|
+
__webpack_require__.r = function(exports1) {
|
|
31
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
32
|
+
value: 'Module'
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
var __webpack_exports__ = {};
|
|
40
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
default: ()=>demo1_rslib_entry_
|
|
43
|
+
});
|
|
44
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
+
require("react");
|
|
46
|
+
const client_namespaceObject = require("@tachybase/client");
|
|
47
|
+
const external_axios_mock_adapter_namespaceObject = require("axios-mock-adapter");
|
|
48
|
+
var external_axios_mock_adapter_default = /*#__PURE__*/ __webpack_require__.n(external_axios_mock_adapter_namespaceObject);
|
|
49
|
+
const apiClient = new client_namespaceObject.APIClient();
|
|
50
|
+
const mock = new (external_axios_mock_adapter_default())(apiClient.axios);
|
|
51
|
+
mock.onGet('/users:get').reply(200, {
|
|
52
|
+
data: {
|
|
53
|
+
id: 1,
|
|
54
|
+
name: 'John Smith'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const providers = [
|
|
58
|
+
[
|
|
59
|
+
client_namespaceObject.APIClientProvider,
|
|
60
|
+
{
|
|
61
|
+
apiClient
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
];
|
|
65
|
+
const demo1_rslib_entry_ = (0, client_namespaceObject.compose)(...providers)(()=>{
|
|
66
|
+
var _data_data;
|
|
67
|
+
const { data } = (0, client_namespaceObject.useRequest)({
|
|
68
|
+
resource: 'users',
|
|
69
|
+
action: 'get',
|
|
70
|
+
params: {}
|
|
71
|
+
});
|
|
72
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
73
|
+
children: null == data ? void 0 : null === (_data_data = data.data) || void 0 === _data_data ? void 0 : _data_data.name
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
var __webpack_export_target__ = exports;
|
|
77
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
78
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
79
|
+
value: true
|
|
80
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = function(module) {
|
|
5
|
+
var getter = module && module.__esModule ? function() {
|
|
6
|
+
return module['default'];
|
|
7
|
+
} : function() {
|
|
8
|
+
return module;
|
|
9
|
+
};
|
|
10
|
+
__webpack_require__.d(getter, {
|
|
11
|
+
a: getter
|
|
12
|
+
});
|
|
13
|
+
return getter;
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
18
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: definition[key]
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = function(obj, prop) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
(()=>{
|
|
30
|
+
__webpack_require__.r = function(exports1) {
|
|
31
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
32
|
+
value: 'Module'
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
var __webpack_exports__ = {};
|
|
40
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
default: ()=>demo2_rslib_entry_
|
|
43
|
+
});
|
|
44
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
+
require("react");
|
|
46
|
+
const client_namespaceObject = require("@tachybase/client");
|
|
47
|
+
const external_axios_mock_adapter_namespaceObject = require("axios-mock-adapter");
|
|
48
|
+
var external_axios_mock_adapter_default = /*#__PURE__*/ __webpack_require__.n(external_axios_mock_adapter_namespaceObject);
|
|
49
|
+
const apiClient = new client_namespaceObject.APIClient();
|
|
50
|
+
const mock = new (external_axios_mock_adapter_default())(apiClient.axios);
|
|
51
|
+
mock.onGet('/users:get').reply(200, {
|
|
52
|
+
data: {
|
|
53
|
+
id: 1,
|
|
54
|
+
name: 'John Smith'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const providers = [
|
|
58
|
+
[
|
|
59
|
+
client_namespaceObject.APIClientProvider,
|
|
60
|
+
{
|
|
61
|
+
apiClient
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
];
|
|
65
|
+
const demo2_rslib_entry_ = (0, client_namespaceObject.compose)(...providers)(()=>{
|
|
66
|
+
var _data_data;
|
|
67
|
+
const { data } = (0, client_namespaceObject.useRequest)({
|
|
68
|
+
url: 'users:get',
|
|
69
|
+
method: 'get'
|
|
70
|
+
});
|
|
71
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
72
|
+
children: null == data ? void 0 : null === (_data_data = data.data) || void 0 === _data_data ? void 0 : _data_data.name
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
var __webpack_export_target__ = exports;
|
|
76
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
77
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
78
|
+
value: true
|
|
79
|
+
});
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = function(module) {
|
|
5
|
+
var getter = module && module.__esModule ? function() {
|
|
6
|
+
return module['default'];
|
|
7
|
+
} : function() {
|
|
8
|
+
return module;
|
|
9
|
+
};
|
|
10
|
+
__webpack_require__.d(getter, {
|
|
11
|
+
a: getter
|
|
12
|
+
});
|
|
13
|
+
return getter;
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
18
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: definition[key]
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = function(obj, prop) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
(()=>{
|
|
30
|
+
__webpack_require__.r = function(exports1) {
|
|
31
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
32
|
+
value: 'Module'
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
var __webpack_exports__ = {};
|
|
40
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
default: ()=>demo3_rslib_entry_
|
|
43
|
+
});
|
|
44
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
+
require("react");
|
|
46
|
+
const client_namespaceObject = require("@tachybase/client");
|
|
47
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
48
|
+
const external_antd_namespaceObject = require("antd");
|
|
49
|
+
const external_axios_mock_adapter_namespaceObject = require("axios-mock-adapter");
|
|
50
|
+
var external_axios_mock_adapter_default = /*#__PURE__*/ __webpack_require__.n(external_axios_mock_adapter_namespaceObject);
|
|
51
|
+
const demo3_rslib_entry_apiClient = new client_namespaceObject.APIClient();
|
|
52
|
+
const mock = new (external_axios_mock_adapter_default())(demo3_rslib_entry_apiClient.axios);
|
|
53
|
+
const sleep = (value)=>new Promise((resolve)=>setTimeout(resolve, value));
|
|
54
|
+
mock.onGet('/users:list').reply(async ()=>{
|
|
55
|
+
await sleep(1000);
|
|
56
|
+
return [
|
|
57
|
+
200,
|
|
58
|
+
{
|
|
59
|
+
data: [
|
|
60
|
+
{
|
|
61
|
+
id: 1,
|
|
62
|
+
name: (0, schema_namespaceObject.uid)()
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 2,
|
|
66
|
+
name: (0, schema_namespaceObject.uid)()
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
});
|
|
72
|
+
const ComponentA = ()=>{
|
|
73
|
+
console.log('ComponentA');
|
|
74
|
+
const { data, loading } = (0, client_namespaceObject.useRequest)({
|
|
75
|
+
url: 'users:list',
|
|
76
|
+
method: 'get'
|
|
77
|
+
}, {
|
|
78
|
+
uid: 'test'
|
|
79
|
+
});
|
|
80
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Table, {
|
|
81
|
+
pagination: false,
|
|
82
|
+
rowKey: 'id',
|
|
83
|
+
loading: loading,
|
|
84
|
+
dataSource: null == data ? void 0 : data.data,
|
|
85
|
+
columns: [
|
|
86
|
+
{
|
|
87
|
+
title: 'Name',
|
|
88
|
+
dataIndex: 'name'
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
const ComponentB = ()=>{
|
|
94
|
+
console.log('ComponentB');
|
|
95
|
+
const apiClient = (0, client_namespaceObject.useAPIClient)();
|
|
96
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.Space, {
|
|
97
|
+
children: [
|
|
98
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Input, {}),
|
|
99
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Button, {
|
|
100
|
+
onClick: ()=>{
|
|
101
|
+
var _apiClient_service;
|
|
102
|
+
return null === (_apiClient_service = apiClient.service('test')) || void 0 === _apiClient_service ? void 0 : _apiClient_service.run();
|
|
103
|
+
},
|
|
104
|
+
children: "提交"
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
const demo3_rslib_entry_ = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(client_namespaceObject.APIClientProvider, {
|
|
110
|
+
apiClient: demo3_rslib_entry_apiClient,
|
|
111
|
+
children: [
|
|
112
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ComponentB, {}),
|
|
113
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("br", {}),
|
|
114
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("br", {}),
|
|
115
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ComponentA, {})
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
var __webpack_export_target__ = exports;
|
|
119
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
120
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
121
|
+
value: true
|
|
122
|
+
});
|