@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,60 @@
1
+ import { Injectable, signal } from '@angular/core';
2
+ import { CuiLoadingState } from './loader.options';
3
+ import * as i0 from "@angular/core";
4
+ export class CuiLoaderService {
5
+ constructor() {
6
+ this.RESET_TO_INITIAL_TIME = 1000;
7
+ this.loaderStateSignal = signal(CuiLoadingState.INITIAL);
8
+ this.requestCount = 0;
9
+ this.loaderState = this.loaderStateSignal.asReadonly();
10
+ AngularOutsideLoaderService.setInstance(this);
11
+ }
12
+ setLoading() {
13
+ this.requestCount++;
14
+ // need to use without queueMicrotask (error)
15
+ queueMicrotask(() => this.loaderStateSignal.set(CuiLoadingState.LOADING));
16
+ }
17
+ setCompleted() {
18
+ this.requestCount = this.requestCount && this.requestCount - 1;
19
+ if (this.requestCount) {
20
+ return;
21
+ }
22
+ return this.loaderStateSignal.set(CuiLoadingState.COMPLETED);
23
+ }
24
+ handleCompletedRequest() {
25
+ this.setCompleted();
26
+ clearTimeout(this.resetLoadingStateTimerId);
27
+ this.resetLoadingStateTimerId = setTimeout(() => {
28
+ if (this.requestCount) {
29
+ return;
30
+ }
31
+ this.loaderStateSignal.set(CuiLoadingState.INITIAL);
32
+ }, this.RESET_TO_INITIAL_TIME);
33
+ }
34
+ reset() {
35
+ this.requestCount = 0;
36
+ this.resetLoadingStateTimerId = undefined;
37
+ this.loaderStateSignal.set(CuiLoadingState.INITIAL);
38
+ }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
40
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiLoaderService, providedIn: 'root' }); }
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiLoaderService, decorators: [{
43
+ type: Injectable,
44
+ args: [{
45
+ providedIn: 'root'
46
+ }]
47
+ }], ctorParameters: () => [] });
48
+ // NEED TO USE LoaderService OUTSIDE ANGULAR INJECTION CONTEXT
49
+ export class AngularOutsideLoaderService {
50
+ static getInstance() {
51
+ if (!this.instance) {
52
+ throw new Error("The instance hasn't been initialized yet");
53
+ }
54
+ return this.instance;
55
+ }
56
+ static setInstance(instance) {
57
+ this.instance = instance;
58
+ }
59
+ }
60
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3NlcnZpY2VzL2xvYWRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5ELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQzs7QUFLbkQsTUFBTSxPQUFPLGdCQUFnQjtJQVV6QjtRQVRpQiwwQkFBcUIsR0FBRyxJQUFJLENBQUM7UUFFN0Isc0JBQWlCLEdBQUcsTUFBTSxDQUFrQixlQUFlLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFOUUsaUJBQVksR0FBRyxDQUFDLENBQUM7UUFHVCxnQkFBVyxHQUFHLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxVQUFVLEVBQUUsQ0FBQztRQUc5RCwyQkFBMkIsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDbEQs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KSB7XHJcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIlRoZSBpbnN0YW5jZSBoYXNuJ3QgYmVlbiBpbml0aWFsaXplZCB5ZXRcIik7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gdGhpcy5pbnN0YW5jZTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgc3RhdGljIHNldEluc3RhbmNlKGluc3RhbmNlOiBDdWlMb2FkZXJTZXJ2aWNlKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5pbnN0YW5jZSA9IGluc3RhbmNlO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
@@ -0,0 +1,25 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { CuiAuthBase } from './auth.service';
3
+ import * as i0 from "@angular/core";
4
+ export class CuiMobileAuthService extends CuiAuthBase {
5
+ async initAuth(authConfig) {
6
+ this.setStorage(localStorage);
7
+ this.configure(authConfig);
8
+ if (!authConfig.tokenExpiredCallback) {
9
+ return;
10
+ }
11
+ await this.loadDiscoveryDocument();
12
+ await this.tryLogin();
13
+ this.initAuthRefreshEvents(authConfig.tokenExpiredCallback.bind(this));
14
+ await this.useCheckTokenFlow(authConfig.tokenExpiredCallback.bind(this));
15
+ }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiMobileAuthService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
17
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiMobileAuthService, providedIn: 'root' }); }
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiMobileAuthService, decorators: [{
20
+ type: Injectable,
21
+ args: [{
22
+ providedIn: 'root'
23
+ }]
24
+ }] });
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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udCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7IEN1aUF1dGhDb25maWcgfSBmcm9tICcuLi9wcm92aWRlcnMnO1xuaW1wb3J0IHsgQ3VpQXV0aEJhc2UgfSBmcm9tICcuL2F1dGguc2VydmljZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgQ3VpTW9iaWxlQXV0aFNlcnZpY2UgZXh0ZW5kcyBDdWlBdXRoQmFzZSB7XG4gICAgcHVibGljIGFzeW5jIGluaXRBdXRoKGF1dGhDb25maWc6IEN1aUF1dGhDb25maWcpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICAgICAgdGhpcy5zZXRTdG9yYWdlKGxvY2FsU3RvcmFnZSk7XG4gICAgICAgIHRoaXMuY29uZmlndXJlKGF1dGhDb25maWcpO1xuXG4gICAgICAgIGlmICghYXV0aENvbmZpZy50b2tlbkV4cGlyZWRDYWxsYmFjaykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgYXdhaXQgdGhpcy5sb2FkRGlzY292ZXJ5RG9jdW1lbnQoKTtcbiAgICAgICAgYXdhaXQgdGhpcy50cnlMb2dpbigpO1xuXG4gICAgICAgIHRoaXMuaW5pdEF1dGhSZWZyZXNoRXZlbnRzKGF1dGhDb25maWcudG9rZW5FeHBpcmVkQ2FsbGJhY2suYmluZCh0aGlzKSk7XG5cbiAgICAgICAgYXdhaXQgdGhpcy51c2VDaGVja1Rva2VuRmxvdyhhdXRoQ29uZmlnLnRva2VuRXhwaXJlZENhbGxiYWNrLmJpbmQodGhpcykpO1xuICAgIH1cbn1cbiJdfQ==
@@ -0,0 +1,23 @@
1
+ import { inject, Injectable, NgZone } from '@angular/core';
2
+ import { CUI_ANIMATION_FRAME } from '@cuby-ui/cdk';
3
+ import { EMPTY_CLIENT_RECT, cuiInjectElement, cuiZonefree } from '@cuby-ui/cdk';
4
+ import { CuiPositionAccessor } from '../classes';
5
+ import { finalize, map, Observable, startWith } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export class CuiPositionService extends Observable {
8
+ constructor() {
9
+ const animationFrame$ = inject(CUI_ANIMATION_FRAME);
10
+ const zone = inject(NgZone);
11
+ super((subscriber) => animationFrame$
12
+ .pipe(startWith(null), map(() => this.accessor.getPosition(this.el.getBoundingClientRect(), this.el)), cuiZonefree(zone), finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)))
13
+ .subscribe(subscriber));
14
+ this.el = cuiInjectElement();
15
+ this.accessor = inject(CuiPositionAccessor);
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiPositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiPositionService }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiPositionService, decorators: [{
21
+ type: Injectable
22
+ }], ctorParameters: () => [] });
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zaXRpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvc2VydmljZXMvcG9zaXRpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0QsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ25ELE9BQU8sRUFBRSxpQkF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sbCksXG4gICAgICAgICAgICAgICAgICAgIG1hcCgoKSA9PiB0aGlzLmFjY2Vzc29yLmdldFBvc2l0aW9uKHRoaXMuZWwuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCksIHRoaXMuZWwpKSxcbiAgICAgICAgICAgICAgICAgICAgY3VpWm9uZWZyZWUoem9uZSksXG4gICAgICAgICAgICAgICAgICAgIGZpbmFsaXplKCgpID0+IHRoaXMuYWNjZXNzb3IuZ2V0UG9zaXRpb24oRU1QVFlfQ0xJRU5UX1JFQ1QpKVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAuc3Vic2NyaWJlKHN1YnNjcmliZXIpXG4gICAgICAgICk7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,6 @@
1
+ import { cuiCreateToken } from '@cuby-ui/cdk';
2
+ export const CUI_THEME_STORAGE_DEFAULT_KEY = 'cuiTheme';
3
+ export const CUI_DEFAULT_THEME = 'light';
4
+ export const CUI_THEME_STORAGE_KEY = cuiCreateToken(CUI_THEME_STORAGE_DEFAULT_KEY);
5
+ export const CUI_THEME = cuiCreateToken(CUI_DEFAULT_THEME);
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvc2VydmljZXMvdGhlbWUub3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBSTlDLE1BQU0sQ0FBQyxNQUFNLDZCQUE2QixHQUFHLFVBQVUsQ0FBQztBQUV4RCxNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBYSxPQUFPLENBQUM7QUFFbkQsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsY0FBYyxDQUFDLDZCQUE2QixDQUFDLENBQUM7QUFFbkYsTUFBTSxDQUFDLE1BQU0sU0FBUyxHQUFHLGNBQWMsQ0FBVyxpQkFBaUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3VpQ3JlYXRlVG9rZW4gfSBmcm9tICdAY3VieS11aS9jZGsnO1xuXG5leHBvcnQgdHlwZSBDdWlUaGVtZSA9ICdsaWdodCcgfCAnZGFyayc7XG5cbmV4cG9ydCBjb25zdCBDVUlfVEhFTUVfU1RPUkFHRV9ERUZBVUxUX0tFWSA9ICdjdWlUaGVtZSc7XG5cbmV4cG9ydCBjb25zdCBDVUlfREVGQVVMVF9USEVNRTogQ3VpVGhlbWUgPSAnbGlnaHQnO1xuXG5leHBvcnQgY29uc3QgQ1VJX1RIRU1FX1NUT1JBR0VfS0VZID0gY3VpQ3JlYXRlVG9rZW4oQ1VJX1RIRU1FX1NUT1JBR0VfREVGQVVMVF9LRVkpO1xuXG5leHBvcnQgY29uc3QgQ1VJX1RIRU1FID0gY3VpQ3JlYXRlVG9rZW48Q3VpVGhlbWU+KENVSV9ERUZBVUxUX1RIRU1FKTtcbiJdfQ==
@@ -0,0 +1,30 @@
1
+ import { inject, Injectable } from '@angular/core';
2
+ import { CUI_LOCAL_STORAGE } from '@cuby-ui/cdk';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { CUI_THEME, CUI_THEME_STORAGE_KEY } from './theme.options';
5
+ import * as i0 from "@angular/core";
6
+ export class CuiThemeService extends BehaviorSubject {
7
+ constructor() {
8
+ super(inject(CUI_LOCAL_STORAGE).getItem(inject(CUI_THEME_STORAGE_KEY)) ??
9
+ inject(CUI_THEME));
10
+ this.localStorage = inject(CUI_LOCAL_STORAGE);
11
+ this.key = inject(CUI_THEME_STORAGE_KEY);
12
+ }
13
+ next(theme) {
14
+ this.localStorage.setItem(this.key, theme);
15
+ super.next(theme);
16
+ }
17
+ // При работе только двух тем
18
+ switch() {
19
+ this.next(this.value === 'light' ? 'dark' : 'light');
20
+ }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiThemeService, providedIn: 'root' }); }
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiThemeService, decorators: [{
25
+ type: Injectable,
26
+ args: [{
27
+ providedIn: 'root'
28
+ }]
29
+ }], ctorParameters: () => [] });
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvc2VydmljZXMvdGhlbWUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVuRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDakQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUd2QyxPQUFPLEVBQUUsU0FBUyxFQUFFLHFCQUFxQixFQUFFLE1BQU0saUJBQWlCLENBQUM7O0FBS25FLE1BQU0sT0FBTyxlQUFnQixTQUFRLGVBQXlCO0lBSTFEO1FBQ0ksS0FBSyxDQUNBLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMscUJBQXFCLENBQUMsQ0FBMkI7WUFDdkYsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUN4QixDQUFDO1FBUFcsaUJBQVksR0F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GUoe1xuICAgIHByb3ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBDdWlUaGVtZVNlcnZpY2UgZXh0ZW5kcyBCZWhhdmlvclN1YmplY3Q8Q3VpVGhlbWU+IHtcbiAgICBwcml2YXRlIHJlYWRvbmx5IGxvY2FsU3RvcmFnZSA9IGluamVjdChDVUlfTE9DQUxfU1RPUkFHRSk7XG4gICAgcHJpdmF0ZSByZWFkb25seSBrZXkgPSBpbmplY3QoQ1VJX1RIRU1FX1NUT1JBR0VfS0VZKTtcblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBzdXBlcihcbiAgICAgICAgICAgIChpbmplY3QoQ1VJX0xPQ0FMX1NUT1JBR0UpLmdldEl0ZW0oaW5qZWN0KENVSV9USEVNRV9TVE9SQUdFX0tFWSkpIGFzIEN1aU51bGxhYmxlPEN1aVRoZW1lPikgPz9cbiAgICAgICAgICAgICAgICBpbmplY3QoQ1VJX1RIRU1FKVxuICAgICAgICApO1xuICAgIH1cblxuICAgIHB1YmxpYyBvdmVycmlkZSBuZXh0KHRoZW1lOiBDdWlUaGVtZSk6IHZvaWQge1xuICAgICAgICB0aGlzLmxvY2FsU3RvcmFnZS5zZXRJdGVtKHRoaXMua2V5LCB0aGVtZSk7XG4gICAgICAgIHN1cGVyLm5leHQodGhlbWUpO1xuICAgIH1cblxuICAgIC8vINCf0YDQuCDRgNCw0LHQvtGC0LUg0YLQvtC70YzQutC+INC00LLRg9GFINGC0LXQvFxuICAgIHB1YmxpYyBzd2l0Y2goKTogdm9pZCB7XG4gICAgICAgIHRoaXMubmV4dCh0aGlzLnZhbHVlID09PSAnbGlnaHQnID8gJ2RhcmsnIDogJ2xpZ2h0Jyk7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4ub3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOi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XBsb3llZUlkOiBzdHJpbmc7XG4gICAgcmVhZG9ubHkgYWN0aXZpdHlJZDogc3RyaW5nO1xuICAgIHJlYWRvbmx5IGNvbXBhbnlJZDogc3RyaW5nO1xuICAgIHJlYWRvbmx5IGFjY2Vzc0xldmVsczogc3RyaW5nW107XG59XG5cbmV4cG9ydCBjb25zdCBlbnVtIEN1aVRva2VuUm9sZSB7XG4gICAgQWRtaW4gPSAnQURNSU4nLFxuICAgIE93bmVyID0gJ09XTkVSJyxcbiAgICBVc2VyID0gJ1VTRVInXG59XG4iXX0=
@@ -0,0 +1,121 @@
1
+ import { inject, signal } from '@angular/core';
2
+ import { CuiExchangeContextApiService } from '@cuby-ui/api';
3
+ import { OAuthErrorEvent, OAuthService, OAuthSuccessEvent } from 'angular-oauth2-oidc';
4
+ import { catchError, from, map, of, switchMap, tap, throwError } from 'rxjs';
5
+ class CuiToken extends OAuthService {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.tokenData = signal({});
9
+ this.CONVERT_TO_SECONDS_CONSTANT = 1000;
10
+ }
11
+ getRefreshTokenExpiration() {
12
+ const refreshTokenExpiration = this.getTokenDataFromStore(this.getRefreshToken());
13
+ return refreshTokenExpiration.exp;
14
+ }
15
+ getAccessTokenData() {
16
+ const token = this.getAccessToken();
17
+ if (!token) {
18
+ throw new Error('No access token found');
19
+ }
20
+ return this.getTokenDataFromStore(token);
21
+ }
22
+ checkIsTokenExpired() {
23
+ const token = this.getAccessToken();
24
+ if (!token) {
25
+ return true;
26
+ }
27
+ return this.checkTokenExpired(this.getAccessTokenExpiration() / this.CONVERT_TO_SECONDS_CONSTANT);
28
+ }
29
+ checkIsRefreshTokenExpired() {
30
+ const token = this.getRefreshToken();
31
+ if (!token) {
32
+ return true;
33
+ }
34
+ return this.checkTokenExpired(this.getRefreshTokenExpiration());
35
+ }
36
+ getTokenDataFromStore(token) {
37
+ const tokenData = this.tokenData()[token];
38
+ if (tokenData) {
39
+ return tokenData;
40
+ }
41
+ const currentTokenData = this.parseToken(token);
42
+ this.tokenData.update((prev) => ({ ...prev, [token]: currentTokenData }));
43
+ return currentTokenData;
44
+ }
45
+ parseToken(token) {
46
+ try {
47
+ const base64Url = token.split('.')[1];
48
+ const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
49
+ const jsonPayload = decodeURIComponent(window
50
+ .atob(base64)
51
+ .split('')
52
+ .map((c) => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2))
53
+ .join(''));
54
+ return JSON.parse(jsonPayload);
55
+ }
56
+ catch {
57
+ throw new Error('Invalid token');
58
+ }
59
+ }
60
+ checkTokenExpired(expiredTimeInSeconds) {
61
+ const currentTime = Date.now() / this.CONVERT_TO_SECONDS_CONSTANT;
62
+ return currentTime >= expiredTimeInSeconds;
63
+ }
64
+ }
65
+ export class CuiTokenBase extends CuiToken {
66
+ constructor() {
67
+ super(...arguments);
68
+ this.exchangeContextApiService = inject(CuiExchangeContextApiService);
69
+ this.EXCHANGE_TOKEN_VALUE = 'token-exchange';
70
+ }
71
+ // TODO: override refreshToken with custom refresh token request to the backend
72
+ refreshToken() {
73
+ try {
74
+ const tokenData = this.getTokenDataFromStore(this.getRefreshToken());
75
+ if (tokenData.azp.includes(this.EXCHANGE_TOKEN_VALUE)) {
76
+ return this.refreshExchangedToken();
77
+ }
78
+ }
79
+ catch (error) {
80
+ this.logger.error('Error refreshing token', error);
81
+ }
82
+ return super.refreshToken();
83
+ }
84
+ refreshExchangedToken() {
85
+ return new Promise((resolve, reject) => this.exchangeContextApiService
86
+ .refresh(this.getRefreshToken())
87
+ .pipe(switchMap((tokenResponse) => this.setIdToken(tokenResponse)))
88
+ .subscribe({
89
+ next: (tokenResponse) => {
90
+ this.setTokenResponse(tokenResponse);
91
+ resolve(tokenResponse);
92
+ },
93
+ error: (error) => {
94
+ this.logger.error('Error refreshing token', error);
95
+ this.eventsSubject.next(new OAuthErrorEvent('token_refresh_error', error));
96
+ reject(error);
97
+ }
98
+ }));
99
+ }
100
+ exchangeToken(params) {
101
+ return this.exchangeContextApiService.exchange(params).pipe(switchMap((tokenResponse) => this.setIdToken(tokenResponse)), tap((tokenResponse) => this.setTokenResponse(tokenResponse)), catchError((error) => {
102
+ this.logger.error('Error exchanging token', error);
103
+ this.eventsSubject.next(new OAuthErrorEvent('token_refresh_error', error));
104
+ return throwError(() => error);
105
+ }));
106
+ }
107
+ setTokenResponse(tokenResponse) {
108
+ const expiresIn = tokenResponse.expires_in || this.fallbackAccessTokenExpirationTimeInSec;
109
+ this.debug('tokenResponse', tokenResponse);
110
+ this.storeAccessTokenResponse(tokenResponse.access_token, tokenResponse.refresh_token, expiresIn, tokenResponse.scope);
111
+ this.eventsSubject.next(new OAuthSuccessEvent('token_received'));
112
+ this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed'));
113
+ }
114
+ setIdToken(tokenResponse) {
115
+ if (!this.oidc || !tokenResponse.id_token) {
116
+ return of(tokenResponse);
117
+ }
118
+ return from(this.processIdToken(tokenResponse.id_token, tokenResponse.access_token, true)).pipe(tap((result) => this.storeIdToken(result)), map(() => tokenResponse));
119
+ }
120
+ }
121
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvc2VydmljZXMvdG9rZW4uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvQyxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFNUQsT0FBTyxFQUFFLGVBQWUsRUFBRSxZQUFZLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUV2RixPQUFPLEVBQUUsVUFBVSxFQUFFLElBQUks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TtcblxuICAgICAgICBpZiAodG9rZW5EYXRhKSB7XG4gICAgICAgICAgICByZXR1cm4gdG9rZW5EYXRhO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgY3VycmVudFRva2VuRGF0YSA9IHRoaXMucGFyc2VUb2tlbih0b2tlbik7XG5cbiAgICAgICAgdGhpcy50b2tlbkRhdGEudXBkYXRlKChwcmV2KSA9PiAoeyAuLi5wcmV2LCBbdG9rZW5dOiBjdXJyZW50VG9rZW5EYXRhIH0pKTtcblxuICAgICAgICByZXR1cm4gY3VycmVudFRva2VuRGF0YTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHBhcnNlVG9rZW4odG9rZW46IHN0cmluZyk6IEN1aVRva2VuRGF0YSB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zdCBiYXNlNjRVcmwgPSB0b2tlbi5zcGxpdCgnLicpWzFdO1xuICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gYmFzZTY0VXJsLnJlcGxhY2UoLy0vZywgJysnKS5yZXBsYWNlKC9fL2csICcvJyk7XG4gICAgICAgICAgICBjb25zdCBqc29uUGF5bG9hZCA9IGRlY29kZVVSSUNvbXBvbmVudChcbiAgICAgICAgICAgICAgICB3aW5kb3dcbiAgICAgICAgICAgICAgICAgICAgLmF0b2IoYmFzZTY0KVxuICAgICAgICAgICAgICAgICAgICAuc3BsaXQoJycpXG4gICAgICAgICAgICAgICAgICAgIC5tYXAoKGMpID0+ICclJyArICgnMDAnICsgYy5jaGFyQ29kZUF0KDApLnRvU3RyaW5nKDE2KSkuc2xpY2UoLTIpKVxuICAgICAgICAgICAgICAgICAgICAuam9pbignJylcbiAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGpzb25QYXlsb2FkKTtcbiAgICAgICAgfSBjYXRjaCB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0ludmFsaWQgdG9rZW4nKTtcbiAgICAgICAgfVx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Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aGlzLmxvZ2dlci5lcnJvcignRXJyb3IgcmVmcmVzaGluZyB0b2tlbicsIGVycm9yKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBzdXBlci5yZWZyZXNoVG9rZW4oKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgcmVmcmVzaEV4Y2hhbmdlZFRva2VuKCk6IFByb21pc2U8Q3VpVG9rZW5SZXNwb25zZT4ge1xuICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT5cbiAgICAgICAgICAgIHRoaXMuZXhjaGFuZ2VDb250ZXh0QXBpU2VydmljZVxuICAgICAgICAgICAgICAgIC5yZWZyZXNoKHRoaXMuZ2V0UmVmcmVzaFRva2VuKCkpXG4gICAgICAgICAgICAgICAgLnBpcGUoc3dpdGNoTWFwKCh0b2tlblJlc3BvbnNlKSA9PiB0aGlzLnNldElkVG9rZW4odG9rZW5SZXNwb25zZSkpKVxuICAgICAgICAgICAgICAgIC5zdWJzY3JpYmUoe1xuICAgICAgICAgICAgICAgICAgICBuZXh0OiAodG9rZW5SZXNwb25zZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRUb2tlblJlc3BvbnNlKHRva2VuUmVzcG9uc2UpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRva2VuUmVzcG9uc2UpO1xuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBlcnJvcjogKGVycm9yKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmxvZ2dlci5lcnJvcignRXJyb3IgcmVmcmVzaGluZyB0b2tlbicsIGVycm9yKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZXZlbnRzU3ViamVjdC5uZXh0KG5ldyBPQXV0aEVycm9yRXZlbnQoJ3Rva2VuX3JlZnJlc2hfZXJyb3InLCBl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ICAgbWFwKCgpID0+IHRva2VuUmVzcG9uc2UpXG4gICAgICAgICk7XG4gICAgfVxufVxuIl19
@@ -0,0 +1,28 @@
1
+ import { inject, Injectable } from '@angular/core';
2
+ import { CUI_WINDOW } from '@cuby-ui/cdk';
3
+ import { CUI_IS_WEBKIT } from '@cuby-ui/cdk';
4
+ import * as i0 from "@angular/core";
5
+ export class CuiVisualViewportService {
6
+ constructor() {
7
+ this.isWebkit = inject(CUI_IS_WEBKIT);
8
+ this.win = inject(CUI_WINDOW);
9
+ }
10
+ // https://bugs.webkit.org/show_bug.cgi?id=207089
11
+ correct(point) {
12
+ return this.isWebkit
13
+ ? [
14
+ point[0] + (this.win.visualViewport?.offsetTop ?? 0),
15
+ point[1] + (this.win.visualViewport?.offsetLeft ?? 0)
16
+ ]
17
+ : point;
18
+ }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiVisualViewportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
20
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiVisualViewportService, providedIn: 'root' }); }
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CuiVisualViewportService, decorators: [{
23
+ type: Injectable,
24
+ args: [{
25
+ providedIn: 'root'
26
+ }]
27
+ }] });
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlzdWFsLXZpZXdwb3J0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3NlcnZpY2VzL3Zpc3VhbC12aWV3cG9ydC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVS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geyBDdWlQb2ludCB9IGZyb20gJy4uL3R5cGVzJztcblxuQEluamVjdGFibGUoe1xuICAgIHByb3ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBDdWlWaXN1YWxWaWV3cG9ydFNlcnZpY2Uge1xuICAgIHByaXZhdGUgcmVhZG9ubHkgaXNXZWJraXQgPSBpbmplY3QoQ1VJX0lTX1dFQktJVCk7XG4gICAgcHJpdmF0ZSByZWFkb25seSB3aW4gPSBpbmplY3QoQ1VJX1dJTkRPVyk7XG5cbiAgICAvLyBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjA3MDg5XG4gICAgcHVibGljIGNvcnJlY3QocG9pbnQ6IEN1aVBvaW50KTogQ3VpUG9pbnQge1xuICAgICAgICByZXR1cm4gdGhpcy5pc1dlYmtpdFxuICAgICAgICAgICAgPyBbXG4gICAgICAgICAgICAgICAgICBwb2ludFswXSArICh0aGlzLndpbi52aXN1YWxWaWV3cG9ydD8ub2Zmc2V0VG9wID8/IDApLFxuICAgICAgICAgICAgICAgICAgcG9pbnRbMV0gKyAodGhpcy53aW4udmlzdWFsVmlld3BvcnQ/Lm9mZnNldExlZnQgPz8gMClcbiAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgOiBwb2ludDtcbiAgICB9XG59XG4iXX0=
@@ -0,0 +1,8 @@
1
+ import { inject } from '@angular/core';
2
+ import { cuiCreateTokenFromFactory } from '@cuby-ui/cdk';
3
+ import { CUI_REDUCED_MOTION } from './reduced-motion';
4
+ /**
5
+ * Speed of all Taiga UI animations. 1 equals 300ms.
6
+ */
7
+ export const CUI_ANIMATIONS_SPEED = cuiCreateTokenFromFactory(() => (inject(CUI_REDUCED_MOTION) ? 0 : 1));
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9ucy1zcGVlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvdG9rZW5zL2FuaW1hdGlvbnMtc3BlZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFdEQ7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxvQkFBb0IsR0FBRyx5QkFBeUIsQ0FBUyxHQUFHLEVBQUUsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBpbmplY3QgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IGN1aUNyZWF0ZVRva2VuRnJvbUZhY3RvcnkgfSBmcm9tICdAY3VieS11aS9jZGsnO1xuXG5pbXBvcnQgeyBDVUlfUkVEVUNFRF9NT1RJT04gfSBmcm9tICcuL3JlZHVjZWQtbW90aW9uJztcblxuLyoqXG4gKiBTcGVlZCBvZiBhbGwgVGFpZ2EgVUkgYW5pbWF0aW9ucy4gMSBlcXVhbHMgMzAwbXMuXG4gKi9cbmV4cG9ydCBjb25zdCBDVUlfQU5JTUFUSU9OU19TUEVFRCA9IGN1aUNyZWF0ZVRva2VuRnJvbUZhY3Rvcnk8bnVtYmVyPigoKSA9PiAoaW5qZWN0KENVSV9SRURVQ0VEX01PVElPTikgPyAwIDogMSkpO1xuIl19
@@ -0,0 +1,15 @@
1
+ import { InjectionToken, inject } from '@angular/core';
2
+ import { CuiAlertService } from '../components';
3
+ class DefaultErrorNotificationService {
4
+ constructor() {
5
+ this.alertService = inject(CuiAlertService);
6
+ }
7
+ showError(message, options) {
8
+ this.alertService.open(message, { status: 'error', ...options }).subscribe();
9
+ }
10
+ }
11
+ export const CUI_ERROR_NOTIFICATION_SERVICE = new InjectionToken('CUI_ERROR_NOTIFICATION_SERVICE', {
12
+ providedIn: 'root',
13
+ factory: () => new DefaultErrorNotificationService()
14
+ });
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3Itbm90aWZpY2F0aW9uLXNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3Rva2Vucy9lcnJvci1ub3RpZmljYXRpb24tc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUd2RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWhELE1BQU0sK0JBQStCO0lBQXJDO1FBQ3FCLGlCQUFZLEdBQUcsTUFBTSxDQUFDLGVBQWUsQ0FBQyxDQUFDO0lBSzVELENBQUM7SUFIVSxTQUFTLENBQUMsT0FBZSxFQUFFLE9BQWlDO1FBQy9ELElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxFQUFFLE1BQU0sRUFBRSxPQUFPLEVBQUUsR0FBRyxPQUFPLEVBQUUsQ0FBQyxDQUFDLFNBQVMsRUFBRSxDQUFDO0lBQ2pGLENBQUM7Q0FDSjtBQUVELE1BQU0sQ0FBQyxNQUFNLDhCQUE4QixHQUFHLElBQUksY0FBYyxDQUM1RCxnQ0FBZ0MsRUFDaEM7SUFDSSxVQUFVLEVBQUUsTUFBTTtJQUNsQixPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUMsSUFBSSwrQkF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7XG4iXX0=
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export const CUI_ERROR_TRANSLATION_PREFIX = new InjectionToken('CUI_ERROR_TRANSLATION_PREFIX', {
3
+ providedIn: 'root',
4
+ factory: () => 'BACKEND.'
5
+ });
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItdHJhbnNsYXRpb24tcHJlZml4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS90b2tlbnMvZXJyb3ItdHJhbnNsYXRpb24tcHJlZml4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0MsTUFBTSxDQUFDLE1BQU0sNEJBQTRCLEdBQUcsSUFBSSxjQUFjLENBQVMsOEJBQThCLEVBQUU7SUFDbkcsVUFBVSxFQUFFLE1BQU07SUFDbEIsT0FBTyxFQUFFLEdBQUcsRUFBRSxDQUFDLFVBQVU7Q0FDNUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGNvbnN0IENVSV9FUlJPUl9UUkFOU0xBVElPTl9QUkVGSVggPSBuZXcgSW5qZWN0aW9uVG9rZW48c3RyaW5nPignQ1VJX0VSUk9SX1RSQU5TTEFUSU9OX1BSRUZJWCcsIHtcbiAgICBwcm92aWRlZEluOiAncm9vdCcsXG4gICAgZmFjdG9yeTogKCkgPT4gJ0JBQ0tFTkQuJ1xufSk7XG4iXX0=
@@ -0,0 +1,6 @@
1
+ export * from './animations-speed';
2
+ export * from './reduced-motion';
3
+ export * from './viewport';
4
+ export * from './error-notification-service';
5
+ export * from './error-translation-prefix';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3Rva2Vucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmltYXRpb25zLXNwZWVkJztcbmV4cG9ydCAqIGZyb20gJy4vcmVkdWNlZC1tb3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi92aWV3cG9ydCc7XG5leHBvcnQgKiBmcm9tICcuL2Vycm9yLW5vdGlmaWNhdGlvbi1zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vZXJyb3ItdHJhbnNsYXRpb24tcHJlZml4JztcbiJdfQ==
@@ -0,0 +1,5 @@
1
+ import { DOCUMENT } from '@angular/common';
2
+ import { inject } from '@angular/core';
3
+ import { cuiCreateTokenFromFactory } from '@cuby-ui/cdk';
4
+ export const CUI_REDUCED_MOTION = cuiCreateTokenFromFactory(() => inject(DOCUMENT).defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false);
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdWNlZC1tb3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3Rva2Vucy9yZWR1Y2VkLW1vdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0MsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFekQsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQUcseUJBQXlCLENBQ3ZELEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxXQUFXLEVBQUUsVUFBVSxFQUFFLENBQUMsa0NBQWtDLENBQUMsQ0FBQyxPQUFPLElBQUksS0FBSyxDQUN4RyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRE9DVU1FTlQgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgaW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBjdWlDcmVhdGVUb2tlbkZyb21GYWN0b3J5IH0gZnJvbSAnQGN1YnktdWkvY2RrJztcblxuZXhwb3J0IGNvbnN0IENVSV9SRURVQ0VEX01PVElPTiA9IGN1aUNyZWF0ZVRva2VuRnJvbUZhY3RvcnkoXG4gICAgKCkgPT4gaW5qZWN0KERPQ1VNRU5UKS5kZWZhdWx0Vmlldz8ubWF0Y2hNZWRpYT8uKCcocHJlZmVycy1yZWR1Y2VkLW1vdGlvbjogcmVkdWNlKScpLm1hdGNoZXMgPz8gZmFsc2Vcbik7XG4iXX0=
@@ -0,0 +1,31 @@
1
+ import { inject } from '@angular/core';
2
+ import { CUI_WINDOW, cuiCreateTokenFromFactory, cuiProvide } from '@cuby-ui/cdk';
3
+ /**
4
+ * Viewport accessor
5
+ */
6
+ export const CUI_VIEWPORT = cuiCreateTokenFromFactory(() => {
7
+ const win = inject(CUI_WINDOW);
8
+ return {
9
+ type: 'viewport',
10
+ getClientRect() {
11
+ const rect = {
12
+ top: 0,
13
+ left: 0,
14
+ right: win.innerWidth,
15
+ bottom: win.innerHeight,
16
+ width: win.innerWidth,
17
+ height: win.innerHeight,
18
+ x: 0,
19
+ y: 0
20
+ };
21
+ return {
22
+ ...rect,
23
+ toJSON: () => JSON.stringify(rect)
24
+ };
25
+ }
26
+ };
27
+ });
28
+ export function cuiAsViewport(accessor) {
29
+ return cuiProvide(CUI_VIEWPORT, accessor);
30
+ }
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld3BvcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3Rva2Vucy92aWV3cG9ydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxVQUFVLEVBQUUseUJBQXlCLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBR2pGOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHLHlCQUF5QixDQUFrQixHQUFHLEVBQUU7SUFDeEUsTUFBTSxHQUFHLEdBQUcsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBRS9CLE9BQU87UUFDSCxJQUFJLEVBQUUsVUFBVTtRQUNoQixhQUFhO1lBQ1QsTUFBTSxJQUFJLEdBQUc7Z0JBQ1QsR0FBRyxFQUFFLENBQUM7Z0JBQ04sSUFBSSxFQUFFLENBQUM7Z0JBQ1AsS0FBSyxFQUFFLEdBQUcsQ0FBQyxVQUFVO2dCQUNyQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVc7Z0JBQ3ZCLEtBQUssRUFBRSxHQUFHLENBQUMsVUFBVTtnQkFDckIsTUFBTSxFQUFFLEdBQUcsQ0FBQyxXQUFXO2dCQUN2QixDQUFDLEVBQUUsQ0FBQztnQkFDSixDQUFDLEVBQUUsQ0FBQzthQ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lnaHQ6IHdpbi5pbm5lcldpZHRoLFxuICAgICAgICAgICAgICAgIGJvdHRvbTogd2luLmlubmVySGVpZ2h0LFxuICAgICAgICAgICAgICAgIHdpZHRoOiB3aW4uaW5uZXJXaWR0aCxcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IHdpbi5pbm5lckhlaWdodCxcbiAgICAgICAgICAgICAgICB4OiAwLFxuICAgICAgICAgICAgICAgIHk6IDBcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgLi4ucmVjdCxcbiAgICAgICAgICAgICAgICB0b0pTT046ICgpID0+IEpTT04uc3RyaW5naWZ5KHJlY3QpXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG4gICAgfTtcbn0pO1xuXG5leHBvcnQgZnVuY3Rpb24gY3VpQXNWaWV3cG9ydChhY2Nlc3NvcjogVHlwZTxDdWlSZWN0QWNjZXNzb3I+KTogUHJvdmlkZXIge1xuICAgIHJldHVybiBjdWlQcm92aWRlKENVSV9WSUVXUE9SVCwgYWNjZXNzb3IpO1xufVxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwZWFyYW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvdHlwZXMvYXBwZWFyYW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgQ3VpQXBwZWFyYW5jZUFjdGlvbiA9ICdhY3Rpb24nO1xuXG5leHBvcnQgdHlwZSBDdWlBcHBlYXJhbmNlU2Vjb25kYXJ5ID0gJ3NlY29uZGFyeSc7XG5cbmV4cG9ydCB0eXBlIEN1aUFwcGVhcmFuY2VPdXRsaW5lZCA9ICdvdXRsaW5lZCc7XG5cb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1Y2Nlc3MgPSAnc3VjY2Vzcyc7XG5leHBvcnQgdHlwZSBDdWlCdXR0b25UaGVtZVZpdmlkU3VjY2VzcyA9ICd2aXZpZC1zdWNjZXNzJztcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGludC10eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS90eXBlcy9oaW50LXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIEN1aUhpbnRUeXBlID0gJ2luZm8nIHwgJ2Vycm9yJztcbiJdfQ==
@@ -0,0 +1,11 @@
1
+ export * from './appearance';
2
+ export * from './hint-type';
3
+ export * from './point';
4
+ export * from './portal-item';
5
+ export * from './position';
6
+ export * from './resizing';
7
+ export * from './shape';
8
+ export * from './size';
9
+ export * from './status';
10
+ export * from './button-theme';
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3R5cGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FwcGVhcmFuY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9oaW50LXR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9wb2ludCc7XG5leHBvcnQgKiBmcm9tICcuL3BvcnRhbC1pdGVtJztcbmV4cG9ydCAqIGZyb20gJy4vcG9zaXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9yZXNpemluZyc7XG5leHBvcnQgKiBmcm9tICcuL3NoYXBlJztcbmV4cG9ydCAqIGZyb20gJy4vc2l6ZSc7XG5leHBvcnQgKiBmcm9tICcuL3N0YXR1cyc7XG5leHBvcnQgKiBmcm9tICcuL2J1dHRvbi10aGVtZSc7XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9pbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3R5cGVzL3BvaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUT0RPOiBSZWZhY3RvciB0byBbeDogbnVtYmVyLCB5OiBudW1iZXJdIGFjcm9zcyB0aGUgbGlicmFyeVxuZXhwb3J0IHR5cGUgQ3VpUG9pbnQgPSBSZWFkb25seTxbbnVtYmVyLCBudW1iZXJdPjtcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3R5cGVzL3BvcnRhbC1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEN1aUFjdGl2ZVpvbmUgfSBmcm9tICdAY3VieS11aS9jZGsnO1xuaW1wb3J0IHR5cGUgeyBQb2x5bW9ycGhldXNDb21wb25lbnQsIFBvbHltb3JwaGV1c0NvbnRlbnQgfSBmcm9tICdAdGFpZ2EtdWkvcG9seW1vcnBoZXVzJztcblxuZXhwb3J0IGludGVyZmFjZSBDdWlQb3J0YWxJdGVtPEMgPSBhbnk+IHtcbiAgICByZWFkb25seSBhY3RpdmVab25lPzogQ3VpQWN0aXZlWm9uZSB8IG51bGw7XG4gICAgcmVhZG9ubHkgYXBwZWFyYW5jZT86IHN0cmluZztcbiAgICByZWFkb25seSBjb21wb25lbnQ6IFBvbHltb3JwaGV1c0NvbXBvbmVudDxhbnk+O1xuICAgIHJlYWRvbmx5IGNvbnRlbnQ6IFBvbHltb3JwaGV1c0NvbnRlbnQ8Qz47XG4gICAgcmVhZG9ubHkgY29udGV4dD86IEM7XG59XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zaXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3R5cGVzL3Bvc2l0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBDdWlQb3NpdGlvbkNlbnRlciA9ICdjZW50ZXInO1xuXG5leHBvcnQgdHlwZSBDdWlQb3NpdGlvblJpZ2h0ID0gJ3JpZ2h0JztcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXppbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9q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J0IHR5cGUgQ3VpU2l6ZUxnID0gJ2xnJztcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS90eXBlcy9zdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIEN1aVN0YXR1cyA9ICdzdWNjZXNzJyB8ICdpbmZvJyB8ICdhbGVydCcgfCAnZXJyb3InO1xuIl19
@@ -0,0 +1,7 @@
1
+ export function cuiCheckFixedPosition(element) {
2
+ return !!element && (isFixed(element) || cuiCheckFixedPosition(element.parentElement));
3
+ }
4
+ function isFixed(element) {
5
+ return element.ownerDocument.defaultView?.getComputedStyle(element).getPropertyValue('position') === 'fixed';
6
+ }
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2stZml4ZWQtcG9zaXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL2NoZWNrLWZpeGVkLXBvc2l0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxxQkFBcUIsQ0FBQyxPQUE0QjtJQUM5RCxPQUFPLENBQUMsQ0FBQyxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUkscUJBQXFCLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDLENBQUM7QUFDM0YsQ0FBQztBQUVELFNBQVMsT0FBTyxDQUFDLE9BQW9CO0lBQ2pDLE9BQU8sT0FBTyxDQUFDLGFBQWEsQ0FBQyxXQUFXLEVBQUUsZ0JBQWdCLENBQUMsT0FBTyxDQUFDLENBQUMsZ0JBQWdCLENBQUMsVUFBVSxDQUFDLEtBQUssT0FBTyxDQUFDO0FBQ2pILENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gY3VpQ2hlY2tGaXhlZFBvc2l0aW9uKGVsZW1lbnQ/OiBIVE1MRWxlbWVudCB8IG51bGwpOiBib29sZWFuIHtcbiAgICByZXR1cm4gISFlbGVtZW50ICYmIChpc0ZpeGVkKGVsZW1lbnQpIHx8IGN1aUNoZWNrRml4ZWRQb3NpdGlvbihlbGVtZW50LnBhcmVudEVsZW1lbnQpKTtcbn1cblxuZnVuY3Rpb24gaXNGaXhlZChlbGVtZW50OiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBlbGVtZW50Lm93bmVyRG9jdW1lbnQuZGVmYXVsdFZpZXc/LmdldENvbXB1dGVkU3R5bGUoZWxlbWVudCkuZ2V0UHJvcGVydHlWYWx1ZSgncG9zaXRpb24nKSA9PT0gJ2ZpeGVkJztcbn1cbiJdfQ==
@@ -0,0 +1,19 @@
1
+ import { Validators } from '@angular/forms';
2
+ import { asyncExtraSpacesValidators, syncExtraSpacesValidator } from './extra-spaces.validators';
3
+ export function cuiCreateDefaultValidators({ maxLength = 100, asyncDelay = 700 } = {}) {
4
+ // Need to offset because this delay must be before changing value
5
+ const OFFSET = 1;
6
+ const adjustedAsyncDelay = asyncDelay - OFFSET;
7
+ const validators = {
8
+ validators: [Validators.required, Validators.maxLength(maxLength)],
9
+ asyncValidators: []
10
+ };
11
+ if (asyncDelay) {
12
+ validators.asyncValidators.push(asyncExtraSpacesValidators(adjustedAsyncDelay));
13
+ }
14
+ else {
15
+ validators.validators.push(syncExtraSpacesValidator());
16
+ }
17
+ return validators;
18
+ }
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWRlZmF1bHQtdmFsaWRhdG9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gdmFsaWRhdG9ycy52YWxpZGF0b3JzLnB1c2goc3luY0V4dHJhU3BhY2VzVmFsaWRhdG9yKCkpO1xuICAgIH1cblxuICAgIHJldHVybiB2YWxpZGF0b3JzO1xufVxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWRlZmF1bHQtdmFsaWRhdG9ycy5vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS91dGlscy9kZWZhdWx0LXZhbGlkYXRvcnMvY3JlYXRlLWRlZmF1bHQtdmFsaWRhdG9ycy5vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBc3luY1ZhbGlkYXRvckZuLCBWYWxpZGF0b3JGbiB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcblxuZXhwb3J0IGludGVyZmFjZSBDdWlEZWZhdWx0VmFsaWRhdG9yc09wdGlvbnMge1xuICAgIHJlYWRvbmx5IHZhbGlkYXRvcnM6IFZhbGlkYXRvckZuW107XG4gICAgcmVhZG9ubHkgYXN5bmNWYWxpZGF0b3JzOiBBc3luY1ZhbGlkYXRvckZuW107XG59XG4iXX0=
@@ -0,0 +1,11 @@
1
+ const LEADING_TRAILING_SPACES_REGEX = /^\s|\s$/;
2
+ const MULTIPLE_SPACES_REGEX = /\s{2,}/;
3
+ export function hasExtraSpaces(value) {
4
+ const hasLeadingOrTrailingSpaces = LEADING_TRAILING_SPACES_REGEX.test(value);
5
+ const hasMultipleSpaces = MULTIPLE_SPACES_REGEX.test(value);
6
+ if (hasLeadingOrTrailingSpaces || hasMultipleSpaces) {
7
+ return { extraSpaces: true };
8
+ }
9
+ return null;
10
+ }
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZX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VzID0gTEVBRElOR19UUkFJTElOR19TUEFDRVNfUkVHRVgudGVzdCh2YWx1ZSk7XG4gICAgY29uc3QgaGFzTXVsdGlwbGVTcGFjZXMgPSBNVUxUSVBMRV9TUEFDRVNfUkVHRVgudGVzdCh2YWx1ZSk7XG5cbiAgICBpZiAoaGFzTGVhZGluZ09yVHJhaWxpbmdTcGFjZXMgfHwgaGFzTXVsdGlwbGVTcGFjZXMpIHtcbiAgICAgICAgcmV0dXJuIHsgZXh0cmFTcGFjZXM6IHRydWUgfTtcbiAgICB9XG5cbiAgICByZXR1cm4gbnVsbDtcbn1cbiJdfQ==
@@ -0,0 +1,11 @@
1
+ import { map, timer } from 'rxjs';
2
+ import { hasExtraSpaces } from './extra-spaces.options';
3
+ export function asyncExtraSpacesValidators(delay) {
4
+ return ({ value }) => {
5
+ return timer(delay).pipe(map(() => hasExtraSpaces(value)));
6
+ };
7
+ }
8
+ export function syncExtraSpacesValidator() {
9
+ return ({ value }) => hasExtraSpaces(value);
10
+ }
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0cmEtc3BhY2VzLnZhbGlkYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL2RlZmF1bHQtdmFsaWRhdG9ycy9leHRyYS1zcGFjZXMudmFsaWRhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsR0FBRyxFQUFFLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUVsQyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFeEQsTUFBTSxVQUFVLDBCQUEwQixDQUFDLEtBQWE7SUFDcEQsT0FBTyxDQUFDLEVBQUUsS0FBSyxFQUFtQixFQUF1QyxFQUFFO1FBQ3ZFLE9BQU8sS0FBSyx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dXJuICh7IHZhbHVlIH06IEFic3RyYWN0Q29udHJvbCk6IFZhbGlkYXRpb25FcnJvcnMgfCBudWxsID0+IGhhc0V4dHJhU3BhY2VzKHZhbHVlKTtcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export { cuiCreateDefaultValidators } from './create-default-validators';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL2RlZmF1bHQtdmFsaWRhdG9ycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGN1aUNyZWF0ZURlZmF1bHRWYWxpZGF0b3JzIH0gZnJvbSAnLi9jcmVhdGUtZGVmYXVsdC12YWxpZGF0b3JzJztcbmV4cG9ydCB0eXBlIHsgQ3VpRGVmYXVsdFZhbGlkYXRvcnNPcHRpb25zIH0gZnJvbSAnLi9jcmVhdGUtZGVmYXVsdC12YWxpZGF0b3JzLm9wdGlvbnMnO1xuIl19
@@ -0,0 +1,3 @@
1
+ export * from './remove-spaces';
2
+ export * from './replace';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL2Zvcm1hdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yZW1vdmUtc3BhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vcmVwbGFjZSc7XG4iXX0=