@webiny/app-admin 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.f6dc066313
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/README.md +7 -17
- package/base/Admin.d.ts +5 -2
- package/base/Admin.js +34 -16
- package/base/Admin.js.map +1 -1
- package/base/Base/LexicalPreset.d.ts +2 -0
- package/base/Base/LexicalPreset.js +67 -0
- package/base/Base/LexicalPreset.js.map +1 -0
- package/base/Base/Menus/SupportMenuItems.d.ts +2 -2
- package/base/Base/Menus/SupportMenuItems.js +2 -4
- package/base/Base/Menus/SupportMenuItems.js.map +1 -1
- package/base/Base/Menus/WebinyVersion.js +4 -4
- package/base/Base/Menus/WebinyVersion.js.map +1 -1
- package/base/Base/Menus.js +37 -42
- package/base/Base/Menus.js.map +1 -1
- package/base/Base/RoutesConfig.d.ts +2 -0
- package/base/Base/RoutesConfig.js +30 -0
- package/base/Base/RoutesConfig.js.map +1 -0
- package/base/Base/Tenant/wby-horizontal.svg +23 -0
- package/base/Base/Tenant.js +14 -9
- package/base/Base/Tenant.js.map +1 -1
- package/base/Base/UserMenu/ExitTenant.d.ts +20 -0
- package/base/Base/UserMenu/ExitTenant.js +37 -0
- package/base/Base/UserMenu/ExitTenant.js.map +1 -0
- package/base/Base/UserMenu/SignOut.d.ts +2 -0
- package/base/Base/UserMenu/SignOut.js +19 -0
- package/base/Base/UserMenu/SignOut.js.map +1 -0
- package/base/Base/UserMenu/UserInfo.d.ts +6 -0
- package/base/Base/UserMenu/UserInfo.js +43 -0
- package/base/Base/UserMenu/UserInfo.js.map +1 -0
- package/base/Base/UserMenu.d.ts +2 -0
- package/base/Base/UserMenu.js +21 -0
- package/base/Base/UserMenu.js.map +1 -0
- package/base/Base.js +6 -8
- package/base/Base.js.map +1 -1
- package/base/TelemetryAdminAppStart.d.ts +1 -0
- package/base/TelemetryAdminAppStart.js +19 -0
- package/base/TelemetryAdminAppStart.js.map +1 -0
- package/base/WebinyVersion.js +4 -4
- package/base/WebinyVersion.js.map +1 -1
- package/base/createRootContainer.d.ts +2 -0
- package/base/createRootContainer.js +55 -0
- package/base/createRootContainer.js.map +1 -0
- package/base/plugins/AddGraphQLQuerySelection.js +1 -1
- package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
- package/base/providers/AdminUiStateProvider.js +1 -1
- package/base/providers/AdminUiStateProvider.js.map +1 -1
- package/base/providers/ApolloProvider.d.ts +1 -1
- package/base/providers/ApolloProvider.js +2 -5
- package/base/providers/ApolloProvider.js.map +1 -1
- package/base/providers/UiProviders.js +24 -3
- package/base/providers/UiProviders.js.map +1 -1
- package/base/providers/UiStateProvider.js +1 -1
- package/base/providers/UiStateProvider.js.map +1 -1
- package/base/ui/CenteredView.d.ts +1 -1
- package/base/ui/CenteredView.js +2 -2
- package/base/ui/CenteredView.js.map +1 -1
- package/base/ui/FileManager.d.ts +9 -21
- package/base/ui/FileManager.js +18 -12
- package/base/ui/FileManager.js.map +1 -1
- package/base/ui/LoginScreen.d.ts +19 -0
- package/base/ui/LoginScreen.js +2 -1
- package/base/ui/LoginScreen.js.map +1 -1
- package/base/ui/Navigation.js +1 -1
- package/base/ui/Navigation.js.map +1 -1
- package/base/ui/UserMenu/UserMenuItem.d.ts +5 -5
- package/base/ui/UserMenu/UserMenuItem.js +1 -1
- package/base/ui/UserMenu/UserMenuItem.js.map +1 -1
- package/base/ui/UserMenu/UserMenuLink.d.ts +5 -5
- package/base/ui/UserMenu/UserMenuLink.js +1 -1
- package/base/ui/UserMenu/UserMenuLink.js.map +1 -1
- package/base/ui/UserMenu/UserMenuSeparator.d.ts +8 -8
- package/base/ui/UserMenu/UserMenuSeparator.js +1 -1
- package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -1
- package/base/ui/UserMenu.d.ts +3 -3
- package/base/ui/UserMenu.js +3 -3
- package/base/ui/UserMenu.js.map +1 -1
- package/components/AdminLayout.js +1 -1
- package/components/AdminLayout.js.map +1 -1
- package/components/BulkActions/Worker.d.ts +0 -1
- package/components/BulkActions/Worker.js +1 -1
- package/components/BulkActions/Worker.js.map +1 -1
- package/components/BulkActions/index.d.ts +2 -2
- package/components/BulkActions/index.js +2 -2
- package/components/BulkActions/index.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/DialogMessage.d.ts +1 -1
- package/components/BulkActions/useDialogWithReport/DialogMessage.js +2 -2
- package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/index.d.ts +1 -1
- package/components/BulkActions/useDialogWithReport/index.js +1 -1
- package/components/BulkActions/useDialogWithReport/index.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.d.ts +1 -1
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +2 -2
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -1
- package/components/Buttons/Buttons.d.ts +1 -1
- package/components/Buttons/Buttons.js +4 -4
- package/components/Buttons/Buttons.js.map +1 -1
- package/components/Buttons/Buttons.styles.d.ts +2 -3
- package/components/Buttons/Buttons.styles.js +1 -2
- package/components/Buttons/Buttons.styles.js.map +1 -1
- package/components/Buttons/index.d.ts +2 -2
- package/components/Buttons/index.js +2 -2
- package/components/Buttons/index.js.map +1 -1
- package/components/Buttons/useButtons.d.ts +1 -1
- package/components/Buttons/useButtons.js +1 -1
- package/components/Buttons/useButtons.js.map +1 -1
- package/components/DeveloperMode/DeveloperMode.d.ts +11 -0
- package/components/DeveloperMode/DeveloperMode.js +17 -0
- package/components/DeveloperMode/DeveloperMode.js.map +1 -0
- package/components/DeveloperMode/index.d.ts +2 -0
- package/components/DeveloperMode/index.js +3 -0
- package/components/DeveloperMode/index.js.map +1 -0
- package/components/Dialogs/Dialog.js +2 -2
- package/components/Dialogs/Dialog.js.map +1 -1
- package/components/Dialogs/DialogsContext.d.ts +1 -6
- package/components/Dialogs/DialogsContext.js +14 -23
- package/components/Dialogs/DialogsContext.js.map +1 -1
- package/components/Dialogs/useDialogs.d.ts +1 -2
- package/components/Dialogs/useDialogs.js +1 -2
- package/components/Dialogs/useDialogs.js.map +1 -1
- package/components/EmptyView.d.ts +1 -2
- package/components/EmptyView.js +6 -7
- package/components/EmptyView.js.map +1 -1
- package/components/Filters/Filters.d.ts +1 -1
- package/components/Filters/Filters.js +2 -2
- package/components/Filters/Filters.js.map +1 -1
- package/components/Filters/index.d.ts +2 -2
- package/components/Filters/index.js +2 -2
- package/components/Filters/index.js.map +1 -1
- package/components/FloatingActionButton.js +1 -1
- package/components/FloatingActionButton.js.map +1 -1
- package/components/FloatingPanel.js +4 -6
- package/components/FloatingPanel.js.map +1 -1
- package/components/IconPicker/IconPicker.d.ts +3 -3
- package/components/IconPicker/IconPicker.js +6 -6
- package/components/IconPicker/IconPicker.js.map +1 -1
- package/components/IconPicker/IconPickerComponent.d.ts +3 -3
- package/components/IconPicker/IconPickerComponent.js +4 -4
- package/components/IconPicker/IconPickerComponent.js.map +1 -1
- package/components/IconPicker/IconPickerPresenter.d.ts +3 -3
- package/components/IconPicker/IconPickerPresenter.js.map +1 -1
- package/components/IconPicker/IconPickerPresenter.test.js +3 -2
- package/components/IconPicker/IconPickerPresenter.test.js.map +1 -1
- package/components/IconPicker/IconPickerPresenterProvider.d.ts +1 -1
- package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -1
- package/components/IconPicker/IconPickerTab.d.ts +1 -1
- package/components/IconPicker/IconPickerTab.js +10 -10
- package/components/IconPicker/IconPickerTab.js.map +1 -1
- package/components/IconPicker/IconRenderer.d.ts +1 -1
- package/components/IconPicker/IconRenderer.js.map +1 -1
- package/components/IconPicker/IconRepository.d.ts +2 -2
- package/components/IconPicker/IconRepository.js +2 -2
- package/components/IconPicker/IconRepository.js.map +1 -1
- package/components/IconPicker/IconRepository.test.js +2 -1
- package/components/IconPicker/IconRepository.test.js.map +1 -1
- package/components/IconPicker/IconRepositoryFactory.d.ts +2 -2
- package/components/IconPicker/IconRepositoryFactory.js +1 -1
- package/components/IconPicker/IconRepositoryFactory.js.map +1 -1
- package/components/IconPicker/components/IconPickerCell.d.ts +2 -2
- package/components/IconPicker/components/IconPickerCell.js +3 -3
- package/components/IconPicker/components/IconPickerCell.js.map +1 -1
- package/components/IconPicker/components/IconPickerContent.d.ts +1 -1
- package/components/IconPicker/components/IconPickerContent.js +4 -4
- package/components/IconPicker/components/IconPickerContent.js.map +1 -1
- package/components/IconPicker/components/IconPickerRow.js +1 -1
- package/components/IconPicker/components/IconPickerRow.js.map +1 -1
- package/components/IconPicker/components/IconPickerTrigger.d.ts +1 -1
- package/components/IconPicker/components/IconPickerTrigger.js +7 -7
- package/components/IconPicker/components/IconPickerTrigger.js.map +1 -1
- package/components/IconPicker/components/index.d.ts +4 -4
- package/components/IconPicker/components/index.js +4 -4
- package/components/IconPicker/components/index.js.map +1 -1
- package/components/IconPicker/config/Emojis.js +1 -1
- package/components/IconPicker/config/Emojis.js.map +1 -1
- package/components/IconPicker/config/FontAwesomeIcons.js +1 -1
- package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -1
- package/components/IconPicker/config/IconPackProvider.d.ts +1 -1
- package/components/IconPicker/config/IconPackProvider.js.map +1 -1
- package/components/IconPicker/config/IconType.js +2 -2
- package/components/IconPicker/config/IconType.js.map +1 -1
- package/components/IconPicker/config/index.d.ts +3 -3
- package/components/IconPicker/config/index.js +7 -7
- package/components/IconPicker/config/index.js.map +1 -1
- package/components/IconPicker/index.d.ts +7 -7
- package/components/IconPicker/index.js +6 -6
- package/components/IconPicker/index.js.map +1 -1
- package/components/IconPicker/plugins/customPlugin.js +19 -24
- package/components/IconPicker/plugins/customPlugin.js.map +1 -1
- package/components/IconPicker/plugins/emojisPlugin.js +9 -9
- package/components/IconPicker/plugins/emojisPlugin.js.map +1 -1
- package/components/IconPicker/plugins/iconsPlugin.js +4 -4
- package/components/IconPicker/plugins/iconsPlugin.js.map +1 -1
- package/components/IconPicker/types.js.map +1 -1
- package/components/LexicalEditor/LexicalEditor.d.ts +9 -5
- package/components/LexicalEditor/LexicalEditor.js +32 -21
- package/components/LexicalEditor/LexicalEditor.js.map +1 -1
- package/components/LexicalEditor/LexicalLinkForm.d.ts +6 -0
- package/components/LexicalEditor/LexicalLinkForm.js +92 -0
- package/components/LexicalEditor/LexicalLinkForm.js.map +1 -0
- package/components/LexicalEditor/index.d.ts +3 -1
- package/components/LexicalEditor/index.js +3 -1
- package/components/LexicalEditor/index.js.map +1 -1
- package/components/LexicalEditor/lexicalValueWithHtml.d.ts +7 -0
- package/components/LexicalEditor/lexicalValueWithHtml.js +36 -0
- package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -0
- package/components/NavigationPrompt.d.ts +27 -0
- package/components/NavigationPrompt.js +39 -0
- package/components/NavigationPrompt.js.map +1 -0
- package/components/NotAuthorizedError/NotAuthorizedError.d.ts +2 -0
- package/components/NotAuthorizedError/NotAuthorizedError.js +20 -0
- package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -0
- package/components/NotAuthorizedError/SecureRouteError.svg +1 -0
- package/components/NotAuthorizedError/index.d.ts +1 -0
- package/components/NotAuthorizedError/index.js +3 -0
- package/components/NotAuthorizedError/index.js.map +1 -0
- package/components/OptionsMenu/OptionsMenu.js +1 -1
- package/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/components/OptionsMenu/index.d.ts +4 -4
- package/components/OptionsMenu/index.js +4 -4
- package/components/OptionsMenu/index.js.map +1 -1
- package/components/OptionsMenu/useOptionsMenuItem.d.ts +2 -2
- package/components/OptionsMenu/useOptionsMenuItem.js +2 -2
- package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -1
- package/components/OverlayLayout/OverlayLayout.d.ts +1 -1
- package/components/OverlayLayout/OverlayLayout.js +8 -11
- package/components/OverlayLayout/OverlayLayout.js.map +1 -1
- package/components/OverlayLayout/components/OverlayBackdrop.js +1 -1
- package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -1
- package/components/OverlayLayout/components/OverlayContent.js +1 -1
- package/components/OverlayLayout/components/OverlayContent.js.map +1 -1
- package/components/OverlayLayout/components/OverlayHeader.js +3 -3
- package/components/OverlayLayout/components/OverlayHeader.js.map +1 -1
- package/components/OverlayLayout/components/OverlayRoot.js +1 -1
- package/components/OverlayLayout/components/OverlayRoot.js.map +1 -1
- package/components/OverlayLayout/components/index.d.ts +4 -4
- package/components/OverlayLayout/components/index.js +4 -4
- package/components/OverlayLayout/components/index.js.map +1 -1
- package/components/OverlayLayout/index.d.ts +1 -1
- package/components/OverlayLayout/index.js +1 -1
- package/components/OverlayLayout/index.js.map +1 -1
- package/components/Permissions/Permissions.d.ts +1 -3
- package/components/Permissions/Permissions.js +37 -31
- package/components/Permissions/Permissions.js.map +1 -1
- package/components/Permissions/PermissionsGroup.js +2 -2
- package/components/Permissions/PermissionsGroup.js.map +1 -1
- package/components/Permissions/StyledComponents.js +1 -1
- package/components/Permissions/StyledComponents.js.map +1 -1
- package/components/Permissions/index.d.ts +4 -4
- package/components/Permissions/index.js +4 -4
- package/components/Permissions/index.js.map +1 -1
- package/components/RegisterFeature.d.ts +11 -0
- package/components/RegisterFeature.js +26 -0
- package/components/RegisterFeature.js.map +1 -0
- package/components/ResizablePanels/index.d.ts +1 -1
- package/components/ResizablePanels/index.js +1 -1
- package/components/ResizablePanels/index.js.map +1 -1
- package/components/RoleAutocomplete/graphql.d.ts +1 -0
- package/components/RoleAutocomplete/graphql.js +18 -0
- package/components/RoleAutocomplete/graphql.js.map +1 -0
- package/components/RoleAutocomplete/index.d.ts +5 -0
- package/components/RoleAutocomplete/index.js +18 -0
- package/components/RoleAutocomplete/index.js.map +1 -0
- package/components/RolesMultiAutocomplete/graphql.d.ts +1 -0
- package/components/RolesMultiAutocomplete/graphql.js +23 -0
- package/components/RolesMultiAutocomplete/graphql.js.map +1 -0
- package/components/RolesMultiAutocomplete/index.d.ts +5 -0
- package/components/RolesMultiAutocomplete/index.js +19 -0
- package/components/RolesMultiAutocomplete/index.js.map +1 -0
- package/components/SearchUI.d.ts +1 -2
- package/components/SearchUI.js +1 -2
- package/components/SearchUI.js.map +1 -1
- package/components/SimpleForm/SimpleForm.d.ts +1 -1
- package/components/SimpleForm/SimpleForm.js +10 -10
- package/components/SimpleForm/SimpleForm.js.map +1 -1
- package/components/SimpleForm/index.d.ts +1 -1
- package/components/SimpleForm/index.js +1 -1
- package/components/SimpleForm/index.js.map +1 -1
- package/components/SimpleUI/InputField.js +3 -3
- package/components/SimpleUI/InputField.js.map +1 -1
- package/components/SingleImageUpload.d.ts +3 -8
- package/components/SingleImageUpload.js +1 -1
- package/components/SingleImageUpload.js.map +1 -1
- package/components/SplitView/SplitView.d.ts +7 -7
- package/components/SplitView/SplitView.js +20 -12
- package/components/SplitView/SplitView.js.map +1 -1
- package/components/SplitView/index.d.ts +1 -1
- package/components/SplitView/index.js +1 -1
- package/components/SplitView/index.js.map +1 -1
- package/components/StateInspector.js +1 -1
- package/components/StateInspector.js.map +1 -1
- package/components/TeamAutocomplete/graphql.d.ts +1 -0
- package/components/TeamAutocomplete/graphql.js +18 -0
- package/components/TeamAutocomplete/graphql.js.map +1 -0
- package/components/TeamAutocomplete/index.d.ts +5 -0
- package/components/TeamAutocomplete/index.js +18 -0
- package/components/TeamAutocomplete/index.js.map +1 -0
- package/components/TeamsMultiAutocomplete/graphql.d.ts +1 -0
- package/components/TeamsMultiAutocomplete/graphql.js +23 -0
- package/components/TeamsMultiAutocomplete/graphql.js.map +1 -0
- package/components/TeamsMultiAutocomplete/index.d.ts +5 -0
- package/components/TeamsMultiAutocomplete/index.js +19 -0
- package/components/TeamsMultiAutocomplete/index.js.map +1 -0
- package/components/Wcp.d.ts +4 -0
- package/components/Wcp.js +16 -2
- package/components/Wcp.js.map +1 -1
- package/components/index.d.ts +30 -3
- package/components/index.js +29 -3
- package/components/index.js.map +1 -1
- package/config/AdminConfig/Dashboard.d.ts +3 -0
- package/config/AdminConfig/Dashboard.js +6 -0
- package/config/AdminConfig/Dashboard.js.map +1 -0
- package/config/AdminConfig/LexicalTheme/Color.d.ts +11 -0
- package/config/AdminConfig/LexicalTheme/Color.js +45 -0
- package/config/AdminConfig/LexicalTheme/Color.js.map +1 -0
- package/config/AdminConfig/LexicalTheme/Typography.d.ts +30 -0
- package/config/AdminConfig/LexicalTheme/Typography.js +79 -0
- package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -0
- package/config/AdminConfig/LexicalTheme.d.ts +9 -0
- package/config/AdminConfig/LexicalTheme.js +8 -0
- package/config/AdminConfig/LexicalTheme.js.map +1 -0
- package/config/AdminConfig/Logo.d.ts +24 -0
- package/config/AdminConfig/Logo.js +21 -0
- package/config/AdminConfig/Logo.js.map +1 -0
- package/config/AdminConfig/Menu/MenuGroup.d.ts +10 -10
- package/config/AdminConfig/Menu/MenuGroup.js +1 -1
- package/config/AdminConfig/Menu/MenuGroup.js.map +1 -1
- package/config/AdminConfig/Menu/MenuItem.d.ts +9 -9
- package/config/AdminConfig/Menu/MenuItem.js +1 -1
- package/config/AdminConfig/Menu/MenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/MenuLink.d.ts +14 -14
- package/config/AdminConfig/Menu/MenuLink.js +10 -4
- package/config/AdminConfig/Menu/MenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +2 -2
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu.d.ts +15 -15
- package/config/AdminConfig/Menu/SupportMenu.js +3 -3
- package/config/AdminConfig/Menu/SupportMenu.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.d.ts +14 -15
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.d.ts +14 -15
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.d.ts +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu.d.ts +31 -31
- package/config/AdminConfig/Menu/UserMenu.js +4 -4
- package/config/AdminConfig/Menu/UserMenu.js.map +1 -1
- package/config/AdminConfig/Menu.d.ts +105 -103
- package/config/AdminConfig/Menu.js +17 -7
- package/config/AdminConfig/Menu.js.map +1 -1
- package/config/AdminConfig/Route.d.ts +1 -1
- package/config/AdminConfig/Route.js +2 -2
- package/config/AdminConfig/Route.js.map +1 -1
- package/config/AdminConfig/Security.d.ts +3 -0
- package/config/AdminConfig/Security.js +6 -0
- package/config/AdminConfig/Security.js.map +1 -0
- package/config/AdminConfig/SecurityPermissions.d.ts +17 -0
- package/config/AdminConfig/SecurityPermissions.js +31 -0
- package/config/AdminConfig/SecurityPermissions.js.map +1 -0
- package/config/AdminConfig/Tenant/TenantLogo.d.ts +8 -7
- package/config/AdminConfig/Tenant/TenantLogo.js +14 -6
- package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -1
- package/config/AdminConfig/Tenant/TenantName.d.ts +1 -1
- package/config/AdminConfig/Tenant/TenantName.js +5 -2
- package/config/AdminConfig/Tenant/TenantName.js.map +1 -1
- package/config/AdminConfig/Tenant.d.ts +14 -31
- package/config/AdminConfig/Tenant.js +4 -13
- package/config/AdminConfig/Tenant.js.map +1 -1
- package/config/AdminConfig/Theme/assignColor.d.ts +1 -1
- package/config/AdminConfig/Theme/assignColor.js +1 -1
- package/config/AdminConfig/Theme/assignColor.js.map +1 -1
- package/config/AdminConfig/Theme/types.d.ts +1 -1
- package/config/AdminConfig/Theme/types.js.map +1 -1
- package/config/AdminConfig/Theme.d.ts +1 -1
- package/config/AdminConfig/Theme.js +1 -1
- package/config/AdminConfig/Theme.js.map +1 -1
- package/config/AdminConfig/Title.d.ts +23 -0
- package/config/AdminConfig/Title.js +16 -0
- package/config/AdminConfig/Title.js.map +1 -0
- package/config/AdminConfig/Widget.d.ts +15 -0
- package/config/AdminConfig/Widget.js +36 -0
- package/config/AdminConfig/Widget.js.map +1 -0
- package/config/AdminConfig.d.ts +202 -150
- package/config/AdminConfig.js +35 -9
- package/config/AdminConfig.js.map +1 -1
- package/config/createAdminConfig.js.map +1 -1
- package/css/tokens.css +379 -0
- package/css/typography.css +70 -0
- package/domain/Identity.d.ts +59 -0
- package/domain/Identity.js +96 -0
- package/domain/Identity.js.map +1 -0
- package/errors/ErrorOverlayNetworkErrorHandler.d.ts +11 -0
- package/errors/ErrorOverlayNetworkErrorHandler.js +66 -0
- package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -0
- package/errors/TenantIsDisabled.d.ts +2 -0
- package/errors/TenantIsDisabled.js +23 -0
- package/errors/TenantIsDisabled.js.map +1 -0
- package/exports/admin/build-params.d.ts +1 -0
- package/exports/admin/build-params.js +3 -0
- package/exports/admin/build-params.js.map +1 -0
- package/exports/admin/configs.d.ts +1 -0
- package/exports/admin/configs.js +3 -0
- package/exports/admin/configs.js.map +1 -0
- package/exports/admin/form.d.ts +11 -0
- package/exports/admin/form.js +12 -0
- package/exports/admin/form.js.map +1 -0
- package/exports/admin/security.d.ts +8 -0
- package/exports/admin/security.js +10 -0
- package/exports/admin/security.js.map +1 -0
- package/exports/admin/tenancy.d.ts +2 -0
- package/exports/admin/tenancy.js +4 -0
- package/exports/admin/tenancy.js.map +1 -0
- package/exports/admin/ui.d.ts +4 -0
- package/exports/admin/ui.js +6 -0
- package/exports/admin/ui.js.map +1 -0
- package/exports/admin.d.ts +7 -0
- package/exports/admin.js +9 -0
- package/exports/admin.js.map +1 -0
- package/features/apolloClient/abstraction.d.ts +5 -0
- package/features/apolloClient/abstraction.js +4 -0
- package/features/apolloClient/abstraction.js.map +1 -0
- package/features/apolloClient/feature.d.ts +2 -0
- package/features/apolloClient/feature.js +39 -0
- package/features/apolloClient/feature.js.map +1 -0
- package/features/buildParams/BuildParams.d.ts +9 -0
- package/features/buildParams/BuildParams.js +18 -0
- package/features/buildParams/BuildParams.js.map +1 -0
- package/features/buildParams/abstractions.d.ts +15 -0
- package/features/buildParams/abstractions.js +5 -0
- package/features/buildParams/abstractions.js.map +1 -0
- package/features/buildParams/feature.d.ts +1 -0
- package/features/buildParams/feature.js +10 -0
- package/features/buildParams/feature.js.map +1 -0
- package/features/buildParams/index.d.ts +2 -0
- package/features/buildParams/index.js +4 -0
- package/features/buildParams/index.js.map +1 -0
- package/features/security/AuthenticationContext/AuthenticationContext.d.ts +15 -0
- package/features/security/AuthenticationContext/AuthenticationContext.js +31 -0
- package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -0
- package/features/security/AuthenticationContext/GraphQLClientDecorator.d.ts +12 -0
- package/features/security/AuthenticationContext/GraphQLClientDecorator.js +30 -0
- package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -0
- package/features/security/AuthenticationContext/InternalIdTokenProvider.d.ts +10 -0
- package/features/security/AuthenticationContext/InternalIdTokenProvider.js +17 -0
- package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -0
- package/features/security/AuthenticationContext/abstractions.d.ts +26 -0
- package/features/security/AuthenticationContext/abstractions.js +5 -0
- package/features/security/AuthenticationContext/abstractions.js.map +1 -0
- package/features/security/AuthenticationContext/feature.d.ts +3 -0
- package/features/security/AuthenticationContext/feature.js +20 -0
- package/features/security/AuthenticationContext/feature.js.map +1 -0
- package/features/security/AuthenticationContext/index.d.ts +1 -0
- package/features/security/AuthenticationContext/index.js +3 -0
- package/features/security/AuthenticationContext/index.js.map +1 -0
- package/features/security/AuthenticationContext/types.d.ts +11 -0
- package/features/security/AuthenticationContext/types.js.map +1 -0
- package/features/security/IdentityContext/IdentityContext.d.ts +13 -0
- package/features/security/IdentityContext/IdentityContext.js +24 -0
- package/features/security/IdentityContext/IdentityContext.js.map +1 -0
- package/features/security/IdentityContext/abstractions.d.ts +10 -0
- package/features/security/IdentityContext/abstractions.js +4 -0
- package/features/security/IdentityContext/abstractions.js.map +1 -0
- package/features/security/IdentityContext/feature.d.ts +3 -0
- package/features/security/IdentityContext/feature.js +16 -0
- package/features/security/IdentityContext/feature.js.map +1 -0
- package/features/security/IdentityContext/index.d.ts +2 -0
- package/features/security/IdentityContext/index.js +4 -0
- package/features/security/IdentityContext/index.js.map +1 -0
- package/features/security/LogIn/IdentityMapper.d.ts +9 -0
- package/features/security/LogIn/IdentityMapper.js +13 -0
- package/features/security/LogIn/IdentityMapper.js.map +1 -0
- package/features/security/LogIn/LogInGateway.d.ts +11 -0
- package/features/security/LogIn/LogInGateway.js +27 -0
- package/features/security/LogIn/LogInGateway.js.map +1 -0
- package/features/security/LogIn/LogInRepository.d.ts +14 -0
- package/features/security/LogIn/LogInRepository.js +19 -0
- package/features/security/LogIn/LogInRepository.js.map +1 -0
- package/features/security/LogIn/LogInUseCase.d.ts +15 -0
- package/features/security/LogIn/LogInUseCase.js +40 -0
- package/features/security/LogIn/LogInUseCase.js.map +1 -0
- package/features/security/LogIn/abstractions.d.ts +48 -0
- package/features/security/LogIn/abstractions.js +19 -0
- package/features/security/LogIn/abstractions.js.map +1 -0
- package/features/security/LogIn/createLoginMutation.d.ts +1 -0
- package/features/security/LogIn/createLoginMutation.js +49 -0
- package/features/security/LogIn/createLoginMutation.js.map +1 -0
- package/features/security/LogIn/feature.d.ts +3 -0
- package/features/security/LogIn/feature.js +22 -0
- package/features/security/LogIn/feature.js.map +1 -0
- package/features/security/LogIn/index.d.ts +1 -0
- package/features/security/LogIn/index.js +3 -0
- package/features/security/LogIn/index.js.map +1 -0
- package/features/security/LogOut/LogOutUseCase.d.ts +13 -0
- package/features/security/LogOut/LogOutUseCase.js +23 -0
- package/features/security/LogOut/LogOutUseCase.js.map +1 -0
- package/features/security/LogOut/abstractions.d.ts +7 -0
- package/features/security/LogOut/abstractions.js +4 -0
- package/features/security/LogOut/abstractions.js.map +1 -0
- package/features/security/LogOut/feature.d.ts +3 -0
- package/features/security/LogOut/feature.js +16 -0
- package/features/security/LogOut/feature.js.map +1 -0
- package/features/security/LogOut/index.d.ts +2 -0
- package/features/security/LogOut/index.js +4 -0
- package/features/security/LogOut/index.js.map +1 -0
- package/features/security/SecurityFeature.d.ts +1 -0
- package/features/security/SecurityFeature.js +16 -0
- package/features/security/SecurityFeature.js.map +1 -0
- package/features/telemetry/TelemetryService.d.ts +6 -0
- package/features/telemetry/TelemetryService.js +20 -0
- package/features/telemetry/TelemetryService.js.map +1 -0
- package/features/telemetry/abstractions.d.ts +7 -0
- package/features/telemetry/abstractions.js +4 -0
- package/features/telemetry/abstractions.js.map +1 -0
- package/features/telemetry/feature.d.ts +3 -0
- package/features/telemetry/feature.js +16 -0
- package/features/telemetry/feature.js.map +1 -0
- package/features/telemetry/index.d.ts +2 -0
- package/features/telemetry/index.js +4 -0
- package/features/telemetry/index.js.map +1 -0
- package/features/tenancy/GraphQLClientDecorator.d.ts +12 -0
- package/features/tenancy/GraphQLClientDecorator.js +27 -0
- package/features/tenancy/GraphQLClientDecorator.js.map +1 -0
- package/features/tenancy/TenantContext.d.ts +17 -0
- package/features/tenancy/TenantContext.js +61 -0
- package/features/tenancy/TenantContext.js.map +1 -0
- package/features/tenancy/abstractions.d.ts +14 -0
- package/features/tenancy/abstractions.js +4 -0
- package/features/tenancy/abstractions.js.map +1 -0
- package/features/tenancy/feature.d.ts +5 -0
- package/features/tenancy/feature.js +41 -0
- package/features/tenancy/feature.js.map +1 -0
- package/features/tenancy/types.d.ts +4 -0
- package/features/tenancy/types.js +3 -0
- package/features/tenancy/types.js.map +1 -0
- package/features/wcp/ReactLicense.d.ts +19 -0
- package/features/wcp/ReactLicense.js +46 -0
- package/features/wcp/ReactLicense.js.map +1 -0
- package/features/wcp/WcpGateway.d.ts +10 -0
- package/features/wcp/WcpGateway.js +73 -0
- package/features/wcp/WcpGateway.js.map +1 -0
- package/features/wcp/WcpService.d.ts +20 -0
- package/features/wcp/WcpService.js +84 -0
- package/features/wcp/WcpService.js.map +1 -0
- package/features/wcp/abstractions.d.ts +19 -0
- package/features/wcp/abstractions.js +5 -0
- package/features/wcp/abstractions.js.map +1 -0
- package/features/wcp/feature.d.ts +3 -0
- package/features/wcp/feature.js +18 -0
- package/features/wcp/feature.js.map +1 -0
- package/features/wcp/types.d.ts +21 -0
- package/features/wcp/types.js +3 -0
- package/features/wcp/types.js.map +1 -0
- package/hooks/index.d.ts +11 -10
- package/hooks/index.js +11 -10
- package/hooks/index.js.map +1 -1
- package/hooks/useConfirmationDialog.js +3 -3
- package/hooks/useConfirmationDialog.js.map +1 -1
- package/hooks/useDialog.js +1 -1
- package/hooks/useDialog.js.map +1 -1
- package/hooks/useKeyHandler.js +1 -1
- package/hooks/useKeyHandler.js.map +1 -1
- package/hooks/useModKey.js +1 -2
- package/hooks/useModKey.js.map +1 -1
- package/hooks/useShiftKey.js +1 -1
- package/hooks/useShiftKey.js.map +1 -1
- package/hooks/useStateIfMounted.d.ts +0 -1
- package/hooks/useStateIfMounted.js +1 -1
- package/hooks/useStateIfMounted.js.map +1 -1
- package/hooks/useToggler.d.ts +7 -0
- package/hooks/useToggler.js +15 -0
- package/hooks/useToggler.js.map +1 -0
- package/index.d.ts +34 -45
- package/index.js +36 -43
- package/index.js.map +1 -1
- package/lexical.css +2 -0
- package/package.json +42 -47
- package/permissions/PermissionRenderer.d.ts +6 -0
- package/permissions/PermissionRenderer.js +219 -0
- package/permissions/PermissionRenderer.js.map +1 -0
- package/permissions/PermissionValueContext.d.ts +11 -0
- package/permissions/PermissionValueContext.js +23 -0
- package/permissions/PermissionValueContext.js.map +1 -0
- package/permissions/createHasPermission.d.ts +3 -0
- package/permissions/createHasPermission.js +36 -0
- package/permissions/createHasPermission.js.map +1 -0
- package/permissions/createPermissionSchema.d.ts +2 -0
- package/permissions/createPermissionSchema.js +8 -0
- package/permissions/createPermissionSchema.js.map +1 -0
- package/permissions/index.d.ts +8 -0
- package/permissions/index.js +8 -0
- package/permissions/index.js.map +1 -0
- package/permissions/types.d.ts +242 -0
- package/permissions/types.js +3 -0
- package/permissions/types.js.map +1 -0
- package/permissions/usePermissionForm.d.ts +17 -0
- package/permissions/usePermissionForm.js +256 -0
- package/permissions/usePermissionForm.js.map +1 -0
- package/permissions/usePermissions.d.ts +3 -0
- package/permissions/usePermissions.js +180 -0
- package/permissions/usePermissions.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.d.ts +8 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js +70 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.d.ts +2 -0
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +17 -0
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/index.d.ts +1 -0
- package/presentation/installation/components/SystemInstaller/index.js +3 -0
- package/presentation/installation/components/SystemInstaller/index.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.d.ts +8 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +32 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.d.ts +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +15 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.d.ts +7 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +69 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.d.ts +7 -0
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +95 -0
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/Center.d.ts +4 -0
- package/presentation/installation/components/SystemInstaller/steps/Center.js +10 -0
- package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/Container.d.ts +8 -0
- package/presentation/installation/components/SystemInstaller/steps/Container.js +28 -0
- package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.d.ts +11 -0
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +58 -0
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.d.ts +7 -0
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +21 -0
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/introduction.svg +154 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.d.ts +1 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.js +3 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.d.ts +10 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +63 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.d.ts +24 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +138 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.d.ts +11 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +30 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/abstractions.d.ts +59 -0
- package/presentation/installation/presenters/SystemInstaller/abstractions.js +6 -0
- package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/feature.d.ts +3 -0
- package/presentation/installation/presenters/SystemInstaller/feature.js +20 -0
- package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/index.d.ts +3 -0
- package/presentation/installation/presenters/SystemInstaller/index.js +4 -0
- package/presentation/installation/presenters/SystemInstaller/index.js.map +1 -0
- package/presentation/security/components/HasPermission.d.ts +10 -0
- package/presentation/security/components/HasPermission.js +31 -0
- package/presentation/security/components/HasPermission.js.map +1 -0
- package/presentation/security/components/SecureRoute.d.ts +7 -0
- package/presentation/security/components/SecureRoute.js +16 -0
- package/presentation/security/components/SecureRoute.js.map +1 -0
- package/presentation/security/hooks/useAuthentication.d.ts +9 -0
- package/presentation/security/hooks/useAuthentication.js +24 -0
- package/presentation/security/hooks/useAuthentication.js.map +1 -0
- package/presentation/security/hooks/useIdentity.d.ts +6 -0
- package/presentation/security/hooks/useIdentity.js +25 -0
- package/presentation/security/hooks/useIdentity.js.map +1 -0
- package/presentation/security/hooks/useSecurity.d.ts +10 -0
- package/presentation/security/hooks/useSecurity.js +28 -0
- package/presentation/security/hooks/useSecurity.js.map +1 -0
- package/presentation/tenancy/TenancyProvider.d.ts +6 -0
- package/presentation/tenancy/TenancyProvider.js +43 -0
- package/presentation/tenancy/TenancyProvider.js.map +1 -0
- package/presentation/tenancy/createTenancyProvider.d.ts +1 -0
- package/presentation/tenancy/createTenancyProvider.js +14 -0
- package/presentation/tenancy/createTenancyProvider.js.map +1 -0
- package/presentation/tenancy/useTenantContext.d.ts +5 -0
- package/presentation/tenancy/useTenantContext.js +24 -0
- package/presentation/tenancy/useTenantContext.js.map +1 -0
- package/presentation/wcp/WcpProvider.d.ts +7 -0
- package/presentation/wcp/WcpProvider.js +26 -0
- package/presentation/wcp/WcpProvider.js.map +1 -0
- package/presentation/wcp/useWcp.d.ts +2 -0
- package/presentation/wcp/useWcp.js +18 -0
- package/presentation/wcp/useWcp.js.map +1 -0
- package/routes.d.ts +6 -0
- package/routes.js +17 -0
- package/routes.js.map +1 -0
- package/types.d.ts +3 -76
- package/types.js +1 -5
- package/types.js.map +1 -1
- package/base/Base/Routes.d.ts +0 -2
- package/base/Base/Routes.js +0 -24
- package/base/Base/Routes.js.map +0 -1
- package/base/providers/TelemetryProvider.d.ts +0 -1
- package/base/providers/TelemetryProvider.js +0 -22
- package/base/providers/TelemetryProvider.js.map +0 -1
- package/base/providers/ViewCompositionProvider.d.ts +0 -21
- package/base/providers/ViewCompositionProvider.js +0 -47
- package/base/providers/ViewCompositionProvider.js.map +0 -1
- package/base/ui/LocaleSelector.d.ts +0 -39
- package/base/ui/LocaleSelector.js +0 -8
- package/base/ui/LocaleSelector.js.map +0 -1
- package/components/AppInstaller/AppInstaller.d.ts +0 -11
- package/components/AppInstaller/AppInstaller.js +0 -113
- package/components/AppInstaller/AppInstaller.js.map +0 -1
- package/components/AppInstaller/Sidebar.d.ts +0 -9
- package/components/AppInstaller/Sidebar.js +0 -108
- package/components/AppInstaller/Sidebar.js.map +0 -1
- package/components/AppInstaller/assets/sign-in-divider.svg +0 -19
- package/components/AppInstaller/index.d.ts +0 -2
- package/components/AppInstaller/index.js +0 -17
- package/components/AppInstaller/index.js.map +0 -1
- package/components/AppInstaller/styled.d.ts +0 -19
- package/components/AppInstaller/styled.js +0 -75
- package/components/AppInstaller/styled.js.map +0 -1
- package/components/AppInstaller/useInstaller.d.ts +0 -25
- package/components/AppInstaller/useInstaller.js +0 -169
- package/components/AppInstaller/useInstaller.js.map +0 -1
- package/components/Dialogs/CustomDialog.d.ts +0 -17
- package/components/Dialogs/CustomDialog.js +0 -48
- package/components/Dialogs/CustomDialog.js.map +0 -1
- package/components/RichTextEditor/RichTextEditor.d.ts +0 -3
- package/components/RichTextEditor/RichTextEditor.js +0 -16
- package/components/RichTextEditor/RichTextEditor.js.map +0 -1
- package/components/RichTextEditor/index.d.ts +0 -2
- package/components/RichTextEditor/index.js +0 -4
- package/components/RichTextEditor/index.js.map +0 -1
- package/components/RichTextEditor/styles.scss +0 -96
- package/components/RichTextEditor/tools/header/index.d.ts +0 -228
- package/components/RichTextEditor/tools/header/index.js +0 -615
- package/components/RichTextEditor/tools/header/index.js.map +0 -1
- package/components/RichTextEditor/tools/header/styles.scss +0 -48
- package/components/RichTextEditor/tools/image/index.d.ts +0 -122
- package/components/RichTextEditor/tools/image/index.js +0 -202
- package/components/RichTextEditor/tools/image/index.js.map +0 -1
- package/components/RichTextEditor/tools/image/styles.scss +0 -90
- package/components/RichTextEditor/tools/image/svgs.d.ts +0 -6
- package/components/RichTextEditor/tools/image/svgs.js +0 -7
- package/components/RichTextEditor/tools/image/svgs.js.map +0 -1
- package/components/RichTextEditor/tools/image/tunes.d.ts +0 -55
- package/components/RichTextEditor/tools/image/tunes.js +0 -103
- package/components/RichTextEditor/tools/image/tunes.js.map +0 -1
- package/components/RichTextEditor/tools/image/types.d.ts +0 -29
- package/components/RichTextEditor/tools/image/types.js.map +0 -1
- package/components/RichTextEditor/tools/image/ui.d.ts +0 -120
- package/components/RichTextEditor/tools/image/ui.js +0 -245
- package/components/RichTextEditor/tools/image/ui.js.map +0 -1
- package/components/RichTextEditor/tools/paragraph/index.d.ts +0 -208
- package/components/RichTextEditor/tools/paragraph/index.js +0 -435
- package/components/RichTextEditor/tools/paragraph/index.js.map +0 -1
- package/components/RichTextEditor/tools/paragraph/styles.scss +0 -29
- package/components/RichTextEditor/tools/textColor/index.d.ts +0 -61
- package/components/RichTextEditor/tools/textColor/index.js +0 -197
- package/components/RichTextEditor/tools/textColor/index.js.map +0 -1
- package/components/RichTextEditor/tools/textColor/styles.scss +0 -21
- package/components/RichTextEditor/tools/utils.d.ts +0 -19
- package/components/RichTextEditor/tools/utils.js +0 -24
- package/components/RichTextEditor/tools/utils.js.map +0 -1
- package/components/Routes.d.ts +0 -6
- package/components/Routes.js +0 -34
- package/components/Routes.js.map +0 -1
- package/plugins/PermissionRendererPlugin.d.ts +0 -22
- package/plugins/PermissionRendererPlugin.js +0 -19
- package/plugins/PermissionRendererPlugin.js.map +0 -1
- package/plugins/uiLayoutRenderer/index.d.ts +0 -2
- package/plugins/uiLayoutRenderer/index.js +0 -53
- package/plugins/uiLayoutRenderer/index.js.map +0 -1
- package/ui/UIElement.d.ts +0 -2
- package/ui/UIElement.js +0 -3
- package/ui/UIElement.js.map +0 -1
- package/ui/UILayout.d.ts +0 -1
- package/ui/UILayout.js +0 -3
- package/ui/UILayout.js.map +0 -1
- package/ui/UIRenderer.d.ts +0 -2
- package/ui/UIRenderer.js +0 -3
- package/ui/UIRenderer.js.map +0 -1
- package/ui/UIView.d.ts +0 -2
- package/ui/UIView.js +0 -3
- package/ui/UIView.js.map +0 -1
- package/ui/elements/AccordionElement.d.ts +0 -28
- package/ui/elements/AccordionElement.js +0 -48
- package/ui/elements/AccordionElement.js.map +0 -1
- package/ui/elements/ButtonElement.d.ts +0 -25
- package/ui/elements/ButtonElement.js +0 -52
- package/ui/elements/ButtonElement.js.map +0 -1
- package/ui/elements/ButtonGroupElement.d.ts +0 -7
- package/ui/elements/ButtonGroupElement.js +0 -29
- package/ui/elements/ButtonGroupElement.js.map +0 -1
- package/ui/elements/GenericElement.d.ts +0 -1
- package/ui/elements/GenericElement.js +0 -3
- package/ui/elements/GenericElement.js.map +0 -1
- package/ui/elements/LabelElement.d.ts +0 -17
- package/ui/elements/LabelElement.js +0 -23
- package/ui/elements/LabelElement.js.map +0 -1
- package/ui/elements/NavigationMenuElement.d.ts +0 -34
- package/ui/elements/NavigationMenuElement.js +0 -88
- package/ui/elements/NavigationMenuElement.js.map +0 -1
- package/ui/elements/PanelElement.d.ts +0 -3
- package/ui/elements/PanelElement.js +0 -4
- package/ui/elements/PanelElement.js.map +0 -1
- package/ui/elements/PlaceholderElement.d.ts +0 -6
- package/ui/elements/PlaceholderElement.js +0 -11
- package/ui/elements/PlaceholderElement.js.map +0 -1
- package/ui/elements/SmallButtonElement.d.ts +0 -8
- package/ui/elements/SmallButtonElement.js +0 -24
- package/ui/elements/SmallButtonElement.js.map +0 -1
- package/ui/elements/TypographyElement.d.ts +0 -14
- package/ui/elements/TypographyElement.js +0 -23
- package/ui/elements/TypographyElement.js.map +0 -1
- package/ui/elements/ViewElement.d.ts +0 -1
- package/ui/elements/ViewElement.js +0 -3
- package/ui/elements/ViewElement.js.map +0 -1
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +0 -7
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +0 -26
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js.map +0 -1
- package/ui/elements/form/DynamicFieldsetElement.d.ts +0 -44
- package/ui/elements/form/DynamicFieldsetElement.js +0 -97
- package/ui/elements/form/DynamicFieldsetElement.js.map +0 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +0 -4
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js +0 -10
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js.map +0 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +0 -8
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +0 -47
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js.map +0 -1
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +0 -14
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +0 -73
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js.map +0 -1
- package/ui/elements/form/FileManagerElement/styled.d.ts +0 -23
- package/ui/elements/form/FileManagerElement/styled.js +0 -108
- package/ui/elements/form/FileManagerElement/styled.js.map +0 -1
- package/ui/elements/form/FileManagerElement.d.ts +0 -25
- package/ui/elements/form/FileManagerElement.js +0 -46
- package/ui/elements/form/FileManagerElement.js.map +0 -1
- package/ui/elements/form/FormElement.d.ts +0 -22
- package/ui/elements/form/FormElement.js +0 -20
- package/ui/elements/form/FormElement.js.map +0 -1
- package/ui/elements/form/FormFieldElement.d.ts +0 -57
- package/ui/elements/form/FormFieldElement.js +0 -113
- package/ui/elements/form/FormFieldElement.js.map +0 -1
- package/ui/elements/form/HiddenElement.d.ts +0 -7
- package/ui/elements/form/HiddenElement.js +0 -25
- package/ui/elements/form/HiddenElement.js.map +0 -1
- package/ui/elements/form/InputElement.d.ts +0 -8
- package/ui/elements/form/InputElement.js +0 -32
- package/ui/elements/form/InputElement.js.map +0 -1
- package/ui/elements/form/PasswordElement.d.ts +0 -6
- package/ui/elements/form/PasswordElement.js +0 -29
- package/ui/elements/form/PasswordElement.js.map +0 -1
- package/ui/elements/form/README.md +0 -2
- package/ui/elements/form/SelectElement.d.ts +0 -16
- package/ui/elements/form/SelectElement.js +0 -42
- package/ui/elements/form/SelectElement.js.map +0 -1
- package/ui/elements/form/TextareaElement.d.ts +0 -16
- package/ui/elements/form/TextareaElement.js +0 -34
- package/ui/elements/form/TextareaElement.js.map +0 -1
- package/ui/views/AdminView/ContentElement.d.ts +0 -4
- package/ui/views/AdminView/ContentElement.js +0 -37
- package/ui/views/AdminView/ContentElement.js.map +0 -1
- package/ui/views/AdminView/HeaderElement.d.ts +0 -13
- package/ui/views/AdminView/HeaderElement.js +0 -68
- package/ui/views/AdminView/HeaderElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +0 -7
- package/ui/views/AdminView/HeaderSectionCenterElement.js +0 -21
- package/ui/views/AdminView/HeaderSectionCenterElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +0 -7
- package/ui/views/AdminView/HeaderSectionLeftElement.js +0 -21
- package/ui/views/AdminView/HeaderSectionLeftElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +0 -7
- package/ui/views/AdminView/HeaderSectionRightElement.js +0 -21
- package/ui/views/AdminView/HeaderSectionRightElement.js.map +0 -1
- package/ui/views/AdminView/components/Dialog.d.ts +0 -2
- package/ui/views/AdminView/components/Dialog.js +0 -41
- package/ui/views/AdminView/components/Dialog.js.map +0 -1
- package/ui/views/AdminView/components/Hamburger.d.ts +0 -3
- package/ui/views/AdminView/components/Hamburger.js +0 -23
- package/ui/views/AdminView/components/Hamburger.js.map +0 -1
- package/ui/views/FormView/FormContainerElement.d.ts +0 -13
- package/ui/views/FormView/FormContainerElement.js +0 -19
- package/ui/views/FormView/FormContainerElement.js.map +0 -1
- package/ui/views/FormView/FormContentElement.d.ts +0 -6
- package/ui/views/FormView/FormContentElement.js +0 -10
- package/ui/views/FormView/FormContentElement.js.map +0 -1
- package/ui/views/FormView/FormFooterElement.d.ts +0 -7
- package/ui/views/FormView/FormFooterElement.js +0 -14
- package/ui/views/FormView/FormFooterElement.js.map +0 -1
- package/ui/views/FormView/FormHeaderElement.d.ts +0 -15
- package/ui/views/FormView/FormHeaderElement.js +0 -30
- package/ui/views/FormView/FormHeaderElement.js.map +0 -1
- package/ui/views/FormView.d.ts +0 -40
- package/ui/views/FormView.js +0 -121
- package/ui/views/FormView.js.map +0 -1
- package/ui/views/OverlayView/ContentElement.d.ts +0 -7
- package/ui/views/OverlayView/ContentElement.js +0 -29
- package/ui/views/OverlayView/ContentElement.js.map +0 -1
- package/ui/views/OverlayView/HeaderElement.d.ts +0 -25
- package/ui/views/OverlayView/HeaderElement.js +0 -72
- package/ui/views/OverlayView/HeaderElement.js.map +0 -1
- package/ui/views/OverlayView/HeaderTitleElement.d.ts +0 -15
- package/ui/views/OverlayView/HeaderTitleElement.js +0 -25
- package/ui/views/OverlayView/HeaderTitleElement.js.map +0 -1
- package/ui/views/OverlayView/useOverlayView.d.ts +0 -5
- package/ui/views/OverlayView/useOverlayView.js +0 -34
- package/ui/views/OverlayView/useOverlayView.js.map +0 -1
- package/ui/views/OverlayView.d.ts +0 -30
- package/ui/views/OverlayView.js +0 -109
- package/ui/views/OverlayView.js.map +0 -1
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +0 -12
- package/ui/views/SplitView/SplitViewPanelElement.js +0 -32
- package/ui/views/SplitView/SplitViewPanelElement.js.map +0 -1
- package/ui/views/SplitView.d.ts +0 -21
- package/ui/views/SplitView.js +0 -86
- package/ui/views/SplitView.js.map +0 -1
- /package/base/Base/Tenant/{wby-logo.svg → wby-square.svg} +0 -0
- /package/{components/RichTextEditor/tools/image → features/security/AuthenticationContext}/types.js +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
2
|
-
import { FileManagerElementRenderer } from "./FileManagerElement/FileManagerElementRenderer";
|
|
3
|
-
import { EmptyStateElement } from "./FileManagerElement/EmptyStateElement";
|
|
4
|
-
export class FileManagerElement extends FormFieldElement {
|
|
5
|
-
constructor(id, config) {
|
|
6
|
-
super(id, config);
|
|
7
|
-
this.addRenderer(new FileManagerElementRenderer());
|
|
8
|
-
this._emptyStateElement = new EmptyStateElement("emptyState");
|
|
9
|
-
this.applyPlugins(FileManagerElement);
|
|
10
|
-
}
|
|
11
|
-
getEmptyStateElement() {
|
|
12
|
-
return this._emptyStateElement;
|
|
13
|
-
}
|
|
14
|
-
getAccept() {
|
|
15
|
-
return this.config.accept;
|
|
16
|
-
}
|
|
17
|
-
setAccept(accept) {
|
|
18
|
-
this.config.accept = accept;
|
|
19
|
-
}
|
|
20
|
-
getMaxSize() {
|
|
21
|
-
return this.config.maxSize;
|
|
22
|
-
}
|
|
23
|
-
setMaxSize(maxSize) {
|
|
24
|
-
this.config.maxSize = maxSize;
|
|
25
|
-
}
|
|
26
|
-
getMultipleMaxCount() {
|
|
27
|
-
return this.config.multipleMaxCount;
|
|
28
|
-
}
|
|
29
|
-
setMultipleMaxCount(multipleMaxCount) {
|
|
30
|
-
this.config.multipleMaxCount = multipleMaxCount;
|
|
31
|
-
}
|
|
32
|
-
getMultipleMaxSize() {
|
|
33
|
-
return this.config.multipleMaxSize;
|
|
34
|
-
}
|
|
35
|
-
setMultipleMaxSize(multipleMaxSize) {
|
|
36
|
-
this.config.multipleMaxSize = multipleMaxSize;
|
|
37
|
-
}
|
|
38
|
-
getOnChangePickAttributes() {
|
|
39
|
-
return this.config.onChangePickAttributes;
|
|
40
|
-
}
|
|
41
|
-
setOnChangePickAttributes(attributes) {
|
|
42
|
-
this.config.onChangePickAttributes = attributes;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=FileManagerElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FormFieldElement","FileManagerElementRenderer","EmptyStateElement","FileManagerElement","constructor","id","config","addRenderer","_emptyStateElement","applyPlugins","getEmptyStateElement","getAccept","accept","setAccept","getMaxSize","maxSize","setMaxSize","getMultipleMaxCount","multipleMaxCount","setMultipleMaxCount","getMultipleMaxSize","multipleMaxSize","setMultipleMaxSize","getOnChangePickAttributes","onChangePickAttributes","setOnChangePickAttributes","attributes"],"sources":["FileManagerElement.tsx"],"sourcesContent":["import type { UIElement } from \"~/ui/UIElement\";\nimport type { FormFieldElementConfig } from \"./FormFieldElement\";\nimport { FormFieldElement } from \"./FormFieldElement\";\nimport { FileManagerElementRenderer } from \"./FileManagerElement/FileManagerElementRenderer\";\nimport { EmptyStateElement } from \"./FileManagerElement/EmptyStateElement\";\n\nexport interface FileManagerElementConfig extends FormFieldElementConfig {\n // Define mime types that will be shown and accepted by FileManager\n accept?: string[];\n\n // Define file's max allowed size (default is \"10mb\").\n // Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n maxSize?: number | string;\n\n // Max number of files in a single batch.\n multipleMaxCount?: number;\n\n // Max size of files in a single batch.\n multipleMaxSize?: number | string;\n\n // Define properties that are returned on file(s) selection.\n onChangePickAttributes?: string[];\n\n // Define whether multiple files can be selected1.\n // TODO: multiple?: boolean; - create a new renderer for \"multiple=true\" to render multiple files\n // It should work as in Headless CMS content entry form, see that for an example.\n}\n\nexport class FileManagerElement extends FormFieldElement<FileManagerElementConfig> {\n private readonly _emptyStateElement: UIElement;\n\n public constructor(id: string, config: FileManagerElementConfig) {\n super(id, config);\n\n this.addRenderer(new FileManagerElementRenderer());\n\n this._emptyStateElement = new EmptyStateElement(\"emptyState\");\n\n this.applyPlugins(FileManagerElement);\n }\n\n public getEmptyStateElement() {\n return this._emptyStateElement;\n }\n\n public getAccept() {\n return this.config.accept;\n }\n\n public setAccept(accept: string[]) {\n this.config.accept = accept;\n }\n\n public getMaxSize() {\n return this.config.maxSize;\n }\n\n public setMaxSize(maxSize: number | string) {\n this.config.maxSize = maxSize;\n }\n\n public getMultipleMaxCount() {\n return this.config.multipleMaxCount;\n }\n\n public setMultipleMaxCount(multipleMaxCount: number) {\n this.config.multipleMaxCount = multipleMaxCount;\n }\n\n public getMultipleMaxSize() {\n return this.config.multipleMaxSize;\n }\n\n public setMultipleMaxSize(multipleMaxSize: number | string) {\n this.config.multipleMaxSize = multipleMaxSize;\n }\n\n public getOnChangePickAttributes() {\n return this.config.onChangePickAttributes;\n }\n\n public setOnChangePickAttributes(attributes: string[]) {\n this.config.onChangePickAttributes = attributes;\n }\n}\n"],"mappings":"AAEA,SAASA,gBAAgB;AACzB,SAASC,0BAA0B;AACnC,SAASC,iBAAiB;AAwB1B,OAAO,MAAMC,kBAAkB,SAASH,gBAAgB,CAA2B;EAGxEI,WAAWA,CAACC,EAAU,EAAEC,MAAgC,EAAE;IAC7D,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAI,CAACC,WAAW,CAAC,IAAIN,0BAA0B,CAAC,CAAC,CAAC;IAElD,IAAI,CAACO,kBAAkB,GAAG,IAAIN,iBAAiB,CAAC,YAAY,CAAC;IAE7D,IAAI,CAACO,YAAY,CAACN,kBAAkB,CAAC;EACzC;EAEOO,oBAAoBA,CAAA,EAAG;IAC1B,OAAO,IAAI,CAACF,kBAAkB;EAClC;EAEOG,SAASA,CAAA,EAAG;IACf,OAAO,IAAI,CAACL,MAAM,CAACM,MAAM;EAC7B;EAEOC,SAASA,CAACD,MAAgB,EAAE;IAC/B,IAAI,CAACN,MAAM,CAACM,MAAM,GAAGA,MAAM;EAC/B;EAEOE,UAAUA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACR,MAAM,CAACS,OAAO;EAC9B;EAEOC,UAAUA,CAACD,OAAwB,EAAE;IACxC,IAAI,CAACT,MAAM,CAACS,OAAO,GAAGA,OAAO;EACjC;EAEOE,mBAAmBA,CAAA,EAAG;IACzB,OAAO,IAAI,CAACX,MAAM,CAACY,gBAAgB;EACvC;EAEOC,mBAAmBA,CAACD,gBAAwB,EAAE;IACjD,IAAI,CAACZ,MAAM,CAACY,gBAAgB,GAAGA,gBAAgB;EACnD;EAEOE,kBAAkBA,CAAA,EAAG;IACxB,OAAO,IAAI,CAACd,MAAM,CAACe,eAAe;EACtC;EAEOC,kBAAkBA,CAACD,eAAgC,EAAE;IACxD,IAAI,CAACf,MAAM,CAACe,eAAe,GAAGA,eAAe;EACjD;EAEOE,yBAAyBA,CAAA,EAAG;IAC/B,OAAO,IAAI,CAACjB,MAAM,CAACkB,sBAAsB;EAC7C;EAEOC,yBAAyBA,CAACC,UAAoB,EAAE;IACnD,IAAI,CAACpB,MAAM,CAACkB,sBAAsB,GAAGE,UAAU;EACnD;AACJ","ignoreList":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { FormOnSubmit, FormRenderPropParams } from "@webiny/form";
|
|
3
|
-
import type { UIElementConfig, UiElementRenderProps } from "../../UIElement";
|
|
4
|
-
import { UIElement } from "../../UIElement";
|
|
5
|
-
interface FormElementConfig extends UIElementConfig {
|
|
6
|
-
onSubmit: FormOnSubmit;
|
|
7
|
-
getData(): Record<string, any>;
|
|
8
|
-
getInvalidFields?(): Record<string, any>;
|
|
9
|
-
isDisabled?(): boolean;
|
|
10
|
-
onChange?: FormOnSubmit;
|
|
11
|
-
onInvalid?: () => void;
|
|
12
|
-
submitOnEnter?: boolean;
|
|
13
|
-
validateOnFirstSubmit?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface FormElementRenderProps extends UiElementRenderProps {
|
|
16
|
-
formProps: FormRenderPropParams;
|
|
17
|
-
}
|
|
18
|
-
export declare class FormElement extends UIElement<FormElementConfig> {
|
|
19
|
-
constructor(id: string, config: FormElementConfig);
|
|
20
|
-
render(props: FormElementRenderProps): React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { Fragment } from "react";
|
|
2
|
-
import { Form } from "@webiny/form";
|
|
3
|
-
import { UIElement } from "../../UIElement";
|
|
4
|
-
export class FormElement extends UIElement {
|
|
5
|
-
constructor(id, config) {
|
|
6
|
-
super(id, config);
|
|
7
|
-
this.useGrid(false);
|
|
8
|
-
}
|
|
9
|
-
render(props) {
|
|
10
|
-
return /*#__PURE__*/React.createElement(Form, {
|
|
11
|
-
onSubmit: this.config.onSubmit,
|
|
12
|
-
data: this.config.getData()
|
|
13
|
-
}, formProps => /*#__PURE__*/React.createElement(Fragment, null, super.render({
|
|
14
|
-
...props,
|
|
15
|
-
formProps
|
|
16
|
-
})));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=FormElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Fragment","Form","UIElement","FormElement","constructor","id","config","useGrid","render","props","createElement","onSubmit","data","getData","formProps"],"sources":["FormElement.tsx"],"sourcesContent":["import React, { Fragment } from \"react\";\nimport type { FormOnSubmit, FormRenderPropParams } from \"@webiny/form\";\nimport { Form } from \"@webiny/form\";\nimport type { UIElementConfig, UiElementRenderProps } from \"~/ui/UIElement\";\nimport { UIElement } from \"~/ui/UIElement\";\n\ninterface FormElementConfig extends UIElementConfig {\n onSubmit: FormOnSubmit;\n getData(): Record<string, any>;\n getInvalidFields?(): Record<string, any>;\n isDisabled?(): boolean;\n onChange?: FormOnSubmit;\n onInvalid?: () => void;\n submitOnEnter?: boolean;\n validateOnFirstSubmit?: boolean;\n}\n\nexport interface FormElementRenderProps extends UiElementRenderProps {\n formProps: FormRenderPropParams;\n}\n\nexport class FormElement extends UIElement<FormElementConfig> {\n public constructor(id: string, config: FormElementConfig) {\n super(id, config);\n\n this.useGrid(false);\n }\n\n public override render(props: FormElementRenderProps): React.ReactNode {\n return (\n <Form onSubmit={this.config.onSubmit} data={this.config.getData()}>\n {formProps => <Fragment>{super.render({ ...props, formProps })}</Fragment>}\n </Form>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,SAAS;AAiBlB,OAAO,MAAMC,WAAW,SAASD,SAAS,CAAoB;EACnDE,WAAWA,CAACC,EAAU,EAAEC,MAAyB,EAAE;IACtD,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAI,CAACC,OAAO,CAAC,KAAK,CAAC;EACvB;EAEgBC,MAAMA,CAACC,KAA6B,EAAmB;IACnE,oBACIV,KAAA,CAAAW,aAAA,CAACT,IAAI;MAACU,QAAQ,EAAE,IAAI,CAACL,MAAM,CAACK,QAAS;MAACC,IAAI,EAAE,IAAI,CAACN,MAAM,CAACO,OAAO,CAAC;IAAE,GAC7DC,SAAS,iBAAIf,KAAA,CAAAW,aAAA,CAACV,QAAQ,QAAE,KAAK,CAACQ,MAAM,CAAC;MAAE,GAAGC,KAAK;MAAEK;IAAU,CAAC,CAAY,CACvE,CAAC;EAEf;AACJ","ignoreList":[]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type { FormRenderPropParams, FormAPI } from "@webiny/form";
|
|
3
|
-
import type { UIElementConfig } from "../../UIElement";
|
|
4
|
-
import { UIElement } from "../../UIElement";
|
|
5
|
-
import type { FormElementRenderProps } from "./FormElement";
|
|
6
|
-
import type { Validator } from "@webiny/validation/types";
|
|
7
|
-
export interface FormFieldElementConfig<TRenderProps = FormRenderPropParams> extends UIElementConfig<TRenderProps> {
|
|
8
|
-
name: string;
|
|
9
|
-
validators?: GetterWithProps<Validator | Validator[]>;
|
|
10
|
-
beforeChange?: BeforeChange;
|
|
11
|
-
afterChange?: AfterChange;
|
|
12
|
-
defaultValue?: any | GetterWithProps<any>;
|
|
13
|
-
isDisabled?: boolean | GetterWithProps<boolean>;
|
|
14
|
-
label?: string | GetterWithProps<string>;
|
|
15
|
-
description?: string | React.ReactElement | GetterWithProps<string | React.ReactElement>;
|
|
16
|
-
placeholder?: string | GetterWithProps<string>;
|
|
17
|
-
}
|
|
18
|
-
export interface FormFieldElementRenderProps {
|
|
19
|
-
formProps: FormRenderPropParams;
|
|
20
|
-
}
|
|
21
|
-
interface BeforeChange {
|
|
22
|
-
(value: any, callback: BeforeChangeCallback): void;
|
|
23
|
-
}
|
|
24
|
-
interface BeforeChangeCallback {
|
|
25
|
-
(value: any): void;
|
|
26
|
-
}
|
|
27
|
-
interface AfterChange<T = any, D extends Record<string, any> = Record<string, any>> {
|
|
28
|
-
(value: T, form: FormAPI<D>): void;
|
|
29
|
-
}
|
|
30
|
-
interface GetterWithProps<T> {
|
|
31
|
-
(props: FormElementRenderProps): T;
|
|
32
|
-
}
|
|
33
|
-
export declare class FormFieldElement<TConfig extends FormFieldElementConfig = FormFieldElementConfig> extends UIElement<TConfig> {
|
|
34
|
-
private _beforeChange;
|
|
35
|
-
private _afterChange;
|
|
36
|
-
constructor(id: string, config: TConfig);
|
|
37
|
-
getName(): string;
|
|
38
|
-
getValidators(props?: FormFieldElementRenderProps): Validator | Validator[];
|
|
39
|
-
getDefaultValue(props?: FormFieldElementRenderProps): any;
|
|
40
|
-
getLabel(props?: FormFieldElementRenderProps): string;
|
|
41
|
-
getDescription(props?: FormFieldElementRenderProps): string | React.ReactElement;
|
|
42
|
-
getPlaceholder(props?: FormFieldElementRenderProps): string;
|
|
43
|
-
setLabel(label: string | GetterWithProps<string>): void;
|
|
44
|
-
setDescription(description: string | React.ReactElement | GetterWithProps<string | React.ReactElement>): void;
|
|
45
|
-
setPlaceholder(placeholder: string | GetterWithProps<string>): void;
|
|
46
|
-
setDefaultValue(value: any | GetterWithProps<any>): void;
|
|
47
|
-
getIsDisabled(props?: FormFieldElementRenderProps): boolean;
|
|
48
|
-
setIsDisabled(isDisabled: boolean | GetterWithProps<boolean>): void;
|
|
49
|
-
setValidators(validators: GetterWithProps<Validator>): void;
|
|
50
|
-
onBeforeChange(value: string, cb: (value: string) => void): void;
|
|
51
|
-
onAfterChange(value: string, form: FormAPI): void;
|
|
52
|
-
addBeforeChange(cb: BeforeChange): void;
|
|
53
|
-
addAfterChange<T = any, D extends Record<string, any> = Record<string, any>>(cb: AfterChange<T, D>): void;
|
|
54
|
-
setBeforeChange(cb: BeforeChange): void;
|
|
55
|
-
setAfterChange(cb: AfterChange): void;
|
|
56
|
-
}
|
|
57
|
-
export {};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { UIElement } from "../../UIElement";
|
|
2
|
-
export class FormFieldElement extends UIElement {
|
|
3
|
-
_beforeChange = [];
|
|
4
|
-
_afterChange = [];
|
|
5
|
-
constructor(id, config) {
|
|
6
|
-
super(id, config);
|
|
7
|
-
if (config.beforeChange) {
|
|
8
|
-
this._beforeChange.push(config.beforeChange);
|
|
9
|
-
}
|
|
10
|
-
if (config.afterChange) {
|
|
11
|
-
this._afterChange.push(config.afterChange);
|
|
12
|
-
}
|
|
13
|
-
this.applyPlugins(FormFieldElement);
|
|
14
|
-
}
|
|
15
|
-
getName() {
|
|
16
|
-
return this.config.name;
|
|
17
|
-
}
|
|
18
|
-
getValidators(props) {
|
|
19
|
-
if (!this.config.validators || typeof this.config.validators !== "function") {
|
|
20
|
-
return () => true;
|
|
21
|
-
}
|
|
22
|
-
return this.config.validators(props);
|
|
23
|
-
}
|
|
24
|
-
getDefaultValue(props) {
|
|
25
|
-
if (typeof this.config.defaultValue === "function") {
|
|
26
|
-
return this.config.defaultValue(props);
|
|
27
|
-
}
|
|
28
|
-
return this.config.defaultValue;
|
|
29
|
-
}
|
|
30
|
-
getLabel(props) {
|
|
31
|
-
if (typeof this.config.label === "function") {
|
|
32
|
-
return this.config.label(props);
|
|
33
|
-
}
|
|
34
|
-
return this.config.label;
|
|
35
|
-
}
|
|
36
|
-
getDescription(props) {
|
|
37
|
-
if (typeof this.config.description === "function") {
|
|
38
|
-
return this.config.description(props);
|
|
39
|
-
}
|
|
40
|
-
return this.config.description;
|
|
41
|
-
}
|
|
42
|
-
getPlaceholder(props) {
|
|
43
|
-
if (typeof this.config.placeholder === "function") {
|
|
44
|
-
return this.config.placeholder(props);
|
|
45
|
-
}
|
|
46
|
-
return this.config.placeholder;
|
|
47
|
-
}
|
|
48
|
-
setLabel(label) {
|
|
49
|
-
this.config.label = label;
|
|
50
|
-
}
|
|
51
|
-
setDescription(description) {
|
|
52
|
-
this.config.description = description;
|
|
53
|
-
}
|
|
54
|
-
setPlaceholder(placeholder) {
|
|
55
|
-
this.config.placeholder = placeholder;
|
|
56
|
-
}
|
|
57
|
-
setDefaultValue(value) {
|
|
58
|
-
this.config.defaultValue = value;
|
|
59
|
-
}
|
|
60
|
-
getIsDisabled(props) {
|
|
61
|
-
if (typeof this.config.isDisabled === "function") {
|
|
62
|
-
return this.config.isDisabled(props);
|
|
63
|
-
}
|
|
64
|
-
return this.config.isDisabled;
|
|
65
|
-
}
|
|
66
|
-
setIsDisabled(isDisabled) {
|
|
67
|
-
this.config.isDisabled = isDisabled;
|
|
68
|
-
}
|
|
69
|
-
setValidators(validators) {
|
|
70
|
-
this.config.validators = validators;
|
|
71
|
-
}
|
|
72
|
-
onBeforeChange(value, cb) {
|
|
73
|
-
const callbacks = [...this._beforeChange];
|
|
74
|
-
const next = val => {
|
|
75
|
-
const callbackCallable = callbacks.pop();
|
|
76
|
-
if (!callbackCallable) {
|
|
77
|
-
cb(val);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
callbackCallable(val, next);
|
|
81
|
-
};
|
|
82
|
-
next(value);
|
|
83
|
-
}
|
|
84
|
-
onAfterChange(value, form) {
|
|
85
|
-
const callbacks = [...this._afterChange];
|
|
86
|
-
const next = val => {
|
|
87
|
-
const callbackCallable = callbacks.pop();
|
|
88
|
-
if (!callbackCallable) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
callbackCallable(val, form);
|
|
92
|
-
};
|
|
93
|
-
next(value);
|
|
94
|
-
}
|
|
95
|
-
addBeforeChange(cb) {
|
|
96
|
-
this._beforeChange.push(cb);
|
|
97
|
-
}
|
|
98
|
-
addAfterChange(cb) {
|
|
99
|
-
/**
|
|
100
|
-
* TODO @ts-refactor possibly different subtype. Or so TS complains.
|
|
101
|
-
*/
|
|
102
|
-
// @ts-expect-error
|
|
103
|
-
this._afterChange.push(cb);
|
|
104
|
-
}
|
|
105
|
-
setBeforeChange(cb) {
|
|
106
|
-
this._beforeChange = [cb];
|
|
107
|
-
}
|
|
108
|
-
setAfterChange(cb) {
|
|
109
|
-
this._afterChange = [cb];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
//# sourceMappingURL=FormFieldElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["UIElement","FormFieldElement","_beforeChange","_afterChange","constructor","id","config","beforeChange","push","afterChange","applyPlugins","getName","name","getValidators","props","validators","getDefaultValue","defaultValue","getLabel","label","getDescription","description","getPlaceholder","placeholder","setLabel","setDescription","setPlaceholder","setDefaultValue","value","getIsDisabled","isDisabled","setIsDisabled","setValidators","onBeforeChange","cb","callbacks","next","val","callbackCallable","pop","onAfterChange","form","addBeforeChange","addAfterChange","setBeforeChange","setAfterChange"],"sources":["FormFieldElement.tsx"],"sourcesContent":["import type React from \"react\";\nimport type { FormRenderPropParams, FormAPI } from \"@webiny/form\";\nimport type { UIElementConfig } from \"~/ui/UIElement\";\nimport { UIElement } from \"~/ui/UIElement\";\nimport type { FormElementRenderProps } from \"~/ui/elements/form/FormElement\";\nimport type { Validator } from \"@webiny/validation/types\";\n\nexport interface FormFieldElementConfig<TRenderProps = FormRenderPropParams>\n extends UIElementConfig<TRenderProps> {\n name: string;\n validators?: GetterWithProps<Validator | Validator[]>;\n beforeChange?: BeforeChange;\n afterChange?: AfterChange;\n defaultValue?: any | GetterWithProps<any>;\n isDisabled?: boolean | GetterWithProps<boolean>;\n label?: string | GetterWithProps<string>;\n description?: string | React.ReactElement | GetterWithProps<string | React.ReactElement>;\n placeholder?: string | GetterWithProps<string>;\n}\n\nexport interface FormFieldElementRenderProps {\n formProps: FormRenderPropParams;\n}\n\ninterface BeforeChange {\n (value: any, callback: BeforeChangeCallback): void;\n}\n\ninterface BeforeChangeCallback {\n (value: any): void;\n}\n\ninterface AfterChange<T = any, D extends Record<string, any> = Record<string, any>> {\n (value: T, form: FormAPI<D>): void;\n}\n\ninterface GetterWithProps<T> {\n (props: FormElementRenderProps): T;\n}\n\nexport class FormFieldElement<\n TConfig extends FormFieldElementConfig = FormFieldElementConfig\n> extends UIElement<TConfig> {\n private _beforeChange: BeforeChange[] = [];\n private _afterChange: AfterChange[] = [];\n\n public constructor(id: string, config: TConfig) {\n super(id, config);\n\n if (config.beforeChange) {\n this._beforeChange.push(config.beforeChange);\n }\n\n if (config.afterChange) {\n this._afterChange.push(config.afterChange);\n }\n\n this.applyPlugins(FormFieldElement);\n }\n\n public getName(): string {\n return this.config.name;\n }\n\n public getValidators(props?: FormFieldElementRenderProps): Validator | Validator[] {\n if (!this.config.validators || typeof this.config.validators !== \"function\") {\n return () => true;\n }\n\n return this.config.validators(props as FormFieldElementRenderProps);\n }\n\n public getDefaultValue(props?: FormFieldElementRenderProps): any {\n if (typeof this.config.defaultValue === \"function\") {\n return this.config.defaultValue(props);\n }\n\n return this.config.defaultValue;\n }\n\n public getLabel(props?: FormFieldElementRenderProps): string {\n if (typeof this.config.label === \"function\") {\n return this.config.label(props as FormFieldElementRenderProps);\n }\n\n return this.config.label as string;\n }\n\n public getDescription(props?: FormFieldElementRenderProps): string | React.ReactElement {\n if (typeof this.config.description === \"function\") {\n return this.config.description(props as FormFieldElementRenderProps);\n }\n\n return this.config.description as string;\n }\n\n public getPlaceholder(props?: FormFieldElementRenderProps): string {\n if (typeof this.config.placeholder === \"function\") {\n return this.config.placeholder(props as FormFieldElementRenderProps);\n }\n\n return this.config.placeholder as string;\n }\n\n public setLabel(label: string | GetterWithProps<string>): void {\n this.config.label = label;\n }\n\n public setDescription(\n description: string | React.ReactElement | GetterWithProps<string | React.ReactElement>\n ): void {\n this.config.description = description;\n }\n\n public setPlaceholder(placeholder: string | GetterWithProps<string>): void {\n this.config.placeholder = placeholder;\n }\n\n public setDefaultValue(value: any | GetterWithProps<any>): void {\n this.config.defaultValue = value;\n }\n\n public getIsDisabled(props?: FormFieldElementRenderProps): boolean {\n if (typeof this.config.isDisabled === \"function\") {\n return this.config.isDisabled(props as FormFieldElementRenderProps);\n }\n return this.config.isDisabled as boolean;\n }\n\n public setIsDisabled(isDisabled: boolean | GetterWithProps<boolean>): void {\n this.config.isDisabled = isDisabled;\n }\n\n public setValidators(validators: GetterWithProps<Validator>): void {\n this.config.validators = validators;\n }\n\n public onBeforeChange(value: string, cb: (value: string) => void): void {\n const callbacks = [...this._beforeChange];\n const next = (val: string) => {\n const callbackCallable = callbacks.pop();\n if (!callbackCallable) {\n cb(val);\n return;\n }\n callbackCallable(val, next);\n };\n\n next(value);\n }\n\n public onAfterChange(value: string, form: FormAPI): void {\n const callbacks = [...this._afterChange];\n const next = (val: string) => {\n const callbackCallable = callbacks.pop();\n if (!callbackCallable) {\n return;\n }\n callbackCallable(val, form);\n };\n\n next(value);\n }\n\n public addBeforeChange(cb: BeforeChange): void {\n this._beforeChange.push(cb);\n }\n\n public addAfterChange<T = any, D extends Record<string, any> = Record<string, any>>(\n cb: AfterChange<T, D>\n ): void {\n /**\n * TODO @ts-refactor possibly different subtype. Or so TS complains.\n */\n // @ts-expect-error\n this._afterChange.push(cb);\n }\n\n public setBeforeChange(cb: BeforeChange): void {\n this._beforeChange = [cb];\n }\n\n public setAfterChange(cb: AfterChange): void {\n this._afterChange = [cb];\n }\n}\n"],"mappings":"AAGA,SAASA,SAAS;AAqClB,OAAO,MAAMC,gBAAgB,SAEnBD,SAAS,CAAU;EACjBE,aAAa,GAAmB,EAAE;EAClCC,YAAY,GAAkB,EAAE;EAEjCC,WAAWA,CAACC,EAAU,EAAEC,MAAe,EAAE;IAC5C,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAIA,MAAM,CAACC,YAAY,EAAE;MACrB,IAAI,CAACL,aAAa,CAACM,IAAI,CAACF,MAAM,CAACC,YAAY,CAAC;IAChD;IAEA,IAAID,MAAM,CAACG,WAAW,EAAE;MACpB,IAAI,CAACN,YAAY,CAACK,IAAI,CAACF,MAAM,CAACG,WAAW,CAAC;IAC9C;IAEA,IAAI,CAACC,YAAY,CAACT,gBAAgB,CAAC;EACvC;EAEOU,OAAOA,CAAA,EAAW;IACrB,OAAO,IAAI,CAACL,MAAM,CAACM,IAAI;EAC3B;EAEOC,aAAaA,CAACC,KAAmC,EAA2B;IAC/E,IAAI,CAAC,IAAI,CAACR,MAAM,CAACS,UAAU,IAAI,OAAO,IAAI,CAACT,MAAM,CAACS,UAAU,KAAK,UAAU,EAAE;MACzE,OAAO,MAAM,IAAI;IACrB;IAEA,OAAO,IAAI,CAACT,MAAM,CAACS,UAAU,CAACD,KAAoC,CAAC;EACvE;EAEOE,eAAeA,CAACF,KAAmC,EAAO;IAC7D,IAAI,OAAO,IAAI,CAACR,MAAM,CAACW,YAAY,KAAK,UAAU,EAAE;MAChD,OAAO,IAAI,CAACX,MAAM,CAACW,YAAY,CAACH,KAAK,CAAC;IAC1C;IAEA,OAAO,IAAI,CAACR,MAAM,CAACW,YAAY;EACnC;EAEOC,QAAQA,CAACJ,KAAmC,EAAU;IACzD,IAAI,OAAO,IAAI,CAACR,MAAM,CAACa,KAAK,KAAK,UAAU,EAAE;MACzC,OAAO,IAAI,CAACb,MAAM,CAACa,KAAK,CAACL,KAAoC,CAAC;IAClE;IAEA,OAAO,IAAI,CAACR,MAAM,CAACa,KAAK;EAC5B;EAEOC,cAAcA,CAACN,KAAmC,EAA+B;IACpF,IAAI,OAAO,IAAI,CAACR,MAAM,CAACe,WAAW,KAAK,UAAU,EAAE;MAC/C,OAAO,IAAI,CAACf,MAAM,CAACe,WAAW,CAACP,KAAoC,CAAC;IACxE;IAEA,OAAO,IAAI,CAACR,MAAM,CAACe,WAAW;EAClC;EAEOC,cAAcA,CAACR,KAAmC,EAAU;IAC/D,IAAI,OAAO,IAAI,CAACR,MAAM,CAACiB,WAAW,KAAK,UAAU,EAAE;MAC/C,OAAO,IAAI,CAACjB,MAAM,CAACiB,WAAW,CAACT,KAAoC,CAAC;IACxE;IAEA,OAAO,IAAI,CAACR,MAAM,CAACiB,WAAW;EAClC;EAEOC,QAAQA,CAACL,KAAuC,EAAQ;IAC3D,IAAI,CAACb,MAAM,CAACa,KAAK,GAAGA,KAAK;EAC7B;EAEOM,cAAcA,CACjBJ,WAAuF,EACnF;IACJ,IAAI,CAACf,MAAM,CAACe,WAAW,GAAGA,WAAW;EACzC;EAEOK,cAAcA,CAACH,WAA6C,EAAQ;IACvE,IAAI,CAACjB,MAAM,CAACiB,WAAW,GAAGA,WAAW;EACzC;EAEOI,eAAeA,CAACC,KAAiC,EAAQ;IAC5D,IAAI,CAACtB,MAAM,CAACW,YAAY,GAAGW,KAAK;EACpC;EAEOC,aAAaA,CAACf,KAAmC,EAAW;IAC/D,IAAI,OAAO,IAAI,CAACR,MAAM,CAACwB,UAAU,KAAK,UAAU,EAAE;MAC9C,OAAO,IAAI,CAACxB,MAAM,CAACwB,UAAU,CAAChB,KAAoC,CAAC;IACvE;IACA,OAAO,IAAI,CAACR,MAAM,CAACwB,UAAU;EACjC;EAEOC,aAAaA,CAACD,UAA8C,EAAQ;IACvE,IAAI,CAACxB,MAAM,CAACwB,UAAU,GAAGA,UAAU;EACvC;EAEOE,aAAaA,CAACjB,UAAsC,EAAQ;IAC/D,IAAI,CAACT,MAAM,CAACS,UAAU,GAAGA,UAAU;EACvC;EAEOkB,cAAcA,CAACL,KAAa,EAAEM,EAA2B,EAAQ;IACpE,MAAMC,SAAS,GAAG,CAAC,GAAG,IAAI,CAACjC,aAAa,CAAC;IACzC,MAAMkC,IAAI,GAAIC,GAAW,IAAK;MAC1B,MAAMC,gBAAgB,GAAGH,SAAS,CAACI,GAAG,CAAC,CAAC;MACxC,IAAI,CAACD,gBAAgB,EAAE;QACnBJ,EAAE,CAACG,GAAG,CAAC;QACP;MACJ;MACAC,gBAAgB,CAACD,GAAG,EAAED,IAAI,CAAC;IAC/B,CAAC;IAEDA,IAAI,CAACR,KAAK,CAAC;EACf;EAEOY,aAAaA,CAACZ,KAAa,EAAEa,IAAa,EAAQ;IACrD,MAAMN,SAAS,GAAG,CAAC,GAAG,IAAI,CAAChC,YAAY,CAAC;IACxC,MAAMiC,IAAI,GAAIC,GAAW,IAAK;MAC1B,MAAMC,gBAAgB,GAAGH,SAAS,CAACI,GAAG,CAAC,CAAC;MACxC,IAAI,CAACD,gBAAgB,EAAE;QACnB;MACJ;MACAA,gBAAgB,CAACD,GAAG,EAAEI,IAAI,CAAC;IAC/B,CAAC;IAEDL,IAAI,CAACR,KAAK,CAAC;EACf;EAEOc,eAAeA,CAACR,EAAgB,EAAQ;IAC3C,IAAI,CAAChC,aAAa,CAACM,IAAI,CAAC0B,EAAE,CAAC;EAC/B;EAEOS,cAAcA,CACjBT,EAAqB,EACjB;IACJ;AACR;AACA;IACQ;IACA,IAAI,CAAC/B,YAAY,CAACK,IAAI,CAAC0B,EAAE,CAAC;EAC9B;EAEOU,eAAeA,CAACV,EAAgB,EAAQ;IAC3C,IAAI,CAAChC,aAAa,GAAG,CAACgC,EAAE,CAAC;EAC7B;EAEOW,cAAcA,CAACX,EAAe,EAAQ;IACzC,IAAI,CAAC/B,YAAY,GAAG,CAAC+B,EAAE,CAAC;EAC5B;AACJ","ignoreList":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { FormFieldElementConfig, FormFieldElementRenderProps } from "./FormFieldElement";
|
|
3
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
4
|
-
export declare class HiddenElement extends FormFieldElement {
|
|
5
|
-
constructor(id: string, config: FormFieldElementConfig);
|
|
6
|
-
render(props: FormFieldElementRenderProps): React.ReactNode;
|
|
7
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
3
|
-
export class HiddenElement extends FormFieldElement {
|
|
4
|
-
constructor(id, config) {
|
|
5
|
-
super(id, config);
|
|
6
|
-
this.applyPlugins(HiddenElement);
|
|
7
|
-
}
|
|
8
|
-
render(props) {
|
|
9
|
-
if (!props.formProps) {
|
|
10
|
-
throw Error(`HiddenElement must be placed inside of a FormElement.`);
|
|
11
|
-
}
|
|
12
|
-
const {
|
|
13
|
-
Bind
|
|
14
|
-
} = props.formProps;
|
|
15
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
16
|
-
name: this.getName(),
|
|
17
|
-
validators: this.getValidators(props),
|
|
18
|
-
defaultValue: this.getDefaultValue(props),
|
|
19
|
-
beforeChange: (value, cb) => this.onBeforeChange(value, cb),
|
|
20
|
-
afterChange: (value, form) => this.onAfterChange(value, form)
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=HiddenElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","FormFieldElement","HiddenElement","constructor","id","config","applyPlugins","render","props","formProps","Error","Bind","createElement","name","getName","validators","getValidators","defaultValue","getDefaultValue","beforeChange","value","cb","onBeforeChange","afterChange","form","onAfterChange"],"sources":["HiddenElement.tsx"],"sourcesContent":["import React from \"react\";\nimport type {\n FormFieldElementConfig,\n FormFieldElementRenderProps\n} from \"~/ui/elements/form/FormFieldElement\";\nimport { FormFieldElement } from \"~/ui/elements/form/FormFieldElement\";\n\nexport class HiddenElement extends FormFieldElement {\n public constructor(id: string, config: FormFieldElementConfig) {\n super(id, config);\n\n this.applyPlugins(HiddenElement);\n }\n\n public override render(props: FormFieldElementRenderProps): React.ReactNode {\n if (!props.formProps) {\n throw Error(`HiddenElement must be placed inside of a FormElement.`);\n }\n\n const { Bind } = props.formProps;\n\n return (\n <Bind\n name={this.getName()}\n validators={this.getValidators(props)}\n defaultValue={this.getDefaultValue(props)}\n beforeChange={(value: string, cb) => this.onBeforeChange(value, cb)}\n afterChange={(value: string, form) => this.onAfterChange(value, form)}\n />\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,SAASC,gBAAgB;AAEzB,OAAO,MAAMC,aAAa,SAASD,gBAAgB,CAAC;EACzCE,WAAWA,CAACC,EAAU,EAAEC,MAA8B,EAAE;IAC3D,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAI,CAACC,YAAY,CAACJ,aAAa,CAAC;EACpC;EAEgBK,MAAMA,CAACC,KAAkC,EAAmB;IACxE,IAAI,CAACA,KAAK,CAACC,SAAS,EAAE;MAClB,MAAMC,KAAK,CAAC,uDAAuD,CAAC;IACxE;IAEA,MAAM;MAAEC;IAAK,CAAC,GAAGH,KAAK,CAACC,SAAS;IAEhC,oBACIT,KAAA,CAAAY,aAAA,CAACD,IAAI;MACDE,IAAI,EAAE,IAAI,CAACC,OAAO,CAAC,CAAE;MACrBC,UAAU,EAAE,IAAI,CAACC,aAAa,CAACR,KAAK,CAAE;MACtCS,YAAY,EAAE,IAAI,CAACC,eAAe,CAACV,KAAK,CAAE;MAC1CW,YAAY,EAAEA,CAACC,KAAa,EAAEC,EAAE,KAAK,IAAI,CAACC,cAAc,CAACF,KAAK,EAAEC,EAAE,CAAE;MACpEE,WAAW,EAAEA,CAACH,KAAa,EAAEI,IAAI,KAAK,IAAI,CAACC,aAAa,CAACL,KAAK,EAAEI,IAAI;IAAE,CACzE,CAAC;EAEV;AACJ","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { FormFieldElementConfig, FormFieldElementRenderProps } from "./FormFieldElement";
|
|
3
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
4
|
-
export type InputElementRenderProps = FormFieldElementRenderProps;
|
|
5
|
-
export declare class InputElement extends FormFieldElement {
|
|
6
|
-
constructor(id: string, config: FormFieldElementConfig);
|
|
7
|
-
render(props: FormFieldElementRenderProps): React.ReactNode;
|
|
8
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Input } from "@webiny/ui/Input";
|
|
3
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
4
|
-
export class InputElement extends FormFieldElement {
|
|
5
|
-
constructor(id, config) {
|
|
6
|
-
super(id, config);
|
|
7
|
-
this.applyPlugins(InputElement);
|
|
8
|
-
}
|
|
9
|
-
render(props) {
|
|
10
|
-
if (!props.formProps) {
|
|
11
|
-
throw Error(`InputElement must be placed inside of a FormElement.`);
|
|
12
|
-
}
|
|
13
|
-
const {
|
|
14
|
-
Bind
|
|
15
|
-
} = props.formProps;
|
|
16
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
17
|
-
name: this.getName(),
|
|
18
|
-
validators: this.getValidators(props),
|
|
19
|
-
defaultValue: this.getDefaultValue(props),
|
|
20
|
-
beforeChange: (value, cb) => this.onBeforeChange(value, cb),
|
|
21
|
-
afterChange: (value, form) => this.onAfterChange(value, form)
|
|
22
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
23
|
-
"data-testid": `input-element-${this.getLabel(props)}`,
|
|
24
|
-
label: this.getLabel(props),
|
|
25
|
-
placeholder: this.getPlaceholder(props),
|
|
26
|
-
disabled: this.getIsDisabled(props),
|
|
27
|
-
description: this.getDescription(props)
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=InputElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Input","FormFieldElement","InputElement","constructor","id","config","applyPlugins","render","props","formProps","Error","Bind","createElement","name","getName","validators","getValidators","defaultValue","getDefaultValue","beforeChange","value","cb","onBeforeChange","afterChange","form","onAfterChange","getLabel","label","placeholder","getPlaceholder","disabled","getIsDisabled","description","getDescription"],"sources":["InputElement.tsx"],"sourcesContent":["import React from \"react\";\nimport { Input } from \"@webiny/ui/Input\";\nimport type {\n FormFieldElementConfig,\n FormFieldElementRenderProps\n} from \"~/ui/elements/form/FormFieldElement\";\nimport { FormFieldElement } from \"~/ui/elements/form/FormFieldElement\";\n\nexport type InputElementRenderProps = FormFieldElementRenderProps;\nexport class InputElement extends FormFieldElement {\n public constructor(id: string, config: FormFieldElementConfig) {\n super(id, config);\n\n this.applyPlugins(InputElement);\n }\n\n public override render(props: FormFieldElementRenderProps): React.ReactNode {\n if (!props.formProps) {\n throw Error(`InputElement must be placed inside of a FormElement.`);\n }\n\n const { Bind } = props.formProps;\n\n return (\n <Bind\n name={this.getName()}\n validators={this.getValidators(props)}\n defaultValue={this.getDefaultValue(props)}\n beforeChange={(value: string, cb) => this.onBeforeChange(value, cb)}\n afterChange={(value: string, form) => this.onAfterChange(value, form)}\n >\n <Input\n data-testid={`input-element-${this.getLabel(props)}`}\n label={this.getLabel(props)}\n placeholder={this.getPlaceholder(props)}\n disabled={this.getIsDisabled(props)}\n description={this.getDescription(props)}\n />\n </Bind>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AAKxC,SAASC,gBAAgB;AAGzB,OAAO,MAAMC,YAAY,SAASD,gBAAgB,CAAC;EACxCE,WAAWA,CAACC,EAAU,EAAEC,MAA8B,EAAE;IAC3D,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAI,CAACC,YAAY,CAACJ,YAAY,CAAC;EACnC;EAEgBK,MAAMA,CAACC,KAAkC,EAAmB;IACxE,IAAI,CAACA,KAAK,CAACC,SAAS,EAAE;MAClB,MAAMC,KAAK,CAAC,sDAAsD,CAAC;IACvE;IAEA,MAAM;MAAEC;IAAK,CAAC,GAAGH,KAAK,CAACC,SAAS;IAEhC,oBACIV,KAAA,CAAAa,aAAA,CAACD,IAAI;MACDE,IAAI,EAAE,IAAI,CAACC,OAAO,CAAC,CAAE;MACrBC,UAAU,EAAE,IAAI,CAACC,aAAa,CAACR,KAAK,CAAE;MACtCS,YAAY,EAAE,IAAI,CAACC,eAAe,CAACV,KAAK,CAAE;MAC1CW,YAAY,EAAEA,CAACC,KAAa,EAAEC,EAAE,KAAK,IAAI,CAACC,cAAc,CAACF,KAAK,EAAEC,EAAE,CAAE;MACpEE,WAAW,EAAEA,CAACH,KAAa,EAAEI,IAAI,KAAK,IAAI,CAACC,aAAa,CAACL,KAAK,EAAEI,IAAI;IAAE,gBAEtEzB,KAAA,CAAAa,aAAA,CAACZ,KAAK;MACF,eAAa,iBAAiB,IAAI,CAAC0B,QAAQ,CAAClB,KAAK,CAAC,EAAG;MACrDmB,KAAK,EAAE,IAAI,CAACD,QAAQ,CAAClB,KAAK,CAAE;MAC5BoB,WAAW,EAAE,IAAI,CAACC,cAAc,CAACrB,KAAK,CAAE;MACxCsB,QAAQ,EAAE,IAAI,CAACC,aAAa,CAACvB,KAAK,CAAE;MACpCwB,WAAW,EAAE,IAAI,CAACC,cAAc,CAACzB,KAAK;IAAE,CAC3C,CACC,CAAC;EAEf;AACJ","ignoreList":[]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InputElement } from "./InputElement";
|
|
3
|
-
import type { FormFieldElementRenderProps } from "./FormFieldElement";
|
|
4
|
-
export declare class PasswordElement extends InputElement {
|
|
5
|
-
render(props: FormFieldElementRenderProps): React.ReactElement;
|
|
6
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InputElement } from "./InputElement";
|
|
3
|
-
import { Input } from "@webiny/ui/Input";
|
|
4
|
-
export class PasswordElement extends InputElement {
|
|
5
|
-
render(props) {
|
|
6
|
-
if (!props.formProps) {
|
|
7
|
-
throw Error(`PasswordElement must be placed inside of a FormElement.`);
|
|
8
|
-
}
|
|
9
|
-
const {
|
|
10
|
-
Bind
|
|
11
|
-
} = props.formProps;
|
|
12
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
13
|
-
name: this.getName(),
|
|
14
|
-
validators: this.getValidators(props),
|
|
15
|
-
defaultValue: this.getDefaultValue(props),
|
|
16
|
-
beforeChange: (value, cb) => this.onBeforeChange(value, cb),
|
|
17
|
-
afterChange: (value, form) => this.onAfterChange(value, form)
|
|
18
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
19
|
-
type: "password",
|
|
20
|
-
autoComplete: "off",
|
|
21
|
-
label: this.getLabel(props),
|
|
22
|
-
placeholder: this.getPlaceholder(props),
|
|
23
|
-
disabled: this.getIsDisabled(props),
|
|
24
|
-
description: this.getDescription(props)
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=PasswordElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","InputElement","Input","PasswordElement","render","props","formProps","Error","Bind","createElement","name","getName","validators","getValidators","defaultValue","getDefaultValue","beforeChange","value","cb","onBeforeChange","afterChange","form","onAfterChange","type","autoComplete","label","getLabel","placeholder","getPlaceholder","disabled","getIsDisabled","description","getDescription"],"sources":["PasswordElement.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputElement } from \"./InputElement\";\nimport type { FormFieldElementRenderProps } from \"~/ui/elements/form/FormFieldElement\";\nimport { Input } from \"@webiny/ui/Input\";\n\nexport class PasswordElement extends InputElement {\n public override render(props: FormFieldElementRenderProps): React.ReactElement {\n if (!props.formProps) {\n throw Error(`PasswordElement must be placed inside of a FormElement.`);\n }\n\n const { Bind } = props.formProps;\n\n return (\n <Bind\n name={this.getName()}\n validators={this.getValidators(props)}\n defaultValue={this.getDefaultValue(props)}\n beforeChange={(value: string, cb) => this.onBeforeChange(value, cb)}\n afterChange={(value: string, form) => this.onAfterChange(value, form)}\n >\n <Input\n type={\"password\"}\n autoComplete={\"off\"}\n label={this.getLabel(props)}\n placeholder={this.getPlaceholder(props)}\n disabled={this.getIsDisabled(props)}\n description={this.getDescription(props)}\n />\n </Bind>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY;AAErB,SAASC,KAAK,QAAQ,kBAAkB;AAExC,OAAO,MAAMC,eAAe,SAASF,YAAY,CAAC;EAC9BG,MAAMA,CAACC,KAAkC,EAAsB;IAC3E,IAAI,CAACA,KAAK,CAACC,SAAS,EAAE;MAClB,MAAMC,KAAK,CAAC,yDAAyD,CAAC;IAC1E;IAEA,MAAM;MAAEC;IAAK,CAAC,GAAGH,KAAK,CAACC,SAAS;IAEhC,oBACIN,KAAA,CAAAS,aAAA,CAACD,IAAI;MACDE,IAAI,EAAE,IAAI,CAACC,OAAO,CAAC,CAAE;MACrBC,UAAU,EAAE,IAAI,CAACC,aAAa,CAACR,KAAK,CAAE;MACtCS,YAAY,EAAE,IAAI,CAACC,eAAe,CAACV,KAAK,CAAE;MAC1CW,YAAY,EAAEA,CAACC,KAAa,EAAEC,EAAE,KAAK,IAAI,CAACC,cAAc,CAACF,KAAK,EAAEC,EAAE,CAAE;MACpEE,WAAW,EAAEA,CAACH,KAAa,EAAEI,IAAI,KAAK,IAAI,CAACC,aAAa,CAACL,KAAK,EAAEI,IAAI;IAAE,gBAEtErB,KAAA,CAAAS,aAAA,CAACP,KAAK;MACFqB,IAAI,EAAE,UAAW;MACjBC,YAAY,EAAE,KAAM;MACpBC,KAAK,EAAE,IAAI,CAACC,QAAQ,CAACrB,KAAK,CAAE;MAC5BsB,WAAW,EAAE,IAAI,CAACC,cAAc,CAACvB,KAAK,CAAE;MACxCwB,QAAQ,EAAE,IAAI,CAACC,aAAa,CAACzB,KAAK,CAAE;MACpC0B,WAAW,EAAE,IAAI,CAACC,cAAc,CAAC3B,KAAK;IAAE,CAC3C,CACC,CAAC;EAEf;AACJ","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
This folder (`elements/form`) contains elements that are specifically designed to work within a `FormElement`.
|
|
2
|
-
They assume that there is a [Form](../../../../../form/src/Form.tsx) component sitting somewhere above them in the component hierarchy, and will throw errors if `formProps` are not found in the `props` of their `render()` method.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { FormFieldElementConfig, FormFieldElementRenderProps } from "./FormFieldElement";
|
|
3
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
4
|
-
export interface SelectElementOption {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SelectElementConfig extends FormFieldElementConfig {
|
|
9
|
-
options?: SelectElementOption[];
|
|
10
|
-
}
|
|
11
|
-
export declare class SelectElement extends FormFieldElement<SelectElementConfig> {
|
|
12
|
-
constructor(id: string, config: SelectElementConfig);
|
|
13
|
-
setOptions(options: SelectElementOption[]): void;
|
|
14
|
-
getOptions(): SelectElementOption[] | undefined;
|
|
15
|
-
render(props: FormFieldElementRenderProps): React.ReactNode;
|
|
16
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Select } from "@webiny/ui/Select";
|
|
3
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
4
|
-
export class SelectElement extends FormFieldElement {
|
|
5
|
-
constructor(id, config) {
|
|
6
|
-
super(id, config);
|
|
7
|
-
this.applyPlugins(SelectElement);
|
|
8
|
-
}
|
|
9
|
-
setOptions(options) {
|
|
10
|
-
this.config.options = options;
|
|
11
|
-
}
|
|
12
|
-
getOptions() {
|
|
13
|
-
return this.config.options;
|
|
14
|
-
}
|
|
15
|
-
render(props) {
|
|
16
|
-
if (!props.formProps) {
|
|
17
|
-
throw Error(`SelectElement must be placed inside of a FormElement.`);
|
|
18
|
-
}
|
|
19
|
-
const {
|
|
20
|
-
Bind
|
|
21
|
-
} = props.formProps;
|
|
22
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
23
|
-
name: this.getName(),
|
|
24
|
-
validators: this.getValidators(props),
|
|
25
|
-
defaultValue: this.getDefaultValue(props),
|
|
26
|
-
beforeChange: (value, cb) => this.onBeforeChange(value, cb),
|
|
27
|
-
afterChange: (value, form) => this.onAfterChange(value, form)
|
|
28
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
29
|
-
label: this.getLabel(props),
|
|
30
|
-
disabled: this.getIsDisabled(props),
|
|
31
|
-
description: this.getDefaultValue(props)
|
|
32
|
-
}, (this.getOptions() || []).map(({
|
|
33
|
-
value,
|
|
34
|
-
label
|
|
35
|
-
}) => /*#__PURE__*/React.createElement("option", {
|
|
36
|
-
key: value,
|
|
37
|
-
value: value
|
|
38
|
-
}, label))));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=SelectElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Select","FormFieldElement","SelectElement","constructor","id","config","applyPlugins","setOptions","options","getOptions","render","props","formProps","Error","Bind","createElement","name","getName","validators","getValidators","defaultValue","getDefaultValue","beforeChange","value","cb","onBeforeChange","afterChange","form","onAfterChange","label","getLabel","disabled","getIsDisabled","description","map","key"],"sources":["SelectElement.tsx"],"sourcesContent":["import React from \"react\";\nimport { Select } from \"@webiny/ui/Select\";\nimport type {\n FormFieldElementConfig,\n FormFieldElementRenderProps\n} from \"~/ui/elements/form/FormFieldElement\";\nimport { FormFieldElement } from \"~/ui/elements/form/FormFieldElement\";\n\nexport interface SelectElementOption {\n value: string;\n label: string;\n}\n\nexport interface SelectElementConfig extends FormFieldElementConfig {\n options?: SelectElementOption[];\n}\n\nexport class SelectElement extends FormFieldElement<SelectElementConfig> {\n public constructor(id: string, config: SelectElementConfig) {\n super(id, config);\n\n this.applyPlugins(SelectElement);\n }\n\n public setOptions(options: SelectElementOption[]): void {\n this.config.options = options;\n }\n\n public getOptions(): SelectElementOption[] | undefined {\n return this.config.options;\n }\n\n public override render(props: FormFieldElementRenderProps): React.ReactNode {\n if (!props.formProps) {\n throw Error(`SelectElement must be placed inside of a FormElement.`);\n }\n\n const { Bind } = props.formProps;\n\n return (\n <Bind\n name={this.getName()}\n validators={this.getValidators(props)}\n defaultValue={this.getDefaultValue(props)}\n beforeChange={(value: string, cb) => this.onBeforeChange(value, cb)}\n afterChange={(value: string, form) => this.onAfterChange(value, form)}\n >\n <Select\n label={this.getLabel(props)}\n disabled={this.getIsDisabled(props)}\n description={this.getDefaultValue(props)}\n >\n {(this.getOptions() || []).map(({ value, label }) => (\n <option key={value} value={value}>\n {label}\n </option>\n ))}\n </Select>\n </Bind>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,mBAAmB;AAK1C,SAASC,gBAAgB;AAWzB,OAAO,MAAMC,aAAa,SAASD,gBAAgB,CAAsB;EAC9DE,WAAWA,CAACC,EAAU,EAAEC,MAA2B,EAAE;IACxD,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAI,CAACC,YAAY,CAACJ,aAAa,CAAC;EACpC;EAEOK,UAAUA,CAACC,OAA8B,EAAQ;IACpD,IAAI,CAACH,MAAM,CAACG,OAAO,GAAGA,OAAO;EACjC;EAEOC,UAAUA,CAAA,EAAsC;IACnD,OAAO,IAAI,CAACJ,MAAM,CAACG,OAAO;EAC9B;EAEgBE,MAAMA,CAACC,KAAkC,EAAmB;IACxE,IAAI,CAACA,KAAK,CAACC,SAAS,EAAE;MAClB,MAAMC,KAAK,CAAC,uDAAuD,CAAC;IACxE;IAEA,MAAM;MAAEC;IAAK,CAAC,GAAGH,KAAK,CAACC,SAAS;IAEhC,oBACIb,KAAA,CAAAgB,aAAA,CAACD,IAAI;MACDE,IAAI,EAAE,IAAI,CAACC,OAAO,CAAC,CAAE;MACrBC,UAAU,EAAE,IAAI,CAACC,aAAa,CAACR,KAAK,CAAE;MACtCS,YAAY,EAAE,IAAI,CAACC,eAAe,CAACV,KAAK,CAAE;MAC1CW,YAAY,EAAEA,CAACC,KAAa,EAAEC,EAAE,KAAK,IAAI,CAACC,cAAc,CAACF,KAAK,EAAEC,EAAE,CAAE;MACpEE,WAAW,EAAEA,CAACH,KAAa,EAAEI,IAAI,KAAK,IAAI,CAACC,aAAa,CAACL,KAAK,EAAEI,IAAI;IAAE,gBAEtE5B,KAAA,CAAAgB,aAAA,CAACf,MAAM;MACH6B,KAAK,EAAE,IAAI,CAACC,QAAQ,CAACnB,KAAK,CAAE;MAC5BoB,QAAQ,EAAE,IAAI,CAACC,aAAa,CAACrB,KAAK,CAAE;MACpCsB,WAAW,EAAE,IAAI,CAACZ,eAAe,CAACV,KAAK;IAAE,GAExC,CAAC,IAAI,CAACF,UAAU,CAAC,CAAC,IAAI,EAAE,EAAEyB,GAAG,CAAC,CAAC;MAAEX,KAAK;MAAEM;IAAM,CAAC,kBAC5C9B,KAAA,CAAAgB,aAAA;MAAQoB,GAAG,EAAEZ,KAAM;MAACA,KAAK,EAAEA;IAAM,GAC5BM,KACG,CACX,CACG,CACN,CAAC;EAEf;AACJ","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { FormRenderPropParams } from "@webiny/form";
|
|
3
|
-
import type { FormFieldElementConfig } from "./FormFieldElement";
|
|
4
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
5
|
-
export interface TextareaElementRenderProps {
|
|
6
|
-
formProps: FormRenderPropParams;
|
|
7
|
-
}
|
|
8
|
-
export interface TextareaElementConfig extends FormFieldElementConfig {
|
|
9
|
-
rows: number;
|
|
10
|
-
}
|
|
11
|
-
export declare class TextareaElement extends FormFieldElement<TextareaElementConfig> {
|
|
12
|
-
constructor(id: string, config: TextareaElementConfig);
|
|
13
|
-
setRows(rows: number): void;
|
|
14
|
-
getRows(): number;
|
|
15
|
-
render(props: TextareaElementRenderProps): React.ReactNode;
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Input } from "@webiny/ui/Input";
|
|
3
|
-
import { FormFieldElement } from "./FormFieldElement";
|
|
4
|
-
export class TextareaElement extends FormFieldElement {
|
|
5
|
-
constructor(id, config) {
|
|
6
|
-
super(id, config);
|
|
7
|
-
this.applyPlugins(TextareaElement);
|
|
8
|
-
}
|
|
9
|
-
setRows(rows) {
|
|
10
|
-
this.config.rows = rows;
|
|
11
|
-
}
|
|
12
|
-
getRows() {
|
|
13
|
-
return this.config.rows;
|
|
14
|
-
}
|
|
15
|
-
render(props) {
|
|
16
|
-
if (!props.formProps) {
|
|
17
|
-
throw Error(`TextareaElement must be placed inside of a FormElement.`);
|
|
18
|
-
}
|
|
19
|
-
const {
|
|
20
|
-
Bind
|
|
21
|
-
} = props.formProps;
|
|
22
|
-
return /*#__PURE__*/React.createElement(Bind, {
|
|
23
|
-
name: this.getName(),
|
|
24
|
-
validators: this.getValidators(props)
|
|
25
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
26
|
-
label: this.getLabel(props),
|
|
27
|
-
disabled: this.getIsDisabled(props),
|
|
28
|
-
rows: this.getRows(),
|
|
29
|
-
description: this.getDescription(props)
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=TextareaElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Input","FormFieldElement","TextareaElement","constructor","id","config","applyPlugins","setRows","rows","getRows","render","props","formProps","Error","Bind","createElement","name","getName","validators","getValidators","label","getLabel","disabled","getIsDisabled","description","getDescription"],"sources":["TextareaElement.tsx"],"sourcesContent":["import React from \"react\";\nimport { Input } from \"@webiny/ui/Input\";\nimport type { FormRenderPropParams } from \"@webiny/form\";\nimport type { FormFieldElementConfig } from \"~/ui/elements/form/FormFieldElement\";\nimport { FormFieldElement } from \"~/ui/elements/form/FormFieldElement\";\n\nexport interface TextareaElementRenderProps {\n formProps: FormRenderPropParams;\n}\n\nexport interface TextareaElementConfig extends FormFieldElementConfig {\n rows: number;\n}\n\nexport class TextareaElement extends FormFieldElement<TextareaElementConfig> {\n constructor(id: string, config: TextareaElementConfig) {\n super(id, config);\n\n this.applyPlugins(TextareaElement);\n }\n\n public setRows(rows: number): void {\n this.config.rows = rows;\n }\n\n public getRows(): number {\n return this.config.rows;\n }\n\n public override render(props: TextareaElementRenderProps): React.ReactNode {\n if (!props.formProps) {\n throw Error(`TextareaElement must be placed inside of a FormElement.`);\n }\n\n const { Bind } = props.formProps;\n\n return (\n <Bind name={this.getName()} validators={this.getValidators(props)}>\n <Input\n label={this.getLabel(props)}\n disabled={this.getIsDisabled(props)}\n rows={this.getRows()}\n description={this.getDescription(props)}\n />\n </Bind>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AAGxC,SAASC,gBAAgB;AAUzB,OAAO,MAAMC,eAAe,SAASD,gBAAgB,CAAwB;EACzEE,WAAWA,CAACC,EAAU,EAAEC,MAA6B,EAAE;IACnD,KAAK,CAACD,EAAE,EAAEC,MAAM,CAAC;IAEjB,IAAI,CAACC,YAAY,CAACJ,eAAe,CAAC;EACtC;EAEOK,OAAOA,CAACC,IAAY,EAAQ;IAC/B,IAAI,CAACH,MAAM,CAACG,IAAI,GAAGA,IAAI;EAC3B;EAEOC,OAAOA,CAAA,EAAW;IACrB,OAAO,IAAI,CAACJ,MAAM,CAACG,IAAI;EAC3B;EAEgBE,MAAMA,CAACC,KAAiC,EAAmB;IACvE,IAAI,CAACA,KAAK,CAACC,SAAS,EAAE;MAClB,MAAMC,KAAK,CAAC,yDAAyD,CAAC;IAC1E;IAEA,MAAM;MAAEC;IAAK,CAAC,GAAGH,KAAK,CAACC,SAAS;IAEhC,oBACIb,KAAA,CAAAgB,aAAA,CAACD,IAAI;MAACE,IAAI,EAAE,IAAI,CAACC,OAAO,CAAC,CAAE;MAACC,UAAU,EAAE,IAAI,CAACC,aAAa,CAACR,KAAK;IAAE,gBAC9DZ,KAAA,CAAAgB,aAAA,CAACf,KAAK;MACFoB,KAAK,EAAE,IAAI,CAACC,QAAQ,CAACV,KAAK,CAAE;MAC5BW,QAAQ,EAAE,IAAI,CAACC,aAAa,CAACZ,KAAK,CAAE;MACpCH,IAAI,EAAE,IAAI,CAACC,OAAO,CAAC,CAAE;MACrBe,WAAW,EAAE,IAAI,CAACC,cAAc,CAACd,KAAK;IAAE,CAC3C,CACC,CAAC;EAEf;AACJ","ignoreList":[]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { UIElement } from "../../UIElement";
|
|
5
|
-
import { UIRenderer } from "../../UIRenderer";
|
|
6
|
-
const ContentWrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
7
|
-
target: "enpnxwx0"
|
|
8
|
-
} : {
|
|
9
|
-
target: "enpnxwx0",
|
|
10
|
-
label: "ContentWrapper"
|
|
11
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
12
|
-
name: "4f8al9",
|
|
13
|
-
styles: "width:100%;padding-top:64px"
|
|
14
|
-
} : {
|
|
15
|
-
name: "4f8al9",
|
|
16
|
-
styles: "width:100%;padding-top:64px",
|
|
17
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRlbnRFbGVtZW50LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNdUIiLCJmaWxlIjoiQ29udGVudEVsZW1lbnQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBVSUVsZW1lbnQgfSBmcm9tIFwifi91aS9VSUVsZW1lbnRcIjtcbmltcG9ydCB0eXBlIHsgVUlSZW5kZXJQYXJhbXMgfSBmcm9tIFwifi91aS9VSVJlbmRlcmVyXCI7XG5pbXBvcnQgeyBVSVJlbmRlcmVyIH0gZnJvbSBcIn4vdWkvVUlSZW5kZXJlclwiO1xuXG5jb25zdCBDb250ZW50V3JhcHBlciA9IHN0eWxlZChcImRpdlwiKSh7XG4gICAgd2lkdGg6IFwiMTAwJVwiLFxuICAgIHBhZGRpbmdUb3A6IDY0XG59KTtcblxuY2xhc3MgQ29udGVudEVsZW1lbnRSZW5kZXJlciBleHRlbmRzIFVJUmVuZGVyZXI8Q29udGVudEVsZW1lbnQ+IHtcbiAgICBwdWJsaWMgb3ZlcnJpZGUgcmVuZGVyKHsgbmV4dCwgcHJvcHMgfTogVUlSZW5kZXJQYXJhbXM8Q29udGVudEVsZW1lbnQ+KTogUmVhY3QuUmVhY3ROb2RlIHtcbiAgICAgICAgcmV0dXJuIDxDb250ZW50V3JhcHBlcj57cHJvcHMuY2hpbGRyZW4gPyBwcm9wcy5jaGlsZHJlbiA6IG5leHQoKX08L0NvbnRlbnRXcmFwcGVyPjtcbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBDb250ZW50RWxlbWVudCBleHRlbmRzIFVJRWxlbWVudCB7XG4gICAgcHVibGljIGNvbnN0cnVjdG9yKGlkOiBzdHJpbmcpIHtcbiAgICAgICAgc3VwZXIoaWQpO1xuICAgICAgICB0aGlzLnVzZUdyaWQoZmFsc2UpO1xuICAgICAgICB0aGlzLmFkZFJlbmRlcmVyKG5ldyBDb250ZW50RWxlbWVudFJlbmRlcmVyKCkpO1xuICAgICAgICB0aGlzLmFwcGx5UGx1Z2lucyhDb250ZW50RWxlbWVudCk7XG4gICAgfVxufVxuIl19 */",
|
|
18
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
|
-
});
|
|
20
|
-
class ContentElementRenderer extends UIRenderer {
|
|
21
|
-
render({
|
|
22
|
-
next,
|
|
23
|
-
props
|
|
24
|
-
}) {
|
|
25
|
-
return /*#__PURE__*/React.createElement(ContentWrapper, null, props.children ? props.children : next());
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export class ContentElement extends UIElement {
|
|
29
|
-
constructor(id) {
|
|
30
|
-
super(id);
|
|
31
|
-
this.useGrid(false);
|
|
32
|
-
this.addRenderer(new ContentElementRenderer());
|
|
33
|
-
this.applyPlugins(ContentElement);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=ContentElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","UIElement","UIRenderer","ContentWrapper","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","ContentElementRenderer","render","next","props","createElement","children","ContentElement","constructor","id","useGrid","addRenderer","applyPlugins"],"sources":["ContentElement.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { UIElement } from \"~/ui/UIElement\";\nimport type { UIRenderParams } from \"~/ui/UIRenderer\";\nimport { UIRenderer } from \"~/ui/UIRenderer\";\n\nconst ContentWrapper = styled(\"div\")({\n width: \"100%\",\n paddingTop: 64\n});\n\nclass ContentElementRenderer extends UIRenderer<ContentElement> {\n public override render({ next, props }: UIRenderParams<ContentElement>): React.ReactNode {\n return <ContentWrapper>{props.children ? props.children : next()}</ContentWrapper>;\n }\n}\n\nexport class ContentElement extends UIElement {\n public constructor(id: string) {\n super(id);\n this.useGrid(false);\n this.addRenderer(new ContentElementRenderer());\n this.applyPlugins(ContentElement);\n }\n}\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS;AAElB,SAASC,UAAU;AAEnB,MAAMC,cAAc,gBAAGC,OAAA,CAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,CAGnC,CAAC;AAEF,MAAMC,sBAAsB,SAASb,UAAU,CAAiB;EAC5Cc,MAAMA,CAAC;IAAEC,IAAI;IAAEC;EAAsC,CAAC,EAAmB;IACrF,oBAAOlB,KAAA,CAAAmB,aAAA,CAAChB,cAAc,QAAEe,KAAK,CAACE,QAAQ,GAAGF,KAAK,CAACE,QAAQ,GAAGH,IAAI,CAAC,CAAkB,CAAC;EACtF;AACJ;AAEA,OAAO,MAAMI,cAAc,SAASpB,SAAS,CAAC;EACnCqB,WAAWA,CAACC,EAAU,EAAE;IAC3B,KAAK,CAACA,EAAE,CAAC;IACT,IAAI,CAACC,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,CAACC,WAAW,CAAC,IAAIV,sBAAsB,CAAC,CAAC,CAAC;IAC9C,IAAI,CAACW,YAAY,CAACL,cAAc,CAAC;EACrC;AACJ","ignoreList":[]}
|