@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,32 @@
1
+ import { COMBINED_TEXT_BLOCK_PART } from '../constants';
2
+ export function recalculateIndexes(blocksApi) {
3
+ if (!blocksApi) {
4
+ return;
5
+ }
6
+ const blocks = blocksApi.getBlocksCount();
7
+ let index = 0;
8
+ for (let i = 0; i < blocks; i++) {
9
+ const block = blocksApi.getBlockByIndex(i);
10
+ if (!block) {
11
+ continue;
12
+ }
13
+ const blockElement = block?.holder;
14
+ const subblocks = blockElement.querySelectorAll('.' + COMBINED_TEXT_BLOCK_PART);
15
+ blockElement.setAttribute('data-index', String(index));
16
+ if (!subblocks.length) {
17
+ index++;
18
+ continue;
19
+ }
20
+ subblocks.forEach((subblock) => {
21
+ const subBlockIndex = subblock.getAttribute('data-index');
22
+ const indexAsNumber = subBlockIndex ? Number(subBlockIndex) : null;
23
+ if (indexAsNumber !== null && indexAsNumber === index) {
24
+ index++;
25
+ return;
26
+ }
27
+ subblock.setAttribute('data-index', String(index));
28
+ index++;
29
+ });
30
+ }
31
+ }
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYWxjdWxhdGUtaW5kZXhlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL3V0aWxzL3JlY2FsY3VsYXRlLWluZGV4ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXhELE1BQU0sVUFBVSxrQkFBa0IsQ0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nlTZWxlY3RvckFsbCgnLicgKyBDT01CSU5FRF9URVhUX0JMT0NLX1BBUlQpO1xyXG5cclxuICAgICAgICBibG9ja0VsZW1lbnQuc2V0QXR0cmlidXRlKCdkYXRhLWluZGV4JywgU3RyaW5nKGluZGV4KSk7XHJcblxyXG4gICAgICAgIGlmICghc3ViYmxvY2tzLmxlbmd0aCkge1xyXG4gICAgICAgICAgICBpbmRleCsrO1xyXG5cclxuICAgICAgICAgICAgY29udGludWU7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBzdWJibG9ja3MuZm9yRWFjaCgoc3ViYmxvY2spID0+IHtcclxuICAgICAgICAgICAgY29uc3Qgc3ViQmxvY2tJbmRleCA9IHN1YmJsb2NrLmdldEF0dHJpYnV0ZSgnZGF0YS1pbmRleCcpO1xyXG4gICAgICAgICAgICBjb25zdCBpbmRleEFzTnVtYmVyID0gc3ViQmxvY2tJbmRleCA/IE51bWJlcihzdWJCbG9ja0luZGV4KSA6IG51bGw7XHJcblxyXG4gICAgICAgICAgICBpZiAoaW5kZXhBc051bWJlciAhPT0gbnVsbCAmJiBpbmRleEFzTnVtYmVyID09PSBpbmRleCkge1xyXG4gICAgICAgICAgICAgICAgaW5kZXgrKztcclxuXHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIHN1YmJsb2NrLnNldEF0dHJpYnV0ZSgnZGF0YS1pbmRleCcsIFN0cmluZyhpbmRleCkpO1xyXG4gICAgICAgICAgICBpbmRleCsrO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
@@ -0,0 +1,11 @@
1
+ export function removeElementTagWrapper(element) {
2
+ const parent = element.parentElement;
3
+ const innerElementNodes = element.childNodes;
4
+ let node;
5
+ while (innerElementNodes.length) {
6
+ node = innerElementNodes.item(0);
7
+ parent?.insertBefore(node, element);
8
+ }
9
+ element.remove();
10
+ }
11
+ //# sourceMappingURL=data:application/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udE5vZGVzLml0ZW0oMCk7XHJcblxyXG4gICAgICAgIHBhcmVudD8uaW5zZXJ0QmVmb3JlKG5vZGUsIGVsZW1lbnQpO1xyXG4gICAgfVxyXG5cclxuICAgIGVsZW1lbnQucmVtb3ZlKCk7XHJcbn1cclxuIl19
@@ -0,0 +1,14 @@
1
+ import { AngularOutsideLoaderService } from '../../services';
2
+ import { CuiFileUploaderStatus } from './file-uploader';
3
+ export function setLoading(status) {
4
+ const service = AngularOutsideLoaderService.getInstance();
5
+ const loadingActions = {
6
+ [CuiFileUploaderStatus.Loading]: () => service.setLoading(),
7
+ [CuiFileUploaderStatus.Completed]: () => {
8
+ service.setCompleted();
9
+ service.handleCompletedRequest();
10
+ }
11
+ };
12
+ return loadingActions[status]();
13
+ }
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0LWxvYWRpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci91dGlscy9zZXQtbG9hZGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3RCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV4RCxNQUFNLFVBQVUsVUFBVSxDQUFDLE1BQTZCO0lBQ3BELE1BQU0sT0FBTyxHQUFHLDJCQUEyQixDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQzFELE1BQU0sY0FBYyxHQUE4QztRQUM5RCxDQUFDLHFCQUFxQixDQUFDLE9BQU8sQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQyxVQUFVLEVBQUU7UUFDM0QsQ0FBQyxxQkFBcUIsQ0FBQyxTQUFTLENBQUMsRUFBRSxHQUFHLEVBQUU7WUFD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, a: true };
3
+ const PART_LENGTH_MEASUREMENT_ERROR = 20;
4
+ const BR_TAG = '<br>';
5
+ export function splitHTML(input, maxLength = SPLIT_LENGTH) {
6
+ const parts = [];
7
+ const tagNames = [];
8
+ const tags = [];
9
+ let currentPart = '';
10
+ let index = 0;
11
+ // remove specsymbols
12
+ input = input.replaceAll('&nbsp;', ' ');
13
+ while (input.length > index) {
14
+ while (currentPart.length < maxLength && input.length > index) {
15
+ if (checkIsBrTag(input, index)) {
16
+ // when br tag
17
+ if (currentPart.length + BR_TAG.length > maxLength) {
18
+ parts.push(currentPart);
19
+ currentPart = BR_TAG;
20
+ }
21
+ else {
22
+ currentPart += BR_TAG;
23
+ }
24
+ index += BR_TAG.length - 1;
25
+ }
26
+ else if (checkIsEndOfTag(input, index)) {
27
+ // when tag ends
28
+ const tagName = getEndTag(tagNames.pop());
29
+ tags.pop();
30
+ if ((currentPart + tagName).length > maxLength) {
31
+ parts.push(currentPart);
32
+ currentPart = '';
33
+ }
34
+ else {
35
+ currentPart += tagName;
36
+ }
37
+ index += tagName.length - 1;
38
+ }
39
+ else if (input[index] === '<') {
40
+ // when tag starts
41
+ const { tag, tagName, newIndex } = getTagAndTagName(input, index);
42
+ index = newIndex;
43
+ if (checkIsLengthEnough(currentPart, tag)) {
44
+ currentPart = switchPartWhenUnclosedTagsExist(tagNames, tags, parts, currentPart);
45
+ }
46
+ currentPart += tag;
47
+ if (!unsplittableTags[tagName]) {
48
+ tagNames.push(tagName);
49
+ tags.push(tag);
50
+ }
51
+ }
52
+ else {
53
+ // other symbols
54
+ currentPart += input[index];
55
+ }
56
+ index += 1;
57
+ }
58
+ currentPart = switchPartWhenUnclosedTagsExist(tagNames, tags, parts, currentPart);
59
+ }
60
+ return parts;
61
+ }
62
+ function switchPartWhenUnclosedTagsExist(tagNames, tags, parts, currentPart) {
63
+ if (!tagNames.length) {
64
+ parts.push(currentPart);
65
+ return '';
66
+ }
67
+ let closeAllTags = '';
68
+ for (let i = tagNames.length - 1; i >= 0; i -= 1) {
69
+ closeAllTags += getEndTag(tagNames[i]);
70
+ }
71
+ currentPart += closeAllTags;
72
+ parts.push(currentPart);
73
+ currentPart = tags.reduce((openTags, tag) => (openTags += tag), '');
74
+ return currentPart;
75
+ }
76
+ function getTagAndTagName(input, index) {
77
+ let tag = '';
78
+ let tagName = '';
79
+ tag += input[index];
80
+ index += 1;
81
+ while (input[index] !== ' ' && input[index] !== '>') {
82
+ tag += input[index];
83
+ tagName += input[index];
84
+ index += 1;
85
+ }
86
+ while (input[index] !== '>') {
87
+ tag += input[index];
88
+ index += 1;
89
+ }
90
+ tag += input[index];
91
+ [tag, index] = getFullTag(input, index, tag, tagName);
92
+ return { tag, tagName, newIndex: index };
93
+ }
94
+ function getFullTag(input, index, tag, tagName) {
95
+ if (!unsplittableTags[tagName]) {
96
+ return [tag, index];
97
+ }
98
+ let fullTag = tag;
99
+ index += 1;
100
+ while (!checkIsEndOfTag(input, index)) {
101
+ fullTag += input[index];
102
+ index += 1;
103
+ }
104
+ const endTag = getEndTag(tagName);
105
+ index += endTag.length - 1;
106
+ return [fullTag + endTag, index];
107
+ }
108
+ function checkIsLengthEnough(currentPart, tag) {
109
+ return currentPart.length + tag.length + PART_LENGTH_MEASUREMENT_ERROR > SPLIT_LENGTH;
110
+ }
111
+ function getEndTag(tagName) {
112
+ return '</' + tagName + '>';
113
+ }
114
+ function checkIsEndOfTag(input, index) {
115
+ return input[index] === '<' && input[index + 1] === '/';
116
+ }
117
+ function checkIsBrTag(input, index) {
118
+ let tag = '';
119
+ if (input[index] !== '<') {
120
+ return false;
121
+ }
122
+ while (input[index] && input[index] !== '>') {
123
+ tag += input[index];
124
+ index += 1;
125
+ }
126
+ return tag + '>' === BR_TAG;
127
+ }
128
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtaHRtbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4u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AgICAgICAgICBjdXJyZW50UGFydCA9IEJSX1RBRztcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudFBhcnQgKz0gQlJfVEFHO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGluZGV4ICs9IEJSX1RBRy5sZW5ndGggLSAxO1xyXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNoZWNrSXNFbmRPZlRhZyhpbnB1dCwgaW5kZXgpKSB7XHJcbiAgICAgICAgICAgICAgICAvLyB3aGVuIHRhZyBlbmRzXHJcbiAgICAgICAgICAgICAgICBjb25zdCB0YWdOYW1lID0gZ2V0RW5kVGFnKHRhZ05hbWVzLnBvcCgpISk7XHJcblxyXG4gICAgICAgICAgICAgICAgdGFncy5wb3AoKTtcclxuXHJcbiAgICAgICAgICAgICAgICBpZiAoKGN1cnJlbnRQYXJ0ICsgdGFnTmFtZSkubGVuZ3RoID4gbWF4TGVuZ3RoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcGFydHMucHVzaChjdXJyZW50UGFydCk7XHJcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudFBhcnQgPSAnJztcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudFBhcnQgKz0gdGFnTmFtZTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBpbmRleCArPSB0YWdOYW1lLmxlbmd0aCAtIDE7XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXRbaW5kZXhdID09PSAnPCcpIHtcclxuICAgICAgICAgICAgICAgIC8vIHdoZW4gdGFnIHN0YXJ0c1xyXG4gICAgICAgICAgICAgICAgY29uc3QgeyB0YWcsIHRhZ05hbWUsIG5ld0luZGV4IH0gPSBnZXRUYWdBbmRUYWdOYW1lKGlucHV0LCBpbmRleCk7XHJcblxyXG4gICAgICAgICAgICAgICAgaW5kZXggPSBuZXdJbmRleDtcclxuXHJcbiAgICAgICAgICAgICAgICBpZiAoY2hlY2tJc0xlbmd0aEVub3VnaChjdXJyZW50UGFydCwgdGFnKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGN1cnJlbnRQYXJ0ID0gc3dpdGNoUGFydFdoZW5VbmNsb3NlZFRhZ3NFeGlzdCh0YWdOYW1lcywgdGFncywgcGFydHMsIGN1cnJlbnRQYXJ0KTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBjdXJyZW50UGFydCArPSB0YWc7XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKCF1bnNwbGl0dGFibGVUYWdzW3RhZ05hbWVdKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGFnTmFtZXMucHVzaCh0YWdOYW1lKTtcclxuICAgICAgICAgICAgICAgICAgICB0YWdzLnB1c2godGFnKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgIC8vIG90aGVyIHN5bWJvbHNcclxuICAgICAgICAgICAgICAgIGN1cnJlbnRQYXJ0ICs9IGlucHV0W2luZGV4XTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaW5kZXggKz0gMTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGN1cnJlbnRQYXJ0ID0gc3dpdGNoUGFydFdoZW5VbmNsb3NlZFRhZ3NFeGlzdCh0YWdOYW1lcywgdGFncywgcGFydHMsIGN1cnJlbnRQYXJ0KTtcclxuICAgIH1cclxuXHJcbiAgICByZXR1cm4gcGFydHM7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIHN3aXRjaFBhcnRXaGVuVW5jbG9zZWRUYWdzRXhpc3QoXHJcbiAgICB0YWdOYW1lczogc3RyaW5nW10sXHJcbiAgICB0YWdzOiBzdHJpbmdbXSxcclxuICAgIHBhcnRzOiBzdHJpbmdbXS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iB7XHJcbiAgICByZXR1cm4gY3VycmVudFBhcnQubGVuZ3RoICsgdGFnLmxlbmd0aCArIFBBUlRfTEVOR1RIX01FQVNVUkVNRU5UX0VSUk9SID4gU1BMSVRfTEVOR1RIO1xyXG59XHJcblxyXG5mdW5jdGlvbiBnZXRFbmRUYWcodGFnTmFtZTogc3RyaW5nKTogc3RyaW5nIHtcclxuICAgIHJldHVybiAnPC8nICsgdGFnTmFtZSArICc+JztcclxufVxyXG5cclxuZnVuY3Rpb24gY2hlY2tJc0VuZE9mVGFnKGlucHV0OiBzdHJpbmcsIGluZGV4OiBudW1iZXIpOiBib29sZWFuIHtcclxuICAgIHJldHVybiBpbnB1dFtpbmRleF0gPT09ICc8JyAmJiBpbnB1dFtpbmRleCArIDFdID09PSAnLyc7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIGNoZWNrSXNCclRhZyhpbnB1dDogc3RyaW5nLCBpbmRleDogbnVtYmVyKTogYm9vbGVhbiB7XHJcbiAgICBsZXQgdGFnID0gJyc7XHJcblxyXG4gICAgaWYgKGlucHV0W2luZGV4XSAhPT0gJzwnKSB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIHdoaWxlIChpbnB1dFtpbmRleF0gJiYgaW5wdXRbaW5kZXhdICE9PSAnPicpIHtcclxuICAgICAgICB0YWcgKz0gaW5wdXRbaW5kZXhdO1xyXG4gICAgICAgIGluZGV4ICs9IDE7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIHRhZyArICc+JyA9PT0gQlJfVEFHO1xyXG59XHJcbiJdfQ==
@@ -0,0 +1,12 @@
1
+ export function urlValidator() {
2
+ return ({ value }) => {
3
+ try {
4
+ new URL(value);
5
+ return null;
6
+ }
7
+ catch {
8
+ return { url: true };
9
+ }
10
+ };
11
+ }
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLnZhbGlkYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL3V0aWxzL3VybC52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxVQUFVLFlBQVk7SUFDeEIsT0FBTyxDQUFDLEVBQUUsS0FBSyxFQUFtQixFQUEyQixFQUFFO1FBQzNELElBQUksQ0FBQztZQUNELElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO1lBRWYsT0FBTyxJQUFJLENBQUM7UUFDaEIsQ0FBQztRQUFDLE1BQU0sQ0FBQztZQUNMLE9BQU8sRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLENBQUM7UUFDekIsQ0FBQztJQUNMLENBQUMsQ0FBQztBQUNOLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEFic3RyYWN0Q29udHJvbCwgVmFsaWRhdGlvbkVycm9ycywgVmFsaWRhdG9yRm4gfSBmcm9tICdAYW5ndWxhci9mb3Jtcyc7XG5cbmV4cG9ydCBmdW5jdGlvbiB1cmxWYWxpZGF0b3IoKTogVmFsaWRhdG9yRm4ge1xuICAgIHJldHVybiAoeyB2YWx1ZSB9OiBBYnN0cmFjdENvbnRyb2wpOiBWYWxpZGF0aW9uRXJyb3JzIHwgbnVsbCA9PiB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICBuZXcgVVJMKHZhbHVlKTtcblxuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH0gY2F0Y2gge1xuICAgICAgICAgICAgcmV0dXJuIHsgdXJsOiB0cnVlIH07XG4gICAgICAgIH1cbiAgICB9O1xufVxuIl19
@@ -0,0 +1,63 @@
1
+ import { ChangeDetectionStrategy, Component, effect, ElementRef, input, output, signal, viewChild } from '@angular/core';
2
+ import { TranslocoDirective } from '@jsverse/transloco';
3
+ import { CuiButtonModule, CuiContentWrapperComponent, CuiHintModule } from '../../../components';
4
+ import { CuiTooltip } from '../../../directives';
5
+ import { CuiEditorComponent } from '../../editor.component';
6
+ import { CuiEditorModalComponent } from '../editor-modal/editor-modal.component';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "../../../components/button/button.component";
9
+ import * as i2 from "../../../directives/tooltip/tooltip.directive";
10
+ import * as i3 from "../../../components/hint/hint.component";
11
+ export class CuiEditorBlockComponent {
12
+ constructor() {
13
+ this.skipFirstValidation = true;
14
+ this.editorConfig = signal(null);
15
+ this.isDescriptionModalOpen = signal(false);
16
+ this.isDescriptionEmpty = signal(false);
17
+ this.editorContainer = viewChild('editorContainer', {
18
+ read: ElementRef
19
+ });
20
+ this.title = input.required();
21
+ this.editorId = input.required();
22
+ this.config = input.required();
23
+ this.required = input(false);
24
+ this.editorEmpty = output();
25
+ this.initEditorConfig();
26
+ }
27
+ onToggleDescriptionModal() {
28
+ this.isDescriptionModalOpen.update((prev) => !prev);
29
+ }
30
+ onDescriptionChange(value) {
31
+ this.editorEmpty.emit(value);
32
+ if (this.skipFirstValidation) {
33
+ this.skipFirstValidation = false;
34
+ return;
35
+ }
36
+ this.isDescriptionEmpty.set(value);
37
+ }
38
+ initEditorConfig() {
39
+ const effectRef = effect(() => {
40
+ const element = this.editorContainer()?.nativeElement;
41
+ if (!element) {
42
+ return;
43
+ }
44
+ this.editorConfig.set({ element, ...this.config() });
45
+ effectRef.destroy();
46
+ }, { allowSignalWrites: true });
47
+ }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiEditorBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiEditorBlockComponent, isStandalone: true, selector: "cui-editor-block", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, editorId: { classPropertyName: "editorId", publicName: "editorId", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { editorEmpty: "editorEmpty" }, viewQueries: [{ propertyName: "editorContainer", first: true, predicate: ["editorContainer"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <div class=\"wrapper\">\n <span class=\"title\">\n {{ t('DESCRIPTION') }}\n @if (required()) {\n <span class=\"title__required\">*</span>\n }\n </span>\n <ng-template #button>\n <button\n [cuiTooltip]=\"t('EXPAND_EDITOR_TO_FULLSCREEN')\"\n cuiButton\n size=\"xxs\"\n type=\"button\"\n appearance=\"ghost\"\n icon=\"cuiIconMaximizeSm\"\n (click)=\"onToggleDescriptionModal()\"\n ></button>\n </ng-template>\n <cui-editor-modal\n [title]=\"title()\"\n [editorId]=\"editorId()\"\n [buttonTemplate]=\"button\"\n [config]=\"config()\"\n (modalClosed)=\"onToggleDescriptionModal()\"\n />\n </div>\n <div\n #editorContainer\n cuiContentWrapper\n class=\"editor\"\n [class.editor_invalid]=\"required() && isDescriptionEmpty()\"\n >\n @if (!isDescriptionModalOpen() && editorConfig()) {\n <cui-editor\n #editorComponent\n [editorApiId]=\"editorId()\"\n [config]=\"editorConfig()!\"\n (editorEmpty)=\"onDescriptionChange($event)\"\n />\n }\n </div>\n @if (required() && isDescriptionEmpty()) {\n <cui-hint hintType=\"error\">{{ t('DESCRIPTION_IS_REQUIRED') }}</cui-hint>\n }\n</ng-container>\n", styles: [":host{--max-editor-height: 650px;padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--cui-base-10);border-radius:8px}:host .editor{max-height:var(--max-editor-height)}.wrapper{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between}.editor{padding-top:16px;padding-bottom:16px;display:block;overflow:auto}.editor_invalid{border:1px solid var(--cui-danger)}.title{font-weight:500;font-size:14px;line-height:20px}.title__required{color:var(--cui-danger)}\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: "component", type: CuiEditorModalComponent, selector: "cui-editor-modal", inputs: ["title", "buttonTemplate", "config", "editorId"], outputs: ["editorCreated", "modalClosed"] }, { kind: "component", type: CuiEditorComponent, selector: "cui-editor", inputs: ["editorApiId", "config", "requestSize"], outputs: ["editorEmpty"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: CuiContentWrapperComponent, selector: "cui-content-wrapper, [cuiContentWrapper]", inputs: ["backgroundColor", "gap"] }, { kind: "directive", type: i2.CuiTooltipDirective, selector: "[cuiTooltip]:not(ng-container):not(ng-template)", inputs: ["cuiTooltipContext", "cuiTooltipAppearance", "cuiTooltip"] }, { kind: "ngmodule", type: CuiHintModule }, { kind: "component", type: i3.CuiHintComponent, selector: "cui-hint", inputs: ["hintType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
50
+ }
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiEditorBlockComponent, decorators: [{
52
+ type: Component,
53
+ args: [{ selector: 'cui-editor-block', imports: [
54
+ CuiButtonModule,
55
+ CuiEditorModalComponent,
56
+ CuiEditorComponent,
57
+ TranslocoDirective,
58
+ CuiContentWrapperComponent,
59
+ CuiTooltip,
60
+ CuiHintModule
61
+ ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t\">\n <div class=\"wrapper\">\n <span class=\"title\">\n {{ t('DESCRIPTION') }}\n @if (required()) {\n <span class=\"title__required\">*</span>\n }\n </span>\n <ng-template #button>\n <button\n [cuiTooltip]=\"t('EXPAND_EDITOR_TO_FULLSCREEN')\"\n cuiButton\n size=\"xxs\"\n type=\"button\"\n appearance=\"ghost\"\n icon=\"cuiIconMaximizeSm\"\n (click)=\"onToggleDescriptionModal()\"\n ></button>\n </ng-template>\n <cui-editor-modal\n [title]=\"title()\"\n [editorId]=\"editorId()\"\n [buttonTemplate]=\"button\"\n [config]=\"config()\"\n (modalClosed)=\"onToggleDescriptionModal()\"\n />\n </div>\n <div\n #editorContainer\n cuiContentWrapper\n class=\"editor\"\n [class.editor_invalid]=\"required() && isDescriptionEmpty()\"\n >\n @if (!isDescriptionModalOpen() && editorConfig()) {\n <cui-editor\n #editorComponent\n [editorApiId]=\"editorId()\"\n [config]=\"editorConfig()!\"\n (editorEmpty)=\"onDescriptionChange($event)\"\n />\n }\n </div>\n @if (required() && isDescriptionEmpty()) {\n <cui-hint hintType=\"error\">{{ t('DESCRIPTION_IS_REQUIRED') }}</cui-hint>\n }\n</ng-container>\n", styles: [":host{--max-editor-height: 650px;padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--cui-base-10);border-radius:8px}:host .editor{max-height:var(--max-editor-height)}.wrapper{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:space-between}.editor{padding-top:16px;padding-bottom:16px;display:block;overflow:auto}.editor_invalid{border:1px solid var(--cui-danger)}.title{font-weight:500;font-size:14px;line-height:20px}.title__required{color:var(--cui-danger)}\n"] }]
62
+ }], ctorParameters: () => [] });
63
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWJsb2NrLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL3dpZGdldHMvZWRpdG9yLWJsb2NrL2VkaXRvci1ibG9jay5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy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uICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwidGl0bGVfX3JlcXVpcmVkXCI+Kjwvc3Bhbj5cbiAgICAgICAgICAgIH1cbiAgICAgICAgPC9zcGFuPlxuICAgICAgICA8bmctdGVtcGxhdGUgI2J1dHRvbj5cbiAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICBbY3VpVG9vbHRpcF09XCJ0KCdFWFBBTkRfRURJVE9SX1RPX0ZVTExTQ1JFRU4nKVwiXG4gICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgc2l6ZT1cInh4c1wiXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImdob3N0XCJcbiAgICAgICAgICAgICAgICBpY29uPVwiY3VpSWNvbk1heGltaXplU21cIlxuICAgICAgICAgICAgICAgIChjbGljayk9XCJvblRvZ2dsZURlc2NyaXB0aW9uTW9kYWwoKVwiXG4gICAgICAgICAgICA+PC9idXR0b24+XG4gICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgICAgIDxjdWktZWRpdG9yLW1vZGFsXG4gICAgICAgICAgICBbdGl0bGVdPVwidGl0bGUoKVwiXG4gICAgICAgICAgICBbZWRpdG9ySWRdPVwiZWRpdG9ySWQoKVwiXG4gICAgICAgICAgICBbYnV0dG9uVGVtcGxhdGVdPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIFtjb25maWddPVwiY29uZmlnKClcIlxuICAgICAgICAgICAgKG1vZGFsQ2xvc2VkKT1cIm9uVG9nZ2xlRGVzY3JpcHRpb25Nb2RhbCgpXCJcbiAgICAgICAgLz5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2XG4gICAgICAgICNlZGl0b3JDb250YWluZXJcbiAgICAgICAgY3VpQ29udGVudFdyYXBwZXJcbiAgICAgICAgY2xhc3M9XCJlZGl0b3JcIlxuICAgICAgICBbY2xhc3MuZWRpdG9yX2ludmFsaWRdPVwicmVxdWlyZWQoKSAmJiBpc0Rlc2NyaXB0aW9uRW1wdHkoKVwiXG4gICAgPlxuICAgICAgICBAaWYgKCFpc0Rlc2NyaXB0aW9uTW9kYWxPcGVuKCkgJiYgZWRpdG9yQ29uZmlnKCkpIHtcbiAgICAgICAgICAgIDxjdWktZWRpdG9yXG4gICAgICAgICAgICAgICAgI2VkaXRvckNvbXBvbmVudFxuICAgICAgICAgICAgICAgIFtlZGl0b3JBcGlJZF09XCJlZGl0b3JJZCgpXCJcbiAgICAgICAgICAgICAgICBbY29uZmlnXT1cImVkaXRvckNvbmZpZygpIVwiXG4gICAgICAgICAgICAgICAgKGVkaXRvckVtcHR5KT1cIm9uRGVzY3JpcHRpb25DaGFuZ2UoJGV2ZW50KVwiXG4gICAgICAgICAgICAvPlxuICAgICAgICB9XG4gICAgPC9kaXY+XG4gICAgQGlmIChyZXF1aXJlZCgpICYmIGlzRGVzY3JpcHRpb25FbXB0eSgpKSB7XG4gICAgICAgIDxjdWktaGludCBoaW50VHlwZT1cImVycm9yXCI+e3sgdCgnREVTQ1JJUFRJT05fSVNfUkVRVUlSRUQnKSB9fTwvY3VpLWhpbnQ+XG4gICAgfVxuPC9uZy1jb250YWluZXI+XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export { CuiEditorBlockComponent } from './editor-block.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2VkaXRvci1ibG9jay9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1aUVkaXRvckJsb2NrQ29tcG9uZW50IH0gZnJvbSAnLi9lZGl0b3ItYmxvY2suY29tcG9uZW50JztcclxuIl19
@@ -0,0 +1,42 @@
1
+ import { NgTemplateOutlet } from '@angular/common';
2
+ import { Component, input, output, signal } from '@angular/core';
3
+ import { CuiButtonModule, CuiSvgModule } from '../../../components';
4
+ import { CuiEditorComponent } from '../../editor.component';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../../components/button/button.component";
7
+ import * as i2 from "../../../components/svg/svg.component";
8
+ export class CuiEditorModalComponent {
9
+ constructor() {
10
+ this.isOpen = signal(false);
11
+ this.isButtonDisabled = signal(false);
12
+ this.title = input.required();
13
+ this.buttonTemplate = input();
14
+ this.config = input.required();
15
+ this.editorId = input();
16
+ this.editorCreated = output();
17
+ this.modalClosed = output();
18
+ }
19
+ onModalOpen() {
20
+ this.isButtonDisabled.set(true);
21
+ if (this.editorId()) {
22
+ this.open();
23
+ return;
24
+ }
25
+ this.editorCreated.emit();
26
+ }
27
+ open() {
28
+ this.isOpen.set(true);
29
+ }
30
+ close() {
31
+ this.isButtonDisabled.set(false);
32
+ this.isOpen.set(false);
33
+ this.modalClosed.emit();
34
+ }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiEditorModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CuiEditorModalComponent, isStandalone: true, selector: "cui-editor-modal", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, buttonTemplate: { classPropertyName: "buttonTemplate", publicName: "buttonTemplate", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, editorId: { classPropertyName: "editorId", publicName: "editorId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { editorCreated: "editorCreated", modalClosed: "modalClosed" }, ngImport: i0, template: "@if (buttonTemplate(); as template) {\n <button\n type=\"button\"\n class=\"button\"\n (click)=\"onModalOpen()\"\n >\n <ng-container [ngTemplateOutlet]=\"template\" />\n </button>\n} @else {\n <button\n class=\"description\"\n cuiButton\n type=\"button\"\n appearance=\"outlined-gray\"\n icon=\"cuiIconRichText\"\n size=\"sm\"\n (click)=\"onModalOpen()\"\n [disabled]=\"isButtonDisabled()\"\n >\n @if (editorId()) {\n <span class=\"description__text _created\">{{ 'Description' }}</span>\n <cui-svg\n class=\"description__icon\"\n icon=\"cuiIconEdit\"\n color=\"var(--cui-base-500)\"\n />\n } @else {\n <cui-svg\n class=\"description__icon\"\n icon=\"cuiIconPlus\"\n color=\"var(--cui-light-blue-600)\"\n />\n <span class=\"description__text\">{{ 'Add description' }}</span>\n }\n </button>\n}\n@if (isOpen()) {\n <div class=\"wrapper\">\n @if (editorId(); as id) {\n <header class=\"header\">\n <div class=\"info\">\n <button\n cuiButton\n type=\"button\"\n icon=\"cuiIconChevronLeft\"\n size=\"xxs\"\n appearance=\"secondary\"\n shape=\"rounded\"\n (click)=\"close()\"\n ></button>\n <h1 class=\"title\">{{ title() }}</h1>\n </div>\n <div class=\"actions\">\n <!-- <cui-loader /> -->\n <button\n type=\"button\"\n cuiButton\n size=\"xs\"\n (click)=\"close()\"\n >\n {{ 'Done' }}\n </button>\n </div>\n </header>\n\n <section class=\"section\">\n <cui-editor\n #editorComponent\n class=\"editor\"\n [editorApiId]=\"id\"\n [config]=\"config()\"\n />\n </section>\n }\n </div>\n}\n", styles: [":host ::ng-deep .delete{width:max-content}:host ::ng-deep .delete .c-content{display:flex;align-items:center;gap:4px;color:var(--cui-danger)}:host ::ng-deep .description .c-content{display:flex;align-items:center;gap:4px}.button{padding:0}.description{width:max-content}.description__text{color:var(--cui-light-blue-600)}.description__text._created{color:var(--cui-base-900)}.description__icon{padding:4px}.wrapper{position:fixed;z-index:10;inset:0;background-color:var(--cui-base-0)}.header{display:flex;flex-direction:row;gap:0;align-items:stretch;justify-content:space-between;padding:8px 16px;border-bottom:.5px solid var(--cui-base-200);background:var(--cui-base-0)}.info,.actions{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start}.section{padding-right:24px;padding-left:24px;padding-top:24px;height:calc(100% - 50px);overflow:hidden}.title{font-weight:500;font-size:14px;line-height:20px;margin:0}.editor{padding-right:32px;padding-left:32px;padding-top:32px;display:block;margin:0 auto;max-width:750px;height:100%}\n"], dependencies: [{ kind: "component", type: CuiEditorComponent, selector: "cui-editor", inputs: ["editorApiId", "config", "requestSize"], outputs: ["editorEmpty"] }, { kind: "ngmodule", type: CuiButtonModule }, { kind: "component", type: i1.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "theme", "size"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: CuiSvgModule }, { kind: "component", type: i2.CuiSvgComponent, selector: "cui-svg[icon]", inputs: ["width", "height", "strokeWidth", "color", "icon"] }] }); }
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiEditorModalComponent, decorators: [{
39
+ type: Component,
40
+ args: [{ selector: 'cui-editor-modal', imports: [CuiEditorComponent, CuiButtonModule, NgTemplateOutlet, CuiSvgModule], standalone: true, template: "@if (buttonTemplate(); as template) {\n <button\n type=\"button\"\n class=\"button\"\n (click)=\"onModalOpen()\"\n >\n <ng-container [ngTemplateOutlet]=\"template\" />\n </button>\n} @else {\n <button\n class=\"description\"\n cuiButton\n type=\"button\"\n appearance=\"outlined-gray\"\n icon=\"cuiIconRichText\"\n size=\"sm\"\n (click)=\"onModalOpen()\"\n [disabled]=\"isButtonDisabled()\"\n >\n @if (editorId()) {\n <span class=\"description__text _created\">{{ 'Description' }}</span>\n <cui-svg\n class=\"description__icon\"\n icon=\"cuiIconEdit\"\n color=\"var(--cui-base-500)\"\n />\n } @else {\n <cui-svg\n class=\"description__icon\"\n icon=\"cuiIconPlus\"\n color=\"var(--cui-light-blue-600)\"\n />\n <span class=\"description__text\">{{ 'Add description' }}</span>\n }\n </button>\n}\n@if (isOpen()) {\n <div class=\"wrapper\">\n @if (editorId(); as id) {\n <header class=\"header\">\n <div class=\"info\">\n <button\n cuiButton\n type=\"button\"\n icon=\"cuiIconChevronLeft\"\n size=\"xxs\"\n appearance=\"secondary\"\n shape=\"rounded\"\n (click)=\"close()\"\n ></button>\n <h1 class=\"title\">{{ title() }}</h1>\n </div>\n <div class=\"actions\">\n <!-- <cui-loader /> -->\n <button\n type=\"button\"\n cuiButton\n size=\"xs\"\n (click)=\"close()\"\n >\n {{ 'Done' }}\n </button>\n </div>\n </header>\n\n <section class=\"section\">\n <cui-editor\n #editorComponent\n class=\"editor\"\n [editorApiId]=\"id\"\n [config]=\"config()\"\n />\n </section>\n }\n </div>\n}\n", styles: [":host ::ng-deep .delete{width:max-content}:host ::ng-deep .delete .c-content{display:flex;align-items:center;gap:4px;color:var(--cui-danger)}:host ::ng-deep .description .c-content{display:flex;align-items:center;gap:4px}.button{padding:0}.description{width:max-content}.description__text{color:var(--cui-light-blue-600)}.description__text._created{color:var(--cui-base-900)}.description__icon{padding:4px}.wrapper{position:fixed;z-index:10;inset:0;background-color:var(--cui-base-0)}.header{display:flex;flex-direction:row;gap:0;align-items:stretch;justify-content:space-between;padding:8px 16px;border-bottom:.5px solid var(--cui-base-200);background:var(--cui-base-0)}.info,.actions{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start}.section{padding-right:24px;padding-left:24px;padding-top:24px;height:calc(100% - 50px);overflow:hidden}.title{font-weight:500;font-size:14px;line-height:20px;margin:0}.editor{padding-right:32px;padding-left:32px;padding-top:32px;display:block;margin:0 auto;max-width:750px;height:100%}\n"] }]
41
+ }] });
42
+ //# sourceMappingURL=data:application/json;base64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YXNzPVwiYnV0dG9uXCJcbiAgICAgICAgKGNsaWNrKT1cIm9uTW9kYWxPcGVuKClcIlxuICAgID5cbiAgICAgICAgPG5nLWNvbnRhaW5lciBbbmdUZW1wbGF0ZU91dGxldF09XCJ0ZW1wbGF0ZVwiIC8+XG4gICAgPC9idXR0b24+XG59IEBlbHNlIHtcbiAgICA8YnV0dG9uXG4gICAgICAgIGNsYXNzPVwiZGVzY3JpcHRpb25cIlxuICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgIGFwcGVhcmFuY2U9XCJvdXRsaW5lZC1ncmF5XCJcbiAgICAgICAgaWNvbj1cImN1aUljb25SaWNoVGV4dFwiXG4gICAgICAgIHNpemU9XCJzbVwiXG4gICAgICAgIChjbGljayk9XCJvbk1vZGFsT3BlbigpXCJcbiAgICAgICAgW2Rpc2FibGVkXT1cImlzQnV0dG9uRGlzYWJsZWQoKVwiXG4gICAgPlxuICAgICAgICBAaWYgKGVkaXRvcklkKCkpIHtcbiAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZGVzY3JpcHRpb25fX3RleHQgX2NyZWF0ZWRcIj57eyAnRGVzY3JpcHRpb24nIH19PC9zcGFuPlxuICAgICAgICAgICAgPGN1aS1zdmdcbiAgICAgICAgICAgICAgICBjbGFzcz1cImRlc2NyaXB0aW9uX19pY29uXCJcbiAgICAgICAgICAgICAgICBpY29uPVwiY3VpSWNvbkVkaXRcIlxuICAgICAgICAgICAgICAgIGNvbG9yPVwidmFyKC0tY3VpLWJhc2UtNTAwKVwiXG4gICAgICAgICAgICAvPlxuICAgICAgICB9IEBlbHNlIHtcbiAgICAgICAgICAgIDxjdWktc3ZnXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJkZXNjcmlwdGlvbl9faWNvblwiXG4gICAgICAgICAgICAgICAgaWNvbj1cImN1aUljb25QbHVzXCJcbiAgICAgICAgICAgICAgICBjb2xvcj1cInZhcigtLWN1aS1saWdodC1ibHVlLTYwMClcIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZGVzY3JpcHRpb25fX3RleHRcIj57eyAnQWRkIGRlc2NyaXB0aW9uJyB9fTwvc3Bhbj5cbiAgICAgICAgfVxuICAgIDwvYnV0dG9uPlxufVxuQGlmIChpc09wZW4oKSkge1xuICAgIDxkaXYgY2xhc3M9XCJ3cmFwcGVyXCI+XG4gICAgICAgIEBpZiAoZWRpdG9ySWQoKTsgYXMgaWQpIHtcbiAgICAgICAgICAgIDxoZWFkZXIgY2xhc3M9XCJoZWFkZXJcIj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaW5mb1wiPlxuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICBjdWlCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgaWNvbj1cImN1aUljb25DaGV2cm9uTGVmdFwiXG4gICAgICAgICAgICAgICAgICAgICAgICBzaXplPVwieHhzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwcGVhcmFuY2U9XCJzZWNvbmRhcnlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgc2hhcGU9XCJyb3VuZGVkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJjbG9zZSgpXCJcbiAgICAgICAgICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICAgICAgICAgICAgICA8aDEgY2xhc3M9XCJ0aXRsZVwiPnt7IHRpdGxlKCkgfX08L2gxPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJhY3Rpb25zXCI+XG4gICAgICAgICAgICAgICAgICAgIDwhLS0gPGN1aS1sb2FkZXIgLz4gLS0+XG4gICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgY3VpQnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICBzaXplPVwieHNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImNsb3NlKClcIlxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICB7eyAnRG9uZScgfX1cbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2hlYWRlcj5cblxuICAgICAgICAgICAgPHNlY3Rpb24gY2xhc3M9XCJzZWN0aW9uXCI+XG4gICAgICAgICAgICAgICAgPGN1aS1lZGl0b3JcbiAgICAgICAgICAgICAgICAgICAgI2VkaXRvckNvbXBvbmVudFxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImVkaXRvclwiXG4gICAgICAgICAgICAgICAgICAgIFtlZGl0b3JBcGlJZF09XCJpZFwiXG4gICAgICAgICAgICAgICAgICAgIFtjb25maWddPVwiY29uZmlnKClcIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L3NlY3Rpb24+XG4gICAgICAgIH1cbiAgICA8L2Rpdj5cbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export { CuiEditorModalComponent } from './editor-modal.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2VkaXRvci1tb2RhbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1aUVkaXRvck1vZGFsQ29tcG9uZW50IH0gZnJvbSAnLi9lZGl0b3ItbW9kYWwuY29tcG9uZW50JztcbiJdfQ==
@@ -0,0 +1,36 @@
1
+ import { NgTemplateOutlet } from '@angular/common';
2
+ import { ChangeDetectionStrategy, Component, computed, effect, input, signal, viewChild } from '@angular/core';
3
+ import { CuiElementDirective } from '@cuby-ui/cdk';
4
+ import { CuiEditorComponent } from '../../editor.component';
5
+ import { EditorResizeObserverDirective } from './editor-resize-observer.directive';
6
+ import * as i0 from "@angular/core";
7
+ export class CuiEditorReadonlyComponent {
8
+ constructor() {
9
+ this.isShowMore = signal(false);
10
+ this.editorConfig = computed(() => ({ readOnly: true, withoutPreload: true, ...this.config() }));
11
+ this.DEFAULT_SHORT_HEIGHT = 68;
12
+ this.editor = viewChild.required('editor');
13
+ this.editorId = input.required();
14
+ this.config = input.required();
15
+ this.buttonTemplate = input.required();
16
+ this.shortHeight = input(this.DEFAULT_SHORT_HEIGHT);
17
+ this.initEditorIdEffect();
18
+ }
19
+ onShow(editor) {
20
+ editor.editorElement.scrollTo(0, 0);
21
+ this.isShowMore.update((prev) => !prev);
22
+ }
23
+ initEditorIdEffect() {
24
+ effect(() => {
25
+ this.editorId();
26
+ this.isShowMore.set(false);
27
+ }, { allowSignalWrites: true });
28
+ }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiEditorReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.14", type: CuiEditorReadonlyComponent, isStandalone: true, selector: "cui-editor-readonly", inputs: { editorId: { classPropertyName: "editorId", publicName: "editorId", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, buttonTemplate: { classPropertyName: "buttonTemplate", publicName: "buttonTemplate", isSignal: true, isRequired: true, transformFunction: null }, shortHeight: { classPropertyName: "shortHeight", publicName: "shortHeight", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "editor", first: true, predicate: ["editor"], descendants: true, isSignal: true }], ngImport: i0, template: "<cui-editor\r\n cuiElement\r\n #editorElement=\"elementRef\"\r\n #editorComponent\r\n class=\"editor\"\r\n [class.editor_opened]=\"isShowMore()\"\r\n [editorApiId]=\"editorId()\"\r\n [config]=\"editorConfig()\"\r\n/>\r\n\r\n<ng-template\r\n [editorResizeObserver]\r\n [target]=\"editorElement.nativeElement\"\r\n [shortHeight]=\"shortHeight()\"\r\n>\r\n <button\r\n class=\"c-button\"\r\n (click)=\"onShow(editorComponent)\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"buttonTemplate()\"\r\n [ngTemplateOutletContext]=\"{ $implicit: isShowMore }\"\r\n ></ng-container>\r\n </button>\r\n</ng-template>\r\n", styles: [":host{--height: 69px;--fullHeight: 500px;display:flex;flex-direction:column;gap:8px}:host .editor{display:block;max-height:var(--height);overflow:hidden}:host .editor ::ng-deep [data-editor]{overflow:hidden}:host .editor_opened{max-height:var(--fullHeight)}:host .editor_opened ::ng-deep [data-editor]{max-height:var(--fullHeight);overflow:hidden auto}.c-button{padding:0}\n"], dependencies: [{ kind: "component", type: CuiEditorComponent, selector: "cui-editor", inputs: ["editorApiId", "config", "requestSize"], outputs: ["editorEmpty"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: EditorResizeObserverDirective, selector: "[editorResizeObserver]", inputs: ["target", "shortHeight"] }, { kind: "directive", type: CuiElementDirective, selector: "[cuiElement]", exportAs: ["elementRef"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
+ }
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiEditorReadonlyComponent, decorators: [{
33
+ type: Component,
34
+ args: [{ selector: 'cui-editor-readonly', standalone: true, imports: [CuiEditorComponent, NgTemplateOutlet, EditorResizeObserverDirective, CuiElementDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cui-editor\r\n cuiElement\r\n #editorElement=\"elementRef\"\r\n #editorComponent\r\n class=\"editor\"\r\n [class.editor_opened]=\"isShowMore()\"\r\n [editorApiId]=\"editorId()\"\r\n [config]=\"editorConfig()\"\r\n/>\r\n\r\n<ng-template\r\n [editorResizeObserver]\r\n [target]=\"editorElement.nativeElement\"\r\n [shortHeight]=\"shortHeight()\"\r\n>\r\n <button\r\n class=\"c-button\"\r\n (click)=\"onShow(editorComponent)\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"buttonTemplate()\"\r\n [ngTemplateOutletContext]=\"{ $implicit: isShowMore }\"\r\n ></ng-container>\r\n </button>\r\n</ng-template>\r\n", styles: [":host{--height: 69px;--fullHeight: 500px;display:flex;flex-direction:column;gap:8px}:host .editor{display:block;max-height:var(--height);overflow:hidden}:host .editor ::ng-deep [data-editor]{overflow:hidden}:host .editor_opened{max-height:var(--fullHeight)}:host .editor_opened ::ng-deep [data-editor]{max-height:var(--fullHeight);overflow:hidden auto}.c-button{padding:0}\n"] }]
35
+ }], ctorParameters: () => [] });
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXJlYWRvbmx5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL3dpZGdldHMvZWRpdG9yLXJlYWRvbmx5L2VkaXRvci1yZWFkb25seS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2VkaXRvci1yZWFkb25seS9lZGl0b3ItcmVhZG9ubHkuY29tc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dGhpcy5pc1Nob3dNb3JlLnVwZGF0ZSgocHJldikgPT4gIXByZXYpO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgaW5pdEVkaXRvcklkRWZmZWN0KCk6IHZvaWQge1xyXG4gICAgICAgIGVmZmVjdChcclxuICAgICAgICAgICAgKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5lZGl0b3JJZCgpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5pc1Nob3dNb3JlLnNldChmYWxzZSk7XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHsgYWxsb3dTaWduYWxXcml0ZXM6IHRydWUgfVxyXG4gICAgICAgICk7XHJcbiAgICB9XHJcbn1cclxuIiwiPGN1aS1lZGl0b3JcclxuICAgIGN1aUVsZW1lbnRcclxuICAgICNlZGl0b3JFbGVtZW50PVwiZWxlbWVudFJlZlwiXHJcbiAgICAjZWRpdG9yQ29tcG9uZW50XHJcbiAgICBjbGFzcz1cImVkaXRvclwiXHJcbiAgICBbY2xhc3MuZWRpdG9yX29wZW5lZF09XCJpc1Nob3dNb3JlKClcIlxyXG4gICAgW2VkaXRvckFwaUlkXT1cImVkaXRvcklkKClcIlxyXG4gICAgW2NvbmZpZ109XCJlZGl0b3JDb25maWcoKVwiXHJcbi8+XHJcblxyXG48bmctdGVtcGxhdGVcclxuICAgIFtlZGl0b3JSZXNpemVPYnNlcnZlcl1cclxuICAgIFt0YXJnZXRdPVwiZWRpdG9yRWxlbWVudC5uYXRpdmVFbGVtZW50XCJcclxuICAgIFtzaG9ydEhlaWdodF09XCJzaG9ydEhlaWdodCgpXCJcclxuPlxyXG4gICAgPGJ1dHRvblxyXG4gICAgICAgIGNsYXNzPVwiYy1idXR0b25cIlxyXG4gICAgICAgIChjbGljayk9XCJvblNob3coZWRpdG9yQ29tcG9uZW50KVwiXHJcbiAgICA+XHJcbiAgICAgICAgPG5nLWNvbnRhaW5lclxyXG4gICAgICAgICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJidXR0b25UZW1wbGF0ZSgpXCJcclxuICAgICAgICAgICAgW25nVGVtcGxhdGVPdXRsZXRDb250ZXh0XT1cInsgJGltcGxpY2l0OiBpc1Nob3dNb3JlIH1cIlxyXG4gICAgICAgID48L25nLWNvbnRhaW5lcj5cclxuICAgIDwvYnV0dG9uPlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXJlYWRvbmx5Lm9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2VkaXRvci1yZWFkb25seS9lZGl0b3ItcmVhZG9ubHkub3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ3VpRWRpdG9yQ29uZmlnIH0gZnJvbSAnLi4vLi4vaW50ZXJmYWNlcyc7XG5cbmV4cG9ydCB0eXBlIEN1aUVkaXRvclJlYWRvbmx5Q29uZmlnID0gRXhjbHVkZTxDdWlFZGl0b3JDb25maWcsIHsgcmVhZE9ubHk6IGJvb2xlYW47IHdpdGhvdXRQcmVsb2FkOiBib29sZWFuIH0+O1xuIl19
@@ -0,0 +1,51 @@
1
+ import { Directive, effect, inject, input, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class EditorResizeObserverDirective {
4
+ constructor() {
5
+ this.templateRef = inject(TemplateRef);
6
+ this.viewContainerRef = inject(ViewContainerRef);
7
+ this.observer = null;
8
+ this.target = input.required();
9
+ this.shortHeight = input.required();
10
+ this.initTargetEffect();
11
+ }
12
+ ngOnDestroy() {
13
+ this.destroyObserver();
14
+ }
15
+ initTargetEffect() {
16
+ effect(() => {
17
+ const target = this.target();
18
+ if (!target) {
19
+ return;
20
+ }
21
+ this.initObserver();
22
+ });
23
+ }
24
+ initObserver() {
25
+ this.observer = new ResizeObserver((entries) => {
26
+ if (entries[0].target.scrollHeight <= this.shortHeight()) {
27
+ this.viewContainerRef.clear();
28
+ return;
29
+ }
30
+ if (this.viewContainerRef.length) {
31
+ return;
32
+ }
33
+ this.viewContainerRef.createEmbeddedView(this.templateRef);
34
+ });
35
+ this.observer.observe(this.target());
36
+ }
37
+ destroyObserver() {
38
+ this.observer?.disconnect();
39
+ this.observer = null;
40
+ }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorResizeObserverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.14", type: EditorResizeObserverDirective, isStandalone: true, selector: "[editorResizeObserver]", inputs: { target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: true, transformFunction: null }, shortHeight: { classPropertyName: "shortHeight", publicName: "shortHeight", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
43
+ }
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorResizeObserverDirective, decorators: [{
45
+ type: Directive,
46
+ args: [{
47
+ selector: '[editorResizeObserver]',
48
+ standalone: true
49
+ }]
50
+ }], ctorParameters: () => [] });
51
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXJlc2l6ZS1vYnNlcnZlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2VkaXRvci1yZWFkb25seS9lZGl0b3ItcmVzaXplLW9ic2VydmVyLmRpcmVjd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laWdodCgpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy52aWV3Q29udGFpbmVyUmVmLmNsZWFyKCk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICh0aGlzLnZpZXdDb250YWluZXJSZWYubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLnZpZXdDb250YWluZXJSZWYuY3JlYXRlRW1iZWRkZWRWaWV3KHRoaXMudGVtcGxhdGVSZWYpO1xuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLm9ic2VydmVyLm9ic2VydmUodGhpcy50YXJnZXQoKSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBkZXN0cm95T2JzZXJ2ZXIoKTogdm9pZCB7XG4gICAgICAgIHRoaXMub2JzZXJ2ZXI/LmRpc2Nvbm5lY3QoKTtcbiAgICAgICAgdGhpcy5vYnNlcnZlciA9IG51bGw7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,2 @@
1
+ export { CuiEditorReadonlyComponent } from './editor-readonly.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2VkaXRvci1yZWFkb25seS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1aUVkaXRvclJlYWRvbmx5Q29tcG9uZW50IH0gZnJvbSAnLi9lZGl0b3ItcmVhZG9ubHkuY29tcG9uZW50JztcclxuZXhwb3J0IHsgQ3VpRWRpdG9yUmVhZG9ubHlDb25maWcgfSBmcm9tICcuL2VkaXRvci1yZWFkb25seS5vcHRpb25zJztcclxuIl19
@@ -0,0 +1,4 @@
1
+ export { CuiEditorReadonlyComponent } from './editor-readonly';
2
+ export { CuiEditorBlockComponent } from './editor-block';
3
+ export { CuiEditorModalComponent } from './editor-modal';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci93aWRnZXRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSwwQkFBMEIsRUFBMkIsTUFBTSxtQkFBbUIsQ0FBQztBQUN4RixPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN6RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1aUVkaXRvclJlYWRvbmx5Q29tcG9uZW50LCBDdWlFZGl0b3JSZWFkb25seUNvbmZpZyB9IGZyb20gJy4vZWRpdG9yLXJlYWRvbmx5JztcbmV4cG9ydCB7IEN1aUVkaXRvckJsb2NrQ29tcG9uZW50IH0gZnJvbSAnLi9lZGl0b3ItYmxvY2snO1xuZXhwb3J0IHsgQ3VpRWRpdG9yTW9kYWxDb21wb25lbnQgfSBmcm9tICcuL2VkaXRvci1tb2RhbCc7XG4iXX0=
@@ -0,0 +1,12 @@
1
+ export * from './components';
2
+ export * from './editor';
3
+ export * from './directives';
4
+ export * from './interceptors';
5
+ export * from './interfaces';
6
+ export * from './services';
7
+ export * from './types';
8
+ export * from './utils';
9
+ export * from './providers';
10
+ export * from './widgets';
11
+ export * from './operators';
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9lZGl0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzJztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJjZXB0b3JzJztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJmYWNlcyc7XG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vdHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi91dGlscyc7XG5leHBvcnQgKiBmcm9tICcuL3Byb3ZpZGVycyc7XG5leHBvcnQgKiBmcm9tICcuL3dpZGdldHMnO1xuZXhwb3J0ICogZnJvbSAnLi9vcGVyYXRvcnMnO1xuIl19
@@ -0,0 +1,15 @@
1
+ import { inject } from '@angular/core';
2
+ import { CuiAuthService } from '../providers';
3
+ export const cuiAuthInterceptor = (request, next) => {
4
+ const authService = inject(CuiAuthService);
5
+ if (!authService.hasValidAccessToken()) {
6
+ return next(request);
7
+ }
8
+ const modifiedRequest = request.clone({
9
+ setHeaders: {
10
+ Authorization: 'Bearer ' + authService.getAccessToken()
11
+ }
12
+ });
13
+ return next(modifiedRequest);
14
+ };
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5pbnRlcmNlcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvaW50ZXJjZXB0b3JzL2F1dGguaW50ZXJjZXB0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV2QyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRTlDLE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFzQixDQUFDLE9BQU8sRUFBRSxJQUFJLEVBQUUsRUFBRTtJQUNuRSxNQUFNLFdBQVcsR0FBRyxNQUFNLENBQUMsY0FBYyxDQUFDLENBQUM7SUFFM0MsSUFBSSxDQUFDLFdBQVcsQ0FBQyxtQkFBbUIsRUFBRSxFQUFFLENBQUM7UUFDckMsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDekIsQ0FBQztJQUVELE1BQU0sZUFBZSxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUM7UUFDbEMsVUFBVSxFQUFFO1lBQ1IsYUFBYSxFQUFFLFNBQVMsR0FBRyxXQUFXLENBQUMsY0FBYyxFQUFFO1NBQzFEO0tBQ0osQ0FBQyxDQUFDO0lBRUgsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLENBQUM7QUFDakMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBIdHRwSW50ZXJjZXB0b3JGbiB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbi9odHRwJztcbmltcG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