@taiga-ui/cdk 3.41.1-canary.15b6dea → 3.41.1-canary.1db8e7a

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 (163) hide show
  1. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
  2. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +6 -8
  4. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-date-time.umd.js +17 -10
  6. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
  8. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +6 -6
  10. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-directives-focused.umd.js +2 -2
  12. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +3 -3
  14. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +3 -3
  16. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-directives-platform.umd.js +89 -0
  18. package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -0
  19. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
  20. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-directives.umd.js +10 -4
  22. package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-observables.umd.js +8 -8
  24. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-services.umd.js +6 -5
  26. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-tokens.umd.js +37 -12
  28. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-utils-color.umd.js +380 -0
  30. package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +16 -10
  32. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-utils.umd.js +4 -10
  34. package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
  35. package/components/dialog-host/dialog-host.component.d.ts +2 -2
  36. package/{utils/calendar → date-time}/date-clamp.d.ts +1 -1
  37. package/date-time/date-format.d.ts +1 -2
  38. package/date-time/date-separator.d.ts +1 -2
  39. package/date-time/index.d.ts +1 -0
  40. package/directives/active-zone/active-zone.directive.d.ts +2 -2
  41. package/directives/auto-focus/autofocus.options.d.ts +1 -1
  42. package/directives/auto-focus/handlers/ios.handler.d.ts +2 -2
  43. package/directives/focused/focused.directive.d.ts +1 -1
  44. package/directives/hovered/hovered.service.d.ts +2 -2
  45. package/directives/index.d.ts +1 -0
  46. package/directives/overscroll/overscroll.directive.d.ts +1 -1
  47. package/directives/platform/index.d.ts +2 -0
  48. package/directives/platform/package.json +10 -0
  49. package/directives/platform/platform.directive.d.ts +7 -0
  50. package/directives/platform/platform.module.d.ts +7 -0
  51. package/{utils/calendar/taiga-ui-cdk-utils-calendar.d.ts → directives/platform/taiga-ui-cdk-directives-platform.d.ts} +1 -1
  52. package/directives/prevent-default/prevent-default.directive.d.ts +2 -2
  53. package/esm2015/components/alert-host/alert-host.component.js +2 -2
  54. package/esm2015/components/dialog-host/dialog-host.component.js +5 -6
  55. package/esm2015/date-time/date-clamp.js +10 -0
  56. package/esm2015/date-time/date-format.js +3 -5
  57. package/esm2015/date-time/date-separator.js +3 -5
  58. package/esm2015/date-time/day-range.js +1 -1
  59. package/esm2015/date-time/day.js +1 -1
  60. package/esm2015/date-time/index.js +2 -1
  61. package/esm2015/date-time/month-range.js +1 -1
  62. package/esm2015/date-time/month.js +1 -1
  63. package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
  64. package/esm2015/directives/auto-focus/autofocus.options.js +5 -5
  65. package/esm2015/directives/auto-focus/handlers/ios.handler.js +4 -4
  66. package/esm2015/directives/focused/focused.directive.js +3 -3
  67. package/esm2015/directives/hovered/hovered.service.js +4 -4
  68. package/esm2015/directives/index.js +2 -1
  69. package/esm2015/directives/overscroll/overscroll.directive.js +4 -4
  70. package/esm2015/directives/platform/index.js +3 -0
  71. package/esm2015/directives/platform/platform.directive.js +32 -0
  72. package/esm2015/directives/platform/platform.module.js +16 -0
  73. package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +5 -0
  74. package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
  75. package/esm2015/observables/drag-and-drop-from.js +1 -1
  76. package/esm2015/observables/zone-free.js +9 -9
  77. package/esm2015/services/obscured.service.js +3 -3
  78. package/esm2015/services/resize.service.js +5 -4
  79. package/esm2015/tokens/alerts.js +3 -5
  80. package/esm2015/tokens/dialogs.js +3 -5
  81. package/esm2015/tokens/index.js +4 -1
  82. package/esm2015/tokens/is-e2e.js +10 -0
  83. package/esm2015/tokens/is-playwright.js +9 -0
  84. package/esm2015/tokens/platform.js +16 -0
  85. package/esm2015/tokens/swipe-options.js +5 -4
  86. package/esm2015/tokens/zoom-options.js +4 -6
  87. package/esm2015/types/index.js +2 -1
  88. package/esm2015/types/platform.js +2 -0
  89. package/esm2015/utils/color/hex-to-rgba.js +31 -0
  90. package/esm2015/utils/color/index.js +3 -1
  91. package/esm2015/utils/color/rgba-to-hex.js +26 -0
  92. package/esm2015/utils/index.js +1 -2
  93. package/esm2015/utils/miscellaneous/create-options.js +2 -1
  94. package/esm2015/utils/miscellaneous/create-token.js +7 -0
  95. package/esm2015/utils/miscellaneous/default-sort.js +5 -8
  96. package/esm2015/utils/miscellaneous/index.js +2 -1
  97. package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
  98. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  99. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -5
  100. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  101. package/fesm2015/taiga-ui-cdk-date-time.js +14 -8
  102. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  103. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
  104. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  105. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +7 -7
  106. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  107. package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
  108. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  109. package/fesm2015/taiga-ui-cdk-directives-hovered.js +3 -3
  110. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  111. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +3 -3
  112. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  113. package/fesm2015/taiga-ui-cdk-directives-platform.js +52 -0
  114. package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -0
  115. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
  116. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  117. package/fesm2015/taiga-ui-cdk-directives.js +1 -0
  118. package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
  119. package/fesm2015/taiga-ui-cdk-observables.js +8 -8
  120. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  121. package/fesm2015/taiga-ui-cdk-services.js +6 -5
  122. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  123. package/fesm2015/taiga-ui-cdk-tokens.js +36 -15
  124. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  125. package/fesm2015/taiga-ui-cdk-utils-color.js +58 -1
  126. package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
  127. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +12 -8
  128. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  129. package/fesm2015/taiga-ui-cdk-utils.js +0 -1
  130. package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
  131. package/observables/zone-free.d.ts +3 -3
  132. package/package.json +2 -2
  133. package/schematics/ng-update/v3/index.js +3 -1
  134. package/schematics/ng-update/v3/steps/migrate-templates.js +2 -1
  135. package/schematics/ng-update/v3/steps/replace-styles.js +1 -1
  136. package/services/obscured.service.d.ts +1 -1
  137. package/services/resize.service.d.ts +1 -1
  138. package/tokens/alerts.d.ts +2 -2
  139. package/tokens/dialogs.d.ts +2 -2
  140. package/tokens/index.d.ts +3 -0
  141. package/tokens/is-e2e.d.ts +5 -0
  142. package/tokens/is-playwright.d.ts +5 -0
  143. package/tokens/platform.d.ts +3 -0
  144. package/tokens/swipe-options.d.ts +1 -2
  145. package/tokens/zoom-options.d.ts +1 -2
  146. package/types/index.d.ts +1 -0
  147. package/types/platform.d.ts +1 -0
  148. package/utils/color/hex-to-rgba.d.ts +3 -0
  149. package/utils/color/index.d.ts +2 -0
  150. package/utils/color/rgba-to-hex.d.ts +2 -0
  151. package/utils/index.d.ts +0 -1
  152. package/utils/miscellaneous/create-options.d.ts +1 -0
  153. package/utils/miscellaneous/create-token.d.ts +2 -0
  154. package/utils/miscellaneous/index.d.ts +1 -0
  155. package/bundles/taiga-ui-cdk-utils-calendar.umd.js +0 -26
  156. package/bundles/taiga-ui-cdk-utils-calendar.umd.js.map +0 -1
  157. package/esm2015/utils/calendar/date-clamp.js +0 -10
  158. package/esm2015/utils/calendar/index.js +0 -2
  159. package/esm2015/utils/calendar/taiga-ui-cdk-utils-calendar.js +0 -5
  160. package/fesm2015/taiga-ui-cdk-utils-calendar.js +0 -16
  161. package/fesm2015/taiga-ui-cdk-utils-calendar.js.map +0 -1
  162. package/utils/calendar/index.d.ts +0 -1
  163. package/utils/calendar/package.json +0 -10
package/tokens/index.d.ts CHANGED
@@ -8,11 +8,14 @@ export * from './is-android';
8
8
  export * from './is-apple';
9
9
  export * from './is-chromium';
10
10
  export * from './is-cypress';
11
+ export * from './is-e2e';
11
12
  export * from './is-firefox';
12
13
  export * from './is-ios';
13
14
  export * from './is-mobile';
15
+ export * from './is-playwright';
14
16
  export * from './is-stackblitz';
15
17
  export * from './is-webkit';
18
+ export * from './platform';
16
19
  export * from './range';
17
20
  export * from './removed-element';
18
21
  export * from './swipe-options';
@@ -0,0 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Detect if app is running under any of test frameworks
4
+ */
5
+ export declare const TUI_IS_E2E: InjectionToken<boolean>;
@@ -0,0 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Detect if app is running under Playwright
4
+ */
5
+ export declare const TUI_IS_PLAYWRIGHT: InjectionToken<boolean>;
@@ -0,0 +1,3 @@
1
+ import { TuiPlatform } from '@taiga-ui/cdk/types';
2
+ export declare const TUI_PLATFORM: import("@angular/core").InjectionToken<TuiPlatform>;
3
+ export declare function tuiPlatformFactory(): TuiPlatform;
@@ -1,6 +1,5 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { TuiSwipeOptions } from '@taiga-ui/cdk/interfaces';
3
2
  /**
4
3
  * Swipe options
5
4
  */
6
- export declare const TUI_SWIPE_OPTIONS: InjectionToken<TuiSwipeOptions>;
5
+ export declare const TUI_SWIPE_OPTIONS: import("@angular/core").InjectionToken<TuiSwipeOptions>;
@@ -1,6 +1,5 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { TuiZoomOptions } from '@taiga-ui/cdk/interfaces';
3
2
  /**
4
3
  * Zoom options
5
4
  */
6
- export declare const TUI_ZOOM_OPTIONS: InjectionToken<TuiZoomOptions>;
5
+ export declare const TUI_ZOOM_OPTIONS: import("@angular/core").InjectionToken<TuiZoomOptions>;
package/types/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './input-type';
10
10
  export * from './mapper';
11
11
  export * from './matcher';
12
12
  export * from './overscroll-mode';
13
+ export * from './platform';
13
14
  export * from './rounding';
14
15
  export * from './time-mode';
15
16
  export * from './values-of';
@@ -0,0 +1 @@
1
+ export declare type TuiPlatform = 'android' | 'ios' | 'web';
@@ -0,0 +1,3 @@
1
+ export declare function tuiHexToRGBA(hex: string, alpha?: number): string;
2
+ export declare function tuiIsValidHex(hex: string): boolean;
3
+ export declare function tuiParseHex(hex: string, alpha?: number): [number, number, number, number];
@@ -1,5 +1,7 @@
1
1
  export * from './hex-to-rgb';
2
+ export * from './hex-to-rgba';
2
3
  export * from './hsv-to-rgb';
3
4
  export * from './parse-color';
4
5
  export * from './rgb-to-hex';
5
6
  export * from './rgb-to-hsv';
7
+ export * from './rgba-to-hex';
@@ -0,0 +1,2 @@
1
+ export declare function tuiRgbaToHex(color: string): string;
2
+ export declare function tuiIsValidRgba(rgba: string): 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/calendar';
3
2
  export * from '@taiga-ui/cdk/utils/color';
4
3
  export * from '@taiga-ui/cdk/utils/dom';
5
4
  export * from '@taiga-ui/cdk/utils/focus';
@@ -1,2 +1,3 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /** @deprecated use {@link tuiCreateToken} instead */
2
3
  export declare function tuiCreateOptions<T>(defaults: T): InjectionToken<T>;
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare function tuiCreateToken<T>(defaults: T): InjectionToken<T>;
@@ -3,6 +3,7 @@ export * from './array-shallow-equals';
3
3
  export * from './array-toggle';
4
4
  export * from './clean-object';
5
5
  export * from './create-options';
6
+ export * from './create-token';
6
7
  export * from './default-sort';
7
8
  export * from './distance-between-touches';
8
9
  export * from './ease-in-out-quad';
@@ -1,26 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/utils/calendar', ['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.utils = global["taiga-ui"].cdk.utils || {}, global["taiga-ui"].cdk.utils.calendar = {})));
5
- })(this, (function (exports) { 'use strict';
6
-
7
- function tuiDateClamp(date, min, max) {
8
- if (max && max < date) {
9
- return max;
10
- }
11
- if (min && min > date) {
12
- return min;
13
- }
14
- return date;
15
- }
16
-
17
- /**
18
- * Generated bundle index. Do not edit.
19
- */
20
-
21
- exports.tuiDateClamp = tuiDateClamp;
22
-
23
- Object.defineProperty(exports, '__esModule', { value: true });
24
-
25
- }));
26
- //# sourceMappingURL=taiga-ui-cdk-utils-calendar.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-calendar.umd.js","sources":["../../../projects/cdk/utils/calendar/date-clamp.ts","../../../projects/cdk/utils/calendar/taiga-ui-cdk-utils-calendar.ts"],"sourcesContent":["import {TuiYear} from '@taiga-ui/cdk/date-time';\n\nexport function tuiDateClamp<T extends TuiYear>(date: T, min?: T, max?: T): T {\n if (max && max < date) {\n return max;\n }\n\n if (min && min > date) {\n return min;\n }\n\n return date;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;aAEgB,YAAY,CAAoB,IAAO,EAAE,GAAO,EAAE,GAAO,EAAA;IACrE,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;IACnB,QAAA,OAAO,GAAG,CAAC;IACd,KAAA;IAED,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;IACnB,QAAA,OAAO,GAAG,CAAC;IACd,KAAA;IAED,IAAA,OAAO,IAAI,CAAC;IAChB;;ICZA;;IAEG;;;;;;;;;;"}
@@ -1,10 +0,0 @@
1
- export function tuiDateClamp(date, min, max) {
2
- if (max && max < date) {
3
- return max;
4
- }
5
- if (min && min > date) {
6
- return min;
7
- }
8
- return date;
9
- }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1jbGFtcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay91dGlscy9jYWxlbmRhci9kYXRlLWNsYW1wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sVUFBVSxZQUFZLENBQW9CLElBQU8sRUFBRSxHQUFPLEVBQUUsR0FBTztJQUNyRSxJQUFJLEdBQUcsSUFBSSxHQUFHLEdBQUcsSUFBSSxFQUFFO1FBQ25CLE9BQU8sR0FBRyxDQUFDO0tBQ2Q7SUFFRCxJQUFJLEdBQUcsSUFBSSxHQUFHLEdBQUcsSUFBSSxFQUFFO1FBQ25CLE9BQU8sR0FBRyxDQUFDO0tBQ2Q7SUFFRCxPQUFPLElBQUksQ0FBQztBQUNoQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtUdWlZZWFyfSBmcm9tICdAdGFpZ2EtdWkvY2RrL2RhdGUtdGltZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiB0dWlEYXRlQ2xhbXA8VCBleHRlbmRzIFR1aVllYXI+KGRhdGU6IFQsIG1pbj86IFQsIG1heD86IFQpOiBUIHtcbiAgICBpZiAobWF4ICYmIG1heCA8IGRhdGUpIHtcbiAgICAgICAgcmV0dXJuIG1heDtcbiAgICB9XG5cbiAgICBpZiAobWluICYmIG1pbiA+IGRhdGUpIHtcbiAgICAgICAgcmV0dXJuIG1pbjtcbiAgICB9XG5cbiAgICByZXR1cm4gZGF0ZTtcbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './date-clamp';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvdXRpbHMvY2FsZW5kYXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2RhdGUtY2xhbXAnO1xuIl19
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY2RrLXV0aWxzLWNhbGVuZGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL3V0aWxzL2NhbGVuZGFyL3RhaWdhLXVpLWNkay11dGlscy1jYWxlbmRhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -1,16 +0,0 @@
1
- function tuiDateClamp(date, min, max) {
2
- if (max && max < date) {
3
- return max;
4
- }
5
- if (min && min > date) {
6
- return min;
7
- }
8
- return date;
9
- }
10
-
11
- /**
12
- * Generated bundle index. Do not edit.
13
- */
14
-
15
- export { tuiDateClamp };
16
- //# sourceMappingURL=taiga-ui-cdk-utils-calendar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-calendar.js","sources":["../../../projects/cdk/utils/calendar/date-clamp.ts","../../../projects/cdk/utils/calendar/taiga-ui-cdk-utils-calendar.ts"],"sourcesContent":["import {TuiYear} from '@taiga-ui/cdk/date-time';\n\nexport function tuiDateClamp<T extends TuiYear>(date: T, min?: T, max?: T): T {\n if (max && max < date) {\n return max;\n }\n\n if (min && min > date) {\n return min;\n }\n\n return date;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"SAEgB,YAAY,CAAoB,IAAO,EAAE,GAAO,EAAE,GAAO,EAAA;AACrE,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;AACnB,QAAA,OAAO,GAAG,CAAC;AACd,KAAA;AAED,IAAA,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;AACnB,QAAA,OAAO,GAAG,CAAC;AACd,KAAA;AAED,IAAA,OAAO,IAAI,CAAC;AAChB;;ACZA;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- export * from './date-clamp';
@@ -1,10 +0,0 @@
1
- {
2
- "main": "../../bundles/taiga-ui-cdk-utils-calendar.umd.js",
3
- "module": "../../fesm2015/taiga-ui-cdk-utils-calendar.js",
4
- "es2015": "../../fesm2015/taiga-ui-cdk-utils-calendar.js",
5
- "esm2015": "../../esm2015/utils/calendar/taiga-ui-cdk-utils-calendar.js",
6
- "fesm2015": "../../fesm2015/taiga-ui-cdk-utils-calendar.js",
7
- "typings": "taiga-ui-cdk-utils-calendar.d.ts",
8
- "sideEffects": false,
9
- "name": "@taiga-ui/cdk/utils/calendar"
10
- }