@kentico/xperience-admin-base 14.0.0-68025 → 22.0.1
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/entry.d.ts +177 -12
- package/dist/entry.js +22 -2
- package/package.json +61 -47
- package/dist/8ce68503cd833f15dce1.png +0 -0
- package/dist/commands/CommandContext.d.ts +0 -27
- package/dist/commands/CommandProvider.d.ts +0 -12
- package/dist/commands/index.d.ts +0 -3
- package/dist/commands/useCommand.types.d.ts +0 -36
- package/dist/commands/useCommandInvoker.d.ts +0 -11
- package/dist/commands/usePageCommand.d.ts +0 -11
- package/dist/components/ActionList/ActionList.d.ts +0 -3
- package/dist/components/ActionList/ActionList.types.d.ts +0 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +0 -9
- package/dist/components/index.d.ts +0 -5
- package/dist/components/loader/Loader.d.ts +0 -2
- package/dist/components/page-loader/PageLoader.d.ts +0 -2
- package/dist/components/page-message-pane/PageMessagePane.d.ts +0 -7
- package/dist/components/portal/Portal.d.ts +0 -8
- package/dist/forms/form/Form.d.ts +0 -3
- package/dist/forms/form/Form.types.d.ts +0 -88
- package/dist/forms/form/FormField.d.ts +0 -3
- package/dist/forms/form/FormField.types.d.ts +0 -6
- package/dist/forms/form/index.d.ts +0 -2
- package/dist/forms/form-components/FormComponent.types.d.ts +0 -22
- package/dist/forms/form-components/FormComponentLoader.d.ts +0 -3
- package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +0 -18
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +0 -16
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +0 -3
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +0 -9
- package/dist/forms/form-components/formComponentUtils.d.ts +0 -5
- package/dist/forms/form-components/index.d.ts +0 -13
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +0 -3
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +0 -3
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +0 -3
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +0 -3
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +0 -3
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +0 -19
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +0 -3
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +0 -4
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +0 -3
- package/dist/forms/hooks/FormComponentCommand.types.d.ts +0 -7
- package/dist/forms/hooks/FormComponentCommandUtils.d.ts +0 -4
- package/dist/forms/hooks/index.d.ts +0 -3
- package/dist/forms/hooks/useFormComponentCommand.d.ts +0 -4
- package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +0 -4
- package/dist/forms/hooks/useValidationRule.d.ts +0 -2
- package/dist/forms/index.d.ts +0 -4
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +0 -12
- package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +0 -2
- package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +0 -7
- package/dist/forms/validation-rules/index.d.ts +0 -8
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +0 -5
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +0 -5
- 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/forms/validation-rules/server-rule/ServerValidationRule.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/useComponent.d.ts +0 -1
- package/dist/hooks/useInterval.d.ts +0 -1
- package/dist/hooks/useNotificationMessage.d.ts +0 -9
- package/dist/hooks/usePagePath.d.ts +0 -5
- package/dist/localization/Localization.types.d.ts +0 -7
- package/dist/localization/LocalizationContext.d.ts +0 -4
- package/dist/localization/LocalizationProvider.d.ts +0 -3
- package/dist/localization/index.d.ts +0 -4
- package/dist/notifications/NotificationsContext.d.ts +0 -5
- package/dist/notifications/NotificationsContext.types.d.ts +0 -13
- package/dist/notifications/index.d.ts +0 -2
- package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +0 -3
- package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +0 -4
- package/dist/shared-components/AppLinkButton/index.d.ts +0 -2
- 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/Condition/ConditionBuilderCondition.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +0 -33
- package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +0 -16
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/TextInputFormParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +0 -23
- package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +0 -9
- package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/Operators.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/index.d.ts +0 -8
- package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +0 -6
- package/dist/shared-components/OverviewCard/OverviewCard.d.ts +0 -3
- package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +0 -13
- package/dist/shared-components/OverviewCard/index.d.ts +0 -2
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +0 -3
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +0 -4
- package/dist/shared-components/OverviewCardGroup/index.d.ts +0 -2
- package/dist/shared-components/callout/Callout.d.ts +0 -3
- package/dist/shared-components/callout/Callout.types.d.ts +0 -9
- package/dist/shared-components/index.d.ts +0 -5
- package/dist/template-components/dialog/TemplateDialog.d.ts +0 -3
- package/dist/template-components/dialog/TemplateDialog.types.d.ts +0 -8
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +0 -4
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +0 -32
- package/dist/template-components/index.d.ts +0 -4
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +0 -4
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +0 -7
- package/dist/template-components/template-loader/TemplateLoader.d.ts +0 -6
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +0 -9
- package/dist/template-properties/TemplateProperties.types.d.ts +0 -29
- package/dist/template-properties/TemplatePropertiesProvider.d.ts +0 -9
- package/dist/template-properties/index.d.ts +0 -2
- package/dist/templates/app/App.types.d.ts +0 -17
- package/dist/templates/app/AppTemplate.d.ts +0 -4
- package/dist/templates/app/avatar/Avatar.d.ts +0 -8
- package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +0 -18
- package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +0 -4
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +0 -3
- package/dist/templates/app/breadcrumbs/index.d.ts +0 -2
- package/dist/templates/app/header/Header.d.ts +0 -5
- package/dist/templates/app/header/index.d.ts +0 -1
- package/dist/templates/app/main/Main.d.ts +0 -8
- package/dist/templates/app/sidebar/Sidebar.d.ts +0 -7
- package/dist/templates/app/sidebar/index.d.ts +0 -1
- package/dist/templates/app/siteselector/SiteSelector.d.ts +0 -6
- package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +0 -3
- package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +0 -7
- package/dist/templates/dashboard/DashboardTemplate.d.ts +0 -3
- 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/templates/edit/EditTemplate.types.d.ts +0 -12
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +0 -3
- package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +0 -4
- package/dist/templates/field-editor/FieldEditorForm.d.ts +0 -6
- package/dist/templates/field-editor/FieldEditorForm.types.d.ts +0 -11
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +0 -15
- package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +0 -83
- package/dist/templates/index.d.ts +0 -10
- package/dist/templates/listing/Listing.types.d.ts +0 -22
- package/dist/templates/listing/ListingTemplate.d.ts +0 -3
- package/dist/templates/overview/OverviewTemplate.d.ts +0 -3
- package/dist/templates/overview/OverviewTemplate.types.d.ts +0 -71
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +0 -2
- package/dist/templates/side-navigation-layout/vertical-menu/VerticalMenu.d.ts +0 -8
- package/dist/types/Action.types.d.ts +0 -14
- package/dist/types/NotificationMessage.types.d.ts +0 -11
- package/dist/types/index.d.ts +0 -4
- package/dist/utils/authentication/logonUrlProvider.d.ts +0 -10
- package/dist/utils/basePathUtils.d.ts +0 -8
- package/dist/utils/constants.d.ts +0 -2
- package/dist/utils/convertTagGradient.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/loadModule.d.ts +0 -10
- package/dist/utils/pathUtils/index.d.ts +0 -1
- package/dist/utils/pathUtils/pathUtils.d.ts +0 -9
- package/dist/utils/postToAdmin.d.ts +0 -21
- package/dist/utils/responseStatusActions.d.ts +0 -15
|
@@ -1,4 +0,0 @@
|
|
|
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>;
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/forms/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ValidationRule<P extends ValidationRuleProps, T> {
|
|
2
|
-
(props: P, value: T, fieldValues: Record<string, any>): ValidationResult;
|
|
3
|
-
}
|
|
4
|
-
export interface ValidationRuleProps {
|
|
5
|
-
readonly ruleName: string;
|
|
6
|
-
readonly isValid: boolean;
|
|
7
|
-
readonly validationError: string | null;
|
|
8
|
-
}
|
|
9
|
-
export interface ValidationResult {
|
|
10
|
-
readonly isValid: boolean;
|
|
11
|
-
readonly errorMessage: string | null;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ValidationResult, ValidationRuleProps } from './ValidationRule.types';
|
|
2
|
-
export interface ValidationRuleLoaderProps extends ValidationRuleProps {
|
|
3
|
-
fieldValues: Record<string, any>;
|
|
4
|
-
value?: any;
|
|
5
|
-
allowRevalidate: boolean;
|
|
6
|
-
onValidated: (result: ValidationResult) => void;
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './max-length-rule/MaxLengthValidationRule.types';
|
|
2
|
-
export * from './max-length-rule/MaxLengthValidationRule';
|
|
3
|
-
export * from './min-length-rule/MinLengthValidationRule.types';
|
|
4
|
-
export * from './min-length-rule/MinLengthValidationRule';
|
|
5
|
-
export * from './required-value-rule/RequiredStringValueValidationRule';
|
|
6
|
-
export * from './required-value-rule/RequiredStringValueValidationRule.Types';
|
|
7
|
-
export * from './server-rule/ServerValidationRule';
|
|
8
|
-
export * from './ValidationRule.types';
|
package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ValidationRule } from '../ValidationRule.types';
|
|
2
|
-
import { RequiredStringValueValidationRuleProps } from './RequiredStringValueValidationRule.Types';
|
|
3
|
-
export declare const RequiredStringValueValidationRule: ValidationRule<RequiredStringValueValidationRuleProps, string>;
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useComponent(component: string): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NotificationMessage } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Defines a function that appends notification message to a relevant notification context.
|
|
4
|
-
*
|
|
5
|
-
* @returns Function for adding notification message to a relevant notification context.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useNotificationMessage(): {
|
|
8
|
-
addNotificationMessage: (message: NotificationMessage) => void;
|
|
9
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NotificationsContextType, NotificationsProviderProps } from './NotificationsContext.types';
|
|
3
|
-
export declare const NotificationsContext: React.Context<NotificationsContextType>;
|
|
4
|
-
export declare const useNotifications: () => NotificationsContextType;
|
|
5
|
-
export declare const NotificationsProvider: ({ children }: NotificationsProviderProps) => JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { NotificationMessage, NotificationMessageType } from '../types';
|
|
3
|
-
export declare type NotificationsContextType = {
|
|
4
|
-
readonly redirectToDialog: boolean;
|
|
5
|
-
readonly setRedirectToDialog: (redirect: boolean) => void;
|
|
6
|
-
readonly messages: NotificationMessage[];
|
|
7
|
-
readonly addDialogMessage: (message: NotificationMessage) => void;
|
|
8
|
-
readonly removeDialogMessage: (id: string | number) => void;
|
|
9
|
-
readonly canProcessMessageType: (messageVariant: NotificationMessageType) => boolean;
|
|
10
|
-
};
|
|
11
|
-
export interface NotificationsProviderProps {
|
|
12
|
-
readonly children?: React.ReactNode;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AssetsFoldersData } from '../AssetsSelector/AssetsSelector.types';
|
|
2
|
-
export interface AssetsFoldersTreeViewProps {
|
|
3
|
-
readonly rootPath: string;
|
|
4
|
-
readonly selectedPath: string;
|
|
5
|
-
readonly nodes: AssetsFoldersTreeViewItems;
|
|
6
|
-
readonly onLevelLoad: (node: AssetsFoldersTreeViewItem) => void;
|
|
7
|
-
readonly onNodeClick?: (node: AssetsFoldersTreeViewItem) => void;
|
|
8
|
-
}
|
|
9
|
-
export interface AssetsFoldersTreeViewItem extends AssetsFoldersData {
|
|
10
|
-
readonly children: string[];
|
|
11
|
-
readonly areChildrenLoaded: boolean;
|
|
12
|
-
readonly isLoading: boolean;
|
|
13
|
-
readonly isOpen: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface AssetsFoldersTreeViewItems {
|
|
16
|
-
[path: string]: AssetsFoldersTreeViewItem;
|
|
17
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AssetsPanelProps } from './AssetsPanel.types';
|
|
3
|
-
export declare const AssetsPanel: ({ assets, selectedAssetIdentifiers, folders, rootFolderPath, selectedFolderPath, libraries, assetsTotalCount, onSelectionChange, onFolderLoad, onFolderClick, onUpload, onErrorClose, onLibraryChange, uploadInProgress, selectedLibraryIdentifier }: AssetsPanelProps) => JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AssetsFoldersTreeViewItem, AssetsFoldersTreeViewItems } from '../AssetsFoldersTreeView/AssetsFoldersTreeView.types';
|
|
2
|
-
export interface AssetsPanelProps {
|
|
3
|
-
readonly assets?: AssetsPanelItem[];
|
|
4
|
-
readonly folders: AssetsFoldersTreeViewItems;
|
|
5
|
-
readonly rootFolderPath: string;
|
|
6
|
-
readonly selectedFolderPath: string;
|
|
7
|
-
readonly libraries: AssetsLibrary[];
|
|
8
|
-
readonly assetsTotalCount: number;
|
|
9
|
-
readonly onSelectionChange?: (isSelected: boolean, asset: AssetsPanelItem) => void;
|
|
10
|
-
readonly onFolderLoad: (node: AssetsFoldersTreeViewItem) => void;
|
|
11
|
-
readonly onFolderClick?: (node: AssetsFoldersTreeViewItem) => void;
|
|
12
|
-
readonly onUpload: (files: FileList) => void;
|
|
13
|
-
readonly onErrorClose: (asset: AssetsPanelItem) => void;
|
|
14
|
-
readonly onLibraryChange: (identifier: string) => void;
|
|
15
|
-
readonly selectedAssetIdentifiers: string[];
|
|
16
|
-
readonly uploadInProgress: boolean;
|
|
17
|
-
readonly selectedLibraryIdentifier: string;
|
|
18
|
-
}
|
|
19
|
-
export interface AssetsPanelItem {
|
|
20
|
-
readonly name: string;
|
|
21
|
-
readonly description: string;
|
|
22
|
-
readonly title: string;
|
|
23
|
-
readonly size: number;
|
|
24
|
-
readonly dimensions?: {
|
|
25
|
-
readonly width: number;
|
|
26
|
-
readonly height: number;
|
|
27
|
-
};
|
|
28
|
-
readonly url?: string;
|
|
29
|
-
readonly identifier: string;
|
|
30
|
-
readonly isImage: boolean;
|
|
31
|
-
readonly hasError: boolean;
|
|
32
|
-
readonly errorMessage: string;
|
|
33
|
-
readonly isPlaceholder: boolean;
|
|
34
|
-
readonly uploadProgress: number;
|
|
35
|
-
}
|
|
36
|
-
export interface AssetsLibrary {
|
|
37
|
-
readonly identifier: string;
|
|
38
|
-
readonly name: string;
|
|
39
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AssetsSelectorProps } from './AssetsSelector.types';
|
|
3
|
-
export declare const AssetsSelector: ({ selectorRef, onLoadAssetsLibraries, onLoadAssetsFolders, onLoadAssetsPanelItems, onSelectAssets, onUploadAssets, ...props }: AssetsSelectorProps) => JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { RefObject } from 'packages/kentico-xperience-admin-components/node_modules/@types/react';
|
|
3
|
-
import { AssetsLibrary, AssetsPanelItem } from '../../shared-components/AssetsPanel/AssetsPanel.types';
|
|
4
|
-
export interface AssetsSelectorProps {
|
|
5
|
-
readonly enabled: boolean;
|
|
6
|
-
readonly onLoadAssetsPanelItems: (libraryIdentifier: string, folderPath: string, handle: (result: LoadAssetsPanelItemsResult | undefined) => void) => Promise<void>;
|
|
7
|
-
readonly onLoadAssetsFolders: (libraryIdentifier: string, folderPath: string, isSelected: boolean, handle: (result: LoadAssetsFoldersResult | undefined) => void) => Promise<void>;
|
|
8
|
-
readonly onUploadAssets: (libraryIdentifier: string, folderPath: string, files: FileList, handle: (result: UploadAssetsResult | undefined) => void) => Promise<void>;
|
|
9
|
-
readonly onLoadAssetsLibraries: (handle: (result: LoadAssetsLibrariesResult | undefined) => void) => Promise<void>;
|
|
10
|
-
readonly onSelectAssets: (assets: AssetsPanelItem[]) => void;
|
|
11
|
-
readonly selectorRef: RefObject<AssetsSelectorRef>;
|
|
12
|
-
}
|
|
13
|
-
export interface AssetsSelectorRef {
|
|
14
|
-
readonly open: () => Promise<void>;
|
|
15
|
-
readonly close: () => void;
|
|
16
|
-
}
|
|
17
|
-
export interface LoadAssetsPanelItemsResult {
|
|
18
|
-
readonly assets: AssetsPanelItem[];
|
|
19
|
-
readonly totalCount: number;
|
|
20
|
-
}
|
|
21
|
-
export interface AssetsFoldersData {
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly parentPath: string;
|
|
24
|
-
readonly path: string;
|
|
25
|
-
readonly hasChildren: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface LoadAssetsFoldersResult {
|
|
28
|
-
readonly folders: AssetsFoldersData[];
|
|
29
|
-
}
|
|
30
|
-
export interface UploadAssetsResult {
|
|
31
|
-
readonly assets: AssetsPanelItem[];
|
|
32
|
-
}
|
|
33
|
-
export interface LoadAssetsLibrariesResult {
|
|
34
|
-
readonly libraries: AssetsLibrary[];
|
|
35
|
-
}
|
package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ConditionProps } from '@kentico/xperience-admin-components';
|
|
2
|
-
import { FormComponentProps, OnChangeValueType } from 'packages/kentico-xperience-admin-base/src/forms/form-components/FormComponent.types';
|
|
3
|
-
export declare type ConditionValue = Record<string, OnChangeValueType>;
|
|
4
|
-
export interface ConditionBuilderConditionProps extends Omit<ConditionProps, 'children'> {
|
|
5
|
-
readonly onChange?: (value: ConditionValue) => void;
|
|
6
|
-
readonly initialParametersValue: ConditionValue;
|
|
7
|
-
readonly macroRule: MacroRuleConfiguration;
|
|
8
|
-
}
|
|
9
|
-
export interface ConditionModel {
|
|
10
|
-
readonly macroRule: MacroRuleConfiguration;
|
|
11
|
-
readonly value: ConditionValue;
|
|
12
|
-
}
|
|
13
|
-
export interface SelectedCondition {
|
|
14
|
-
readonly macroRuleName: string;
|
|
15
|
-
readonly value: ConditionValue;
|
|
16
|
-
}
|
|
17
|
-
export interface ComponentParameter extends ParameterBase {
|
|
18
|
-
readonly properties: FormComponentProps;
|
|
19
|
-
readonly staticDataSource: DropDownComponentOption[];
|
|
20
|
-
}
|
|
21
|
-
export interface TextualParameter extends ParameterBase {
|
|
22
|
-
readonly value: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ParameterBase {
|
|
25
|
-
}
|
|
26
|
-
export interface DropDownComponentOption {
|
|
27
|
-
readonly value: string;
|
|
28
|
-
readonly label: string;
|
|
29
|
-
}
|
|
30
|
-
export interface MacroRuleConfiguration {
|
|
31
|
-
readonly macroRuleName: string;
|
|
32
|
-
readonly parameters: ParameterBase[];
|
|
33
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionBuilderProps } from './ConditionBuilder.types';
|
|
3
|
-
export declare const ConditionBuilder: ({ initialConfiguration, availableMacroRules, availableMacroRuleConfigurations, onChange, ...props }: ConditionBuilderProps) => JSX.Element;
|
package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ConditionBuilderConditionGroupProps, ConditionBuilderConditionGroupValue } from '../ConditionGroup';
|
|
2
|
-
import { SelectedGroup } from '../ConditionGroup/ConditionBuilderConditionGroup.types';
|
|
3
|
-
import { Operators } from '../Operators';
|
|
4
|
-
export interface ConditionBuilderProps extends Pick<ConditionBuilderConditionGroupProps, 'availableMacroRules' | 'availableMacroRuleConfigurations'> {
|
|
5
|
-
readonly initialConfiguration: ConditionTree;
|
|
6
|
-
readonly onChange: (value: ConditionTree) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare type ConditionBuilderValueInner = Record<string, ConditionBuilderConditionGroupValue>;
|
|
9
|
-
export interface ConditionTree {
|
|
10
|
-
readonly operator: Operators;
|
|
11
|
-
readonly groups: ConditionBuilderConditionGroupValue[];
|
|
12
|
-
}
|
|
13
|
-
export interface SelectedConditionTree {
|
|
14
|
-
readonly operator: Operators;
|
|
15
|
-
readonly groups: SelectedGroup[];
|
|
16
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DropDownFormComponentProps } from '../../../../../forms/form-components/dropdown-form-component/DropDownFormComponentProps.types';
|
|
3
|
-
export declare const DropdownSelectorParameterOverview: (props: DropDownFormComponentProps) => JSX.Element | null;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SingleObjectSelectorFormComponentProps } from '../../../../../forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types';
|
|
3
|
-
export declare const SingleObjectSelectorParameterOverview: ({ objectType, textColumnName, valueColumnName, ...props }: SingleObjectSelectorFormComponentProps) => JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { ConditionBuilderOverview } from './ConditionBuilderOverview';
|
|
2
|
-
export type { ConditionBuilderOverviewProps } from './ConditionBuilderOverview.types';
|
|
3
|
-
export * from './Parameters/ComponentParameter/DropDownParameterOverview';
|
|
4
|
-
export * from './Parameters/ComponentParameter/NumberInputParameterOverview';
|
|
5
|
-
export * from './Parameters/ComponentParameter/TextInputFormParameterOverview';
|
|
6
|
-
export * from './Parameters/ComponentParameter/SingleObjectSelectorParameterOverview';
|
package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionBuilderConditionGroupProps } from './ConditionBuilderConditionGroup.types';
|
|
3
|
-
export declare const ConditionBuilderConditionGroup: ({ onChange, conditionGroupInitialValue, onPickerCloseRequest, onPickerOpenRequest, isPickerVisible, ...props }: ConditionBuilderConditionGroupProps) => JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ConditionGroupProps } from '@kentico/xperience-admin-components';
|
|
2
|
-
import { MacroRuleConfiguration } from '../Condition';
|
|
3
|
-
import { Operators } from '../Operators';
|
|
4
|
-
import { MacroRuleCategory } from '../ConditionPicker';
|
|
5
|
-
import { ConditionModel, SelectedCondition } from '../Condition/ConditionBuilderCondition.types';
|
|
6
|
-
export interface ConditionBuilderConditionGroupProps extends ConditionGroupProps {
|
|
7
|
-
readonly onChange?: (value: ConditionBuilderConditionGroupValue) => void;
|
|
8
|
-
readonly conditionGroupInitialValue?: ConditionBuilderConditionGroupValue;
|
|
9
|
-
readonly availableMacroRules: MacroRuleCategory[];
|
|
10
|
-
readonly availableMacroRuleConfigurations: MacroRuleConfiguration[];
|
|
11
|
-
readonly isPickerVisible: boolean;
|
|
12
|
-
readonly onPickerOpenRequest: () => void;
|
|
13
|
-
readonly onPickerCloseRequest: () => void;
|
|
14
|
-
}
|
|
15
|
-
export interface ConditionBuilderConditionGroupValue {
|
|
16
|
-
readonly operator: Operators;
|
|
17
|
-
readonly items: ConditionModel[];
|
|
18
|
-
}
|
|
19
|
-
export interface SelectedGroup {
|
|
20
|
-
readonly operator: Operators;
|
|
21
|
-
readonly items: SelectedCondition[];
|
|
22
|
-
}
|
|
23
|
-
export declare type ConditionBuilderConditionGroupValueInner = Record<string, ConditionModel>;
|
package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionBuilderConditionPickerProps } from './ConditionBuilderConditionPicker.types';
|
|
3
|
-
export declare const ConditionBuilderConditionPicker: {
|
|
4
|
-
({ macroRuleCategories, onClose, onItemSelect, }: ConditionBuilderConditionPickerProps): JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ConditionPickerItem, ConditionPickerProps } from '@kentico/xperience-admin-components';
|
|
2
|
-
export interface MacroRuleCategory {
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly label: string;
|
|
5
|
-
readonly macroRules: ConditionPickerItem[];
|
|
6
|
-
}
|
|
7
|
-
export interface ConditionBuilderConditionPickerProps extends Pick<ConditionPickerProps, 'onClose' | 'onItemSelect'> {
|
|
8
|
-
readonly macroRuleCategories: MacroRuleCategory[];
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { getOperatorText } from './getOperatorText';
|
|
2
|
-
export { mapArrayToKeys } from './mapArrayToKeys';
|
|
3
|
-
export { getOperatorName } from './getOperatorName';
|
|
4
|
-
export { findMacroRule } from './findMacroRule';
|
|
5
|
-
export { convertModel } from './convertModel';
|
|
6
|
-
export { isTextualParameter } from './isTextualParameter';
|
|
7
|
-
export { isComponentParameter } from './isComponentParameter';
|
|
8
|
-
export { getInitialSelectedParameterValues } from './getInitialSelectedParameterValues';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CardProps, IconName, TagProps } from '@kentico/xperience-admin-components';
|
|
2
|
-
import { ConditionBuilderProps } from '../../shared-components/ConditionBuilder/ConditionBuilder';
|
|
3
|
-
export interface OverviewCardAction {
|
|
4
|
-
readonly label: string;
|
|
5
|
-
readonly icon?: IconName;
|
|
6
|
-
readonly onClick: () => void;
|
|
7
|
-
}
|
|
8
|
-
export interface OverviewCardProps extends Pick<CardProps, 'headline'> {
|
|
9
|
-
readonly content: string;
|
|
10
|
-
readonly action?: OverviewCardAction;
|
|
11
|
-
readonly tags?: TagProps[];
|
|
12
|
-
readonly conditionOverview?: ConditionBuilderProps;
|
|
13
|
-
}
|