@taiga-ui/cdk 4.52.0-canary.6ee9658 → 4.52.0-canary.7c53ccc

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 (190) hide show
  1. package/constants/handlers.d.ts +2 -0
  2. package/constants/used-icons.d.ts +1 -1
  3. package/constants/version.d.ts +1 -1
  4. package/constants/version.js +1 -1
  5. package/date-time/date-fillers.d.ts +5 -5
  6. package/date-time/day-range.d.ts +1 -1
  7. package/date-time/day.d.ts +3 -3
  8. package/date-time/types.d.ts +1 -7
  9. package/directives/animated/animated.directive.d.ts +1 -3
  10. package/directives/animated/index.d.ts +0 -1
  11. package/directives/index.d.ts +0 -1
  12. package/directives/value-changes/value-changes.directive.d.ts +1 -1
  13. package/fesm2022/taiga-ui-cdk-classes.mjs +4 -4
  14. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-cdk-constants.mjs +4 -3
  16. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-cdk-date-time.mjs +22 -23
  18. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +9 -5
  20. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +23 -70
  22. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +5 -4
  24. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -3
  26. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +4 -4
  27. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -4
  29. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +5 -7
  31. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +3 -3
  33. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -3
  34. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +7 -7
  35. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -3
  37. package/fesm2022/taiga-ui-cdk-directives-media.mjs +4 -4
  38. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +5 -4
  40. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +6 -6
  42. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +6 -6
  43. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +3 -3
  44. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +6 -6
  45. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +6 -6
  46. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +4 -4
  47. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -4
  49. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -7
  51. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +5 -4
  53. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +3 -3
  55. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +8 -7
  56. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-cdk-directives.mjs +0 -1
  58. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-cdk-observables.mjs +1 -24
  60. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -3
  62. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -3
  63. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -4
  64. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -2
  66. package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-cdk-portals.mjs +15 -16
  68. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-cdk-tokens.mjs +13 -26
  70. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +1 -47
  72. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -38
  74. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
  76. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +33 -26
  78. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
  80. package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-cdk.mjs +0 -1
  82. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  83. package/index.d.ts +0 -1
  84. package/observables/index.d.ts +0 -2
  85. package/package.json +5 -26
  86. package/pipes/index.d.ts +0 -2
  87. package/portals/portal.d.ts +0 -1
  88. package/schematics/index.d.ts +5 -0
  89. package/schematics/index.js +4 -0
  90. package/schematics/index.js.map +1 -1
  91. package/schematics/ng-add/constants/versions.d.ts +1 -1
  92. package/schematics/ng-add/steps/add-taiga-modules.js +0 -15
  93. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  94. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
  95. package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
  96. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
  97. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +13 -13
  98. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  99. package/schematics/ng-update/v5/index.js +4 -0
  100. package/schematics/ng-update/v5/index.js.map +1 -1
  101. package/schematics/ng-update/v5/steps/constants/functions.js +1 -6
  102. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -1
  103. package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
  104. package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
  105. package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
  106. package/schematics/ng-update/v5/steps/migrate-templates.js +4 -0
  107. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -1
  108. package/schematics/ng-update/v5/steps/migrate-tui-let.d.ts +3 -0
  109. package/schematics/ng-update/v5/steps/migrate-tui-let.js +95 -0
  110. package/schematics/ng-update/v5/steps/migrate-tui-let.js.map +1 -0
  111. package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
  112. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
  113. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
  114. package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
  115. package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
  116. package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
  117. package/schematics/utils/run-migration.d.ts +2 -2
  118. package/schematics/utils/run-migration.js +4 -3
  119. package/schematics/utils/run-migration.js.map +1 -1
  120. package/schematics/utils/templates/elements.d.ts +4 -1
  121. package/schematics/utils/templates/elements.js.map +1 -1
  122. package/tokens/index.d.ts +0 -2
  123. package/tokens/removed-element.d.ts +0 -3
  124. package/types/index.d.ts +0 -3
  125. package/utils/dom/index.d.ts +0 -5
  126. package/utils/focus/get-closest-focusable.d.ts +1 -6
  127. package/utils/focus/index.d.ts +4 -6
  128. package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
  129. package/utils/index.d.ts +0 -1
  130. package/utils/math/index.d.ts +0 -2
  131. package/utils/miscellaneous/generate-id.d.ts +1 -0
  132. package/utils/miscellaneous/index.d.ts +2 -5
  133. package/utils/miscellaneous/sanitize-text.d.ts +23 -0
  134. package/directives/animated/animated-parent.directive.d.ts +0 -10
  135. package/directives/repeat-times/index.d.ts +0 -1
  136. package/directives/repeat-times/repeat-times.directive.d.ts +0 -23
  137. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -60
  138. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
  139. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -24
  140. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
  141. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -24
  142. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
  143. package/fesm2022/taiga-ui-cdk-services.mjs +0 -57
  144. package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
  145. package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -196
  146. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
  147. package/observables/must-be-present.d.ts +0 -5
  148. package/observables/query-list-observable.d.ts +0 -7
  149. package/pipes/is-present/index.d.ts +0 -1
  150. package/pipes/is-present/is-present.pipe.d.ts +0 -7
  151. package/pipes/repeat-times/index.d.ts +0 -7
  152. package/schematics/migrate-tui-let/index.d.ts +0 -3
  153. package/schematics/migrate-tui-let/index.js +0 -73
  154. package/schematics/migrate-tui-let/index.js.map +0 -1
  155. package/schematics/migrate-tui-let/schema.json +0 -7
  156. package/services/id.service.d.ts +0 -8
  157. package/services/index.d.ts +0 -2
  158. package/services/theme-color.service.d.ts +0 -18
  159. package/tokens/base-href.d.ts +0 -2
  160. package/tokens/range.d.ts +0 -5
  161. package/types/loose-union.d.ts +0 -36
  162. package/types/safe-html.d.ts +0 -2
  163. package/types/values-of.d.ts +0 -1
  164. package/utils/color/get-gradient-data.d.ts +0 -1
  165. package/utils/color/hex-to-rgb.d.ts +0 -1
  166. package/utils/color/hex-to-rgba.d.ts +0 -3
  167. package/utils/color/hsv-to-rgb.d.ts +0 -4
  168. package/utils/color/index.d.ts +0 -9
  169. package/utils/color/parse-color.d.ts +0 -1
  170. package/utils/color/parse-gradient.d.ts +0 -10
  171. package/utils/color/rgb-to-hex.d.ts +0 -1
  172. package/utils/color/rgb-to-hsv.d.ts +0 -1
  173. package/utils/color/rgba-to-hex.d.ts +0 -2
  174. package/utils/dom/get-element-point.d.ts +0 -2
  175. package/utils/dom/is-current-target.d.ts +0 -1
  176. package/utils/dom/is-inside-iframe.d.ts +0 -4
  177. package/utils/dom/is-node-in.d.ts +0 -8
  178. package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
  179. package/utils/focus/blur-native-focused.d.ts +0 -4
  180. package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
  181. package/utils/math/to-integer.d.ts +0 -1
  182. package/utils/math/to-radians.d.ts +0 -4
  183. package/utils/miscellaneous/change-date-separator.d.ts +0 -1
  184. package/utils/miscellaneous/flat-length.d.ts +0 -6
  185. package/utils/miscellaneous/is-falsy.d.ts +0 -1
  186. package/utils/miscellaneous/object-shallow-equals.d.ts +0 -1
  187. package/utils/miscellaneous/uniq-by.d.ts +0 -1
  188. /package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -0
  189. /package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -0
  190. /package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/utils/templates/elements.ts"],"names":[],"mappings":";;AAGA,4CAuBC;AAED,gEAYC;AAED,sDASC;AAED,wDAEC;AAMD,8DAUC;AAMD,8DAOC;AAOD,wEAkBC;AAMD,sEAaC;AAMD,0EAaC;AAGD,kDAOC;AAGD,8DAOC;AAvKD,mCAAqC;AAGrC,SAAgB,gBAAgB,CAC5B,KAAkB,EAClB,WAAqC;IAErC,MAAM,QAAQ,GAAc,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,CAAC,KAAkB,EAAQ,EAAE;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAChB,MAAM,IAAI,GAAG,CAAY,CAAC;YAE1B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBAClB,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAChC,CAAC;YAED,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,UAAU,CAAC,KAAK,CAAC,CAAC;IAElB,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAgB,0BAA0B,CACtC,IAAY,EACZ,WAAqC;IAErC,uEAAuE;IACvE,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;QAChC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAED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+BAA+B,CAC3C,IAAY,EACZ,IAAY,EACZ,KAAe,EACf,WAA0C,GAAG,EAAE,CAAC,IAAI;IAEpD,OAAO,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC;SACvC,MAAM,CACH,CAAC,OAAO,EAAE,EAAE,CACR,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACxD,QAAQ,CAAC,OAAO,CAAC,CACxB;SACA,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC;AAED,4FAA4F;AAC5F,SAAgB,mBAAmB,CAAC,OAAgB,EAAE,aAAqB;;IACvE,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;IAEvD,OAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,IAAI,CACtB,CAAC,IAAI,EAAE,EAAE,CACL,IAAI,CAAC,IAAI,KAAK,kBAAkB,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,kBAAkB,GAAG,CAClF,CAAC;AACN,CAAC;AAED,0EAA0E;AAC1E,SAAgB,yBAAyB,CACrC,OAAgB,EAChB,aAAqB;;IAErB,OAAO,CACH,CAAA,MAAA,MAAA,MAAA,OAAO,CAAC,kBAAkB,0CAAE,KAAK,0CAAG,aAAa,CAAC,WAAW,EAAE,CAAC,0CAAE,WAAW,KAAI,CAAC,CACrF,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/utils/templates/elements.ts"],"names":[],"mappings":";;AAMA,4CAuBC;AAED,gEAYC;AAED,sDASC;AAED,wDAEC;AAMD,8DAUC;AAMD,8DAOC;AAOD,wEAkBC;AAMD,sEAaC;AAMD,0EAaC;AAGD,kDAOC;AAGD,8DAOC;AA1KD,mCAAmE;AAMnE,SAAgB,gBAAgB,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IACvE,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;IAEvD,OAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,IAAI,CACtB,CAAC,IAAI,EAAE,EAAE,CACL,IAAI,CAAC,IAAI,KAAK,kBAAkB,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,kBAAkB,GAAG,CAClF,CAAC;AACN,CAAC;AAED,0EAA0E;AAC1E,SAAgB,yBAAyB,CACrC,OAAgB,EAChB,aAAqB;;IAErB,OAAO,CACH,CAAA,MAAA,MAAA,MAAA,OAAO,CAAC,kBAAkB,0CAAE,KAAK,0CAAG,aAAa,CAAC,WAAW,EAAE,CAAC,0CAAE,WAAW,KAAI,CAAC,CACrF,CAAC;AACN,CAAC"}
package/tokens/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export * from './active-element';
2
- export * from './base-href';
3
2
  export * from './environment';
4
3
  export * from './fallback-value';
5
- export * from './range';
6
4
  export * from './removed-element';
7
5
  export * from './window-size';
@@ -1,5 +1,2 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- /**
3
- * Element currently being removed by AnimationEngine
4
- */
5
2
  export declare const TUI_REMOVED_ELEMENT: InjectionToken<import("rxjs").Observable<Element | null>>;
package/types/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  export type * from './context';
2
2
  export type * from './handler';
3
- export type * from './loose-union';
4
3
  export type * from './mapper';
5
4
  export type * from './matcher';
6
5
  export type * from './rounding';
7
- export type * from './safe-html';
8
- export type * from './values-of';
@@ -6,13 +6,8 @@ export * from './get-clipboard-data-text';
6
6
  export * from './get-document-or-shadow-root';
7
7
  export * from './get-element-obscurers';
8
8
  export * from './get-element-offset';
9
- export * from './get-element-point';
10
9
  export * from './get-selected-text';
11
10
  export * from './inject-element';
12
- export * from './is-current-target';
13
11
  export * from './is-element-editable';
14
- export * from './is-inside-iframe';
15
- export * from './is-node-in';
16
12
  export * from './point-to-client-rect';
17
- export * from './retarget-boundary-crossing';
18
13
  export * from './value';
@@ -4,11 +4,6 @@ export interface TuiGetClosestFocusableOptions {
4
4
  * current HTML element
5
5
  */
6
6
  initial: Element;
7
- /**
8
- * @description:
9
- * determine if only keyboard focus is of interest
10
- */
11
- keyboard?: boolean;
12
7
  /**
13
8
  * @description:
14
9
  * should it look backwards instead (find item that will be focused with Shift + Tab)
@@ -24,4 +19,4 @@ export interface TuiGetClosestFocusableOptions {
24
19
  * @description:
25
20
  * Finds the closest element that can be focused with a keyboard or mouse in theory
26
21
  */
27
- export declare function tuiGetClosestFocusable({ initial, root, previous, keyboard, }: TuiGetClosestFocusableOptions): HTMLElement | null;
22
+ export declare function tuiGetClosestFocusable({ initial, root, previous, }: TuiGetClosestFocusableOptions): HTMLElement | null;
@@ -1,9 +1,7 @@
1
- export * from './blur-native-focused';
2
1
  export * from './focused-in';
3
2
  export * from './get-closest-focusable';
4
- export * from './get-native-focused';
5
- export * from './is-native-focused';
6
- export * from './is-native-focused-in';
7
- export * from './is-native-keyboard-focusable';
8
- export * from './is-native-mouse-focusable';
3
+ export * from './get-focused';
4
+ export * from './is-focusable';
5
+ export * from './is-focused';
6
+ export * from './is-focused-in';
9
7
  export * from './move-focus';
@@ -4,4 +4,4 @@
4
4
  * be focused, for example element can have display: none applied to it or any other
5
5
  * circumstances could prevent actual focus.
6
6
  */
7
- export declare function tuiIsKeyboardFocusable(element: Element): boolean;
7
+ export declare function tuiIsFocusable(element: Element): boolean;
package/utils/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from '@taiga-ui/cdk/utils/browser';
2
- export * from '@taiga-ui/cdk/utils/color';
3
2
  export * from '@taiga-ui/cdk/utils/di';
4
3
  export * from '@taiga-ui/cdk/utils/dom';
5
4
  export * from '@taiga-ui/cdk/utils/focus';
@@ -6,5 +6,3 @@ export * from './round';
6
6
  export * from './round-with';
7
7
  export * from './sum';
8
8
  export * from './to-int';
9
- export * from './to-integer';
10
- export * from './to-radians';
@@ -0,0 +1 @@
1
+ export declare function tuiGenerateId(): string;
@@ -1,15 +1,13 @@
1
1
  export * from './array-remove';
2
2
  export * from './array-shallow-equals';
3
3
  export * from './array-toggle';
4
- export * from './change-date-separator';
5
4
  export * from './count-filled-controls';
6
5
  export * from './default-sort';
7
6
  export * from './distance-between-touches';
8
7
  export * from './ease-in-out-quad';
9
- export * from './flat-length';
10
8
  export * from './font-size-watcher';
9
+ export * from './generate-id';
11
10
  export * from './is-control-empty';
12
- export * from './is-falsy';
13
11
  export * from './is-number';
14
12
  export * from './is-object';
15
13
  export * from './is-present';
@@ -17,9 +15,8 @@ export * from './is-string';
17
15
  export * from './mark-control-as-touched-and-validate';
18
16
  export * from './nullable-same';
19
17
  export * from './obfuscate';
20
- export * from './object-shallow-equals';
21
18
  export * from './pure';
22
19
  export * from './px';
20
+ export * from './sanitize-text';
23
21
  export * from './set-signal';
24
- export * from './uniq-by';
25
22
  export * from './with-styles';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Sanitizes pasted or dropped text by removing invisible and control characters
3
+ * that can appear in clipboard or drag-and-drop data.
4
+ *
5
+ * Removes:
6
+ * 1. ASCII control characters (0x00–0x1F) — non-printable characters like
7
+ * NULL, BEL, BS, CR, LF, TAB, ESC, etc.
8
+ * 2. Extended control characters (0x7F–0x9F) — C1 control codes from ISO-8859-1,
9
+ * often found in legacy or malformed text encodings.
10
+ * 3. Zero-width and special Unicode characters:
11
+ * - U+200B ZERO WIDTH SPACE
12
+ * - U+200C ZERO WIDTH NON-JOINER
13
+ * - U+200D ZERO WIDTH JOINER
14
+ * - U+FEFF BYTE ORDER MARK (BOM)
15
+ *
16
+ * @param {string} value - The input string from clipboard or drag event.
17
+ * @returns {string} - A cleaned string without control or invisible characters.
18
+ *
19
+ * @example
20
+ * tuiSanitizeText('Hello\u0000World\u200B!');
21
+ * // → "HelloWorld!"
22
+ */
23
+ export declare function tuiSanitizeText(value: string): string;
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./animated.directive";
3
- import * as i2 from "@ng-web-apis/mutation-observer";
4
- export declare class TuiAnimatedParent {
5
- private readonly el;
6
- private readonly renderer;
7
- protected handle(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAnimatedParent, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAnimatedParent, "[tuiAnimatedParent]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.WaMutationObserver; inputs: {}; outputs: { "waMutationObserver": "waMutationObserver"; }; }]>;
10
- }
@@ -1 +0,0 @@
1
- export * from './repeat-times.directive';
@@ -1,23 +0,0 @@
1
- import { type TuiContext } from '@taiga-ui/cdk/types';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiRepeatTimesContext implements TuiContext<number> {
4
- readonly $implicit: number;
5
- constructor($implicit: number);
6
- }
7
- /**
8
- * Directive similar to ngFor but using a number of repetitions rather than an array
9
- *
10
- * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
11
- * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
12
- * {@link TuiRepeatTimesContext.$implicit index} of a template instance.
13
- */
14
- export declare class TuiRepeatTimes {
15
- private readonly vcr;
16
- private readonly template;
17
- readonly tuiRepeatTimesOf: import("@angular/core").InputSignal<number>;
18
- protected readonly setCount: import("@angular/core").EffectRef;
19
- private addContainers;
20
- private removeContainers;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiRepeatTimes, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRepeatTimes, "[tuiRepeatTimes][tuiRepeatTimesOf]", never, { "tuiRepeatTimesOf": { "alias": "tuiRepeatTimesOf"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
23
- }
@@ -1,60 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, input, effect, Directive } from '@angular/core';
3
- import { tuiClamp } from '@taiga-ui/cdk/utils/math';
4
-
5
- const MAX_VALUE = 0x10000;
6
- class TuiRepeatTimesContext {
7
- constructor($implicit) {
8
- this.$implicit = $implicit;
9
- }
10
- }
11
- /**
12
- * Directive similar to ngFor but using a number of repetitions rather than an array
13
- *
14
- * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
15
- * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
16
- * {@link TuiRepeatTimesContext.$implicit index} of a template instance.
17
- */
18
- class TuiRepeatTimes {
19
- constructor() {
20
- this.vcr = inject(ViewContainerRef);
21
- this.template = inject((TemplateRef));
22
- this.tuiRepeatTimesOf = input.required();
23
- this.setCount = effect(() => {
24
- const count = this.tuiRepeatTimesOf();
25
- const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));
26
- const { length } = this.vcr;
27
- if (count < length) {
28
- this.removeContainers(length - count);
29
- }
30
- else {
31
- this.addContainers(safeCount);
32
- }
33
- });
34
- }
35
- addContainers(count) {
36
- for (let index = this.vcr.length; index < count; index++) {
37
- this.vcr.createEmbeddedView(this.template, new TuiRepeatTimesContext(index));
38
- }
39
- }
40
- removeContainers(amount) {
41
- for (let index = 0; index < amount; index++) {
42
- this.vcr.remove();
43
- }
44
- }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
46
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: { classPropertyName: "tuiRepeatTimesOf", publicName: "tuiRepeatTimesOf", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, decorators: [{
49
- type: Directive,
50
- args: [{
51
- selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',
52
- }]
53
- }] });
54
-
55
- /**
56
- * Generated bundle index. Do not edit.
57
- */
58
-
59
- export { TuiRepeatTimes, TuiRepeatTimesContext };
60
- //# sourceMappingURL=taiga-ui-cdk-directives-repeat-times.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-repeat-times.mjs","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {\n Directive,\n effect,\n inject,\n input,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContext<number> {\n constructor(public readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly vcr = inject(ViewContainerRef);\n private readonly template = inject(TemplateRef<TuiRepeatTimesContext>);\n\n public readonly tuiRepeatTimesOf = input.required<number>();\n\n protected readonly setCount = effect(() => {\n const count = this.tuiRepeatTimesOf();\n\n const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));\n\n const {length} = this.vcr;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n });\n\n private addContainers(count: number): void {\n for (let index = this.vcr.length; index < count; index++) {\n this.vcr.createEmbeddedView<TuiRepeatTimesContext>(\n this.template,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index =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AAID,IAAA,gBAAgB,CAAC,MAAc,EAAA;AACnC,QAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;AACzC,YAAA,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;;;+GA/BhB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,EAAA,iBAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA;;;AC1BD;;AAEG;;;;"}
@@ -1,24 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
- import { tuiIsPresent } from '@taiga-ui/cdk/utils';
4
-
5
- class TuiIsPresentPipe {
6
- transform(value) {
7
- return tuiIsPresent(value);
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, isStandalone: true, name: "tuiIsPresent" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- name: 'tuiIsPresent',
16
- }]
17
- }] });
18
-
19
- /**
20
- * Generated bundle index. Do not edit.
21
- */
22
-
23
- export { TuiIsPresentPipe };
24
- //# sourceMappingURL=taiga-ui-cdk-pipes-is-present.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-is-present.mjs","sources":["../../../projects/cdk/pipes/is-present/is-present.pipe.ts","../../../projects/cdk/pipes/is-present/taiga-ui-cdk-pipes-is-present.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n name: 'tuiIsPresent',\n})\nexport class TuiIsPresentPipe implements PipeTransform {\n public transform<T>(value?: T | null): value is T {\n return tuiIsPresent(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CAAI,KAAgB,EAAA;AAChC,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC;;+GAFrB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,24 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
- import { tuiClamp } from '@taiga-ui/cdk/utils';
4
-
5
- class TuiRepeatTimesPipe {
6
- transform(n) {
7
- return Array.from({ length: tuiClamp(n, 0, n) }, (_, i) => i);
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, isStandalone: true, name: "tuiRepeatTimes" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- name: 'tuiRepeatTimes',
16
- }]
17
- }] });
18
-
19
- /**
20
- * Generated bundle index. Do not edit.
21
- */
22
-
23
- export { TuiRepeatTimesPipe };
24
- //# sourceMappingURL=taiga-ui-cdk-pipes-repeat-times.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-repeat-times.mjs","sources":["../../../projects/cdk/pipes/repeat-times/index.ts","../../../projects/cdk/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiClamp} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n name: 'tuiRepeatTimes',\n})\nexport class TuiRepeatTimesPipe implements PipeTransform {\n public transform(n: number): number[] {\n return Array.from({length: tuiClamp(n, 0, n)}, (_, i) => i);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,kBAAkB,CAAA;AACpB,IAAA,SAAS,CAAC,CAAS,EAAA;QACtB,OAAO,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;;+GAFtD,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,57 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, inject, InjectionToken } from '@angular/core';
3
- import { DOCUMENT } from '@angular/common';
4
- import { Meta } from '@angular/platform-browser';
5
-
6
- class TuiIdService {
7
- static { this.autoId = 0; }
8
- generate() {
9
- return `tui_${TuiIdService.autoId++}${Date.now()}`;
10
- }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
12
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, providedIn: 'root' }); }
13
- }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, decorators: [{
15
- type: Injectable,
16
- args: [{
17
- providedIn: 'root',
18
- }]
19
- }] });
20
- function tuiInjectId() {
21
- return inject(TuiIdService).generate();
22
- }
23
-
24
- const TUI_THEME_COLOR = new InjectionToken(ngDevMode ? 'TUI_THEME_COLOR' : '', {
25
- factory: () => inject(Meta).getTag('name="theme-color"')?.content ?? '',
26
- });
27
- class TuiThemeColorService {
28
- constructor() {
29
- this.current = inject(TUI_THEME_COLOR);
30
- this.doc = inject(DOCUMENT);
31
- this.meta = inject(Meta);
32
- this.color = this.current;
33
- }
34
- get color() {
35
- return this.current;
36
- }
37
- set color(content) {
38
- this.current = content;
39
- this.meta.updateTag({ name: 'theme-color', content });
40
- this.doc.documentElement.style.setProperty('--tui-theme-color', content);
41
- }
42
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
43
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, providedIn: 'root' }); }
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, decorators: [{
46
- type: Injectable,
47
- args: [{
48
- providedIn: 'root',
49
- }]
50
- }], ctorParameters: () => [] });
51
-
52
- /**
53
- * Generated bundle index. Do not edit.
54
- */
55
-
56
- export { TUI_THEME_COLOR, TuiIdService, TuiThemeColorService, tuiInjectId };
57
- //# sourceMappingURL=taiga-ui-cdk-services.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-services.mjs","sources":["../../../projects/cdk/services/id.service.ts","../../../projects/cdk/services/theme-color.service.ts","../../../projects/cdk/services/taiga-ui-cdk-services.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiIdService {\n private static autoId = 0;\n\n public generate(): string {\n return `tui_${TuiIdService.autoId++}${Date.now()}`;\n }\n}\n\nexport function tuiInjectId(): string {\n return inject(TuiIdService).generate();\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable, InjectionToken} from '@angular/core';\nimport {Meta} from '@angular/platform-browser';\n\nexport const TUI_THEME_COLOR = new InjectionToken<string>(\n ngDevMode ? 'TUI_THEME_COLOR' : '',\n {\n factory: () => inject(Meta).getTag('name=\"theme-color\"')?.content ?? '',\n },\n);\n\ninterface TuiThemeColor {\n get color(): string;\n set color(value: string);\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiThemeColorService implements TuiThemeColor {\n private current = inject(TUI_THEME_COLOR);\n private readonly doc = inject(DOCUMENT);\n private readonly meta = inject(Meta);\n\n constructor() {\n this.color = this.current;\n }\n\n public get color(): string {\n return this.current;\n }\n\n public set color(content: string) {\n this.current = content;\n this.meta.updateTag({name: 'theme-color', content});\n this.doc.documentElement.style.setProperty('--tui-theme-color', content);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAKa,YAAY,CAAA;aACN,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAEnB,QAAQ,GAAA;QACX,OAAO,CAAA,IAAA,EAAO,YAAY,CAAC,MAAM,EAAE,CAAG,EAAA,IAAI,CAAC,GAAG,EAAE,CAAA,CAAE;;+GAJ7C,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFT,MAAM,EAAA,CAAA,CAAA;;4FAET,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;SASe,WAAW,GAAA;AACvB,IAAA,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;AAC1C;;ACXa,MAAA,eAAe,GAAG,IAAI,cAAc,CAC7C,SAAS,GAAG,iBAAiB,GAAG,EAAE,EAClC;AACI,IAAA,OAAO,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,IAAI,EAAE;AAC1E,CAAA;MAWQ,oBAAoB,CAAA;AAK7B,IAAA,WAAA,GAAA;AAJQ,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;AACxB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAGhC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;;AAG7B,IAAA,IAAW,KAAK,GAAA;QACZ,OAAO,IAAI,CAAC,OAAO;;IAGvB,IAAW,KAAK,CAAC,OAAe,EAAA;AAC5B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;AACtB,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAC,CAAC;AACnD,QAAA,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC;;+GAhBnE,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFjB,MAAM,EAAA,CAAA,CAAA;;4FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;;AClBD;;AAEG;;;;"}
@@ -1,196 +0,0 @@
1
- function tuiGetGradientData(gradient) {
2
- return gradient
3
- .slice(0, Math.max(0, gradient.length - 1))
4
- .replace('linear-gradient(', '');
5
- }
6
-
7
- function tuiHexToRgb(hex) {
8
- const matches = hex
9
- .replace('#', '')
10
- .split('')
11
- .map((char, _, array) => (array.length === 3 ? char + char : char))
12
- .join('')
13
- .match(/.{2}/g);
14
- return matches
15
- ? matches.map((x) => Number.parseInt(x, 16))
16
- : [0, 0, 0];
17
- }
18
-
19
- const getChunksFromString = (hex, chunkSize) => hex.match(new RegExp(`.{${chunkSize}}`, 'g'));
20
- const convertHexUnitTo256 = (hexStr) => parseInt(hexStr.repeat(2 / hexStr.length), 16);
21
- const getAlphaFloat = (a, alpha) => {
22
- if (a !== undefined) {
23
- return Number((a / 255).toFixed(2));
24
- }
25
- if (typeof alpha !== 'number' || alpha < 0 || alpha > 1) {
26
- return 1;
27
- }
28
- return alpha;
29
- };
30
- function tuiHexToRGBA(hex, alpha) {
31
- const [r, g, b, a] = tuiParseHex(hex, alpha);
32
- return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;
33
- }
34
- function tuiIsValidHex(hex) {
35
- return /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
36
- }
37
- function tuiParseHex(hex, alpha) {
38
- if (!tuiIsValidHex(hex)) {
39
- throw new Error('Invalid HEX');
40
- }
41
- const chunkSize = Math.floor((hex.length - 1) / 3);
42
- const hexArr = getChunksFromString(hex.slice(1), chunkSize);
43
- const [r = NaN, g = NaN, b = NaN, a] = hexArr?.map(convertHexUnitTo256) ?? [];
44
- const floatAlpha = getAlphaFloat(a, alpha);
45
- return [r, g, b, floatAlpha];
46
- }
47
-
48
- function hsvToColor(h, s, v, n) {
49
- const k = (n + h / 60) % 6;
50
- return Math.round(v - v * s * Math.max(Math.min(k, 4 - k, 1), 0));
51
- }
52
- /**
53
- * https://stackoverflow.com/a/54024653/2706426
54
- */
55
- function tuiHsvToRgb(h, s, v) {
56
- return [hsvToColor(h, s, v, 5), hsvToColor(h, s, v, 3), hsvToColor(h, s, v, 1)];
57
- }
58
-
59
- const DEFAULT = [0, 0, 0, 1];
60
- function tuiParseColor(color) {
61
- const stripped = color
62
- .replace('#', '')
63
- .replace('rgba(', '')
64
- .replace('rgb(', '')
65
- .replace(')', '');
66
- const array = stripped.split(',').map((item) => parseFloat(item));
67
- if (array.length === 4) {
68
- return array;
69
- }
70
- if (array.length === 3) {
71
- return array.concat(1);
72
- }
73
- const matches = stripped.match(new RegExp(`(.{${stripped.length / 3}})`, 'g'));
74
- if (!matches) {
75
- return DEFAULT;
76
- }
77
- const parsed = matches.map((char) => parseInt(stripped.length % 2 ? char + char : char, 16));
78
- return [
79
- parsed[0] ?? DEFAULT[0],
80
- parsed[1] ?? DEFAULT[1],
81
- parsed[2] ?? DEFAULT[2],
82
- parsed[3] ?? DEFAULT[3],
83
- ];
84
- }
85
-
86
- //
87
- // TypeScript parser based on Dean Taylor's answer:
88
- // https://stackoverflow.com/a/20238168/2706426
89
- //
90
- // SETUP CODE
91
- const COMMA = String.raw `\s*,\s*`; // Allow space around comma.
92
- const HEX = '#(?:[a-f0-9]{6}|[a-f0-9]{3})'; // 3 or 6 character form
93
- const RGB = String.raw `\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*\)`; // "(1, 2, 3)"
94
- const RGBA = String.raw `\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*,\s*\d*\.?\d+\)`; // "(1, 2, 3, 4)"
95
- const VALUE = String.raw `(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?`; // ".9", "-5px", "100%".
96
- const KEYWORD = '[_a-z-][_a-z0-9-]*'; // "red", "transparent", "border-collapse".
97
- const COLOR = [
98
- '(?:',
99
- HEX,
100
- '|',
101
- '(?:rgb|hsl)',
102
- RGB,
103
- '|',
104
- '(?:rgba|hsla)',
105
- RGBA,
106
- '|',
107
- KEYWORD,
108
- ')',
109
- ];
110
- const REGEXP_ARRAY = [
111
- String.raw `\s*(`,
112
- ...COLOR,
113
- ')',
114
- String.raw `(?:\s+`,
115
- '(',
116
- VALUE,
117
- '))?',
118
- '(?:',
119
- COMMA,
120
- String.raw `\s*)?`,
121
- ];
122
- function getPosition(match, stops) {
123
- const fallback = stops === 1 ? '100%' : `${stops}%`;
124
- return match?.includes('%') ? match : fallback;
125
- }
126
- function tuiParseGradient(input) {
127
- const stopsRegexp = new RegExp(REGEXP_ARRAY.join(''), 'gi');
128
- const stopsString = input.startsWith('to') || /^\d/.exec(input)
129
- ? input.slice(Math.max(0, input.indexOf(',') + 1)).trim()
130
- : input;
131
- const side = input.startsWith('to')
132
- ? input.split(',')[0]
133
- : 'to bottom';
134
- let stops = [];
135
- let matchColorStop = stopsRegexp.exec(stopsString);
136
- while (matchColorStop !== null) {
137
- stops = stops.concat({
138
- color: matchColorStop[1] || '',
139
- position: getPosition(matchColorStop[2] || '', stops.length),
140
- });
141
- matchColorStop = stopsRegexp.exec(stopsString);
142
- }
143
- stops = stops.filter(({ color }) => color.startsWith('#') || color.startsWith('rgb'));
144
- return {
145
- stops,
146
- side,
147
- };
148
- }
149
- function tuiToGradient({ stops, side }) {
150
- return `linear-gradient(${side}, ${stops
151
- .map(({ color, position }) => `rgba(${tuiParseColor(color).join(', ')}) ${position}`)
152
- .join(', ')})`;
153
- }
154
-
155
- function tuiRgbToHex(r, g, b) {
156
- return `#${[r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('')}`;
157
- }
158
-
159
- function tuiRgbToHsv(r, g, b) {
160
- const v = Math.max(r, g, b);
161
- const n = v - Math.min(r, g, b);
162
- // eslint-disable-next-line no-nested-ternary
163
- const h = n && (v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n);
164
- return [60 * (h < 0 ? h + 6 : h), v && n / v, v];
165
- }
166
-
167
- /* eslint-disable no-bitwise */
168
- function tuiRgbaToHex(color) {
169
- if (!tuiIsValidRgba(color)) {
170
- throw new Error('Invalid RGBa');
171
- }
172
- const rgb = /^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i.exec(color.replaceAll(/\s/g, '')) ??
173
- null;
174
- let alpha = (rgb?.[4] ?? '').trim();
175
- let hex = rgb
176
- ? ((parseInt(rgb?.[1] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1) +
177
- ((parseInt(rgb?.[2] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1) +
178
- ((parseInt(rgb?.[3] ?? '', 10) || 0) | (1 << 8)).toString(16).slice(1)
179
- : color;
180
- alpha = alpha !== '' ? alpha : 0o1;
181
- alpha = ((Number(alpha) * 255) | (1 << 8)).toString(16).slice(1);
182
- hex += alpha;
183
- return `#${hex.toUpperCase()}`;
184
- }
185
- function tuiIsValidRgba(rgba) {
186
- const range = String.raw `(\d|[1-9]\d|1\d{2}|2[0-4]\d|2[0-5]{2})`;
187
- const alpha = String.raw `([01]|0?\.\d+)`;
188
- return new RegExp(String.raw `^(?:rgb\(\s*${range}\s*,\s*${range}\s*,\s*${range}\s*\)|rgba\(\s*${range}\s*,\s*${range}\s*,\s*${range}\s*,\s*${alpha}\s*\))$`).test(rgba);
189
- }
190
-
191
- /**
192
- * Generated bundle index. Do not edit.
193
- */
194
-
195
- export { tuiGetGradientData, tuiHexToRGBA, tuiHexToRgb, tuiHsvToRgb, tuiIsValidHex, tuiIsValidRgba, tuiParseColor, tuiParseGradient, tuiParseHex, tuiRgbToHex, tuiRgbToHsv, tuiRgbaToHex, tuiToGradient };
196
- //# sourceMappingURL=taiga-ui-cdk-utils-color.mjs.map