@taiga-ui/cdk 3.23.1-dev.main-14214d9 → 3.23.1-dev.main-3d032b2

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 (192) hide show
  1. package/abstract/control.d.ts +2 -2
  2. package/abstract/dialog.directive.d.ts +1 -1
  3. package/abstract/portal-host.d.ts +4 -4
  4. package/abstract/theme-switcher.d.ts +2 -2
  5. package/bundles/taiga-ui-cdk-abstract.umd.js +20 -20
  6. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-classes.umd.js +6 -1
  8. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
  10. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-constants.umd.js +8 -0
  12. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-date-time.umd.js +20 -16
  14. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-decorators.umd.js +12 -10
  16. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
  18. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +20 -21
  20. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-directives-checked.umd.js +3 -3
  22. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +3 -3
  24. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-directives-drag.umd.js +3 -3
  26. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +8 -8
  28. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +20 -7
  30. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +4 -4
  32. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-directives-media.umd.js +9 -9
  34. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-directives-pressed.umd.js +3 -3
  36. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
  38. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-observables.umd.js +2 -2
  40. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-services.umd.js +19 -19
  42. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-tokens.umd.js +12 -13
  44. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-utils-browser.umd.js +7 -8
  46. package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
  47. package/bundles/taiga-ui-cdk-utils-dom.umd.js +8 -8
  48. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-utils-focus.umd.js +6 -6
  50. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-utils-format.umd.js +1 -1
  52. package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
  53. package/bundles/taiga-ui-cdk-utils-math.umd.js +17 -16
  54. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +2 -1
  56. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  57. package/classes/assert.d.ts +5 -0
  58. package/constants/parent-animation.d.ts +7 -0
  59. package/directives/active-zone/active-zone.directive.d.ts +2 -2
  60. package/directives/auto-focus/autofocus.options.d.ts +1 -1
  61. package/directives/auto-focus/handlers/abstract.handler.d.ts +3 -3
  62. package/directives/auto-focus/handlers/default.handler.d.ts +1 -1
  63. package/directives/auto-focus/handlers/ios.handler.d.ts +2 -2
  64. package/directives/auto-focus/handlers/sync.handler.d.ts +1 -1
  65. package/directives/checked/checked.directive.d.ts +2 -2
  66. package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
  67. package/directives/drag/drag.directive.d.ts +2 -2
  68. package/directives/focus-trap/focus-trap.directive.d.ts +3 -3
  69. package/directives/for-async/for-async.directive.d.ts +2 -0
  70. package/directives/hovered/hovered.service.d.ts +2 -2
  71. package/directives/media/media.directive.d.ts +2 -2
  72. package/directives/pressed/pressed.directive.d.ts +2 -2
  73. package/directives/prevent-default/prevent-default.directive.d.ts +2 -2
  74. package/esm2015/abstract/control.js +6 -6
  75. package/esm2015/abstract/dialog.directive.js +3 -3
  76. package/esm2015/abstract/portal-host.js +8 -8
  77. package/esm2015/abstract/theme-switcher.js +7 -7
  78. package/esm2015/classes/assert.js +7 -2
  79. package/esm2015/components/alert-host/alert-host.component.js +2 -2
  80. package/esm2015/constants/parent-animation.js +8 -1
  81. package/esm2015/date-time/day-range.js +2 -2
  82. package/esm2015/date-time/day.js +7 -5
  83. package/esm2015/date-time/month-range.js +2 -2
  84. package/esm2015/date-time/month.js +3 -3
  85. package/esm2015/date-time/time.js +6 -4
  86. package/esm2015/date-time/year.js +6 -6
  87. package/esm2015/decorators/default-prop.js +10 -9
  88. package/esm2015/decorators/required-setter.js +4 -3
  89. package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
  90. package/esm2015/directives/auto-focus/autofocus.options.js +4 -4
  91. package/esm2015/directives/auto-focus/handlers/abstract.handler.js +5 -6
  92. package/esm2015/directives/auto-focus/handlers/default.handler.js +3 -3
  93. package/esm2015/directives/auto-focus/handlers/ios.handler.js +10 -10
  94. package/esm2015/directives/auto-focus/handlers/sync.handler.js +3 -3
  95. package/esm2015/directives/checked/checked.directive.js +4 -4
  96. package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
  97. package/esm2015/directives/drag/drag.directive.js +4 -4
  98. package/esm2015/directives/focus-trap/focus-trap.directive.js +9 -9
  99. package/esm2015/directives/for-async/for-async.directive.js +14 -5
  100. package/esm2015/directives/hovered/hovered.service.js +5 -5
  101. package/esm2015/directives/media/media.directive.js +10 -10
  102. package/esm2015/directives/pressed/pressed.directive.js +4 -4
  103. package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
  104. package/esm2015/interfaces/focusable-element-accessor.js +1 -1
  105. package/esm2015/observables/watch.js +3 -3
  106. package/esm2015/services/focus-visible.service.js +3 -3
  107. package/esm2015/services/obscured.service.js +3 -3
  108. package/esm2015/services/pan.service.js +5 -5
  109. package/esm2015/services/parents-scroll.service.js +4 -4
  110. package/esm2015/services/resize.service.js +4 -4
  111. package/esm2015/services/scroll.service.js +4 -4
  112. package/esm2015/services/swipe.service.js +3 -3
  113. package/esm2015/tokens/active-element.js +11 -12
  114. package/esm2015/tokens/window-height.js +3 -3
  115. package/esm2015/utils/browser/is-safari.js +8 -9
  116. package/esm2015/utils/dom/get-element-obscurers.js +6 -6
  117. package/esm2015/utils/dom/get-element-offset.js +2 -2
  118. package/esm2015/utils/dom/is-inside-iframe.js +3 -3
  119. package/esm2015/utils/focus/blur-native-focused.js +3 -3
  120. package/esm2015/utils/focus/get-native-focused.js +5 -5
  121. package/esm2015/utils/format/px.js +2 -2
  122. package/esm2015/utils/math/clamp.js +5 -5
  123. package/esm2015/utils/math/in-range.js +5 -5
  124. package/esm2015/utils/math/normalize-to-int-number.js +4 -4
  125. package/esm2015/utils/math/quantize.js +4 -4
  126. package/esm2015/utils/math/round.js +4 -3
  127. package/esm2015/utils/miscellaneous/ease-in-out-quad.js +3 -2
  128. package/fesm2015/taiga-ui-cdk-abstract.js +20 -20
  129. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  130. package/fesm2015/taiga-ui-cdk-classes.js +6 -1
  131. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  132. package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
  133. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  134. package/fesm2015/taiga-ui-cdk-constants.js +8 -1
  135. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  136. package/fesm2015/taiga-ui-cdk-date-time.js +20 -16
  137. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  138. package/fesm2015/taiga-ui-cdk-decorators.js +12 -10
  139. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  140. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
  141. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  142. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +20 -21
  143. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  144. package/fesm2015/taiga-ui-cdk-directives-checked.js +3 -3
  145. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  146. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
  147. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  148. package/fesm2015/taiga-ui-cdk-directives-drag.js +3 -3
  149. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  150. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +8 -8
  151. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  152. package/fesm2015/taiga-ui-cdk-directives-for-async.js +13 -4
  153. package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
  154. package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -4
  155. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  156. package/fesm2015/taiga-ui-cdk-directives-media.js +9 -9
  157. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  158. package/fesm2015/taiga-ui-cdk-directives-pressed.js +3 -3
  159. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  160. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
  161. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  162. package/fesm2015/taiga-ui-cdk-observables.js +2 -2
  163. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  164. package/fesm2015/taiga-ui-cdk-services.js +19 -19
  165. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  166. package/fesm2015/taiga-ui-cdk-tokens.js +12 -13
  167. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  168. package/fesm2015/taiga-ui-cdk-utils-browser.js +7 -8
  169. package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
  170. package/fesm2015/taiga-ui-cdk-utils-dom.js +8 -8
  171. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  172. package/fesm2015/taiga-ui-cdk-utils-focus.js +6 -6
  173. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  174. package/fesm2015/taiga-ui-cdk-utils-format.js +1 -1
  175. package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
  176. package/fesm2015/taiga-ui-cdk-utils-math.js +17 -16
  177. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  178. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +2 -1
  179. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  180. package/interfaces/focusable-element-accessor.d.ts +1 -0
  181. package/observables/watch.d.ts +1 -1
  182. package/package.json +1 -1
  183. package/services/focus-visible.service.d.ts +1 -1
  184. package/services/obscured.service.d.ts +1 -1
  185. package/services/pan.service.d.ts +1 -1
  186. package/services/parents-scroll.service.d.ts +1 -1
  187. package/services/resize.service.d.ts +1 -1
  188. package/services/swipe.service.d.ts +1 -1
  189. package/utils/browser/is-safari.d.ts +1 -1
  190. package/utils/dom/is-inside-iframe.d.ts +1 -1
  191. package/utils/focus/blur-native-focused.d.ts +1 -1
  192. package/utils/focus/get-native-focused.d.ts +1 -1
@@ -81,12 +81,19 @@
81
81
  return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;
82
82
  }
83
83
 
84
+ /**
85
+ * Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)
86
+ */
84
87
  var TUI_PARENT_ANIMATION = animations.trigger("tuiParentAnimation", [
85
88
  animations.transition("* => void", [
86
89
  animations.style({ overflow: "hidden" }),
87
90
  animations.query(":scope > *", [animations.animateChild()], { optional: true }),
88
91
  ]),
89
92
  ]);
93
+ /**
94
+ * Add on parent to stop initial :enter animation for children
95
+ */
96
+ var TUI_PARENT_STOP = animations.trigger("tuiParentStop", [animations.transition(":enter", [])]);
90
97
 
91
98
  var POLLING_TIME = 1000 / 15;
92
99
 
@@ -190,6 +197,7 @@
190
197
  exports.TUI_DEFAULT_MATCHER = TUI_DEFAULT_MATCHER;
191
198
  exports.TUI_DEFAULT_STRINGIFY = TUI_DEFAULT_STRINGIFY;
192
199
  exports.TUI_PARENT_ANIMATION = TUI_PARENT_ANIMATION;
200
+ exports.TUI_PARENT_STOP = TUI_PARENT_STOP;
193
201
  exports.TUI_STRICT_MATCHER = TUI_STRICT_MATCHER;
194
202
  exports.TUI_VERSION = TUI_VERSION;
195
203
  exports.svgNodeFilter = svgNodeFilter;
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-constants.umd.js","sources":["../../../projects/cdk/constants/always-false-handler.ts","../../../projects/cdk/constants/always-true-handler.ts","../../../projects/cdk/constants/browser.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/stringify.ts","../../../projects/cdk/constants/matcher.ts","../../../projects/cdk/constants/parent-animation.ts","../../../projects/cdk/constants/polling-time.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","/**\n * @deprecated\n * TODO: drop support of legacy Edge (EdgeHTML) in v4.x\n */\nexport const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON() {\n return rect;\n },\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`* => void`, [\n style({overflow: `hidden`}),\n query(`:scope > *`, [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = `\\u00AB`;\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = `\\u00BB`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","export const TUI_VERSION = `3.23.1`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["QueryList","trigger","transition","style","query","animateChild"],"mappings":";;;;;;IAAA;;IAEG;IACH;QACa,oBAAoB,GAAG,cAAa,OAAA,KAAK,CAAL;;ICJjD;;IAEG;IACH;QACa,mBAAmB,GAAG,cAAY,OAAA,IAAI,CAAJ;;ICJ/C;;;IAGG;AACI,QAAM,2BAA2B,GAAG;;ICF3C;;;;IAIG;AACU,QAAA,WAA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AACI,QAAM,aAAa,GAAG,SAAS;IAEtC;;IAEG;AACI,QAAM,kBAAkB,GAAG,SAAS;IAE3C;;IAEG;AACI,QAAM,qBAAqB,GAAG;;ACzE9B,QAAM,WAAW,GAAG;;ICA3B;;IAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-constants.umd.js","sources":["../../../projects/cdk/constants/always-false-handler.ts","../../../projects/cdk/constants/always-true-handler.ts","../../../projects/cdk/constants/browser.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/stringify.ts","../../../projects/cdk/constants/matcher.ts","../../../projects/cdk/constants/parent-animation.ts","../../../projects/cdk/constants/polling-time.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","/**\n * @deprecated\n * TODO: drop support of legacy Edge (EdgeHTML) in v4.x\n */\nexport const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON() {\n return rect;\n },\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\n/**\n * Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)\n */\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`* => void`, [\n style({overflow: `hidden`}),\n query(`:scope > *`, [animateChild()], {optional: true}),\n ]),\n]);\n\n/**\n * Add on parent to stop initial :enter animation for children\n */\nexport const TUI_PARENT_STOP = trigger(`tuiParentStop`, [transition(`:enter`, [])]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = `\\u00AB`;\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = `\\u00BB`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","export const TUI_VERSION = `3.23.1`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["QueryList","trigger","transition","style","query","animateChild"],"mappings":";;;;;;IAAA;;IAEG;IACH;QACa,oBAAoB,GAAG,cAAa,OAAA,KAAK,CAAL;;ICJjD;;IAEG;IACH;QACa,mBAAmB,GAAG,cAAY,OAAA,IAAI,CAAJ;;ICJ/C;;;IAGG;AACI,QAAM,2BAA2B,GAAG;;ICF3C;;;;IAIG;AACU,QAAA,WAAW,GAAG,IAAIA,cAAS,GAAQ;AACzC,QAAM,WAAW,GAAO,GAAG;AACrB,QAAA,cAAc,GAA6B,YAAA,IAAS;IAEjE,IAAM,IAAI,GAAG;IACT,IAAA,MAAM,EAAE,CAAC;IACT,IAAA,MAAM,EAAE,CAAC;IACT,IAAA,IAAI,EAAE,CAAC;IACP,IAAA,KAAK,EAAE,CAAC;IACR,IAAA,GAAG,EAAE,CAAC;IACN,IAAA,KAAK,EAAE,CAAC;IACR,IAAA,CAAC,EAAE,CAAC;IACJ,IAAA,CAAC,EAAE,CAAC;KACE,CAAC;AAEE,QAAA,iBAAiB,GACvB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,IAAI,KACP,MAAM,EAAA,YAAA;IACF,QAAA,OAAO,IAAI,CAAC;SACf;;ICxBL;;IAEG;AACI,QAAM,qBAAqB,GAA8B,UAAA,IAAI,EAAA,EAAI,OAAA,MAAM,CAAC,IAAI,CAAC,CAAA;;ICDpF;;;;;IAKG;QACU,mBAAmB,GAAG,UAC/B,IAAO,EACP,MAAc,EACd,SAAwD,EAAA;IAAxD,IAAA,IAAA,SAAA,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,EAAE,EAAE,CAAC,CAAC;;ACfrE,QAAA,YAAY,GAAG,IAAI,GAAG;;ICAnC;IACA;AACa,QAAA,aAAa,IAAgB,UAAC,IAAU,EACjD,EAAA,OAAA,iBAAiB,IAAI,IAAI;UACnB,UAAU,CAAC,aAAa;IAC1B,MAAE,UAAU,CAAC,aAAa,CAF9B,EAE8B;;ICLlC;;IAEG;AACI,QAAM,mBAAmB,GAAG,SAAS;IAE5C;;;;;;IAMG;AACI,QAAM,YAAY,GAAG,SAAS;IAErC;;;;;;IAMG;AACI,QAAM,YAAY,GAAG,SAAS;IAErC;;IAEG;AACI,QAAM,UAAU,GAAG,SAAS;IAEnC;;IAEG;AACI,QAAM,UAAU,GAAG,SAAS;IAEnC;;;;;;IAMG;AACI,QAAM,WAAW,GAAG,IAAS;IAEpC;;;;;IAKG;AACI,QAAM,UAAU,GAAG,SAAS;IAEnC;;IAEG;AACI,QAAM,SAAS,GAAG,IAAS;IAElC;;IAEG;AACI,QAAM,WAAW,GAAG,SAAS;IAEpC;;IAEG;AACI,QAAM,aAAa,GAAG,SAAS;IAEtC;;IAEG;AACI,QAAM,kBAAkB,GAAG,SAAS;IAE3C;;IAEG;AACI,QAAM,qBAAqB,GAAG;;ACzE9B,QAAM,WAAW,GAAG;;ICA3B;;IAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -376,7 +376,7 @@
376
376
  var TuiYear = /** @class */ (function () {
377
377
  function TuiYear(year) {
378
378
  this.year = year;
379
- classes.tuiAssert.assert(TuiYear.isValidYear(year));
379
+ ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
380
380
  }
381
381
  /**
382
382
  * Checks year for validity
@@ -388,14 +388,14 @@
388
388
  * Check if passed year is a leap year
389
389
  */
390
390
  TuiYear.isLeapYear = function (year) {
391
- classes.tuiAssert.assert(TuiYear.isValidYear(year));
391
+ ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
392
392
  return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
393
393
  };
394
394
  /**
395
395
  * Returns amount of leap years from year 0 to the passed one
396
396
  */
397
397
  TuiYear.getAbsoluteLeapYears = function (year) {
398
- classes.tuiAssert.assert(TuiYear.isValidYear(year));
398
+ ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
399
399
  return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
400
400
  };
401
401
  TuiYear.lengthBetween = function (from, to) {
@@ -471,9 +471,9 @@
471
471
  */
472
472
  TuiYear.prototype.append = function (_a) {
473
473
  var _b = _a.year, year = _b === void 0 ? 0 : _b;
474
- classes.tuiAssert.assert(Number.isInteger(year));
474
+ ngDevMode && classes.tuiAssert.assert(Number.isInteger(year));
475
475
  var resultYear = this.year + year;
476
- classes.tuiAssert.assert(TuiYear.isValidYear(resultYear));
476
+ ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(resultYear));
477
477
  return new TuiYear(resultYear);
478
478
  };
479
479
  TuiYear.prototype.toString = function () {
@@ -508,7 +508,7 @@
508
508
  function TuiMonth(year, month) {
509
509
  var _this = _super.call(this, year) || this;
510
510
  _this.month = month;
511
- classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
511
+ ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
512
512
  return _this;
513
513
  }
514
514
  /**
@@ -521,7 +521,7 @@
521
521
  * Returns number of days in a month
522
522
  */
523
523
  TuiMonth.getMonthDaysCount = function (month, isLeapYear) {
524
- classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
524
+ ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
525
525
  switch (month) {
526
526
  case 1 /* February */:
527
527
  return isLeapYear ? 29 : 28;
@@ -661,7 +661,7 @@
661
661
  function TuiDay(year, month, day) {
662
662
  var _this = _super.call(this, year, month) || this;
663
663
  _this.day = day;
664
- classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
664
+ ngDevMode && classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
665
665
  return _this;
666
666
  }
667
667
  /**
@@ -729,7 +729,8 @@
729
729
  };
730
730
  TuiDay.parseRawDateString = function (date, dateMode) {
731
731
  if (dateMode === void 0) { dateMode = "DMY"; }
732
- classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, "[parseRawDateString]: wrong date string length");
732
+ ngDevMode &&
733
+ classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, "[parseRawDateString]: wrong date string length");
733
734
  switch (dateMode) {
734
735
  case "YMD":
735
736
  return {
@@ -786,7 +787,7 @@
786
787
  return new TuiDay(year, month, day);
787
788
  };
788
789
  TuiDay.normalizeDayPart = function (day, month, year) {
789
- classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
790
+ ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
790
791
  var monthDaysCount = TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year));
791
792
  return math.tuiNormalizeToIntNumber(day, 1, monthDaysCount);
792
793
  };
@@ -910,7 +911,8 @@
910
911
  * Returns formatted whole date
911
912
  */
912
913
  TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
913
- classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
914
+ ngDevMode &&
915
+ classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
914
916
  var dd = this.formattedDayPart;
915
917
  var mm = this.formattedMonthPart;
916
918
  var yyyy = this.formattedYear;
@@ -954,7 +956,7 @@
954
956
  function TuiMonthRange(from, to) {
955
957
  this.from = from;
956
958
  this.to = to;
957
- classes.tuiAssert.assert(from.monthSameOrBefore(to));
959
+ ngDevMode && classes.tuiAssert.assert(from.monthSameOrBefore(to));
958
960
  }
959
961
  TuiMonthRange.sort = function (month1, month2) {
960
962
  return month1.monthSameOrBefore(month2)
@@ -986,7 +988,7 @@
986
988
  var _this = _super.call(this, from, to) || this;
987
989
  _this.from = from;
988
990
  _this.to = to;
989
- classes.tuiAssert.assert(from.daySameOrBefore(to));
991
+ ngDevMode && classes.tuiAssert.assert(from.daySameOrBefore(to));
990
992
  return _this;
991
993
  }
992
994
  /**
@@ -1074,7 +1076,8 @@
1074
1076
  this.minutes = minutes;
1075
1077
  this.seconds = seconds;
1076
1078
  this.ms = ms;
1077
- classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
1079
+ ngDevMode &&
1080
+ classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
1078
1081
  }
1079
1082
  /**
1080
1083
  * Checks if time is valid
@@ -1109,8 +1112,9 @@
1109
1112
  * Calculates TuiTime from milliseconds
1110
1113
  */
1111
1114
  TuiTime.fromAbsoluteMilliseconds = function (milliseconds) {
1112
- classes.tuiAssert.assert(Number.isInteger(milliseconds));
1113
- classes.tuiAssert.assert(math.tuiInRange(milliseconds, 0, MILLISECONDS_IN_DAY), "Milliseconds must be below " + MILLISECONDS_IN_DAY + " (milliseconds in a day).");
1115
+ ngDevMode && classes.tuiAssert.assert(Number.isInteger(milliseconds));
1116
+ ngDevMode &&
1117
+ classes.tuiAssert.assert(math.tuiInRange(milliseconds, 0, MILLISECONDS_IN_DAY), "Milliseconds must be below " + MILLISECONDS_IN_DAY + " (milliseconds in a day).");
1114
1118
  var hours = Math.floor(milliseconds / MILLISECONDS_IN_HOUR);
1115
1119
  var minutes = Math.floor((milliseconds % MILLISECONDS_IN_HOUR) / MILLISECONDS_IN_MINUTE);
1116
1120
  var seconds = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) / 1000) || 0;