@kentico/xperience-admin-base 14.0.0-109224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/CommandContext.d.ts +27 -0
- package/dist/commands/CommandProvider.d.ts +12 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/useCommand.types.d.ts +36 -0
- package/dist/commands/useCommandInvoker.d.ts +11 -0
- package/dist/commands/usePageCommand.d.ts +11 -0
- package/dist/components/ActionList/ActionList.d.ts +2 -0
- package/dist/components/ActionList/ActionList.types.d.ts +5 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +32 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.d.ts +5 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.types.d.ts +16 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/loader/Loader.d.ts +1 -0
- package/dist/components/page-loader/PageLoader.d.ts +5 -0
- package/dist/components/page-message-pane/PageMessagePane.d.ts +7 -0
- package/dist/components/portal/Portal.d.ts +8 -0
- package/dist/entry.d.ts +15 -0
- package/dist/entry.js +28 -0
- package/dist/forms/form/Form.d.ts +6 -0
- package/dist/forms/form/Form.types.d.ts +129 -0
- package/dist/forms/form/FormField.d.ts +5 -0
- package/dist/forms/form/FormField.types.d.ts +15 -0
- package/dist/forms/form/formCategory/FormCategory.d.ts +2 -0
- package/dist/forms/form/formCategory/FormCategory.types.d.ts +11 -0
- package/dist/forms/form/index.d.ts +4 -0
- package/dist/forms/form/utils/parseFormCategories.d.ts +2 -0
- package/dist/forms/form-components/FormComponent.types.d.ts +24 -0
- package/dist/forms/form-components/FormComponentLoader.d.ts +2 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorDropTile.d.ts +1 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.types.d.ts +11 -0
- package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +2 -0
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +2 -0
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +18 -0
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +16 -0
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +2 -0
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +11 -0
- package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.types.d.ts +9 -0
- package/dist/forms/form-components/formComponentUtils.d.ts +5 -0
- package/dist/forms/form-components/index.d.ts +20 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +2 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +3 -0
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +2 -0
- package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.types.d.ts +23 -0
- package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.d.ts +2 -0
- package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.types.d.ts +9 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +2 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.types.d.ts +14 -0
- package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.d.ts +2 -0
- package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.types.d.ts +15 -0
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +6 -0
- package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.d.ts +10 -0
- package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.types.d.ts +10 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.d.ts +2 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.types.d.ts +3 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/index.d.ts +2 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/index.d.ts +1 -0
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +2 -0
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +4 -0
- package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.d.ts +2 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +2 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.types.d.ts +5 -0
- package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponent.d.ts +7 -0
- package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponentProps.types.d.ts +43 -0
- package/dist/forms/hooks/FormComponentCommand.types.d.ts +7 -0
- package/dist/forms/hooks/FormComponentCommandUtils.d.ts +4 -0
- package/dist/forms/hooks/index.d.ts +4 -0
- package/dist/forms/hooks/useDisplayDialogInFullscreen.d.ts +1 -0
- package/dist/forms/hooks/useFormComponentCommand.d.ts +4 -0
- package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +4 -0
- package/dist/forms/hooks/useValidationRule.d.ts +2 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +13 -0
- package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +2 -0
- package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +7 -0
- package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.d.ts +11 -0
- package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts +14 -0
- package/dist/forms/validation-rules/email-rule/EmailValidationRule.d.ts +9 -0
- package/dist/forms/validation-rules/email-rule/EmailValidationRule.types.d.ts +5 -0
- package/dist/forms/validation-rules/identifier-rule/IdentifierValidationRule.d.ts +8 -0
- package/dist/forms/validation-rules/index.d.ts +15 -0
- package/dist/forms/validation-rules/invalid-items-rule/InvalidItemsValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.d.ts +9 -0
- package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +3 -0
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +3 -0
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.d.ts +4 -0
- package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.types.d.ts +3 -0
- package/dist/forms/validation-rules/required-value-rule/RequiredValueValidationRule.d.ts +2 -0
- package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +2 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useBlocker.d.ts +5 -0
- package/dist/hooks/useComponent.d.ts +2 -0
- package/dist/hooks/useFieldInfoObject.d.ts +2 -0
- package/dist/hooks/useInterval.d.ts +1 -0
- package/dist/hooks/useIsPathActive.d.ts +9 -0
- package/dist/hooks/useLoadDropdownOptions.d.ts +6 -0
- package/dist/hooks/useNotificationMessage.d.ts +9 -0
- package/dist/hooks/usePagePath.d.ts +5 -0
- package/dist/hooks/usePrompt.d.ts +5 -0
- package/dist/localization/Localization.types.d.ts +7 -0
- package/dist/localization/LocalizationContext.d.ts +4 -0
- package/dist/localization/LocalizationProvider.d.ts +2 -0
- package/dist/localization/index.d.ts +4 -0
- package/dist/notifications/NotificationsContext.d.ts +5 -0
- package/dist/notifications/NotificationsContext.types.d.ts +13 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/providers/CustomRightSidebarProvider.d.ts +10 -0
- package/dist/providers/backgroundImageProvider.d.ts +11 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/shared-components/ActionButtons/ActionButton/ActionButton.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionButton/ActionButton.types.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionButton/index.d.ts +1 -0
- package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.types.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionLink/index.d.ts +2 -0
- package/dist/shared-components/ActionButtons/index.d.ts +2 -0
- package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +3 -0
- package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +4 -0
- package/dist/shared-components/AppLinkButton/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.d.ts +3 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.types.d.ts +50 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.d.ts +5 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.types.d.ts +70 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanelContext.d.ts +6 -0
- package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.d.ts +2 -0
- package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.types.d.ts +85 -0
- package/dist/shared-components/Assets/AssetPanelContent/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.d.ts +5 -0
- package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.types.d.ts +8 -0
- package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.d.ts +5 -0
- package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.types.d.ts +6 -0
- package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.d.ts +2 -0
- package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.types.d.ts +6 -0
- package/dist/shared-components/Assets/AssetsLoader/index.d.ts +2 -0
- package/dist/shared-components/Assets/hooks/index.d.ts +3 -0
- package/dist/shared-components/Assets/hooks/useAssetDataManager.d.ts +26 -0
- package/dist/shared-components/Assets/hooks/useAssetFolderManager.d.ts +13 -0
- package/dist/shared-components/Assets/hooks/useAssetFolderManager.types.d.ts +54 -0
- package/dist/shared-components/Assets/hooks/useAssetLibraryManager.d.ts +10 -0
- package/dist/shared-components/Assets/hooks/useAssetLibraryManager.types.d.ts +7 -0
- package/dist/shared-components/Assets/hooks/useAssetManager.d.ts +17 -0
- package/dist/shared-components/Assets/hooks/useAssetManager.types.d.ts +151 -0
- package/dist/shared-components/Assets/hooks/useAssetTilesColumnCount.d.ts +7 -0
- package/dist/shared-components/Assets/hooks/useAssetsInfiniteScroll.d.ts +9 -0
- package/dist/shared-components/Assets/index.d.ts +4 -0
- package/dist/shared-components/Assets/types/Assets.types.d.ts +10 -0
- package/dist/shared-components/Callout/Callout.d.ts +5 -0
- package/dist/shared-components/Callout/Callout.types.d.ts +22 -0
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +33 -0
- package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +16 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ErrorFallbackAlert.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/index.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ConditionOverviewModuleLoader.d.ts +7 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterSimpleOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +6 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +24 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +9 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +7 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/Operators.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/Types/Constants.d.ts +1 -0
- package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/index.d.ts +8 -0
- package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +6 -0
- package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.d.ts +5 -0
- package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.types.d.ts +27 -0
- package/dist/shared-components/ConfirmationDialog/index.d.ts +2 -0
- package/dist/shared-components/OverviewCard/OverviewCard.d.ts +3 -0
- package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +16 -0
- package/dist/shared-components/OverviewCard/card-components/OverviewCardComponentLoader.d.ts +2 -0
- package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.d.ts +2 -0
- package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.types.d.ts +3 -0
- package/dist/shared-components/OverviewCard/card-components/index.d.ts +1 -0
- package/dist/shared-components/OverviewCard/index.d.ts +3 -0
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +3 -0
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +4 -0
- package/dist/shared-components/OverviewCardGroup/index.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.types.d.ts +4 -0
- package/dist/shared-components/StickyHeader/index.d.ts +2 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.d.ts +5 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.types.d.ts +3 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/index.d.ts +2 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.d.ts +5 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.types.d.ts +4 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/index.d.ts +2 -0
- package/dist/shared-components/Textarea/index.d.ts +2 -0
- package/dist/shared-components/index.d.ts +15 -0
- package/dist/template-components/builder/PropertiesDialog.d.ts +2 -0
- package/dist/template-components/builder/PropertiesDialog.types.d.ts +40 -0
- package/dist/template-components/builder/PropertiesDialogContext.d.ts +3 -0
- package/dist/template-components/builder/PropertiesDialogContext.types.d.ts +23 -0
- package/dist/template-components/builder/index.d.ts +5 -0
- package/dist/template-components/builder/utils/keysToCamelCase.d.ts +6 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.d.ts +2 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.types.d.ts +5 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/index.d.ts +2 -0
- package/dist/template-components/dialog/TemplateDialog.d.ts +2 -0
- package/dist/template-components/dialog/TemplateDialog.types.d.ts +8 -0
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +3 -0
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +44 -0
- package/dist/template-components/index.d.ts +7 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +3 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +7 -0
- package/dist/template-components/secondary-menu/SecondaryMenu.d.ts +5 -0
- package/dist/template-components/secondary-menu/SecondaryMenuCell.d.ts +7 -0
- package/dist/template-components/secondary-menu/SecondaryMenuHeadline.d.ts +9 -0
- package/dist/template-components/secondary-menu/SecondaryMenuWrapper.d.ts +10 -0
- package/dist/template-components/side-menu/TemplateSideMenu.d.ts +1 -0
- package/dist/template-components/side-menu/side-menu-item/SideMenuItem.d.ts +2 -0
- package/dist/template-components/side-menu/side-menu-item/SideMenuItem.types.d.ts +4 -0
- package/dist/template-components/side-panel/TemplateSidePanel.d.ts +2 -0
- package/dist/template-components/side-panel/TemplateSidePanel.types.d.ts +8 -0
- package/dist/template-components/side-panel/TemplateSidePanelContext.d.ts +3 -0
- package/dist/template-components/side-panel/TemplateSidePanelContext.types.d.ts +32 -0
- package/dist/template-components/template-loader/TemplateLoader.d.ts +5 -0
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +13 -0
- package/dist/template-properties/TemplateProperties.types.d.ts +40 -0
- package/dist/template-properties/TemplatePropertiesProvider.d.ts +9 -0
- package/dist/template-properties/index.d.ts +2 -0
- package/dist/templates/app/App.types.d.ts +25 -0
- package/dist/templates/app/AppTemplate.d.ts +3 -0
- package/dist/templates/app/application-menu/ApplicationMenu.d.ts +4 -0
- package/dist/templates/app/application-menu/ApplicationMenu.types.d.ts +5 -0
- package/dist/templates/app/application-menu/application-list/ApplicationList.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/ApplicationList.types.d.ts +31 -0
- package/dist/templates/app/application-menu/application-list/ApplicationListGroup.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/ApplicationListItem.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/index.d.ts +1 -0
- package/dist/templates/app/application-menu/application-list/utils.d.ts +10 -0
- package/dist/templates/app/application-menu/index.d.ts +1 -0
- package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.d.ts +4 -0
- package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.types.d.ts +5 -0
- package/dist/templates/app/application-menu-mobile/index.d.ts +1 -0
- package/dist/templates/app/avatar/Avatar.d.ts +13 -0
- package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +19 -0
- package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +4 -0
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +2 -0
- package/dist/templates/app/breadcrumbs/index.d.ts +2 -0
- package/dist/templates/app/main/Main.d.ts +6 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigation.types.d.ts +11 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationContext.d.ts +4 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationProvider.d.ts +2 -0
- package/dist/templates/app/secondary-menu-navigation/index.d.ts +2 -0
- package/dist/templates/app/siteselector/SiteSelector.d.ts +4 -0
- package/dist/templates/app/siteselector/SiteSelector.types.d.ts +27 -0
- package/dist/templates/app/small-status-bar/Cell.d.ts +9 -0
- package/dist/templates/app/small-status-bar/SmallStatusBar.d.ts +5 -0
- package/dist/templates/app/small-status-bar/index.d.ts +1 -0
- package/dist/templates/app/status-bar/StatusBar.d.ts +9 -0
- package/dist/templates/app/status-bar/index.d.ts +1 -0
- package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +2 -0
- package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +7 -0
- package/dist/templates/dashboard/Dashboard.types.d.ts +4 -0
- package/dist/templates/dashboard/DashboardTemplate.d.ts +2 -0
- package/dist/templates/edit/EditSectionTemplate.d.ts +2 -0
- package/dist/templates/edit/EditSectionTemplate.types.d.ts +17 -0
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +2 -0
- package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +4 -0
- package/dist/templates/field-editor/FieldEditorForm.d.ts +5 -0
- package/dist/templates/field-editor/FieldEditorForm.types.d.ts +11 -0
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +14 -0
- package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +83 -0
- package/dist/templates/index.d.ts +13 -0
- package/dist/templates/listing/Listing.types.d.ts +25 -0
- package/dist/templates/listing/ListingTemplate.d.ts +2 -0
- package/dist/templates/no-license/NoLicenseTemplate.d.ts +2 -0
- package/dist/templates/no-license/NoLicenseTemplate.types.d.ts +8 -0
- package/dist/templates/overview/OverviewTemplate.d.ts +2 -0
- package/dist/templates/overview/OverviewTemplate.types.d.ts +31 -0
- package/dist/templates/secondary-menu-layout/SecondaryMenuLayout.d.ts +1 -0
- package/dist/templates/secondary-menu-layout/SecondaryMenuLayoutTemplate.d.ts +1 -0
- package/dist/templates/secondary-menu-layout/index.d.ts +1 -0
- package/dist/templates/settings/context/SettingsContext.d.ts +4 -0
- package/dist/templates/settings/context/SettingsContext.types.d.ts +11 -0
- package/dist/templates/settings/context/SettingsContextProvider.d.ts +12 -0
- package/dist/templates/settings/detail/SettingsBreadcrumbs.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsDetails.types.d.ts +24 -0
- package/dist/templates/settings/detail/SettingsDetailsTemplate.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsNoResultPage.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsNoResultPage.types.d.ts +4 -0
- package/dist/templates/settings/detail/SettingsSearchTemplate.d.ts +2 -0
- package/dist/templates/settings/index.d.ts +3 -0
- package/dist/templates/settings/layout/NodeComponent.d.ts +2 -0
- package/dist/templates/settings/layout/NodeComponentProps.d.ts +6 -0
- package/dist/templates/settings/layout/SettingsLayout.types.d.ts +9 -0
- package/dist/templates/settings/layout/SettingsLayoutTemplate.d.ts +2 -0
- package/dist/templates/settings/layout/SettingsSearchRowComponent.d.ts +1 -0
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +1 -0
- package/dist/types/Action.types.d.ts +15 -0
- package/dist/types/NotificationMessage.types.d.ts +11 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/authentication/logonUrlProvider.d.ts +10 -0
- package/dist/utils/basePathUtils.d.ts +8 -0
- package/dist/utils/constants.d.ts +5 -0
- package/dist/utils/formatString.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/loadModule.d.ts +9 -0
- package/dist/utils/pathUtils/index.d.ts +1 -0
- package/dist/utils/pathUtils/pathUtils.d.ts +9 -0
- package/dist/utils/postToAdmin.d.ts +21 -0
- package/dist/utils/responseStatusActions.d.ts +15 -0
- package/package.json +89 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { UITestProps } from '@kentico/xperience-admin-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FormComponentProps } from '../form-components/FormComponent.types';
|
|
4
|
+
import { FormCategoryProps } from './formCategory/FormCategory.types';
|
|
5
|
+
/**
|
|
6
|
+
* Form reference exposing Form functions.
|
|
7
|
+
*/
|
|
8
|
+
export declare type FormRef = {
|
|
9
|
+
/**
|
|
10
|
+
* Submits the entire form.
|
|
11
|
+
*/
|
|
12
|
+
submit: (action?: string) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Resets data changed flag after successfull form submission.
|
|
15
|
+
*/
|
|
16
|
+
resetDataChanged: () => void;
|
|
17
|
+
} | null;
|
|
18
|
+
/**
|
|
19
|
+
* Defines a form context type.
|
|
20
|
+
*/
|
|
21
|
+
export interface FormStatus {
|
|
22
|
+
/**
|
|
23
|
+
* Represents form name.
|
|
24
|
+
*/
|
|
25
|
+
readonly name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates whether any form data has been changed.
|
|
28
|
+
* Form submission resets value to true.
|
|
29
|
+
*/
|
|
30
|
+
readonly dataChanged?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Name of the form the components are rendered within.
|
|
34
|
+
*/
|
|
35
|
+
export declare const FormContext: React.Context<FormStatus>;
|
|
36
|
+
/**
|
|
37
|
+
* Array of form components and their categories.
|
|
38
|
+
*/
|
|
39
|
+
export declare type FormItems = Array<FormComponentProps | FormCategoryProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Form category with its form components.
|
|
42
|
+
*/
|
|
43
|
+
export interface CategoryWithComponents {
|
|
44
|
+
readonly category: FormCategoryProps | null;
|
|
45
|
+
readonly components: FormComponentProps[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Properties for Form cmponent.
|
|
49
|
+
*/
|
|
50
|
+
export interface FormProps extends UITestProps {
|
|
51
|
+
/**
|
|
52
|
+
* Form component has no button rendered, define the children to display submitting component.
|
|
53
|
+
*/
|
|
54
|
+
readonly children?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Collection of form items which will be displayed inside the form.
|
|
57
|
+
*/
|
|
58
|
+
readonly items: FormItems;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the form.
|
|
61
|
+
*/
|
|
62
|
+
readonly name?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Determines whether the form is read only.
|
|
65
|
+
*/
|
|
66
|
+
readonly readOnly?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Allows to specify CSS class of the field block.
|
|
69
|
+
*/
|
|
70
|
+
readonly fieldCssClass?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Function for form value change monitoring.
|
|
73
|
+
*/
|
|
74
|
+
readonly onChange?: (e: ChangeEventHandler) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Function for a valid form value change monitoring.
|
|
77
|
+
* Raised only when a changed form component value passes all validation rules
|
|
78
|
+
* or when the form component does not have any validation rule registered.
|
|
79
|
+
*/
|
|
80
|
+
readonly onValidChange?: (e: ChangeEventHandler) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Submit function used to submit form data.
|
|
83
|
+
*/
|
|
84
|
+
readonly onSubmit?: (e: SubmitEventHandler, action?: string) => void;
|
|
85
|
+
}
|
|
86
|
+
export interface ChangeEventHandler {
|
|
87
|
+
readonly changedField: {
|
|
88
|
+
name: string;
|
|
89
|
+
hasDependencies: boolean;
|
|
90
|
+
};
|
|
91
|
+
readonly values: {
|
|
92
|
+
[fieldName: string]: any;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export interface SubmitEventHandler {
|
|
96
|
+
readonly values: {
|
|
97
|
+
[fieldName: string]: any;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Represents result of form submission.
|
|
102
|
+
*/
|
|
103
|
+
export interface FormSubmissionResult {
|
|
104
|
+
/**
|
|
105
|
+
* Collection of form items and categories which will be displayed inside the form.
|
|
106
|
+
*/
|
|
107
|
+
readonly items: FormItems;
|
|
108
|
+
/**
|
|
109
|
+
* Status of the form submission and validation process.
|
|
110
|
+
*/
|
|
111
|
+
readonly status: FormSubmissionStatus;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Indicates the state of the form submission and validation result.
|
|
115
|
+
*/
|
|
116
|
+
export declare enum FormSubmissionStatus {
|
|
117
|
+
/**
|
|
118
|
+
* Error during the form submission.
|
|
119
|
+
*/
|
|
120
|
+
Error = "error",
|
|
121
|
+
/**
|
|
122
|
+
* Form validation failed.
|
|
123
|
+
*/
|
|
124
|
+
ValidationFailure = "validationFailure",
|
|
125
|
+
/**
|
|
126
|
+
* Submission and validation successful.
|
|
127
|
+
*/
|
|
128
|
+
ValidationSuccess = "validationSuccess"
|
|
129
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldInfo, FormComponentProps } from '../form-components/FormComponent.types';
|
|
3
|
+
import { ValidationResult } from '../validation-rules/ValidationRule.types';
|
|
4
|
+
/**
|
|
5
|
+
* General propoerties for FormField component.
|
|
6
|
+
*/
|
|
7
|
+
export interface FormFieldProps extends FormComponentProps {
|
|
8
|
+
readonly fieldCssClass?: string;
|
|
9
|
+
readonly onValidated?: (invalidValidationResults: ValidationResult[]) => void;
|
|
10
|
+
readonly onValidChange?: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The form field in which components are rendered.
|
|
14
|
+
*/
|
|
15
|
+
export declare const FormFieldContext: React.Context<FieldInfo>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FormCategoryProps {
|
|
3
|
+
readonly title: string;
|
|
4
|
+
readonly collapsible?: boolean;
|
|
5
|
+
readonly isCollapsed?: boolean;
|
|
6
|
+
readonly tooltip?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FormCategoryComponentProps {
|
|
9
|
+
readonly category?: FormCategoryProps | null;
|
|
10
|
+
readonly children: React.ReactNode;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValidationRuleProps } from '../validation-rules/ValidationRule.types';
|
|
2
|
+
export declare type OnChangeValueType = any;
|
|
3
|
+
export declare type FieldInfoValueType = Record<string, any>;
|
|
4
|
+
export interface FieldInfo {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly fieldValues: FieldInfoValueType;
|
|
7
|
+
}
|
|
8
|
+
export interface FormComponentProps extends FieldInfo {
|
|
9
|
+
readonly componentName: string;
|
|
10
|
+
readonly hasDependencies: boolean;
|
|
11
|
+
readonly label?: string;
|
|
12
|
+
readonly statusText?: string;
|
|
13
|
+
readonly explanationText?: string;
|
|
14
|
+
readonly tooltip?: string;
|
|
15
|
+
readonly readOnly?: boolean;
|
|
16
|
+
readonly value?: any;
|
|
17
|
+
readonly invalid?: boolean;
|
|
18
|
+
readonly validationMessage?: string;
|
|
19
|
+
readonly validationRules?: ValidationRuleProps[];
|
|
20
|
+
readonly onChange?: (value: OnChangeValueType) => void;
|
|
21
|
+
readonly required?: boolean;
|
|
22
|
+
readonly disabledMessage?: string;
|
|
23
|
+
readonly guid: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AssetSelectorDropTile: () => JSX.Element;
|
package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AssetSelectorFormComponentProps } from './AssetSelectorFormComponent.types';
|
|
2
|
+
/**
|
|
3
|
+
* Form component capable of selecting multiple assets from AssetSelector component.
|
|
4
|
+
*/
|
|
5
|
+
export declare const AssetSelectorFormComponent: (props: AssetSelectorFormComponentProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AssetTile } from '../../../shared-components/Assets';
|
|
2
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
3
|
+
/**
|
|
4
|
+
* Properties for AssetSelectorFormComponent component.
|
|
5
|
+
*/
|
|
6
|
+
export interface AssetSelectorFormComponentProps extends FormComponentProps {
|
|
7
|
+
readonly siteIdentifier: number;
|
|
8
|
+
readonly maximumAssets: number;
|
|
9
|
+
readonly allowedExtensions?: string;
|
|
10
|
+
readonly assets: AssetTile[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ConditionBuilderFormComponentProps } from './ConditionBuilderFormComponent.types';
|
|
2
|
+
export declare const ConditionBuilderFormComponent: ({ initialConfiguration, availableMacroRules, availableMacroRuleConfigurations, onChange, label, disabledMessage, invalid, validationMessage, readOnly, required, explanationText, tooltip, ...props }: ConditionBuilderFormComponentProps) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
+
import { ConditionBuilderProps } from '../../../shared-components/ConditionBuilder/ConditionBuilder';
|
|
3
|
+
import { FormSubmissionStatus } from '../..';
|
|
4
|
+
export interface ConditionBuilderFormComponentProps extends FormComponentProps, Omit<ConditionBuilderProps, 'onChange'> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Represents result of form submission.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetMacroCommandSubmissionResult {
|
|
10
|
+
/**
|
|
11
|
+
* Status of the form submission and validation process.
|
|
12
|
+
*/
|
|
13
|
+
readonly status: FormSubmissionStatus;
|
|
14
|
+
/**
|
|
15
|
+
* Status of the form submission and validation process.
|
|
16
|
+
*/
|
|
17
|
+
readonly result?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SingleObjectSelectorFormComponentProps } from './SingleObjectSelectorFormComponentProps.types';
|
|
2
|
+
export declare const SingleObjectSelectorFormComponent: {
|
|
3
|
+
({ objectType, textColumnName, valueColumnName, fieldValues, name, ...props }: SingleObjectSelectorFormComponentProps): JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DropDownOption } from '../../dropdown-form-component/DropDownFormComponentProps.types';
|
|
2
|
+
import { FormComponentProps } from '../../FormComponent.types';
|
|
3
|
+
export interface SingleObjectSelectorFormComponentProps extends FormComponentProps {
|
|
4
|
+
readonly objectType: string;
|
|
5
|
+
readonly textColumnName: string;
|
|
6
|
+
readonly valueColumnName: string;
|
|
7
|
+
readonly placeholder?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LoadOptionsCommandArguments {
|
|
10
|
+
readonly options: DropDownOption[];
|
|
11
|
+
}
|
|
12
|
+
export interface LoadOptionsCommandResult {
|
|
13
|
+
readonly objectType: string;
|
|
14
|
+
readonly textColumnName: string;
|
|
15
|
+
readonly valueColumnName: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DropDownFormComponentProps } from './DropDownFormComponentProps.types';
|
|
2
|
+
export declare const DropdownSelectorFormComponent: ({ value, label, readOnly, placeholder, name, invalid, required, disabledMessage, tooltip, explanationText, validationMessage, options, maxContentHeight, onChange }: DropDownFormComponentProps) => JSX.Element;
|
package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UITestProps } from '@kentico/xperience-admin-components';
|
|
2
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
3
|
+
export interface DropDownFormComponentProps extends FormComponentProps, UITestProps {
|
|
4
|
+
readonly options: DropDownOption[];
|
|
5
|
+
readonly placeholder?: string;
|
|
6
|
+
readonly maxContentHeight?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DropDownOption {
|
|
9
|
+
readonly value: string;
|
|
10
|
+
readonly text: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtensionSelectorProps } from './ExtensionSelectorFormComponent.types';
|
|
2
|
+
/**
|
|
3
|
+
* Form component used to set allowed extensions.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ExtensionSelectorFormComponent: ({ allowedExtensions, inheritSystemSettings, settingsAllowedExtensions, ...props }: ExtensionSelectorProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
+
/**
|
|
3
|
+
* Properties for ExtensionSelectorFormComponent.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExtensionSelectorProps extends FormComponentProps {
|
|
6
|
+
readonly allowedExtensions?: string;
|
|
7
|
+
readonly settingsAllowedExtensions: string;
|
|
8
|
+
readonly inheritSystemSettings: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './FormComponent.types';
|
|
2
|
+
export * from './checkbox-form-component/CheckboxFormComponent';
|
|
3
|
+
export * from './namespace-code-name-form-component/NamespaceCodeNameFormComponent';
|
|
4
|
+
export * from './condition-builder-form-component/ConditionBuilderFormComponent';
|
|
5
|
+
export * from './dropdown-form-component/DropDownFormComponent';
|
|
6
|
+
export * from './dropdown-form-component/DropDownFormComponentProps.types';
|
|
7
|
+
export * from './number-input-form-component/NumberInputFormComponent';
|
|
8
|
+
export * from './password-form-component/PasswordFormComponent';
|
|
9
|
+
export * from './radio-group-form-component/RadioGroupFormComponent';
|
|
10
|
+
export * from './rich-text-editor-form-component/RichTextEditorFormComponent';
|
|
11
|
+
export * from './rich-text-editor-form-component/plugins';
|
|
12
|
+
export * from './text-input-form-component/TextInputFormComponent';
|
|
13
|
+
export * from './text-input-form-component/TextInputFormComponentProps.types';
|
|
14
|
+
export * from './textarea-form-component/TextAreaFormComponent';
|
|
15
|
+
export * from './condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent';
|
|
16
|
+
export * from './asset-selector-form-component/AssetSelectorFormComponent';
|
|
17
|
+
export * from './extension-selector-form-component/ExtensionSelectorFormComponent';
|
|
18
|
+
export * from './validation-rule-list-form-component/ValidationRuleListFormComponent';
|
|
19
|
+
export * from './text-with-label-form-component/TextWithLabelFormComponent';
|
|
20
|
+
export * from './object-selector-form-component/ObjectSelectorFormComponent';
|
package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ObjectSelectorProps } from './ObjectSelectorFormComponent.types';
|
|
2
|
+
export declare const ObjectSelectorFormComponent: {
|
|
3
|
+
({ selectedObjects, maximumItems, placeholder, readOnly, invalid, required, label, statusText, explanationText, validationMessage, onChange, ...props }: ObjectSelectorProps): JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
+
export interface ObjectSelectorProps extends FormComponentProps {
|
|
3
|
+
readonly maximumItems: number;
|
|
4
|
+
readonly placeholder?: string;
|
|
5
|
+
readonly selectedObjects: ObjectSelectorSelectionItem[];
|
|
6
|
+
}
|
|
7
|
+
export interface LoadObjectsArguments {
|
|
8
|
+
readonly searchTerm: string;
|
|
9
|
+
readonly pageIndex: number;
|
|
10
|
+
}
|
|
11
|
+
export interface LoadObjectsCommandResult {
|
|
12
|
+
readonly objects: ObjectSelectorSelectionItem[];
|
|
13
|
+
readonly nextPageAvailable: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ObjectSelectorItem {
|
|
16
|
+
readonly objectCodeName: string;
|
|
17
|
+
readonly objectGuid: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ObjectSelectorSelectionItem {
|
|
20
|
+
readonly value: ObjectSelectorItem;
|
|
21
|
+
readonly text: string;
|
|
22
|
+
readonly isValid: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GroupBase } from 'react-select';
|
|
2
|
+
import { AsyncPaginateProps } from 'react-select-async-paginate';
|
|
3
|
+
export interface Option {
|
|
4
|
+
readonly value: string;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly isValid: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface AsyncDropDownProps extends AsyncPaginateProps<Option, GroupBase<Option>, unknown, boolean> {
|
|
9
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PasswordProps } from './PasswordFormComponent.types';
|
|
2
|
+
export declare const PasswordFormComponent: ({ requiredLength, requireLowercase, requireUppercase, requiredUniqueChars, requireDigit, requireNonAlphanumeric, ignorePasswordPolicy, ...props }: PasswordProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormComponentProps } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Properties for PasswordFormComponent.
|
|
4
|
+
* Represents the valid password policy.
|
|
5
|
+
*/
|
|
6
|
+
export interface PasswordProps extends FormComponentProps {
|
|
7
|
+
readonly requireDigit?: boolean;
|
|
8
|
+
readonly requiredLength?: number;
|
|
9
|
+
readonly requiredUniqueChars?: number;
|
|
10
|
+
readonly requireUppercase?: boolean;
|
|
11
|
+
readonly requireLowercase?: boolean;
|
|
12
|
+
readonly requireNonAlphanumeric?: boolean;
|
|
13
|
+
readonly ignorePasswordPolicy: boolean;
|
|
14
|
+
}
|
package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.types.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
+
/**
|
|
3
|
+
* Properties for RadioGroupFormComponent.
|
|
4
|
+
*/
|
|
5
|
+
export interface RadioGroupProps extends FormComponentProps {
|
|
6
|
+
readonly options: RadioButtonProps[];
|
|
7
|
+
readonly inline: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface RadioButtonProps {
|
|
10
|
+
readonly value: string;
|
|
11
|
+
readonly label: string;
|
|
12
|
+
readonly caption?: string;
|
|
13
|
+
readonly disabled?: boolean;
|
|
14
|
+
readonly alert?: boolean;
|
|
15
|
+
}
|
package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RichTextEditorFormComponentProps } from './RichTextEditorFormComponentProps.types';
|
|
2
|
+
/**
|
|
3
|
+
* Form component capable of selecting assets from AssetsSelector component.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RichTextEditorFormComponent: ({ label, placeholder, tooltipTextOnDisabled, configuration, value, onChange, invalid, validationMessage, readOnly, required, disabledMessage, tooltip, explanationText, guid, ...props }: RichTextEditorFormComponentProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AssetLibrary } from '../../../../shared-components/Assets/types/Assets.types';
|
|
3
|
+
import { AssetPanelRef } from '../../../../shared-components/Assets/AssetPanel/AssetPanel.types';
|
|
4
|
+
import { FieldInfo } from '../../../../forms';
|
|
5
|
+
export declare const useAssetPanel: (fieldInfo: FieldInfo) => {
|
|
6
|
+
onLibrariesLoad: (libraries: AssetLibrary[]) => void;
|
|
7
|
+
assetPanelEnabled: boolean;
|
|
8
|
+
imageExtensions: string;
|
|
9
|
+
assetPanelRef: React.RefObject<AssetPanelRef>;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './asset';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ValidationRuleListFormComponentProps } from './ValidationRuleListFormComponentProps.types';
|
|
2
|
+
/**
|
|
3
|
+
* Form component to display and edit validation rules of field in field editor.
|
|
4
|
+
* The component is meant to be used with the field editor so it correctly displays rules
|
|
5
|
+
* based on the selected component in the editor.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ValidationRuleListFormComponent: ({ onChange, ruleDefinitions, ...props }: ValidationRuleListFormComponentProps) => JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
+
/**
|
|
3
|
+
* Form component properties for ValidationRulesFormComponent
|
|
4
|
+
*/
|
|
5
|
+
export interface ValidationRuleListFormComponentProps extends FormComponentProps {
|
|
6
|
+
readonly ruleDefinitions: ValidationRuleDefinition[];
|
|
7
|
+
readonly rulesDescriptions: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Validation rule metadata.
|
|
11
|
+
*/
|
|
12
|
+
export interface ValidationRuleDefinition {
|
|
13
|
+
readonly identifier: string;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly description: string;
|
|
16
|
+
readonly componentsProperties: FormComponentProps[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Carries values of configured validation rules.
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidationConfiguration {
|
|
22
|
+
readonly identifier: string;
|
|
23
|
+
readonly validationRuleIdentifier: string;
|
|
24
|
+
readonly ruleValues: Record<string, any>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Arguments for the CreateValidationRule page command.
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateValidationRuleArgs {
|
|
30
|
+
identifier: string;
|
|
31
|
+
formData: {
|
|
32
|
+
[fieldName: string]: any;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Result of the CreateValidationRule page command.
|
|
37
|
+
*/
|
|
38
|
+
export interface CreateValidationRuleResult {
|
|
39
|
+
rule: ValidationConfiguration;
|
|
40
|
+
description: string;
|
|
41
|
+
isValid: boolean;
|
|
42
|
+
componentsProperties: FormComponentProps[];
|
|
43
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldInfo } from '../form-components/FormComponent.types';
|
|
2
|
+
import { FormComponentCommandModel } from './FormComponentCommand.types';
|
|
3
|
+
export declare const componentCommandName = "ComponentCommand";
|
|
4
|
+
export declare const prepareFormComponentCommandPayload: <TData = unknown>(formName: string, fieldInfo: FieldInfo, commandName: string, data?: TData | undefined) => FormComponentCommandModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDisplayDialogInFullscreen: (screenWidthBreakpoint?: number | undefined, screenHeightBreakpoint?: number | undefined) => boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Command, UseCommandConfig } from '../../commands';
|
|
3
|
+
import { FieldInfo } from '../form-components/FormComponent.types';
|
|
4
|
+
export declare const useFormComponentCommand: <TCommandResult, TCommandData = void>(fieldInfo: FieldInfo, commandName: string, config?: UseCommandConfig<TCommandResult, TCommandData> | undefined, dependencies?: React.DependencyList | undefined) => Command<TCommandData>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldInfo } from '../form-components';
|
|
2
|
+
export declare const useFormComponentCommandProvider: () => {
|
|
3
|
+
executeCommand: <TCommandResult = void, TData = void>(fieldInfo: FieldInfo, name: string, data?: TData | undefined, files?: FileList | undefined) => Promise<TCommandResult | undefined>;
|
|
4
|
+
};
|