@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,157 @@
1
+ import { CuiFileUploader } from '../utils';
2
+ import { EDITOR_IMAGE_TOOL_SELECTOR } from '../components/editor-image-tool';
3
+ export class CuiImageTool {
4
+ get Tunes() {
5
+ return [
6
+ {
7
+ name: 'stretched',
8
+ title: 'Stretch image',
9
+ toggle: true
10
+ },
11
+ {
12
+ name: 'center',
13
+ title: 'Center image',
14
+ toggle: true
15
+ }
16
+ ];
17
+ }
18
+ static get isReadOnlySupported() {
19
+ return true;
20
+ }
21
+ static get toolbox() {
22
+ return {
23
+ /* eslint-disable */
24
+ icon: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
25
+ <path d="M12.5013 4.1665H7.5013C5.66035 4.1665 4.16797 5.65889 4.16797 7.49984V12.4998C4.16797 14.3408 5.66035 15.8332 7.5013 15.8332H12.5013C14.3423 15.8332 15.8346 14.3408 15.8346 12.4998V7.49984C15.8346 5.65889 14.3423 4.1665 12.5013 4.1665Z" stroke="#121315" stroke-width="1.66667"/>
26
+ <path d="M4.28125 12.7665L7.24033 9.63825C7.52263 9.33617 7.90546 9.1665 8.30463 9.1665C8.70377 9.1665 9.0866 9.33617 9.36893 9.63825L12.8208 13.3332M11.3154 11.7218L12.5092 10.444C12.7914 10.1419 13.1743 9.97217 13.5734 9.97217C13.9726 9.97217 14.3554 10.1419 14.6378 10.444L15.699 11.636" stroke="#121315" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
27
+ <path d="M11.4805 7.77783H11.4879" stroke="#121315" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
28
+ </svg>`,
29
+ /* eslint-enable */
30
+ title: 'Image'
31
+ };
32
+ }
33
+ static get pasteConfig() {
34
+ return {
35
+ tags: [
36
+ {
37
+ img: { src: true }
38
+ }
39
+ ],
40
+ files: {
41
+ mimeTypes: ['image/*']
42
+ }
43
+ };
44
+ }
45
+ constructor(options) {
46
+ this.selectedFile = null;
47
+ this.onSelectFile = () => {
48
+ return this.uploader.selectFile({
49
+ fileSelected: (file) => {
50
+ const url = URL.createObjectURL(file);
51
+ this.imageTool.preview = url;
52
+ this.imageTool.isLoading = true;
53
+ this.selectedFile = file;
54
+ this.uploader.uploadFile(file);
55
+ }
56
+ });
57
+ };
58
+ const { api, readOnly, config, data, block } = options;
59
+ this.blockApi = block;
60
+ this.api = api;
61
+ this.readOnly = readOnly;
62
+ this.config = {
63
+ load: config?.load ?? (() => { }),
64
+ field: config?.field ?? 'image',
65
+ types: config?.types ?? 'image/*',
66
+ endpoint: config?.endpoint ?? '',
67
+ buttonContent: config?.buttonContent ?? this.api.i18n.t('Select an Image'),
68
+ additionalRequestHeaders: config?.additionalRequestHeaders || {}
69
+ };
70
+ this.uploader = new CuiFileUploader(this.config, this.onUpload.bind(this), this.uploadingFailed.bind(this));
71
+ this.data = data;
72
+ this.data.tunes = this.data.tunes || {};
73
+ }
74
+ async onPaste(event) {
75
+ const actions = {
76
+ tag: this.pasteByTag.bind(this),
77
+ file: this.pasteByFile.bind(this)
78
+ };
79
+ const key = event.type;
80
+ this.imageTool.isLoading = true;
81
+ actions[key](event);
82
+ }
83
+ pasteByFile(event) {
84
+ const file = event.detail.file;
85
+ this.selectedFile = file;
86
+ this.uploader.uploadFile(file);
87
+ }
88
+ pasteByTag(event) {
89
+ const file = event.detail.data.src;
90
+ this.selectedFile = file;
91
+ this.uploader.uploadByUrl(file);
92
+ }
93
+ appendCallback() {
94
+ this.onSelectFile();
95
+ }
96
+ render() {
97
+ this.imageTool = document.createElement(EDITOR_IMAGE_TOOL_SELECTOR);
98
+ this.imageTool.api = this.api;
99
+ this.imageTool.image = this.data.file?.url || '';
100
+ this.imageTool.caption = this.data.caption || '';
101
+ this.imageTool.tunes = this.data.tunes;
102
+ this.imageTool.readOnly = this.readOnly;
103
+ this.imageTool.buttonContent = this.config.buttonContent;
104
+ this.imageTool.addEventListener('fileSelected', this.onSelectFile);
105
+ this.imageTool.addEventListener('captionChanged', this.changeCaption.bind(this));
106
+ return this.imageTool;
107
+ }
108
+ renderSettings() {
109
+ return this.Tunes.map((tune) => ({
110
+ icon: tune.icon,
111
+ label: this.api.i18n.t(tune.title),
112
+ name: tune.name,
113
+ toggle: tune.toggle,
114
+ isActive: this.data.tunes[tune.name],
115
+ onActivate: () => this.tuneToggled(tune.name)
116
+ }));
117
+ }
118
+ save() {
119
+ return this.data;
120
+ }
121
+ removed() {
122
+ this.imageTool.removeEventListener('fileSelected', this.onSelectFile);
123
+ this.imageTool.removeEventListener('captionChanged', this.changeCaption);
124
+ }
125
+ changeCaption(event) {
126
+ const customEvent = event;
127
+ const value = customEvent.detail;
128
+ this.data.caption = value;
129
+ this.blockApi?.dispatchChange();
130
+ }
131
+ set image(file) {
132
+ this.data.file = file || {};
133
+ if (file && file.url) {
134
+ this.imageTool.image = file.url;
135
+ }
136
+ }
137
+ onUpload(response) {
138
+ if (!response.success || !response.file || !this.selectedFile) {
139
+ this.uploadingFailed();
140
+ return;
141
+ }
142
+ const url = this.selectedFile instanceof File ? window.URL.createObjectURL(this.selectedFile) : this.selectedFile;
143
+ this.data.file = response.file;
144
+ this.imageTool.image = url;
145
+ this.imageTool.isLoading = false;
146
+ }
147
+ uploadingFailed() {
148
+ this.imageTool.image = '';
149
+ this.imageTool.isLoading = false;
150
+ }
151
+ tuneToggled(tuneName) {
152
+ const value = !(this.data.tunes[tuneName] || false);
153
+ this.data.tunes[tuneName] = value;
154
+ this.imageTool.tunes = { ...this.data.tunes };
155
+ }
156
+ }
157
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UudG9vbC5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XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgc3RhdGljIGdldCBwYXN0ZUNvbmZpZygpOiBQYXN0ZUNvbmZpZyB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgdGFnczogW1xyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIGltZzogeyBzcmM6IHRydWUgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBdLFxyXG4gICAgICAgICAgICBmaWxlczoge1xyXG4gICAgICAgICAgICAgICAgbWltZVR5cGVzOiBbJ2ltYWdlLyonXVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICBjb25zdHJ1Y3RvcihvcHRpb25zOiB7IGFwaTogQVBJIH0pIHtcclxuICAgICAgICBjb25zdCB7IGFwaSwgcmVhZE9ubHksIGNvbmZpZywgZGF0YSwgYmxvY2sgfSA9IG9wdGlvbnMgYXMgQmxvY2tUb29sQ29uc3RydWN0b3JPcHRpb25zPFxyXG4gICAgICAgICAgICBDdWlJbWFnZVRvb2xEYXRhLFxyXG4gICAgICAgICAgICBQYXJ0aWFsPEN1aUltYWdlVG9vbENvbmZpZz5cclxuICAgICAgICA+O1xyXG5cclxuICAgICAgICB0aGlzLmJsb2NrQXBpID0gYmxvY2s7XHJcbiAgICAgICAgdGhpcy5hcGkgPSBhcGk7XHJcbiAgICAgICAgdGhpcy5yZWFkT25seSA9IHJlYWRPbmx5O1xyXG4gICAgICAgIHRoaXMuY29uZmlnID0ge1xyXG4gICAgICAgICAgICBsb2FkOiBjb25maWc/LmxvYWQgPz8gKCgpID0+IHt9KSxcclxuICAgICAgICAgICAgZmllbGQ6IGNvbmZpZz8uZmllbGQgPz8gJ2ltYWdlJyxcclxuICAgICAgICAgICAgdHlwZXM6IGNvbmZpZz8udHlwZXMgPz8gJ2ltYWdlLyonLFxyXG4gICAgICAgICAgICBl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HVwbG9hZGluZ0ZhaWxlZCgpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLmltYWdlVG9vbC5pbWFnZSA9ICcnO1xyXG4gICAgICAgIHRoaXMuaW1hZ2VUb29sLmlzTG9hZGluZyA9IGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgdHVuZVRvZ2dsZWQodHVuZU5hbWU6IGtleW9mIEN1aUltYWdlVHVuZXMpOiB2b2lkIHtcclxuICAgICAgICBjb25zdCB2YWx1ZSA9ICEodGhpcy5kYXRhLnR1bmVzW3R1bmVOYW1lXSB8fCBmYWxzZSk7XHJcblxyXG4gICAgICAgIHRoaXMuZGF0YS50dW5lc1t0dW5lTmFtZV0gPSB2YWx1ZTtcclxuICAgICAgICB0aGlzLmltYWdlVG9vbC50dW5lcyA9IHsgLi4udGhpcy5kYXRhLnR1bmVzIH07XHJcbiAgICB9XHJcbn1cclxuIl19
@@ -0,0 +1,12 @@
1
+ export * from './header.tool';
2
+ export * from './list.tool';
3
+ export * from './bold.tool';
4
+ export * from './italic.tool';
5
+ export * from './image.tool';
6
+ export * from './video.tool';
7
+ export * from './attaches.tool';
8
+ export * from './link-marker.tool';
9
+ export * from './role-marker.tool';
10
+ export * from './tool-marker.tool';
11
+ export * from './combined-text-block.tool';
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci90b29scy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsNEJBQTRCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2hlYWRlci50b29sJztcclxuZXhwb3J0ICogZnJvbSAnLi9saXN0LnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2JvbGQudG9vbCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vaXRhbGljLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2ltYWdlLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL3ZpZGVvLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2F0dGFjaGVzLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpbmstbWFya2VyLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL3JvbGUtbWFya2VyLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rvb2wtbWFya2VyLnRvb2wnO1xyXG5leHBvcnQgKiBmcm9tICcuL2NvbWJpbmVkLXRleHQtYmxvY2sudG9vbCc7XHJcbiJdfQ==
@@ -0,0 +1,35 @@
1
+ import { CuiSelectionBase } from './selection-base.tool';
2
+ export class CuiItalicInlineTool extends CuiSelectionBase {
3
+ static { this.title = 'Italic'; }
4
+ static get sanitize() {
5
+ return {
6
+ i: {}
7
+ };
8
+ }
9
+ constructor(data) {
10
+ super(data);
11
+ this.COMMAND = 'italic';
12
+ this.TAG = 'I';
13
+ this.CSS = {
14
+ button: 'ce-inline-tool',
15
+ buttonActive: 'ce-inline-tool--active',
16
+ buttonModifier: 'ce-inline-tool--italic'
17
+ };
18
+ }
19
+ render() {
20
+ this.button = document.createElement('button');
21
+ this.button.type = 'button';
22
+ this.button.classList.add(this.CSS.button, this.CSS.buttonModifier);
23
+ /* eslint-disable */
24
+ this.button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
25
+ <path d="M11.118 8.3335C10.3532 10.6116 9.16797 14.1668 9.16797 14.1668" stroke="#121315" stroke-width="1.66667" stroke-linecap="round"/>
26
+ <path d="M11.8404 5.8335H11.832" stroke="#121315" stroke-width="1.66667" stroke-linecap="round"/>
27
+ </svg>`;
28
+ /* eslint-enable */
29
+ return this.button;
30
+ }
31
+ get shortcut() {
32
+ return 'CMD+I';
33
+ }
34
+ }
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRhbGljLnRvb2wuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci90b29scy9pdGFsaWMudG9vbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUV6RCxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsZ0JBQWdCO2FBSXZDLFVBQUssR0FBRyxRQUFRLEFBQVgsQ0FBWTtJQUV4QixNQUFNLEtBQUssUUFBUTtRQUN0QixPQUFPO1lBQ0gsQ0FBQyxFQUFFLEVBQUU7U0FDUixDQUFDO0lBQ04sQ0FBQztJQVFELFlBQVksSUFBa0M7UUFDMUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBbEJTLFlBQU8sR0FBRyxRQUFRLENBQUM7UUFFbkIsUUFBRyxHQUFHLEdBQUcsQ0FBQztRQVNsQixRQUFHLEdBQUc7WUFDbkIsTUFBTSxFQUFFLGdCQUFnQjtZQUN4QixZQUFZLEVBQUUsd0JBQXdCO1lBQ3RDLGNBQWMsRUFBRSx3QkFBd0I7U0FDM0MsQ0FBQztJQUlGLENBQUM7SUFFTSxNQU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AgICAgICAgICAgPHBhdGggZD1cIk0xMS4xMTggOC4zMzM1QzEwLjM1MzIgMTAuNjExNiA5LjE2Nzk3IDE0LjE2NjggOS4xNjc5NyAxNC4xNjY4XCIgc3Ryb2tlPVwiIzEyMTMxNVwiIHN0cm9rZS13aWR0aD1cIjEuNjY2NjdcIiBzdHJva2UtbGluZWNhcD1cInJvdW5kXCIvPlxyXG4gICAgICAgICAgICA8cGF0aCBkPVwiTTExLjg0MDQgNS44MzM1SDExLjgzMlwiIHN0cm9rZT1cIiMxMjEzMTVcIiBzdHJva2Utd2lkdGg9XCIxLjY2NjY3XCIgc3Ryb2tlLWxpbmVjYXA9XCJyb3VuZFwiLz5cclxuICAgICAgICA8L3N2Zz5gO1xyXG4gICAgICAgIC8qIGVzbGludC1lbmFibGUgKi9cclxuXHJcbiAgICAgICAgcmV0dXJuIHRoaXMuYnV0dG9uO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBnZXQgc2hvcnRjdXQoKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gJ0NNRCtJJztcclxuICAgIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,80 @@
1
+ import { MARKER_MODAL_SELECTOR } from '../components/marker-modal/marker-modal.options';
2
+ import { removeElementTagWrapper } from '../utils';
3
+ import { CuiMarkerTool } from './marker.tool';
4
+ export class CuiLinkMarker extends CuiMarkerTool {
5
+ static get sanitize() {
6
+ return {
7
+ a: {
8
+ href: true,
9
+ class: true,
10
+ target: true,
11
+ contenteditable: true
12
+ }
13
+ };
14
+ }
15
+ constructor(data) {
16
+ super(data);
17
+ this.TAG = 'A';
18
+ }
19
+ render() {
20
+ super.render();
21
+ /* eslint-disable */
22
+ this.button.innerHTML = `<svg width="20" height="15" viewBox="-3 -3 24 19" fill="none" xmlns="http://www.w3.org/2000/svg">
23
+ <path d="M18.2813 1.22405C17.9329 0.874451 17.5189 0.597062 17.0631 0.407792C16.6073 0.218522 16.1186 0.121094 15.625 0.121094C15.1315 0.121094 14.6428 0.218522 14.187 0.407792C13.7312 0.597062 13.3172 0.874451 12.9688 1.22405L13.8563 2.11155C14.089 1.87886 14.3652 1.69429 14.6692 1.56836C14.9733 1.44243 15.2991 1.37762 15.6282 1.37762C15.9572 1.37762 16.2831 1.44243 16.5871 1.56836C16.8911 1.69429 17.1674 1.87886 17.4 2.11155C17.6327 2.34424 17.8173 2.62047 17.9432 2.92449C18.0692 3.22851 18.134 3.55436 18.134 3.88343C18.134 4.21249 18.0692 4.53834 17.9432 4.84236C17.8173 5.14638 17.6327 5.42261 17.4 5.6553L12.4 10.6553C11.9309 11.1252 11.2944 11.3896 10.6304 11.3901C9.96638 11.3907 9.32935 11.1275 8.85942 10.6584C8.38949 10.1893 8.12515 9.55275 8.12457 8.88876C8.12398 8.22476 8.38719 7.58773 8.85629 7.1178L9.73754 6.2303L8.85629 5.3428L7.96879 6.2303C7.61919 6.57869 7.3418 6.99266 7.15253 7.44848C6.96326 7.9043 6.86583 8.393 6.86583 8.88655C6.86583 9.3801 6.96326 9.8688 7.15253 10.3246C7.3418 10.7804 7.61919 11.1944 7.96879 11.5428C8.67597 12.2409 9.63134 12.6298 10.625 12.624C11.1205 12.6261 11.6114 12.5299 12.0695 12.3411C12.5276 12.1523 12.9437 11.8746 13.2938 11.524L18.2938 6.52405C18.9944 5.81927 19.3866 4.86522 19.3842 3.87146C19.3819 2.87771 18.9852 1.92552 18.2813 1.22405Z" fill="#595E6A"/>
24
+ <path d="M2.61879 12.5115C2.38541 12.2793 2.20022 12.0031 2.07386 11.6991C1.94749 11.395 1.88244 11.069 1.88244 10.7397C1.88244 10.4104 1.94749 10.0844 2.07386 9.78028C2.20022 9.47621 2.38541 9.2001 2.61879 8.9678L7.61879 3.9678C7.85109 3.73442 8.1272 3.54923 8.43127 3.42287C8.73534 3.2965 9.06138 3.23145 9.39067 3.23145C9.71995 3.23145 10.046 3.2965 10.3501 3.42287C10.6541 3.54923 10.9302 3.73442 11.1625 3.9678C11.3944 4.20193 11.577 4.48022 11.6994 4.78619C11.8218 5.09215 11.8815 5.41958 11.875 5.74905C11.8769 6.07955 11.8133 6.40715 11.6878 6.7129C11.5623 7.01865 11.3774 7.29647 11.1438 7.5303L9.81879 8.87405L10.7063 9.76155L12.0313 8.43655C12.7366 7.73124 13.1328 6.77463 13.1328 5.77718C13.1328 4.77972 12.7366 3.82311 12.0313 3.1178C11.326 2.41249 10.3694 2.01625 9.37192 2.01625C8.37446 2.01625 7.41785 2.41249 6.71254 3.1178L1.71254 8.1178C1.362 8.4663 1.08382 8.88066 0.893994 9.33706C0.704168 9.79346 0.606445 10.2829 0.606445 10.7772C0.606445 11.2715 0.704168 11.7609 0.893994 12.2173C1.08382 12.6737 1.362 13.088 1.71254 13.4365C2.42431 14.1293 3.38185 14.5115 4.37504 14.499C5.37698 14.5 6.33862 14.1046 7.05004 13.399L6.16254 12.5115C5.93025 12.7449 5.65413 12.9301 5.35006 13.0565C5.04599 13.1829 4.71995 13.2479 4.39067 13.2479C4.06138 13.2479 3.73534 13.1829 3.43127 13.0565C3.1272 12.9301 2.85109 12.7449 2.61879 12.5115Z" fill="#595E6A"/>
25
+ </svg>
26
+ `;
27
+ /* eslint-enable */
28
+ return this.button;
29
+ }
30
+ renderActions() {
31
+ this.dropdown = document.createElement(this.DIV);
32
+ if (this.state) {
33
+ return this.dropdown;
34
+ }
35
+ const linkModal = this.createLinkModal();
36
+ this.dropdown.append(linkModal);
37
+ return this.dropdown;
38
+ }
39
+ wrapLink(range, markerData) {
40
+ const { startContainer, endContainer } = range;
41
+ const url = markerData.data?.toString();
42
+ const link = this.createElement(url, markerData.title);
43
+ range.extractContents();
44
+ this.addMarkerToDOM(range, link, startContainer, endContainer);
45
+ this.removeExternalMarkers(range, this.DEFAULT_CLASS);
46
+ this.removeEmptyMarkers(range);
47
+ this.api.selection.expandToTag(link);
48
+ }
49
+ unwrap() {
50
+ const mark = this.api.selection.findParentTag(this.TAG);
51
+ if (!mark) {
52
+ return;
53
+ }
54
+ removeElementTagWrapper(mark);
55
+ }
56
+ createElement(url = '', text = '') {
57
+ const link = super.createElement(text);
58
+ link.href = url;
59
+ link.contentEditable = 'false';
60
+ link.target = '_blank';
61
+ return link;
62
+ }
63
+ checkState() {
64
+ const link = this.api.selection.findParentTag(this.TAG);
65
+ this.state = !!link;
66
+ }
67
+ createLinkModal() {
68
+ this.markerModal = document.createElement(MARKER_MODAL_SELECTOR);
69
+ this.markerModal.url = '';
70
+ this.markerModal.target = this.button;
71
+ this.markerModal.isGlobal = true;
72
+ this.markerModal.addEventListener('saveClicked', (event) => {
73
+ const customEvent = event;
74
+ const data = customEvent.detail;
75
+ this.wrapLink(this.range, data);
76
+ });
77
+ return this.markerModal;
78
+ }
79
+ }
80
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay1tYXJrZXIudG9vbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvZWRpdG9yL3Rvb2xzL2xpbmstbWFya2VyLnRvb2wudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0saURBQWlELENBQUM7QUFDeEYsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sVUFBVSxDQUFDO0FBR25ELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFOUMsTUFBTSxPQUFPLGFBQWMsU0FBUSxhQUFhO0lBR3JDLE1BQU0sS0FBSyxRQUFRO1FBQ3RCLE9BQU87WUFDSCxDQUFDLEVBQUU7Z0JBQ0MsSUFBSSxFQUFFLElBQUk7Z0JBQ1YsS0FBSyxFQUFFLElBQUk7Z0JBQ1gsTUFBTSxFQUFFLElBQUk7Z0JBQ1osZUFBZSxFQUFFLElBQUk7YUFDeEI7U0FDSixDQUFDO0lBQ04sQ0FBQztJQUVELFlBQV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ck1vZGFsLnRhcmdldCA9IHRoaXMuYnV0dG9uO1xyXG4gICAgICAgIHRoaXMubWFya2VyTW9kYWwuaXNHbG9iYWwgPSB0cnVlO1xyXG5cclxuICAgICAgICB0aGlzLm1hcmtlck1vZGFsLmFkZEV2ZW50TGlzdGVuZXIoJ3NhdmVDbGlja2VkJywgKGV2ZW50OiBFdmVudCkgPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBjdXN0b21FdmVudCA9IGV2ZW50IGFzIEN1c3RvbUV2ZW50PE1hcmtlckRhdGE+O1xyXG4gICAgICAgICAgICBjb25zdCBkYXRhID0gY3VzdG9tRXZlbnQuZGV0YWlsO1xyXG5cclxuICAgICAgICAgICAgdGhpcy53cmFwTGluayh0aGlzLnJhbmdlLCBkYXRhKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgcmV0dXJuIHRoaXMubWFya2VyTW9kYWw7XHJcbiAgICB9XHJcbn1cclxuIl19
@@ -0,0 +1,10 @@
1
+ import List from '@editorjs/list';
2
+ export class CuiListTool extends List {
3
+ constructor(data) {
4
+ super(data);
5
+ }
6
+ render() {
7
+ return super.render();
8
+ }
9
+ }
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC50b29sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9lZGl0b3IvdG9vbHMvbGlzdC50b29sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sSUFBSSxNQUFNLGdCQUFnQixDQUFDO0FBRWxDLE1BQU0sT0FBTyxXQUFZLFNBQVEsSUFBSTtJQUNqQyxZQUFZLElBQVM7UUFDakIsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2hCLENBQUM7SUFFZSxNQUFNO1FBQ2xCLE9BQU8sS0FBSyxDQUFDLE1BQU0sRUFBaUIsQ0FBQztJQUN6QyxDQUFDO0NBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgTGlzdCBmcm9tICdAZWRpdG9yanMvbGlzdCc7XHJcblxyXG5leHBvcnQgY2xhc3MgQ3VpTGlzdFRvb2wgZXh0ZW5kcyBMaXN0IHtcclxuICAgIGNvbnN0cnVjdG9yKGRhdGE6IGFueSkge1xyXG4gICAgICAgIHN1cGVyKGRhdGEpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBvdmVycmlkZSByZW5kZXIoKTogSFRNTEVsZW1lbnQge1xyXG4gICAgICAgIHJldHVybiBzdXBlci5yZW5kZXIoKSBhcyBIVE1MRWxlbWVudDtcclxuICAgIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,144 @@
1
+ import { COMBINED_TEXT_BLOCK_PART } from '../constants/editor.constants';
2
+ import { removeElementTagWrapper } from '../utils/remove-element-tag-wrapper';
3
+ export var RangeContainer;
4
+ (function (RangeContainer) {
5
+ RangeContainer["start"] = "startContainer";
6
+ RangeContainer["end"] = "endContainer";
7
+ })(RangeContainer || (RangeContainer = {}));
8
+ export class CuiMarkerTool {
9
+ static get isInline() {
10
+ return true;
11
+ }
12
+ get state() {
13
+ return this._state;
14
+ }
15
+ set state(state) {
16
+ this._state = state;
17
+ this.button?.classList.toggle(this.api.styles.inlineToolButtonActive, state);
18
+ }
19
+ constructor(data) {
20
+ this.LIST_CLASS = 'cdx-list__item';
21
+ this.DEFAULT_CLASS = 'marker';
22
+ this.DIV = 'div';
23
+ this.TAG = 'MARK';
24
+ this.CLASS = 'tool-marker';
25
+ this._state = false;
26
+ this.api = data.api;
27
+ }
28
+ render() {
29
+ this.button = document.createElement('button');
30
+ this.button.type = 'button';
31
+ this.button.classList.add(this.api.styles.inlineToolButton);
32
+ this.range = window.getSelection()?.getRangeAt(0).cloneRange();
33
+ return this.button;
34
+ }
35
+ surround() {
36
+ if (this.state) {
37
+ this.api.inlineToolbar.close();
38
+ this.unwrap();
39
+ return;
40
+ }
41
+ this.markerModal.title = this.range.toString();
42
+ }
43
+ wrap(range) {
44
+ const { startContainer, endContainer } = range;
45
+ const selectedText = range.extractContents();
46
+ const mark = this.createElement();
47
+ mark.appendChild(selectedText);
48
+ this.removeNestedMarkers(mark, this.DEFAULT_CLASS);
49
+ this.addMarkerToDOM(range, mark, startContainer, endContainer);
50
+ this.removeExternalMarkers(range, this.DEFAULT_CLASS);
51
+ this.removeEmptyMarkers(range);
52
+ this.api.selection.expandToTag(mark);
53
+ }
54
+ unwrap() {
55
+ const mark = this.api.selection.findParentTag(this.TAG, this.CLASS);
56
+ if (!mark) {
57
+ return;
58
+ }
59
+ removeElementTagWrapper(mark);
60
+ }
61
+ createElement(text = '') {
62
+ const element = document.createElement(this.TAG);
63
+ element.classList.add(this.DEFAULT_CLASS);
64
+ element.textContent = text;
65
+ return element;
66
+ }
67
+ addMarkerToDOM(range, mark, startBlock, endBlock) {
68
+ const classes = [this.LIST_CLASS, COMBINED_TEXT_BLOCK_PART];
69
+ const { className, parent: startParent } = this.getClosestParentWithClass(startBlock, classes);
70
+ const { parent: endParent } = this.getClosestParentWithClass(endBlock, classes);
71
+ if (!className || startParent === endParent) {
72
+ range.insertNode(mark);
73
+ return;
74
+ }
75
+ this.removeAllParentsFromMarker(mark, className);
76
+ startParent?.append(mark);
77
+ }
78
+ removeEmptyMarkers(range) {
79
+ range.commonAncestorContainer.childNodes.forEach((node) => {
80
+ if (node.nodeName !== this.TAG) {
81
+ return;
82
+ }
83
+ if (node.textContent?.length) {
84
+ return;
85
+ }
86
+ node.remove();
87
+ });
88
+ }
89
+ removeExternalMarkers(range, className) {
90
+ const startContainer = this.getElementFromContainerNode(range, RangeContainer.start, className);
91
+ const endContainer = this.getElementFromContainerNode(range, RangeContainer.end, className);
92
+ const startElement = startContainer?.closest('.' + className);
93
+ const endElement = endContainer?.closest('.' + className);
94
+ if (startElement !== endElement || !startElement?.classList.contains(className)) {
95
+ return;
96
+ }
97
+ const marker = startElement;
98
+ removeElementTagWrapper(marker);
99
+ }
100
+ removeNestedMarkers(element, selector) {
101
+ const markers = element.querySelectorAll('.' + selector);
102
+ markers.forEach((node) => {
103
+ const marker = node;
104
+ removeElementTagWrapper(marker);
105
+ });
106
+ }
107
+ getElementFromContainerNode(range, key, className) {
108
+ const container = range[key];
109
+ if (container?.classList?.contains(className)) {
110
+ return container;
111
+ }
112
+ return container.parentElement;
113
+ }
114
+ removeAllParentsFromMarker(mark, className) {
115
+ const innerMarkerNodes = [];
116
+ mark.childNodes.forEach((node) => {
117
+ innerMarkerNodes.push(node);
118
+ });
119
+ innerMarkerNodes.forEach((node) => {
120
+ const element = node;
121
+ const isBlock = element.classList?.contains(className);
122
+ if (!isBlock) {
123
+ return;
124
+ }
125
+ removeElementTagWrapper(element);
126
+ });
127
+ }
128
+ getClosestParentWithClass(node, classes) {
129
+ const nodeParent = node.parentElement;
130
+ let parent = nodeParent;
131
+ let resultClassName = '';
132
+ for (const className of classes) {
133
+ const parentWithClass = parent.closest('.' + className);
134
+ if (!parentWithClass) {
135
+ continue;
136
+ }
137
+ parent = parentWithClass;
138
+ resultClassName = className;
139
+ break;
140
+ }
141
+ return { className: resultClassName, parent };
142
+ }
143
+ }
144
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VyLnRvb2wuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2VkaXRvci90b29scy9tYXJrZXIudG9vbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN6RSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUU5RSxNQUFNLENBQU4sSUFBWSxjQUdYO0FBSEQsV0FBWSxjQUFjO0lBQ3RCLDBDQUF3QixDQUFB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WFya2VyID0gc3RhcnRFbGVtZW50IGFzIEhUTUxFbGVtZW50O1xyXG5cclxuICAgICAgICByZW1vdmVFbGVtZW50VGFnV3JhcHBlcihtYXJrZXIpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyByZW1vdmVOZXN0ZWRNYXJrZXJzKGVsZW1lbnQ6IEhUTUxFbGVtZW50LCBzZWxlY3Rvcjogc3RyaW5nKTogdm9pZCB7XHJcbiAgICAgICAgY29uc3QgbWFya2VycyA9IGVsZW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLicgKyBzZWxlY3Rvcik7XHJcblxyXG4gICAgICAgIG1hcmtlcnMuZm9yRWFjaCgobm9kZSkgPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBtYXJrZXIgPSBub2RlIGFzIEhUTUxFbGVtZW50O1xyXG5cclxuICAgICAgICAgICAgcmVtb3ZlRWxlbWVudFRhZ1dyYXBwZXIobWFya2VyKTtcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIGdldEVsZW1lbnRGcm9tQ29udGFpbmVyTm9kZShcclxuICAgICAgICByYW5nZTogUmFuZ2UsXHJcbiAgICAgICAga2V5OiBSYW5nZUNvbnRhaW5lcixcclxuICAgICAgICBjbGFzc05hbWU6IHN0cmluZ1xyXG4gICAgKTogQ3VpTnVsbGFibGU8SFRNTEVsZW1lbnQ+IHtcclxuICAgICAgICBjb25zdCBjb250YWluZXIgPSByYW5nZVtrZXldIGFzIEhUTUxFbGVtZW50O1xyXG5cclxuICAgICAgICBpZiAoY29udGFpbmVyPy5jbGFzc0xpc3Q/LmNvbnRhaW5zKGNsYXNzTmFtZSkpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGNvbnRhaW5lciBhcyBIVE1MRWxlbWVudDtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBjb250YWluZXIucGFyZW50RWxlbWVudDtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIHJlbW92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Bjb25zdCBwYXJlbnRXaXRoQ2xhc3MgPSBwYXJlbnQuY2xvc2VzdCgnLicgKyBjbGFzc05hbWUpO1xyXG5cclxuICAgICAgICAgICAgaWYgKCFwYXJlbnRXaXRoQ2xhc3MpIHtcclxuICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBwYXJlbnQgPSBwYXJlbnRXaXRoQ2xhc3M7XHJcbiAgICAgICAgICAgIHJlc3VsdENsYXNzTmFtZSA9IGNsYXNzTmFtZTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4geyBjbGFzc05hbWU6IHJlc3VsdENsYXNzTmFtZSwgcGFyZW50IH07XHJcbiAgICB9XHJcbn1cclxuIl19
@@ -0,0 +1,17 @@
1
+ import { CuiCustomMarkerTool } from './custom-marker.tool';
2
+ export class CuiRoleMarker extends CuiCustomMarkerTool {
3
+ constructor(data) {
4
+ super(data);
5
+ this.CLASS = 'role-marker';
6
+ }
7
+ render() {
8
+ super.render();
9
+ /* eslint-disable */
10
+ this.button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="-3 -3 24 24" fill="none">
11
+ <path d="M13.3335 17.5V15.8333C13.3335 14.9493 12.9823 14.1014 12.3572 13.4763C11.7321 12.8512 10.8842 12.5 10.0002 12.5H4.16683C3.28277 12.5 2.43493 12.8512 1.80981 13.4763C1.18469 14.1014 0.833496 14.9493 0.833496 15.8333V17.5M16.6668 6.66667V11.6667M19.1668 9.16667H14.1668M10.4168 5.83333C10.4168 7.67428 8.92445 9.16667 7.0835 9.16667C5.24255 9.16667 3.75016 7.67428 3.75016 5.83333C3.75016 3.99238 5.24255 2.5 7.0835 2.5C8.92445 2.5 10.4168 3.99238 10.4168 5.83333Z" stroke="#595E6A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
12
+ </svg>`;
13
+ /* eslint-enable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