@alfresco/adf-core 8.3.0 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/api/lib/adf-http-client.service.d.ts +3 -9
  2. package/app.config.schema.json +4 -3
  3. package/auth/authentication-interceptor/authentication.interceptor.d.ts +1 -3
  4. package/breadcrumbs/components/breadcrumb/breadcrumb.component.d.ts +2 -3
  5. package/breadcrumbs/directives/breadcrumb-focus.directive.d.ts +1 -19
  6. package/bundles/assets/adf-core/i18n/ar.json +0 -5
  7. package/bundles/assets/adf-core/i18n/cs.json +0 -5
  8. package/bundles/assets/adf-core/i18n/da.json +0 -5
  9. package/bundles/assets/adf-core/i18n/de.json +30 -13
  10. package/bundles/assets/adf-core/i18n/en.json +34 -17
  11. package/bundles/assets/adf-core/i18n/es.json +30 -13
  12. package/bundles/assets/adf-core/i18n/fi.json +0 -5
  13. package/bundles/assets/adf-core/i18n/fr.json +30 -13
  14. package/bundles/assets/adf-core/i18n/it.json +30 -13
  15. package/bundles/assets/adf-core/i18n/ja.json +0 -5
  16. package/bundles/assets/adf-core/i18n/nb.json +0 -5
  17. package/bundles/assets/adf-core/i18n/nl.json +0 -5
  18. package/bundles/assets/adf-core/i18n/pl.json +30 -13
  19. package/bundles/assets/adf-core/i18n/pt-BR.json +0 -5
  20. package/bundles/assets/adf-core/i18n/pt.json +30 -13
  21. package/bundles/assets/adf-core/i18n/ru.json +0 -5
  22. package/bundles/assets/adf-core/i18n/sv.json +0 -5
  23. package/bundles/assets/adf-core/i18n/zh-CN.json +0 -5
  24. package/custom-theme/material-theme.scss +13 -13
  25. package/custom-theme/theme/custom-palette-creator.scss +25 -27
  26. package/custom-theme/theme/custom-theme-palettes.scss +7 -7
  27. package/custom-theme/theme/theme-data.scss +13 -13
  28. package/custom-theme/theme/typography.scss +5 -5
  29. package/feature-flags/lib/components/feature-override-indicator.component.d.ts +2 -20
  30. package/feature-flags/lib/components/flags/flags.component.d.ts +4 -4
  31. package/feature-flags/lib/directives/features.directive.d.ts +5 -23
  32. package/feature-flags/lib/directives/not-features.directive.d.ts +5 -23
  33. package/feature-flags/lib/guards/is-feature-off.guard.d.ts +1 -3
  34. package/feature-flags/lib/guards/is-feature-on.guard.d.ts +1 -3
  35. package/feature-flags/lib/guards/is-flags-override-on.guard.d.ts +2 -3
  36. package/feature-flags/lib/services/debug-features.service.d.ts +6 -6
  37. package/feature-flags/lib/services/qa-features.helper.d.ts +2 -21
  38. package/feature-flags/lib/services/storage-features.service.d.ts +4 -4
  39. package/fesm2022/adf-core.mjs +4861 -4176
  40. package/fesm2022/adf-core.mjs.map +1 -1
  41. package/fesm2022/alfresco-adf-core-api.mjs +14 -16
  42. package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
  43. package/fesm2022/alfresco-adf-core-auth.mjs +7 -7
  44. package/fesm2022/alfresco-adf-core-auth.mjs.map +1 -1
  45. package/fesm2022/alfresco-adf-core-breadcrumbs.mjs +21 -20
  46. package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
  47. package/fesm2022/alfresco-adf-core-feature-flags.mjs +84 -129
  48. package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
  49. package/fesm2022/alfresco-adf-core-shell.mjs +24 -32
  50. package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
  51. package/lib/about/about-license-list/about-license-list.component.d.ts +2 -1
  52. package/lib/about/about-license-list/about-license-list.component.scss +7 -0
  53. package/lib/about/about-server-settings/about-server-settings.component.d.ts +1 -3
  54. package/lib/about/interfaces.d.ts +1 -1
  55. package/lib/app-config/app-config-storage-prefix.factory.d.ts +3 -5
  56. package/lib/app-config/app-config.pipe.d.ts +1 -3
  57. package/lib/app-config/app-config.service.d.ts +31 -28
  58. package/lib/auth/authentication-interceptor/auth-bearer.interceptor.d.ts +2 -4
  59. package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +2 -6
  60. package/lib/auth/basic-auth/content-auth.d.ts +4 -7
  61. package/lib/auth/basic-auth/process-auth.d.ts +4 -7
  62. package/lib/auth/guard/auth-guard.service.d.ts +7 -31
  63. package/lib/auth/models/oauth-config.model.d.ts +0 -1
  64. package/lib/auth/oidc/auth-config.service.d.ts +2 -5
  65. package/lib/auth/oidc/oidc-authentication.service.d.ts +4 -10
  66. package/lib/auth/oidc/redirect-auth.service.d.ts +6 -6
  67. package/lib/auth/oidc/retry-login.service.d.ts +1 -1
  68. package/lib/auth/services/authentication.service.d.ts +1 -19
  69. package/lib/auth/services/base-authentication.service.d.ts +1 -3
  70. package/lib/auth/services/identity-group.service.d.ts +2 -5
  71. package/lib/auth/services/identity-role.service.d.ts +1 -1
  72. package/lib/auth/services/identity-user.service.d.ts +3 -7
  73. package/lib/auth/services/jwt-helper.service.d.ts +1 -1
  74. package/lib/auth/services/oauth2.service.d.ts +1 -3
  75. package/lib/auth/services/time-sync.service.d.ts +3 -5
  76. package/lib/auth/services/user-access.service.d.ts +2 -5
  77. package/lib/card-view/components/card-view/card-view.component.d.ts +1 -3
  78. package/lib/card-view/components/card-view/card-view.component.scss +0 -90
  79. package/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.scss +1 -9
  80. package/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.d.ts +4 -2
  81. package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.d.ts +5 -10
  82. package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss +36 -41
  83. package/lib/card-view/components/card-view-item-dispatcher/card-view-item-dispatcher.component.d.ts +3 -5
  84. package/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.d.ts +4 -1
  85. package/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.scss +0 -12
  86. package/lib/card-view/components/card-view-selectitem/select-filter-input/select-filter-input.component.d.ts +1 -3
  87. package/lib/card-view/components/card-view-textitem/card-view-textitem.component.d.ts +5 -10
  88. package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +18 -19
  89. package/lib/card-view/directives/card-view-property-validator.directive.d.ts +28 -0
  90. package/lib/card-view/models/card-view-dateitem.model.d.ts +0 -2
  91. package/lib/card-view/public-api.d.ts +0 -1
  92. package/lib/card-view/validators/card-view-item-length.validator.d.ts +2 -2
  93. package/lib/card-view/validators/card-view-item-match.validator.d.ts +3 -3
  94. package/lib/card-view/validators/card-view-item-minmax.validator.d.ts +3 -3
  95. package/lib/clipboard/clipboard.directive.d.ts +6 -11
  96. package/lib/clipboard/clipboard.module.d.ts +5 -4
  97. package/lib/clipboard/clipboard.service.d.ts +2 -4
  98. package/lib/comments/comment-list/comment-list.component.d.ts +1 -1
  99. package/lib/comments/comments.component.d.ts +3 -2
  100. package/lib/comments/comments.component.scss +3 -32
  101. package/lib/common/index.d.ts +0 -1
  102. package/lib/common/services/log.service.d.ts +2 -6
  103. package/lib/common/services/page-title.service.d.ts +4 -7
  104. package/lib/common/services/thumbnail.service.d.ts +1 -3
  105. package/lib/common/services/url.service.d.ts +1 -3
  106. package/lib/common/services/user-preferences.service.d.ts +78 -15
  107. package/lib/common/utils/date-fns-adapter.d.ts +3 -5
  108. package/lib/common/utils/date-fns-utils.d.ts +1 -1
  109. package/lib/common/utils/datetime-fns-adapter.d.ts +3 -5
  110. package/lib/common/utils/moment-date-adapter.d.ts +1 -2
  111. package/lib/context-menu/context-menu-list.component.d.ts +8 -8
  112. package/lib/context-menu/context-menu-overlay.d.ts +1 -1
  113. package/lib/context-menu/context-menu-overlay.service.d.ts +2 -21
  114. package/lib/context-menu/context-menu.directive.d.ts +1 -3
  115. package/lib/context-menu/context-menu.tokens.d.ts +2 -1
  116. package/lib/context-menu/interfaces.d.ts +14 -1
  117. package/lib/core.module.d.ts +78 -83
  118. package/lib/datatable/components/amount-cell/amount-cell.component.d.ts +3 -19
  119. package/lib/datatable/components/boolean-cell/boolean-cell.component.d.ts +3 -20
  120. package/lib/datatable/components/columns-selector/columns-search-filter.pipe.d.ts +1 -1
  121. package/lib/datatable/components/columns-selector/columns-selector.component.d.ts +2 -1
  122. package/lib/datatable/components/columns-selector/columns-selector.component.scss +64 -81
  123. package/lib/datatable/components/datatable/datatable.component.d.ts +12 -13
  124. package/lib/datatable/components/datatable/datatable.component.scss +48 -20
  125. package/lib/datatable/components/datatable-cell/datatable-cell.component.d.ts +20 -0
  126. package/lib/datatable/components/datatable-row/datatable-row.component.d.ts +2 -3
  127. package/lib/datatable/components/date-cell/date-cell.component.d.ts +9 -2
  128. package/lib/datatable/components/filesize-cell/filesize-cell.component.d.ts +1 -19
  129. package/lib/datatable/components/icon-cell/icon-cell.component.d.ts +3 -6
  130. package/lib/datatable/components/json-cell/json-cell.component.d.ts +4 -22
  131. package/lib/datatable/components/location-cell/location-cell.component.d.ts +3 -20
  132. package/lib/datatable/components/number-cell/number-cell.component.d.ts +3 -19
  133. package/lib/datatable/data/data-table.schema.d.ts +4 -4
  134. package/lib/datatable/data/datatable-adapter.d.ts +2 -0
  135. package/lib/datatable/data/object-datarow.model.d.ts +1 -1
  136. package/lib/datatable/data-column/data-column-header.component.d.ts +1 -3
  137. package/lib/datatable/directives/drop-zone.directive.d.ts +4 -4
  138. package/lib/datatable/directives/header-filter-template.directive.d.ts +1 -3
  139. package/lib/datatable/directives/loading-template.directive.d.ts +1 -3
  140. package/lib/datatable/directives/main-data-table-action-template.directive.d.ts +1 -3
  141. package/lib/datatable/directives/no-content-template.directive.d.ts +1 -3
  142. package/lib/datatable/directives/no-permission-template.directive.d.ts +1 -3
  143. package/lib/datatable/directives/resizable/resizable.directive.d.ts +8 -3
  144. package/lib/datatable/directives/resizable/resize-handle.directive.d.ts +2 -2
  145. package/lib/dialogs/confirm-dialog/confirm.dialog.d.ts +3 -3
  146. package/lib/dialogs/dialog/dialog.component.d.ts +2 -2
  147. package/lib/dialogs/edit-json/edit-json.dialog.d.ts +1 -2
  148. package/lib/dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component.d.ts +1 -3
  149. package/lib/dialogs/unsaved-changes-dialog/unsaved-changes.guard.d.ts +3 -6
  150. package/lib/directives/highlight.directive.d.ts +4 -6
  151. package/lib/directives/infinite-select-scroll.directive.d.ts +1 -3
  152. package/lib/directives/logout.directive.d.ts +6 -10
  153. package/lib/directives/tooltip-card/tooltip-card.component.d.ts +1 -3
  154. package/lib/directives/tooltip-card/tooltip-card.directive.d.ts +4 -6
  155. package/lib/directives/upload.directive.d.ts +7 -7
  156. package/lib/dynamic-chip-list/dynamic-chip-list.component.d.ts +3 -4
  157. package/lib/dynamic-chip-list/dynamic-chip-list.component.scss +1 -1
  158. package/lib/form/components/form-base.component.d.ts +1 -1
  159. package/lib/form/components/form-field/form-field.component.d.ts +5 -0
  160. package/lib/form/components/form-renderer.component.d.ts +7 -7
  161. package/lib/form/components/form-renderer.component.scss +48 -34
  162. package/lib/form/components/widgets/amount/amount.widget.d.ts +26 -6
  163. package/lib/form/components/widgets/base-display-text/base-display-text.widget.d.ts +43 -0
  164. package/lib/form/components/widgets/base-viewer/base-viewer.widget.d.ts +16 -2
  165. package/lib/form/components/widgets/button/button.widget.d.ts +9 -0
  166. package/lib/form/components/widgets/button/button.widget.scss +14 -0
  167. package/lib/form/components/widgets/checkbox/checkbox.widget.d.ts +0 -4
  168. package/lib/form/components/widgets/core/container-column.model.d.ts +2 -0
  169. package/lib/{models/decimal-number.model.d.ts → form/components/widgets/core/container-row.model.d.ts} +9 -5
  170. package/lib/{common/models/user-info-mode.enum.d.ts → form/components/widgets/core/custom-validation-message.token.d.ts} +3 -7
  171. package/lib/form/components/widgets/core/form-field-types.d.ts +5 -0
  172. package/lib/form/components/widgets/core/form-field-validator.d.ts +10 -10
  173. package/lib/form/components/widgets/core/form-field.model.d.ts +29 -2
  174. package/lib/form/components/widgets/core/form.model.d.ts +38 -2
  175. package/lib/{datatable/components/mocks/datatable.mock.d.ts → form/components/widgets/core/handlers/form-field-rule.handler.d.ts} +5 -5
  176. package/lib/{blank-page/public-api.d.ts → form/components/widgets/core/handlers/form-field-visibility-condition.handler.d.ts} +5 -2
  177. package/lib/form/components/widgets/core/index.d.ts +2 -0
  178. package/lib/{login/components/login-dialog/login-dialog-component-data.interface.d.ts → form/components/widgets/core/repeatable-section.model.d.ts} +7 -5
  179. package/lib/form/components/widgets/decimal/decimal.component.d.ts +0 -3
  180. package/lib/form/components/widgets/display-text/display-text.widget.d.ts +5 -5
  181. package/lib/form/components/widgets/error/error.component.d.ts +0 -3
  182. package/lib/form/components/widgets/error/error.component.scss +4 -0
  183. package/lib/form/components/widgets/hyperlink/hyperlink.widget.d.ts +0 -3
  184. package/lib/form/components/widgets/index.d.ts +5 -1
  185. package/lib/form/components/widgets/json/json.widget.d.ts +1 -5
  186. package/lib/form/components/widgets/multiline-text/multiline-text.widget.d.ts +5 -4
  187. package/lib/form/components/widgets/number/number.widget.d.ts +1 -5
  188. package/lib/form/components/widgets/reactive-widget.interface.d.ts +4 -0
  189. package/lib/form/components/widgets/repeat/repeat.widget.d.ts +9 -0
  190. package/lib/form/components/widgets/repeat/repeat.widget.scss +36 -0
  191. package/lib/form/components/widgets/text/text-mask.component.d.ts +6 -7
  192. package/lib/form/components/widgets/text/text.widget.d.ts +13 -4
  193. package/lib/form/components/widgets/unknown/unknown.widget.d.ts +0 -3
  194. package/lib/form/components/widgets/widget.component.d.ts +1 -2
  195. package/lib/form/form-base.module.d.ts +3 -2
  196. package/lib/form/models/widget-visibility.model.d.ts +7 -6
  197. package/lib/form/public-api.d.ts +1 -0
  198. package/lib/form/services/form-expression.service.d.ts +14 -0
  199. package/lib/form/services/form.service.d.ts +3 -3
  200. package/lib/{interface/index.d.ts → icon/icon-alias-map.token.d.ts} +3 -1
  201. package/lib/{interface/public-api.d.ts → icon/icon-alias-map.type.d.ts} +1 -1
  202. package/lib/icon/icon.component.d.ts +31 -4
  203. package/lib/{pipes/multi-value.pipe.d.ts → icon/icon.directive.d.ts} +13 -6
  204. package/lib/icon/icon.module.d.ts +3 -6
  205. package/lib/icon/public-api.d.ts +3 -0
  206. package/lib/info-drawer/info-drawer-layout.component.scss +2 -2
  207. package/lib/info-drawer/info-drawer.component.scss +6 -0
  208. package/lib/language-menu/language-menu.component.d.ts +2 -3
  209. package/lib/language-menu/service/language.service.d.ts +2 -4
  210. package/lib/layout/components/header/header.component.d.ts +1 -3
  211. package/lib/layout/components/sidebar-action/sidebar-action-menu.component.scss +1 -2
  212. package/lib/layout/components/sidenav-layout/sidenav-layout.component.d.ts +3 -5
  213. package/lib/layout/components/sidenav-layout/sidenav-layout.component.scss +4 -4
  214. package/lib/login/components/login/login.component.d.ts +10 -17
  215. package/lib/login/components/login/login.component.scss +6 -8
  216. package/lib/login/directives/login-footer.directive.d.ts +1 -3
  217. package/lib/login/directives/login-header.directive.d.ts +1 -3
  218. package/lib/login/login.module.d.ts +3 -5
  219. package/lib/login/public-api.d.ts +0 -2
  220. package/lib/mock/form/widget-visibility.service.mock.d.ts +1 -0
  221. package/lib/mock/public-api.d.ts +0 -1
  222. package/lib/mock/translation.service.mock.d.ts +2 -2
  223. package/lib/models/public-api.d.ts +0 -2
  224. package/lib/notifications/components/notification-history.component.d.ts +10 -7
  225. package/lib/notifications/models/notification.model.d.ts +7 -6
  226. package/lib/notifications/notification-history.module.d.ts +2 -4
  227. package/lib/notifications/public-api.d.ts +0 -1
  228. package/lib/notifications/services/notification.service.d.ts +3 -5
  229. package/lib/pagination/infinite-pagination.component.d.ts +3 -5
  230. package/lib/pagination/pagination.component.d.ts +6 -9
  231. package/lib/pipes/decimal-number.pipe.d.ts +6 -3
  232. package/lib/pipes/file-size.pipe.d.ts +2 -4
  233. package/lib/pipes/localized-date.pipe.d.ts +3 -6
  234. package/lib/pipes/pipe.module.d.ts +6 -8
  235. package/lib/pipes/public-api.d.ts +0 -1
  236. package/lib/pipes/text-highlight.pipe.d.ts +1 -3
  237. package/lib/pipes/time-ago.pipe.d.ts +1 -2
  238. package/lib/pipes/user-initial.pipe.d.ts +2 -3
  239. package/lib/search-text/models/search-text-input.model.d.ts +5 -4
  240. package/lib/search-text/search-text-input.component.d.ts +4 -5
  241. package/lib/search-text/search-text-input.component.scss +0 -6
  242. package/lib/search-text/search-trigger.directive.d.ts +6 -7
  243. package/lib/snackbar-content/snackbar-content.component.d.ts +1 -1
  244. package/lib/{blank-page/index.d.ts → stories/core-story.providers.d.ts} +7 -1
  245. package/lib/{sorting-picker → stories}/index.d.ts +1 -1
  246. package/lib/styles/_flex.scss +21 -16
  247. package/lib/styles/{material.theme.scss → _globals.scss} +6 -6
  248. package/lib/styles/_index.scss +4 -126
  249. package/lib/styles/_mat-selectors.scss +1 -17
  250. package/lib/templates/empty-content/empty-content.component.scss +2 -5
  251. package/lib/templates/error-content/error-content.component.d.ts +3 -7
  252. package/lib/templates/error-content/error-content.component.scss +1 -1
  253. package/lib/testing/index.d.ts +0 -1
  254. package/lib/testing/noop-translate.module.d.ts +3 -4
  255. package/lib/testing/unit-testing-utils.d.ts +14 -0
  256. package/lib/toolbar/toolbar.component.scss +1 -1
  257. package/lib/translation/provide-i18n.d.ts +5 -0
  258. package/lib/translation/translate-loader.service.d.ts +4 -22
  259. package/lib/translation/translation.service.d.ts +10 -3
  260. package/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.d.ts +4 -2
  261. package/lib/viewer/components/img-viewer/img-viewer.component.d.ts +9 -5
  262. package/lib/viewer/components/media-player/media-player.component.d.ts +3 -5
  263. package/lib/viewer/components/pdf-viewer/pdf-viewer-host.component.scss +28 -0
  264. package/lib/viewer/components/pdf-viewer/pdf-viewer.component.d.ts +52 -17
  265. package/lib/viewer/components/pdf-viewer/pdf-viewer.component.scss +4 -2
  266. package/lib/viewer/components/pdf-viewer-password-dialog/pdf-viewer-password-dialog.d.ts +1 -3
  267. package/lib/viewer/components/pdf-viewer-thumb/pdf-viewer-thumb.component.d.ts +3 -5
  268. package/lib/viewer/components/pdf-viewer-thumbnails/pdf-viewer-thumbnails.component.d.ts +7 -8
  269. package/lib/viewer/components/txt-viewer/txt-viewer.component.d.ts +3 -22
  270. package/lib/viewer/components/viewer-render/viewer-render.component.d.ts +8 -8
  271. package/lib/viewer/components/viewer.component.d.ts +16 -14
  272. package/lib/viewer/components/viewer.component.scss +1 -1
  273. package/lib/viewer/directives/viewer-extension.directive.d.ts +7 -6
  274. package/lib/viewer/models/download-prompt.actions.d.ts +5 -4
  275. package/lib/viewer/models/viewer.model.d.ts +5 -4
  276. package/lib/viewer/services/rendering-queue.services.d.ts +35 -12
  277. package/lib/viewer/services/view-util.service.d.ts +4 -5
  278. package/package.json +4 -5
  279. package/public-api.d.ts +1 -6
  280. package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
  281. package/schematics/migrations/schematics/migrations/7_0_0/index.js +44 -59
  282. package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
  283. package/schematics/migrations/schematics/migrations/collection.json +0 -5
  284. package/shell/lib/components/shell/shell.component.d.ts +7 -10
  285. package/lib/blank-page/blank-page.component.d.ts +0 -5
  286. package/lib/blank-page/blank-page.module.d.ts +0 -8
  287. package/lib/button/button.component.d.ts +0 -19
  288. package/lib/button/button.component.scss +0 -13
  289. package/lib/clipboard/clipboard.theme.scss +0 -19
  290. package/lib/interface/injection.tokens.d.ts +0 -18
  291. package/lib/landing-page/index.d.ts +0 -17
  292. package/lib/landing-page/provider.d.ts +0 -24
  293. package/lib/landing-page/public-api.d.ts +0 -17
  294. package/lib/login/components/login-dialog/login-dialog.component.d.ts +0 -15
  295. package/lib/login/components/login-dialog/login-dialog.component.scss +0 -4
  296. package/lib/mock/data-column.mock.d.ts +0 -51
  297. package/lib/models/product-version.model.d.ts +0 -24
  298. package/lib/notifications/components/add-notification.stories.component.d.ts +0 -10
  299. package/lib/progress/progress.component.d.ts +0 -36
  300. package/lib/sorting-picker/public-api.d.ts +0 -17
  301. package/lib/sorting-picker/sorting-picker.component.d.ts +0 -38
  302. package/lib/styles/_theming.scss +0 -3
  303. package/lib/styles/_typography.scss +0 -18
  304. package/lib/testing/core.story.module.d.ts +0 -9
@@ -21,46 +21,46 @@ export interface FormFieldValidator {
21
21
  validate(field: FormFieldModel): boolean;
22
22
  }
23
23
  export declare class RequiredFieldValidator implements FormFieldValidator {
24
- private supportedTypes;
24
+ private readonly supportedTypes;
25
25
  isSupported(field: FormFieldModel): boolean;
26
26
  validate(field: FormFieldModel): boolean;
27
27
  }
28
28
  export declare class NumberFieldValidator implements FormFieldValidator {
29
- private supportedTypes;
29
+ private readonly supportedTypes;
30
30
  static isNumber(value: any): boolean;
31
31
  isSupported(field: FormFieldModel): boolean;
32
32
  validate(field: FormFieldModel): boolean;
33
33
  }
34
34
  export declare class MinLengthFieldValidator implements FormFieldValidator {
35
- private supportedTypes;
35
+ private readonly supportedTypes;
36
36
  isSupported(field: FormFieldModel): boolean;
37
37
  validate(field: FormFieldModel): boolean;
38
38
  }
39
39
  export declare class MaxLengthFieldValidator implements FormFieldValidator {
40
- private supportedTypes;
41
- private maxLength?;
40
+ private readonly supportedTypes;
41
+ private readonly maxLength?;
42
42
  constructor(supportedTypes?: FormFieldTypes[], maxLength?: number);
43
43
  isSupported(field: FormFieldModel): boolean;
44
44
  validate(field: FormFieldModel): boolean;
45
45
  getMaxLength(field: FormFieldModel): number | undefined;
46
46
  }
47
47
  export declare class MinValueFieldValidator implements FormFieldValidator {
48
- private supportedTypes;
48
+ private readonly supportedTypes;
49
49
  isSupported(field: FormFieldModel): boolean;
50
50
  validate(field: FormFieldModel): boolean;
51
51
  }
52
52
  export declare class MaxValueFieldValidator implements FormFieldValidator {
53
- private supportedTypes;
53
+ private readonly supportedTypes;
54
54
  isSupported(field: FormFieldModel): boolean;
55
55
  validate(field: FormFieldModel): boolean;
56
56
  }
57
57
  export declare class RegExFieldValidator implements FormFieldValidator {
58
- private supportedTypes;
58
+ private readonly supportedTypes;
59
59
  isSupported(field: FormFieldModel): boolean;
60
60
  validate(field: FormFieldModel): boolean;
61
61
  }
62
62
  export declare class FixedValueFieldValidator implements FormFieldValidator {
63
- private supportedTypes;
63
+ private readonly supportedTypes;
64
64
  isSupported(field: FormFieldModel): boolean;
65
65
  hasValidNameOrValidId(field: FormFieldModel): boolean;
66
66
  hasValidName(field: FormFieldModel): boolean;
@@ -70,7 +70,7 @@ export declare class FixedValueFieldValidator implements FormFieldValidator {
70
70
  validate(field: FormFieldModel): boolean;
71
71
  }
72
72
  export declare class DecimalFieldValidator implements FormFieldValidator {
73
- private supportedTypes;
73
+ private readonly supportedTypes;
74
74
  isSupported(field: FormFieldModel): boolean;
75
75
  validate(field: FormFieldModel): boolean;
76
76
  }
@@ -23,6 +23,8 @@ import { FormWidgetModel } from './form-widget.model';
23
23
  import { FormFieldRule } from './form-field-rule';
24
24
  import { VariableConfig } from './form-field-variable-options';
25
25
  import { DataColumn } from '../../../../datatable/data/data-column.model';
26
+ import { ContainerRowModel } from './container-row.model';
27
+ import { RepeatableSectionModel } from './repeatable-section.model';
26
28
  export type FieldOptionType = 'rest' | 'manual' | 'variable';
27
29
  export type FieldSelectionType = 'single' | 'multiple';
28
30
  export type FieldAlignmentType = 'vertical' | 'horizontal';
@@ -54,6 +56,8 @@ export declare class FormFieldModel extends FormWidgetModel {
54
56
  precision: number;
55
57
  dynamicDateRangeSelection: boolean;
56
58
  regexPattern: string;
59
+ customValidationMessage?: string;
60
+ enableCustomValidationMessage?: boolean;
57
61
  options: FormFieldOption[];
58
62
  restUrl: string;
59
63
  roles: string[];
@@ -68,6 +72,7 @@ export declare class FormFieldModel extends FormWidgetModel {
68
72
  displayText: string;
69
73
  isVisible: boolean;
70
74
  visibilityCondition: WidgetVisibilityModel;
75
+ checkParentVisibilityForValidation: boolean;
71
76
  enableFractions: boolean;
72
77
  currency: string;
73
78
  dateDisplayFormat: string;
@@ -81,9 +86,11 @@ export declare class FormFieldModel extends FormWidgetModel {
81
86
  schemaDefinition: DataColumn[];
82
87
  externalProperty?: string;
83
88
  style?: string;
89
+ parent?: RepeatableSectionModel;
84
90
  numberOfColumns: number;
85
91
  fields: FormFieldModel[];
86
92
  columns: ContainerColumnModel[];
93
+ rows: ContainerRowModel[];
87
94
  emptyOption: FormFieldOption;
88
95
  validationSummary: ErrorMessageModel;
89
96
  get value(): any;
@@ -98,17 +105,37 @@ export declare class FormFieldModel extends FormWidgetModel {
98
105
  markAsValid(): void;
99
106
  validate(): boolean;
100
107
  private isFieldValidatable;
101
- constructor(form: any, json?: any);
108
+ constructor(form: any, json?: any, parent?: RepeatableSectionModel);
102
109
  private getEmptyOption;
103
110
  private setValueForReadonlyType;
104
111
  private getDefaultDateFormat;
112
+ private getId;
105
113
  private isTypeaheadFieldType;
106
114
  private getFieldNameWithLabel;
107
115
  private getProcessVariableValue;
108
116
  private containerFactory;
117
+ private setupParentConfig;
118
+ private repeatableSectionFactory;
119
+ private getNumberOfRows;
120
+ private createRow;
121
+ private createColumns;
122
+ private updateRepeatableSectionReadOnlyState;
123
+ private updateInnerSectionReadOnlyState;
124
+ private getRepeatableSectionFieldReadOnlyState;
125
+ private getUniqueId;
126
+ private updateChildrenFieldsRowIndex;
127
+ private createInitialValue;
128
+ private getFieldId;
109
129
  private updateContainerColspan;
110
- parseValue(json: any): any;
130
+ addRow(fields: any, form: any): void;
131
+ private shouldAddRow;
132
+ removeRow(index: number): void;
133
+ private shouldRemoveRow;
134
+ parseValue(json: any, initialValue?: any): any;
111
135
  updateForm(): void;
136
+ getFormValue(): any;
137
+ private updateValue;
138
+ private updateRepeatableSectionValue;
112
139
  /**
113
140
  * Check if the field type is invalid, requires a type to be a `container`
114
141
  *
@@ -64,7 +64,6 @@ export declare class FormModel implements ProcessFormModel {
64
64
  readonly confirmMessage: ConfirmMessage;
65
65
  readonly taskName: string;
66
66
  readonly processDefinitionId: string;
67
- readonly selectedOutcome: string;
68
67
  readonly enableFixedSpace: boolean;
69
68
  readonly displayMode: any;
70
69
  fieldsCache: FormFieldModel[];
@@ -77,13 +76,17 @@ export declare class FormModel implements ProcessFormModel {
77
76
  fieldValidators: FormFieldValidator[];
78
77
  customFieldTemplates: FormFieldTemplates;
79
78
  theme?: ThemeModel;
79
+ selectedOutcomeId?: string;
80
+ selectedOutcome: string;
80
81
  className: string;
81
82
  readOnly: boolean;
82
83
  isValid: boolean;
83
84
  processVariables: ProcessVariableModel[];
84
85
  variables: FormVariableModel[];
86
+ enableParentVisibilityCheck: boolean;
85
87
  constructor(json?: any, formValues?: FormValues, readOnly?: boolean, formService?: FormValidationService, enableFixedSpace?: boolean, injectedFieldValidators?: FormFieldValidator[]);
86
88
  onFormFieldChanged(field: FormFieldModel): void;
89
+ onRepeatableSectionChanged(): void;
87
90
  /**
88
91
  * Validates entire form and all form fields.
89
92
  */
@@ -127,12 +130,14 @@ export declare class FormModel implements ProcessFormModel {
127
130
  hasFields(): boolean;
128
131
  hasOutcomes(): boolean;
129
132
  getFieldById(fieldId: string): FormFieldModel;
130
- getFormFields(filterTypes?: string[]): FormFieldModel[];
133
+ getFormFields(filterTypes?: string[], isDynamic?: boolean): FormFieldModel[];
131
134
  private processFields;
132
135
  private isContainerField;
133
136
  private isFormField;
134
137
  private isSectionField;
138
+ private isRepeatableSectionField;
135
139
  private handleSectionField;
140
+ private handleRepeatableSectionField;
136
141
  private handleContainerField;
137
142
  private handleSingleField;
138
143
  private filterFieldsByType;
@@ -147,4 +152,35 @@ export declare class FormModel implements ProcessFormModel {
147
152
  changeFieldValue(fieldId: string, value: any): void;
148
153
  changeVariableValue(variableId: string, value: any): void;
149
154
  private loadInjectedFieldValidators;
155
+ /**
156
+ * Checks if a field or any of its parent containers/groups/sections is hidden.
157
+ * Returns true if the field should skip validation (field or parent is hidden).
158
+ *
159
+ * Parent visibility is only checked if:
160
+ * - `enableParentVisibilityCheck` is true
161
+ * - `field.checkParentVisibilityForValidation` is true (field opt-in enabled)
162
+ *
163
+ * @param field The form field to check
164
+ * @returns true if field or parent is hidden, false otherwise
165
+ */
166
+ isFieldOrParentHidden(field: FormFieldModel): boolean;
167
+ /**
168
+ * Checks if the given field has a hidden parent container/group/section.
169
+ *
170
+ * @param targetField The form field to check
171
+ * @returns true if field has a hidden parent, false otherwise
172
+ */
173
+ private hasHiddenParent;
174
+ /**
175
+ * Recursively searches for a field within an element (container/group/section).
176
+ * Returns the parent element if field is found within it, null otherwise.
177
+ *
178
+ * @param element The container/group/section to search in
179
+ * @param targetField The form field to find
180
+ * @returns Parent element if field found, null otherwise
181
+ */
182
+ private findParentInElement;
183
+ private getColumnsFromElement;
184
+ private searchFieldsInColumns;
185
+ private searchFieldsInColumn;
150
186
  }
@@ -14,8 +14,8 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { PathInfo } from '../../../models/path.model';
18
- import { DataColumn } from '../../data/data-column.model';
19
- export declare const mockCarsData: any;
20
- export declare const mockCarsSchemaDefinition: DataColumn[];
21
- export declare const mockPathInfos: PathInfo[];
17
+ import { FormFieldRule } from '../form-field-rule';
18
+ import { RepeatableSectionModel } from '../repeatable-section.model';
19
+ export declare const formFieldRuleHandler: {
20
+ getRule: (id: string, rule?: FormFieldRule, parent?: RepeatableSectionModel) => FormFieldRule;
21
+ };
@@ -14,5 +14,8 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './blank-page.component';
18
- export * from './blank-page.module';
17
+ import { RepeatableSectionModel } from '../repeatable-section.model';
18
+ import { WidgetVisibilityModel } from '../../../../models/widget-visibility.model';
19
+ export declare const formFieldVisibilityConditionHandler: {
20
+ getVisibilityCondition: (id: string, json?: any, parent?: RepeatableSectionModel) => WidgetVisibilityModel | undefined;
21
+ };
@@ -29,6 +29,7 @@ export * from './tab.model';
29
29
  export * from './form-outcome.model';
30
30
  export * from './form-outcome-event.model';
31
31
  export * from './form-field-validator';
32
+ export * from './custom-validation-message.token';
32
33
  export * from './content-link.model';
33
34
  export * from './error-message.model';
34
35
  export * from './external-content';
@@ -45,3 +46,4 @@ export * from './widget-schema.model';
45
46
  export * from './theme.model';
46
47
  export * from './predefined-theme';
47
48
  export * from './displayable-cm-properties.model';
49
+ export * from './repeatable-section.model';
@@ -14,9 +14,11 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { Subject } from 'rxjs';
18
- export interface LoginDialogComponentData {
19
- title: string;
20
- actionName?: string;
21
- logged: Subject<any>;
17
+ export declare const ROW_ID_PREFIX = "-Row";
18
+ export interface RepeatableSectionModel {
19
+ id: string;
20
+ uid: string;
21
+ fields: any;
22
+ rowIndex: number;
23
+ value?: any;
22
24
  }
@@ -1,9 +1,6 @@
1
- import { FormService } from '../../../services/form.service';
2
1
  import { WidgetComponent } from '../widget.component';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class DecimalWidgetComponent extends WidgetComponent {
5
- formService: FormService;
6
- constructor(formService: FormService);
7
4
  static ɵfac: i0.ɵɵFactoryDeclaration<DecimalWidgetComponent, never>;
8
5
  static ɵcmp: i0.ɵɵComponentDeclaration<DecimalWidgetComponent, "adf-decimal", never, {}, {}, never, never, true, never>;
9
6
  }
@@ -1,9 +1,9 @@
1
- import { FormService } from '../../../services/form.service';
2
- import { WidgetComponent } from '../widget.component';
1
+ import { BaseDisplayTextWidgetComponent } from '../base-display-text/base-display-text.widget';
3
2
  import * as i0 from "@angular/core";
4
- export declare class DisplayTextWidgetComponent extends WidgetComponent {
5
- formService: FormService;
6
- constructor(formService: FormService);
3
+ export declare class DisplayTextWidgetComponent extends BaseDisplayTextWidgetComponent {
4
+ protected storeOriginalValue(): void;
5
+ protected evaluateExpressions(): void;
6
+ protected reevaluateExpressions(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DisplayTextWidgetComponent, never>;
8
8
  static ɵcmp: i0.ɵɵComponentDeclaration<DisplayTextWidgetComponent, "display-text-widget", never, {}, {}, never, never, true, never>;
9
9
  }
@@ -1,15 +1,12 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { FormService } from '../../../services/form.service';
3
2
  import { ErrorMessageModel } from '../core';
4
3
  import { WidgetComponent } from '../widget.component';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class ErrorWidgetComponent extends WidgetComponent implements OnChanges {
7
- formService: FormService;
8
6
  error: ErrorMessageModel;
9
7
  required: string;
10
8
  translateParameters: any;
11
9
  subscriptAnimationState: string;
12
- constructor(formService: FormService);
13
10
  ngOnChanges(changes: SimpleChanges): void;
14
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorWidgetComponent, never>;
15
12
  static ɵcmp: i0.ɵɵComponentDeclaration<ErrorWidgetComponent, "error-widget", never, { "error": { "alias": "error"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
@@ -6,4 +6,8 @@
6
6
  height: auto;
7
7
  padding: 5px 0;
8
8
  }
9
+
10
+ &-icon {
11
+ flex: 0 0 auto;
12
+ }
9
13
  }
@@ -15,17 +15,14 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { OnInit } from '@angular/core';
18
- import { FormService } from '../../../services/form.service';
19
18
  import { FormFieldModel } from '../core';
20
19
  import { WidgetComponent } from '../widget.component';
21
20
  import * as i0 from "@angular/core";
22
21
  export declare class HyperlinkWidgetComponent extends WidgetComponent implements OnInit {
23
- formService: FormService;
24
22
  static DEFAULT_HYPERLINK_URL: string;
25
23
  static DEFAULT_HYPERLINK_SCHEME: string;
26
24
  linkUrl: string;
27
25
  linkText: string;
28
- constructor(formService: FormService);
29
26
  ngOnInit(): void;
30
27
  protected getHyperlinkUrl(field: FormFieldModel): any;
31
28
  protected getHyperlinkText(field: FormFieldModel): any;
@@ -29,8 +29,10 @@ import { DateTimeWidgetComponent } from './date-time/date-time.widget';
29
29
  import { JsonWidgetComponent } from './json/json.widget';
30
30
  import { BaseViewerWidgetComponent } from './base-viewer/base-viewer.widget';
31
31
  import { DecimalWidgetComponent } from './decimal/decimal.component';
32
+ import { ButtonWidgetComponent } from './button/button.widget';
32
33
  export * from './widget.component';
33
34
  export * from './reactive-widget.interface';
35
+ export * from './base-display-text/base-display-text.widget';
34
36
  export * from './core';
35
37
  export * from './unknown/unknown.widget';
36
38
  export * from './text/text.widget';
@@ -46,7 +48,9 @@ export * from './date-time/date-time.widget';
46
48
  export * from './json/json.widget';
47
49
  export * from './base-viewer/base-viewer.widget';
48
50
  export * from './text/text-mask.component';
51
+ export * from './button/button.widget';
49
52
  export * from './display-text';
50
53
  export * from './header';
51
- export declare const WIDGET_DIRECTIVES: readonly [typeof UnknownWidgetComponent, typeof TextWidgetComponent, typeof NumberWidgetComponent, typeof DecimalWidgetComponent, typeof CheckboxWidgetComponent, typeof MultilineTextWidgetComponentComponent, typeof HyperlinkWidgetComponent, typeof DisplayTextWidgetComponent, typeof DateWidgetComponent, typeof AmountWidgetComponent, typeof ErrorWidgetComponent, typeof DateTimeWidgetComponent, typeof JsonWidgetComponent, typeof BaseViewerWidgetComponent];
54
+ export * from './repeat/repeat.widget';
55
+ export declare const WIDGET_DIRECTIVES: readonly [typeof UnknownWidgetComponent, typeof TextWidgetComponent, typeof NumberWidgetComponent, typeof DecimalWidgetComponent, typeof CheckboxWidgetComponent, typeof MultilineTextWidgetComponentComponent, typeof HyperlinkWidgetComponent, typeof DisplayTextWidgetComponent, typeof DateWidgetComponent, typeof AmountWidgetComponent, typeof ErrorWidgetComponent, typeof DateTimeWidgetComponent, typeof JsonWidgetComponent, typeof BaseViewerWidgetComponent, typeof ButtonWidgetComponent];
52
56
  export declare const MASK_DIRECTIVE: readonly [typeof InputMaskDirective];
@@ -1,11 +1,7 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
- import { FormService } from '../../../services/form.service';
3
1
  import { WidgetComponent } from '../widget.component';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare class JsonWidgetComponent extends WidgetComponent {
6
- formService: FormService;
7
- private dialog;
8
- constructor(formService: FormService, dialog: MatDialog);
4
+ private readonly dialog;
9
5
  view(): void;
10
6
  static ɵfac: i0.ɵɵFactoryDeclaration<JsonWidgetComponent, never>;
11
7
  static ɵcmp: i0.ɵɵComponentDeclaration<JsonWidgetComponent, "ng-component", never, {}, {}, never, never, true, never>;
@@ -1,9 +1,10 @@
1
- import { FormService } from '../../../services/form.service';
1
+ import { OnInit } from '@angular/core';
2
2
  import { WidgetComponent } from '../widget.component';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MultilineTextWidgetComponentComponent extends WidgetComponent {
5
- formService: FormService;
6
- constructor(formService: FormService);
4
+ export declare class MultilineTextWidgetComponentComponent extends WidgetComponent implements OnInit {
5
+ private readonly destroyRef;
6
+ private readonly enableCustomMessage;
7
+ ngOnInit(): void;
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MultilineTextWidgetComponentComponent, never>;
8
9
  static ɵcmp: i0.ɵɵComponentDeclaration<MultilineTextWidgetComponentComponent, "multiline-text-widget", never, {}, {}, never, never, true, never>;
9
10
  }
@@ -1,13 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { DecimalNumberPipe } from '../../../../pipes';
3
- import { FormService } from '../../../services/form.service';
4
2
  import { WidgetComponent } from '../widget.component';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class NumberWidgetComponent extends WidgetComponent implements OnInit {
7
- formService: FormService;
8
- private decimalNumberPipe;
9
5
  displayValue: number;
10
- constructor(formService: FormService, decimalNumberPipe: DecimalNumberPipe);
6
+ private readonly decimalNumberPipe;
11
7
  ngOnInit(): void;
12
8
  protected onNumberChange(value: string): void;
13
9
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberWidgetComponent, never>;
@@ -15,7 +15,11 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { FormService } from '../../services/form.service';
18
+ import { FormFieldModel } from './core/form-field.model';
19
+ import { WidgetComponent } from './widget.component';
18
20
  export interface ReactiveFormWidget {
19
21
  updateReactiveFormControl(): void;
20
22
  formService: FormService;
23
+ field: FormFieldModel;
21
24
  }
25
+ export type MaybeReactiveFormWidget = WidgetComponent | ReactiveFormWidget;
@@ -0,0 +1,9 @@
1
+ import { ContainerModel } from '../core/container.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RepeatWidgetComponent {
4
+ element: ContainerModel;
5
+ isEditor: boolean;
6
+ addRow(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RepeatWidgetComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<RepeatWidgetComponent, "adf-repeat-widget", never, { "element": { "alias": "element"; "required": false; }; "isEditor": { "alias": "isEditor"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ }
@@ -0,0 +1,36 @@
1
+ .adf-container-widget {
2
+ &-repeat__text {
3
+ border-bottom: 1px solid rgba(0, 0, 0, 0.87);
4
+ padding-bottom: 10px;
5
+ cursor: default;
6
+ user-select: none;
7
+ font-size: var(--adf-header-font-size);
8
+ font-weight: var(--adf-header-font-weight);
9
+ color: var(--adf-header-color);
10
+ line-height: normal;
11
+ }
12
+
13
+ &-row-action {
14
+ margin-left: 10px;
15
+ }
16
+
17
+ &-row-limit {
18
+ color: rgba(0, 0, 0, 0.67);
19
+ font-size: 12px;
20
+ }
21
+ }
22
+
23
+ .adf-readonly {
24
+ .adf-container-widget {
25
+ &-repeat__text {
26
+ color: var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
27
+ border-bottom: 1px solid var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
28
+ cursor: default;
29
+ }
30
+
31
+ &-row-limit {
32
+ color: var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
33
+ font-size: 12px;
34
+ }
35
+ }
36
+ }
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
17
+ import { OnChanges, SimpleChanges } from '@angular/core';
18
18
  import { ControlValueAccessor } from '@angular/forms';
19
19
  import * as i0 from "@angular/core";
20
20
  export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any;
@@ -22,18 +22,17 @@ export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any;
22
22
  * Directive selectors without adf- prefix will be deprecated on 3.0.0
23
23
  */
24
24
  export declare class InputMaskDirective implements OnChanges, ControlValueAccessor {
25
- private el;
26
- private render;
25
+ private readonly el;
26
+ private readonly render;
27
27
  /** Object defining mask and "reversed" status. */
28
28
  inputMask: {
29
29
  mask: string;
30
30
  isReversed: boolean;
31
31
  };
32
- private translationMask;
33
- private byPassKeys;
32
+ private readonly translationMask;
33
+ private readonly byPassKeys;
34
34
  private value;
35
- private invalidCharacters;
36
- constructor(el: ElementRef, render: Renderer2);
35
+ private readonly invalidCharacters;
37
36
  _onChange: (_: any) => void;
38
37
  _onTouched: () => void;
39
38
  onTextInput(event: KeyboardEvent): void;
@@ -1,14 +1,23 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormService } from '../../../services/form.service';
1
+ import { OnInit, TemplateRef } from '@angular/core';
3
2
  import { WidgetComponent } from '../widget.component';
4
3
  import * as i0 from "@angular/core";
4
+ type FieldStatusTemplate = TemplateRef<{
5
+ $implicit: WidgetComponent;
6
+ }>;
7
+ export declare class FieldStatusTemplateDirective {
8
+ template?: FieldStatusTemplate;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldStatusTemplateDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldStatusTemplateDirective, "[adf-field-status-template]", never, { "template": { "alias": "adf-field-status-template"; "required": false; }; }, {}, never, never, true, never>;
11
+ }
5
12
  export declare class TextWidgetComponent extends WidgetComponent implements OnInit {
6
- formService: FormService;
7
13
  mask: string;
8
14
  placeholder: string;
9
15
  isMaskReversed: boolean;
10
- constructor(formService: FormService);
16
+ fieldStatusTemplate: FieldStatusTemplate;
17
+ private readonly destroyRef;
18
+ private readonly enableCustomMessage;
11
19
  ngOnInit(): void;
12
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TextWidgetComponent, never>;
13
21
  static ɵcmp: i0.ɵɵComponentDeclaration<TextWidgetComponent, "text-widget", never, {}, {}, never, never, true, never>;
14
22
  }
23
+ export {};
@@ -1,9 +1,6 @@
1
- import { FormService } from '../../../services/form.service';
2
1
  import { WidgetComponent } from '../widget.component';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class UnknownWidgetComponent extends WidgetComponent {
5
- formService: FormService;
6
- constructor(formService: FormService);
7
4
  static ɵfac: i0.ɵɵFactoryDeclaration<UnknownWidgetComponent, never>;
8
5
  static ɵcmp: i0.ɵɵComponentDeclaration<UnknownWidgetComponent, "unknown-widget", never, {}, {}, never, never, true, never>;
9
6
  }
@@ -22,7 +22,6 @@ import * as i0 from "@angular/core";
22
22
  * Base widget component.
23
23
  */
24
24
  export declare class WidgetComponent implements AfterViewInit {
25
- formService?: FormService;
26
25
  /** Does the widget show a read-only value? (ie, can't be edited) */
27
26
  readOnly: boolean;
28
27
  /** Data to be displayed in the field */
@@ -33,7 +32,7 @@ export declare class WidgetComponent implements AfterViewInit {
33
32
  fieldChanged: EventEmitter<FormFieldModel>;
34
33
  widgetError: EventEmitter<any>;
35
34
  touched: boolean;
36
- constructor(formService?: FormService);
35
+ protected formService: FormService;
37
36
  hasField(): boolean;
38
37
  isRequired(): boolean;
39
38
  isValid(): boolean;
@@ -18,10 +18,11 @@ import * as i16 from "./components/widgets/error/error.component";
18
18
  import * as i17 from "./components/widgets/date-time/date-time.widget";
19
19
  import * as i18 from "./components/widgets/json/json.widget";
20
20
  import * as i19 from "./components/widgets/base-viewer/base-viewer.widget";
21
- import * as i20 from "./components/widgets/text/text-mask.component";
21
+ import * as i20 from "./components/widgets/button/button.widget";
22
+ import * as i21 from "./components/widgets/text/text-mask.component";
22
23
  /** @deprecated This module is deprecated and will be removed in a future release. Use standalone components instead. */
23
24
  export declare class FormBaseModule {
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<FormBaseModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormBaseModule, never, [typeof i1.FormFieldComponent, typeof i2.FormRendererComponent, typeof i3.WidgetComponent, typeof i4.StartFormCustomButtonDirective, typeof i5.InplaceFormInputComponent, typeof i6.UnknownWidgetComponent, typeof i7.TextWidgetComponent, typeof i8.NumberWidgetComponent, typeof i9.DecimalWidgetComponent, typeof i10.CheckboxWidgetComponent, typeof i11.MultilineTextWidgetComponentComponent, typeof i12.HyperlinkWidgetComponent, typeof i13.DisplayTextWidgetComponent, typeof i14.DateWidgetComponent, typeof i15.AmountWidgetComponent, typeof i16.ErrorWidgetComponent, typeof i17.DateTimeWidgetComponent, typeof i18.JsonWidgetComponent, typeof i19.BaseViewerWidgetComponent, typeof i20.InputMaskDirective], [typeof i1.FormFieldComponent, typeof i2.FormRendererComponent, typeof i4.StartFormCustomButtonDirective, typeof i6.UnknownWidgetComponent, typeof i7.TextWidgetComponent, typeof i8.NumberWidgetComponent, typeof i9.DecimalWidgetComponent, typeof i10.CheckboxWidgetComponent, typeof i11.MultilineTextWidgetComponentComponent, typeof i12.HyperlinkWidgetComponent, typeof i13.DisplayTextWidgetComponent, typeof i14.DateWidgetComponent, typeof i15.AmountWidgetComponent, typeof i16.ErrorWidgetComponent, typeof i17.DateTimeWidgetComponent, typeof i18.JsonWidgetComponent, typeof i19.BaseViewerWidgetComponent, typeof i5.InplaceFormInputComponent, typeof i3.WidgetComponent]>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormBaseModule, never, [typeof i1.FormFieldComponent, typeof i2.FormRendererComponent, typeof i3.WidgetComponent, typeof i4.StartFormCustomButtonDirective, typeof i5.InplaceFormInputComponent, typeof i6.UnknownWidgetComponent, typeof i7.TextWidgetComponent, typeof i8.NumberWidgetComponent, typeof i9.DecimalWidgetComponent, typeof i10.CheckboxWidgetComponent, typeof i11.MultilineTextWidgetComponentComponent, typeof i12.HyperlinkWidgetComponent, typeof i13.DisplayTextWidgetComponent, typeof i14.DateWidgetComponent, typeof i15.AmountWidgetComponent, typeof i16.ErrorWidgetComponent, typeof i17.DateTimeWidgetComponent, typeof i18.JsonWidgetComponent, typeof i19.BaseViewerWidgetComponent, typeof i20.ButtonWidgetComponent, typeof i21.InputMaskDirective], [typeof i1.FormFieldComponent, typeof i2.FormRendererComponent, typeof i4.StartFormCustomButtonDirective, typeof i6.UnknownWidgetComponent, typeof i7.TextWidgetComponent, typeof i8.NumberWidgetComponent, typeof i9.DecimalWidgetComponent, typeof i10.CheckboxWidgetComponent, typeof i11.MultilineTextWidgetComponentComponent, typeof i12.HyperlinkWidgetComponent, typeof i13.DisplayTextWidgetComponent, typeof i14.DateWidgetComponent, typeof i15.AmountWidgetComponent, typeof i16.ErrorWidgetComponent, typeof i17.DateTimeWidgetComponent, typeof i18.JsonWidgetComponent, typeof i19.BaseViewerWidgetComponent, typeof i20.ButtonWidgetComponent, typeof i5.InplaceFormInputComponent, typeof i3.WidgetComponent]>;
26
27
  static ɵinj: i0.ɵɵInjectorDeclaration<FormBaseModule>;
27
28
  }
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export declare class WidgetVisibilityModel {
18
- private json?;
18
+ private readonly json?;
19
19
  rightRestResponseId?: string;
20
20
  rightFormFieldId?: string;
21
21
  leftRestResponseId?: string;
@@ -33,8 +33,9 @@ export declare class WidgetVisibilityModel {
33
33
  get rightValue(): any;
34
34
  set rightValue(rightValue: any);
35
35
  }
36
- export declare enum WidgetTypeEnum {
37
- field = "field",
38
- variable = "variable",
39
- value = "value"
40
- }
36
+ export declare const WidgetTypeEnum: {
37
+ readonly field: "field";
38
+ readonly variable: "variable";
39
+ readonly value: "value";
40
+ };
41
+ export type WidgetTypeEnum = (typeof WidgetTypeEnum)[keyof typeof WidgetTypeEnum];
@@ -25,6 +25,7 @@ export * from './components/middlewares/decimal-middleware.service';
25
25
  export * from './components/helpers/buttons-visibility';
26
26
  export * from './services/form-rendering.service';
27
27
  export * from './services/form.service';
28
+ export * from './services/form-expression.service';
28
29
  export * from './services/form-validation-service.interface';
29
30
  export * from './services/widget-visibility.service';
30
31
  export * from './pipes';
@@ -0,0 +1,14 @@
1
+ import { FormModel } from '../components/widgets/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormExpressionService {
4
+ private readonly GLOBAL_EXPRESSION_REGEX;
5
+ private readonly FIELD_PREFIX;
6
+ private readonly VARIABLE_PREFIX;
7
+ private readonly VARIABLES_REGEX;
8
+ resolveExpressions(form: FormModel, formField: string, escapeHtml?: boolean): string;
9
+ private resolveExpression;
10
+ private resolveVariable;
11
+ getFieldDependencies(expression: string): string[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormExpressionService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormExpressionService>;
14
+ }