@cuby-ui/core 0.0.487 → 0.0.489

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 (1162) hide show
  1. package/animations/animations.d.ts +36 -0
  2. package/animations/index.d.ts +1 -0
  3. package/classes/accessors.d.ts +17 -0
  4. package/classes/driver.d.ts +16 -0
  5. package/classes/index.d.ts +3 -0
  6. package/classes/vehicle.d.ts +6 -0
  7. package/components/accordion/accordion-item/accordion-item.component.d.ts +14 -0
  8. package/components/accordion/accordion-item/accordion-item.options.d.ts +1 -0
  9. package/components/accordion/accordion.component.d.ts +5 -0
  10. package/components/accordion/accordion.directive.d.ts +15 -0
  11. package/components/accordion/accordion.module.d.ts +11 -0
  12. package/components/accordion/index.d.ts +4 -0
  13. package/components/alert/alert.component.d.ts +13 -0
  14. package/components/alert/alert.interfaces.d.ts +9 -0
  15. package/components/alert/alert.module.d.ts +11 -0
  16. package/components/alert/alert.service.d.ts +7 -0
  17. package/components/alert/alert.tokens.d.ts +16 -0
  18. package/components/alert/alert.types.d.ts +3 -0
  19. package/components/alert/alerts.component.d.ts +17 -0
  20. package/components/alert/index.d.ts +8 -0
  21. package/components/alert-hint/alert-hint.component.d.ts +11 -0
  22. package/components/alert-hint/error-status.d.ts +1 -0
  23. package/components/alert-hint/index.d.ts +2 -0
  24. package/components/badge/badge.component.d.ts +10 -0
  25. package/components/badge/badge.module.d.ts +8 -0
  26. package/components/badge/badge.options.d.ts +12 -0
  27. package/components/badge/index.d.ts +3 -0
  28. package/components/banner/banner.component.d.ts +21 -0
  29. package/components/banner/banner.module.d.ts +11 -0
  30. package/components/banner/banner.options.d.ts +13 -0
  31. package/components/banner/index.d.ts +3 -0
  32. package/components/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +6 -0
  33. package/components/breadcrumbs/breadcrumbs.component.d.ts +7 -0
  34. package/components/breadcrumbs/breadcrumbs.module.d.ts +10 -0
  35. package/components/breadcrumbs/index.d.ts +3 -0
  36. package/components/button/button.component.d.ts +39 -0
  37. package/components/button/button.module.d.ts +9 -0
  38. package/components/button/button.options.d.ts +14 -0
  39. package/components/button/index.d.ts +3 -0
  40. package/components/button-group/button-group.component.d.ts +5 -0
  41. package/components/button-group/button-group.module.d.ts +7 -0
  42. package/components/button-group/index.d.ts +2 -0
  43. package/components/card-wrapper/card-wrapper.component.d.ts +7 -0
  44. package/components/card-wrapper/index.d.ts +1 -0
  45. package/components/checkbox/checkbox.component.d.ts +5 -0
  46. package/components/checkbox/checkbox.module.d.ts +7 -0
  47. package/components/checkbox/index.d.ts +2 -0
  48. package/components/content-header/content-header.component.d.ts +8 -0
  49. package/components/content-header/index.d.ts +1 -0
  50. package/components/content-wrapper/content-wrapper.component.d.ts +11 -0
  51. package/components/content-wrapper/index.d.ts +1 -0
  52. package/components/context-menu/context-menu.component.d.ts +41 -0
  53. package/components/context-menu/context-menu.module.d.ts +9 -0
  54. package/components/context-menu/index.d.ts +2 -0
  55. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +5 -0
  56. package/components/dialog/dialog-header/dialog-header.component.d.ts +12 -0
  57. package/components/dialog/dialog.component.d.ts +33 -0
  58. package/components/dialog/dialog.interfaces.d.ts +11 -0
  59. package/components/dialog/dialog.module.d.ts +14 -0
  60. package/components/dialog/dialog.service.d.ts +7 -0
  61. package/components/dialog/dialog.tokens.d.ts +8 -0
  62. package/components/dialog/dialogs.component.d.ts +18 -0
  63. package/components/dialog/index.d.ts +8 -0
  64. package/components/dropdown/dropdown-wrapper.component.d.ts +9 -0
  65. package/components/dropdown/dropdown.directive.d.ts +41 -0
  66. package/components/dropdown/dropdown.interfaces.d.ts +8 -0
  67. package/components/dropdown/index.d.ts +3 -0
  68. package/components/empty-state/empty-state.component.d.ts +7 -0
  69. package/components/empty-state/index.d.ts +1 -0
  70. package/components/file-icon/file-icon.component.d.ts +9 -0
  71. package/components/file-icon/file-icon.options.d.ts +12 -0
  72. package/components/file-icon/index.d.ts +1 -0
  73. package/components/form-field/form-field.component.d.ts +5 -0
  74. package/components/form-field/form-field.module.d.ts +7 -0
  75. package/components/form-field/index.d.ts +2 -0
  76. package/components/ghost-input/ghost-input.component.d.ts +6 -0
  77. package/components/ghost-input/index.d.ts +1 -0
  78. package/components/hint/hint.component.d.ts +7 -0
  79. package/components/hint/hint.module.d.ts +7 -0
  80. package/components/hint/index.d.ts +2 -0
  81. package/components/icon-button/icon-button.component.d.ts +13 -0
  82. package/components/icon-button/icon-button.module.d.ts +9 -0
  83. package/components/icon-button/index.d.ts +2 -0
  84. package/components/index.d.ts +41 -0
  85. package/components/input-number/index.d.ts +2 -0
  86. package/components/input-number/input-number.component.d.ts +38 -0
  87. package/components/input-number/input-number.module.d.ts +12 -0
  88. package/components/input-password/index.d.ts +2 -0
  89. package/components/input-password/input-password.component.d.ts +31 -0
  90. package/components/input-password/input-password.module.d.ts +11 -0
  91. package/components/input-text/index.d.ts +2 -0
  92. package/components/input-text/input-text.component.d.ts +31 -0
  93. package/components/input-text/input-text.module.d.ts +11 -0
  94. package/components/input-time/index.d.ts +3 -0
  95. package/components/input-time/input-time.component.d.ts +36 -0
  96. package/components/input-time/input-time.module.d.ts +12 -0
  97. package/components/input-time/input-time.options.d.ts +7 -0
  98. package/components/label/index.d.ts +2 -0
  99. package/components/label/label.component.d.ts +6 -0
  100. package/components/label/label.module.d.ts +8 -0
  101. package/components/layout/index.d.ts +1 -0
  102. package/components/layout/layout.component.d.ts +6 -0
  103. package/components/letter-box/index.d.ts +1 -0
  104. package/components/letter-box/letter-box.component.d.ts +14 -0
  105. package/components/letter-box/letter-box.interfaces.d.ts +3 -0
  106. package/components/notification/index.d.ts +3 -0
  107. package/components/notification/notification.component.d.ts +18 -0
  108. package/components/notification/notification.module.d.ts +9 -0
  109. package/components/notification/notification.options.d.ts +17 -0
  110. package/components/options-button/index.d.ts +1 -0
  111. package/components/options-button/options-button.component.d.ts +8 -0
  112. package/components/radio/index.d.ts +2 -0
  113. package/components/radio/radio.component.d.ts +5 -0
  114. package/components/radio/radio.module.d.ts +7 -0
  115. package/components/render-dynamic-components/index.d.ts +3 -0
  116. package/components/render-dynamic-components/render-dynamic-components.component.d.ts +7 -0
  117. package/components/render-dynamic-components/render-dynamic-components.options.d.ts +7 -0
  118. package/components/render-dynamic-components/render-dynamic-components.service.d.ts +12 -0
  119. package/components/root/index.d.ts +3 -0
  120. package/components/root/root.component.d.ts +10 -0
  121. package/components/root/root.module.d.ts +11 -0
  122. package/components/root/root.options.d.ts +1 -0
  123. package/components/select/index.d.ts +2 -0
  124. package/components/select/select.component.d.ts +53 -0
  125. package/components/select/select.module.d.ts +11 -0
  126. package/components/sidebar/index.d.ts +7 -0
  127. package/components/sidebar/sidebar-container/index.d.ts +1 -0
  128. package/components/sidebar/sidebar-container/sidebar-container.component.d.ts +10 -0
  129. package/components/sidebar/sidebar-header/index.d.ts +1 -0
  130. package/components/sidebar/sidebar-header/sidebar-header.component.d.ts +12 -0
  131. package/components/sidebar/sidebar-navigation/index.d.ts +1 -0
  132. package/components/sidebar/sidebar-navigation/sidebar-navigation.component.d.ts +9 -0
  133. package/components/sidebar/sidebar-navigation-container/index.d.ts +1 -0
  134. package/components/sidebar/sidebar-navigation-container/sidebar-navigation-container.component.d.ts +8 -0
  135. package/components/sidebar/sidebar-navigation-item/index.d.ts +1 -0
  136. package/components/sidebar/sidebar-navigation-item/sidebar-navigation-item.component.d.ts +9 -0
  137. package/components/sidebar/sidebar.options.d.ts +4 -0
  138. package/components/sidebar/sidebar.service.d.ts +17 -0
  139. package/components/svg/index.d.ts +2 -0
  140. package/components/svg/svg.component.d.ts +16 -0
  141. package/components/svg/svg.module.d.ts +8 -0
  142. package/components/tab/index.d.ts +1 -0
  143. package/components/tab/tab.component.d.ts +15 -0
  144. package/components/tabs/components/abstract-tabs/abstract-tabs.component.d.ts +15 -0
  145. package/components/tabs/components/abstract-tabs/index.d.ts +1 -0
  146. package/components/tabs/components/index.d.ts +1 -0
  147. package/components/tabs/index.d.ts +5 -0
  148. package/components/tabs/services/index.d.ts +1 -0
  149. package/components/tabs/services/tabs.service.d.ts +14 -0
  150. package/components/tabs/tabs.component.d.ts +8 -0
  151. package/components/tabs/tabs.options.d.ts +21 -0
  152. package/components/tabs/tabs.provider.d.ts +3 -0
  153. package/components/textarea/index.d.ts +2 -0
  154. package/components/textarea/textarea.component.d.ts +10 -0
  155. package/components/textarea/textarea.module.d.ts +7 -0
  156. package/components/toggle/index.d.ts +2 -0
  157. package/components/toggle/toggle.component.d.ts +5 -0
  158. package/components/toggle/toggle.module.d.ts +7 -0
  159. package/directives/index.d.ts +2 -0
  160. package/directives/text-field-controller/index.d.ts +8 -0
  161. package/directives/text-field-controller/text-field-controller.module.d.ts +11 -0
  162. package/directives/text-field-controller/text-field-controller.provider.d.ts +4 -0
  163. package/directives/text-field-controller/text-field-icon-left.directive.d.ts +9 -0
  164. package/directives/text-field-controller/text-field-id.directive.d.ts +8 -0
  165. package/directives/text-field-controller/text-field-is-error.directive.d.ts +8 -0
  166. package/directives/text-field-controller/text-field-placeholder.directive.d.ts +8 -0
  167. package/directives/text-field-controller/text-field-size.directive.d.ts +9 -0
  168. package/directives/text-field-controller/text-field.controller.d.ts +20 -0
  169. package/directives/tooltip/index.d.ts +16 -0
  170. package/directives/tooltip/tooltip-describe.directive.d.ts +16 -0
  171. package/directives/tooltip/tooltip-driver.directive.d.ts +7 -0
  172. package/directives/tooltip/tooltip-host.directive.d.ts +9 -0
  173. package/directives/tooltip/tooltip-hover.directive.d.ts +21 -0
  174. package/directives/tooltip/tooltip-manual.directive.d.ts +13 -0
  175. package/directives/tooltip/tooltip-options.directive.d.ts +36 -0
  176. package/directives/tooltip/tooltip-overflow.directive.d.ts +8 -0
  177. package/directives/tooltip/tooltip-pointer.directive.d.ts +10 -0
  178. package/directives/tooltip/tooltip-position.directive.d.ts +20 -0
  179. package/directives/tooltip/tooltip-unstyled.component.d.ts +17 -0
  180. package/directives/tooltip/tooltip.component.d.ts +33 -0
  181. package/directives/tooltip/tooltip.d.ts +13 -0
  182. package/directives/tooltip/tooltip.directive.d.ts +26 -0
  183. package/directives/tooltip/tooltip.providers.d.ts +5 -0
  184. package/directives/tooltip/tooltip.service.d.ts +13 -0
  185. package/directives/tooltip/tooltips.component.d.ts +12 -0
  186. package/editor/components/editor-attaches-tool/editor-attaches-tool.component.d.ts +19 -0
  187. package/editor/components/editor-attaches-tool/editor-attaches-tool.options.d.ts +18 -0
  188. package/editor/components/editor-attaches-tool/index.d.ts +2 -0
  189. package/editor/components/editor-image-tool/editor-image-tool.component.d.ts +14 -0
  190. package/editor/components/editor-image-tool/editor-image-tool.options.d.ts +26 -0
  191. package/editor/components/editor-image-tool/index.d.ts +2 -0
  192. package/editor/components/editor-tool/editor-tool.component.d.ts +22 -0
  193. package/editor/components/editor-tool-modal/editor-tool-modal.component.d.ts +24 -0
  194. package/editor/components/editor-tool-modal/editor-tool-modal.options.d.ts +8 -0
  195. package/editor/components/editor-tool-modal/index.d.ts +2 -0
  196. package/editor/components/editor-tooltip/editor-tooltip.component.d.ts +16 -0
  197. package/editor/components/editor-tooltip/editor-tooltip.options.d.ts +9 -0
  198. package/editor/components/editor-tooltip/index.d.ts +2 -0
  199. package/editor/components/editor-video-tool/editor-video-tool.component.d.ts +12 -0
  200. package/editor/components/editor-video-tool/editor-video-tool.options.d.ts +26 -0
  201. package/editor/components/editor-video-tool/index.d.ts +2 -0
  202. package/editor/components/index.d.ts +7 -0
  203. package/editor/components/marker-modal/index.d.ts +3 -0
  204. package/editor/components/marker-modal/marker-modal.component.d.ts +62 -0
  205. package/editor/components/marker-modal/marker-modal.interfaces.d.ts +7 -0
  206. package/editor/components/marker-modal/marker-modal.options.d.ts +1 -0
  207. package/editor/components/marker-select/component/select-item/select-option.component.d.ts +7 -0
  208. package/editor/components/marker-select/index.d.ts +2 -0
  209. package/editor/components/marker-select/marker-select.component.d.ts +40 -0
  210. package/editor/components/marker-select/marker-select.options.d.ts +1 -0
  211. package/editor/config/custom-elements.d.ts +2 -0
  212. package/editor/config/editor.config.d.ts +3 -0
  213. package/editor/config/index.d.ts +1 -0
  214. package/editor/constants/editor.constants.d.ts +15 -0
  215. package/editor/constants/index.d.ts +1 -0
  216. package/editor/editor.component.d.ts +74 -0
  217. package/editor/events/editor-drag.event.d.ts +2 -0
  218. package/editor/events/editor-keyboard.event.d.ts +2 -0
  219. package/editor/events/editor-modal.event.d.ts +3 -0
  220. package/editor/events/editor-tooltip.event.d.ts +2 -0
  221. package/editor/events/set-editor-events.d.ts +1 -0
  222. package/editor/index.d.ts +9 -0
  223. package/editor/interfaces/angular-element.d.ts +2 -0
  224. package/editor/interfaces/blocks-request-data.d.ts +6 -0
  225. package/editor/interfaces/combined-block-adding-event.d.ts +7 -0
  226. package/editor/interfaces/combined-block-data.d.ts +5 -0
  227. package/editor/interfaces/combined-part-block-data.d.ts +7 -0
  228. package/editor/interfaces/custom-element.d.ts +5 -0
  229. package/editor/interfaces/editor-service.d.ts +4 -0
  230. package/editor/interfaces/event-action-data.d.ts +5 -0
  231. package/editor/interfaces/file-response-data.d.ts +15 -0
  232. package/editor/interfaces/full-block-data.d.ts +8 -0
  233. package/editor/interfaces/index.d.ts +15 -0
  234. package/editor/interfaces/main-editor-config.d.ts +12 -0
  235. package/editor/interfaces/mutation-actions.d.ts +5 -0
  236. package/editor/interfaces/parent.d.ts +4 -0
  237. package/editor/interfaces/tools.d.ts +4 -0
  238. package/editor/interfaces/tune.d.ts +6 -0
  239. package/editor/pipes/file-size.pipe.d.ts +9 -0
  240. package/editor/providers/editor.provider.d.ts +2 -0
  241. package/editor/providers/index.d.ts +1 -0
  242. package/editor/services/editor-service.options.d.ts +8 -0
  243. package/editor/services/editor.service.d.ts +23 -0
  244. package/editor/services/index.d.ts +4 -0
  245. package/editor/services/markers-service.options.d.ts +4 -0
  246. package/editor/services/markers.service.d.ts +11 -0
  247. package/editor/tools/attaches.tool.d.ts +31 -0
  248. package/editor/tools/bold.tool.d.ts +11 -0
  249. package/editor/tools/combined-text-block.tool.d.ts +48 -0
  250. package/editor/tools/custom-marker.tool.d.ts +16 -0
  251. package/editor/tools/header.tool.d.ts +8 -0
  252. package/editor/tools/image.tool.d.ts +37 -0
  253. package/editor/tools/index.d.ts +11 -0
  254. package/editor/tools/italic.tool.d.ts +12 -0
  255. package/editor/tools/link-marker.tool.d.ts +15 -0
  256. package/editor/tools/list.tool.d.ts +5 -0
  257. package/editor/tools/marker.tool.d.ts +36 -0
  258. package/editor/tools/role-marker.tool.d.ts +7 -0
  259. package/editor/tools/selection-base.tool.d.ts +24 -0
  260. package/editor/tools/tool-marker.tool.d.ts +7 -0
  261. package/editor/tools/video.tool.d.ts +32 -0
  262. package/editor/utils/copy-text-to-clipboard.d.ts +1 -0
  263. package/editor/utils/create-link-modal.d.ts +3 -0
  264. package/editor/utils/create-tool-modal.d.ts +4 -0
  265. package/editor/utils/create-tools-data.d.ts +3 -0
  266. package/editor/utils/create-tooltip.d.ts +8 -0
  267. package/editor/utils/file-uploader.d.ts +27 -0
  268. package/editor/utils/generate-id.d.ts +1 -0
  269. package/editor/utils/index.d.ts +12 -0
  270. package/editor/utils/open-file-in-browser.d.ts +2 -0
  271. package/editor/utils/recalculate-indexes.d.ts +2 -0
  272. package/editor/utils/remove-element-tag-wrapper.d.ts +1 -0
  273. package/editor/utils/set-loading.d.ts +2 -0
  274. package/editor/utils/split-html.d.ts +1 -0
  275. package/editor/utils/url.validator.d.ts +2 -0
  276. package/editor/widgets/editor-block/editor-block.component.d.ts +22 -0
  277. package/editor/widgets/editor-block/index.d.ts +1 -0
  278. package/editor/widgets/editor-modal/editor-modal.component.d.ts +19 -0
  279. package/editor/widgets/editor-modal/index.d.ts +1 -0
  280. package/editor/widgets/editor-readonly/editor-readonly.component.d.ts +27 -0
  281. package/editor/widgets/editor-readonly/editor-readonly.options.d.ts +5 -0
  282. package/editor/widgets/editor-readonly/editor-resize-observer.directive.d.ts +15 -0
  283. package/editor/widgets/editor-readonly/index.d.ts +2 -0
  284. package/editor/widgets/index.d.ts +3 -0
  285. package/esm2022/animations/animations.mjs +228 -0
  286. package/esm2022/animations/index.mjs +2 -0
  287. package/esm2022/classes/accessors.mjs +31 -0
  288. package/esm2022/classes/driver.mjs +35 -0
  289. package/esm2022/classes/index.mjs +4 -0
  290. package/esm2022/classes/vehicle.mjs +7 -0
  291. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +37 -0
  292. package/esm2022/components/accordion/accordion-item/accordion-item.options.mjs +2 -0
  293. package/esm2022/components/accordion/accordion.component.mjs +11 -0
  294. package/esm2022/components/accordion/accordion.directive.mjs +56 -0
  295. package/esm2022/components/accordion/accordion.module.mjs +21 -0
  296. package/esm2022/components/accordion/index.mjs +5 -0
  297. package/esm2022/components/alert/alert.component.mjs +36 -0
  298. package/esm2022/components/alert/alert.interfaces.mjs +2 -0
  299. package/esm2022/components/alert/alert.module.mjs +21 -0
  300. package/esm2022/components/alert/alert.service.mjs +17 -0
  301. package/esm2022/components/alert/alert.tokens.mjs +20 -0
  302. package/esm2022/components/alert/alert.types.mjs +2 -0
  303. package/esm2022/components/alert/alerts.component.mjs +34 -0
  304. package/esm2022/components/alert/index.mjs +9 -0
  305. package/esm2022/components/alert-hint/alert-hint.component.mjs +28 -0
  306. package/esm2022/components/alert-hint/error-status.mjs +2 -0
  307. package/esm2022/components/alert-hint/index.mjs +2 -0
  308. package/esm2022/components/badge/badge.component.mjs +31 -0
  309. package/esm2022/components/badge/badge.module.mjs +18 -0
  310. package/esm2022/components/badge/badge.options.mjs +8 -0
  311. package/esm2022/components/badge/index.mjs +3 -0
  312. package/esm2022/components/banner/banner.component.mjs +68 -0
  313. package/esm2022/components/banner/banner.module.mjs +21 -0
  314. package/esm2022/components/banner/banner.options.mjs +6 -0
  315. package/esm2022/components/banner/index.mjs +4 -0
  316. package/esm2022/components/breadcrumbs/breadcrumb/breadcrumb.component.mjs +16 -0
  317. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +17 -0
  318. package/esm2022/components/breadcrumbs/breadcrumbs.module.mjs +20 -0
  319. package/esm2022/components/breadcrumbs/index.mjs +4 -0
  320. package/esm2022/components/button/button.component.mjs +133 -0
  321. package/esm2022/components/button/button.module.mjs +19 -0
  322. package/esm2022/components/button/button.options.mjs +11 -0
  323. package/esm2022/components/button/index.mjs +4 -0
  324. package/esm2022/components/button-group/button-group.component.mjs +11 -0
  325. package/esm2022/components/button-group/button-group.module.mjs +16 -0
  326. package/esm2022/components/button-group/index.mjs +3 -0
  327. package/esm2022/components/card-wrapper/card-wrapper.component.mjs +18 -0
  328. package/esm2022/components/card-wrapper/index.mjs +2 -0
  329. package/esm2022/components/checkbox/checkbox.component.mjs +11 -0
  330. package/esm2022/components/checkbox/checkbox.module.mjs +16 -0
  331. package/esm2022/components/checkbox/index.mjs +3 -0
  332. package/esm2022/components/content-header/content-header.component.mjs +19 -0
  333. package/esm2022/components/content-header/index.mjs +2 -0
  334. package/esm2022/components/content-wrapper/content-wrapper.component.mjs +29 -0
  335. package/esm2022/components/content-wrapper/index.mjs +2 -0
  336. package/esm2022/components/context-menu/context-menu.component.mjs +148 -0
  337. package/esm2022/components/context-menu/context-menu.module.mjs +19 -0
  338. package/esm2022/components/context-menu/index.mjs +3 -0
  339. package/esm2022/components/dialog/dialog-actions/dialog-actions.component.mjs +11 -0
  340. package/esm2022/components/dialog/dialog-header/dialog-header.component.mjs +28 -0
  341. package/esm2022/components/dialog/dialog.component.mjs +67 -0
  342. package/esm2022/components/dialog/dialog.interfaces.mjs +2 -0
  343. package/esm2022/components/dialog/dialog.module.mjs +24 -0
  344. package/esm2022/components/dialog/dialog.service.mjs +17 -0
  345. package/esm2022/components/dialog/dialog.tokens.mjs +12 -0
  346. package/esm2022/components/dialog/dialogs.component.mjs +49 -0
  347. package/esm2022/components/dialog/index.mjs +9 -0
  348. package/esm2022/components/dropdown/dropdown-wrapper.component.mjs +23 -0
  349. package/esm2022/components/dropdown/dropdown.directive.mjs +182 -0
  350. package/esm2022/components/dropdown/dropdown.interfaces.mjs +2 -0
  351. package/esm2022/components/dropdown/index.mjs +3 -0
  352. package/esm2022/components/empty-state/empty-state.component.mjs +17 -0
  353. package/esm2022/components/empty-state/index.mjs +2 -0
  354. package/esm2022/components/file-icon/file-icon.component.mjs +22 -0
  355. package/esm2022/components/file-icon/file-icon.options.mjs +120 -0
  356. package/esm2022/components/file-icon/index.mjs +2 -0
  357. package/esm2022/components/form-field/form-field.component.mjs +11 -0
  358. package/esm2022/components/form-field/form-field.module.mjs +16 -0
  359. package/esm2022/components/form-field/index.mjs +3 -0
  360. package/esm2022/components/ghost-input/ghost-input.component.mjs +16 -0
  361. package/esm2022/components/ghost-input/index.mjs +2 -0
  362. package/esm2022/components/hint/hint.component.mjs +19 -0
  363. package/esm2022/components/hint/hint.module.mjs +16 -0
  364. package/esm2022/components/hint/index.mjs +3 -0
  365. package/esm2022/components/icon-button/icon-button.component.mjs +32 -0
  366. package/esm2022/components/icon-button/icon-button.module.mjs +19 -0
  367. package/esm2022/components/icon-button/index.mjs +3 -0
  368. package/esm2022/components/index.mjs +42 -0
  369. package/esm2022/components/input-number/index.mjs +3 -0
  370. package/esm2022/components/input-number/input-number.component.mjs +107 -0
  371. package/esm2022/components/input-number/input-number.module.mjs +22 -0
  372. package/esm2022/components/input-password/index.mjs +3 -0
  373. package/esm2022/components/input-password/input-password.component.mjs +83 -0
  374. package/esm2022/components/input-password/input-password.module.mjs +21 -0
  375. package/esm2022/components/input-text/index.mjs +3 -0
  376. package/esm2022/components/input-text/input-text.component.mjs +81 -0
  377. package/esm2022/components/input-text/input-text.module.mjs +21 -0
  378. package/esm2022/components/input-time/index.mjs +4 -0
  379. package/esm2022/components/input-time/input-time.component.mjs +93 -0
  380. package/esm2022/components/input-time/input-time.module.mjs +22 -0
  381. package/esm2022/components/input-time/input-time.options.mjs +8 -0
  382. package/esm2022/components/label/index.mjs +3 -0
  383. package/esm2022/components/label/label.component.mjs +17 -0
  384. package/esm2022/components/label/label.module.mjs +18 -0
  385. package/esm2022/components/layout/index.mjs +2 -0
  386. package/esm2022/components/layout/layout.component.mjs +16 -0
  387. package/esm2022/components/letter-box/index.mjs +2 -0
  388. package/esm2022/components/letter-box/letter-box.component.mjs +43 -0
  389. package/esm2022/components/letter-box/letter-box.interfaces.mjs +2 -0
  390. package/esm2022/components/notification/index.mjs +4 -0
  391. package/esm2022/components/notification/notification.component.mjs +47 -0
  392. package/esm2022/components/notification/notification.module.mjs +19 -0
  393. package/esm2022/components/notification/notification.options.mjs +53 -0
  394. package/esm2022/components/options-button/index.mjs +2 -0
  395. package/esm2022/components/options-button/options-button.component.mjs +20 -0
  396. package/esm2022/components/radio/index.mjs +3 -0
  397. package/esm2022/components/radio/radio.component.mjs +11 -0
  398. package/esm2022/components/radio/radio.module.mjs +16 -0
  399. package/esm2022/components/render-dynamic-components/index.mjs +3 -0
  400. package/esm2022/components/render-dynamic-components/render-dynamic-components.component.mjs +17 -0
  401. package/esm2022/components/render-dynamic-components/render-dynamic-components.options.mjs +2 -0
  402. package/esm2022/components/render-dynamic-components/render-dynamic-components.service.mjs +29 -0
  403. package/esm2022/components/root/index.mjs +4 -0
  404. package/esm2022/components/root/root.component.mjs +27 -0
  405. package/esm2022/components/root/root.module.mjs +21 -0
  406. package/esm2022/components/root/root.options.mjs +2 -0
  407. package/esm2022/components/select/index.mjs +3 -0
  408. package/esm2022/components/select/select.component.mjs +171 -0
  409. package/esm2022/components/select/select.module.mjs +21 -0
  410. package/esm2022/components/sidebar/index.mjs +7 -0
  411. package/esm2022/components/sidebar/sidebar-container/index.mjs +2 -0
  412. package/esm2022/components/sidebar/sidebar-container/sidebar-container.component.mjs +30 -0
  413. package/esm2022/components/sidebar/sidebar-header/index.mjs +2 -0
  414. package/esm2022/components/sidebar/sidebar-header/sidebar-header.component.mjs +27 -0
  415. package/esm2022/components/sidebar/sidebar-navigation/index.mjs +2 -0
  416. package/esm2022/components/sidebar/sidebar-navigation/sidebar-navigation.component.mjs +16 -0
  417. package/esm2022/components/sidebar/sidebar-navigation-container/index.mjs +2 -0
  418. package/esm2022/components/sidebar/sidebar-navigation-container/sidebar-navigation-container.component.mjs +16 -0
  419. package/esm2022/components/sidebar/sidebar-navigation-item/index.mjs +2 -0
  420. package/esm2022/components/sidebar/sidebar-navigation-item/sidebar-navigation-item.component.mjs +21 -0
  421. package/esm2022/components/sidebar/sidebar.options.mjs +2 -0
  422. package/esm2022/components/sidebar/sidebar.service.mjs +39 -0
  423. package/esm2022/components/svg/index.mjs +3 -0
  424. package/esm2022/components/svg/svg.component.mjs +48 -0
  425. package/esm2022/components/svg/svg.module.mjs +18 -0
  426. package/esm2022/components/tab/index.mjs +2 -0
  427. package/esm2022/components/tab/tab.component.mjs +36 -0
  428. package/esm2022/components/tabs/components/abstract-tabs/abstract-tabs.component.mjs +40 -0
  429. package/esm2022/components/tabs/components/abstract-tabs/index.mjs +2 -0
  430. package/esm2022/components/tabs/components/index.mjs +2 -0
  431. package/esm2022/components/tabs/index.mjs +6 -0
  432. package/esm2022/components/tabs/services/index.mjs +2 -0
  433. package/esm2022/components/tabs/services/tabs.service.mjs +27 -0
  434. package/esm2022/components/tabs/tabs.component.mjs +17 -0
  435. package/esm2022/components/tabs/tabs.options.mjs +5 -0
  436. package/esm2022/components/tabs/tabs.provider.mjs +9 -0
  437. package/esm2022/components/textarea/index.mjs +3 -0
  438. package/esm2022/components/textarea/textarea.component.mjs +35 -0
  439. package/esm2022/components/textarea/textarea.module.mjs +16 -0
  440. package/esm2022/components/toggle/index.mjs +3 -0
  441. package/esm2022/components/toggle/toggle.component.mjs +11 -0
  442. package/esm2022/components/toggle/toggle.module.mjs +16 -0
  443. package/esm2022/cuby-ui-core.mjs +5 -0
  444. package/esm2022/directives/index.mjs +3 -0
  445. package/esm2022/directives/text-field-controller/index.mjs +9 -0
  446. package/esm2022/directives/text-field-controller/text-field-controller.module.mjs +40 -0
  447. package/esm2022/directives/text-field-controller/text-field-controller.provider.mjs +24 -0
  448. package/esm2022/directives/text-field-controller/text-field-icon-left.directive.mjs +21 -0
  449. package/esm2022/directives/text-field-controller/text-field-id.directive.mjs +21 -0
  450. package/esm2022/directives/text-field-controller/text-field-is-error.directive.mjs +24 -0
  451. package/esm2022/directives/text-field-controller/text-field-placeholder.directive.mjs +21 -0
  452. package/esm2022/directives/text-field-controller/text-field-size.directive.mjs +24 -0
  453. package/esm2022/directives/text-field-controller/text-field.controller.mjs +25 -0
  454. package/esm2022/directives/tooltip/index.mjs +17 -0
  455. package/esm2022/directives/tooltip/tooltip-describe.directive.mjs +47 -0
  456. package/esm2022/directives/tooltip/tooltip-driver.directive.mjs +18 -0
  457. package/esm2022/directives/tooltip/tooltip-host.directive.mjs +26 -0
  458. package/esm2022/directives/tooltip/tooltip-hover.directive.mjs +50 -0
  459. package/esm2022/directives/tooltip/tooltip-manual.directive.mjs +31 -0
  460. package/esm2022/directives/tooltip/tooltip-options.directive.mjs +83 -0
  461. package/esm2022/directives/tooltip/tooltip-overflow.directive.mjs +31 -0
  462. package/esm2022/directives/tooltip/tooltip-pointer.directive.mjs +31 -0
  463. package/esm2022/directives/tooltip/tooltip-position.directive.mjs +91 -0
  464. package/esm2022/directives/tooltip/tooltip-unstyled.component.mjs +40 -0
  465. package/esm2022/directives/tooltip/tooltip.component.mjs +109 -0
  466. package/esm2022/directives/tooltip/tooltip.directive.mjs +92 -0
  467. package/esm2022/directives/tooltip/tooltip.mjs +27 -0
  468. package/esm2022/directives/tooltip/tooltip.providers.mjs +7 -0
  469. package/esm2022/directives/tooltip/tooltip.service.mjs +28 -0
  470. package/esm2022/directives/tooltip/tooltips.component.mjs +33 -0
  471. package/esm2022/editor/components/editor-attaches-tool/editor-attaches-tool.component.mjs +60 -0
  472. package/esm2022/editor/components/editor-attaches-tool/editor-attaches-tool.options.mjs +2 -0
  473. package/esm2022/editor/components/editor-attaches-tool/index.mjs +3 -0
  474. package/esm2022/editor/components/editor-image-tool/editor-image-tool.component.mjs +43 -0
  475. package/esm2022/editor/components/editor-image-tool/editor-image-tool.options.mjs +2 -0
  476. package/esm2022/editor/components/editor-image-tool/index.mjs +3 -0
  477. package/esm2022/editor/components/editor-tool/editor-tool.component.mjs +74 -0
  478. package/esm2022/editor/components/editor-tool-modal/editor-tool-modal.component.mjs +69 -0
  479. package/esm2022/editor/components/editor-tool-modal/editor-tool-modal.options.mjs +2 -0
  480. package/esm2022/editor/components/editor-tool-modal/index.mjs +3 -0
  481. package/esm2022/editor/components/editor-tooltip/editor-tooltip.component.mjs +45 -0
  482. package/esm2022/editor/components/editor-tooltip/editor-tooltip.options.mjs +2 -0
  483. package/esm2022/editor/components/editor-tooltip/index.mjs +3 -0
  484. package/esm2022/editor/components/editor-video-tool/editor-video-tool.component.mjs +41 -0
  485. package/esm2022/editor/components/editor-video-tool/editor-video-tool.options.mjs +2 -0
  486. package/esm2022/editor/components/editor-video-tool/index.mjs +3 -0
  487. package/esm2022/editor/components/index.mjs +8 -0
  488. package/esm2022/editor/components/marker-modal/index.mjs +3 -0
  489. package/esm2022/editor/components/marker-modal/marker-modal.component.mjs +261 -0
  490. package/esm2022/editor/components/marker-modal/marker-modal.interfaces.mjs +2 -0
  491. package/esm2022/editor/components/marker-modal/marker-modal.options.mjs +2 -0
  492. package/esm2022/editor/components/marker-select/component/select-item/select-option.component.mjs +15 -0
  493. package/esm2022/editor/components/marker-select/index.mjs +3 -0
  494. package/esm2022/editor/components/marker-select/marker-select.component.mjs +155 -0
  495. package/esm2022/editor/components/marker-select/marker-select.options.mjs +2 -0
  496. package/esm2022/editor/config/custom-elements.mjs +32 -0
  497. package/esm2022/editor/config/editor.config.mjs +30 -0
  498. package/esm2022/editor/config/index.mjs +2 -0
  499. package/esm2022/editor/constants/editor.constants.mjs +20 -0
  500. package/esm2022/editor/constants/index.mjs +2 -0
  501. package/esm2022/editor/editor.component.mjs +393 -0
  502. package/esm2022/editor/events/editor-drag.event.mjs +7 -0
  503. package/esm2022/editor/events/editor-keyboard.event.mjs +33 -0
  504. package/esm2022/editor/events/editor-modal.event.mjs +31 -0
  505. package/esm2022/editor/events/editor-tooltip.event.mjs +63 -0
  506. package/esm2022/editor/events/set-editor-events.mjs +11 -0
  507. package/esm2022/editor/i18n/en.json +14 -0
  508. package/esm2022/editor/index.mjs +8 -0
  509. package/esm2022/editor/interfaces/angular-element.mjs +2 -0
  510. package/esm2022/editor/interfaces/blocks-request-data.mjs +2 -0
  511. package/esm2022/editor/interfaces/combined-block-adding-event.mjs +2 -0
  512. package/esm2022/editor/interfaces/combined-block-data.mjs +2 -0
  513. package/esm2022/editor/interfaces/combined-part-block-data.mjs +2 -0
  514. package/esm2022/editor/interfaces/custom-element.mjs +2 -0
  515. package/esm2022/editor/interfaces/editor-service.mjs +2 -0
  516. package/esm2022/editor/interfaces/event-action-data.mjs +2 -0
  517. package/esm2022/editor/interfaces/file-response-data.mjs +2 -0
  518. package/esm2022/editor/interfaces/full-block-data.mjs +2 -0
  519. package/esm2022/editor/interfaces/index.mjs +15 -0
  520. package/esm2022/editor/interfaces/main-editor-config.mjs +2 -0
  521. package/esm2022/editor/interfaces/mutation-actions.mjs +2 -0
  522. package/esm2022/editor/interfaces/parent.mjs +2 -0
  523. package/esm2022/editor/interfaces/tools.mjs +2 -0
  524. package/esm2022/editor/interfaces/tune.mjs +2 -0
  525. package/esm2022/editor/pipes/file-size.pipe.mjs +25 -0
  526. package/esm2022/editor/providers/editor.provider.mjs +19 -0
  527. package/esm2022/editor/providers/index.mjs +2 -0
  528. package/esm2022/editor/services/editor-service.options.mjs +4 -0
  529. package/esm2022/editor/services/editor.service.mjs +138 -0
  530. package/esm2022/editor/services/index.mjs +5 -0
  531. package/esm2022/editor/services/markers-service.options.mjs +2 -0
  532. package/esm2022/editor/services/markers.service.mjs +79 -0
  533. package/esm2022/editor/tools/attaches.tool.mjs +102 -0
  534. package/esm2022/editor/tools/bold.tool.mjs +33 -0
  535. package/esm2022/editor/tools/combined-text-block.tool.mjs +363 -0
  536. package/esm2022/editor/tools/custom-marker.tool.mjs +88 -0
  537. package/esm2022/editor/tools/header.tool.mjs +16 -0
  538. package/esm2022/editor/tools/image.tool.mjs +157 -0
  539. package/esm2022/editor/tools/index.mjs +12 -0
  540. package/esm2022/editor/tools/italic.tool.mjs +35 -0
  541. package/esm2022/editor/tools/link-marker.tool.mjs +80 -0
  542. package/esm2022/editor/tools/list.tool.mjs +10 -0
  543. package/esm2022/editor/tools/marker.tool.mjs +144 -0
  544. package/esm2022/editor/tools/role-marker.tool.mjs +17 -0
  545. package/esm2022/editor/tools/selection-base.tool.mjs +92 -0
  546. package/esm2022/editor/tools/tool-marker.tool.mjs +14 -0
  547. package/esm2022/editor/tools/video.tool.mjs +132 -0
  548. package/esm2022/editor/utils/copy-text-to-clipboard.mjs +17 -0
  549. package/esm2022/editor/utils/create-link-modal.mjs +22 -0
  550. package/esm2022/editor/utils/create-tool-modal.mjs +45 -0
  551. package/esm2022/editor/utils/create-tools-data.mjs +56 -0
  552. package/esm2022/editor/utils/create-tooltip.mjs +43 -0
  553. package/esm2022/editor/utils/file-uploader.mjs +60 -0
  554. package/esm2022/editor/utils/generate-id.mjs +4 -0
  555. package/esm2022/editor/utils/index.mjs +13 -0
  556. package/esm2022/editor/utils/open-file-in-browser.mjs +9 -0
  557. package/esm2022/editor/utils/recalculate-indexes.mjs +32 -0
  558. package/esm2022/editor/utils/remove-element-tag-wrapper.mjs +11 -0
  559. package/esm2022/editor/utils/set-loading.mjs +14 -0
  560. package/esm2022/editor/utils/split-html.mjs +128 -0
  561. package/esm2022/editor/utils/url.validator.mjs +12 -0
  562. package/esm2022/editor/widgets/editor-block/editor-block.component.mjs +63 -0
  563. package/esm2022/editor/widgets/editor-block/index.mjs +2 -0
  564. package/esm2022/editor/widgets/editor-modal/editor-modal.component.mjs +42 -0
  565. package/esm2022/editor/widgets/editor-modal/index.mjs +2 -0
  566. package/esm2022/editor/widgets/editor-readonly/editor-readonly.component.mjs +36 -0
  567. package/esm2022/editor/widgets/editor-readonly/editor-readonly.options.mjs +2 -0
  568. package/esm2022/editor/widgets/editor-readonly/editor-resize-observer.directive.mjs +51 -0
  569. package/esm2022/editor/widgets/editor-readonly/index.mjs +2 -0
  570. package/esm2022/editor/widgets/index.mjs +4 -0
  571. package/esm2022/index.mjs +12 -0
  572. package/esm2022/interceptors/auth.interceptor.mjs +15 -0
  573. package/esm2022/interceptors/error-handler.interceptor.mjs +23 -0
  574. package/esm2022/interceptors/index.mjs +6 -0
  575. package/esm2022/interceptors/loader.interceptor.mjs +12 -0
  576. package/esm2022/interceptors/sse-stream-reader.interceptor.mjs +78 -0
  577. package/esm2022/interceptors/x-ndjson.interceptor.mjs +48 -0
  578. package/esm2022/interfaces/context-menu-item.mjs +2 -0
  579. package/esm2022/interfaces/error-notification-service.mjs +2 -0
  580. package/esm2022/interfaces/error-stategy.mjs +2 -0
  581. package/esm2022/interfaces/image.mjs +2 -0
  582. package/esm2022/interfaces/index.mjs +6 -0
  583. package/esm2022/interfaces/option.mjs +2 -0
  584. package/esm2022/operators/handle-error.mjs +12 -0
  585. package/esm2022/operators/index.mjs +2 -0
  586. package/esm2022/providers/auth.options.mjs +3 -0
  587. package/esm2022/providers/auth.provider.mjs +31 -0
  588. package/esm2022/providers/error-handler.options.mjs +2 -0
  589. package/esm2022/providers/error-handler.provider.mjs +23 -0
  590. package/esm2022/providers/index.mjs +4 -0
  591. package/esm2022/services/auth.service.mjs +31 -0
  592. package/esm2022/services/browser-auth.service.mjs +31 -0
  593. package/esm2022/services/error-resolver-factory.service.mjs +75 -0
  594. package/esm2022/services/global-handler-error.service.mjs +26 -0
  595. package/esm2022/services/index.mjs +10 -0
  596. package/esm2022/services/loader.options.mjs +6 -0
  597. package/esm2022/services/loader.service.mjs +60 -0
  598. package/esm2022/services/mobile-auth.service.mjs +25 -0
  599. package/esm2022/services/position.service.mjs +23 -0
  600. package/esm2022/services/theme.options.mjs +6 -0
  601. package/esm2022/services/theme.service.mjs +30 -0
  602. package/esm2022/services/token.options.mjs +2 -0
  603. package/esm2022/services/token.service.mjs +121 -0
  604. package/esm2022/services/visual-viewport.service.mjs +28 -0
  605. package/esm2022/tokens/animations-speed.mjs +8 -0
  606. package/esm2022/tokens/error-notification-service.mjs +15 -0
  607. package/esm2022/tokens/error-translation-prefix.mjs +6 -0
  608. package/esm2022/tokens/index.mjs +6 -0
  609. package/esm2022/tokens/reduced-motion.mjs +5 -0
  610. package/esm2022/tokens/viewport.mjs +31 -0
  611. package/esm2022/types/appearance.mjs +2 -0
  612. package/esm2022/types/button-theme.mjs +2 -0
  613. package/esm2022/types/hint-type.mjs +2 -0
  614. package/esm2022/types/index.mjs +11 -0
  615. package/esm2022/types/point.mjs +2 -0
  616. package/esm2022/types/portal-item.mjs +2 -0
  617. package/esm2022/types/position.mjs +2 -0
  618. package/esm2022/types/resizing.mjs +2 -0
  619. package/esm2022/types/shape.mjs +2 -0
  620. package/esm2022/types/size.mjs +2 -0
  621. package/esm2022/types/status.mjs +2 -0
  622. package/esm2022/utils/check-fixed-position.mjs +7 -0
  623. package/esm2022/utils/default-validators/create-default-validators.mjs +19 -0
  624. package/esm2022/utils/default-validators/create-default-validators.options.mjs +2 -0
  625. package/esm2022/utils/default-validators/extra-spaces.options.mjs +11 -0
  626. package/esm2022/utils/default-validators/extra-spaces.validators.mjs +11 -0
  627. package/esm2022/utils/default-validators/index.mjs +2 -0
  628. package/esm2022/utils/format/index.mjs +3 -0
  629. package/esm2022/utils/format/remove-spaces.mjs +4 -0
  630. package/esm2022/utils/format/replace.mjs +5 -0
  631. package/esm2022/utils/index.mjs +5 -0
  632. package/esm2022/utils/miscellaneous/index.mjs +4 -0
  633. package/esm2022/utils/miscellaneous/is-obscured.mjs +8 -0
  634. package/esm2022/utils/miscellaneous/override-options.mjs +11 -0
  635. package/esm2022/utils/miscellaneous/to-animation-options.mjs +14 -0
  636. package/esm2022/widgets/assets/constants/index.mjs +2 -0
  637. package/esm2022/widgets/assets/constants/translations.mjs +5 -0
  638. package/esm2022/widgets/assets/i18n/en.json +45 -0
  639. package/esm2022/widgets/assets/i18n/ru.json +45 -0
  640. package/esm2022/widgets/assets/index.mjs +2 -0
  641. package/esm2022/widgets/index.mjs +5 -0
  642. package/esm2022/widgets/model/circle-loader-size.type.mjs +2 -0
  643. package/esm2022/widgets/model/index.mjs +11 -0
  644. package/esm2022/widgets/model/resource-state-service.interface.mjs +2 -0
  645. package/esm2022/widgets/model/resource-state-service.token.mjs +3 -0
  646. package/esm2022/widgets/model/resources-block.options.mjs +2 -0
  647. package/esm2022/widgets/model/subject-modal-service.interface.mjs +2 -0
  648. package/esm2022/widgets/model/subject-modal-service.token.mjs +3 -0
  649. package/esm2022/widgets/model/used-elements-service.interface.mjs +2 -0
  650. package/esm2022/widgets/model/used-elements-service.token.mjs +3 -0
  651. package/esm2022/widgets/model/utility-service.interface.mjs +2 -0
  652. package/esm2022/widgets/model/utility-service.token.mjs +3 -0
  653. package/esm2022/widgets/service/index.mjs +5 -0
  654. package/esm2022/widgets/service/resource-state-base.service.mjs +19 -0
  655. package/esm2022/widgets/service/subject-modal-base.service.mjs +15 -0
  656. package/esm2022/widgets/service/used-elements-base.service.mjs +17 -0
  657. package/esm2022/widgets/service/utility-base.service.mjs +129 -0
  658. package/esm2022/widgets/ui/assignee-role-item/assignee-role-item.component.mjs +31 -0
  659. package/esm2022/widgets/ui/assignee-role-item/index.mjs +2 -0
  660. package/esm2022/widgets/ui/assignee-roles-tabs/assignee-roles-tabs.component.mjs +48 -0
  661. package/esm2022/widgets/ui/assignee-roles-tabs/index.mjs +2 -0
  662. package/esm2022/widgets/ui/button-change-theme/button-change-theme.component.mjs +27 -0
  663. package/esm2022/widgets/ui/button-change-theme/index.mjs +2 -0
  664. package/esm2022/widgets/ui/categories/categories.component.mjs +78 -0
  665. package/esm2022/widgets/ui/categories/components/categories-list/categories-list.component.mjs +17 -0
  666. package/esm2022/widgets/ui/categories/components/categories-list/index.mjs +2 -0
  667. package/esm2022/widgets/ui/categories/components/category-form/category-form.component.mjs +79 -0
  668. package/esm2022/widgets/ui/categories/components/category-form/index.mjs +2 -0
  669. package/esm2022/widgets/ui/categories/components/category-item/category-item.component.mjs +126 -0
  670. package/esm2022/widgets/ui/categories/components/category-item/index.mjs +2 -0
  671. package/esm2022/widgets/ui/categories/components/create-category-item/create-category-item.component.mjs +25 -0
  672. package/esm2022/widgets/ui/categories/components/create-category-item/index.mjs +2 -0
  673. package/esm2022/widgets/ui/categories/components/index.mjs +3 -0
  674. package/esm2022/widgets/ui/categories/index.mjs +3 -0
  675. package/esm2022/widgets/ui/categories/services/index.mjs +2 -0
  676. package/esm2022/widgets/ui/categories/services/selected-category.service.mjs +38 -0
  677. package/esm2022/widgets/ui/checklist-block/checklist-block.component.mjs +75 -0
  678. package/esm2022/widgets/ui/checklist-block/checklist-block.options.mjs +2 -0
  679. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list/checklist-block-list.component.mjs +85 -0
  680. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list/index.mjs +2 -0
  681. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/checklist-block-list-item-action-card.component.mjs +133 -0
  682. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/index.mjs +2 -0
  683. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/checklist-block-list-item-action-with-verification.component.mjs +45 -0
  684. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/index.mjs +2 -0
  685. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/checklist-block-list-item-action-without-verification.component.mjs +35 -0
  686. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/index.mjs +2 -0
  687. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.mjs +152 -0
  688. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.options.mjs +2 -0
  689. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/index.mjs +2 -0
  690. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.component.mjs +282 -0
  691. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.options.mjs +2 -0
  692. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/index.mjs +2 -0
  693. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.component.mjs +117 -0
  694. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.options.mjs +2 -0
  695. package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/index.mjs +2 -0
  696. package/esm2022/widgets/ui/checklist-block/components/checklist-block-title-control/checklist-block-title-control.component.mjs +39 -0
  697. package/esm2022/widgets/ui/checklist-block/components/checklist-block-title-control/index.mjs +2 -0
  698. package/esm2022/widgets/ui/checklist-block/components/index.mjs +2 -0
  699. package/esm2022/widgets/ui/checklist-block/index.mjs +2 -0
  700. package/esm2022/widgets/ui/checklist-block/services/checklist-block.service.mjs +50 -0
  701. package/esm2022/widgets/ui/checklist-block/services/index.mjs +2 -0
  702. package/esm2022/widgets/ui/circle-loader/circle-loader.component.mjs +20 -0
  703. package/esm2022/widgets/ui/circle-loader/index.mjs +2 -0
  704. package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/consumable-form-item.component.mjs +78 -0
  705. package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/default-control-delay.mjs +2 -0
  706. package/esm2022/widgets/ui/consumable-form/components/consumable-form-item/index.mjs +3 -0
  707. package/esm2022/widgets/ui/consumable-form/components/consumable-form-item-readonly/consumable-form-item-readonly.component.mjs +17 -0
  708. package/esm2022/widgets/ui/consumable-form/components/consumable-form-item-readonly/index.mjs +2 -0
  709. package/esm2022/widgets/ui/consumable-form/components/index.mjs +4 -0
  710. package/esm2022/widgets/ui/consumable-form/consumable-form.component.mjs +184 -0
  711. package/esm2022/widgets/ui/consumable-form/consumable-form.options.mjs +2 -0
  712. package/esm2022/widgets/ui/consumable-form/index.mjs +2 -0
  713. package/esm2022/widgets/ui/criterion-info/criterion-info.component.mjs +137 -0
  714. package/esm2022/widgets/ui/criterion-info/index.mjs +2 -0
  715. package/esm2022/widgets/ui/criterion-info-form/criterion-info-form.component.mjs +147 -0
  716. package/esm2022/widgets/ui/criterion-info-form/criterion-info-form.options.mjs +2 -0
  717. package/esm2022/widgets/ui/criterion-info-form/index.mjs +2 -0
  718. package/esm2022/widgets/ui/criterion-readonly-info/criterion-readonly-info.component.mjs +72 -0
  719. package/esm2022/widgets/ui/criterion-readonly-info/index.mjs +2 -0
  720. package/esm2022/widgets/ui/delete-modal/delete-modal.component.mjs +39 -0
  721. package/esm2022/widgets/ui/delete-modal/delete-modal.options.mjs +2 -0
  722. package/esm2022/widgets/ui/delete-modal/index.mjs +2 -0
  723. package/esm2022/widgets/ui/framer-preview/framer-preview.component.mjs +77 -0
  724. package/esm2022/widgets/ui/framer-preview/framer-preview.options.mjs +2 -0
  725. package/esm2022/widgets/ui/framer-preview/index.mjs +2 -0
  726. package/esm2022/widgets/ui/general-control-error-hint/general-control-error-hint.component.mjs +21 -0
  727. package/esm2022/widgets/ui/general-control-error-hint/index.mjs +2 -0
  728. package/esm2022/widgets/ui/index.mjs +30 -0
  729. package/esm2022/widgets/ui/inserted/index.mjs +2 -0
  730. package/esm2022/widgets/ui/inserted/inserted.component.mjs +17 -0
  731. package/esm2022/widgets/ui/instruction-info/index.mjs +2 -0
  732. package/esm2022/widgets/ui/instruction-info/instruction-info.component.mjs +147 -0
  733. package/esm2022/widgets/ui/instruction-info-form/index.mjs +2 -0
  734. package/esm2022/widgets/ui/instruction-info-form/instruction-info-form.component.mjs +153 -0
  735. package/esm2022/widgets/ui/instruction-info-form/instruction-info-form.options.mjs +2 -0
  736. package/esm2022/widgets/ui/instruction-readonly-info/index.mjs +2 -0
  737. package/esm2022/widgets/ui/instruction-readonly-info/instruction-readonly-info.component.mjs +72 -0
  738. package/esm2022/widgets/ui/linear-loader/index.mjs +2 -0
  739. package/esm2022/widgets/ui/linear-loader/linear-loader.component.mjs +11 -0
  740. package/esm2022/widgets/ui/modal-criteria-tab/index.mjs +2 -0
  741. package/esm2022/widgets/ui/modal-criteria-tab/modal-criteria-tab.component.mjs +45 -0
  742. package/esm2022/widgets/ui/modal-divided-section/index.mjs +3 -0
  743. package/esm2022/widgets/ui/modal-divided-section/modal-divided-section.component.mjs +58 -0
  744. package/esm2022/widgets/ui/modal-divided-section/modal-divided-section.interfaces.mjs +2 -0
  745. package/esm2022/widgets/ui/modal-header/index.mjs +2 -0
  746. package/esm2022/widgets/ui/modal-header/modal-header.component.mjs +31 -0
  747. package/esm2022/widgets/ui/modal-header-inserted-buttons/index.mjs +2 -0
  748. package/esm2022/widgets/ui/modal-header-inserted-buttons/modal-header-inserted-buttons.component.mjs +22 -0
  749. package/esm2022/widgets/ui/modal-header-tabs/index.mjs +2 -0
  750. package/esm2022/widgets/ui/modal-header-tabs/modal-header-tabs.component.mjs +19 -0
  751. package/esm2022/widgets/ui/modal-info-tab/index.mjs +3 -0
  752. package/esm2022/widgets/ui/modal-info-tab/modal-info-tab.component.mjs +19 -0
  753. package/esm2022/widgets/ui/modal-info-tab/modal-info-tab.options.mjs +2 -0
  754. package/esm2022/widgets/ui/modal-instructions-tab/index.mjs +2 -0
  755. package/esm2022/widgets/ui/modal-instructions-tab/modal-instructions-tab.component.mjs +31 -0
  756. package/esm2022/widgets/ui/modal-operation-part/index.mjs +2 -0
  757. package/esm2022/widgets/ui/modal-operation-part/modal-operation-part.component.mjs +119 -0
  758. package/esm2022/widgets/ui/modal-resources-tab/index.mjs +2 -0
  759. package/esm2022/widgets/ui/modal-resources-tab/modal-resources-tab.component.mjs +33 -0
  760. package/esm2022/widgets/ui/render-dynamic-modal/index.mjs +3 -0
  761. package/esm2022/widgets/ui/render-dynamic-modal/render-dynamic-modal.component.mjs +29 -0
  762. package/esm2022/widgets/ui/render-dynamic-modal/render-dynamic-modal.option.mjs +2 -0
  763. package/esm2022/widgets/ui/resources-block/components/index.mjs +4 -0
  764. package/esm2022/widgets/ui/resources-block/components/resources-block-consumables/index.mjs +2 -0
  765. package/esm2022/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.component.mjs +53 -0
  766. package/esm2022/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.options.mjs +2 -0
  767. package/esm2022/widgets/ui/resources-block/components/resources-block-content/index.mjs +2 -0
  768. package/esm2022/widgets/ui/resources-block/components/resources-block-content/resources-block-content.component.mjs +38 -0
  769. package/esm2022/widgets/ui/resources-block/components/resources-block-part/index.mjs +2 -0
  770. package/esm2022/widgets/ui/resources-block/components/resources-block-part/resources-block-part.component.mjs +57 -0
  771. package/esm2022/widgets/ui/resources-block/components/resources-block-part/resources-block-part.options.mjs +2 -0
  772. package/esm2022/widgets/ui/resources-block/components/resources-block-tabs/index.mjs +2 -0
  773. package/esm2022/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.component.mjs +56 -0
  774. package/esm2022/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.options.mjs +10 -0
  775. package/esm2022/widgets/ui/resources-block/components/resources-block-toolbox/index.mjs +2 -0
  776. package/esm2022/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.component.mjs +56 -0
  777. package/esm2022/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.options.mjs +2 -0
  778. package/esm2022/widgets/ui/resources-block/components/resources-options/index.mjs +2 -0
  779. package/esm2022/widgets/ui/resources-block/components/resources-options/resources-options.component.mjs +42 -0
  780. package/esm2022/widgets/ui/resources-block/index.mjs +3 -0
  781. package/esm2022/widgets/ui/resources-block/resources-block.component.mjs +137 -0
  782. package/esm2022/widgets/ui/resources-block-tabs/index.mjs +2 -0
  783. package/esm2022/widgets/ui/resources-block-tabs/resources-block-tabs.component.mjs +57 -0
  784. package/esm2022/widgets/ui/resources-block-tabs/resources-block-tabs.options.mjs +10 -0
  785. package/esm2022/widgets/ui/select-modal/components/index.mjs +3 -0
  786. package/esm2022/widgets/ui/select-modal/components/select-modal-folder/index.mjs +2 -0
  787. package/esm2022/widgets/ui/select-modal/components/select-modal-folder/select-modal-folder.component.mjs +21 -0
  788. package/esm2022/widgets/ui/select-modal/components/select-modal-search/index.mjs +2 -0
  789. package/esm2022/widgets/ui/select-modal/components/select-modal-search/select-modal-search.component.mjs +32 -0
  790. package/esm2022/widgets/ui/select-modal/index.mjs +4 -0
  791. package/esm2022/widgets/ui/select-modal/select-modal.component.mjs +35 -0
  792. package/esm2022/widgets/ui/select-modal/select-modal.interfaces.mjs +2 -0
  793. package/esm2022/widgets/ui/select-modal/select-modal.service.mjs +23 -0
  794. package/esm2022/widgets/ui/stated-loader/index.mjs +2 -0
  795. package/esm2022/widgets/ui/stated-loader/stated-loader.component.mjs +36 -0
  796. package/esm2022/widgets/ui/storage-list/components/index.mjs +2 -0
  797. package/esm2022/widgets/ui/storage-list/components/storage-list-item/index.mjs +2 -0
  798. package/esm2022/widgets/ui/storage-list/components/storage-list-item/storage-list-item.component.mjs +87 -0
  799. package/esm2022/widgets/ui/storage-list/index.mjs +3 -0
  800. package/esm2022/widgets/ui/storage-list/storage-list.component.mjs +17 -0
  801. package/esm2022/widgets/ui/storage-list/storage-list.options.mjs +3 -0
  802. package/esm2022/widgets/ui/toolbox-form/components/index.mjs +2 -0
  803. package/esm2022/widgets/ui/toolbox-form/components/tool-form-readonly/index.mjs +2 -0
  804. package/esm2022/widgets/ui/toolbox-form/components/tool-form-readonly/tool-form-readonly.component.mjs +19 -0
  805. package/esm2022/widgets/ui/toolbox-form/index.mjs +3 -0
  806. package/esm2022/widgets/ui/toolbox-form/tool-form.component.mjs +106 -0
  807. package/esm2022/widgets/ui/toolbox-form/tool-form.options.mjs +2 -0
  808. package/esm2022/widgets/ui/user-action-context-menu/activity-item/activity-item.component.mjs +59 -0
  809. package/esm2022/widgets/ui/user-action-context-menu/activity-item/index.mjs +2 -0
  810. package/esm2022/widgets/ui/user-action-context-menu/company-item/company-item.component.mjs +67 -0
  811. package/esm2022/widgets/ui/user-action-context-menu/company-item/index.mjs +2 -0
  812. package/esm2022/widgets/ui/user-action-context-menu/index.mjs +4 -0
  813. package/esm2022/widgets/ui/user-action-context-menu/services/activity-base.service.mjs +32 -0
  814. package/esm2022/widgets/ui/user-action-context-menu/services/activity.service.mjs +35 -0
  815. package/esm2022/widgets/ui/user-action-context-menu/services/index.mjs +3 -0
  816. package/esm2022/widgets/ui/user-action-context-menu/user-action-context-menu.component.mjs +80 -0
  817. package/esm2022/widgets/ui/user-action-context-menu/user-action-context.option.mjs +3 -0
  818. package/esm2022/widgets/ui/utility-info-readonly/index.mjs +3 -0
  819. package/esm2022/widgets/ui/utility-info-readonly/utility-info-readonly.component.mjs +94 -0
  820. package/esm2022/widgets/ui/utility-info-readonly/utility-info-readonly.options.mjs +2 -0
  821. package/esm2022/widgets/ui/utility-modal/components/criterion-modal-create/criterion-modal-create.component.mjs +41 -0
  822. package/esm2022/widgets/ui/utility-modal/components/criterion-modal-create/index.mjs +2 -0
  823. package/esm2022/widgets/ui/utility-modal/components/index.mjs +5 -0
  824. package/esm2022/widgets/ui/utility-modal/components/instruction-modal-create/index.mjs +2 -0
  825. package/esm2022/widgets/ui/utility-modal/components/instruction-modal-create/instruction-modal-create.component.mjs +41 -0
  826. package/esm2022/widgets/ui/utility-modal/components/readonly-criterion-modal/index.mjs +2 -0
  827. package/esm2022/widgets/ui/utility-modal/components/readonly-criterion-modal/readonly-criterion-modal.component.mjs +40 -0
  828. package/esm2022/widgets/ui/utility-modal/components/readonly-instruction-modal/index.mjs +2 -0
  829. package/esm2022/widgets/ui/utility-modal/components/readonly-instruction-modal/readonly-instruction-modal.component.mjs +40 -0
  830. package/esm2022/widgets/ui/utility-modal/components/readonly-utility-modal/index.mjs +2 -0
  831. package/esm2022/widgets/ui/utility-modal/components/readonly-utility-modal/readonly-utility-modal.component.mjs +43 -0
  832. package/esm2022/widgets/ui/utility-modal/components/utility-modal-create/index.mjs +2 -0
  833. package/esm2022/widgets/ui/utility-modal/components/utility-modal-create/utility-modal-create.component.mjs +55 -0
  834. package/esm2022/widgets/ui/utility-modal/index.mjs +4 -0
  835. package/esm2022/widgets/ui/utility-modal/utility-modal.component.mjs +22 -0
  836. package/esm2022/widgets/ui/utility-modal/utility-modal.options.mjs +3 -0
  837. package/esm2022/widgets/ui/utility-readonly-thumbnail/index.mjs +2 -0
  838. package/esm2022/widgets/ui/utility-readonly-thumbnail/utility-readonly-thumbnail.component.mjs +15 -0
  839. package/esm2022/widgets/ui/utility-thumbnail/index.mjs +2 -0
  840. package/esm2022/widgets/ui/utility-thumbnail/utility-thumbnail.component.mjs +95 -0
  841. package/fesm2022/cuby-ui-core-en-BvvbrGg1.mjs +91 -0
  842. package/fesm2022/cuby-ui-core-en-BvvbrGg1.mjs.map +1 -0
  843. package/fesm2022/cuby-ui-core-en-CnpigsdW.mjs +29 -0
  844. package/fesm2022/cuby-ui-core-en-CnpigsdW.mjs.map +1 -0
  845. package/fesm2022/cuby-ui-core-ru-bROcEQBf.mjs +91 -0
  846. package/fesm2022/cuby-ui-core-ru-bROcEQBf.mjs.map +1 -0
  847. package/fesm2022/cuby-ui-core.mjs +12232 -0
  848. package/fesm2022/cuby-ui-core.mjs.map +1 -0
  849. package/fonts/Inter-Bold.eot +0 -0
  850. package/fonts/Inter-Bold.otf +0 -0
  851. package/fonts/Inter-Bold.svg +25443 -0
  852. package/fonts/Inter-Bold.ttf +0 -0
  853. package/fonts/Inter-Bold.woff +0 -0
  854. package/fonts/Inter-Bold.woff2 +0 -0
  855. package/fonts/Inter-Medium.eot +0 -0
  856. package/fonts/Inter-Medium.otf +0 -0
  857. package/fonts/Inter-Medium.svg +25400 -0
  858. package/fonts/Inter-Medium.ttf +0 -0
  859. package/fonts/Inter-Medium.woff +0 -0
  860. package/fonts/Inter-Medium.woff2 +0 -0
  861. package/fonts/Inter-Regular.eot +0 -0
  862. package/fonts/Inter-Regular.otf +0 -0
  863. package/fonts/Inter-Regular.svg +24341 -0
  864. package/fonts/Inter-Regular.ttf +0 -0
  865. package/fonts/Inter-Regular.woff +0 -0
  866. package/fonts/Inter-Regular.woff2 +0 -0
  867. package/fonts/Inter-SemiBold.eot +0 -0
  868. package/fonts/Inter-SemiBold.otf +0 -0
  869. package/fonts/Inter-SemiBold.svg +25459 -0
  870. package/fonts/Inter-SemiBold.ttf +0 -0
  871. package/fonts/Inter-SemiBold.woff +0 -0
  872. package/fonts/Inter-SemiBold.woff2 +0 -0
  873. package/fonts/Nunito-ExtraBoldItalic.eot +0 -0
  874. package/fonts/Nunito-ExtraBoldItalic.otf +0 -0
  875. package/fonts/Nunito-ExtraBoldItalic.svg +9508 -0
  876. package/fonts/Nunito-ExtraBoldItalic.ttf +0 -0
  877. package/fonts/Nunito-ExtraBoldItalic.woff +0 -0
  878. package/fonts/Nunito-ExtraBoldItalic.woff2 +0 -0
  879. package/index.d.ts +11 -0
  880. package/interceptors/auth.interceptor.d.ts +2 -0
  881. package/interceptors/error-handler.interceptor.d.ts +2 -0
  882. package/interceptors/index.d.ts +5 -0
  883. package/interceptors/loader.interceptor.d.ts +2 -0
  884. package/interceptors/sse-stream-reader.interceptor.d.ts +2 -0
  885. package/interceptors/x-ndjson.interceptor.d.ts +2 -0
  886. package/interfaces/context-menu-item.d.ts +7 -0
  887. package/interfaces/error-notification-service.d.ts +3 -0
  888. package/interfaces/error-stategy.d.ts +3 -0
  889. package/interfaces/image.d.ts +5 -0
  890. package/interfaces/index.d.ts +5 -0
  891. package/interfaces/option.d.ts +5 -0
  892. package/operators/handle-error.d.ts +2 -0
  893. package/operators/index.d.ts +1 -0
  894. package/package.json +4 -7
  895. package/providers/auth.options.d.ts +15 -0
  896. package/providers/auth.provider.d.ts +3 -0
  897. package/providers/error-handler.options.d.ts +6 -0
  898. package/providers/error-handler.provider.d.ts +3 -0
  899. package/providers/index.d.ts +4 -0
  900. package/services/auth.service.d.ts +8 -0
  901. package/services/browser-auth.service.d.ts +10 -0
  902. package/services/error-resolver-factory.service.d.ts +10 -0
  903. package/services/global-handler-error.service.d.ts +10 -0
  904. package/services/index.d.ts +9 -0
  905. package/services/loader.options.d.ts +7 -0
  906. package/services/loader.service.d.ts +21 -0
  907. package/services/mobile-auth.service.d.ts +8 -0
  908. package/services/position.service.d.ts +10 -0
  909. package/services/theme.options.d.ts +5 -0
  910. package/services/theme.service.d.ts +12 -0
  911. package/services/token.options.d.ts +31 -0
  912. package/services/token.service.d.ts +26 -0
  913. package/services/visual-viewport.service.d.ts +9 -0
  914. package/styles/direcive/flex-container.scss +3 -0
  915. package/styles/fonts.scss +69 -0
  916. package/styles/global.scss +10 -0
  917. package/styles/mixins/buttons.scss +13 -0
  918. package/styles/mixins/flex.scss +11 -0
  919. package/styles/mixins/headings.scss +115 -0
  920. package/styles/mixins/inputs.scss +91 -0
  921. package/styles/mixins/lists.scss +41 -0
  922. package/styles/mixins/paddings.scss +35 -0
  923. package/styles/mixins/shadows.scss +42 -0
  924. package/styles/mixins/texts.scss +224 -0
  925. package/styles/reset.scss +111 -0
  926. package/styles/theme.scss +427 -0
  927. package/styles/variables/colors.scss +288 -0
  928. package/styles/variables/fonts.scss +2 -0
  929. package/tokens/animations-speed.d.ts +4 -0
  930. package/tokens/error-notification-service.d.ts +3 -0
  931. package/tokens/error-translation-prefix.d.ts +2 -0
  932. package/tokens/index.d.ts +5 -0
  933. package/tokens/reduced-motion.d.ts +1 -0
  934. package/tokens/viewport.d.ts +7 -0
  935. package/types/appearance.d.ts +11 -0
  936. package/types/button-theme.d.ts +5 -0
  937. package/types/hint-type.d.ts +1 -0
  938. package/types/index.d.ts +10 -0
  939. package/types/point.d.ts +1 -0
  940. package/types/portal-item.d.ts +9 -0
  941. package/types/position.d.ts +2 -0
  942. package/types/resizing.d.ts +3 -0
  943. package/types/shape.d.ts +1 -0
  944. package/types/size.d.ts +6 -0
  945. package/types/status.d.ts +1 -0
  946. package/utils/check-fixed-position.d.ts +1 -0
  947. package/utils/default-validators/create-default-validators.d.ts +5 -0
  948. package/utils/default-validators/create-default-validators.options.d.ts +5 -0
  949. package/utils/default-validators/extra-spaces.options.d.ts +2 -0
  950. package/utils/default-validators/extra-spaces.validators.d.ts +3 -0
  951. package/utils/default-validators/index.d.ts +2 -0
  952. package/utils/format/index.d.ts +2 -0
  953. package/utils/format/remove-spaces.d.ts +1 -0
  954. package/utils/format/replace.d.ts +1 -0
  955. package/utils/index.d.ts +4 -0
  956. package/utils/miscellaneous/index.d.ts +3 -0
  957. package/utils/miscellaneous/is-obscured.d.ts +4 -0
  958. package/utils/miscellaneous/override-options.d.ts +1 -0
  959. package/utils/miscellaneous/to-animation-options.d.ts +4 -0
  960. package/widgets/assets/constants/index.d.ts +1 -0
  961. package/widgets/assets/constants/translations.d.ts +2 -0
  962. package/widgets/assets/index.d.ts +1 -0
  963. package/widgets/index.d.ts +4 -0
  964. package/widgets/model/circle-loader-size.type.d.ts +2 -0
  965. package/widgets/model/index.d.ts +10 -0
  966. package/widgets/model/resource-state-service.interface.d.ts +4 -0
  967. package/widgets/model/resource-state-service.token.d.ts +3 -0
  968. package/widgets/model/resources-block.options.d.ts +15 -0
  969. package/widgets/model/subject-modal-service.interface.d.ts +7 -0
  970. package/widgets/model/subject-modal-service.token.d.ts +3 -0
  971. package/widgets/model/used-elements-service.interface.d.ts +5 -0
  972. package/widgets/model/used-elements-service.token.d.ts +3 -0
  973. package/widgets/model/utility-service.interface.d.ts +23 -0
  974. package/widgets/model/utility-service.token.d.ts +3 -0
  975. package/widgets/service/index.d.ts +4 -0
  976. package/widgets/service/resource-state-base.service.d.ts +10 -0
  977. package/widgets/service/subject-modal-base.service.d.ts +11 -0
  978. package/widgets/service/used-elements-base.service.d.ts +11 -0
  979. package/widgets/service/utility-base.service.d.ts +29 -0
  980. package/widgets/ui/assignee-role-item/assignee-role-item.component.d.ts +12 -0
  981. package/widgets/ui/assignee-role-item/index.d.ts +1 -0
  982. package/widgets/ui/assignee-roles-tabs/assignee-roles-tabs.component.d.ts +18 -0
  983. package/widgets/ui/assignee-roles-tabs/index.d.ts +1 -0
  984. package/widgets/ui/button-change-theme/button-change-theme.component.d.ts +9 -0
  985. package/widgets/ui/button-change-theme/index.d.ts +1 -0
  986. package/widgets/ui/categories/categories.component.d.ts +25 -0
  987. package/widgets/ui/categories/components/categories-list/categories-list.component.d.ts +8 -0
  988. package/widgets/ui/categories/components/categories-list/index.d.ts +1 -0
  989. package/widgets/ui/categories/components/category-form/category-form.component.d.ts +28 -0
  990. package/widgets/ui/categories/components/category-form/index.d.ts +1 -0
  991. package/widgets/ui/categories/components/category-item/category-item.component.d.ts +42 -0
  992. package/widgets/ui/categories/components/category-item/index.d.ts +1 -0
  993. package/widgets/ui/categories/components/create-category-item/create-category-item.component.d.ts +10 -0
  994. package/widgets/ui/categories/components/create-category-item/index.d.ts +1 -0
  995. package/widgets/ui/categories/components/index.d.ts +2 -0
  996. package/widgets/ui/categories/index.d.ts +2 -0
  997. package/widgets/ui/categories/services/index.d.ts +1 -0
  998. package/widgets/ui/categories/services/selected-category.service.d.ts +18 -0
  999. package/widgets/ui/checklist-block/checklist-block.component.d.ts +21 -0
  1000. package/widgets/ui/checklist-block/checklist-block.options.d.ts +12 -0
  1001. package/widgets/ui/checklist-block/components/checklist-block-list/checklist-block-list.component.d.ts +27 -0
  1002. package/widgets/ui/checklist-block/components/checklist-block-list/index.d.ts +1 -0
  1003. package/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/checklist-block-list-item-action-card.component.d.ts +30 -0
  1004. package/widgets/ui/checklist-block/components/checklist-block-list-item-action-card/index.d.ts +1 -0
  1005. package/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/checklist-block-list-item-action-with-verification.component.d.ts +11 -0
  1006. package/widgets/ui/checklist-block/components/checklist-block-list-item-action-with-verification/index.d.ts +1 -0
  1007. package/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/checklist-block-list-item-action-without-verification.component.d.ts +10 -0
  1008. package/widgets/ui/checklist-block/components/checklist-block-list-item-action-without-verification/index.d.ts +1 -0
  1009. package/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.d.ts +41 -0
  1010. package/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.options.d.ts +5 -0
  1011. package/widgets/ui/checklist-block/components/checklist-block-list-item-container/index.d.ts +1 -0
  1012. package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.component.d.ts +51 -0
  1013. package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/checklist-block-list-item-evaluation.options.d.ts +14 -0
  1014. package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation/index.d.ts +2 -0
  1015. package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.component.d.ts +33 -0
  1016. package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/checklist-block-list-item-evaluation-criteria.options.d.ts +4 -0
  1017. package/widgets/ui/checklist-block/components/checklist-block-list-item-evaluation-criteria/index.d.ts +1 -0
  1018. package/widgets/ui/checklist-block/components/checklist-block-title-control/checklist-block-title-control.component.d.ts +8 -0
  1019. package/widgets/ui/checklist-block/components/checklist-block-title-control/index.d.ts +1 -0
  1020. package/widgets/ui/checklist-block/components/index.d.ts +1 -0
  1021. package/widgets/ui/checklist-block/index.d.ts +1 -0
  1022. package/widgets/ui/checklist-block/services/checklist-block.service.d.ts +19 -0
  1023. package/widgets/ui/checklist-block/services/index.d.ts +1 -0
  1024. package/widgets/ui/circle-loader/circle-loader.component.d.ts +8 -0
  1025. package/widgets/ui/circle-loader/index.d.ts +1 -0
  1026. package/widgets/ui/consumable-form/components/consumable-form-item/consumable-form-item.component.d.ts +31 -0
  1027. package/widgets/ui/consumable-form/components/consumable-form-item/default-control-delay.d.ts +1 -0
  1028. package/widgets/ui/consumable-form/components/consumable-form-item/index.d.ts +2 -0
  1029. package/widgets/ui/consumable-form/components/consumable-form-item-readonly/consumable-form-item-readonly.component.d.ts +8 -0
  1030. package/widgets/ui/consumable-form/components/consumable-form-item-readonly/index.d.ts +1 -0
  1031. package/widgets/ui/consumable-form/components/index.d.ts +3 -0
  1032. package/widgets/ui/consumable-form/consumable-form.component.d.ts +46 -0
  1033. package/widgets/ui/consumable-form/consumable-form.options.d.ts +22 -0
  1034. package/widgets/ui/consumable-form/index.d.ts +1 -0
  1035. package/widgets/ui/criterion-info/criterion-info.component.d.ts +43 -0
  1036. package/widgets/ui/criterion-info/index.d.ts +1 -0
  1037. package/widgets/ui/criterion-info-form/criterion-info-form.component.d.ts +39 -0
  1038. package/widgets/ui/criterion-info-form/criterion-info-form.options.d.ts +7 -0
  1039. package/widgets/ui/criterion-info-form/index.d.ts +2 -0
  1040. package/widgets/ui/criterion-readonly-info/criterion-readonly-info.component.d.ts +26 -0
  1041. package/widgets/ui/criterion-readonly-info/index.d.ts +1 -0
  1042. package/widgets/ui/delete-modal/delete-modal.component.d.ts +13 -0
  1043. package/widgets/ui/delete-modal/delete-modal.options.d.ts +7 -0
  1044. package/widgets/ui/delete-modal/index.d.ts +2 -0
  1045. package/widgets/ui/framer-preview/framer-preview.component.d.ts +26 -0
  1046. package/widgets/ui/framer-preview/framer-preview.options.d.ts +5 -0
  1047. package/widgets/ui/framer-preview/index.d.ts +2 -0
  1048. package/widgets/ui/general-control-error-hint/general-control-error-hint.component.d.ts +9 -0
  1049. package/widgets/ui/general-control-error-hint/index.d.ts +1 -0
  1050. package/widgets/ui/index.d.ts +29 -0
  1051. package/widgets/ui/inserted/index.d.ts +1 -0
  1052. package/widgets/ui/inserted/inserted.component.d.ts +5 -0
  1053. package/widgets/ui/instruction-info/index.d.ts +1 -0
  1054. package/widgets/ui/instruction-info/instruction-info.component.d.ts +45 -0
  1055. package/widgets/ui/instruction-info-form/index.d.ts +2 -0
  1056. package/widgets/ui/instruction-info-form/instruction-info-form.component.d.ts +43 -0
  1057. package/widgets/ui/instruction-info-form/instruction-info-form.options.d.ts +9 -0
  1058. package/widgets/ui/instruction-readonly-info/index.d.ts +1 -0
  1059. package/widgets/ui/instruction-readonly-info/instruction-readonly-info.component.d.ts +26 -0
  1060. package/widgets/ui/linear-loader/index.d.ts +1 -0
  1061. package/widgets/ui/linear-loader/linear-loader.component.d.ts +5 -0
  1062. package/widgets/ui/modal-criteria-tab/index.d.ts +1 -0
  1063. package/widgets/ui/modal-criteria-tab/modal-criteria-tab.component.d.ts +15 -0
  1064. package/widgets/ui/modal-divided-section/index.d.ts +2 -0
  1065. package/widgets/ui/modal-divided-section/modal-divided-section.component.d.ts +22 -0
  1066. package/widgets/ui/modal-divided-section/modal-divided-section.interfaces.d.ts +6 -0
  1067. package/widgets/ui/modal-header/index.d.ts +1 -0
  1068. package/widgets/ui/modal-header/modal-header.component.d.ts +12 -0
  1069. package/widgets/ui/modal-header-inserted-buttons/index.d.ts +1 -0
  1070. package/widgets/ui/modal-header-inserted-buttons/modal-header-inserted-buttons.component.d.ts +7 -0
  1071. package/widgets/ui/modal-header-tabs/index.d.ts +1 -0
  1072. package/widgets/ui/modal-header-tabs/modal-header-tabs.component.d.ts +8 -0
  1073. package/widgets/ui/modal-info-tab/index.d.ts +2 -0
  1074. package/widgets/ui/modal-info-tab/modal-info-tab.component.d.ts +8 -0
  1075. package/widgets/ui/modal-info-tab/modal-info-tab.options.d.ts +4 -0
  1076. package/widgets/ui/modal-instructions-tab/index.d.ts +1 -0
  1077. package/widgets/ui/modal-instructions-tab/modal-instructions-tab.component.d.ts +15 -0
  1078. package/widgets/ui/modal-operation-part/index.d.ts +1 -0
  1079. package/widgets/ui/modal-operation-part/modal-operation-part.component.d.ts +26 -0
  1080. package/widgets/ui/modal-resources-tab/index.d.ts +1 -0
  1081. package/widgets/ui/modal-resources-tab/modal-resources-tab.component.d.ts +14 -0
  1082. package/widgets/ui/render-dynamic-modal/index.d.ts +2 -0
  1083. package/widgets/ui/render-dynamic-modal/render-dynamic-modal.component.d.ts +11 -0
  1084. package/widgets/ui/render-dynamic-modal/render-dynamic-modal.option.d.ts +5 -0
  1085. package/widgets/ui/resources-block/components/index.d.ts +5 -0
  1086. package/widgets/ui/resources-block/components/resources-block-consumables/index.d.ts +2 -0
  1087. package/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.component.d.ts +17 -0
  1088. package/widgets/ui/resources-block/components/resources-block-consumables/resources-block-consumables.options.d.ts +7 -0
  1089. package/widgets/ui/resources-block/components/resources-block-content/index.d.ts +1 -0
  1090. package/widgets/ui/resources-block/components/resources-block-content/resources-block-content.component.d.ts +19 -0
  1091. package/widgets/ui/resources-block/components/resources-block-part/index.d.ts +1 -0
  1092. package/widgets/ui/resources-block/components/resources-block-part/resources-block-part.component.d.ts +19 -0
  1093. package/widgets/ui/resources-block/components/resources-block-part/resources-block-part.options.d.ts +5 -0
  1094. package/widgets/ui/resources-block/components/resources-block-tabs/index.d.ts +1 -0
  1095. package/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.component.d.ts +28 -0
  1096. package/widgets/ui/resources-block/components/resources-block-tabs/resources-block-tabs.options.d.ts +13 -0
  1097. package/widgets/ui/resources-block/components/resources-block-toolbox/index.d.ts +2 -0
  1098. package/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.component.d.ts +17 -0
  1099. package/widgets/ui/resources-block/components/resources-block-toolbox/resources-block-toolbox.options.d.ts +5 -0
  1100. package/widgets/ui/resources-block/components/resources-options/index.d.ts +1 -0
  1101. package/widgets/ui/resources-block/components/resources-options/resources-options.component.d.ts +20 -0
  1102. package/widgets/ui/resources-block/index.d.ts +2 -0
  1103. package/widgets/ui/resources-block/resources-block.component.d.ts +35 -0
  1104. package/widgets/ui/resources-block-tabs/index.d.ts +1 -0
  1105. package/widgets/ui/resources-block-tabs/resources-block-tabs.component.d.ts +28 -0
  1106. package/widgets/ui/resources-block-tabs/resources-block-tabs.options.d.ts +14 -0
  1107. package/widgets/ui/select-modal/components/index.d.ts +2 -0
  1108. package/widgets/ui/select-modal/components/select-modal-folder/index.d.ts +1 -0
  1109. package/widgets/ui/select-modal/components/select-modal-folder/select-modal-folder.component.d.ts +10 -0
  1110. package/widgets/ui/select-modal/components/select-modal-search/index.d.ts +1 -0
  1111. package/widgets/ui/select-modal/components/select-modal-search/select-modal-search.component.d.ts +12 -0
  1112. package/widgets/ui/select-modal/index.d.ts +4 -0
  1113. package/widgets/ui/select-modal/select-modal.component.d.ts +13 -0
  1114. package/widgets/ui/select-modal/select-modal.interfaces.d.ts +15 -0
  1115. package/widgets/ui/select-modal/select-modal.service.d.ts +13 -0
  1116. package/widgets/ui/stated-loader/index.d.ts +1 -0
  1117. package/widgets/ui/stated-loader/stated-loader.component.d.ts +20 -0
  1118. package/widgets/ui/storage-list/components/index.d.ts +1 -0
  1119. package/widgets/ui/storage-list/components/storage-list-item/index.d.ts +1 -0
  1120. package/widgets/ui/storage-list/components/storage-list-item/storage-list-item.component.d.ts +24 -0
  1121. package/widgets/ui/storage-list/index.d.ts +2 -0
  1122. package/widgets/ui/storage-list/storage-list.component.d.ts +10 -0
  1123. package/widgets/ui/storage-list/storage-list.options.d.ts +16 -0
  1124. package/widgets/ui/toolbox-form/components/index.d.ts +1 -0
  1125. package/widgets/ui/toolbox-form/components/tool-form-readonly/index.d.ts +1 -0
  1126. package/widgets/ui/toolbox-form/components/tool-form-readonly/tool-form-readonly.component.d.ts +7 -0
  1127. package/widgets/ui/toolbox-form/index.d.ts +2 -0
  1128. package/widgets/ui/toolbox-form/tool-form.component.d.ts +34 -0
  1129. package/widgets/ui/toolbox-form/tool-form.options.d.ts +5 -0
  1130. package/widgets/ui/user-action-context-menu/activity-item/activity-item.component.d.ts +16 -0
  1131. package/widgets/ui/user-action-context-menu/activity-item/index.d.ts +1 -0
  1132. package/widgets/ui/user-action-context-menu/company-item/company-item.component.d.ts +20 -0
  1133. package/widgets/ui/user-action-context-menu/company-item/index.d.ts +1 -0
  1134. package/widgets/ui/user-action-context-menu/index.d.ts +3 -0
  1135. package/widgets/ui/user-action-context-menu/services/activity-base.service.d.ts +14 -0
  1136. package/widgets/ui/user-action-context-menu/services/activity.service.d.ts +14 -0
  1137. package/widgets/ui/user-action-context-menu/services/index.d.ts +2 -0
  1138. package/widgets/ui/user-action-context-menu/user-action-context-menu.component.d.ts +25 -0
  1139. package/widgets/ui/user-action-context-menu/user-action-context.option.d.ts +15 -0
  1140. package/widgets/ui/utility-info-readonly/index.d.ts +2 -0
  1141. package/widgets/ui/utility-info-readonly/utility-info-readonly.component.d.ts +29 -0
  1142. package/widgets/ui/utility-info-readonly/utility-info-readonly.options.d.ts +4 -0
  1143. package/widgets/ui/utility-modal/components/criterion-modal-create/criterion-modal-create.component.d.ts +18 -0
  1144. package/widgets/ui/utility-modal/components/criterion-modal-create/index.d.ts +1 -0
  1145. package/widgets/ui/utility-modal/components/index.d.ts +4 -0
  1146. package/widgets/ui/utility-modal/components/instruction-modal-create/index.d.ts +1 -0
  1147. package/widgets/ui/utility-modal/components/instruction-modal-create/instruction-modal-create.component.d.ts +18 -0
  1148. package/widgets/ui/utility-modal/components/readonly-criterion-modal/index.d.ts +1 -0
  1149. package/widgets/ui/utility-modal/components/readonly-criterion-modal/readonly-criterion-modal.component.d.ts +16 -0
  1150. package/widgets/ui/utility-modal/components/readonly-instruction-modal/index.d.ts +1 -0
  1151. package/widgets/ui/utility-modal/components/readonly-instruction-modal/readonly-instruction-modal.component.d.ts +16 -0
  1152. package/widgets/ui/utility-modal/components/readonly-utility-modal/index.d.ts +1 -0
  1153. package/widgets/ui/utility-modal/components/readonly-utility-modal/readonly-utility-modal.component.d.ts +18 -0
  1154. package/widgets/ui/utility-modal/components/utility-modal-create/index.d.ts +1 -0
  1155. package/widgets/ui/utility-modal/components/utility-modal-create/utility-modal-create.component.d.ts +25 -0
  1156. package/widgets/ui/utility-modal/index.d.ts +3 -0
  1157. package/widgets/ui/utility-modal/utility-modal.component.d.ts +10 -0
  1158. package/widgets/ui/utility-modal/utility-modal.options.d.ts +12 -0
  1159. package/widgets/ui/utility-readonly-thumbnail/index.d.ts +1 -0
  1160. package/widgets/ui/utility-readonly-thumbnail/utility-readonly-thumbnail.component.d.ts +8 -0
  1161. package/widgets/ui/utility-thumbnail/index.d.ts +1 -0
  1162. package/widgets/ui/utility-thumbnail/utility-thumbnail.component.d.ts +21 -0
@@ -0,0 +1,147 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, effect, inject, input, output, signal } from '@angular/core';
2
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
3
+ import { NonNullableFormBuilder, ReactiveFormsModule } from '@angular/forms';
4
+ import { TranslocoDirective } from '@jsverse/transloco';
5
+ import { debounceTime, map, pairwise, startWith } from 'rxjs';
6
+ import { CuiFrameApiService } from '@cuby-ui/api';
7
+ import { CuiIdService, takeCaptureFromVideo } from '@cuby-ui/cdk';
8
+ import { CuiAccordionModule, CuiButtonModule, CuiFormFieldModule, CuiHintModule, CuiInputModule, CuiLabelModule } from '../../../components';
9
+ import { cuiCreateDefaultValidators } from '../../../utils';
10
+ import { CuiGeneralControlErrorHintComponent } from '../general-control-error-hint';
11
+ import { CuiEditorBlockComponent } from '../../../editor';
12
+ import { CuiUtilityThumbnailComponent } from '../utility-thumbnail';
13
+ import * as i0 from "@angular/core";
14
+ import * as i1 from "../../../components/form-field/form-field.component";
15
+ import * as i2 from "../../../components/input-text/input-text.component";
16
+ import * as i3 from "../../../directives/text-field-controller/text-field-id.directive";
17
+ import * as i4 from "../../../directives/text-field-controller/text-field-placeholder.directive";
18
+ import * as i5 from "../../../directives/text-field-controller/text-field-is-error.directive";
19
+ import * as i6 from "../../../components/label/label.component";
20
+ import * as i7 from "@angular/forms";
21
+ export class CuiCriterionInfoFormComponent {
22
+ get controls() {
23
+ return this.form.controls;
24
+ }
25
+ get isTitleError() {
26
+ return this.controls.title.invalid && this.controls.title.dirty;
27
+ }
28
+ constructor() {
29
+ this.destroy = inject(DestroyRef);
30
+ this.formBuilder = inject(NonNullableFormBuilder);
31
+ this.frameApiService = inject(CuiFrameApiService);
32
+ this.cuiIdService = inject(CuiIdService);
33
+ this.CONTROL_DELAY = 500;
34
+ this.titleId = this.cuiIdService.generate();
35
+ this.form = this.formBuilder.group({
36
+ title: this.formBuilder.control('', cuiCreateDefaultValidators({ asyncDelay: this.CONTROL_DELAY }))
37
+ });
38
+ this.heading = null;
39
+ this.isDescriptionEmpty = signal(false);
40
+ this.editorId = signal(null);
41
+ this.thumbnail = signal(null);
42
+ this.title = input.required();
43
+ this.framerId = input.required();
44
+ this.baseResourceUrl = input.required();
45
+ this.config = input.required();
46
+ this.formChanged = output();
47
+ this.isFormValidChanged = output();
48
+ this.initUtilityEffect();
49
+ }
50
+ onEditorEmpty(isEmpty) {
51
+ this.isDescriptionEmpty.set(isEmpty);
52
+ this.isFormValidChanged.emit(this.checkFormValidation());
53
+ }
54
+ initUtilityEffect() {
55
+ const effectRef = effect(() => {
56
+ const title = this.title();
57
+ if (!title) {
58
+ return;
59
+ }
60
+ this.initFormSubscriptions();
61
+ this.initFrameFragments();
62
+ effectRef.destroy();
63
+ });
64
+ }
65
+ initFormSubscriptions() {
66
+ this.form.setValue({ title: this.title() }, { emitEvent: false });
67
+ this.form.statusChanges
68
+ .pipe(takeUntilDestroyed(this.destroy))
69
+ .subscribe(() => this.isFormValidChanged.emit(this.checkFormValidation()));
70
+ this.form.valueChanges
71
+ .pipe(takeUntilDestroyed(this.destroy), startWith(this.form.value), pairwise(), debounceTime(this.CONTROL_DELAY), map(([prev, current]) => this.compareFormValues([prev, current])))
72
+ .subscribe((value) => {
73
+ if (!Object.keys(value).length) {
74
+ return;
75
+ }
76
+ this.formChanged.emit(value);
77
+ });
78
+ }
79
+ initFrameFragments() {
80
+ const frameId = this.framerId();
81
+ if (!frameId) {
82
+ return;
83
+ }
84
+ this.frameApiService.getFrame(frameId).subscribe((frame) => {
85
+ frame.fragments.forEach((fragment) => {
86
+ if (fragment.type === "J_TEXT" /* FragmentType.jText */) {
87
+ this.editorId.set(fragment?.id);
88
+ }
89
+ if (fragment.type === "RESOURCE_FILE" /* FragmentType.resourceFile */) {
90
+ this.setResourceFile(fragment);
91
+ }
92
+ });
93
+ });
94
+ }
95
+ compareFormValues([prevGroup, currentGroup]) {
96
+ const keys = Object.keys(currentGroup);
97
+ const changedFields = {};
98
+ keys.forEach((key) => {
99
+ const prev = prevGroup[key];
100
+ const current = currentGroup[key];
101
+ if (prev === current || this.controls[key].invalid) {
102
+ return;
103
+ }
104
+ changedFields[key] = current;
105
+ });
106
+ return changedFields;
107
+ }
108
+ setResourceFile(resource) {
109
+ const url = this.baseResourceUrl() + resource.fileId;
110
+ this.thumbnail.set(resource);
111
+ if (!url || resource?.name?.split('.').pop() !== 'mp4') {
112
+ return;
113
+ }
114
+ this.getCaptureFromVideo(url);
115
+ }
116
+ getCaptureFromVideo(url, file) {
117
+ takeCaptureFromVideo(url).then((capture) => {
118
+ this.thumbnail.update((prev) => ({
119
+ ...prev,
120
+ name: (file?.name ?? prev?.name),
121
+ resource: capture
122
+ }));
123
+ });
124
+ }
125
+ checkFormValidation() {
126
+ return !this.isDescriptionEmpty() && !this.form.invalid;
127
+ }
128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionInfoFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
129
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiCriterionInfoFormComponent, isStandalone: true, selector: "cui-criterion-info-form", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, framerId: { classPropertyName: "framerId", publicName: "framerId", isSignal: true, isRequired: true, transformFunction: null }, baseResourceUrl: { classPropertyName: "baseResourceUrl", publicName: "baseResourceUrl", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { formChanged: "formChanged", isFormValidChanged: "isFormValidChanged" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <section class=\"content\">\n <cui-form-field>\n <label\n cuiLabel\n [isRequired]=\"true\"\n [for]=\"titleId\"\n >\n {{ t('TITLE') }}\n </label>\n\n <cui-input-text\n [cuiTextFieldId]=\"titleId\"\n [cuiTextFieldPlaceholder]=\"t('ADD_A_TITLE')\"\n [cuiTextFieldIsError]=\"isTitleError\"\n [formControl]=\"form.controls.title\"\n />\n\n @if (isTitleError) {\n <cui-general-control-error-hint\n [control]=\"form.controls.title\"\n [isVisible]=\"true\"\n />\n }\n </cui-form-field>\n\n <cui-utility-thumbnail\n [baseResourceUrl]=\"baseResourceUrl()\"\n [framerId]=\"framerId()\"\n [(thumbnail)]=\"thumbnail\"\n />\n\n @if (editorId(); as editorId) {\n <cui-editor-block\n [title]=\"form.controls.title.value || title()\"\n [config]=\"config()\"\n [editorId]=\"editorId\"\n [required]=\"true\"\n class=\"editor\"\n (editorEmpty)=\"onEditorEmpty($event)\"\n />\n }\n </section>\n</ng-container>\n", styles: ["::ng-deep cui-dialog:has(.instruction-description-modal){inset:0;margin:auto;transform:none!important}:host{--editor-height: 650px;display:block}:host .editor{--max-editor-height: var(--editor-height)}.content{display:flex;flex-direction:column;gap:16px;padding:16px 24px}\n"], dependencies: [{ kind: "ngmodule", type: CuiAccordionModule }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: CuiEditorBlockComponent, selector: "cui-editor-block", inputs: ["title", "editorId", "config", "required"], outputs: ["editorEmpty"] }, { kind: "ngmodule", type: CuiFormFieldModule }, { kind: "component", type: i1.CuiFormFieldComponent, selector: "cui-form-field" }, { kind: "component", type: CuiGeneralControlErrorHintComponent, selector: "cui-general-control-error-hint", inputs: ["control", "isVisible"] }, { kind: "ngmodule", type: CuiHintModule }, { kind: "ngmodule", type: CuiInputModule }, { kind: "component", type: i2.CuiInputTextComponent, selector: "cui-input-text" }, { kind: "directive", type: i3.CuiTextFieldIdDirective, selector: "[cuiTextFieldId]", inputs: ["cuiTextFieldId"] }, { kind: "directive", type: i4.CuiTextFieldPlaceholderDirective, selector: "[cuiTextFieldPlaceholder]", inputs: ["cuiTextFieldPlaceholder"] }, { kind: "directive", type: i5.CuiTextFieldIsErrorDirective, selector: "[cuiTextFieldIsError]", inputs: ["cuiTextFieldIsError"] }, { kind: "ngmodule", type: CuiLabelModule }, { kind: "component", type: i6.CuiLabelComponent, selector: "label[cuiLabel]", inputs: ["isRequired"] }, { kind: "component", type: CuiUtilityThumbnailComponent, selector: "cui-utility-thumbnail", inputs: ["thumbnail", "framerId", "baseResourceUrl"], outputs: ["thumbnailChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
130
+ }
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionInfoFormComponent, decorators: [{
132
+ type: Component,
133
+ args: [{ selector: 'cui-criterion-info-form', imports: [
134
+ CuiAccordionModule,
135
+ CuiButtonModule,
136
+ CuiEditorBlockComponent,
137
+ CuiFormFieldModule,
138
+ CuiGeneralControlErrorHintComponent,
139
+ CuiHintModule,
140
+ CuiInputModule,
141
+ CuiLabelModule,
142
+ CuiUtilityThumbnailComponent,
143
+ ReactiveFormsModule,
144
+ TranslocoDirective
145
+ ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n <section class=\"content\">\n <cui-form-field>\n <label\n cuiLabel\n [isRequired]=\"true\"\n [for]=\"titleId\"\n >\n {{ t('TITLE') }}\n </label>\n\n <cui-input-text\n [cuiTextFieldId]=\"titleId\"\n [cuiTextFieldPlaceholder]=\"t('ADD_A_TITLE')\"\n [cuiTextFieldIsError]=\"isTitleError\"\n [formControl]=\"form.controls.title\"\n />\n\n @if (isTitleError) {\n <cui-general-control-error-hint\n [control]=\"form.controls.title\"\n [isVisible]=\"true\"\n />\n }\n </cui-form-field>\n\n <cui-utility-thumbnail\n [baseResourceUrl]=\"baseResourceUrl()\"\n [framerId]=\"framerId()\"\n [(thumbnail)]=\"thumbnail\"\n />\n\n @if (editorId(); as editorId) {\n <cui-editor-block\n [title]=\"form.controls.title.value || title()\"\n [config]=\"config()\"\n [editorId]=\"editorId\"\n [required]=\"true\"\n class=\"editor\"\n (editorEmpty)=\"onEditorEmpty($event)\"\n />\n }\n </section>\n</ng-container>\n", styles: ["::ng-deep cui-dialog:has(.instruction-description-modal){inset:0;margin:auto;transform:none!important}:host{--editor-height: 650px;display:block}:host .editor{--max-editor-height: var(--editor-height)}.content{display:flex;flex-direction:column;gap:16px;padding:16px 24px}\n"] }]
146
+ }], ctorParameters: () => [] });
147
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaW9uLWluZm8tZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY3JpdGVyaW9uLWluZm8tZm9ybS9jcml0ZXJpb24taW5mby1mb3JtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9jcml0ZXJpb24taW5mby1mb3JtL2NyaXRlcmlvbi1pbmZvLWZvcm0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixF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AgcHJpdmF0ZSBpbml0VXRpbGl0eUVmZmVjdCgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgZWZmZWN0UmVmID0gZWZmZWN0KCgpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHRpdGxlID0gdGhpcy50aXRsZSgpO1xuXG4gICAgICAgICAgICBpZiAoIXRpdGxlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLmluaXRGb3JtU3Vic2NyaXB0aW9ucygpO1xuICAgICAgICAgICAgdGhpcy5pbml0RnJhbWVGcmFnbWVudHMoKTtcbiAgICAgICAgICAgIGVmZmVjdFJlZi5kZXN0cm95KCk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgaW5pdEZvcm1TdWJzY3JpcHRpb25zKCk6IHZvaWQge1xuICAgICAgICB0aGlzLmZvcm0uc2V0VmFsdWUoeyB0aXRsZTogdGhpcy50aXRsZSgpIH0sIHsgZW1pdEV2ZW50OiBmYWxzZSB9KTtcblxuICAgICAgICB0aGlzLmZvcm0uc3RhdHVzQ2hhbmdlc1xuICAgICAgICAgICAgLnBpcGUodGFrZVVudGlsRGVzdHJveWVkKHRoaXMuZGVzdHJveSkpXG4gICAgICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHRoaXMuaXNGb3JtVmFsaWRDaGFuZ2VkLmVtaXQodGhpcy5jaGVja0Zvcm1WYWxpZGF0aW9uKCkpKTtcblxuICAgICAgICB0aGlzLmZvcm0udmFsdWVDaGFuZ2VzXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICB0YWtlVW50aWxEZXN0cm95ZWQodGhpcy5kZXN0cm95KSxcbiAgICAgICAgICAgICAgICBzdGFydFdpdGgodGhpcy5mb3JtLnZhbHVlKSxcbiAgICAgICAgICAgICAgICBwYWlyd2lzZSgpLFxuICAgICAgICAgICAgICAgIGRlYm91bmNlVGltZSh0aGlzLkNPTlRST0xfREVMQVkpLFxuICAgICAgICAgICAgICAgIG1hcCgoW3ByZXYsIGN1cnJlbnRdKSA9PiB0aGlzLmNvbXBhcmVGb3JtVmFsdWVzKFtwcmV2LCBjdXJyZW50XSkpXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAuc3Vic2NyaWJlKCh2YWx1ZSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICghT2JqZWN0LmtleXModmFsdWUpLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgdGhpcy5mb3JtQ2hhbmdlZC5lbWl0KHZhbHVlKTtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgaW5pdEZyYW1lRnJhZ21lbnRzKCk6IHZvaWQge1xuICAgICAgICBjb25zdCBmcmFtZUlkID0gdGhpcy5mcmFtZXJJZCgpO1xuXG4gICAgICAgIGlmICghZnJhbWVJZCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5mcmFtZUFwaVNlcnZpY2UuZ2V0RnJhbWUoZnJhbWVJZCkuc3Vic2NyaWJlKChmcmFtZSkgPT4ge1xuICAgICAgICAgICAgZnJhbWUuZnJhZ21lbnRzLmZvckVhY2goKGZyYWdtZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKGZyYWdtZW50LnR5cGUgPT09IEZyYWdtZW50VHlwZS5qVGV4dCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmVkaXRvcklkLnNldChmcmFnbWVudD8uaWQpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChmcmFnbWVudC50eXBlID09PSBGcmFnbWVudFR5cGUucmVzb3VyY2VGaWxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UmVzb3VyY2VGaWxlKGZyYWdtZW50IGFzIFJlc291cmNlRnJhZ21lb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WJuYWlsLnNldChyZXNvdXJjZSk7XG5cbiAgICAgICAgaWYgKCF1cmwgfHwgcmVzb3VyY2U/Lm5hbWU/LnNwbGl0KCcuJykucG9wKCkgIT09ICdtcDQnKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmdldENhcHR1cmVGcm9tVmlkZW8odXJsKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGdldENhcHR1cmVGcm9tVmlkZW8odXJsOiBzdHJpbmcsIGZpbGU/OiBGaWxlKTogdm9pZCB7XG4gICAgICAgIHRha2VDYXB0dXJlRnJvbVZpZGVvKHVybCkudGhlbigoY2FwdHVyZSkgPT4ge1xuICAgICAgICAgICAgdGhpcy50aHVtYm5haWwudXBkYXRlKChwcmV2KSA9PiAoe1xuICAgICAgICAgICAgICAgIC4uLnByZXYhLFxuICAgICAgICAgICAgICAgIG5hbWU6IChmaWxlPy5uYW1lID8/IHByZXY/Lm5hbWUpISxcbiAgICAgICAgICAgICAgICByZXNvdXJjZTogY2FwdHVyZVxuICAgICAgICAgICAgfSkpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGNoZWNrRm9ybVZhbGlkYXRpb24oKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiAhdGhpcy5pc0Rlc2NyaXB0aW9uRW1wdHkoKSAmJiAhdGhpcy5mb3JtLmludmFsaWQ7XG4gICAgfVxufVxuIiwiPG5nLWNvbnRhaW5lciAqdHJhbnNsb2NvPVwibGV0IHRcIj5cbiAgICA8c2VjdGlvbiBjbGFzcz1cImNvbnRlbnRcIj5cbiAgICAgICAgPGN1aS1mb3JtLWZpZWxkPlxuICAgICAgICAgICAgPGxhYmVsXG4gICAgICAgICAgICAgICAgY3VpTGFiZWxcbiAgICAgICAgICAgICAgICBbaXNSZXF1aXJlZF09XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICBbZm9yXT1cInRpdGxlSWRcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHt7IHQoJ1RJVExFJykgfX1cbiAgICAgICAgICAgIDwvbGFiZWw+XG5cbiAgICAgICAgICAgIDxjdWktaW5wdXQtdGV4dFxuICAgICAgICAgICAgICAgIFtjdWlUZXh0RmllbGRJZF09XCJ0aXRsZUlkXCJcbiAgICAgICAgICAgICAgICBbY3VpVGV4dEZpZWxkUGxhY2Vob2xkZXJdPVwidCgnQUREX0FfVElUTEUnKVwiXG4gICAgICAgICAgICAgICAgW2N1aVRleHRGaWVsZElzRXJyb3JdPVwiaXNUaXRsZUVycm9yXCJcbiAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZm9ybS5jb250cm9scy50aXRsZVwiXG4gICAgICAgICAgICAvPlxuXG4gICAgICAgICAgICBAaWYgKGlzVGl0bGVFcnJvcikge1xuICAgICAgICAgICAgICAgIDxjdWktZ2VuZXJhbC1jb250cm9sLWVycm9yLWhpbnRcbiAgICAgICAgICAgICAgICAgICAgW2NvbnRyb2xdPVwiZm9ybS5jb250cm9scy50aXRsZVwiXG4gICAgICAgICAgICAgICAgICAgIFtpc1Zpc2libGVdPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIH1cbiAgICAgICAgPC9jdWktZm9ybS1maWVsZD5cblxuICAgICAgICA8Y3VpLXV0aWxpdHktdGh1bWJuYWlsXG4gICAgICAgICAgICBbYmFzZVJlc291cmNlVXJsXT1cImJhc2VSZXNvdXJjZVVybCgpXCJcbiAgICAgICAgICAgIFtmcmFtZXJJZF09XCJmcmFtZXJJZCgpXCJcbiAgICAgICAgICAgIFsodGh1bWJuYWlsKV09XCJ0aHVtYm5haWxcIlxuICAgICAgICAvPlxuXG4gICAgICAgIEBpZiAoZWRpdG9ySWQoKTsgYXMgZWRpdG9ySWQpIHtcbiAgICAgICAgICAgIDxjdWktZWRpdG9yLWJsb2NrXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cImZvcm0uY29udHJvbHMudGl0bGUudmFsdWUgfHwgdGl0bGUoKVwiXG4gICAgICAgICAgICAgICAgW2NvbmZpZ109XCJjb25maWcoKVwiXG4gICAgICAgICAgICAgICAgW2VkaXRvcklkXT1cImVkaXRvcklkXCJcbiAgICAgICAgICAgICAgICBbcmVxdWlyZWRdPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJlZGl0b3JcIlxuICAgICAgICAgICAgICAgIChlZGl0b3JFbXB0eSk9XCJvbkVkaXRvckVtcHR5KCRldmVudClcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgfVxuICAgIDwvc2VjdGlvbj5cbjwvbmctY29udGFpbmVyPlxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaW9uLWluZm8tZm9ybS5vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL2NyaXRlcmlvbi1pbmZvLWZvcm0vY3JpdGVyaW9uLWluZm8tZm9ybS5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEZvcm1Db250cm9sIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIEN1aUNyaXRlcmlvbkZvcm1Hcm91cCB7XG4gICAgcmVhZG9ubHkgdGl0bGU6IEZvcm1Db250cm9sPHN0cmluZz47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ3VpQ3JpdGVyaW9uRm9ybVZhbHVlcyB7XG4gICAgcmVhZG9ubHkgdGl0bGU6IHN0cmluZztcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export { CuiCriterionInfoFormComponent } from './criterion-info-form.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY3JpdGVyaW9uLWluZm8tZm9ybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1aUNyaXRlcmlvbkluZm9Gb3JtQ29tcG9uZW50IH0gZnJvbSAnLi9jcml0ZXJpb24taW5mby1mb3JtLmNvbXBvbmVudCc7XG5leHBvcnQgeyBDdWlDcml0ZXJpb25Gb3JtR3JvdXAsIEN1aUNyaXRlcmlvbkZvcm1WYWx1ZXMgfSBmcm9tICcuL2NyaXRlcmlvbi1pbmZvLWZvcm0ub3B0aW9ucyc7XG4iXX0=
@@ -0,0 +1,72 @@
1
+ import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, signal } from '@angular/core';
2
+ import { TranslocoDirective } from '@jsverse/transloco';
3
+ import { CuiFrameApiService } from '@cuby-ui/api';
4
+ import { CuiEditorComponent } from '../../../editor';
5
+ import { CuiUtilityReadonlyThumbnailComponent } from '../utility-readonly-thumbnail';
6
+ import { CuiEmptyStateComponent } from '../../../components';
7
+ import * as i0 from "@angular/core";
8
+ export class CuiCriterionReadonlyInfoComponent {
9
+ constructor() {
10
+ this.hostElement = inject(ElementRef).nativeElement;
11
+ this.frameApiService = inject(CuiFrameApiService);
12
+ this.isVideo = false;
13
+ this.jText = signal(null);
14
+ this.thumbnailUrl = signal(null);
15
+ this.isDescriptionEmpty = computed(() => !this.jText()?.notEmpty);
16
+ this.framerId = input.required();
17
+ this.element = input(this.hostElement);
18
+ this.tools = input.required();
19
+ this.editorResourceUrl = input.required();
20
+ this.initConfigEffect();
21
+ this.initFramerIdEffect();
22
+ }
23
+ initConfigEffect() {
24
+ effect(() => {
25
+ this.editorConfig = { readOnly: true, tools: this.tools(), element: this.element() };
26
+ });
27
+ }
28
+ initFramerIdEffect() {
29
+ effect(() => {
30
+ const framerId = this.framerId();
31
+ if (!framerId) {
32
+ return;
33
+ }
34
+ this.subscription?.unsubscribe();
35
+ this.initFrameFragments();
36
+ });
37
+ }
38
+ initFrameFragments() {
39
+ const frameId = this.framerId();
40
+ this.jText.set(null);
41
+ this.thumbnailUrl.set(null);
42
+ if (!frameId) {
43
+ return;
44
+ }
45
+ const fragmentActions = {
46
+ ["J_TEXT" /* FragmentType.jText */]: (fragment) => {
47
+ this.jText.set(fragment);
48
+ },
49
+ ["RESOURCE_FILE" /* FragmentType.resourceFile */]: (fragment) => {
50
+ this.setResourceFile(fragment);
51
+ }
52
+ };
53
+ this.subscription = this.frameApiService.getFrame(frameId).subscribe((frame) => {
54
+ frame.fragments.forEach((fragment) => fragmentActions[fragment.type](fragment));
55
+ });
56
+ }
57
+ setResourceFile(resource) {
58
+ const url = `${this.editorResourceUrl()}${resource.fileId}`;
59
+ this.isVideo = resource?.name?.split('.').pop() === 'mp4';
60
+ if (!url) {
61
+ return;
62
+ }
63
+ this.thumbnailUrl.set({ src: resource.fileId && url, name: resource.name || resource.type });
64
+ }
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionReadonlyInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiCriterionReadonlyInfoComponent, isStandalone: true, selector: "cui-criterion-readonly-info", inputs: { framerId: { classPropertyName: "framerId", publicName: "framerId", isSignal: true, isRequired: true, transformFunction: null }, element: { classPropertyName: "element", publicName: "element", isSignal: true, isRequired: false, transformFunction: null }, tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: true, transformFunction: null }, editorResourceUrl: { classPropertyName: "editorResourceUrl", publicName: "editorResourceUrl", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n @if (jText()) {\n @if (!isDescriptionEmpty()) {\n @if (thumbnailUrl(); as thumbnailUrl) {\n <cui-utility-readonly-thumbnail\n [thumbnailUrl]=\"thumbnailUrl\"\n [isVideo]=\"isVideo\"\n />\n }\n\n @if (jText()?.id; as id) {\n <div class=\"wrapper\">\n <cui-editor\n class=\"editor\"\n [editorApiId]=\"id\"\n [config]=\"editorConfig\"\n />\n </div>\n }\n } @else {\n <cui-empty-state [subtitle]=\"t('NO_DESCRIPTION_WAS_PROVIDED')\" />\n }\n }\n</ng-container>\n", styles: [":host{padding-top:16px;padding-right:16px;padding-left:16px;display:flex;flex-direction:column;gap:12px;height:100%;overflow:auto}.wrapper{padding:12px}.editor{display:block;height:100%;overflow:auto}\n"], dependencies: [{ kind: "component", type: CuiEditorComponent, selector: "cui-editor", inputs: ["editorApiId", "config", "requestSize"], outputs: ["editorEmpty"] }, { kind: "component", type: CuiEmptyStateComponent, selector: "cui-empty-state, [cuiEmptyState]", inputs: ["title", "subtitle"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiUtilityReadonlyThumbnailComponent, selector: "cui-utility-readonly-thumbnail", inputs: ["thumbnailUrl", "isVideo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67
+ }
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiCriterionReadonlyInfoComponent, decorators: [{
69
+ type: Component,
70
+ args: [{ selector: 'cui-criterion-readonly-info', imports: [CuiEditorComponent, CuiEmptyStateComponent, TranslocoDirective, CuiUtilityReadonlyThumbnailComponent], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n @if (jText()) {\n @if (!isDescriptionEmpty()) {\n @if (thumbnailUrl(); as thumbnailUrl) {\n <cui-utility-readonly-thumbnail\n [thumbnailUrl]=\"thumbnailUrl\"\n [isVideo]=\"isVideo\"\n />\n }\n\n @if (jText()?.id; as id) {\n <div class=\"wrapper\">\n <cui-editor\n class=\"editor\"\n [editorApiId]=\"id\"\n [config]=\"editorConfig\"\n />\n </div>\n }\n } @else {\n <cui-empty-state [subtitle]=\"t('NO_DESCRIPTION_WAS_PROVIDED')\" />\n }\n }\n</ng-container>\n", styles: [":host{padding-top:16px;padding-right:16px;padding-left:16px;display:flex;flex-direction:column;gap:12px;height:100%;overflow:auto}.wrapper{padding:12px}.editor{display:block;height:100%;overflow:auto}\n"] }]
71
+ }], ctorParameters: () => [] });
72
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaW9uLXJlYWRvbmx5LWluZm8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL2NyaXRlcmlvbi1yZWFkb25seS1pbmZvL2NyaXRlcmlvbi1yZWFkb25seS1pbmZvLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9jcml0ZXJpb24tcmVhZG9ubHktaW5mby9jcml0ZXJpb24tcmVhZG9ubHktaW5mby5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hIL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cblxuICAgIHByaXZhdGUgaW5pdEZyYW1lcklkRWZmZWN0KCk6IHZvaWQge1xuICAgICAgICBlZmZlY3QoKCkgPT4ge1xuICAgICAgICAgICAgY29uc3QgZnJhbWVySWQgPSB0aGlzLmZyYW1lcklkKCk7XG5cbiAgICAgICAgICAgIGlmICghZnJhbWVySWQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMuc3Vic2NyaXB0aW9uPy51bnN1YnNjcmliZSgpO1xuICAgICAgICAgICAgdGhpcy5pbml0RnJhbWVGcmFnbWVudHMoKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBpbml0RnJhbWVGcmFnbWVudHMoKTogdm9pZCB7XG4gICAgICAgIGNvbnN0IGZyYW1lSWQgPSB0aGlzLmZyYW1lcklkKCk7XG5cbiAgICAgICAgdGhpcy5qVGV4dC5zZXQobnVsbCk7XG4gICAgICAgIHRoaXMudGh1bWJuYWlsVXJsLnNldChudWxsKTtcblxuICAgICAgICBpZiAoIWZyYW1lSWQpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGZyYWdtZW50QWN0aW9ucyA9IHtcbiAgICAgICAgICAgIFtGcmFnbWVudFR5cGUualRleHRdOiAoZnJhZ21lbnQ6IEZyYWdtZW50KTogdm9pZCA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5qVGV4dC5zZXQoZnJhZ21lbnQgYXMgSlRleHRGcmFnbWVudCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW0ZyYWdtZW50VHlwZS5yZXNvdXJjZUZpbGVdOiAoZnJhZ21lbnQ6IEZyYWdtZW50KTogdm9pZCA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRSZXNvdXJjZUZpbGUoZnJhZ21lbnQgYXMgUmVzb3VyY2VGcmFnbWVudCk7XG4gICAgICAgICAgICB9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JuYWlsVXJsXCJcbiAgICAgICAgICAgICAgICAgICAgW2lzVmlkZW9dPVwiaXNWaWRlb1wiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgQGlmIChqVGV4dCgpPy5pZDsgYXMgaWQpIHtcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwid3JhcHBlclwiPlxuICAgICAgICAgICAgICAgICAgICA8Y3VpLWVkaXRvclxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJlZGl0b3JcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2VkaXRvckFwaUlkXT1cImlkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtjb25maWddPVwiZWRpdG9yQ29uZmlnXCJcbiAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBAZWxzZSB7XG4gICAgICAgICAgICA8Y3VpLWVtcHR5LXN0YXRlIFtzdWJ0aXRsZV09XCJ0KCdOT19ERVNDUklQVElPTl9XQVNfUFJPVklERUQnKVwiIC8+XG4gICAgICAgIH1cbiAgICB9XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './criterion-readonly-info.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvY3JpdGVyaW9uLXJlYWRvbmx5LWluZm8vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQ0FBcUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY3JpdGVyaW9uLXJlYWRvbmx5LWluZm8uY29tcG9uZW50JztcbiJdfQ==
@@ -0,0 +1,39 @@
1
+ import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';
2
+ import { TranslocoModule } from '@jsverse/transloco';
3
+ import { finalize } from 'rxjs';
4
+ import { CuiTooltip } from '../../../directives';
5
+ import { CUI_DIALOG_CONTEXT, CuiButtonModule } from '../../../components';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "../../../components/button/button.component";
8
+ import * as i2 from "@jsverse/transloco";
9
+ import * as i3 from "../../../directives/tooltip/tooltip.directive";
10
+ export class CuiDeleteModalComponent {
11
+ constructor() {
12
+ this.context = inject(CUI_DIALOG_CONTEXT);
13
+ this.data = this.context.data;
14
+ this.title = this.data.title;
15
+ this.content = this.data.content;
16
+ this.isLoading = signal(false);
17
+ this.isDisabled = this.data.isDisabled ?? false;
18
+ }
19
+ onDelete() {
20
+ if (!this.data.delete) {
21
+ return;
22
+ }
23
+ this.isLoading.set(true);
24
+ this.data
25
+ .delete()
26
+ .pipe(finalize(() => this.isLoading.set(false)))
27
+ .subscribe(() => this.context.completeWith());
28
+ }
29
+ onCancel() {
30
+ this.context.completeWith({ canceled: true });
31
+ }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDeleteModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiDeleteModalComponent, isStandalone: true, selector: "cui-delete-modal", ngImport: i0, template: "<div\n *transloco=\"let t\"\n class=\"wrapper\"\n>\n <div class=\"content\">\n <div class=\"header\">\n <h3 class=\"title\">{{ t(title) }}</h3>\n <button\n type=\"button\"\n cuiButton\n icon=\"cuiIconX\"\n appearance=\"ghost\"\n [disabled]=\"isLoading()\"\n class=\"close-btn\"\n (click)=\"onCancel()\"\n ></button>\n </div>\n <div class=\"info\">\n @for (text of content; track text) {\n <p [innerHTML]=\"t(text)\"></p>\n }\n </div>\n </div>\n\n <div class=\"footer\">\n <button\n type=\"button\"\n cuiButton\n (click)=\"onCancel()\"\n [disabled]=\"isLoading()\"\n appearance=\"secondary\"\n >\n {{ t('CANCEL') }}\n </button>\n <button\n type=\"button\"\n cuiButton\n [isLoaderShown]=\"isLoading()\"\n [disabled]=\"isDisabled\"\n [cuiTooltip]=\"isDisabled && t('IN_DEVELOPMENT')\"\n appearance=\"destructive\"\n (click)=\"onDelete()\"\n >\n {{ t('YES_DELETE') }}\n </button>\n </div>\n</div>\n", styles: [".wrapper{display:flex;flex-direction:column;gap:24px;padding:23px;border-radius:12px;width:400px}.header{display:flex;flex-direction:row;gap:8px;align-items:stretch;justify-content:space-between}.content{display:flex;flex-direction:column;gap:12px}.title{font-weight:500;font-size:18px;line-height:28px}.info{display:flex;flex-direction:column;gap:16px;font-weight:400;font-size:14px;line-height:20px}.footer{display:flex;flex-direction:row;gap:12px;align-items:stretch;justify-content:flex-end}.close-btn{margin:-8px}\n"], dependencies: [{ kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i1.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i2.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "directive", type: i3.CuiTooltipDirective, selector: "[cuiTooltip]:not(ng-container):not(ng-template)", inputs: ["cuiTooltipContext", "cuiTooltipAppearance", "cuiTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
+ }
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiDeleteModalComponent, decorators: [{
36
+ type: Component,
37
+ args: [{ selector: 'cui-delete-modal', imports: [CuiButtonModule, TranslocoModule, CuiTooltip], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n *transloco=\"let t\"\n class=\"wrapper\"\n>\n <div class=\"content\">\n <div class=\"header\">\n <h3 class=\"title\">{{ t(title) }}</h3>\n <button\n type=\"button\"\n cuiButton\n icon=\"cuiIconX\"\n appearance=\"ghost\"\n [disabled]=\"isLoading()\"\n class=\"close-btn\"\n (click)=\"onCancel()\"\n ></button>\n </div>\n <div class=\"info\">\n @for (text of content; track text) {\n <p [innerHTML]=\"t(text)\"></p>\n }\n </div>\n </div>\n\n <div class=\"footer\">\n <button\n type=\"button\"\n cuiButton\n (click)=\"onCancel()\"\n [disabled]=\"isLoading()\"\n appearance=\"secondary\"\n >\n {{ t('CANCEL') }}\n </button>\n <button\n type=\"button\"\n cuiButton\n [isLoaderShown]=\"isLoading()\"\n [disabled]=\"isDisabled\"\n [cuiTooltip]=\"isDisabled && t('IN_DEVELOPMENT')\"\n appearance=\"destructive\"\n (click)=\"onDelete()\"\n >\n {{ t('YES_DELETE') }}\n </button>\n </div>\n</div>\n", styles: [".wrapper{display:flex;flex-direction:column;gap:24px;padding:23px;border-radius:12px;width:400px}.header{display:flex;flex-direction:row;gap:8px;align-items:stretch;justify-content:space-between}.content{display:flex;flex-direction:column;gap:12px}.title{font-weight:500;font-size:18px;line-height:28px}.info{display:flex;flex-direction:column;gap:16px;font-weight:400;font-size:14px;line-height:20px}.footer{display:flex;flex-direction:row;gap:12px;align-items:stretch;justify-content:flex-end}.close-btn{margin:-8px}\n"] }]
38
+ }] });
39
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9kZWxldGUtbW9kYWwvZGVsZXRlLW1vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy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ZCA9IHRoaXMuZGF0YS5pc0Rpc2FibGVkID8/IGZhbHNlO1xuXG4gICAgcHJvdGVjdGVkIG9uRGVsZXRlKCk6IHZvaWQge1xuICAgICAgICBpZiAoIXRoaXMuZGF0YS5kZWxldGUpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuaXNMb2FkaW5nLnNldCh0cnVlKTtcbiAgICAgICAgdGhpcy5kYXRhXG4gICAgICAgICAgICAuZGVsZXRlKClcbiAgICAgICAgICAgIC5waXBlKGZpbmFsaXplKCgpID0+IHRoaXMuaXNMb2FkaW5nLnNldChmYWxzZSkpKVxuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB0aGlzLmNvbnRleHQuY29tcGxldGVXaXRoKCkpO1xuICAgIH1cblxuICAgIHByb3RlY3RlZCBvbkNhbmNlbCgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5jb250ZXh0LmNvbXBsZXRlV2l0aCh7IGNhbmNlbGVkOiB0cnVlIH0pO1xuICAgIH1cbn1cbiIsIjxkaXZcbiAgICAqdHJhbnNsb2NvPVwibGV0IHRcIlxuICAgIGNsYXNzPVwid3JhcHBlclwiXG4+XG4gICAgPGRpdiBjbGFzcz1cImNvbnRlbnRcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cImhlYWRlclwiPlxuICAgICAgICAgICAgPGgzIGNsYXNzPVwidGl0bGVcIj57eyB0KHRpdGxlKSB9fTwvaDM+XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgaWNvbj1cImN1aUljb25YXCJcbiAgICAgICAgICAgICAgICBhcHBlYXJhbmNlPVwiZ2hvc3RcIlxuICAgICAgICAgICAgICAgIFtkaXNhYmxlZF09XCJpc0xvYWRpbmcoKVwiXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJjbG9zZS1idG5cIlxuICAgICAgICAgICAgICAgIChjbGljayk9XCJvbkNhbmNlbCgpXCJcbiAgICAgICAgICAgID48L2J1dHRvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJpbmZvXCI+XG4gICAgICAgICAgICBAZm9yICh0ZXh0IG9mIGNvbnRlbnQ7IHRyYWNrIHRleHQpIHtcbiAgICAgICAgICAgICAgICA8cCBbaW5uZXJIVE1MXT1cInQodGV4dClcIj48L3A+XG4gICAgICAgICAgICB9XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuXG4gICAgPGRpdiBjbGFzcz1cImZvb3RlclwiPlxuICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIGN1aUJ1dHRvblxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uQ2FuY2VsKClcIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cImlzTG9hZGluZygpXCJcbiAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJzZWNvbmRhcnlcIlxuICAgICAgICA+XG4gICAgICAgICAgICB7eyB0KCdDQU5DRUwnKSB9fVxuICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgIFtpc0xvYWRlclNob3duXT1cImlzTG9hZGluZygpXCJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCJpc0Rpc2FibGVkXCJcbiAgICAgICAgICAgIFtjdWlUb29sdGlwXT1cImlzRGlzYWJsZWQgJiYgdCgnSU5fREVWRUxPUE1FTlQnKVwiXG4gICAgICAgICAgICBhcHBlYXJhbmNlPVwiZGVzdHJ1Y3RpdmVcIlxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uRGVsZXRlKClcIlxuICAgICAgICA+XG4gICAgICAgICAgICB7eyB0KCdZRVNfREVMRVRFJykgfX1cbiAgICAgICAgPC9idXR0b24+XG4gICAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLW1vZGFsLm9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvZGVsZXRlLW1vZGFsL2RlbGV0ZS1tb2RhbC5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcblxuZXhwb3J0IGludGVyZmFjZSBDdWlEaWFsb2dEZWxldGVEYXRhIHtcbiAgICByZWFkb25seSB0aXRsZTogc3RyaW5nO1xuICAgIHJlYWRvbmx5IGNvbnRlbnQ6IHN0cmluZ1tdO1xuICAgIHJlYWRvbmx5IGlzRGlzYWJsZWQ/OiBib29sZWFuO1xuICAgIHJlYWRvbmx5IGRlbGV0ZTogKCkgPT4gT2JzZXJ2YWJsZTx2b2lkPjtcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export { CuiDeleteModalComponent } from './delete-modal.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvZGVsZXRlLW1vZGFsL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ3VpRGVsZXRlTW9kYWxDb21wb25lbnQgfSBmcm9tICcuL2RlbGV0ZS1tb2RhbC5jb21wb25lbnQnO1xuZXhwb3J0IHsgQ3VpRGlhbG9nRGVsZXRlRGF0YSB9IGZyb20gJy4vZGVsZXRlLW1vZGFsLm9wdGlvbnMnO1xuIl19
@@ -0,0 +1,77 @@
1
+ import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, signal } from '@angular/core';
2
+ import { TranslocoDirective } from '@jsverse/transloco';
3
+ import { CuiFrameApiService } from '@cuby-ui/api';
4
+ import { CuiEditorComponent } from '../../../editor';
5
+ import { CuiEmptyStateComponent } from '../../../components';
6
+ import * as i0 from "@angular/core";
7
+ export class CuiFramerPreviewComponent {
8
+ constructor() {
9
+ this.hostElement = inject(ElementRef).nativeElement;
10
+ this.frameApiService = inject(CuiFrameApiService);
11
+ this.isVideo = false;
12
+ this.jText = signal(null);
13
+ this.thumbnailUrl = signal(null);
14
+ this.isDescriptionEmpty = computed(() => !this.jText()?.notEmpty);
15
+ this.framerId = input.required();
16
+ this.config = input.required();
17
+ this.editorResourceUrl = input.required();
18
+ this.title = input();
19
+ this.initConfigEffect();
20
+ this.initFramerIdEffect();
21
+ }
22
+ initConfigEffect() {
23
+ effect(() => {
24
+ this.editorConfig = {
25
+ element: this.hostElement,
26
+ ...this.config(),
27
+ readOnly: true
28
+ };
29
+ }, { allowSignalWrites: true });
30
+ }
31
+ initFramerIdEffect() {
32
+ effect(() => {
33
+ const framerId = this.framerId();
34
+ if (!framerId) {
35
+ return;
36
+ }
37
+ this.subscription?.unsubscribe();
38
+ this.initFrameFragments();
39
+ }, { allowSignalWrites: true });
40
+ }
41
+ initFrameFragments() {
42
+ const frameId = this.framerId();
43
+ this.jText.set(null);
44
+ this.thumbnailUrl.set(null);
45
+ if (!frameId) {
46
+ return;
47
+ }
48
+ const fragmentActions = {
49
+ J_TEXT: (fragment) => {
50
+ this.jText.set(fragment);
51
+ },
52
+ RESOURCE_FILE: (fragment) => {
53
+ this.setResourceFile(fragment);
54
+ }
55
+ };
56
+ this.subscription = this.frameApiService
57
+ .getFrame(frameId, this.editorConfig.requestOptions)
58
+ .subscribe((frame) => {
59
+ frame.fragments.forEach((fragment) => fragmentActions[fragment.type](fragment));
60
+ });
61
+ }
62
+ setResourceFile(resource) {
63
+ const url = `${this.editorResourceUrl()}/${resource.fileId}`;
64
+ this.isVideo = resource?.name?.split('.').pop() === 'mp4';
65
+ if (!url) {
66
+ return;
67
+ }
68
+ this.thumbnailUrl.set({ src: resource.fileId && url, name: resource.name || resource.type });
69
+ }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFramerPreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiFramerPreviewComponent, isStandalone: true, selector: "cui-framer-preview", inputs: { framerId: { classPropertyName: "framerId", publicName: "framerId", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, editorResourceUrl: { classPropertyName: "editorResourceUrl", publicName: "editorResourceUrl", isSignal: true, isRequired: true, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n @if (jText()) {\n @if (!isDescriptionEmpty()) {\n @let url = thumbnailUrl();\n\n @if (url?.src; as src) {\n @if (isVideo) {\n <video\n class=\"thumbnail\"\n [src]=\"src\"\n controls\n ></video>\n } @else {\n <img\n class=\"thumbnail\"\n [src]=\"src\"\n [alt]=\"url?.name\"\n />\n }\n }\n\n <div class=\"content\">\n @if (title(); as title) {\n <div class=\"title\">{{ title }}</div>\n }\n\n @if (jText()?.id; as id) {\n <div class=\"wrapper\">\n <cui-editor\n class=\"editor\"\n [editorApiId]=\"id\"\n [config]=\"editorConfig\"\n />\n </div>\n }\n </div>\n } @else {\n <cui-empty-state [subtitle]=\"t('NO_DESCRIPTION_WAS_PROVIDED')\" />\n }\n }\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;gap:0;height:100%;overflow:auto}.thumbnail{width:100%;max-height:271px;object-fit:contain}.content{display:flex;flex-direction:column;gap:14px;padding:16px 12px}.title{font-weight:500;font-size:18px;line-height:28px}.editor{display:block;height:100%;overflow:auto}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiEditorComponent, selector: "cui-editor", inputs: ["editorApiId", "config", "requestSize"], outputs: ["editorEmpty"] }, { kind: "component", type: CuiEmptyStateComponent, selector: "cui-empty-state, [cuiEmptyState]", inputs: ["title", "subtitle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
72
+ }
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiFramerPreviewComponent, decorators: [{
74
+ type: Component,
75
+ args: [{ selector: 'cui-framer-preview', imports: [TranslocoDirective, CuiEditorComponent, CuiEmptyStateComponent], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n @if (jText()) {\n @if (!isDescriptionEmpty()) {\n @let url = thumbnailUrl();\n\n @if (url?.src; as src) {\n @if (isVideo) {\n <video\n class=\"thumbnail\"\n [src]=\"src\"\n controls\n ></video>\n } @else {\n <img\n class=\"thumbnail\"\n [src]=\"src\"\n [alt]=\"url?.name\"\n />\n }\n }\n\n <div class=\"content\">\n @if (title(); as title) {\n <div class=\"title\">{{ title }}</div>\n }\n\n @if (jText()?.id; as id) {\n <div class=\"wrapper\">\n <cui-editor\n class=\"editor\"\n [editorApiId]=\"id\"\n [config]=\"editorConfig\"\n />\n </div>\n }\n </div>\n } @else {\n <cui-empty-state [subtitle]=\"t('NO_DESCRIPTION_WAS_PROVIDED')\" />\n }\n }\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;gap:0;height:100%;overflow:auto}.thumbnail{width:100%;max-height:271px;object-fit:contain}.content{display:flex;flex-direction:column;gap:14px;padding:16px 12px}.title{font-weight:500;font-size:18px;line-height:28px}.editor{display:block;height:100%;overflow:auto}\n"] }]
76
+ }], ctorParameters: () => [] });
77
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJhbWVyLXByZXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS93aWRnZXRzL3VpL2ZyYW1lci1wcmV2aWV3L2ZyYW1lci1wcmV2aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9mcmFtZXItcHJldmlldy9mcmFtZXItcHJldmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hILE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxrQkFBa0IsRUFBNkMsTUFBTSxjQUFjLENBQUM7QUFLN0YsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDckQsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBWTdELE1BQU0sT0FBTyx5QkFBeUI7SUFtQmxDO1FBb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UmVzb3VyY2VVcmwgPSBpbnB1dC5yZXF1aXJlZDxzdHJpbmc+KCk7XG4gICAgcHVibGljIHJlYWRvbmx5IHRpdGxlID0gaW5wdXQ8c3RyaW5nPigpO1xuXG4gICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgIHRoaXMuaW5pdENvbmZpZ0VmZmVjdCgpO1xuICAgICAgICB0aGlzLmluaXRGcmFtZXJJZEVmZmVjdCgpO1xuICAgIH1cblxuICAgIHByaXZhdGUgaW5pdENvbmZpZ0VmZmVjdCgpOiB2b2lkIHtcbiAgICAgICAgZWZmZWN0KFxuICAgICAgICAgICAgKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuZWRpdG9yQ29uZmlnID0ge1xuICAgICAgICAgICAgICAgICAgICBlbGVtZW50OiB0aGlzLmhvc3RFbGVtZW50LFxuICAgICAgICAgICAgICAgICAgICAuLi50aGlzLmNvbmZpZygpLFxuICAgICAgICAgICAgICAgICAgICByZWFkT25seTogdHJ1ZVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgeyBhbGxvd1NpZ25hbFdyaXRlczogdHJ1ZSB9XG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBpbml0RnJhbWVySWRFZmZlY3QoKTogdm9pZCB7XG4gICAgICAgIGVmZmVjdChcbiAgICAgICAgICAgICgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBmcmFtZXJJZCA9IHRoaXMuZnJhbWVySWQoKTtcblxuICAgICAgICAgICAgICAgIGlmICghZnJhbWVySWQpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHRoaXMuc3Vic2NyaXB0aW9uPy51bnN1YnNjcmliZSgpO1xuICAgICAgICAgICAgICAgIHRoaXMuaW5pdEZyYW1lRnJhZ21lbnRzKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAge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ICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHNldFJlc291cmNlRmlsZShyZXNvdXJjZTogUmVzb3VyY2VGcmFnbWVudCk6IHZvaWQge1xuICAgICAgICBjb25zdCB1cmwgPSBgJHt0aGlzLmVkaXRvclJlc291cmNlVXJsKCl9LyR7cmVzb3VyY2UuZmlsZUlkfWA7XG5cbiAgICAgICAgdGhpcy5pc1ZpZGVvID0gcmVzb3VyY2U/Lm5hbWU/LnNwbGl0KCcuJykucG9wKCkgPT09ICdtcDQnO1xuXG4gICAgICAgIGlmICghdXJsKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnRodW1ibmFpbFVybC5zZXQoeyBzcmM6IHJlc291cmNlLmZpbGVJZCAmJiB1cmwsIG5hbWU6IHJlc291cmNlLm5hbWUgfHwgcmVzb3VyY2UudHlwZSB9KTtcbiAgICB9XG59XG4iLCI8bmctY29udGFpbmVyICp0cmFuc2xvY289XCJsZXQgdFwiPlxuICAgIEBpZiAoalRleHQoKSkge1xuICAgICAgICBAaWYgKCFpc0Rlc2NyaXB0aW9uRW1wdHkoKSkge1xuICAgICAgICAgICAgQGxldCB1cmwgPSB0aHVtYm5haWxVcmwoKTtcblxuICAgICAgICAgICAgQGlmICh1cmw/LnNyYzsgYXMgc3JjKSB7XG4gICAgICAgICAgICAgICAgQGlmIChpc1ZpZGVvKSB7XG4gICAgICAgICAgICAgICAgICAgIDx2aWRlb1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJ0aHVtYm5haWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW3NyY109XCJzcmNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgY29udHJvbHNcbiAgICAgICAgICAgICAgICAgICAgPjwvdmlkZW8+XG4gICAgICAgICAgICAgICAgfSBAZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIDxpbWdcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwidGh1bWJuYWlsXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtzcmNdPVwic3JjXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFthbHRdPVwidXJsPy5uYW1lXCJcbiAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb250ZW50XCI+XG4gICAgICAgICAgICAgICAgQGlmICh0aXRsZSgpOyBhcyB0aXRsZSkge1xuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidGl0bGVcIj57eyB0aXRsZSB9fTwvZGl2PlxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIEBpZiAoalRleHQoKT8uaWQ7IGFzIGlkKSB7XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJ3cmFwcGVyXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8Y3VpLWVkaXRvclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwiZWRpdG9yXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZWRpdG9yQXBpSWRdPVwiaWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtjb25maWddPVwiZWRpdG9yQ29uZmlnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICB9IEBlbHNlIHtcbiAgICAgICAgICAgIDxjdWktZW1wdHktc3RhdGUgW3N1YnRpdGxlXT1cInQoJ05PX0RFU0NSSVBUSU9OX1dBU19QUk9WSURFRCcpXCIgLz5cbiAgICAgICAgfVxuICAgIH1cbjwvbmctY29udGFpbmVyPlxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJhbWVyLXByZXZpZXcub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvd2lkZ2V0cy91aS9mcmFtZXItcHJldmlldy9mcmFtZXItcHJldmlldy5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEN1aU51bGxhYmxlIH0gZnJvbSAnQGN1YnktdWkvY2RrJztcblxuZXhwb3J0IGludGVyZmFjZSBDdWlJbWFnZVVybCB7XG4gICAgcmVhZG9ubHkgc3JjOiBDdWlOdWxsYWJsZTxzdHJpbmc+O1xuICAgIHJlYWRvbmx5IG5hbWU6IHN0cmluZztcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export { CuiFramerPreviewComponent } from './framer-preview.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvZnJhbWVyLXByZXZpZXcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sNEJBQTRCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlGcmFtZXJQcmV2aWV3Q29tcG9uZW50IH0gZnJvbSAnLi9mcmFtZXItcHJldmlldy5jb21wb25lbnQnO1xuZXhwb3J0IHsgQ3VpSW1hZ2VVcmwgfSBmcm9tICcuL2ZyYW1lci1wcmV2aWV3Lm9wdGlvbnMnO1xuIl19
@@ -0,0 +1,21 @@
1
+ import { ChangeDetectionStrategy, Component, input } from '@angular/core';
2
+ import { TranslocoDirective } from '@jsverse/transloco';
3
+ import { CuiHintModule } from '../../../components';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../../../components/hint/hint.component";
6
+ export class CuiGeneralControlErrorHintComponent {
7
+ constructor() {
8
+ this.control = input.required();
9
+ this.isVisible = input();
10
+ }
11
+ get isInvalid() {
12
+ return this.isVisible() ?? (this.control().invalid && this.control().dirty);
13
+ }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiGeneralControlErrorHintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiGeneralControlErrorHintComponent, isStandalone: true, selector: "cui-general-control-error-hint", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: true, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n @if (isInvalid) {\n @if (control().errors; as errors) {\n <cui-hint hintType=\"error\">\n @if (errors['required']) {\n {{ t('FIELD_IS_REQUIRED') }}\n } @else if (errors['minlength']) {\n {{ t('PLEASE_KEEP_FIELD_AT_LEAST_CHARACTERS', { value: errors['minlength'].requiredLength }) }}\n } @else if (errors['maxlength']) {\n {{ t('PLEASE_KEEP_FIELD_UNDER_CHARACTERS', { value: errors['maxlength'].requiredLength }) }}\n } @else if (errors['extraSpaces']) {\n {{ t('MUST_BE_WITHOUT_EXTRA_SPACES') }}\n } @else if (errors['min']) {\n {{ t('MIN_VALUE_MUST_BE_MORE_THAN', { value: errors['min'].min }) }}\n } @else if (errors['max']) {\n {{ t('MAX_VALUE_MUST_BE_LESS_THAN', { value: errors['max'].max }) }}\n } @else if (errors['email']) {\n {{ t('INVALID_EMAIL_ADDRESS') }}\n }\n </cui-hint>\n }\n }\n</ng-container>\n", styles: [":host{display:inline-block}:host:empty{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CuiHintModule }, { kind: "component", type: i1.CuiHintComponent, selector: "cui-hint", inputs: ["hintType"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiGeneralControlErrorHintComponent, decorators: [{
18
+ type: Component,
19
+ args: [{ selector: 'cui-general-control-error-hint', imports: [CuiHintModule, TranslocoDirective], standalone: true, changeDetection: ChangeDetectionStrategy.Default, template: "<ng-container *transloco=\"let t\">\n @if (isInvalid) {\n @if (control().errors; as errors) {\n <cui-hint hintType=\"error\">\n @if (errors['required']) {\n {{ t('FIELD_IS_REQUIRED') }}\n } @else if (errors['minlength']) {\n {{ t('PLEASE_KEEP_FIELD_AT_LEAST_CHARACTERS', { value: errors['minlength'].requiredLength }) }}\n } @else if (errors['maxlength']) {\n {{ t('PLEASE_KEEP_FIELD_UNDER_CHARACTERS', { value: errors['maxlength'].requiredLength }) }}\n } @else if (errors['extraSpaces']) {\n {{ t('MUST_BE_WITHOUT_EXTRA_SPACES') }}\n } @else if (errors['min']) {\n {{ t('MIN_VALUE_MUST_BE_MORE_THAN', { value: errors['min'].min }) }}\n } @else if (errors['max']) {\n {{ t('MAX_VALUE_MUST_BE_LESS_THAN', { value: errors['max'].max }) }}\n } @else if (errors['email']) {\n {{ t('INVALID_EMAIL_ADDRESS') }}\n }\n </cui-hint>\n }\n }\n</ng-container>\n", styles: [":host{display:inline-block}:host:empty{display:none}\n"] }]
20
+ }] });
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhbC1jb250cm9sLWVycm9yLWhpbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI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H0gQGVsc2UgaWYgKGVycm9yc1snbWluJ10pIHtcbiAgICAgICAgICAgICAgICAgICAge3sgdCgnTUlOX1ZBTFVFX01VU1RfQkVfTU9SRV9USEFOJywgeyB2YWx1ZTogZXJyb3JzWydtaW4nXS5taW4gfSkgfX1cbiAgICAgICAgICAgICAgICB9IEBlbHNlIGlmIChlcnJvcnNbJ21heCddKSB7XG4gICAgICAgICAgICAgICAgICAgIHt7IHQoJ01BWF9WQUxVRV9NVVNUX0JFX0xFU1NfVEhBTicsIHsgdmFsdWU6IGVycm9yc1snbWF4J10ubWF4IH0pIH19XG4gICAgICAgICAgICAgICAgfSBAZWxzZSBpZiAoZXJyb3JzWydlbWFpbCddKSB7XG4gICAgICAgICAgICAgICAgICAgIHt7IHQoJ0lOVkFMSURfRU1BSUxfQUREUkVTUycpIH19XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgPC9jdWktaGludD5cbiAgICAgICAgfVxuICAgIH1cbjwvbmctY29udGFpbmVyPlxuIl19
@@ -0,0 +1,2 @@
1
+ export { CuiGeneralControlErrorHintComponent } from './general-control-error-hint.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvZ2VuZXJhbC1jb250cm9sLWVycm9yLWhpbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1DQUFtQyxFQUFFLE1BQU0sd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDdWlHZW5lcmFsQ29udHJvbEVycm9ySGludENvbXBvbmVudCB9IGZyb20gJy4vZ2VuZXJhbC1jb250cm9sLWVycm9yLWhpbnQuY29tcG9uZW50JztcbiJdfQ==
@@ -0,0 +1,30 @@
1
+ export { CuiStatedLoaderComponent } from './stated-loader';
2
+ export { CuiCircleLoaderComponent } from './circle-loader';
3
+ export { CuiLinearLoaderComponent } from './linear-loader';
4
+ export { CuiDeleteModalComponent } from './delete-modal';
5
+ export { CuiCategoriesComponent, CuiSelectedCategoryService } from './categories';
6
+ export { CuiChecklistBlockComponent } from './checklist-block';
7
+ export { CuiInstructionReadonlyInfoComponent } from './instruction-readonly-info';
8
+ export { CuiCriterionInfoComponent } from './criterion-info';
9
+ export { CuiInstructionInfoComponent } from './instruction-info';
10
+ export { CuiGeneralControlErrorHintComponent } from './general-control-error-hint';
11
+ export { CuiFramerPreviewComponent } from './framer-preview';
12
+ export * from './instruction-info-form';
13
+ export * from './select-modal';
14
+ export * from './storage-list';
15
+ export * from './utility-modal';
16
+ export * from './user-action-context-menu';
17
+ export * from './assignee-role-item';
18
+ export * from './assignee-roles-tabs';
19
+ export * from './modal-divided-section';
20
+ export * from './modal-header-inserted-buttons';
21
+ export * from './modal-info-tab';
22
+ export * from './modal-operation-part';
23
+ export * from './modal-resources-tab';
24
+ export * from './render-dynamic-modal';
25
+ export * from './resources-block';
26
+ export * from './utility-info-readonly';
27
+ export * from './inserted';
28
+ export * from './instruction-readonly-info';
29
+ export * from './button-change-theme';
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3dpZGdldHMvdWkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0QsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0QsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0QsT0FBTyxFQ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