@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,5 +1,12 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
export * from './Callout/Callout';
|
|
2
|
+
export * from './Callout/Callout.types';
|
|
3
|
+
export * from './Assets/AssetPanel';
|
|
4
|
+
export * from './Assets/AssetFolderTreeView';
|
|
5
|
+
export * from './Assets/AssetsLoader';
|
|
6
|
+
export * from './Assets';
|
|
4
7
|
export * from './AppLinkButton';
|
|
5
8
|
export * from './ConditionBuilder/ConditionBuilderOverview';
|
|
9
|
+
export * from './Textarea';
|
|
10
|
+
export * from './Assets/hooks';
|
|
11
|
+
export * from './Assets/AssetTileHidden/AssetTileHidden';
|
|
12
|
+
export * from './ConfirmationDialog';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TemplateDialogContextProps, TemplateDialogProviderProps } from './TemplateDialogContext.types';
|
|
3
2
|
export declare const useTemplateDialog: () => TemplateDialogContextProps;
|
|
4
3
|
export declare const TemplateDialogProvider: ({ children }: TemplateDialogProviderProps) => JSX.Element;
|
|
@@ -14,8 +14,18 @@ export interface TemplateDialogContextProps {
|
|
|
14
14
|
readonly isInDialog: boolean;
|
|
15
15
|
readonly title: string;
|
|
16
16
|
readonly setTitle: (title: string) => void;
|
|
17
|
-
readonly minWidth?: string;
|
|
18
|
-
readonly setMinWidth: (width: string) => void;
|
|
17
|
+
readonly minWidth?: string | number;
|
|
18
|
+
readonly setMinWidth: (width: string | number) => void;
|
|
19
|
+
readonly width?: string | number;
|
|
20
|
+
readonly setWidth: (width: string | number) => void;
|
|
21
|
+
readonly maxWidth?: string | number;
|
|
22
|
+
readonly setMaxWidth: (width: string | number) => void;
|
|
23
|
+
readonly minHeight?: string | number;
|
|
24
|
+
readonly setMinHeight: (height: string | number) => void;
|
|
25
|
+
readonly height?: string | number;
|
|
26
|
+
readonly setHeight: (height: string | number) => void;
|
|
27
|
+
readonly maxHeight?: string | number;
|
|
28
|
+
readonly setMaxHeight: (height: string | number) => void;
|
|
19
29
|
readonly dialogHandlers: DialogHandlers;
|
|
20
30
|
readonly setDialogHandlers: (dialogHandlers: DialogHandlers) => void;
|
|
21
31
|
readonly messages: NotificationMessage[];
|
|
@@ -23,6 +33,8 @@ export interface TemplateDialogContextProps {
|
|
|
23
33
|
readonly removeDialogMessage: (id: string | number) => void;
|
|
24
34
|
readonly canProcessMessageType: (messageVariant: NotificationMessageType) => boolean;
|
|
25
35
|
readonly closeDialog: () => void;
|
|
36
|
+
readonly isFullscreen: boolean;
|
|
37
|
+
readonly setIsFullscreen: (isFullscreen: boolean) => void;
|
|
26
38
|
}
|
|
27
39
|
/**
|
|
28
40
|
* Represents properties for Dialog provider component.
|
|
@@ -2,7 +2,7 @@ import { TemplateProperties } from '../../template-properties';
|
|
|
2
2
|
/**
|
|
3
3
|
* Loads the template data based on location.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useTemplateDataLoader: (endpoint: string) => {
|
|
5
|
+
export declare const useTemplateDataLoader: (endpoint: string, preventRefetch: boolean) => {
|
|
6
6
|
isComplete: boolean;
|
|
7
7
|
isError: boolean;
|
|
8
8
|
data: TemplateProperties | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IconName } from '@kentico/xperience-admin-components';
|
|
2
|
+
import { TemplateProperties } from '../../template-properties';
|
|
3
|
+
import { SiteSelectorProps } from './siteselector/SiteSelector.types';
|
|
2
4
|
export interface Application {
|
|
3
5
|
readonly name: string;
|
|
4
6
|
readonly icon: IconName;
|
|
@@ -8,10 +10,15 @@ export interface ApplicationCategory {
|
|
|
8
10
|
readonly name: string;
|
|
9
11
|
readonly icon: IconName;
|
|
10
12
|
readonly applications: Application[];
|
|
11
|
-
readonly path: string;
|
|
12
13
|
readonly codeName: string;
|
|
13
14
|
}
|
|
14
|
-
export interface
|
|
15
|
+
export interface UserProfile {
|
|
16
|
+
readonly userName: string;
|
|
17
|
+
readonly firstName: string;
|
|
18
|
+
readonly lastName: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AppTemplateProps extends TemplateProperties {
|
|
15
21
|
readonly categories: ApplicationCategory[];
|
|
16
|
-
readonly
|
|
22
|
+
readonly siteSelectorProperties: SiteSelectorProps;
|
|
23
|
+
readonly userProfile: UserProfile;
|
|
17
24
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const AppTemplate: ({ categories, siteName }: ApplicationCategories) => JSX.Element;
|
|
1
|
+
import { AppTemplateProps } from './App.types';
|
|
2
|
+
declare const AppTemplate: ({ categories }: AppTemplateProps) => JSX.Element;
|
|
4
3
|
export { AppTemplate };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { UITestProps } from '@kentico/xperience-admin-components';
|
|
3
|
+
import { Application, ApplicationCategory } from '../../App.types';
|
|
4
|
+
export declare enum ApplicationListView {
|
|
5
|
+
List = "list",
|
|
6
|
+
Tiles = "tiles"
|
|
7
|
+
}
|
|
8
|
+
export interface ApplicationListProps {
|
|
9
|
+
readonly categories: ApplicationCategory[];
|
|
10
|
+
readonly selectedCategory?: ApplicationCategory;
|
|
11
|
+
readonly applicationPath: string;
|
|
12
|
+
readonly handleClick: (selectedCategory: ApplicationCategory) => void;
|
|
13
|
+
readonly overlayRef: RefObject<HTMLDivElement>;
|
|
14
|
+
readonly className?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ApplicationListGroupProps {
|
|
17
|
+
readonly category?: ApplicationCategory;
|
|
18
|
+
readonly applicationPath: string;
|
|
19
|
+
readonly view: ApplicationListView;
|
|
20
|
+
readonly handleClick: (category: ApplicationCategory) => void;
|
|
21
|
+
readonly renderToggleButtons?: () => React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare enum ApplicationListItemState {
|
|
24
|
+
Default = "Default",
|
|
25
|
+
Activated = "Activated"
|
|
26
|
+
}
|
|
27
|
+
export interface ApplicationListItemProps extends UITestProps {
|
|
28
|
+
readonly state: ApplicationListItemState;
|
|
29
|
+
readonly application: Application;
|
|
30
|
+
readonly handleClick: () => void;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApplicationList } from './ApplicationList';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApplicationCategory } from '../../App.types';
|
|
2
|
+
/**
|
|
3
|
+
* Filters applications in list of categories. Applications are sorted according to best matching result.
|
|
4
|
+
* If no application of category match query, whole category is omitted.
|
|
5
|
+
*
|
|
6
|
+
* @param categories List of categories with applications to filter.
|
|
7
|
+
* @param filter Filter string to match.
|
|
8
|
+
* @returns FilteredCategories Categories with matched applications.
|
|
9
|
+
*/
|
|
10
|
+
export declare const filterCategories: (categories: ApplicationCategory[], filter: string) => ApplicationCategory[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApplicationMenu } from './ApplicationMenu';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
image?: string;
|
|
5
|
-
name?: string;
|
|
1
|
+
import { UserProfile } from '../App.types';
|
|
2
|
+
interface AvatarProps {
|
|
3
|
+
readonly userProfile: UserProfile;
|
|
6
4
|
}
|
|
7
|
-
declare const Avatar:
|
|
5
|
+
declare const Avatar: {
|
|
6
|
+
({ userProfile }: AvatarProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
8
9
|
export { Avatar };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ApplicationCategory } from '../App.types';
|
|
3
2
|
interface MainProps {
|
|
4
3
|
readonly categories: ApplicationCategory[];
|
|
5
|
-
readonly siteName: string;
|
|
6
4
|
}
|
|
7
|
-
declare const Main: ({ categories
|
|
5
|
+
declare const Main: ({ categories }: MainProps) => JSX.Element;
|
|
8
6
|
export { Main };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DropdownActionMenuProps, IconName } from '@kentico/xperience-admin-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SiteSelectorProps {
|
|
4
|
+
sites: SiteSelectorItemModel[];
|
|
5
|
+
currentSiteName: string;
|
|
6
|
+
sitesApplication: ApplicationNavigationModel;
|
|
7
|
+
}
|
|
8
|
+
export interface SiteSelectorItemModel {
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ApplicationNavigationModel {
|
|
13
|
+
name: string;
|
|
14
|
+
path: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SelectType {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly title: string;
|
|
19
|
+
readonly defaultLabel: string;
|
|
20
|
+
readonly noItemLabel: string;
|
|
21
|
+
readonly icon?: IconName;
|
|
22
|
+
readonly options: SiteSelectorItemModel[];
|
|
23
|
+
readonly footer: ApplicationNavigationModel;
|
|
24
|
+
}
|
|
25
|
+
export interface DropdownControlledType extends Omit<DropdownActionMenuProps, 'children'> {
|
|
26
|
+
renderMenu: (setOpen: (open: boolean) => void) => React.ReactNode;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatusBar } from './StatusBar';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ConditionBuilderTemplateProps } from './ConditionBuilderTemplate.types';
|
|
3
2
|
export declare const ConditionBuilderTemplate: ({ backLink, errorMessage, caption, submitLabel, initialConfiguration, availableMacroRuleConfigurations, availableMacroRules }: ConditionBuilderTemplateProps) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const DashboardTemplate: ({ categories }: ApplicationCategories) => JSX.Element;
|
|
1
|
+
import { DashboardProps } from './Dashboard.types';
|
|
2
|
+
export declare const DashboardTemplate: ({ applications }: DashboardProps) => JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { FormComponentProps } from '../../forms/form-components/FormComponent.types';
|
|
2
|
-
|
|
2
|
+
import { CalloutConfiguration } from '../../shared-components';
|
|
3
|
+
export interface EditSectionTemplateProps {
|
|
3
4
|
readonly backLink?: string;
|
|
4
5
|
readonly readOnly: boolean;
|
|
5
6
|
readonly submitLabel: string;
|
|
6
7
|
readonly components: FormComponentProps[];
|
|
7
|
-
readonly
|
|
8
|
+
readonly headline: string;
|
|
8
9
|
readonly errorMessage?: string;
|
|
10
|
+
readonly callouts: CalloutConfiguration[];
|
|
9
11
|
}
|
|
10
12
|
export interface FormChangeResult {
|
|
11
13
|
readonly components: FormComponentProps[];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './app/AppTemplate';
|
|
2
2
|
export * from './dashboard/DashboardTemplate';
|
|
3
|
-
export * from './edit/
|
|
3
|
+
export * from './edit/EditSectionTemplate';
|
|
4
4
|
export * from './condition-builder/ConditionBuilderTemplate';
|
|
5
5
|
export * from './overview/OverviewTemplate';
|
|
6
6
|
export * from './listing/ListingTemplate';
|
|
7
|
-
export * from './side-navigation-layout
|
|
7
|
+
export * from './side-navigation-layout';
|
|
8
8
|
export * from './field-editor/FieldEditorTemplate';
|
|
9
9
|
export * from './app/breadcrumbs/BreadcrumbsProvider';
|
|
10
10
|
export * from './app/breadcrumbs';
|
|
11
|
+
export * from './view-menu-navigation-layout/ViewMenuNavigationLayoutTemplate';
|
|
12
|
+
export * from './settings';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TableColumn, TableRow, SortType } from '@kentico/xperience-admin-components';
|
|
2
|
+
import { CalloutConfiguration } from '../../shared-components';
|
|
2
3
|
import { Action } from '../../types';
|
|
3
4
|
export interface ListingProps {
|
|
4
5
|
readonly columns: TableColumn[];
|
|
@@ -9,6 +10,7 @@ export interface ListingProps {
|
|
|
9
10
|
readonly sortBy: string;
|
|
10
11
|
readonly sortType: SortType;
|
|
11
12
|
readonly pageSizesLabel: string;
|
|
13
|
+
readonly callout?: CalloutConfiguration;
|
|
12
14
|
}
|
|
13
15
|
export interface ListingRow extends TableRow {
|
|
14
16
|
readonly action: Action;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ListingProps } from './Listing.types';
|
|
3
|
-
export declare const ListingTemplate: ({ headerActions, columns, caption, ...props }: ListingProps) => JSX.Element;
|
|
2
|
+
export declare const ListingTemplate: ({ headerActions, columns, caption, callout, ...props }: ListingProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gradients, IconName } from '@kentico/xperience-admin-components';
|
|
2
|
+
import { CalloutConfiguration } from '../../shared-components/Callout/Callout.types';
|
|
2
3
|
import { ConditionBuilderProps } from '../../shared-components/ConditionBuilder/ConditionBuilder';
|
|
3
4
|
export interface OverviewTemplateProps {
|
|
4
5
|
readonly errorMessage?: string;
|
|
@@ -7,23 +8,6 @@ export interface LoadOverviewDataResult {
|
|
|
7
8
|
callouts: CalloutConfiguration[];
|
|
8
9
|
cardGroups: CardGroupConfiguration[];
|
|
9
10
|
}
|
|
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
11
|
export interface CardGroupConfiguration {
|
|
28
12
|
readonly cards: CardConfiguration[];
|
|
29
13
|
}
|
|
@@ -40,32 +24,6 @@ export interface CardActionConfiguration {
|
|
|
40
24
|
readonly clickCommandName: string;
|
|
41
25
|
}
|
|
42
26
|
export interface CardTagConfiguration {
|
|
43
|
-
readonly gradient:
|
|
27
|
+
readonly gradient: keyof typeof Gradients;
|
|
44
28
|
readonly label: string;
|
|
45
29
|
}
|
|
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
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type CategoryNamesDictionary = {
|
|
2
|
+
[key: number]: string;
|
|
3
|
+
};
|
|
4
|
+
export interface SettingsContextType {
|
|
5
|
+
invokeOnSubmitHandler: () => Promise<void>;
|
|
6
|
+
registerOnSubmitHandler: (handler: () => Promise<void>) => void;
|
|
7
|
+
registerClearSearchHandler: (handler: () => void) => void;
|
|
8
|
+
searchFilter: string;
|
|
9
|
+
setSearchFilter: (value: string) => void;
|
|
10
|
+
settingsCategoryNames: CategoryNamesDictionary;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SettingContextProps {
|
|
3
|
+
readonly categories: {
|
|
4
|
+
[key: number]: string;
|
|
5
|
+
};
|
|
6
|
+
readonly children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const SettingsContextProvider: {
|
|
9
|
+
({ children, categories }: SettingContextProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FormComponentProps } from '../../../forms/form-components';
|
|
2
|
+
export interface SettingsDetailsTemplateProps {
|
|
3
|
+
readonly title: string;
|
|
4
|
+
readonly categories: Category[];
|
|
5
|
+
}
|
|
6
|
+
export interface SettingsNoResultPageProps {
|
|
7
|
+
readonly filter: string;
|
|
8
|
+
readonly clearSearchHandler: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface Category {
|
|
11
|
+
readonly categoryId: number;
|
|
12
|
+
readonly categoryParentId: number;
|
|
13
|
+
readonly categoryIdPath: string;
|
|
14
|
+
readonly displayName: string;
|
|
15
|
+
readonly components: FormComponentProps[];
|
|
16
|
+
}
|
|
17
|
+
export interface SaveKeysArguments {
|
|
18
|
+
readonly keyValues: Record<string, any>;
|
|
19
|
+
readonly filter: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SaveKeysResult {
|
|
22
|
+
readonly isValid: boolean;
|
|
23
|
+
readonly categories: Category[];
|
|
24
|
+
}
|