@kentico/xperience-admin-base 14.0.0-68025 → 14.0.0-87740
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/components/ActionList/ActionList.d.ts +1 -2
- package/dist/components/ActionList/ActionList.types.d.ts +2 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +23 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.d.ts +5 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.types.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/loader/Loader.d.ts +0 -1
- package/dist/components/page-loader/PageLoader.d.ts +5 -2
- package/dist/entry.d.ts +2 -0
- package/dist/entry.js +16 -2
- package/dist/forms/form/Form.types.d.ts +6 -1
- package/dist/forms/form/FormField.d.ts +0 -1
- package/dist/forms/form/FormField.types.d.ts +7 -1
- package/dist/forms/form-components/FormComponent.types.d.ts +3 -2
- package/dist/forms/form-components/FormComponentLoader.d.ts +0 -1
- 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 +0 -1
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +1 -2
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +4 -2
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +1 -2
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +3 -1
- 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/index.d.ts +7 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +0 -1
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +0 -1
- package/dist/forms/form-components/page-selector-form-component/PageSelectorFormComponent.d.ts +2 -0
- package/dist/forms/form-components/page-selector-form-component/PageSelectorFormComponent.types.d.ts +4 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +0 -1
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +4 -2
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +1 -14
- 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 +9 -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 +0 -1
- package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.d.ts +2 -0
- package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.types.d.ts +4 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +2 -3
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.types.d.ts +4 -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/index.d.ts +1 -0
- package/dist/forms/hooks/useDisplayDialogInFullscreen.d.ts +1 -0
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +1 -1
- 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/index.d.ts +3 -2
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +0 -1
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +0 -1
- package/dist/forms/validation-rules/required-value-rule/RequiredValueValidationRule.d.ts +2 -0
- package/dist/hooks/useComponent.d.ts +2 -1
- package/dist/hooks/useIsPathActive.d.ts +8 -0
- package/dist/hooks/useLoadDropdownOptions.d.ts +6 -0
- package/dist/localization/LocalizationProvider.d.ts +0 -1
- package/dist/providers/backgroundImageProvider.d.ts +11 -0
- package/dist/providers/index.d.ts +1 -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 +2 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.types.d.ts +85 -0
- package/dist/shared-components/Assets/AssetPanel/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetSelector/AssetSelector.d.ts +5 -0
- package/dist/shared-components/Assets/AssetSelector/AssetSelector.types.d.ts +49 -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 +16 -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 +1 -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 +1 -2
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +2 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +0 -1
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +0 -1
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ErrorFallbackAlert.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +4 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +4 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +4 -2
- 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 +0 -1
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterSimpleOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +0 -1
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +4 -4
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +1 -2
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +1 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +0 -1
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +1 -2
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +1 -0
- package/dist/shared-components/ConditionBuilder/Types/Constants.d.ts +1 -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/StickyHeader/StickyHeader.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.types.d.ts +5 -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 +3 -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 +10 -3
- 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 +0 -1
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +0 -1
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +14 -2
- package/dist/template-components/index.d.ts +1 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +0 -1
- package/dist/template-components/template-loader/TemplateLoader.d.ts +0 -1
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +1 -1
- package/dist/template-properties/TemplateProperties.types.d.ts +1 -0
- package/dist/templates/app/App.types.d.ts +10 -3
- package/dist/templates/app/AppTemplate.d.ts +2 -3
- 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/avatar/Avatar.d.ts +7 -6
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +0 -1
- package/dist/templates/app/main/Main.d.ts +1 -3
- package/dist/templates/app/siteselector/SiteSelector.d.ts +1 -3
- package/dist/templates/app/siteselector/SiteSelector.types.d.ts +27 -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 +0 -1
- package/dist/templates/dashboard/Dashboard.types.d.ts +4 -0
- package/dist/templates/dashboard/DashboardTemplate.d.ts +2 -3
- package/dist/templates/edit/EditSectionTemplate.d.ts +2 -0
- package/dist/templates/edit/{EditTemplate.types.d.ts → EditSectionTemplate.types.d.ts} +4 -2
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +0 -1
- package/dist/templates/field-editor/FieldEditorForm.d.ts +0 -1
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +0 -1
- package/dist/templates/index.d.ts +4 -2
- package/dist/templates/listing/Listing.types.d.ts +2 -0
- package/dist/templates/listing/ListingTemplate.d.ts +1 -2
- package/dist/templates/overview/OverviewTemplate.d.ts +0 -1
- package/dist/templates/overview/OverviewTemplate.types.d.ts +3 -45
- 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/SideNavigationLayout.d.ts +1 -0
- package/dist/templates/side-navigation-layout/SideNavigationLayoutContext.d.ts +7 -0
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +0 -1
- package/dist/templates/side-navigation-layout/index.d.ts +3 -0
- package/dist/templates/side-navigation-layout/vertical-menu/NavLinkItem.d.ts +6 -0
- package/dist/templates/side-navigation-layout/vertical-menu/VerticalMenu.d.ts +0 -1
- package/dist/templates/view-menu-navigation-layout/ViewMenuNavigationLayoutTemplate.d.ts +1 -0
- package/dist/utils/basePathUtils.d.ts +6 -2
- package/dist/utils/constants.d.ts +3 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/loadModule.d.ts +2 -3
- package/package.json +41 -35
- package/dist/8ce68503cd833f15dce1.png +0 -0
- package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.Types.d.ts +0 -4
- package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.d.ts +0 -3
- package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.d.ts +0 -3
- package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.types.d.ts +0 -17
- package/dist/shared-components/AssetsFoldersTreeView/index.d.ts +0 -2
- package/dist/shared-components/AssetsPanel/AssetsPanel.d.ts +0 -3
- package/dist/shared-components/AssetsPanel/AssetsPanel.types.d.ts +0 -39
- package/dist/shared-components/AssetsPanel/index.d.ts +0 -2
- package/dist/shared-components/AssetsSelector/AssetsSelector.d.ts +0 -3
- package/dist/shared-components/AssetsSelector/AssetsSelector.types.d.ts +0 -35
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/TextInputFormParameterOverview.d.ts +0 -3
- package/dist/shared-components/callout/Callout.d.ts +0 -3
- package/dist/shared-components/callout/Callout.types.d.ts +0 -9
- package/dist/templates/app/header/Header.d.ts +0 -5
- package/dist/templates/app/header/index.d.ts +0 -1
- package/dist/templates/app/sidebar/Sidebar.d.ts +0 -7
- package/dist/templates/app/sidebar/index.d.ts +0 -1
- package/dist/templates/dashboard/tile/Tile.d.ts +0 -3
- package/dist/templates/dashboard/tile-category/TileCategory.d.ts +0 -3
- package/dist/templates/edit/EditTemplate.d.ts +0 -3
- package/dist/utils/convertTagGradient.d.ts +0 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UITestProps } from '@kentico/xperience-admin-components';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { FormComponentProps } from '../form-components/FormComponent.types';
|
|
3
4
|
/**
|
|
@@ -16,7 +17,7 @@ export declare const FormNameContext: React.Context<string>;
|
|
|
16
17
|
/**
|
|
17
18
|
* Properties for Form cmponent.
|
|
18
19
|
*/
|
|
19
|
-
export interface FormProps {
|
|
20
|
+
export interface FormProps extends UITestProps {
|
|
20
21
|
/**
|
|
21
22
|
* Form component has no button rendered, define the children to display submitting component.
|
|
22
23
|
*/
|
|
@@ -33,6 +34,10 @@ export interface FormProps {
|
|
|
33
34
|
* Determines whether the form is read only.
|
|
34
35
|
*/
|
|
35
36
|
readonly readOnly?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Allows to specify CSS class of the field block.
|
|
39
|
+
*/
|
|
40
|
+
readonly fieldCssClass?: string;
|
|
36
41
|
/**
|
|
37
42
|
* Function for form value change monitoring.
|
|
38
43
|
*/
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldInfo, FormComponentProps } from '../form-components/FormComponent.types';
|
|
2
3
|
import { ValidationResult } from '../validation-rules/ValidationRule.types';
|
|
3
4
|
export interface FormFieldProps extends FormComponentProps {
|
|
4
5
|
readonly allowRevalidate: boolean;
|
|
6
|
+
readonly fieldCssClass?: string;
|
|
5
7
|
readonly onValidated?: (invalidValidationResults: ValidationResult[]) => void;
|
|
6
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* The form field in which components are rendered.
|
|
11
|
+
*/
|
|
12
|
+
export declare const FormFieldContext: React.Context<FieldInfo>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ValidationRuleProps } from '../validation-rules/ValidationRule.types';
|
|
2
|
-
export declare type OnChangeValueType =
|
|
2
|
+
export declare type OnChangeValueType = any;
|
|
3
|
+
export declare type FieldInfoValueType = Record<string, any>;
|
|
3
4
|
export interface FieldInfo {
|
|
4
5
|
readonly name: string;
|
|
5
|
-
readonly fieldValues:
|
|
6
|
+
readonly fieldValues: FieldInfoValueType;
|
|
6
7
|
}
|
|
7
8
|
export interface FormComponentProps extends FieldInfo {
|
|
8
9
|
readonly componentName: string;
|
|
@@ -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
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ConditionBuilderFormComponentProps } from './ConditionBuilderFormComponent.types';
|
|
3
|
-
export declare const ConditionBuilderFormComponent: ({ initialConfiguration, availableMacroRules, availableMacroRuleConfigurations, onChange, label, disabledMessage, invalid, validationMessage, readOnly, required, explanationText, tooltip }: ConditionBuilderFormComponentProps) => JSX.Element;
|
|
2
|
+
export declare const ConditionBuilderFormComponent: ({ initialConfiguration, availableMacroRules, availableMacroRuleConfigurations, onChange, label, disabledMessage, invalid, validationMessage, readOnly, required, explanationText, tooltip, ...props }: ConditionBuilderFormComponentProps) => JSX.Element;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SingleObjectSelectorFormComponentProps } from './SingleObjectSelectorFormComponentProps.types';
|
|
3
|
-
export declare const SingleObjectSelectorFormComponent:
|
|
2
|
+
export declare const SingleObjectSelectorFormComponent: {
|
|
3
|
+
({ objectType, textColumnName, valueColumnName, fieldValues, name, ...props }: SingleObjectSelectorFormComponentProps): JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DropDownFormComponentProps } from './DropDownFormComponentProps.types';
|
|
3
|
-
export declare const DropdownSelectorFormComponent: (
|
|
2
|
+
export declare const DropdownSelectorFormComponent: ({ value, label, readOnly, placeholder, name, invalid, required, disabledMessage, tooltip, explanationText, validationMessage, options, maxContentHeight, dataTestId, onChange }: DropDownFormComponentProps) => JSX.Element;
|
package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { UITestProps } from '@kentico/xperience-admin-components';
|
|
1
2
|
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
-
export interface DropDownFormComponentProps extends FormComponentProps {
|
|
3
|
+
export interface DropDownFormComponentProps extends FormComponentProps, UITestProps {
|
|
3
4
|
readonly options: DropDownOption[];
|
|
4
5
|
readonly placeholder?: string;
|
|
6
|
+
readonly maxContentHeight?: string;
|
|
5
7
|
}
|
|
6
8
|
export interface DropDownOption {
|
|
7
9
|
readonly value: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtensionSelectorProps } from './ExtensionSelectorFormComponent.types';
|
|
2
|
+
/**
|
|
3
|
+
* Form component used to set allowed extensions for asset selector.
|
|
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
|
+
}
|
|
@@ -5,9 +5,16 @@ export * from './condition-builder-form-component/ConditionBuilderFormComponent'
|
|
|
5
5
|
export * from './dropdown-form-component/DropDownFormComponent';
|
|
6
6
|
export * from './dropdown-form-component/DropDownFormComponentProps.types';
|
|
7
7
|
export * from './number-input-form-component/NumberInputFormComponent';
|
|
8
|
+
export * from './page-selector-form-component/PageSelectorFormComponent';
|
|
8
9
|
export * from './password-form-component/PasswordFormComponent';
|
|
9
10
|
export * from './rich-text-editor-form-component/RichTextEditorFormComponent';
|
|
11
|
+
export * from './rich-text-editor-form-component/plugins';
|
|
10
12
|
export * from './text-input-form-component/TextInputFormComponent';
|
|
11
13
|
export * from './text-input-form-component/TextInputFormComponentProps.types';
|
|
12
14
|
export * from './textarea-form-component/TextAreaFormComponent';
|
|
13
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 './text-with-label-form-component/TextWithLabelFormComponent.types';
|
package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RichTextEditorFormComponentProps } from './RichTextEditorFormComponentProps.types';
|
|
3
|
-
|
|
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;
|
|
@@ -2,18 +2,5 @@ import { FormComponentProps } from '../FormComponent.types';
|
|
|
2
2
|
export interface RichTextEditorFormComponentProps extends FormComponentProps {
|
|
3
3
|
readonly placeholder?: string;
|
|
4
4
|
readonly tooltipTextOnDisabled?: string;
|
|
5
|
-
readonly
|
|
6
|
-
}
|
|
7
|
-
export interface LoadAssetsPanelItemsParameters {
|
|
8
|
-
readonly folderPath: string;
|
|
9
|
-
readonly libraryIdentifier: string;
|
|
10
|
-
}
|
|
11
|
-
export interface LoadAssetsFoldersParameters {
|
|
12
|
-
readonly folderPath: string;
|
|
13
|
-
readonly isSelected: boolean;
|
|
14
|
-
readonly libraryIdentifier: string;
|
|
15
|
-
}
|
|
16
|
-
export interface UploadAssetsParameters {
|
|
17
|
-
readonly folderPath: string;
|
|
18
|
-
readonly libraryIdentifier: string;
|
|
5
|
+
readonly configuration?: string;
|
|
19
6
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RichTextEditorPluginProps } from '@kentico/xperience-admin-components';
|
|
2
|
+
export interface AssetRichTextEditorPluginProps extends RichTextEditorPluginProps {
|
|
3
|
+
}
|
|
4
|
+
export interface GetAssetPluginButtonStatusResult {
|
|
5
|
+
/**
|
|
6
|
+
* Indicates whether asset plugin button should be enabled.
|
|
7
|
+
*/
|
|
8
|
+
readonly enabled: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './asset';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const TextAreaFormComponent: (props: FormComponentProps) => JSX.Element;
|
|
1
|
+
import { TextAreaFormComponentProps } from './TextAreaFormComponent.types';
|
|
2
|
+
export declare const TextAreaFormComponent: (props: TextAreaFormComponentProps) => JSX.Element;
|
|
@@ -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 @@
|
|
|
1
|
+
export declare const useDisplayDialogInFullscreen: (screenWidthBreakpoint?: number | undefined, screenHeightBreakpoint?: number | undefined) => boolean;
|
|
@@ -4,7 +4,7 @@ export interface ValidationRule<P extends ValidationRuleProps, T> {
|
|
|
4
4
|
export interface ValidationRuleProps {
|
|
5
5
|
readonly ruleName: string;
|
|
6
6
|
readonly isValid: boolean;
|
|
7
|
-
readonly
|
|
7
|
+
readonly errorMessage: string | null;
|
|
8
8
|
}
|
|
9
9
|
export interface ValidationResult {
|
|
10
10
|
readonly isValid: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AssetTile } from '../../../shared-components';
|
|
2
|
+
import { ValidationRule } from '../ValidationRule.types';
|
|
3
|
+
import { AssetSelectorValidationRuleProps } from './AssetSelectorValidationRule.types';
|
|
4
|
+
/**
|
|
5
|
+
* Validation rule comparing form component assets collection with invalid assets collection.
|
|
6
|
+
* Designed for usage in AssetSelectorFormComponent.
|
|
7
|
+
* @param props Contains collection of invalid assets.
|
|
8
|
+
* @param value Contains form component value.
|
|
9
|
+
* @returns Validation result containing status and message.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AssetSelectorValidationRule: ValidationRule<AssetSelectorValidationRuleProps, AssetTile[]>;
|
package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValidationRuleProps } from '../ValidationRule.types';
|
|
2
|
+
/**
|
|
3
|
+
* Properties for AssetSelectorValidationRule component allowing to set invalid assets.
|
|
4
|
+
*/
|
|
5
|
+
export interface AssetSelectorValidationRuleProps extends ValidationRuleProps {
|
|
6
|
+
readonly invalidAssets?: InvalidAsset[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Holds 2 required identifier to recognize invalid asset.
|
|
10
|
+
*/
|
|
11
|
+
export interface InvalidAsset {
|
|
12
|
+
readonly identifier: string;
|
|
13
|
+
readonly siteIdentifier: string;
|
|
14
|
+
}
|
|
@@ -2,7 +2,8 @@ export * from './max-length-rule/MaxLengthValidationRule.types';
|
|
|
2
2
|
export * from './max-length-rule/MaxLengthValidationRule';
|
|
3
3
|
export * from './min-length-rule/MinLengthValidationRule.types';
|
|
4
4
|
export * from './min-length-rule/MinLengthValidationRule';
|
|
5
|
-
export * from './required-value-rule/
|
|
6
|
-
export * from './
|
|
5
|
+
export * from './required-value-rule/RequiredValueValidationRule';
|
|
6
|
+
export * from './asset-selector-rule/AssetSelectorValidationRule.types';
|
|
7
|
+
export * from './asset-selector-rule/AssetSelectorValidationRule';
|
|
7
8
|
export * from './server-rule/ServerValidationRule';
|
|
8
9
|
export * from './ValidationRule.types';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ModuleLoaderType } from '../utils/loadModule';
|
|
2
|
+
export declare function useComponent(component: string, moduleLoader?: ModuleLoaderType): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DropDownOption } from '../forms/form-components/dropdown-form-component/DropDownFormComponentProps.types';
|
|
2
|
+
import { FieldInfoValueType } from '../forms/form-components/FormComponent.types';
|
|
3
|
+
export declare const useLoadDropdownOptions: (name: string, fieldValues: FieldInfoValueType, objectType: string, textColumnName: string, valueColumnName: string) => {
|
|
4
|
+
options: DropDownOption[];
|
|
5
|
+
readOnly: boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BackgroundImageProviderProps {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface BackgroundImageContextType {
|
|
6
|
+
readonly displayBackgroundImage: boolean;
|
|
7
|
+
readonly setDisplayBackgroundImage: (displayBackgroundImage: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const BackgroundImageContext: React.Context<BackgroundImageContextType>;
|
|
10
|
+
export declare const useBackgroundImage: () => BackgroundImageContextType;
|
|
11
|
+
export declare const BackgroundImageProvider: ({ children }: BackgroundImageProviderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './backgroundImageProvider';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AssetFolderData } from '../hooks/useAssetFolderManager.types';
|
|
2
|
+
export interface AssetFolderTreeViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* Path to identify root in nodes collection.
|
|
5
|
+
*/
|
|
6
|
+
readonly rootPath: string;
|
|
7
|
+
/**
|
|
8
|
+
* Currently selected path.
|
|
9
|
+
*/
|
|
10
|
+
readonly selectedPath: string;
|
|
11
|
+
/**
|
|
12
|
+
* Key-value collection of folder nodes.
|
|
13
|
+
*/
|
|
14
|
+
readonly nodes: AssetFolderTreeViewItems;
|
|
15
|
+
/**
|
|
16
|
+
* Event fired when the node state is toggled.
|
|
17
|
+
* @param node Toggled node.
|
|
18
|
+
* @param isExpanded Indicates if node is currently expanded.
|
|
19
|
+
*/
|
|
20
|
+
readonly onNodeToggle: (node: AssetFolderTreeViewItem, isExpanded: boolean) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Event fired when the node is clicked.
|
|
23
|
+
* @param node Clicked node.
|
|
24
|
+
*/
|
|
25
|
+
readonly onNodeClick: (node: AssetFolderTreeViewItem) => void;
|
|
26
|
+
}
|
|
27
|
+
export interface AssetFolderTreeViewItem extends AssetFolderData {
|
|
28
|
+
/**
|
|
29
|
+
* Collection of paths representing child folders of current folder.
|
|
30
|
+
*/
|
|
31
|
+
readonly children: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if children are loaded. Defaults to `false`.
|
|
34
|
+
*/
|
|
35
|
+
readonly areChildrenLoaded: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if children of folder are loading. Defaults to `false`.
|
|
38
|
+
*/
|
|
39
|
+
readonly isLoading: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if folder is expanded. Defaults to `false`.
|
|
42
|
+
*/
|
|
43
|
+
readonly isExpanded: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface AssetFolderTreeViewItems {
|
|
46
|
+
/**
|
|
47
|
+
* Key-value pair where key is folder path and value is object representing the folder node.
|
|
48
|
+
*/
|
|
49
|
+
[path: string]: AssetFolderTreeViewItem;
|
|
50
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AssetPanelProps } from './AssetPanel.types';
|
|
2
|
+
export declare const AssetPanel: ({ assets, selectedAssetIdentifiers, folders, rootFolderPath, selectedFolderPath, libraries, assetsTotalCount, hasMoreAssetsToLoad, onSelectionChange, onFolderToggle, onFolderClick, onUpload, onErrorClose, onLibraryChange, onLoadNextPage, uploadInProgress, selectedLibraryIdentifier, acceptFiles }: AssetPanelProps) => JSX.Element;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AssetFolderTreeViewItem, AssetFolderTreeViewItems } from '../AssetFolderTreeView/AssetFolderTreeView.types';
|
|
2
|
+
import { AssetLibrary } from '../hooks/useAssetLibraryManager.types';
|
|
3
|
+
import { AssetItem } from '../hooks/useAssetManager.types';
|
|
4
|
+
export interface AssetPanelProps {
|
|
5
|
+
/**
|
|
6
|
+
* Collection of assets.
|
|
7
|
+
*/
|
|
8
|
+
readonly assets?: AssetItem[];
|
|
9
|
+
/**
|
|
10
|
+
* Key-value collection of folders.
|
|
11
|
+
*/
|
|
12
|
+
readonly folders: AssetFolderTreeViewItems;
|
|
13
|
+
/**
|
|
14
|
+
* Path to identify root in folders collection.
|
|
15
|
+
*/
|
|
16
|
+
readonly rootFolderPath: string;
|
|
17
|
+
/**
|
|
18
|
+
* Currently selected path.
|
|
19
|
+
*/
|
|
20
|
+
readonly selectedFolderPath: string;
|
|
21
|
+
/**
|
|
22
|
+
* Collection of assets libraries.
|
|
23
|
+
*/
|
|
24
|
+
readonly libraries: AssetLibrary[];
|
|
25
|
+
/**
|
|
26
|
+
* Total count of assets in current library and folder.
|
|
27
|
+
*/
|
|
28
|
+
readonly assetsTotalCount: number;
|
|
29
|
+
/**
|
|
30
|
+
* Event fired when asset selection is changed.
|
|
31
|
+
* @param isSelected Indicates if asset is selected.
|
|
32
|
+
* @param asset Asset that is being changed.
|
|
33
|
+
*/
|
|
34
|
+
readonly onSelectionChange?: (isSelected: boolean, asset: AssetItem) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Event fired when folder is toggled.
|
|
37
|
+
* @param node Folder that is toggled.
|
|
38
|
+
* @param isExpanded Indicates if folder is expanded.
|
|
39
|
+
*/
|
|
40
|
+
readonly onFolderToggle: (node: AssetFolderTreeViewItem, isExpanded: boolean) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Event fired when folder is clicked.
|
|
43
|
+
* @param node Folder that is clicked.
|
|
44
|
+
*/
|
|
45
|
+
readonly onFolderClick: (node: AssetFolderTreeViewItem) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Event fired when assets are uploaded.
|
|
48
|
+
* @param files Assets to be uploaded.
|
|
49
|
+
*/
|
|
50
|
+
readonly onUpload: (files: FileList) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Event fired when asset in error state is closed.
|
|
53
|
+
* @param asset Asset that is being closed.
|
|
54
|
+
*/
|
|
55
|
+
readonly onErrorClose: (asset: AssetItem) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Event fired when library is changed.
|
|
58
|
+
* @param identifier Identifier of the library.
|
|
59
|
+
*/
|
|
60
|
+
readonly onLibraryChange: (identifier: number) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Loads next batch of assets.
|
|
63
|
+
*/
|
|
64
|
+
readonly onLoadNextPage: () => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates that there are more assets that can be loaded.
|
|
67
|
+
*/
|
|
68
|
+
readonly hasMoreAssetsToLoad: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Identifiers of selected assets.
|
|
71
|
+
*/
|
|
72
|
+
readonly selectedAssetIdentifiers: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Indicates if upload is in progress. Defaults to `false`.
|
|
75
|
+
*/
|
|
76
|
+
readonly uploadInProgress: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Selected library identifier.
|
|
79
|
+
*/
|
|
80
|
+
readonly selectedLibraryIdentifier: number;
|
|
81
|
+
/**
|
|
82
|
+
* File types which tile should accept
|
|
83
|
+
*/
|
|
84
|
+
readonly acceptFiles?: string;
|
|
85
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AssetSelectorProps } from './AssetSelector.types';
|
|
2
|
+
/**
|
|
3
|
+
* Component for displaying AssetPanel in the SidePanel. Responsible for loading and handling libraries, folders and assets.
|
|
4
|
+
*/
|
|
5
|
+
export declare const AssetSelector: ({ selectorRef, onLibrariesLoad, onSelectAssets, fieldInfo, allowedExtensions, ...props }: AssetSelectorProps) => JSX.Element;
|