@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,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CalloutPlacementType, CalloutType } from '@kentico/xperience-admin-components';
|
|
3
|
-
export interface CalloutProps {
|
|
4
|
-
readonly headline?: string;
|
|
5
|
-
readonly type: CalloutType;
|
|
6
|
-
readonly placement: CalloutPlacementType;
|
|
7
|
-
readonly actionButton?: React.ReactNode;
|
|
8
|
-
readonly children?: React.ReactNode;
|
|
9
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TemplateDialogContextProps, TemplateDialogProviderProps } from './TemplateDialogContext.types';
|
|
3
|
-
export declare const useTemplateDialog: () => TemplateDialogContextProps;
|
|
4
|
-
export declare const TemplateDialogProvider: ({ children }: TemplateDialogProviderProps) => JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DialogAction } from '@kentico/xperience-admin-components';
|
|
3
|
-
import { NotificationMessage, NotificationMessageType } from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* Represents dialog handlers exposing submit action.
|
|
6
|
-
*/
|
|
7
|
-
export interface DialogHandlers {
|
|
8
|
-
readonly submitAction: DialogAction;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Represents properties for Dialog context component.
|
|
12
|
-
*/
|
|
13
|
-
export interface TemplateDialogContextProps {
|
|
14
|
-
readonly isInDialog: boolean;
|
|
15
|
-
readonly title: string;
|
|
16
|
-
readonly setTitle: (title: string) => void;
|
|
17
|
-
readonly minWidth?: string;
|
|
18
|
-
readonly setMinWidth: (width: string) => void;
|
|
19
|
-
readonly dialogHandlers: DialogHandlers;
|
|
20
|
-
readonly setDialogHandlers: (dialogHandlers: DialogHandlers) => void;
|
|
21
|
-
readonly messages: NotificationMessage[];
|
|
22
|
-
readonly addDialogMessage: (message: NotificationMessage) => void;
|
|
23
|
-
readonly removeDialogMessage: (id: string | number) => void;
|
|
24
|
-
readonly canProcessMessageType: (messageVariant: NotificationMessageType) => boolean;
|
|
25
|
-
readonly closeDialog: () => void;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Represents properties for Dialog provider component.
|
|
29
|
-
*/
|
|
30
|
-
export interface TemplateDialogProviderProps {
|
|
31
|
-
readonly children: React.ReactNode;
|
|
32
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TemplateProperties } from '../../template-properties';
|
|
2
|
-
/**
|
|
3
|
-
* Loads the template data based on location.
|
|
4
|
-
*/
|
|
5
|
-
export declare const useTemplateDataLoader: (endpoint: string) => {
|
|
6
|
-
isComplete: boolean;
|
|
7
|
-
isError: boolean;
|
|
8
|
-
data: TemplateProperties | undefined;
|
|
9
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IconName } from '@kentico/xperience-admin-components';
|
|
2
|
-
export interface Route {
|
|
3
|
-
path: string;
|
|
4
|
-
templateName: string;
|
|
5
|
-
pageLocation: PageLocation;
|
|
6
|
-
}
|
|
7
|
-
export declare enum PageLocation {
|
|
8
|
-
MainContent = "mainContent",
|
|
9
|
-
Dialog = "dialog"
|
|
10
|
-
}
|
|
11
|
-
export interface Breadcrumbs {
|
|
12
|
-
name?: string;
|
|
13
|
-
show: boolean;
|
|
14
|
-
isSignificant: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface NavigationItem {
|
|
17
|
-
icon: IconName | null;
|
|
18
|
-
label: string;
|
|
19
|
-
path: string;
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
disabledTooltipText: string;
|
|
22
|
-
}
|
|
23
|
-
export interface TemplateProperties {
|
|
24
|
-
routes: Route[];
|
|
25
|
-
visibleRoutes: string[];
|
|
26
|
-
defaultRoute?: Route;
|
|
27
|
-
breadcrumbs: Breadcrumbs;
|
|
28
|
-
navigation: NavigationItem[];
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TemplateProperties } from '.';
|
|
3
|
-
export declare const TemplatePropertiesContext: React.Context<TemplateProperties>;
|
|
4
|
-
interface TemplatePropertiesProviderProps {
|
|
5
|
-
readonly properties: TemplateProperties;
|
|
6
|
-
readonly children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const TemplatePropertiesProvider: ({ properties, children }: TemplatePropertiesProviderProps) => JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IconName } from '@kentico/xperience-admin-components';
|
|
2
|
-
export interface Application {
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly icon: IconName;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ApplicationCategory {
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly icon: IconName;
|
|
10
|
-
readonly applications: Application[];
|
|
11
|
-
readonly path: string;
|
|
12
|
-
readonly codeName: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ApplicationCategories {
|
|
15
|
-
readonly categories: ApplicationCategory[];
|
|
16
|
-
readonly siteName: string;
|
|
17
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type AvatarBaseProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'onClick'>;
|
|
3
|
-
interface AvatarProps extends AvatarBaseProps {
|
|
4
|
-
image?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Avatar };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { BreadcrumbProps as BreadcrumbComponentProps } from '@kentico/xperience-admin-components';
|
|
3
|
-
export interface BreadcrumbsContextType {
|
|
4
|
-
readonly breadcrumbs: BreadcrumbProps[];
|
|
5
|
-
readonly setItem: (level: number, path: string, isSignificant: boolean, text?: string) => void;
|
|
6
|
-
readonly refreshItem: (level: number, text: string) => void;
|
|
7
|
-
readonly statusNode: React.ReactNode;
|
|
8
|
-
readonly setStatusNode: (statusNode: React.ReactNode) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface BreadcrumbsProviderProps {
|
|
11
|
-
readonly children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export interface BreadcrumbProps extends BreadcrumbComponentProps {
|
|
14
|
-
readonly isSignificant: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface BreadcrumbsProps {
|
|
17
|
-
readonly containerRef?: RefObject<HTMLDivElement>;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Header } from './Header';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ApplicationCategory } from '../App.types';
|
|
3
|
-
interface MainProps {
|
|
4
|
-
readonly categories: ApplicationCategory[];
|
|
5
|
-
readonly siteName: string;
|
|
6
|
-
}
|
|
7
|
-
declare const Main: ({ categories, siteName }: MainProps) => JSX.Element;
|
|
8
|
-
export { Main };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Sidebar } from './Sidebar';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionBuilderTemplateProps } from './ConditionBuilderTemplate.types';
|
|
3
|
-
export declare const ConditionBuilderTemplate: ({ backLink, errorMessage, caption, submitLabel, initialConfiguration, availableMacroRuleConfigurations, availableMacroRules }: ConditionBuilderTemplateProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ConditionBuilderProps } from '../../shared-components/ConditionBuilder/ConditionBuilder';
|
|
2
|
-
export interface ConditionBuilderTemplateProps extends Pick<ConditionBuilderProps, 'availableMacroRules' | 'availableMacroRuleConfigurations' | 'initialConfiguration'> {
|
|
3
|
-
readonly backLink?: string;
|
|
4
|
-
readonly errorMessage?: string;
|
|
5
|
-
readonly submitLabel: string;
|
|
6
|
-
readonly caption: string;
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../../forms/form-components/FormComponent.types';
|
|
2
|
-
export interface EditTemplateProps {
|
|
3
|
-
readonly backLink?: string;
|
|
4
|
-
readonly readOnly: boolean;
|
|
5
|
-
readonly submitLabel: string;
|
|
6
|
-
readonly components: FormComponentProps[];
|
|
7
|
-
readonly caption: string;
|
|
8
|
-
readonly errorMessage?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface FormChangeResult {
|
|
11
|
-
readonly components: FormComponentProps[];
|
|
12
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldEditorFormProps } from './FieldEditorForm.types';
|
|
3
|
-
/**
|
|
4
|
-
* Form used in Field Editor for each displayed field.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FieldEditorForm: ({ name, subForms, onChange, onCancel, addingField }: FieldEditorFormProps) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FormFieldChange, SubForm } from './FieldEditorTemplate.types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents properties for each displayed field.
|
|
4
|
-
*/
|
|
5
|
-
export interface FieldEditorFormProps {
|
|
6
|
-
readonly subForms: SubForm[];
|
|
7
|
-
readonly onChange: (event: FormFieldChange) => void;
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly onCancel: () => void;
|
|
10
|
-
readonly addingField: boolean;
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldEditorTemplateProps } from './FieldEditorTemplate.types';
|
|
3
|
-
export declare const FieldEditorCommands: {
|
|
4
|
-
CreateField: string;
|
|
5
|
-
GetFields: string;
|
|
6
|
-
GetFormFieldMetadata: string;
|
|
7
|
-
GetEmptyFormFieldMetadata: string;
|
|
8
|
-
MoveField: string;
|
|
9
|
-
SaveField: string;
|
|
10
|
-
DeleteField: string;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Field editor template.
|
|
14
|
-
*/
|
|
15
|
-
export declare const FieldEditorTemplate: ({ caption }: FieldEditorTemplateProps) => JSX.Element;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../../forms/form-components';
|
|
2
|
-
export interface FieldEditorTemplateProps {
|
|
3
|
-
readonly caption: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Represents a field, edited by the field editor.
|
|
7
|
-
*/
|
|
8
|
-
export interface FieldData {
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly visible: boolean;
|
|
11
|
-
readonly required: boolean;
|
|
12
|
-
readonly dataType: string;
|
|
13
|
-
readonly deletable: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface FieldChangeResult {
|
|
16
|
-
readonly fieldData: FieldData;
|
|
17
|
-
readonly subForms: SubForm[];
|
|
18
|
-
readonly isValid: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface GetFieldsResult {
|
|
21
|
-
readonly fields: FieldData[];
|
|
22
|
-
}
|
|
23
|
-
export interface GetFormFieldMetadataArguments {
|
|
24
|
-
readonly name: string;
|
|
25
|
-
readonly subForms: Record<string, Record<string, any>>;
|
|
26
|
-
}
|
|
27
|
-
export interface SubForm {
|
|
28
|
-
readonly id: string;
|
|
29
|
-
readonly timeStamp: string;
|
|
30
|
-
readonly title: string;
|
|
31
|
-
readonly components: FormComponentProps[];
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Represents command result for creating field.
|
|
35
|
-
* Matches backend implementation, helps to avoid breaking change in the future.
|
|
36
|
-
*/
|
|
37
|
-
export interface CreateFieldResult extends FieldChangeResult {
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Shared parameters for field change operation.
|
|
41
|
-
*/
|
|
42
|
-
interface FieldChangeArguments {
|
|
43
|
-
readonly subForms: Record<string, Record<string, any>>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Represents parameters for field update operation.
|
|
47
|
-
* Matches backend implementation, helps to avoid breaking change in the future.
|
|
48
|
-
*/
|
|
49
|
-
export interface SaveFieldArguments extends FieldChangeArguments {
|
|
50
|
-
readonly name: string;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Represents parameters for field create operation.
|
|
54
|
-
* Matches backend implementation, helps to avoid breaking change in the future.
|
|
55
|
-
*/
|
|
56
|
-
export interface CreateFieldArguments extends FieldChangeArguments {
|
|
57
|
-
}
|
|
58
|
-
export interface FormFieldChange {
|
|
59
|
-
readonly formName: string;
|
|
60
|
-
readonly fieldName: string;
|
|
61
|
-
readonly value: any;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Represents parameters for field move operation.
|
|
65
|
-
* Matches backend implementation, helps to avoid breaking change in the future.
|
|
66
|
-
*/
|
|
67
|
-
export interface MoveFieldParameters {
|
|
68
|
-
readonly sourceIndex: number;
|
|
69
|
-
readonly destinationIndex: number;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Represents parameters for field deletion operation.
|
|
73
|
-
*/
|
|
74
|
-
export interface DeleteFieldParameters {
|
|
75
|
-
readonly deletedFieldName: string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Represents command result for deleting field.
|
|
79
|
-
* Matches backend implementation, helps to avoid breaking change in the future.
|
|
80
|
-
*/
|
|
81
|
-
export interface DeleteFieldResult extends FieldChangeResult {
|
|
82
|
-
}
|
|
83
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './app/AppTemplate';
|
|
2
|
-
export * from './dashboard/DashboardTemplate';
|
|
3
|
-
export * from './edit/EditTemplate';
|
|
4
|
-
export * from './condition-builder/ConditionBuilderTemplate';
|
|
5
|
-
export * from './overview/OverviewTemplate';
|
|
6
|
-
export * from './listing/ListingTemplate';
|
|
7
|
-
export * from './side-navigation-layout/SideNavigationLayoutTemplate';
|
|
8
|
-
export * from './field-editor/FieldEditorTemplate';
|
|
9
|
-
export * from './app/breadcrumbs/BreadcrumbsProvider';
|
|
10
|
-
export * from './app/breadcrumbs';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TableColumn, TableRow, SortType } from '@kentico/xperience-admin-components';
|
|
2
|
-
import { Action } from '../../types';
|
|
3
|
-
export interface ListingProps {
|
|
4
|
-
readonly columns: TableColumn[];
|
|
5
|
-
readonly headerActions?: Action[];
|
|
6
|
-
readonly pageSizes: number[];
|
|
7
|
-
readonly pageSize: number;
|
|
8
|
-
readonly caption: string;
|
|
9
|
-
readonly sortBy: string;
|
|
10
|
-
readonly sortType: SortType;
|
|
11
|
-
readonly pageSizesLabel: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ListingRow extends TableRow {
|
|
14
|
-
readonly action: Action;
|
|
15
|
-
}
|
|
16
|
-
export interface LoadDataResult {
|
|
17
|
-
readonly rows?: ListingRow[];
|
|
18
|
-
readonly totalCount: number;
|
|
19
|
-
}
|
|
20
|
-
export interface RowActionResult {
|
|
21
|
-
reload: boolean;
|
|
22
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { CalloutType, CalloutPlacementType, IconName } from '@kentico/xperience-admin-components';
|
|
2
|
-
import { ConditionBuilderProps } from '../../shared-components/ConditionBuilder/ConditionBuilder';
|
|
3
|
-
export interface OverviewTemplateProps {
|
|
4
|
-
readonly errorMessage?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface LoadOverviewDataResult {
|
|
7
|
-
callouts: CalloutConfiguration[];
|
|
8
|
-
cardGroups: CardGroupConfiguration[];
|
|
9
|
-
}
|
|
10
|
-
export interface CalloutConfiguration {
|
|
11
|
-
readonly headline: string;
|
|
12
|
-
readonly content: string;
|
|
13
|
-
readonly actionButton?: CalloutButtonConfiguration;
|
|
14
|
-
readonly type: CalloutType;
|
|
15
|
-
readonly placement: CalloutPlacementType;
|
|
16
|
-
}
|
|
17
|
-
export interface CalloutButtonConfiguration {
|
|
18
|
-
readonly text: string;
|
|
19
|
-
readonly clickCommandName: string;
|
|
20
|
-
readonly statusCommandName?: string;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
inProgress: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface CalloutButtonStatusCommandResponse {
|
|
25
|
-
readonly inProgress: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface CardGroupConfiguration {
|
|
28
|
-
readonly cards: CardConfiguration[];
|
|
29
|
-
}
|
|
30
|
-
export interface CardConfiguration {
|
|
31
|
-
readonly headline: string;
|
|
32
|
-
readonly tags?: CardTagConfiguration[];
|
|
33
|
-
readonly content: string;
|
|
34
|
-
readonly action?: CardActionConfiguration;
|
|
35
|
-
readonly conditionOverview?: ConditionBuilderProps;
|
|
36
|
-
}
|
|
37
|
-
export interface CardActionConfiguration {
|
|
38
|
-
readonly label: string;
|
|
39
|
-
readonly icon?: IconName;
|
|
40
|
-
readonly clickCommandName: string;
|
|
41
|
-
}
|
|
42
|
-
export interface CardTagConfiguration {
|
|
43
|
-
readonly gradient: TagGradient;
|
|
44
|
-
readonly label: string;
|
|
45
|
-
}
|
|
46
|
-
export declare enum TagGradient {
|
|
47
|
-
CoolGrayDark = "coolGrayDark",
|
|
48
|
-
GrayDark = "grayDark",
|
|
49
|
-
KenticoOrangeDark = "kenticoOrangeDark",
|
|
50
|
-
RedDark = "redDark",
|
|
51
|
-
YellowDark = "yellowDark",
|
|
52
|
-
NavyBlueDark = "navyBlueDark",
|
|
53
|
-
NeonGreenDark = "neonGreenDark",
|
|
54
|
-
PersianGreenDark = "persianGreenDark",
|
|
55
|
-
SkyBlueDark = "skyBlueDark",
|
|
56
|
-
XperienceBlueDark = "xperienceBlueDark",
|
|
57
|
-
PurpleDark = "purpleDark",
|
|
58
|
-
RoseDark = "roseDark",
|
|
59
|
-
CoolGrayLight = "coolGrayLight",
|
|
60
|
-
GrayLight = "grayLight",
|
|
61
|
-
KenticoOrangeLight = "kenticoOrangeLight",
|
|
62
|
-
RedLight = "redLight",
|
|
63
|
-
YellowLight = "yellowLight",
|
|
64
|
-
NavyBlueLight = "navyBlueLight",
|
|
65
|
-
NeonGreenLight = "neonGreenLight",
|
|
66
|
-
PersianGreenLight = "persianGreenLight",
|
|
67
|
-
SkyBlueLight = "skyBlueLight",
|
|
68
|
-
XperienceBlueLight = "xperienceBlueLight",
|
|
69
|
-
PurpleLight = "purpleLight",
|
|
70
|
-
RoseLight = "roseLight"
|
|
71
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { NavigationItem } from '../../../template-properties';
|
|
3
|
-
interface VerticalMenuProps {
|
|
4
|
-
navigation: NavigationItem[];
|
|
5
|
-
isInner: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const VerticalMenu: ({ navigation, isInner }: VerticalMenuProps) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IconName } from '@kentico/xperience-admin-components';
|
|
2
|
-
export declare enum ActionType {
|
|
3
|
-
Link = "link",
|
|
4
|
-
Command = "command"
|
|
5
|
-
}
|
|
6
|
-
export interface Action {
|
|
7
|
-
readonly type: ActionType;
|
|
8
|
-
readonly parameter: string;
|
|
9
|
-
readonly label: string;
|
|
10
|
-
readonly icon: IconName;
|
|
11
|
-
readonly disabled: boolean;
|
|
12
|
-
readonly destructive: boolean;
|
|
13
|
-
readonly confirmation?: string;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface NotificationMessage {
|
|
2
|
-
readonly id?: string | number;
|
|
3
|
-
readonly message: string;
|
|
4
|
-
readonly type: NotificationMessageType;
|
|
5
|
-
}
|
|
6
|
-
export declare enum NotificationMessageType {
|
|
7
|
-
Success = "success",
|
|
8
|
-
Error = "error",
|
|
9
|
-
Warning = "warning",
|
|
10
|
-
Info = "info"
|
|
11
|
-
}
|