@taiga-ui/experimental 3.55.0 → 3.56.0-canary.ac3cedc

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 (171) hide show
  1. package/bundles/taiga-ui-experimental-components-badge-notification.umd.js +7 -12
  2. package/bundles/taiga-ui-experimental-components-badge-notification.umd.js.map +1 -1
  3. package/bundles/taiga-ui-experimental-components-badge.umd.js +13 -16
  4. package/bundles/taiga-ui-experimental-components-badge.umd.js.map +1 -1
  5. package/bundles/taiga-ui-experimental-components-button.umd.js +12 -31
  6. package/bundles/taiga-ui-experimental-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-experimental-components-checkbox.umd.js +10 -21
  8. package/bundles/taiga-ui-experimental-components-checkbox.umd.js.map +1 -1
  9. package/bundles/taiga-ui-experimental-components-chip.umd.js +140 -0
  10. package/bundles/taiga-ui-experimental-components-chip.umd.js.map +1 -0
  11. package/bundles/taiga-ui-experimental-components-icon.umd.js +2 -1
  12. package/bundles/taiga-ui-experimental-components-icon.umd.js.map +1 -1
  13. package/bundles/taiga-ui-experimental-components-pin.umd.js +76 -0
  14. package/bundles/taiga-ui-experimental-components-pin.umd.js.map +1 -0
  15. package/bundles/taiga-ui-experimental-components-radio.umd.js +10 -21
  16. package/bundles/taiga-ui-experimental-components-radio.umd.js.map +1 -1
  17. package/bundles/taiga-ui-experimental-components-rating.umd.js +7 -7
  18. package/bundles/taiga-ui-experimental-components-rating.umd.js.map +1 -1
  19. package/bundles/taiga-ui-experimental-components-thumbnail-card.umd.js +29 -10
  20. package/bundles/taiga-ui-experimental-components-thumbnail-card.umd.js.map +1 -1
  21. package/bundles/taiga-ui-experimental-components-tooltip.umd.js +496 -0
  22. package/bundles/taiga-ui-experimental-components-tooltip.umd.js.map +1 -0
  23. package/bundles/taiga-ui-experimental-components.umd.js +22 -4
  24. package/bundles/taiga-ui-experimental-components.umd.js.map +1 -1
  25. package/bundles/taiga-ui-experimental-directives-button-close.umd.js +88 -0
  26. package/bundles/taiga-ui-experimental-directives-button-close.umd.js.map +1 -0
  27. package/bundles/taiga-ui-experimental-directives-button-vertical.umd.js +1 -1
  28. package/bundles/taiga-ui-experimental-directives-button-vertical.umd.js.map +1 -1
  29. package/bundles/taiga-ui-experimental-directives-cell.umd.js +5 -10
  30. package/bundles/taiga-ui-experimental-directives-cell.umd.js.map +1 -1
  31. package/bundles/taiga-ui-experimental-directives-icons.umd.js +113 -0
  32. package/bundles/taiga-ui-experimental-directives-icons.umd.js.map +1 -0
  33. package/bundles/taiga-ui-experimental-directives-sensitive.umd.js +1 -1
  34. package/bundles/taiga-ui-experimental-directives-sensitive.umd.js.map +1 -1
  35. package/bundles/taiga-ui-experimental-directives-surface.umd.js +1 -1
  36. package/bundles/taiga-ui-experimental-directives-surface.umd.js.map +1 -1
  37. package/bundles/taiga-ui-experimental-directives-title.umd.js +5 -10
  38. package/bundles/taiga-ui-experimental-directives-title.umd.js.map +1 -1
  39. package/bundles/taiga-ui-experimental-directives.umd.js +16 -4
  40. package/bundles/taiga-ui-experimental-directives.umd.js.map +1 -1
  41. package/components/badge/badge.directive.d.ts +2 -3
  42. package/components/badge/badge.module.d.ts +2 -1
  43. package/components/badge-notification/badge-notification.component.d.ts +1 -3
  44. package/components/button/button.directive.d.ts +3 -7
  45. package/components/button/button.module.d.ts +2 -1
  46. package/components/checkbox/checkbox.component.d.ts +4 -7
  47. package/components/chip/chip.component.d.ts +5 -0
  48. package/components/chip/chip.directive.d.ts +11 -0
  49. package/components/chip/chip.module.d.ts +9 -0
  50. package/components/chip/chip.options.d.ts +9 -0
  51. package/components/chip/index.d.ts +4 -0
  52. package/components/chip/package.json +10 -0
  53. package/components/chip/taiga-ui-experimental-components-chip.d.ts +5 -0
  54. package/components/index.d.ts +3 -0
  55. package/components/pin/index.d.ts +2 -0
  56. package/components/pin/package.json +10 -0
  57. package/components/pin/pin.component.d.ts +6 -0
  58. package/components/pin/pin.module.d.ts +7 -0
  59. package/components/pin/taiga-ui-experimental-components-pin.d.ts +5 -0
  60. package/components/radio/radio.component.d.ts +3 -7
  61. package/components/rating/rating.module.d.ts +3 -3
  62. package/components/thumbnail-card/thumbnail-card.component.d.ts +4 -1
  63. package/components/thumbnail-card/thumbnail-card.module.d.ts +2 -2
  64. package/components/tooltip/index.d.ts +3 -0
  65. package/components/tooltip/package.json +10 -0
  66. package/components/tooltip/taiga-ui-experimental-components-tooltip.d.ts +5 -0
  67. package/components/tooltip/tooltip.component.d.ts +21 -0
  68. package/components/tooltip/tooltip.module.d.ts +13 -0
  69. package/components/tooltip/tooltip.options.d.ts +8 -0
  70. package/directives/button-close/button-close.directive.d.ts +9 -0
  71. package/directives/button-close/button-close.module.d.ts +7 -0
  72. package/directives/button-close/button-close.options.d.ts +1 -0
  73. package/directives/button-close/index.d.ts +3 -0
  74. package/directives/button-close/package.json +10 -0
  75. package/directives/button-close/taiga-ui-experimental-directives-button-close.d.ts +5 -0
  76. package/directives/cell/cell.directive.d.ts +2 -3
  77. package/directives/icons/icons.component.d.ts +5 -0
  78. package/directives/icons/icons.directive.d.ts +10 -0
  79. package/directives/icons/icons.module.d.ts +8 -0
  80. package/directives/icons/index.d.ts +3 -0
  81. package/directives/icons/package.json +10 -0
  82. package/directives/icons/taiga-ui-experimental-directives-icons.d.ts +5 -0
  83. package/directives/index.d.ts +2 -0
  84. package/directives/title/title.directive.d.ts +2 -3
  85. package/esm2015/components/badge/badge.component.js +1 -1
  86. package/esm2015/components/badge/badge.directive.js +6 -10
  87. package/esm2015/components/badge/badge.module.js +6 -4
  88. package/esm2015/components/badge-notification/badge-notification.component.js +4 -10
  89. package/esm2015/components/button/button.directive.js +6 -26
  90. package/esm2015/components/button/button.module.js +6 -5
  91. package/esm2015/components/checkbox/checkbox.component.js +9 -21
  92. package/esm2015/components/chip/chip.component.js +19 -0
  93. package/esm2015/components/chip/chip.directive.js +59 -0
  94. package/esm2015/components/chip/chip.module.js +19 -0
  95. package/esm2015/components/chip/chip.options.js +10 -0
  96. package/esm2015/components/chip/index.js +5 -0
  97. package/esm2015/components/chip/taiga-ui-experimental-components-chip.js +5 -0
  98. package/esm2015/components/icon/icon.component.js +3 -2
  99. package/esm2015/components/index.js +4 -1
  100. package/esm2015/components/pin/index.js +3 -0
  101. package/esm2015/components/pin/pin.component.js +24 -0
  102. package/esm2015/components/pin/pin.module.js +16 -0
  103. package/esm2015/components/pin/taiga-ui-experimental-components-pin.js +5 -0
  104. package/esm2015/components/radio/radio.component.js +7 -20
  105. package/esm2015/components/rating/rating.component.js +3 -3
  106. package/esm2015/components/rating/rating.module.js +5 -5
  107. package/esm2015/components/thumbnail-card/thumbnail-card.component.js +21 -5
  108. package/esm2015/components/thumbnail-card/thumbnail-card.module.js +5 -5
  109. package/esm2015/components/tooltip/index.js +4 -0
  110. package/esm2015/components/tooltip/taiga-ui-experimental-components-tooltip.js +5 -0
  111. package/esm2015/components/tooltip/tooltip.component.js +88 -0
  112. package/esm2015/components/tooltip/tooltip.module.js +42 -0
  113. package/esm2015/components/tooltip/tooltip.options.js +9 -0
  114. package/esm2015/directives/button-close/button-close.directive.js +34 -0
  115. package/esm2015/directives/button-close/button-close.module.js +16 -0
  116. package/esm2015/directives/button-close/button-close.options.js +3 -0
  117. package/esm2015/directives/button-close/index.js +4 -0
  118. package/esm2015/directives/button-close/taiga-ui-experimental-directives-button-close.js +5 -0
  119. package/esm2015/directives/button-vertical/button-vertical.component.js +1 -1
  120. package/esm2015/directives/cell/cell.directive.js +7 -12
  121. package/esm2015/directives/icons/icons.component.js +19 -0
  122. package/esm2015/directives/icons/icons.directive.js +41 -0
  123. package/esm2015/directives/icons/icons.module.js +17 -0
  124. package/esm2015/directives/icons/index.js +4 -0
  125. package/esm2015/directives/icons/taiga-ui-experimental-directives-icons.js +5 -0
  126. package/esm2015/directives/index.js +3 -1
  127. package/esm2015/directives/sensitive/sensitive.component.js +1 -1
  128. package/esm2015/directives/surface/surface.component.js +1 -1
  129. package/esm2015/directives/title/title.component.js +1 -1
  130. package/esm2015/directives/title/title.directive.js +6 -11
  131. package/fesm2015/taiga-ui-experimental-components-badge-notification.js +3 -9
  132. package/fesm2015/taiga-ui-experimental-components-badge-notification.js.map +1 -1
  133. package/fesm2015/taiga-ui-experimental-components-badge.js +11 -13
  134. package/fesm2015/taiga-ui-experimental-components-badge.js.map +1 -1
  135. package/fesm2015/taiga-ui-experimental-components-button.js +10 -29
  136. package/fesm2015/taiga-ui-experimental-components-button.js.map +1 -1
  137. package/fesm2015/taiga-ui-experimental-components-checkbox.js +8 -20
  138. package/fesm2015/taiga-ui-experimental-components-checkbox.js.map +1 -1
  139. package/fesm2015/taiga-ui-experimental-components-chip.js +105 -0
  140. package/fesm2015/taiga-ui-experimental-components-chip.js.map +1 -0
  141. package/fesm2015/taiga-ui-experimental-components-icon.js +2 -1
  142. package/fesm2015/taiga-ui-experimental-components-icon.js.map +1 -1
  143. package/fesm2015/taiga-ui-experimental-components-pin.js +44 -0
  144. package/fesm2015/taiga-ui-experimental-components-pin.js.map +1 -0
  145. package/fesm2015/taiga-ui-experimental-components-radio.js +7 -20
  146. package/fesm2015/taiga-ui-experimental-components-radio.js.map +1 -1
  147. package/fesm2015/taiga-ui-experimental-components-rating.js +6 -6
  148. package/fesm2015/taiga-ui-experimental-components-rating.js.map +1 -1
  149. package/fesm2015/taiga-ui-experimental-components-thumbnail-card.js +24 -8
  150. package/fesm2015/taiga-ui-experimental-components-thumbnail-card.js.map +1 -1
  151. package/fesm2015/taiga-ui-experimental-components-tooltip.js +139 -0
  152. package/fesm2015/taiga-ui-experimental-components-tooltip.js.map +1 -0
  153. package/fesm2015/taiga-ui-experimental-components.js +3 -0
  154. package/fesm2015/taiga-ui-experimental-components.js.map +1 -1
  155. package/fesm2015/taiga-ui-experimental-directives-button-close.js +56 -0
  156. package/fesm2015/taiga-ui-experimental-directives-button-close.js.map +1 -0
  157. package/fesm2015/taiga-ui-experimental-directives-button-vertical.js +1 -1
  158. package/fesm2015/taiga-ui-experimental-directives-button-vertical.js.map +1 -1
  159. package/fesm2015/taiga-ui-experimental-directives-cell.js +6 -11
  160. package/fesm2015/taiga-ui-experimental-directives-cell.js.map +1 -1
  161. package/fesm2015/taiga-ui-experimental-directives-icons.js +77 -0
  162. package/fesm2015/taiga-ui-experimental-directives-icons.js.map +1 -0
  163. package/fesm2015/taiga-ui-experimental-directives-sensitive.js +1 -1
  164. package/fesm2015/taiga-ui-experimental-directives-sensitive.js.map +1 -1
  165. package/fesm2015/taiga-ui-experimental-directives-surface.js +1 -1
  166. package/fesm2015/taiga-ui-experimental-directives-surface.js.map +1 -1
  167. package/fesm2015/taiga-ui-experimental-directives-title.js +6 -11
  168. package/fesm2015/taiga-ui-experimental-directives-title.js.map +1 -1
  169. package/fesm2015/taiga-ui-experimental-directives.js +2 -0
  170. package/fesm2015/taiga-ui-experimental-directives.js.map +1 -1
  171. package/package.json +31 -31
@@ -0,0 +1,140 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/experimental/components/avatar'), require('@taiga-ui/experimental/components/button'), require('@taiga-ui/experimental/components/checkbox'), require('@taiga-ui/experimental/components/toggle'), require('@taiga-ui/experimental/directives/icons')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/chip', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/experimental/components/avatar', '@taiga-ui/experimental/components/button', '@taiga-ui/experimental/components/checkbox', '@taiga-ui/experimental/components/toggle', '@taiga-ui/experimental/directives/icons'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.components = global["taiga-ui"].experimental.components || {}, global["taiga-ui"].experimental.components.chip = {}), global.ng.core, global.i1, global["taiga-ui"].experimental.components.avatar, global["taiga-ui"].experimental.components.button, global["taiga-ui"].experimental.components.checkbox, global["taiga-ui"].experimental.components.toggle, global["taiga-ui"].experimental.directives.icons));
5
+ })(this, (function (exports, i0, i1, avatar, button, checkbox, toggle, icons) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
+
28
+ var TuiChipComponent = /** @class */ (function () {
29
+ function TuiChipComponent() {
30
+ }
31
+ return TuiChipComponent;
32
+ }());
33
+ TuiChipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
34
+ TuiChipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiChipComponent, selector: "ng-component", host: { classAttribute: "tui-chip" }, ngImport: i0__namespace, template: '', isInline: true, styles: ["tui-chip,[tuiChip]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;grid-gap:calc(var(--t-gap) - 2 * var(--t-margin));gap:calc(var(--t-gap) - 2 * var(--t-margin));font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);padding:var(--t-padding);height:var(--t-size);--t-gap: .125rem;--t-margin: -.125rem;--t-icon-size: 1rem}tui-chip>img,[tuiChip]>img,tui-chip>tui-svg,[tuiChip]>tui-svg,tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip>tui-avatar,[tuiChip]>tui-avatar,tui-chip>tui-badge,[tuiChip]>tui-badge,tui-chip>[tuiBadge],[tuiChip]>[tuiBadge],tui-chip>[tuiRadio],[tuiChip]>[tuiRadio],tui-chip>[tuiToggle],[tuiChip]>[tuiToggle],tui-chip>[tuiCheckbox],[tuiChip]>[tuiCheckbox],tui-chip._icon-left:before,[tuiChip]._icon-left:before,tui-chip._icon-right:after,[tuiChip]._icon-right:after{margin:var(--t-margin)}tui-chip:-webkit-any(a,button,select,textarea,input,label),[tuiChip]:-webkit-any(a,button,select,textarea,input,label){cursor:pointer}tui-chip:-moz-any(a,button,select,textarea,input,label),[tuiChip]:-moz-any(a,button,select,textarea,input,label){cursor:pointer}tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-chip[data-size=xxs],[tuiChip][data-size=xxs]{font:var(--tui-font-text-xs);border-radius:var(--tui-radius-xs);--t-gap: 0rem;--t-padding: 0 .25rem;--t-size: 1rem;--t-icon-size: .75rem}tui-chip[data-size=xxs]>[tuiIconButton],[tuiChip][data-size=xxs]>[tuiIconButton]{margin:-.5rem;transform:scale(.75)}tui-chip[data-size=xs],[tuiChip][data-size=xs]{border-radius:var(--tui-radius-xs);--t-padding: 0 .375rem;--t-size: 1.25rem}tui-chip[data-size=xs]>[tuiIconButton],[tuiChip][data-size=xs]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=s],[tuiChip][data-size=s]{--t-padding: 0 .625rem;--t-size: var(--tui-height-s)}tui-chip[data-size=s]>[tuiIconButton],[tuiChip][data-size=s]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=s]>img,[tuiChip][data-size=s]>img,tui-chip[data-size=s] tui-avatar,[tuiChip][data-size=s] tui-avatar{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}tui-chip[data-size=m],[tuiChip][data-size=m]{font:var(--tui-font-text-m);--t-margin: -.375rem;--t-icon-size: 1.5rem;--t-padding: 0 1rem;--t-size: var(--tui-height-m)}tui-chip[data-size=m]>[tuiIconButton],[tuiChip][data-size=m]>[tuiIconButton]{margin:-.75rem}tui-chip>img,[tuiChip]>img{width:1.5rem}tui-chip>input[tuiChip],[tuiChip]>input[tuiChip]{position:absolute;top:0;left:0;width:100%;height:100%}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
35
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipComponent, decorators: [{
36
+ type: i0.Component,
37
+ args: [{
38
+ template: '',
39
+ styleUrls: ['./chip.style.less'],
40
+ encapsulation: i0.ViewEncapsulation.None,
41
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
42
+ host: {
43
+ class: 'tui-chip',
44
+ },
45
+ }]
46
+ }] });
47
+
48
+ var TUI_CHIP_DEFAULT_OPTIONS = {
49
+ size: "s",
50
+ appearance: "neutral",
51
+ };
52
+ var TUI_CHIP_OPTIONS = i1.tuiCreateToken(TUI_CHIP_DEFAULT_OPTIONS);
53
+ function tuiChipOptionsProvider(options) {
54
+ return i1.tuiProvideOptions(TUI_CHIP_OPTIONS, options, TUI_CHIP_DEFAULT_OPTIONS);
55
+ }
56
+
57
+ var TuiChipDirective = /** @class */ (function () {
58
+ function TuiChipDirective(options, directiveStyles) {
59
+ this.options = options;
60
+ this.size = this.options.size;
61
+ this.appearance = this.options.appearance;
62
+ directiveStyles.addComponent(TuiChipComponent);
63
+ }
64
+ return TuiChipDirective;
65
+ }());
66
+ TuiChipDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipDirective, deps: [{ token: TUI_CHIP_OPTIONS }, { token: i1.TuiDirectiveStylesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
67
+ TuiChipDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiChipDirective, selector: "tui-chip,[tuiChip]", inputs: { size: "size", appearance: "appearance" }, host: { attributes: { "tuiAppearance": "" }, properties: { "attr.data-appearance": "appearance", "attr.data-size": "size" } }, providers: [
68
+ toggle.tuiToggleOptionsProvider({ size: 's' }),
69
+ checkbox.tuiCheckboxOptionsProvider({ size: 's' }),
70
+ avatar.tuiAvatarOptionsProvider({ size: 'xxs' }),
71
+ button.tuiButtonOptionsProvider({
72
+ size: 'xs',
73
+ appearance: 'icon',
74
+ }),
75
+ ], ngImport: i0__namespace });
76
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipDirective, decorators: [{
77
+ type: i0.Directive,
78
+ args: [{
79
+ selector: 'tui-chip,[tuiChip]',
80
+ providers: [
81
+ toggle.tuiToggleOptionsProvider({ size: 's' }),
82
+ checkbox.tuiCheckboxOptionsProvider({ size: 's' }),
83
+ avatar.tuiAvatarOptionsProvider({ size: 'xxs' }),
84
+ button.tuiButtonOptionsProvider({
85
+ size: 'xs',
86
+ appearance: 'icon',
87
+ }),
88
+ ],
89
+ host: {
90
+ tuiAppearance: '',
91
+ '[attr.data-appearance]': 'appearance',
92
+ '[attr.data-size]': 'size',
93
+ },
94
+ }]
95
+ }], ctorParameters: function () {
96
+ return [{ type: undefined, decorators: [{
97
+ type: i0.Inject,
98
+ args: [TUI_CHIP_OPTIONS]
99
+ }] }, { type: i1__namespace.TuiDirectiveStylesService, decorators: [{
100
+ type: i0.Inject,
101
+ args: [i1.TuiDirectiveStylesService]
102
+ }] }];
103
+ }, propDecorators: { size: [{
104
+ type: i0.Input
105
+ }], appearance: [{
106
+ type: i0.Input
107
+ }] } });
108
+
109
+ var TuiChipModule = /** @class */ (function () {
110
+ function TuiChipModule() {
111
+ }
112
+ return TuiChipModule;
113
+ }());
114
+ TuiChipModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
115
+ TuiChipModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipModule, declarations: [TuiChipComponent, TuiChipDirective], imports: [icons.TuiIconsModule], exports: [TuiChipDirective, icons.TuiIconsDirective] });
116
+ TuiChipModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipModule, imports: [[icons.TuiIconsModule]] });
117
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiChipModule, decorators: [{
118
+ type: i0.NgModule,
119
+ args: [{
120
+ imports: [icons.TuiIconsModule],
121
+ declarations: [TuiChipComponent, TuiChipDirective],
122
+ exports: [TuiChipDirective, icons.TuiIconsDirective],
123
+ }]
124
+ }] });
125
+
126
+ /**
127
+ * Generated bundle index. Do not edit.
128
+ */
129
+
130
+ exports.TUI_CHIP_DEFAULT_OPTIONS = TUI_CHIP_DEFAULT_OPTIONS;
131
+ exports.TUI_CHIP_OPTIONS = TUI_CHIP_OPTIONS;
132
+ exports.TuiChipComponent = TuiChipComponent;
133
+ exports.TuiChipDirective = TuiChipDirective;
134
+ exports.TuiChipModule = TuiChipModule;
135
+ exports.tuiChipOptionsProvider = tuiChipOptionsProvider;
136
+
137
+ Object.defineProperty(exports, '__esModule', { value: true });
138
+
139
+ }));
140
+ //# sourceMappingURL=taiga-ui-experimental-components-chip.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-experimental-components-chip.umd.js","sources":["../../../projects/experimental/components/chip/chip.component.ts","../../../projects/experimental/components/chip/chip.options.ts","../../../projects/experimental/components/chip/chip.directive.ts","../../../projects/experimental/components/chip/chip.module.ts","../../../projects/experimental/components/chip/taiga-ui-experimental-components-chip.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./chip.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-chip',\n },\n})\nexport class TuiChipComponent {}\n","import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiSizeXXS} from '@taiga-ui/core';\n\nexport interface TuiChipOptions {\n readonly appearance: string;\n readonly size: TuiSizeXXS;\n}\n\nexport const TUI_CHIP_DEFAULT_OPTIONS: TuiChipOptions = {\n size: `s`,\n appearance: `neutral`,\n};\n\nexport const TUI_CHIP_OPTIONS = tuiCreateToken(TUI_CHIP_DEFAULT_OPTIONS);\n\nexport function tuiChipOptionsProvider(options: Partial<TuiChipOptions>): Provider {\n return tuiProvideOptions(TUI_CHIP_OPTIONS, options, TUI_CHIP_DEFAULT_OPTIONS);\n}\n","import {Directive, Inject, Input} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/experimental/components/avatar';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components/button';\nimport {tuiCheckboxOptionsProvider} from '@taiga-ui/experimental/components/checkbox';\nimport {tuiToggleOptionsProvider} from '@taiga-ui/experimental/components/toggle';\n\nimport {TuiChipComponent} from './chip.component';\nimport {TUI_CHIP_OPTIONS, TuiChipOptions} from './chip.options';\n\n@Directive({\n selector: 'tui-chip,[tuiChip]',\n providers: [\n tuiToggleOptionsProvider({size: 's'}),\n tuiCheckboxOptionsProvider({size: 's'}),\n tuiAvatarOptionsProvider({size: 'xxs'}),\n tuiButtonOptionsProvider({\n size: 'xs',\n appearance: 'icon',\n }),\n ],\n host: {\n tuiAppearance: '',\n '[attr.data-appearance]': 'appearance',\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiChipDirective {\n @Input()\n size = this.options.size;\n\n @Input()\n appearance = this.options.appearance;\n\n constructor(\n @Inject(TUI_CHIP_OPTIONS) private readonly options: TuiChipOptions,\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiChipComponent);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiIconsDirective, TuiIconsModule} from '@taiga-ui/experimental/directives/icons';\n\nimport {TuiChipComponent} from './chip.component';\nimport {TuiChipDirective} from './chip.directive';\n\n@NgModule({\n imports: [TuiIconsModule],\n declarations: [TuiChipComponent, TuiChipDirective],\n exports: [TuiChipDirective, TuiIconsDirective],\n})\nexport class TuiChipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Component","ViewEncapsulation","ChangeDetectionStrategy","tuiCreateToken","tuiProvideOptions","TuiDirectiveStylesService","tuiToggleOptionsProvider","tuiCheckboxOptionsProvider","tuiAvatarOptionsProvider","tuiButtonOptionsProvider","Directive","Inject","Input","TuiIconsModule","TuiIconsDirective","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,YAAA,gBAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,gBAAA,GAAA;;;;4IAAa,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;QAAhB,gBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,qGARf,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qwFAAA,CAAA,EAAA,eAAA,EAAAA,aAAA,CAAA,u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,wBAAwB,EAAE,YAAY;QACtC,wBAAA,kBAAkB,EAAE,MAAM;QAC7B,qBAAA;yBACJ,CAAA;;;sCASQE,SAAM;uCAAC,gBAAgB,CAAA;;sCACvBA,SAAM;uCAACN,4BAAyB,CAAA;;iCAPrC,IAAI,EAAA,CAAA;8BADHO,QAAK;wBAIN,UAAU,EAAA,CAAA;8BADTA,QAAK;;;ACpBV,YAAA,aAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,aAAA,GAAA;;;;yIAAa,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAb,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;0IAAb,aAAa,EAAA,YAAA,EAAA,CAHP,gBAAgB,EAAE,gBAAgB,aADvCc,oBAAc,CAAA,EAAA,OAAA,EAAA,CAEd,gBAAgB,EAAEC,uBAAiB,CAAA,EAAA,CAAA,CAAA;0IAEpC,aAAa,EAAA,OAAA,EAAA,CAJb,CAACD,oBAAc,CAAC,CAAA,EAAA,CAAA,CAAA;0HAIhB,aAAa,EAAA,UAAA,EAAA,CAAA;0BALzBE,WAAQ;QAAC,YAAA,IAAA,EAAA,CAAA;4BACN,OAAO,EAAE,CAACF,oBAAc,CAAC;QACzB,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;QAClD,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAEC,uBAAiB,CAAC;yBACjD,CAAA;;;QCVD;;QAEG;;;;;;;;;;;;;;;"}
@@ -33,13 +33,14 @@
33
33
  return TuiIconComponent;
34
34
  }());
35
35
  TuiIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconComponent, deps: [{ token: tokens.TUI_ICON_RESOLVER }], target: i0__namespace.ɵɵFactoryTarget.Component });
36
- TuiIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiIconComponent, selector: "tui-icon", inputs: { icon: "icon", background: "background" }, host: { properties: { "style.--t-mask": "\"url(\" + resolver(icon) + \")\"", "style.--t-mask-bg": "background ? \"url(\" + resolver(background).replace(\"Outline\", \"\") + \")\" : null" } }, ngImport: i0__namespace, template: '', isInline: true, styles: [":host{position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;-webkit-mask:var(--t-mask-bg, var(--t-mask)) no-repeat center / contain;mask:var(--t-mask-bg, var(--t-mask)) no-repeat center / contain}:host:after{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";-webkit-mask:var(--t-mask) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain;background:currentColor}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
36
+ TuiIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiIconComponent, selector: "tui-icon", inputs: { icon: "icon", background: "background" }, host: { properties: { "class._duo": "background", "style.--t-mask": "\"url(\" + resolver(icon) + \")\"", "style.--t-mask-bg": "background ? \"url(\" + resolver(background).replace(\"Outline\", \"\") + \")\" : null" } }, ngImport: i0__namespace, template: '', isInline: true, styles: [":host{position:relative;display:inline-block;width:1em;height:1em;font-size:1.5rem;flex-shrink:0;vertical-align:middle}:host._duo{-webkit-mask:var(--t-mask-bg) no-repeat center / contain;mask:var(--t-mask-bg) no-repeat center / contain}:host:after{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";-webkit-mask:var(--t-mask) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain;background:currentColor}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
37
37
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconComponent, decorators: [{
38
38
  type: i0.Component,
39
39
  args: [{
40
40
  selector: 'tui-icon',
41
41
  template: '',
42
42
  host: {
43
+ '[class._duo]': 'background',
43
44
  '[style.--t-mask]': '"url(" + resolver(icon) + ")"',
44
45
  // TODO: remove Outline hack in 4.0
45
46
  '[style.--t-mask-bg]': 'background ? "url(" + resolver(background).replace("Outline", "") + ")" : null',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-experimental-components-icon.umd.js","sources":["../../../projects/experimental/components/icon/icon.component.ts","../../../projects/experimental/components/icon/icon.module.ts","../../../projects/experimental/components/icon/taiga-ui-experimental-components-icon.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, Input} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {TUI_ICON_RESOLVER} from '@taiga-ui/experimental/tokens';\n\n@Component({\n selector: 'tui-icon',\n template: '',\n host: {\n '[style.--t-mask]': '\"url(\" + resolver(icon) + \")\"',\n // TODO: remove Outline hack in 4.0\n '[style.--t-mask-bg]':\n 'background ? \"url(\" + resolver(background).replace(\"Outline\", \"\") + \")\" : null',\n },\n styleUrls: ['./icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiIconComponent {\n @Input()\n icon = '';\n\n @Input()\n background = '';\n\n constructor(@Inject(TUI_ICON_RESOLVER) readonly resolver: TuiStringHandler<string>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiIconComponent} from './icon.component';\n\n@NgModule({\n declarations: [TuiIconComponent],\n exports: [TuiIconComponent],\n})\nexport class TuiIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","TUI_ICON_RESOLVER","Component","ChangeDetectionStrategy","Inject","Input","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,QAAA,gBAAA,kBAAA,YAAA;IAOI,IAAA,SAAA,gBAAA,CAAgD,QAAkC,EAAA;IAAlC,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;IALlF,QAAA,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;IAGV,QAAA,IAAU,CAAA,UAAA,GA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,CAHP,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;sIAEjB,aAAa,EAAA,CAAA,CAAA;sHAAb,aAAa,EAAA,UAAA,EAAA,CAAA;sBAJzBM,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;wBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;qBAC9B,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-experimental-components-icon.umd.js","sources":["../../../projects/experimental/components/icon/icon.component.ts","../../../projects/experimental/components/icon/icon.module.ts","../../../projects/experimental/components/icon/taiga-ui-experimental-components-icon.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, Input} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {TUI_ICON_RESOLVER} from '@taiga-ui/experimental/tokens';\n\n@Component({\n selector: 'tui-icon',\n template: '',\n host: {\n '[class._duo]': 'background',\n '[style.--t-mask]': '\"url(\" + resolver(icon) + \")\"',\n // TODO: remove Outline hack in 4.0\n '[style.--t-mask-bg]':\n 'background ? \"url(\" + resolver(background).replace(\"Outline\", \"\") + \")\" : null',\n },\n styleUrls: ['./icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiIconComponent {\n @Input()\n icon = '';\n\n @Input()\n background = '';\n\n constructor(@Inject(TUI_ICON_RESOLVER) readonly resolver: TuiStringHandler<string>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiIconComponent} from './icon.component';\n\n@NgModule({\n declarations: [TuiIconComponent],\n exports: [TuiIconComponent],\n})\nexport class TuiIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","TUI_ICON_RESOLVER","Component","ChangeDetectionStrategy","Inject","Input","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,QAA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UAAU,EAAA,CAAA;0BADTA,QAAK;;;ACbV,QAAA,aAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,aAAA,GAAA;;;;qIAAa,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAL,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;sIAAb,aAAa,EAAA,YAAA,EAAA,CAHP,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;sIAEjB,aAAa,EAAA,CAAA,CAAA;sHAAb,aAAa,EAAA,UAAA,EAAA,CAAA;sBAJzBM,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;wBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;qBAC9B,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
@@ -0,0 +1,76 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/pin', ['exports', '@angular/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.components = global["taiga-ui"].experimental.components || {}, global["taiga-ui"].experimental.components.pin = {}), global.ng.core));
5
+ })(this, (function (exports, i0) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+
27
+ var TuiPinComponent = /** @class */ (function () {
28
+ function TuiPinComponent() {
29
+ this.open = false;
30
+ }
31
+ return TuiPinComponent;
32
+ }());
33
+ TuiPinComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPinComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
34
+ TuiPinComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiPinComponent, selector: "tui-pin,[tuiPin]", inputs: { open: "open" }, host: { properties: { "class._open": "this.open" } }, ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, styles: [":host{transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;width:var(--t-size);height:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:bold;box-sizing:border-box;color:var(--tui-accent-text);background:var(--tui-accent);box-shadow:0 0 0 .125rem var(--tui-elevation-01);border:0 solid var(--tui-accent);transform:translate(-50%,-50%);--t-size: 2rem}:host:-webkit-any(a,button,select,textarea,input,label){cursor:pointer}:host:-moz-any(a,button,select,textarea,input,label){cursor:pointer}:host:empty{--t-size: .75rem}:host:empty:before{display:none}:host ::ng-deep>img{max-height:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-base-01)}:host ::ng-deep>tui-icon,:host ::ng-deep>tui-svg{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1.25rem;height:1.25rem;align-self:center}:host._open{font:var(--tui-font-text-m);font-weight:bold;border-width:0;margin-top:-2.75rem;--t-size: 3.5rem}:host._open ::ng-deep>img{padding:.125rem}:host._open ::ng-deep>tui-icon,:host._open ::ng-deep>tui-svg{width:2.125rem;height:2.125rem}:host._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}:host._open:after{top:4.5rem;opacity:1}:host:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;-webkit-mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}:host:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
35
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPinComponent, decorators: [{
36
+ type: i0.Component,
37
+ args: [{
38
+ selector: 'tui-pin,[tuiPin]',
39
+ template: '<ng-content></ng-content>',
40
+ styleUrls: ['./pin.styles.less'],
41
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
42
+ }]
43
+ }], propDecorators: { open: [{
44
+ type: i0.Input
45
+ }, {
46
+ type: i0.HostBinding,
47
+ args: ['class._open']
48
+ }] } });
49
+
50
+ var TuiPinModule = /** @class */ (function () {
51
+ function TuiPinModule() {
52
+ }
53
+ return TuiPinModule;
54
+ }());
55
+ TuiPinModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPinModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
56
+ TuiPinModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPinModule, declarations: [TuiPinComponent], exports: [TuiPinComponent] });
57
+ TuiPinModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPinModule });
58
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPinModule, decorators: [{
59
+ type: i0.NgModule,
60
+ args: [{
61
+ declarations: [TuiPinComponent],
62
+ exports: [TuiPinComponent],
63
+ }]
64
+ }] });
65
+
66
+ /**
67
+ * Generated bundle index. Do not edit.
68
+ */
69
+
70
+ exports.TuiPinComponent = TuiPinComponent;
71
+ exports.TuiPinModule = TuiPinModule;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ }));
76
+ //# sourceMappingURL=taiga-ui-experimental-components-pin.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-experimental-components-pin.umd.js","sources":["../../../projects/experimental/components/pin/pin.component.ts","../../../projects/experimental/components/pin/pin.module.ts","../../../projects/experimental/components/pin/taiga-ui-experimental-components-pin.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\n\n@Component({\n selector: 'tui-pin,[tuiPin]',\n template: '<ng-content></ng-content>',\n styleUrls: ['./pin.styles.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPinComponent {\n @Input()\n @HostBinding('class._open')\n open = false;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPinComponent} from './pin.component';\n\n@NgModule({\n declarations: [TuiPinComponent],\n exports: [TuiPinComponent],\n})\nexport class TuiPinModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Component","ChangeDetectionStrategy","Input","HostBinding","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,QAAA,eAAA,kBAAA,YAAA;IANA,IAAA,SAAA,eAAA,GAAA;IASI,QAAA,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;SAChB;;;uIAJY,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAAf,eAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,mJAJd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,yhHAAA,CAAA,EAAA,eAAA,EAAAA,aAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;sHAI5B,eAAe,EAAA,UAAA,EAAA,CAAA;sBAN3BC,YAAS;IAAC,YAAA,IAAA,EAAA,CAAA;IACP,oBAAA,QAAQ,EAAE,kBAAkB;IAC5B,oBAAA,QAAQ,EAAE,2BAA2B;wBACrC,SAAS,EAAE,CAAC,mBAAmB,CAAC;wBAChC,eAAe,EAAEC,0BAAuB,CAAC,MAAM;qBAClD,CAAA;kCAIG,IAAI,EAAA,CAAA;0BAFHC,QAAK;;0BACLC,cAAW;2BAAC,aAAa,CAAA;;;ACF9B,QAAA,YAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,YAAA,GAAA;;;;oIAAa,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAJ,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qIAAZ,YAAY,EAAA,YAAA,EAAA,CAHN,eAAe,CAAA,EAAA,OAAA,EAAA,CACpB,eAAe,CAAA,EAAA,CAAA,CAAA;qIAEhB,YAAY,EAAA,CAAA,CAAA;sHAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;sBAJxBK,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,eAAe,CAAC;wBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;qBAC7B,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/radio', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', 'rxjs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.components = global["taiga-ui"].experimental.components || {}, global["taiga-ui"].experimental.components.radio = {}), global.ng.core, global.ng.forms, global.cdk, global.core, global.rxjs));
5
- })(this, (function (exports, i0, i2, cdk, core, i1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/radio', ['exports', '@angular/core', '@angular/forms'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.components = global["taiga-ui"].experimental.components || {}, global["taiga-ui"].experimental.components.radio = {}), global.ng.core, global.ng.forms));
5
+ })(this, (function (exports, i0, i1) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -23,20 +23,17 @@
23
23
  }
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
27
26
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
27
 
29
28
  var TuiRadioComponent = /** @class */ (function () {
30
- function TuiRadioComponent(mode$, platform, control) {
31
- this.mode$ = mode$;
32
- this.platform = platform;
29
+ function TuiRadioComponent(control) {
33
30
  this.control = control;
34
31
  this.size = 'm';
35
32
  }
36
33
  return TuiRadioComponent;
37
34
  }());
38
- TuiRadioComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRadioComponent, deps: [{ token: core.TUI_MODE }, { token: cdk.TUI_PLATFORM }, { token: i2.NgControl, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
39
- TuiRadioComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRadioComponent, selector: "input[type=\"radio\"][tuiRadio]", inputs: { size: "size" }, host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "disabled": "!control || control.disabled", "attr.data-size": "size", "attr.data-platform": "platform", "class._invalid": "control?.invalid && control?.touched", "class._readonly": "!control" } }, providers: [core.MODE_PROVIDER], ngImport: i0__namespace, template: '', isInline: true, styles: [":host{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--t-size: 1.5rem;position:relative;width:var(--t-size);height:var(--t-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;margin:0;border-radius:100%;outline:none;box-shadow:inset 0 0 0 .0625rem var(--tui-clear-active)}:host:disabled{pointer-events:none}:host:disabled:not(._readonly){opacity:var(--tui-disabled-opacity)}:host:focus-visible{box-shadow:inset 0 0 0 .125rem var(--tui-focus)!important}:host:after{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";border-radius:100%;background:currentColor;transform:scale(0)}:host:checked:after{transform:scale(.5)}:host._invalid{box-shadow:inset 0 0 0 .0625rem var(--tui-error-bg-hover)}:host[data-platform=ios]{width:1.375rem;height:1.375rem;border-radius:100%;box-shadow:inset 0 0 0 .0625rem var(--tui-base-04);color:var(--tui-base-01);transition:none}:host[data-platform=ios]:checked{background:var(--tui-accent);box-shadow:none}:host[data-platform=ios]:checked:disabled:not(._readonly){background:var(--tui-base-04)}:host[data-platform=ios]:checked:before{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";background:var(--tui-base-01);-webkit-mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6.75 11.25L9.8 15.2L15.2 7\" fill=\"none\" stroke=\"black\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>');mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6.75 11.25L9.8 15.2L15.2 7\" fill=\"none\" stroke=\"black\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>');-webkit-mask-size:100%;mask-size:100%}:host[data-platform=ios]:checked._invalid{background:var(--tui-error-fill)}:host[data-platform=ios]:after{display:none}:host[data-platform=android]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--t-size: 1.125rem;box-shadow:inset 0 0 0 .125rem;color:var(--tui-base-04)}:host[data-platform=android]:disabled:not(._readonly){color:var(--tui-base-04)}:host[data-platform=android]:checked{color:var(--tui-accent)}:host[data-platform=android]:checked:after{transform:scale(.555)}:host[data-platform=android]._invalid{color:var(--tui-error-bg-hover)}:host[data-platform=android]._invalid:checked{color:var(--tui-error-fill)}:host[data-platform=web]{color:var(--tui-primary-text)}:host[data-platform=web][data-size=s]{--t-size: 1rem}:host[data-platform=web]:checked{box-shadow:none;background:var(--tui-primary)}:host[data-platform=web]:checked:hover{background:var(--tui-primary-hover)}:host[data-platform=web]:checked:active{background:var(--tui-primary-active)}:host[data-platform=web]._invalid:checked{background:var(--tui-error-fill)}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
35
+ TuiRadioComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRadioComponent, deps: [{ token: i1.NgControl, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
36
+ TuiRadioComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRadioComponent, selector: "input[type=\"radio\"][tuiRadio]", inputs: { size: "size" }, host: { attributes: { "tuiAppearance": "" }, properties: { "disabled": "!control || control.disabled", "attr.data-size": "size", "class._invalid": "control?.invalid && control?.touched", "class._readonly": "!control" } }, ngImport: i0__namespace, template: '', isInline: true, styles: [":host{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:var(--t-size);height:var(--t-size);cursor:pointer;margin:0;border-radius:100%;box-shadow:inset 0 0 0 .0625rem var(--tui-clear-active);color:var(--tui-primary-text);--t-size: 1.5rem}:host:disabled._readonly{opacity:1}:host:before{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";border-radius:100%;background:currentColor;transform:scale(0)}:host:checked{box-shadow:none;background:var(--tui-primary)}:host:checked:hover{background:var(--tui-primary-hover)}:host:checked:active{background:var(--tui-primary-active)}:host:checked:before{transform:scale(.5)}:host[data-size=s]{--t-size: 1rem}:host._invalid{box-shadow:inset 0 0 0 .0625rem var(--tui-error-bg-hover)}:host._invalid:checked{background:var(--tui-error-fill)}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
40
37
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRadioComponent, decorators: [{
41
38
  type: i0.Component,
42
39
  args: [{
@@ -44,28 +41,20 @@
44
41
  template: '',
45
42
  styleUrls: ['./radio.style.less'],
46
43
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
47
- providers: [core.MODE_PROVIDER],
48
44
  host: {
49
- '($.data-mode.attr)': 'mode$',
45
+ tuiAppearance: '',
50
46
  '[disabled]': '!control || control.disabled',
51
47
  '[attr.data-size]': 'size',
52
- '[attr.data-platform]': 'platform',
53
48
  '[class._invalid]': 'control?.invalid && control?.touched',
54
49
  '[class._readonly]': '!control',
55
50
  },
56
51
  }]
57
52
  }], ctorParameters: function () {
58
- return [{ type: i1__namespace.Observable, decorators: [{
59
- type: i0.Inject,
60
- args: [core.TUI_MODE]
61
- }] }, { type: undefined, decorators: [{
62
- type: i0.Inject,
63
- args: [cdk.TUI_PLATFORM]
64
- }] }, { type: i2__namespace.NgControl, decorators: [{
53
+ return [{ type: i1__namespace.NgControl, decorators: [{
65
54
  type: i0.Optional
66
55
  }, {
67
56
  type: i0.Inject,
68
- args: [i2.NgControl]
57
+ args: [i1.NgControl]
69
58
  }] }];
70
59
  }, propDecorators: { size: [{
71
60
  type: i0.Input
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-experimental-components-radio.umd.js","sources":["../../../projects/experimental/components/radio/radio.component.ts","../../../projects/experimental/components/radio/radio.module.ts","../../../projects/experimental/components/radio/taiga-ui-experimental-components-radio.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, Input, Optional} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TUI_PLATFORM, TuiPlatform} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TUI_MODE, TuiBrightness, TuiSizeS} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'input[type=\"radio\"][tuiRadio]',\n template: '',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size',\n '[attr.data-platform]': 'platform',\n '[class._invalid]': 'control?.invalid && control?.touched',\n '[class._readonly]': '!control',\n },\n})\nexport class TuiRadioComponent {\n @Input()\n size: TuiSizeS = 'm';\n\n constructor(\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_PLATFORM) readonly platform: TuiPlatform,\n @Optional() @Inject(NgControl) readonly control: NgControl | null,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n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A;sBAJ1BU,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;wBACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;qBAC/B,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-experimental-components-radio.umd.js","sources":["../../../projects/experimental/components/radio/radio.component.ts","../../../projects/experimental/components/radio/radio.module.ts","../../../projects/experimental/components/radio/taiga-ui-experimental-components-radio.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, Input, Optional} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'input[type=\"radio\"][tuiRadio]',\n template: '',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n tuiAppearance: '', // Apply base appearance\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size',\n '[class._invalid]': 'control?.invalid && control?.touched',\n '[class._readonly]': '!control',\n },\n})\nexport class TuiRadioComponent {\n @Input()\n size: TuiSizeS = 'm';\n\n constructor(@Optional() @Inject(NgControl) readonly control: NgControl | null) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","NgControl","Component","ChangeDetectionStrategy","Optional","Inject","Input","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,QAAA,iBAAA,kBAAA,YAAA;IAII,IAAA,SAAA,iBAAA,CAAoD,OAAyB,EAAA;IAAzB,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;IAF7E,QAAA,IAAI,CAAA,IAAA,GAAa,GAAG,CAAC;SAE4D;;;IAJxE,iBAAA,CAAA,IAAA,GA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,EAAA,CAAA,CAAA;uIAAd,cAAc,EAAA,YAAA,EAAA,CAHR,iBAAiB,CAAA,EAAA,OAAA,EAAA,CACtB,iBAAiB,CAAA,EAAA,CAAA,CAAA;uIAElB,cAAc,EAAA,CAAA,CAAA;sHAAd,cAAc,EAAA,UAAA,EAAA,CAAA;sBAJ1BO,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;wBACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;qBAC/B,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@tinkoff/ng-polymorpheus'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/rating', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@tinkoff/ng-polymorpheus', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.components = global["taiga-ui"].experimental.components || {}, global["taiga-ui"].experimental.components.rating = {}), global.ng.core, global.ng.forms, global.i2, global.i1, global.i3, global.ng.common));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/experimental/components/icon'), require('@tinkoff/ng-polymorpheus'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/rating', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/experimental/components/icon', '@tinkoff/ng-polymorpheus', '@angular/common'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].experimental = global["taiga-ui"].experimental || {}, global["taiga-ui"].experimental.components = global["taiga-ui"].experimental.components || {}, global["taiga-ui"].experimental.components.rating = {}), global.ng.core, global.ng.forms, global.i2, global["taiga-ui"].experimental.components.icon, global.i3, global.ng.common));
5
5
  })(this, (function (exports, i0, i4, i2, i1, i3, common) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
@@ -410,7 +410,7 @@
410
410
  return TuiRatingComponent;
411
411
  }(i2.AbstractTuiControl));
412
412
  TuiRatingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingComponent, deps: [{ token: i4.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: TUI_RATING_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
413
- TuiRatingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRatingComponent, selector: "tui-rating", inputs: { icon: "icon", max: "max" }, host: { listeners: { "keydown.capture": "onKeyDown($event)", "pointerdown": "onPointer(1)", "pointercancel": "onPointer(-1)", "document:pointerup": "onPointer(-1)" }, properties: { "class._active": "this.active" } }, viewQueries: [{ propertyName: "input", first: true, predicate: i4.NgControl, descendants: true, read: i0.ElementRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"t-items\">\n <div\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-item\"\n [class.t-item_active]=\"isActive(index)\"\n (pointerup)=\"onClick(max - index)\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon t-icon_blank\"\n [class.t-icon_fraction]=\"isFraction(index)\"\n [src]=\"src\"\n [style.--t-cut.%]=\"100 - getCut(index)\"\n ></tui-svg>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon\"\n [src]=\"src\"\n [style.--t-cut.%]=\"getCut(index)\"\n ></tui-svg>\n </div>\n</div>\n<input\n min=\"1\"\n type=\"range\"\n class=\"t-range\"\n [attr.aria-disabled]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n [max]=\"max\"\n [(ngModel)]=\"value\"\n/>\n", styles: [":host{position:relative;display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;font-size:1rem;color:var(--tui-support-12);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;fill:transparent}:host._readonly{pointer-events:none}:host._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-range{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;box-sizing:border-box;padding:0 .75em;pointer-events:none}.t-range:focus-visible+.t-items{box-shadow:inset 0 0 0 .125rem var(--tui-focus)}.t-items{position:relative;display:flex;flex-direction:row-reverse;border-radius:var(--tui-radius-s);fill:inherit}.t-items:hover .t-icon{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}.t-items:hover .t-icon_blank{-webkit-clip-path:inset(0 0 0 100%);clip-path:inset(0 0 0 100%)}.t-item{position:relative;flex:1 0 0;color:var(--tui-base-06);fill:inherit;transition-property:color,transform;transition-duration:var(--tui-duration);transition-timing-function:ease-in-out,cubic-bezier(.35,1.5,.4,2.5)}.t-item:first-child{max-width:2.5em}.t-item:hover,.t-item:hover~.t-item,.t-items:not(:hover) .t-item_active{color:currentColor}.t-items:active .t-item:hover,.t-items:active .t-item:hover~.t-item{transform:scale(.85);transition-duration:var(--tui-duration),calc(var(--tui-duration) / 3);transition-timing-function:ease-in-out}.t-icon{transition-property:-webkit-clip-path;transition-property:clip-path;transition-property:clip-path,-webkit-clip-path;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:2.5em;height:2.5em;font-size:inherit;fill:inherit;-webkit-clip-path:inset(0 var(--t-cut) 0 0);clip-path:inset(0 var(--t-cut) 0 0)}.t-icon ::ng-deep>*{font-size:1rem}.t-icon_blank{position:absolute;top:0;left:0;display:none;color:var(--tui-base-06);-webkit-clip-path:inset(0 0 0 var(--t-cut));clip-path:inset(0 0 0 var(--t-cut))}.t-icon_fraction{display:block}@media (any-pointer: coarse){:host._active .t-item_active{transform:scale(.85);transition-timing-function:ease-in-out}.t-range{pointer-events:auto}.t-icon{transition:none}}\n"], components: [{ type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: i3__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i4__namespace.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
413
+ TuiRatingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiRatingComponent, selector: "tui-rating", inputs: { icon: "icon", max: "max" }, host: { listeners: { "keydown.capture": "onKeyDown($event)", "pointerdown": "onPointer(1)", "pointercancel": "onPointer(-1)", "document:pointerup": "onPointer(-1)" }, properties: { "class._active": "this.active" } }, viewQueries: [{ propertyName: "input", first: true, predicate: i4.NgControl, descendants: true, read: i0.ElementRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"t-items\">\n <div\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-item\"\n [class.t-item_active]=\"isActive(index)\"\n (pointerup)=\"onClick(max - index)\"\n >\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon t-icon_blank\"\n [class.t-icon_fraction]=\"isFraction(index)\"\n [icon]=\"src.toString()\"\n [style.--t-cut.%]=\"100 - getCut(index)\"\n ></tui-icon>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon\"\n [icon]=\"src.toString()\"\n [style.--t-cut.%]=\"getCut(index)\"\n ></tui-icon>\n </div>\n</div>\n<input\n min=\"1\"\n type=\"range\"\n class=\"t-range\"\n [attr.aria-disabled]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n [max]=\"max\"\n [(ngModel)]=\"value\"\n/>\n", styles: [":host{position:relative;display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;font-size:1rem;color:var(--tui-support-12);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host._readonly{pointer-events:none}:host._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-range{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;box-sizing:border-box;padding:0 .75em;pointer-events:none}.t-range:focus-visible+.t-items{box-shadow:inset 0 0 0 .125rem var(--tui-focus)}.t-items{position:relative;display:flex;flex-direction:row-reverse}.t-items:hover .t-icon{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}.t-items:hover .t-icon_blank{-webkit-clip-path:inset(0 0 0 100%);clip-path:inset(0 0 0 100%)}.t-item{position:relative;flex:1 0 0;color:var(--tui-base-06);transition-property:color,transform;transition-duration:var(--tui-duration);transition-timing-function:ease-in-out,cubic-bezier(.35,1.5,.4,2.5)}.t-item:first-child{max-width:2.5em}.t-item:hover,.t-item:hover~.t-item,.t-items:not(:hover) .t-item_active{color:currentColor}.t-items:active .t-item:hover,.t-items:active .t-item:hover~.t-item{transform:scale(.85);transition-duration:var(--tui-duration),calc(var(--tui-duration) / 3);transition-timing-function:ease-in-out}.t-icon{transition-property:-webkit-clip-path;transition-property:clip-path;transition-property:clip-path,-webkit-clip-path;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:2.5em;height:2.5em;font-size:inherit;-webkit-clip-path:inset(0 var(--t-cut) 0 0);clip-path:inset(0 var(--t-cut) 0 0)}.t-icon ::ng-deep>*{font-size:1rem}.t-icon_blank{position:absolute;top:0;left:0;display:none;color:var(--tui-base-06);-webkit-clip-path:inset(0 0 0 var(--t-cut));clip-path:inset(0 0 0 var(--t-cut))}.t-icon_fraction{display:block}@media (any-pointer: coarse){:host._active .t-item_active{transform:scale(.85);transition-timing-function:ease-in-out}.t-range{pointer-events:auto}.t-icon{transition:none}}\n"], components: [{ type: i1__namespace.TuiIconComponent, selector: "tui-icon", inputs: ["icon", "background"] }], directives: [{ type: i2__namespace.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: i3__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i4__namespace.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
414
414
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingComponent, decorators: [{
415
415
  type: i0.Component,
416
416
  args: [{
@@ -465,14 +465,14 @@
465
465
  }());
466
466
  TuiRatingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
467
467
  TuiRatingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, declarations: [TuiRatingComponent], imports: [common.CommonModule,
468
- i1.TuiSvgModule,
469
468
  i4.FormsModule,
469
+ i1.TuiIconModule,
470
470
  i2.TuiRepeatTimesModule,
471
471
  i3.PolymorpheusModule], exports: [TuiRatingComponent] });
472
472
  TuiRatingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiRatingModule, imports: [[
473
473
  common.CommonModule,
474
- i1.TuiSvgModule,
475
474
  i4.FormsModule,
475
+ i1.TuiIconModule,
476
476
  i2.TuiRepeatTimesModule,
477
477
  i3.PolymorpheusModule,
478
478
  ]] });
@@ -481,8 +481,8 @@
481
481
  args: [{
482
482
  imports: [
483
483
  common.CommonModule,
484
- i1.TuiSvgModule,
485
484
  i4.FormsModule,
485
+ i1.TuiIconModule,
486
486
  i2.TuiRepeatTimesModule,
487
487
  i3.PolymorpheusModule,
488
488
  ],