@kentico/xperience-admin-base 14.0.0-109224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/CommandContext.d.ts +27 -0
- package/dist/commands/CommandProvider.d.ts +12 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/useCommand.types.d.ts +36 -0
- package/dist/commands/useCommandInvoker.d.ts +11 -0
- package/dist/commands/usePageCommand.d.ts +11 -0
- package/dist/components/ActionList/ActionList.d.ts +2 -0
- package/dist/components/ActionList/ActionList.types.d.ts +5 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +32 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.d.ts +5 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.types.d.ts +16 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/loader/Loader.d.ts +1 -0
- package/dist/components/page-loader/PageLoader.d.ts +5 -0
- package/dist/components/page-message-pane/PageMessagePane.d.ts +7 -0
- package/dist/components/portal/Portal.d.ts +8 -0
- package/dist/entry.d.ts +15 -0
- package/dist/entry.js +28 -0
- package/dist/forms/form/Form.d.ts +6 -0
- package/dist/forms/form/Form.types.d.ts +129 -0
- package/dist/forms/form/FormField.d.ts +5 -0
- package/dist/forms/form/FormField.types.d.ts +15 -0
- package/dist/forms/form/formCategory/FormCategory.d.ts +2 -0
- package/dist/forms/form/formCategory/FormCategory.types.d.ts +11 -0
- package/dist/forms/form/index.d.ts +4 -0
- package/dist/forms/form/utils/parseFormCategories.d.ts +2 -0
- package/dist/forms/form-components/FormComponent.types.d.ts +24 -0
- package/dist/forms/form-components/FormComponentLoader.d.ts +2 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorDropTile.d.ts +1 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.types.d.ts +11 -0
- package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +2 -0
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +2 -0
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +18 -0
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +16 -0
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +2 -0
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +11 -0
- package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.types.d.ts +9 -0
- package/dist/forms/form-components/formComponentUtils.d.ts +5 -0
- package/dist/forms/form-components/index.d.ts +20 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +2 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +3 -0
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +2 -0
- package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.types.d.ts +23 -0
- package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.d.ts +2 -0
- package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.types.d.ts +9 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +2 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.types.d.ts +14 -0
- package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.d.ts +2 -0
- package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.types.d.ts +15 -0
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +6 -0
- package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.d.ts +10 -0
- package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.types.d.ts +10 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.d.ts +2 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.types.d.ts +3 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/index.d.ts +2 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/index.d.ts +1 -0
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +2 -0
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +4 -0
- package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.d.ts +2 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +2 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.types.d.ts +5 -0
- package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponent.d.ts +7 -0
- package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponentProps.types.d.ts +43 -0
- package/dist/forms/hooks/FormComponentCommand.types.d.ts +7 -0
- package/dist/forms/hooks/FormComponentCommandUtils.d.ts +4 -0
- package/dist/forms/hooks/index.d.ts +4 -0
- package/dist/forms/hooks/useDisplayDialogInFullscreen.d.ts +1 -0
- package/dist/forms/hooks/useFormComponentCommand.d.ts +4 -0
- package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +4 -0
- package/dist/forms/hooks/useValidationRule.d.ts +2 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +13 -0
- package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +2 -0
- package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +7 -0
- package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.d.ts +11 -0
- package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts +14 -0
- package/dist/forms/validation-rules/email-rule/EmailValidationRule.d.ts +9 -0
- package/dist/forms/validation-rules/email-rule/EmailValidationRule.types.d.ts +5 -0
- package/dist/forms/validation-rules/identifier-rule/IdentifierValidationRule.d.ts +8 -0
- package/dist/forms/validation-rules/index.d.ts +15 -0
- package/dist/forms/validation-rules/invalid-items-rule/InvalidItemsValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.d.ts +9 -0
- package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +3 -0
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +3 -0
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.d.ts +4 -0
- package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.types.d.ts +3 -0
- package/dist/forms/validation-rules/required-value-rule/RequiredValueValidationRule.d.ts +2 -0
- package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +2 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useBlocker.d.ts +5 -0
- package/dist/hooks/useComponent.d.ts +2 -0
- package/dist/hooks/useFieldInfoObject.d.ts +2 -0
- package/dist/hooks/useInterval.d.ts +1 -0
- package/dist/hooks/useIsPathActive.d.ts +9 -0
- package/dist/hooks/useLoadDropdownOptions.d.ts +6 -0
- package/dist/hooks/useNotificationMessage.d.ts +9 -0
- package/dist/hooks/usePagePath.d.ts +5 -0
- package/dist/hooks/usePrompt.d.ts +5 -0
- package/dist/localization/Localization.types.d.ts +7 -0
- package/dist/localization/LocalizationContext.d.ts +4 -0
- package/dist/localization/LocalizationProvider.d.ts +2 -0
- package/dist/localization/index.d.ts +4 -0
- package/dist/notifications/NotificationsContext.d.ts +5 -0
- package/dist/notifications/NotificationsContext.types.d.ts +13 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/providers/CustomRightSidebarProvider.d.ts +10 -0
- package/dist/providers/backgroundImageProvider.d.ts +11 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/shared-components/ActionButtons/ActionButton/ActionButton.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionButton/ActionButton.types.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionButton/index.d.ts +1 -0
- package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.types.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionLink/index.d.ts +2 -0
- package/dist/shared-components/ActionButtons/index.d.ts +2 -0
- package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +3 -0
- package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +4 -0
- package/dist/shared-components/AppLinkButton/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.d.ts +3 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.types.d.ts +50 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.d.ts +5 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.types.d.ts +70 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanelContext.d.ts +6 -0
- package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.d.ts +2 -0
- package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.types.d.ts +85 -0
- package/dist/shared-components/Assets/AssetPanelContent/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.d.ts +5 -0
- package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.types.d.ts +8 -0
- package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.d.ts +5 -0
- package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.types.d.ts +6 -0
- package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.d.ts +2 -0
- package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.types.d.ts +6 -0
- package/dist/shared-components/Assets/AssetsLoader/index.d.ts +2 -0
- package/dist/shared-components/Assets/hooks/index.d.ts +3 -0
- package/dist/shared-components/Assets/hooks/useAssetDataManager.d.ts +26 -0
- package/dist/shared-components/Assets/hooks/useAssetFolderManager.d.ts +13 -0
- package/dist/shared-components/Assets/hooks/useAssetFolderManager.types.d.ts +54 -0
- package/dist/shared-components/Assets/hooks/useAssetLibraryManager.d.ts +10 -0
- package/dist/shared-components/Assets/hooks/useAssetLibraryManager.types.d.ts +7 -0
- package/dist/shared-components/Assets/hooks/useAssetManager.d.ts +17 -0
- package/dist/shared-components/Assets/hooks/useAssetManager.types.d.ts +151 -0
- package/dist/shared-components/Assets/hooks/useAssetTilesColumnCount.d.ts +7 -0
- package/dist/shared-components/Assets/hooks/useAssetsInfiniteScroll.d.ts +9 -0
- package/dist/shared-components/Assets/index.d.ts +4 -0
- package/dist/shared-components/Assets/types/Assets.types.d.ts +10 -0
- package/dist/shared-components/Callout/Callout.d.ts +5 -0
- package/dist/shared-components/Callout/Callout.types.d.ts +22 -0
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +33 -0
- package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +16 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ErrorFallbackAlert.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/index.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ConditionOverviewModuleLoader.d.ts +7 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterSimpleOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +6 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +24 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +9 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +7 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/Operators.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/Types/Constants.d.ts +1 -0
- package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/index.d.ts +8 -0
- package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +6 -0
- package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.d.ts +5 -0
- package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.types.d.ts +27 -0
- package/dist/shared-components/ConfirmationDialog/index.d.ts +2 -0
- package/dist/shared-components/OverviewCard/OverviewCard.d.ts +3 -0
- package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +16 -0
- package/dist/shared-components/OverviewCard/card-components/OverviewCardComponentLoader.d.ts +2 -0
- package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.d.ts +2 -0
- package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.types.d.ts +3 -0
- package/dist/shared-components/OverviewCard/card-components/index.d.ts +1 -0
- package/dist/shared-components/OverviewCard/index.d.ts +3 -0
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +3 -0
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +4 -0
- package/dist/shared-components/OverviewCardGroup/index.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.types.d.ts +4 -0
- package/dist/shared-components/StickyHeader/index.d.ts +2 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.d.ts +5 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.types.d.ts +3 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/index.d.ts +2 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.d.ts +5 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.types.d.ts +4 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/index.d.ts +2 -0
- package/dist/shared-components/Textarea/index.d.ts +2 -0
- package/dist/shared-components/index.d.ts +15 -0
- package/dist/template-components/builder/PropertiesDialog.d.ts +2 -0
- package/dist/template-components/builder/PropertiesDialog.types.d.ts +40 -0
- package/dist/template-components/builder/PropertiesDialogContext.d.ts +3 -0
- package/dist/template-components/builder/PropertiesDialogContext.types.d.ts +23 -0
- package/dist/template-components/builder/index.d.ts +5 -0
- package/dist/template-components/builder/utils/keysToCamelCase.d.ts +6 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.d.ts +2 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.types.d.ts +5 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/index.d.ts +2 -0
- package/dist/template-components/dialog/TemplateDialog.d.ts +2 -0
- package/dist/template-components/dialog/TemplateDialog.types.d.ts +8 -0
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +3 -0
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +44 -0
- package/dist/template-components/index.d.ts +7 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +3 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +7 -0
- package/dist/template-components/secondary-menu/SecondaryMenu.d.ts +5 -0
- package/dist/template-components/secondary-menu/SecondaryMenuCell.d.ts +7 -0
- package/dist/template-components/secondary-menu/SecondaryMenuHeadline.d.ts +9 -0
- package/dist/template-components/secondary-menu/SecondaryMenuWrapper.d.ts +10 -0
- package/dist/template-components/side-menu/TemplateSideMenu.d.ts +1 -0
- package/dist/template-components/side-menu/side-menu-item/SideMenuItem.d.ts +2 -0
- package/dist/template-components/side-menu/side-menu-item/SideMenuItem.types.d.ts +4 -0
- package/dist/template-components/side-panel/TemplateSidePanel.d.ts +2 -0
- package/dist/template-components/side-panel/TemplateSidePanel.types.d.ts +8 -0
- package/dist/template-components/side-panel/TemplateSidePanelContext.d.ts +3 -0
- package/dist/template-components/side-panel/TemplateSidePanelContext.types.d.ts +32 -0
- package/dist/template-components/template-loader/TemplateLoader.d.ts +5 -0
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +13 -0
- package/dist/template-properties/TemplateProperties.types.d.ts +40 -0
- package/dist/template-properties/TemplatePropertiesProvider.d.ts +9 -0
- package/dist/template-properties/index.d.ts +2 -0
- package/dist/templates/app/App.types.d.ts +25 -0
- package/dist/templates/app/AppTemplate.d.ts +3 -0
- package/dist/templates/app/application-menu/ApplicationMenu.d.ts +4 -0
- package/dist/templates/app/application-menu/ApplicationMenu.types.d.ts +5 -0
- package/dist/templates/app/application-menu/application-list/ApplicationList.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/ApplicationList.types.d.ts +31 -0
- package/dist/templates/app/application-menu/application-list/ApplicationListGroup.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/ApplicationListItem.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/index.d.ts +1 -0
- package/dist/templates/app/application-menu/application-list/utils.d.ts +10 -0
- package/dist/templates/app/application-menu/index.d.ts +1 -0
- package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.d.ts +4 -0
- package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.types.d.ts +5 -0
- package/dist/templates/app/application-menu-mobile/index.d.ts +1 -0
- package/dist/templates/app/avatar/Avatar.d.ts +13 -0
- package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +19 -0
- package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +4 -0
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +2 -0
- package/dist/templates/app/breadcrumbs/index.d.ts +2 -0
- package/dist/templates/app/main/Main.d.ts +6 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigation.types.d.ts +11 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationContext.d.ts +4 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationProvider.d.ts +2 -0
- package/dist/templates/app/secondary-menu-navigation/index.d.ts +2 -0
- package/dist/templates/app/siteselector/SiteSelector.d.ts +4 -0
- package/dist/templates/app/siteselector/SiteSelector.types.d.ts +27 -0
- package/dist/templates/app/small-status-bar/Cell.d.ts +9 -0
- package/dist/templates/app/small-status-bar/SmallStatusBar.d.ts +5 -0
- package/dist/templates/app/small-status-bar/index.d.ts +1 -0
- package/dist/templates/app/status-bar/StatusBar.d.ts +9 -0
- package/dist/templates/app/status-bar/index.d.ts +1 -0
- package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +2 -0
- package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +7 -0
- package/dist/templates/dashboard/Dashboard.types.d.ts +4 -0
- package/dist/templates/dashboard/DashboardTemplate.d.ts +2 -0
- package/dist/templates/edit/EditSectionTemplate.d.ts +2 -0
- package/dist/templates/edit/EditSectionTemplate.types.d.ts +17 -0
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +2 -0
- package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +4 -0
- package/dist/templates/field-editor/FieldEditorForm.d.ts +5 -0
- package/dist/templates/field-editor/FieldEditorForm.types.d.ts +11 -0
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +14 -0
- package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +83 -0
- package/dist/templates/index.d.ts +13 -0
- package/dist/templates/listing/Listing.types.d.ts +25 -0
- package/dist/templates/listing/ListingTemplate.d.ts +2 -0
- package/dist/templates/no-license/NoLicenseTemplate.d.ts +2 -0
- package/dist/templates/no-license/NoLicenseTemplate.types.d.ts +8 -0
- package/dist/templates/overview/OverviewTemplate.d.ts +2 -0
- package/dist/templates/overview/OverviewTemplate.types.d.ts +31 -0
- package/dist/templates/secondary-menu-layout/SecondaryMenuLayout.d.ts +1 -0
- package/dist/templates/secondary-menu-layout/SecondaryMenuLayoutTemplate.d.ts +1 -0
- package/dist/templates/secondary-menu-layout/index.d.ts +1 -0
- package/dist/templates/settings/context/SettingsContext.d.ts +4 -0
- package/dist/templates/settings/context/SettingsContext.types.d.ts +11 -0
- package/dist/templates/settings/context/SettingsContextProvider.d.ts +12 -0
- package/dist/templates/settings/detail/SettingsBreadcrumbs.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsDetails.types.d.ts +24 -0
- package/dist/templates/settings/detail/SettingsDetailsTemplate.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsNoResultPage.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsNoResultPage.types.d.ts +4 -0
- package/dist/templates/settings/detail/SettingsSearchTemplate.d.ts +2 -0
- package/dist/templates/settings/index.d.ts +3 -0
- package/dist/templates/settings/layout/NodeComponent.d.ts +2 -0
- package/dist/templates/settings/layout/NodeComponentProps.d.ts +6 -0
- package/dist/templates/settings/layout/SettingsLayout.types.d.ts +9 -0
- package/dist/templates/settings/layout/SettingsLayoutTemplate.d.ts +2 -0
- package/dist/templates/settings/layout/SettingsSearchRowComponent.d.ts +1 -0
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +1 -0
- package/dist/types/Action.types.d.ts +15 -0
- package/dist/types/NotificationMessage.types.d.ts +11 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/authentication/logonUrlProvider.d.ts +10 -0
- package/dist/utils/basePathUtils.d.ts +8 -0
- package/dist/utils/constants.d.ts +5 -0
- package/dist/utils/formatString.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/loadModule.d.ts +9 -0
- package/dist/utils/pathUtils/index.d.ts +1 -0
- package/dist/utils/pathUtils/pathUtils.d.ts +9 -0
- package/dist/utils/postToAdmin.d.ts +21 -0
- package/dist/utils/responseStatusActions.d.ts +15 -0
- package/package.json +89 -0
|
@@ -0,0 +1,13 @@
|
|
|
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 errorMessage: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface ValidationResult {
|
|
10
|
+
readonly isValid: boolean;
|
|
11
|
+
readonly errorMessage: string | null;
|
|
12
|
+
hasChanged?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AssetTile } from '../../../shared-components';
|
|
2
|
+
import { ValidationRule } from '../ValidationRule.types';
|
|
3
|
+
import { AssetSelectorValidationRuleProps } from './AssetSelectorValidationRule.types';
|
|
4
|
+
/**
|
|
5
|
+
* Validation rule comparing form component assets collection with invalid assets collection.
|
|
6
|
+
* Designed for usage in AssetSelectorFormComponent.
|
|
7
|
+
* @param props Contains collection of invalid assets.
|
|
8
|
+
* @param value Contains form component value.
|
|
9
|
+
* @returns Validation result containing status and message.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AssetSelectorValidationRule: ValidationRule<AssetSelectorValidationRuleProps, AssetTile[]>;
|
package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValidationRuleProps } from '../ValidationRule.types';
|
|
2
|
+
/**
|
|
3
|
+
* Properties for AssetSelectorValidationRule component allowing to set invalid assets.
|
|
4
|
+
*/
|
|
5
|
+
export interface AssetSelectorValidationRuleProps extends ValidationRuleProps {
|
|
6
|
+
readonly invalidAssets?: InvalidAsset[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Holds 2 required identifier to recognize invalid asset.
|
|
10
|
+
*/
|
|
11
|
+
export interface InvalidAsset {
|
|
12
|
+
readonly identifier: string;
|
|
13
|
+
readonly siteIdentifier: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValidationRule } from '../ValidationRule.types';
|
|
2
|
+
import { EmailValidationRuleProps } from './EmailValidationRule.types';
|
|
3
|
+
/**
|
|
4
|
+
* Validation rule validating that value is a valid email address. Supports validating multiple email addresses separated by a semicolon.
|
|
5
|
+
* @param props Validation rule properties.
|
|
6
|
+
* @param value Form component value.
|
|
7
|
+
* @returns Validation result containing status and message.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EmailValidationRule: ValidationRule<EmailValidationRuleProps, string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ValidationRule, ValidationRuleProps } from '../ValidationRule.types';
|
|
2
|
+
/**
|
|
3
|
+
* Validation rule validating that value is a valid identifier.
|
|
4
|
+
* @param props Validation rule properties.
|
|
5
|
+
* @param value Form component value.
|
|
6
|
+
* @returns Validation result containing status and message.
|
|
7
|
+
*/
|
|
8
|
+
export declare const IdentifierValidationRule: ValidationRule<ValidationRuleProps, string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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/RequiredValueValidationRule';
|
|
6
|
+
export * from './asset-selector-rule/AssetSelectorValidationRule.types';
|
|
7
|
+
export * from './asset-selector-rule/AssetSelectorValidationRule';
|
|
8
|
+
export * from './invalid-items-rule/InvalidItemsValidationRule.types';
|
|
9
|
+
export * from './object-selector-rule/ObjectSelectorValidationRule';
|
|
10
|
+
export * from './object-selector-rule/ObjectSelectorValidationRule.types';
|
|
11
|
+
export * from './max-items-rule/MaxItemsValidationRule';
|
|
12
|
+
export * from './server-rule/ServerValidationRule';
|
|
13
|
+
export * from './email-rule/EmailValidationRule';
|
|
14
|
+
export * from './identifier-rule/IdentifierValidationRule';
|
|
15
|
+
export * from './ValidationRule.types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValidationRule } from '../ValidationRule.types';
|
|
2
|
+
import { MaxItemsValidationRuleProps } from './MaxItemsValidationRule.types';
|
|
3
|
+
/**
|
|
4
|
+
* Validation rule validating maximum amount of selected items.
|
|
5
|
+
* @param props Validation rule properties.
|
|
6
|
+
* @param value Form component value.
|
|
7
|
+
* @returns Validation result containing status and message.
|
|
8
|
+
*/
|
|
9
|
+
export declare const MaxItemsValidationRule: ValidationRule<MaxItemsValidationRuleProps, unknown[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ValidationRule } from '../ValidationRule.types';
|
|
2
|
+
import { ObjectSelectorItem } from '../../form-components/object-selector-form-component/ObjectSelectorFormComponent.types';
|
|
3
|
+
import { ObjectSelectorValidationRuleProps } from './ObjectSelectorValidationRule.types';
|
|
4
|
+
export declare const ObjectSelectorValidationRule: ValidationRule<ObjectSelectorValidationRuleProps, ObjectSelectorItem[]>;
|
package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.types.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ObjectSelectorSelectionItem } from '../../form-components/object-selector-form-component/ObjectSelectorFormComponent.types';
|
|
2
|
+
import { InvalidItemsValidationRuleProps } from '../invalid-items-rule/InvalidItemsValidationRule.types';
|
|
3
|
+
export declare type ObjectSelectorValidationRuleProps = InvalidItemsValidationRuleProps<ObjectSelectorSelectionItem>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines whether given path is an active part of the current location.
|
|
3
|
+
*
|
|
4
|
+
* @param path Path.
|
|
5
|
+
* @param onlyExactPath Indicates if the path must exactly match the current path. If false, the path can cover the whole path subtree.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useIsPathActive: (path: string, onlyExactPath?: boolean) => {
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DropDownOption } from '../forms/form-components/dropdown-form-component/DropDownFormComponentProps.types';
|
|
2
|
+
import { FieldInfoValueType } from '../forms/form-components/FormComponent.types';
|
|
3
|
+
export declare const useLoadDropdownOptions: (name: string, fieldValues: FieldInfoValueType, objectType: string, textColumnName: string, valueColumnName: string) => {
|
|
4
|
+
options: DropDownOption[];
|
|
5
|
+
readOnly: boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Transition } from 'history';
|
|
2
|
+
/**
|
|
3
|
+
* This method supports framework infrastructure and shouldn't be used in custom code.
|
|
4
|
+
*/
|
|
5
|
+
export declare function usePrompt(message: string | ((location: Transition['location'], action: Transition['action']) => string), when?: boolean): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CustomRightSidebarProviderProps {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface CustomRightSidebarContextProps {
|
|
6
|
+
readonly isCustomRightSidebarDisplayed?: boolean;
|
|
7
|
+
readonly setIsCustomRightSidebarDisplayed: (customRightSidebarDisplayed: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useCustomRightSidebarContext: () => CustomRightSidebarContextProps;
|
|
10
|
+
export declare const CustomRightSidebarProvider: ({ children }: CustomRightSidebarProviderProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BackgroundImageProviderProps {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface BackgroundImageContextType {
|
|
6
|
+
readonly displayBackgroundImage: boolean;
|
|
7
|
+
readonly setDisplayBackgroundImage: (displayBackgroundImage: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const BackgroundImageContext: React.Context<BackgroundImageContextType>;
|
|
10
|
+
export declare const useBackgroundImage: () => BackgroundImageContextType;
|
|
11
|
+
export declare const BackgroundImageProvider: ({ children }: BackgroundImageProviderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionButton } from './ActionButton';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AssetFolderData } from '../hooks/useAssetFolderManager.types';
|
|
2
|
+
export interface AssetFolderTreeViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* Path to identify root in nodes collection.
|
|
5
|
+
*/
|
|
6
|
+
readonly rootPath: string;
|
|
7
|
+
/**
|
|
8
|
+
* Currently selected path.
|
|
9
|
+
*/
|
|
10
|
+
readonly selectedPath: string;
|
|
11
|
+
/**
|
|
12
|
+
* Key-value collection of folder nodes.
|
|
13
|
+
*/
|
|
14
|
+
readonly nodes: AssetFolderTreeViewItems;
|
|
15
|
+
/**
|
|
16
|
+
* Event fired when the node state is toggled.
|
|
17
|
+
* @param node Toggled node.
|
|
18
|
+
* @param isExpanded Indicates if node is currently expanded.
|
|
19
|
+
*/
|
|
20
|
+
readonly onNodeToggle: (node: AssetFolderTreeViewItem, isExpanded: boolean) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Event fired when the node is clicked.
|
|
23
|
+
* @param node Clicked node.
|
|
24
|
+
*/
|
|
25
|
+
readonly onNodeClick: (node: AssetFolderTreeViewItem) => void;
|
|
26
|
+
}
|
|
27
|
+
export interface AssetFolderTreeViewItem extends AssetFolderData {
|
|
28
|
+
/**
|
|
29
|
+
* Collection of paths representing child folders of current folder.
|
|
30
|
+
*/
|
|
31
|
+
readonly children: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if children are loaded. Defaults to `false`.
|
|
34
|
+
*/
|
|
35
|
+
readonly areChildrenLoaded: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if children of folder are loading. Defaults to `false`.
|
|
38
|
+
*/
|
|
39
|
+
readonly isLoading: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if folder is expanded. Defaults to `false`.
|
|
42
|
+
*/
|
|
43
|
+
readonly isExpanded: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface AssetFolderTreeViewItems {
|
|
46
|
+
/**
|
|
47
|
+
* Key-value pair where key is folder path and value is object representing the folder node.
|
|
48
|
+
*/
|
|
49
|
+
[path: string]: AssetFolderTreeViewItem;
|
|
50
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AssetPanelProps } from './AssetPanel.types';
|
|
2
|
+
/**
|
|
3
|
+
* Component for displaying AssetPanel in the SidePanel. Responsible for loading and handling libraries, folders and assets.
|
|
4
|
+
*/
|
|
5
|
+
export declare const AssetPanel: ({ panelRef, onLibrariesLoad, onSelectAssets, fieldInfo, allowedExtensions, actionButtonLabel, headline, ...props }: AssetPanelProps) => JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldInfo } from '../../../forms';
|
|
3
|
+
import { AssetItem } from '../hooks/useAssetManager.types';
|
|
4
|
+
import { AssetLibrary } from '../types/Assets.types';
|
|
5
|
+
export interface AssetPanelProps {
|
|
6
|
+
/**
|
|
7
|
+
* Indicates if selector is enabled. Defaults to `false`.
|
|
8
|
+
*/
|
|
9
|
+
readonly enabled: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Label shown when selector has been disabled.
|
|
12
|
+
*/
|
|
13
|
+
readonly disabledLabel: string;
|
|
14
|
+
/**
|
|
15
|
+
* Function called when libraries are loaded.
|
|
16
|
+
*/
|
|
17
|
+
readonly onLibrariesLoad: (libraries: AssetLibrary[]) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Function called when assets are selected.
|
|
20
|
+
*/
|
|
21
|
+
readonly onSelectAssets: (assets: AssetItem[]) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Ref passed to the assets selector DOM element.
|
|
24
|
+
*/
|
|
25
|
+
readonly panelRef: React.RefObject<AssetPanelRef>;
|
|
26
|
+
/**
|
|
27
|
+
* Related field info. If provided form component commands are used to load data otherwise page commands are used.
|
|
28
|
+
*/
|
|
29
|
+
readonly fieldInfo?: FieldInfo;
|
|
30
|
+
/**
|
|
31
|
+
* Allowed file extension for loaded assets.
|
|
32
|
+
*/
|
|
33
|
+
readonly allowedExtensions?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Custom label for action button.
|
|
36
|
+
*/
|
|
37
|
+
readonly actionButtonLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Custom headline for the panel.
|
|
40
|
+
*/
|
|
41
|
+
readonly headline?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface AssetPanelRef {
|
|
44
|
+
/**
|
|
45
|
+
* Function to open assets selector.
|
|
46
|
+
*/
|
|
47
|
+
readonly open: () => Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Function to close assets selector.
|
|
50
|
+
*/
|
|
51
|
+
readonly close: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Function to slid the assets selector to the right. Used to make space for drag and drop.
|
|
54
|
+
*/
|
|
55
|
+
readonly toggleSlidToRight: (val: boolean) => void;
|
|
56
|
+
}
|
|
57
|
+
export interface AssetPanelContextType {
|
|
58
|
+
/**
|
|
59
|
+
* Indicates if the asset selector panel is enabled. The panel is enabled if there is at least 1 asset library in the system.
|
|
60
|
+
*/
|
|
61
|
+
assetPanelEnabled: boolean;
|
|
62
|
+
/***
|
|
63
|
+
* Allowed image extensions.
|
|
64
|
+
*/
|
|
65
|
+
imageExtensions: string;
|
|
66
|
+
/**
|
|
67
|
+
* Callback after asset libraries are loaded from the backend.
|
|
68
|
+
*/
|
|
69
|
+
readonly onLibrariesLoad: (libraries: AssetLibrary[]) => void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AssetPanelContentProps } from './AssetPanelContent.types';
|
|
2
|
+
export declare const AssetPanelContent: ({ assets, selectedAssetIdentifiers, folders, rootFolderPath, selectedFolderPath, libraries, assetsTotalCount, hasMoreAssetsToLoad, onSelectionChange, onFolderToggle, onFolderClick, onUpload, onErrorClose, onLibraryChange, onLoadNextPage, uploadInProgress, selectedLibraryIdentifier, acceptFiles }: AssetPanelContentProps) => JSX.Element;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AssetFolderTreeViewItem, AssetFolderTreeViewItems } from '../AssetFolderTreeView/AssetFolderTreeView.types';
|
|
2
|
+
import { AssetItem } from '..';
|
|
3
|
+
import { AssetLibrary } from '../types/Assets.types';
|
|
4
|
+
export interface AssetPanelContentProps {
|
|
5
|
+
/**
|
|
6
|
+
* Collection of assets.
|
|
7
|
+
*/
|
|
8
|
+
readonly assets?: AssetItem[];
|
|
9
|
+
/**
|
|
10
|
+
* Key-value collection of folders.
|
|
11
|
+
*/
|
|
12
|
+
readonly folders: AssetFolderTreeViewItems;
|
|
13
|
+
/**
|
|
14
|
+
* Path to identify root in folders collection.
|
|
15
|
+
*/
|
|
16
|
+
readonly rootFolderPath: string;
|
|
17
|
+
/**
|
|
18
|
+
* Currently selected path.
|
|
19
|
+
*/
|
|
20
|
+
readonly selectedFolderPath: string;
|
|
21
|
+
/**
|
|
22
|
+
* Collection of assets libraries.
|
|
23
|
+
*/
|
|
24
|
+
readonly libraries: AssetLibrary[];
|
|
25
|
+
/**
|
|
26
|
+
* Total count of assets in current library and folder.
|
|
27
|
+
*/
|
|
28
|
+
readonly assetsTotalCount: number;
|
|
29
|
+
/**
|
|
30
|
+
* Event fired when asset selection is changed.
|
|
31
|
+
* @param isSelected Indicates if asset is selected.
|
|
32
|
+
* @param asset Asset that is being changed.
|
|
33
|
+
*/
|
|
34
|
+
readonly onSelectionChange?: (isSelected: boolean, asset: AssetItem) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Event fired when folder is toggled.
|
|
37
|
+
* @param node Folder that is toggled.
|
|
38
|
+
* @param isExpanded Indicates if folder is expanded.
|
|
39
|
+
*/
|
|
40
|
+
readonly onFolderToggle: (node: AssetFolderTreeViewItem, isExpanded: boolean) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Event fired when folder is clicked.
|
|
43
|
+
* @param node Folder that is clicked.
|
|
44
|
+
*/
|
|
45
|
+
readonly onFolderClick: (node: AssetFolderTreeViewItem) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Event fired when assets are uploaded.
|
|
48
|
+
* @param files Assets to be uploaded.
|
|
49
|
+
*/
|
|
50
|
+
readonly onUpload: (files: FileList) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Event fired when asset in error state is closed.
|
|
53
|
+
* @param asset Asset that is being closed.
|
|
54
|
+
*/
|
|
55
|
+
readonly onErrorClose: (asset: AssetItem) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Event fired when library is changed.
|
|
58
|
+
* @param identifier Identifier of the library.
|
|
59
|
+
*/
|
|
60
|
+
readonly onLibraryChange: (identifier: number) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Loads next batch of assets.
|
|
63
|
+
*/
|
|
64
|
+
readonly onLoadNextPage: () => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates that there are more assets that can be loaded.
|
|
67
|
+
*/
|
|
68
|
+
readonly hasMoreAssetsToLoad: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Identifiers of selected assets.
|
|
71
|
+
*/
|
|
72
|
+
readonly selectedAssetIdentifiers: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Indicates if upload is in progress. Defaults to `false`.
|
|
75
|
+
*/
|
|
76
|
+
readonly uploadInProgress: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Selected library identifier.
|
|
79
|
+
*/
|
|
80
|
+
readonly selectedLibraryIdentifier: number;
|
|
81
|
+
/**
|
|
82
|
+
* File types which tile should accept
|
|
83
|
+
*/
|
|
84
|
+
readonly acceptFiles?: string;
|
|
85
|
+
}
|