@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.
Files changed (337) hide show
  1. package/dist/commands/CommandContext.d.ts +27 -0
  2. package/dist/commands/CommandProvider.d.ts +12 -0
  3. package/dist/commands/index.d.ts +3 -0
  4. package/dist/commands/useCommand.types.d.ts +36 -0
  5. package/dist/commands/useCommandInvoker.d.ts +11 -0
  6. package/dist/commands/usePageCommand.d.ts +11 -0
  7. package/dist/components/ActionList/ActionList.d.ts +2 -0
  8. package/dist/components/ActionList/ActionList.types.d.ts +5 -0
  9. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
  10. package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +32 -0
  11. package/dist/components/ViewMenuItem/ViewMenuItem.d.ts +5 -0
  12. package/dist/components/ViewMenuItem/ViewMenuItem.types.d.ts +16 -0
  13. package/dist/components/index.d.ts +6 -0
  14. package/dist/components/loader/Loader.d.ts +1 -0
  15. package/dist/components/page-loader/PageLoader.d.ts +5 -0
  16. package/dist/components/page-message-pane/PageMessagePane.d.ts +7 -0
  17. package/dist/components/portal/Portal.d.ts +8 -0
  18. package/dist/entry.d.ts +15 -0
  19. package/dist/entry.js +28 -0
  20. package/dist/forms/form/Form.d.ts +6 -0
  21. package/dist/forms/form/Form.types.d.ts +129 -0
  22. package/dist/forms/form/FormField.d.ts +5 -0
  23. package/dist/forms/form/FormField.types.d.ts +15 -0
  24. package/dist/forms/form/formCategory/FormCategory.d.ts +2 -0
  25. package/dist/forms/form/formCategory/FormCategory.types.d.ts +11 -0
  26. package/dist/forms/form/index.d.ts +4 -0
  27. package/dist/forms/form/utils/parseFormCategories.d.ts +2 -0
  28. package/dist/forms/form-components/FormComponent.types.d.ts +24 -0
  29. package/dist/forms/form-components/FormComponentLoader.d.ts +2 -0
  30. package/dist/forms/form-components/asset-selector-form-component/AssetSelectorDropTile.d.ts +1 -0
  31. package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.d.ts +5 -0
  32. package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.types.d.ts +11 -0
  33. package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +2 -0
  34. package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +2 -0
  35. package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +18 -0
  36. package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +5 -0
  37. package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +16 -0
  38. package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +2 -0
  39. package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +11 -0
  40. package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.d.ts +5 -0
  41. package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.types.d.ts +9 -0
  42. package/dist/forms/form-components/formComponentUtils.d.ts +5 -0
  43. package/dist/forms/form-components/index.d.ts +20 -0
  44. package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +2 -0
  45. package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +3 -0
  46. package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +2 -0
  47. package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.d.ts +5 -0
  48. package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.types.d.ts +23 -0
  49. package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.d.ts +2 -0
  50. package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.types.d.ts +9 -0
  51. package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +2 -0
  52. package/dist/forms/form-components/password-form-component/PasswordFormComponent.types.d.ts +14 -0
  53. package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.d.ts +2 -0
  54. package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.types.d.ts +15 -0
  55. package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +5 -0
  56. package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +6 -0
  57. package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.d.ts +10 -0
  58. package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.types.d.ts +10 -0
  59. package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.d.ts +2 -0
  60. package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.types.d.ts +3 -0
  61. package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/index.d.ts +2 -0
  62. package/dist/forms/form-components/rich-text-editor-form-component/plugins/index.d.ts +1 -0
  63. package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +2 -0
  64. package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +4 -0
  65. package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.d.ts +2 -0
  66. package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +2 -0
  67. package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.types.d.ts +5 -0
  68. package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponent.d.ts +7 -0
  69. package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponentProps.types.d.ts +43 -0
  70. package/dist/forms/hooks/FormComponentCommand.types.d.ts +7 -0
  71. package/dist/forms/hooks/FormComponentCommandUtils.d.ts +4 -0
  72. package/dist/forms/hooks/index.d.ts +4 -0
  73. package/dist/forms/hooks/useDisplayDialogInFullscreen.d.ts +1 -0
  74. package/dist/forms/hooks/useFormComponentCommand.d.ts +4 -0
  75. package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +4 -0
  76. package/dist/forms/hooks/useValidationRule.d.ts +2 -0
  77. package/dist/forms/index.d.ts +4 -0
  78. package/dist/forms/validation-rules/ValidationRule.types.d.ts +13 -0
  79. package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +2 -0
  80. package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +7 -0
  81. package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.d.ts +11 -0
  82. package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts +14 -0
  83. package/dist/forms/validation-rules/email-rule/EmailValidationRule.d.ts +9 -0
  84. package/dist/forms/validation-rules/email-rule/EmailValidationRule.types.d.ts +5 -0
  85. package/dist/forms/validation-rules/identifier-rule/IdentifierValidationRule.d.ts +8 -0
  86. package/dist/forms/validation-rules/index.d.ts +15 -0
  87. package/dist/forms/validation-rules/invalid-items-rule/InvalidItemsValidationRule.types.d.ts +4 -0
  88. package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.d.ts +9 -0
  89. package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.types.d.ts +4 -0
  90. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +3 -0
  91. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +4 -0
  92. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +3 -0
  93. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +4 -0
  94. package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.d.ts +4 -0
  95. package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.types.d.ts +3 -0
  96. package/dist/forms/validation-rules/required-value-rule/RequiredValueValidationRule.d.ts +2 -0
  97. package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +2 -0
  98. package/dist/hooks/index.d.ts +7 -0
  99. package/dist/hooks/useBlocker.d.ts +5 -0
  100. package/dist/hooks/useComponent.d.ts +2 -0
  101. package/dist/hooks/useFieldInfoObject.d.ts +2 -0
  102. package/dist/hooks/useInterval.d.ts +1 -0
  103. package/dist/hooks/useIsPathActive.d.ts +9 -0
  104. package/dist/hooks/useLoadDropdownOptions.d.ts +6 -0
  105. package/dist/hooks/useNotificationMessage.d.ts +9 -0
  106. package/dist/hooks/usePagePath.d.ts +5 -0
  107. package/dist/hooks/usePrompt.d.ts +5 -0
  108. package/dist/localization/Localization.types.d.ts +7 -0
  109. package/dist/localization/LocalizationContext.d.ts +4 -0
  110. package/dist/localization/LocalizationProvider.d.ts +2 -0
  111. package/dist/localization/index.d.ts +4 -0
  112. package/dist/notifications/NotificationsContext.d.ts +5 -0
  113. package/dist/notifications/NotificationsContext.types.d.ts +13 -0
  114. package/dist/notifications/index.d.ts +2 -0
  115. package/dist/providers/CustomRightSidebarProvider.d.ts +10 -0
  116. package/dist/providers/backgroundImageProvider.d.ts +11 -0
  117. package/dist/providers/index.d.ts +2 -0
  118. package/dist/shared-components/ActionButtons/ActionButton/ActionButton.d.ts +5 -0
  119. package/dist/shared-components/ActionButtons/ActionButton/ActionButton.types.d.ts +5 -0
  120. package/dist/shared-components/ActionButtons/ActionButton/index.d.ts +1 -0
  121. package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.d.ts +5 -0
  122. package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.types.d.ts +5 -0
  123. package/dist/shared-components/ActionButtons/ActionLink/index.d.ts +2 -0
  124. package/dist/shared-components/ActionButtons/index.d.ts +2 -0
  125. package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +3 -0
  126. package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +4 -0
  127. package/dist/shared-components/AppLinkButton/index.d.ts +2 -0
  128. package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.d.ts +3 -0
  129. package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.types.d.ts +50 -0
  130. package/dist/shared-components/Assets/AssetFolderTreeView/index.d.ts +2 -0
  131. package/dist/shared-components/Assets/AssetPanel/AssetPanel.d.ts +5 -0
  132. package/dist/shared-components/Assets/AssetPanel/AssetPanel.types.d.ts +70 -0
  133. package/dist/shared-components/Assets/AssetPanel/AssetPanelContext.d.ts +6 -0
  134. package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.d.ts +2 -0
  135. package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.types.d.ts +85 -0
  136. package/dist/shared-components/Assets/AssetPanelContent/index.d.ts +2 -0
  137. package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.d.ts +5 -0
  138. package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.types.d.ts +8 -0
  139. package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.d.ts +5 -0
  140. package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.types.d.ts +6 -0
  141. package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.d.ts +2 -0
  142. package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.types.d.ts +6 -0
  143. package/dist/shared-components/Assets/AssetsLoader/index.d.ts +2 -0
  144. package/dist/shared-components/Assets/hooks/index.d.ts +3 -0
  145. package/dist/shared-components/Assets/hooks/useAssetDataManager.d.ts +26 -0
  146. package/dist/shared-components/Assets/hooks/useAssetFolderManager.d.ts +13 -0
  147. package/dist/shared-components/Assets/hooks/useAssetFolderManager.types.d.ts +54 -0
  148. package/dist/shared-components/Assets/hooks/useAssetLibraryManager.d.ts +10 -0
  149. package/dist/shared-components/Assets/hooks/useAssetLibraryManager.types.d.ts +7 -0
  150. package/dist/shared-components/Assets/hooks/useAssetManager.d.ts +17 -0
  151. package/dist/shared-components/Assets/hooks/useAssetManager.types.d.ts +151 -0
  152. package/dist/shared-components/Assets/hooks/useAssetTilesColumnCount.d.ts +7 -0
  153. package/dist/shared-components/Assets/hooks/useAssetsInfiniteScroll.d.ts +9 -0
  154. package/dist/shared-components/Assets/index.d.ts +4 -0
  155. package/dist/shared-components/Assets/types/Assets.types.d.ts +10 -0
  156. package/dist/shared-components/Callout/Callout.d.ts +5 -0
  157. package/dist/shared-components/Callout/Callout.types.d.ts +22 -0
  158. package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +2 -0
  159. package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +33 -0
  160. package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +2 -0
  161. package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +2 -0
  162. package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +16 -0
  163. package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +2 -0
  164. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +5 -0
  165. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +4 -0
  166. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ErrorFallbackAlert.d.ts +3 -0
  167. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +5 -0
  168. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +5 -0
  169. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +5 -0
  170. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/index.d.ts +3 -0
  171. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ConditionOverviewModuleLoader.d.ts +7 -0
  172. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +2 -0
  173. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterSimpleOverview.d.ts +5 -0
  174. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +5 -0
  175. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +4 -0
  176. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/index.d.ts +2 -0
  177. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +6 -0
  178. package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +2 -0
  179. package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +24 -0
  180. package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +2 -0
  181. package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +5 -0
  182. package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +9 -0
  183. package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +2 -0
  184. package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +2 -0
  185. package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +7 -0
  186. package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +2 -0
  187. package/dist/shared-components/ConditionBuilder/Operators.d.ts +4 -0
  188. package/dist/shared-components/ConditionBuilder/Types/Constants.d.ts +1 -0
  189. package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +2 -0
  190. package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +2 -0
  191. package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +2 -0
  192. package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +2 -0
  193. package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +2 -0
  194. package/dist/shared-components/ConditionBuilder/utils/index.d.ts +8 -0
  195. package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +2 -0
  196. package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +2 -0
  197. package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +6 -0
  198. package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.d.ts +5 -0
  199. package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.types.d.ts +27 -0
  200. package/dist/shared-components/ConfirmationDialog/index.d.ts +2 -0
  201. package/dist/shared-components/OverviewCard/OverviewCard.d.ts +3 -0
  202. package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +16 -0
  203. package/dist/shared-components/OverviewCard/card-components/OverviewCardComponentLoader.d.ts +2 -0
  204. package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.d.ts +2 -0
  205. package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.types.d.ts +3 -0
  206. package/dist/shared-components/OverviewCard/card-components/index.d.ts +1 -0
  207. package/dist/shared-components/OverviewCard/index.d.ts +3 -0
  208. package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +3 -0
  209. package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +4 -0
  210. package/dist/shared-components/OverviewCardGroup/index.d.ts +2 -0
  211. package/dist/shared-components/StickyHeader/StickyHeader.d.ts +2 -0
  212. package/dist/shared-components/StickyHeader/StickyHeader.types.d.ts +4 -0
  213. package/dist/shared-components/StickyHeader/index.d.ts +2 -0
  214. package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.d.ts +5 -0
  215. package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.types.d.ts +3 -0
  216. package/dist/shared-components/Textarea/TextareaActionButtons/Base/index.d.ts +2 -0
  217. package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.d.ts +5 -0
  218. package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.types.d.ts +4 -0
  219. package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/index.d.ts +2 -0
  220. package/dist/shared-components/Textarea/index.d.ts +2 -0
  221. package/dist/shared-components/index.d.ts +15 -0
  222. package/dist/template-components/builder/PropertiesDialog.d.ts +2 -0
  223. package/dist/template-components/builder/PropertiesDialog.types.d.ts +40 -0
  224. package/dist/template-components/builder/PropertiesDialogContext.d.ts +3 -0
  225. package/dist/template-components/builder/PropertiesDialogContext.types.d.ts +23 -0
  226. package/dist/template-components/builder/index.d.ts +5 -0
  227. package/dist/template-components/builder/utils/keysToCamelCase.d.ts +6 -0
  228. package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.d.ts +2 -0
  229. package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.types.d.ts +5 -0
  230. package/dist/template-components/content-with-sidebar-layout-wrapper/index.d.ts +2 -0
  231. package/dist/template-components/dialog/TemplateDialog.d.ts +2 -0
  232. package/dist/template-components/dialog/TemplateDialog.types.d.ts +8 -0
  233. package/dist/template-components/dialog/TemplateDialogContext.d.ts +3 -0
  234. package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +44 -0
  235. package/dist/template-components/index.d.ts +7 -0
  236. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +3 -0
  237. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +7 -0
  238. package/dist/template-components/secondary-menu/SecondaryMenu.d.ts +5 -0
  239. package/dist/template-components/secondary-menu/SecondaryMenuCell.d.ts +7 -0
  240. package/dist/template-components/secondary-menu/SecondaryMenuHeadline.d.ts +9 -0
  241. package/dist/template-components/secondary-menu/SecondaryMenuWrapper.d.ts +10 -0
  242. package/dist/template-components/side-menu/TemplateSideMenu.d.ts +1 -0
  243. package/dist/template-components/side-menu/side-menu-item/SideMenuItem.d.ts +2 -0
  244. package/dist/template-components/side-menu/side-menu-item/SideMenuItem.types.d.ts +4 -0
  245. package/dist/template-components/side-panel/TemplateSidePanel.d.ts +2 -0
  246. package/dist/template-components/side-panel/TemplateSidePanel.types.d.ts +8 -0
  247. package/dist/template-components/side-panel/TemplateSidePanelContext.d.ts +3 -0
  248. package/dist/template-components/side-panel/TemplateSidePanelContext.types.d.ts +32 -0
  249. package/dist/template-components/template-loader/TemplateLoader.d.ts +5 -0
  250. package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +13 -0
  251. package/dist/template-properties/TemplateProperties.types.d.ts +40 -0
  252. package/dist/template-properties/TemplatePropertiesProvider.d.ts +9 -0
  253. package/dist/template-properties/index.d.ts +2 -0
  254. package/dist/templates/app/App.types.d.ts +25 -0
  255. package/dist/templates/app/AppTemplate.d.ts +3 -0
  256. package/dist/templates/app/application-menu/ApplicationMenu.d.ts +4 -0
  257. package/dist/templates/app/application-menu/ApplicationMenu.types.d.ts +5 -0
  258. package/dist/templates/app/application-menu/application-list/ApplicationList.d.ts +4 -0
  259. package/dist/templates/app/application-menu/application-list/ApplicationList.types.d.ts +31 -0
  260. package/dist/templates/app/application-menu/application-list/ApplicationListGroup.d.ts +4 -0
  261. package/dist/templates/app/application-menu/application-list/ApplicationListItem.d.ts +4 -0
  262. package/dist/templates/app/application-menu/application-list/index.d.ts +1 -0
  263. package/dist/templates/app/application-menu/application-list/utils.d.ts +10 -0
  264. package/dist/templates/app/application-menu/index.d.ts +1 -0
  265. package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.d.ts +4 -0
  266. package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.types.d.ts +5 -0
  267. package/dist/templates/app/application-menu-mobile/index.d.ts +1 -0
  268. package/dist/templates/app/avatar/Avatar.d.ts +13 -0
  269. package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +4 -0
  270. package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +19 -0
  271. package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +4 -0
  272. package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +2 -0
  273. package/dist/templates/app/breadcrumbs/index.d.ts +2 -0
  274. package/dist/templates/app/main/Main.d.ts +6 -0
  275. package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigation.types.d.ts +11 -0
  276. package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationContext.d.ts +4 -0
  277. package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationProvider.d.ts +2 -0
  278. package/dist/templates/app/secondary-menu-navigation/index.d.ts +2 -0
  279. package/dist/templates/app/siteselector/SiteSelector.d.ts +4 -0
  280. package/dist/templates/app/siteselector/SiteSelector.types.d.ts +27 -0
  281. package/dist/templates/app/small-status-bar/Cell.d.ts +9 -0
  282. package/dist/templates/app/small-status-bar/SmallStatusBar.d.ts +5 -0
  283. package/dist/templates/app/small-status-bar/index.d.ts +1 -0
  284. package/dist/templates/app/status-bar/StatusBar.d.ts +9 -0
  285. package/dist/templates/app/status-bar/index.d.ts +1 -0
  286. package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +2 -0
  287. package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +7 -0
  288. package/dist/templates/dashboard/Dashboard.types.d.ts +4 -0
  289. package/dist/templates/dashboard/DashboardTemplate.d.ts +2 -0
  290. package/dist/templates/edit/EditSectionTemplate.d.ts +2 -0
  291. package/dist/templates/edit/EditSectionTemplate.types.d.ts +17 -0
  292. package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +2 -0
  293. package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +4 -0
  294. package/dist/templates/field-editor/FieldEditorForm.d.ts +5 -0
  295. package/dist/templates/field-editor/FieldEditorForm.types.d.ts +11 -0
  296. package/dist/templates/field-editor/FieldEditorTemplate.d.ts +14 -0
  297. package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +83 -0
  298. package/dist/templates/index.d.ts +13 -0
  299. package/dist/templates/listing/Listing.types.d.ts +25 -0
  300. package/dist/templates/listing/ListingTemplate.d.ts +2 -0
  301. package/dist/templates/no-license/NoLicenseTemplate.d.ts +2 -0
  302. package/dist/templates/no-license/NoLicenseTemplate.types.d.ts +8 -0
  303. package/dist/templates/overview/OverviewTemplate.d.ts +2 -0
  304. package/dist/templates/overview/OverviewTemplate.types.d.ts +31 -0
  305. package/dist/templates/secondary-menu-layout/SecondaryMenuLayout.d.ts +1 -0
  306. package/dist/templates/secondary-menu-layout/SecondaryMenuLayoutTemplate.d.ts +1 -0
  307. package/dist/templates/secondary-menu-layout/index.d.ts +1 -0
  308. package/dist/templates/settings/context/SettingsContext.d.ts +4 -0
  309. package/dist/templates/settings/context/SettingsContext.types.d.ts +11 -0
  310. package/dist/templates/settings/context/SettingsContextProvider.d.ts +12 -0
  311. package/dist/templates/settings/detail/SettingsBreadcrumbs.d.ts +2 -0
  312. package/dist/templates/settings/detail/SettingsDetails.types.d.ts +24 -0
  313. package/dist/templates/settings/detail/SettingsDetailsTemplate.d.ts +2 -0
  314. package/dist/templates/settings/detail/SettingsNoResultPage.d.ts +2 -0
  315. package/dist/templates/settings/detail/SettingsNoResultPage.types.d.ts +4 -0
  316. package/dist/templates/settings/detail/SettingsSearchTemplate.d.ts +2 -0
  317. package/dist/templates/settings/index.d.ts +3 -0
  318. package/dist/templates/settings/layout/NodeComponent.d.ts +2 -0
  319. package/dist/templates/settings/layout/NodeComponentProps.d.ts +6 -0
  320. package/dist/templates/settings/layout/SettingsLayout.types.d.ts +9 -0
  321. package/dist/templates/settings/layout/SettingsLayoutTemplate.d.ts +2 -0
  322. package/dist/templates/settings/layout/SettingsSearchRowComponent.d.ts +1 -0
  323. package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +1 -0
  324. package/dist/types/Action.types.d.ts +15 -0
  325. package/dist/types/NotificationMessage.types.d.ts +11 -0
  326. package/dist/types/index.d.ts +4 -0
  327. package/dist/utils/authentication/logonUrlProvider.d.ts +10 -0
  328. package/dist/utils/basePathUtils.d.ts +8 -0
  329. package/dist/utils/constants.d.ts +5 -0
  330. package/dist/utils/formatString.d.ts +1 -0
  331. package/dist/utils/index.d.ts +4 -0
  332. package/dist/utils/loadModule.d.ts +9 -0
  333. package/dist/utils/pathUtils/index.d.ts +1 -0
  334. package/dist/utils/pathUtils/pathUtils.d.ts +9 -0
  335. package/dist/utils/postToAdmin.d.ts +21 -0
  336. package/dist/utils/responseStatusActions.d.ts +15 -0
  337. package/package.json +89 -0
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { FormProps, FormRef } from './Form.types';
3
+ /**
4
+ * Represents component displaying form with defined fields.
5
+ */
6
+ export declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<FormRef>>;
@@ -0,0 +1,129 @@
1
+ import { UITestProps } from '@kentico/xperience-admin-components';
2
+ import React from 'react';
3
+ import { FormComponentProps } from '../form-components/FormComponent.types';
4
+ import { FormCategoryProps } from './formCategory/FormCategory.types';
5
+ /**
6
+ * Form reference exposing Form functions.
7
+ */
8
+ export declare type FormRef = {
9
+ /**
10
+ * Submits the entire form.
11
+ */
12
+ submit: (action?: string) => void;
13
+ /**
14
+ * Resets data changed flag after successfull form submission.
15
+ */
16
+ resetDataChanged: () => void;
17
+ } | null;
18
+ /**
19
+ * Defines a form context type.
20
+ */
21
+ export interface FormStatus {
22
+ /**
23
+ * Represents form name.
24
+ */
25
+ readonly name: string;
26
+ /**
27
+ * Indicates whether any form data has been changed.
28
+ * Form submission resets value to true.
29
+ */
30
+ readonly dataChanged?: boolean;
31
+ }
32
+ /**
33
+ * Name of the form the components are rendered within.
34
+ */
35
+ export declare const FormContext: React.Context<FormStatus>;
36
+ /**
37
+ * Array of form components and their categories.
38
+ */
39
+ export declare type FormItems = Array<FormComponentProps | FormCategoryProps>;
40
+ /**
41
+ * Form category with its form components.
42
+ */
43
+ export interface CategoryWithComponents {
44
+ readonly category: FormCategoryProps | null;
45
+ readonly components: FormComponentProps[];
46
+ }
47
+ /**
48
+ * Properties for Form cmponent.
49
+ */
50
+ export interface FormProps extends UITestProps {
51
+ /**
52
+ * Form component has no button rendered, define the children to display submitting component.
53
+ */
54
+ readonly children?: React.ReactNode;
55
+ /**
56
+ * Collection of form items which will be displayed inside the form.
57
+ */
58
+ readonly items: FormItems;
59
+ /**
60
+ * Name of the form.
61
+ */
62
+ readonly name?: string;
63
+ /**
64
+ * Determines whether the form is read only.
65
+ */
66
+ readonly readOnly?: boolean;
67
+ /**
68
+ * Allows to specify CSS class of the field block.
69
+ */
70
+ readonly fieldCssClass?: string;
71
+ /**
72
+ * Function for form value change monitoring.
73
+ */
74
+ readonly onChange?: (e: ChangeEventHandler) => void;
75
+ /**
76
+ * Function for a valid form value change monitoring.
77
+ * Raised only when a changed form component value passes all validation rules
78
+ * or when the form component does not have any validation rule registered.
79
+ */
80
+ readonly onValidChange?: (e: ChangeEventHandler) => void;
81
+ /**
82
+ * Submit function used to submit form data.
83
+ */
84
+ readonly onSubmit?: (e: SubmitEventHandler, action?: string) => void;
85
+ }
86
+ export interface ChangeEventHandler {
87
+ readonly changedField: {
88
+ name: string;
89
+ hasDependencies: boolean;
90
+ };
91
+ readonly values: {
92
+ [fieldName: string]: any;
93
+ };
94
+ }
95
+ export interface SubmitEventHandler {
96
+ readonly values: {
97
+ [fieldName: string]: any;
98
+ };
99
+ }
100
+ /**
101
+ * Represents result of form submission.
102
+ */
103
+ export interface FormSubmissionResult {
104
+ /**
105
+ * Collection of form items and categories which will be displayed inside the form.
106
+ */
107
+ readonly items: FormItems;
108
+ /**
109
+ * Status of the form submission and validation process.
110
+ */
111
+ readonly status: FormSubmissionStatus;
112
+ }
113
+ /**
114
+ * Indicates the state of the form submission and validation result.
115
+ */
116
+ export declare enum FormSubmissionStatus {
117
+ /**
118
+ * Error during the form submission.
119
+ */
120
+ Error = "error",
121
+ /**
122
+ * Form validation failed.
123
+ */
124
+ ValidationFailure = "validationFailure",
125
+ /**
126
+ * Submission and validation successful.
127
+ */
128
+ ValidationSuccess = "validationSuccess"
129
+ }
@@ -0,0 +1,5 @@
1
+ import { FormFieldProps } from './FormField.types';
2
+ /**
3
+ * Represent one particular field displayed in Form component.
4
+ */
5
+ export declare const FormField: ({ ...props }: FormFieldProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { FieldInfo, FormComponentProps } from '../form-components/FormComponent.types';
3
+ import { ValidationResult } from '../validation-rules/ValidationRule.types';
4
+ /**
5
+ * General propoerties for FormField component.
6
+ */
7
+ export interface FormFieldProps extends FormComponentProps {
8
+ readonly fieldCssClass?: string;
9
+ readonly onValidated?: (invalidValidationResults: ValidationResult[]) => void;
10
+ readonly onValidChange?: () => void;
11
+ }
12
+ /**
13
+ * The form field in which components are rendered.
14
+ */
15
+ export declare const FormFieldContext: React.Context<FieldInfo>;
@@ -0,0 +1,2 @@
1
+ import { FormCategoryComponentProps } from './FormCategory.types';
2
+ export declare const FormCategory: ({ category, children, }: FormCategoryComponentProps) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface FormCategoryProps {
3
+ readonly title: string;
4
+ readonly collapsible?: boolean;
5
+ readonly isCollapsed?: boolean;
6
+ readonly tooltip?: string;
7
+ }
8
+ export interface FormCategoryComponentProps {
9
+ readonly category?: FormCategoryProps | null;
10
+ readonly children: React.ReactNode;
11
+ }
@@ -0,0 +1,4 @@
1
+ export * from './Form';
2
+ export * from './Form.types';
3
+ export { FormFieldContext } from './FormField.types';
4
+ export type { FormCategoryProps } from './formCategory/FormCategory.types';
@@ -0,0 +1,2 @@
1
+ import { CategoryWithComponents, FormItems } from '../../index';
2
+ export declare const parseFormCategories: (components: FormItems) => CategoryWithComponents[];
@@ -0,0 +1,24 @@
1
+ import { ValidationRuleProps } from '../validation-rules/ValidationRule.types';
2
+ export declare type OnChangeValueType = any;
3
+ export declare type FieldInfoValueType = Record<string, any>;
4
+ export interface FieldInfo {
5
+ readonly name: string;
6
+ readonly fieldValues: FieldInfoValueType;
7
+ }
8
+ export interface FormComponentProps extends FieldInfo {
9
+ readonly componentName: string;
10
+ readonly hasDependencies: boolean;
11
+ readonly label?: string;
12
+ readonly statusText?: string;
13
+ readonly explanationText?: string;
14
+ readonly tooltip?: string;
15
+ readonly readOnly?: boolean;
16
+ readonly value?: any;
17
+ readonly invalid?: boolean;
18
+ readonly validationMessage?: string;
19
+ readonly validationRules?: ValidationRuleProps[];
20
+ readonly onChange?: (value: OnChangeValueType) => void;
21
+ readonly required?: boolean;
22
+ readonly disabledMessage?: string;
23
+ readonly guid: string;
24
+ }
@@ -0,0 +1,2 @@
1
+ import { FormComponentProps } from './FormComponent.types';
2
+ export declare const FormComponentLoader: (props: FormComponentProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const AssetSelectorDropTile: () => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { AssetSelectorFormComponentProps } from './AssetSelectorFormComponent.types';
2
+ /**
3
+ * Form component capable of selecting multiple assets from AssetSelector component.
4
+ */
5
+ export declare const AssetSelectorFormComponent: (props: AssetSelectorFormComponentProps) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { AssetTile } from '../../../shared-components/Assets';
2
+ import { FormComponentProps } from '../FormComponent.types';
3
+ /**
4
+ * Properties for AssetSelectorFormComponent component.
5
+ */
6
+ export interface AssetSelectorFormComponentProps extends FormComponentProps {
7
+ readonly siteIdentifier: number;
8
+ readonly maximumAssets: number;
9
+ readonly allowedExtensions?: string;
10
+ readonly assets: AssetTile[];
11
+ }
@@ -0,0 +1,2 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export declare const CheckboxFormComponent: (props: FormComponentProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ConditionBuilderFormComponentProps } from './ConditionBuilderFormComponent.types';
2
+ export declare const ConditionBuilderFormComponent: ({ initialConfiguration, availableMacroRules, availableMacroRuleConfigurations, onChange, label, disabledMessage, invalid, validationMessage, readOnly, required, explanationText, tooltip, ...props }: ConditionBuilderFormComponentProps) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ import { ConditionBuilderProps } from '../../../shared-components/ConditionBuilder/ConditionBuilder';
3
+ import { FormSubmissionStatus } from '../..';
4
+ export interface ConditionBuilderFormComponentProps extends FormComponentProps, Omit<ConditionBuilderProps, 'onChange'> {
5
+ }
6
+ /**
7
+ * Represents result of form submission.
8
+ */
9
+ export interface GetMacroCommandSubmissionResult {
10
+ /**
11
+ * Status of the form submission and validation process.
12
+ */
13
+ readonly status: FormSubmissionStatus;
14
+ /**
15
+ * Status of the form submission and validation process.
16
+ */
17
+ readonly result?: string;
18
+ }
@@ -0,0 +1,5 @@
1
+ import { SingleObjectSelectorFormComponentProps } from './SingleObjectSelectorFormComponentProps.types';
2
+ export declare const SingleObjectSelectorFormComponent: {
3
+ ({ objectType, textColumnName, valueColumnName, fieldValues, name, ...props }: SingleObjectSelectorFormComponentProps): JSX.Element;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,16 @@
1
+ import { DropDownOption } from '../../dropdown-form-component/DropDownFormComponentProps.types';
2
+ import { FormComponentProps } from '../../FormComponent.types';
3
+ export interface SingleObjectSelectorFormComponentProps extends FormComponentProps {
4
+ readonly objectType: string;
5
+ readonly textColumnName: string;
6
+ readonly valueColumnName: string;
7
+ readonly placeholder?: string;
8
+ }
9
+ export interface LoadOptionsCommandArguments {
10
+ readonly options: DropDownOption[];
11
+ }
12
+ export interface LoadOptionsCommandResult {
13
+ readonly objectType: string;
14
+ readonly textColumnName: string;
15
+ readonly valueColumnName: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ import { DropDownFormComponentProps } from './DropDownFormComponentProps.types';
2
+ export declare const DropdownSelectorFormComponent: ({ value, label, readOnly, placeholder, name, invalid, required, disabledMessage, tooltip, explanationText, validationMessage, options, maxContentHeight, onChange }: DropDownFormComponentProps) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { UITestProps } from '@kentico/xperience-admin-components';
2
+ import { FormComponentProps } from '../FormComponent.types';
3
+ export interface DropDownFormComponentProps extends FormComponentProps, UITestProps {
4
+ readonly options: DropDownOption[];
5
+ readonly placeholder?: string;
6
+ readonly maxContentHeight?: string;
7
+ }
8
+ export interface DropDownOption {
9
+ readonly value: string;
10
+ readonly text: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { ExtensionSelectorProps } from './ExtensionSelectorFormComponent.types';
2
+ /**
3
+ * Form component used to set allowed extensions.
4
+ */
5
+ export declare const ExtensionSelectorFormComponent: ({ allowedExtensions, inheritSystemSettings, settingsAllowedExtensions, ...props }: ExtensionSelectorProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ /**
3
+ * Properties for ExtensionSelectorFormComponent.
4
+ */
5
+ export interface ExtensionSelectorProps extends FormComponentProps {
6
+ readonly allowedExtensions?: string;
7
+ readonly settingsAllowedExtensions: string;
8
+ readonly inheritSystemSettings: boolean;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { IconName } from '@kentico/xperience-admin-components';
2
+ /**
3
+ * Returns form component label icon only if tooltip text is defined
4
+ */
5
+ export declare const getFormLabelIcon: (toolTipText: string | undefined) => IconName | undefined;
@@ -0,0 +1,20 @@
1
+ export * from './FormComponent.types';
2
+ export * from './checkbox-form-component/CheckboxFormComponent';
3
+ export * from './namespace-code-name-form-component/NamespaceCodeNameFormComponent';
4
+ export * from './condition-builder-form-component/ConditionBuilderFormComponent';
5
+ export * from './dropdown-form-component/DropDownFormComponent';
6
+ export * from './dropdown-form-component/DropDownFormComponentProps.types';
7
+ export * from './number-input-form-component/NumberInputFormComponent';
8
+ export * from './password-form-component/PasswordFormComponent';
9
+ export * from './radio-group-form-component/RadioGroupFormComponent';
10
+ export * from './rich-text-editor-form-component/RichTextEditorFormComponent';
11
+ export * from './rich-text-editor-form-component/plugins';
12
+ export * from './text-input-form-component/TextInputFormComponent';
13
+ export * from './text-input-form-component/TextInputFormComponentProps.types';
14
+ export * from './textarea-form-component/TextAreaFormComponent';
15
+ export * from './condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent';
16
+ export * from './asset-selector-form-component/AssetSelectorFormComponent';
17
+ export * from './extension-selector-form-component/ExtensionSelectorFormComponent';
18
+ export * from './validation-rule-list-form-component/ValidationRuleListFormComponent';
19
+ export * from './text-with-label-form-component/TextWithLabelFormComponent';
20
+ export * from './object-selector-form-component/ObjectSelectorFormComponent';
@@ -0,0 +1,2 @@
1
+ import { NamespaceCodeNameProps } from './NamespaceCodeNameFormComponent.types';
2
+ export declare const NamespaceCodeNameFormComponent: (props: NamespaceCodeNameProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { FormComponentProps } from '..';
2
+ export interface NamespaceCodeNameProps extends FormComponentProps {
3
+ }
@@ -0,0 +1,2 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export declare const NumberInputFormComponent: (props: FormComponentProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ObjectSelectorProps } from './ObjectSelectorFormComponent.types';
2
+ export declare const ObjectSelectorFormComponent: {
3
+ ({ selectedObjects, maximumItems, placeholder, readOnly, invalid, required, label, statusText, explanationText, validationMessage, onChange, ...props }: ObjectSelectorProps): JSX.Element;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,23 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export interface ObjectSelectorProps extends FormComponentProps {
3
+ readonly maximumItems: number;
4
+ readonly placeholder?: string;
5
+ readonly selectedObjects: ObjectSelectorSelectionItem[];
6
+ }
7
+ export interface LoadObjectsArguments {
8
+ readonly searchTerm: string;
9
+ readonly pageIndex: number;
10
+ }
11
+ export interface LoadObjectsCommandResult {
12
+ readonly objects: ObjectSelectorSelectionItem[];
13
+ readonly nextPageAvailable: boolean;
14
+ }
15
+ export interface ObjectSelectorItem {
16
+ readonly objectCodeName: string;
17
+ readonly objectGuid: string;
18
+ }
19
+ export interface ObjectSelectorSelectionItem {
20
+ readonly value: ObjectSelectorItem;
21
+ readonly text: string;
22
+ readonly isValid: boolean;
23
+ }
@@ -0,0 +1,2 @@
1
+ import { AsyncDropDownProps } from './AsyncDropDownSelector.types';
2
+ export declare const AsyncDropDownSelector: (props: AsyncDropDownProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { GroupBase } from 'react-select';
2
+ import { AsyncPaginateProps } from 'react-select-async-paginate';
3
+ export interface Option {
4
+ readonly value: string;
5
+ readonly label: string;
6
+ readonly isValid: boolean;
7
+ }
8
+ export interface AsyncDropDownProps extends AsyncPaginateProps<Option, GroupBase<Option>, unknown, boolean> {
9
+ }
@@ -0,0 +1,2 @@
1
+ import { PasswordProps } from './PasswordFormComponent.types';
2
+ export declare const PasswordFormComponent: ({ requiredLength, requireLowercase, requireUppercase, requiredUniqueChars, requireDigit, requireNonAlphanumeric, ignorePasswordPolicy, ...props }: PasswordProps) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { FormComponentProps } from '..';
2
+ /**
3
+ * Properties for PasswordFormComponent.
4
+ * Represents the valid password policy.
5
+ */
6
+ export interface PasswordProps extends FormComponentProps {
7
+ readonly requireDigit?: boolean;
8
+ readonly requiredLength?: number;
9
+ readonly requiredUniqueChars?: number;
10
+ readonly requireUppercase?: boolean;
11
+ readonly requireLowercase?: boolean;
12
+ readonly requireNonAlphanumeric?: boolean;
13
+ readonly ignorePasswordPolicy: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ import { RadioGroupProps } from './RadioGroupFormComponent.types';
2
+ export declare const RadioGroupFormComponent: (props: RadioGroupProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ /**
3
+ * Properties for RadioGroupFormComponent.
4
+ */
5
+ export interface RadioGroupProps extends FormComponentProps {
6
+ readonly options: RadioButtonProps[];
7
+ readonly inline: boolean;
8
+ }
9
+ export interface RadioButtonProps {
10
+ readonly value: string;
11
+ readonly label: string;
12
+ readonly caption?: string;
13
+ readonly disabled?: boolean;
14
+ readonly alert?: boolean;
15
+ }
@@ -0,0 +1,5 @@
1
+ import { RichTextEditorFormComponentProps } from './RichTextEditorFormComponentProps.types';
2
+ /**
3
+ * Form component capable of selecting assets from AssetsSelector component.
4
+ */
5
+ export declare const RichTextEditorFormComponent: ({ label, placeholder, tooltipTextOnDisabled, configuration, value, onChange, invalid, validationMessage, readOnly, required, disabledMessage, tooltip, explanationText, guid, ...props }: RichTextEditorFormComponentProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export interface RichTextEditorFormComponentProps extends FormComponentProps {
3
+ readonly placeholder?: string;
4
+ readonly tooltipTextOnDisabled?: string;
5
+ readonly configuration?: string;
6
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { AssetLibrary } from '../../../../shared-components/Assets/types/Assets.types';
3
+ import { AssetPanelRef } from '../../../../shared-components/Assets/AssetPanel/AssetPanel.types';
4
+ import { FieldInfo } from '../../../../forms';
5
+ export declare const useAssetPanel: (fieldInfo: FieldInfo) => {
6
+ onLibrariesLoad: (libraries: AssetLibrary[]) => void;
7
+ assetPanelEnabled: boolean;
8
+ imageExtensions: string;
9
+ assetPanelRef: React.RefObject<AssetPanelRef>;
10
+ };
@@ -0,0 +1,10 @@
1
+ export interface GetAssetPluginButtonStatusResult {
2
+ /**
3
+ * Indicates whether asset plugin button should be enabled.
4
+ */
5
+ readonly enabled: boolean;
6
+ /**
7
+ * List of allowed image extensions.
8
+ */
9
+ readonly imageExtensions: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ import { AssetRichTextEditorPluginProps } from './AssetRichTextEditorPlugin.types';
2
+ export declare const AssetRichTextEditorPlugin: ({ editorRef, editorConfigurator }: AssetRichTextEditorPluginProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { RichTextEditorPluginProps } from '@kentico/xperience-admin-components';
2
+ export interface AssetRichTextEditorPluginProps extends RichTextEditorPluginProps {
3
+ }
@@ -0,0 +1,2 @@
1
+ export * from './AssetRichTextEditorPlugin';
2
+ export * from './AssetRichTextEditorPlugin.types';
@@ -0,0 +1,2 @@
1
+ import { TextInputFormComponentProps } from './TextInputFormComponentProps.types';
2
+ export declare const TextInputFormComponent: (props: TextInputFormComponentProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export interface TextInputFormComponentProps extends FormComponentProps {
3
+ readonly watermarkText?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export declare const TextWithLabelFormComponent: (props: FormComponentProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { TextAreaFormComponentProps } from './TextAreaFormComponent.types';
2
+ export declare const TextAreaFormComponent: (props: TextAreaFormComponentProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ export interface TextAreaFormComponentProps extends FormComponentProps {
3
+ readonly copyButtonVisible?: boolean;
4
+ readonly watermarkText?: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ValidationRuleListFormComponentProps } from './ValidationRuleListFormComponentProps.types';
2
+ /**
3
+ * Form component to display and edit validation rules of field in field editor.
4
+ * The component is meant to be used with the field editor so it correctly displays rules
5
+ * based on the selected component in the editor.
6
+ */
7
+ export declare const ValidationRuleListFormComponent: ({ onChange, ruleDefinitions, ...props }: ValidationRuleListFormComponentProps) => JSX.Element;
@@ -0,0 +1,43 @@
1
+ import { FormComponentProps } from '../FormComponent.types';
2
+ /**
3
+ * Form component properties for ValidationRulesFormComponent
4
+ */
5
+ export interface ValidationRuleListFormComponentProps extends FormComponentProps {
6
+ readonly ruleDefinitions: ValidationRuleDefinition[];
7
+ readonly rulesDescriptions: Record<string, string>;
8
+ }
9
+ /**
10
+ * Validation rule metadata.
11
+ */
12
+ export interface ValidationRuleDefinition {
13
+ readonly identifier: string;
14
+ readonly name: string;
15
+ readonly description: string;
16
+ readonly componentsProperties: FormComponentProps[];
17
+ }
18
+ /**
19
+ * Carries values of configured validation rules.
20
+ */
21
+ export interface ValidationConfiguration {
22
+ readonly identifier: string;
23
+ readonly validationRuleIdentifier: string;
24
+ readonly ruleValues: Record<string, any>;
25
+ }
26
+ /**
27
+ * Arguments for the CreateValidationRule page command.
28
+ */
29
+ export interface CreateValidationRuleArgs {
30
+ identifier: string;
31
+ formData: {
32
+ [fieldName: string]: any;
33
+ };
34
+ }
35
+ /**
36
+ * Result of the CreateValidationRule page command.
37
+ */
38
+ export interface CreateValidationRuleResult {
39
+ rule: ValidationConfiguration;
40
+ description: string;
41
+ isValid: boolean;
42
+ componentsProperties: FormComponentProps[];
43
+ }
@@ -0,0 +1,7 @@
1
+ export interface FormComponentCommandModel {
2
+ formName: string;
3
+ fieldValues: Record<string, any>;
4
+ fieldName: string;
5
+ commandName: string;
6
+ commandData?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { FieldInfo } from '../form-components/FormComponent.types';
2
+ import { FormComponentCommandModel } from './FormComponentCommand.types';
3
+ export declare const componentCommandName = "ComponentCommand";
4
+ export declare const prepareFormComponentCommandPayload: <TData = unknown>(formName: string, fieldInfo: FieldInfo, commandName: string, data?: TData | undefined) => FormComponentCommandModel;
@@ -0,0 +1,4 @@
1
+ export * from './useFormComponentCommand';
2
+ export * from './useFormComponentCommandProvider';
3
+ export * from './useValidationRule';
4
+ export * from './useDisplayDialogInFullscreen';
@@ -0,0 +1 @@
1
+ export declare const useDisplayDialogInFullscreen: (screenWidthBreakpoint?: number | undefined, screenHeightBreakpoint?: number | undefined) => boolean;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { Command, UseCommandConfig } from '../../commands';
3
+ import { FieldInfo } from '../form-components/FormComponent.types';
4
+ export declare const useFormComponentCommand: <TCommandResult, TCommandData = void>(fieldInfo: FieldInfo, commandName: string, config?: UseCommandConfig<TCommandResult, TCommandData> | undefined, dependencies?: React.DependencyList | undefined) => Command<TCommandData>;
@@ -0,0 +1,4 @@
1
+ import { FieldInfo } from '../form-components';
2
+ export declare const useFormComponentCommandProvider: () => {
3
+ executeCommand: <TCommandResult = void, TData = void>(fieldInfo: FieldInfo, name: string, data?: TData | undefined, files?: FileList | undefined) => Promise<TCommandResult | undefined>;
4
+ };