@taiga-ui/experimental 3.54.0 → 3.55.0-canary.17e839c

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 (265) hide show
  1. package/bundles/taiga-ui-experimental-components-avatar.umd.js +19 -15
  2. package/bundles/taiga-ui-experimental-components-avatar.umd.js.map +1 -1
  3. package/bundles/taiga-ui-experimental-components-badge-notification.umd.js +7 -12
  4. package/bundles/taiga-ui-experimental-components-badge-notification.umd.js.map +1 -1
  5. package/bundles/taiga-ui-experimental-components-badge.umd.js +114 -96
  6. package/bundles/taiga-ui-experimental-components-badge.umd.js.map +1 -1
  7. package/bundles/taiga-ui-experimental-components-badged-content.umd.js +1 -1
  8. package/bundles/taiga-ui-experimental-components-badged-content.umd.js.map +1 -1
  9. package/bundles/taiga-ui-experimental-components-button.umd.js +17 -29
  10. package/bundles/taiga-ui-experimental-components-button.umd.js.map +1 -1
  11. package/bundles/taiga-ui-experimental-components-checkbox.umd.js +13 -29
  12. package/bundles/taiga-ui-experimental-components-checkbox.umd.js.map +1 -1
  13. package/bundles/taiga-ui-experimental-components-chip.umd.js +140 -0
  14. package/bundles/taiga-ui-experimental-components-chip.umd.js.map +1 -0
  15. package/bundles/taiga-ui-experimental-components-icon.umd.js +24 -43
  16. package/bundles/taiga-ui-experimental-components-icon.umd.js.map +1 -1
  17. package/bundles/taiga-ui-experimental-components-pin.umd.js +76 -0
  18. package/bundles/taiga-ui-experimental-components-pin.umd.js.map +1 -0
  19. package/bundles/taiga-ui-experimental-components-radio.umd.js +10 -21
  20. package/bundles/taiga-ui-experimental-components-radio.umd.js.map +1 -1
  21. package/bundles/taiga-ui-experimental-components-rating.umd.js +7 -7
  22. package/bundles/taiga-ui-experimental-components-rating.umd.js.map +1 -1
  23. package/bundles/taiga-ui-experimental-components-thumbnail-card.umd.js +29 -10
  24. package/bundles/taiga-ui-experimental-components-thumbnail-card.umd.js.map +1 -1
  25. package/bundles/taiga-ui-experimental-components-toggle.umd.js +14 -30
  26. package/bundles/taiga-ui-experimental-components-toggle.umd.js.map +1 -1
  27. package/bundles/taiga-ui-experimental-components-tooltip.umd.js +496 -0
  28. package/bundles/taiga-ui-experimental-components-tooltip.umd.js.map +1 -0
  29. package/bundles/taiga-ui-experimental-components.umd.js +22 -4
  30. package/bundles/taiga-ui-experimental-components.umd.js.map +1 -1
  31. package/bundles/taiga-ui-experimental-directives-appearance.umd.js +82 -0
  32. package/bundles/taiga-ui-experimental-directives-appearance.umd.js.map +1 -0
  33. package/bundles/taiga-ui-experimental-directives-button-close.umd.js +88 -0
  34. package/bundles/taiga-ui-experimental-directives-button-close.umd.js.map +1 -0
  35. package/bundles/taiga-ui-experimental-directives-button-vertical.umd.js +95 -0
  36. package/bundles/taiga-ui-experimental-directives-button-vertical.umd.js.map +1 -0
  37. package/bundles/taiga-ui-experimental-directives-card.umd.js +89 -88
  38. package/bundles/taiga-ui-experimental-directives-card.umd.js.map +1 -1
  39. package/bundles/taiga-ui-experimental-directives-cell.umd.js +6 -11
  40. package/bundles/taiga-ui-experimental-directives-cell.umd.js.map +1 -1
  41. package/bundles/taiga-ui-experimental-directives-icons.umd.js +113 -0
  42. package/bundles/taiga-ui-experimental-directives-icons.umd.js.map +1 -0
  43. package/bundles/taiga-ui-experimental-directives-progress-segmented.umd.js +1 -1
  44. package/bundles/taiga-ui-experimental-directives-progress-segmented.umd.js.map +1 -1
  45. package/bundles/taiga-ui-experimental-directives-sensitive.umd.js +3 -3
  46. package/bundles/taiga-ui-experimental-directives-sensitive.umd.js.map +1 -1
  47. package/bundles/taiga-ui-experimental-directives-surface.umd.js +6 -5
  48. package/bundles/taiga-ui-experimental-directives-surface.umd.js.map +1 -1
  49. package/bundles/taiga-ui-experimental-directives-title.umd.js +5 -10
  50. package/bundles/taiga-ui-experimental-directives-title.umd.js.map +1 -1
  51. package/bundles/taiga-ui-experimental-directives.umd.js +28 -4
  52. package/bundles/taiga-ui-experimental-directives.umd.js.map +1 -1
  53. package/bundles/taiga-ui-experimental-tokens.umd.js +31 -0
  54. package/bundles/taiga-ui-experimental-tokens.umd.js.map +1 -0
  55. package/bundles/taiga-ui-experimental.umd.js +10 -4
  56. package/bundles/taiga-ui-experimental.umd.js.map +1 -1
  57. package/components/avatar/avatar.component.d.ts +5 -4
  58. package/components/avatar/avatar.module.d.ts +2 -2
  59. package/components/badge/badge.component.d.ts +1 -11
  60. package/components/badge/badge.directive.d.ts +12 -0
  61. package/components/badge/badge.module.d.ts +3 -1
  62. package/components/badge/badge.options.d.ts +2 -3
  63. package/components/badge/index.d.ts +1 -0
  64. package/components/badge-notification/badge-notification.component.d.ts +1 -3
  65. package/components/button/button.component.d.ts +1 -3
  66. package/components/button/button.directive.d.ts +2 -3
  67. package/components/button/button.module.d.ts +2 -1
  68. package/components/checkbox/checkbox.component.d.ts +5 -9
  69. package/components/chip/chip.component.d.ts +5 -0
  70. package/components/chip/chip.directive.d.ts +11 -0
  71. package/components/chip/chip.module.d.ts +9 -0
  72. package/components/chip/chip.options.d.ts +9 -0
  73. package/components/chip/index.d.ts +4 -0
  74. package/components/chip/package.json +10 -0
  75. package/components/chip/taiga-ui-experimental-components-chip.d.ts +5 -0
  76. package/components/icon/icon.component.d.ts +5 -1
  77. package/components/icon/icon.module.d.ts +1 -2
  78. package/components/icon/index.d.ts +0 -1
  79. package/components/index.d.ts +3 -0
  80. package/components/pin/index.d.ts +2 -0
  81. package/components/pin/package.json +10 -0
  82. package/components/pin/pin.component.d.ts +6 -0
  83. package/components/pin/pin.module.d.ts +7 -0
  84. package/components/pin/taiga-ui-experimental-components-pin.d.ts +5 -0
  85. package/components/radio/radio.component.d.ts +3 -7
  86. package/components/rating/rating.module.d.ts +3 -3
  87. package/components/thumbnail-card/thumbnail-card.component.d.ts +4 -1
  88. package/components/thumbnail-card/thumbnail-card.module.d.ts +2 -2
  89. package/components/toggle/toggle.component.d.ts +5 -10
  90. package/components/tooltip/index.d.ts +3 -0
  91. package/components/tooltip/package.json +10 -0
  92. package/components/tooltip/taiga-ui-experimental-components-tooltip.d.ts +5 -0
  93. package/components/tooltip/tooltip.component.d.ts +21 -0
  94. package/components/tooltip/tooltip.module.d.ts +13 -0
  95. package/components/tooltip/tooltip.options.d.ts +8 -0
  96. package/directives/appearance/appearance.directive.d.ts +9 -0
  97. package/directives/appearance/appearance.module.d.ts +7 -0
  98. package/directives/appearance/index.d.ts +2 -0
  99. package/directives/appearance/package.json +10 -0
  100. package/directives/appearance/taiga-ui-experimental-directives-appearance.d.ts +5 -0
  101. package/directives/button-close/button-close.directive.d.ts +9 -0
  102. package/directives/button-close/button-close.module.d.ts +7 -0
  103. package/directives/button-close/button-close.options.d.ts +1 -0
  104. package/directives/button-close/index.d.ts +3 -0
  105. package/directives/button-close/package.json +10 -0
  106. package/directives/button-close/taiga-ui-experimental-directives-button-close.d.ts +5 -0
  107. package/directives/button-vertical/button-vertical.component.d.ts +5 -0
  108. package/directives/button-vertical/button-vertical.directive.d.ts +7 -0
  109. package/directives/button-vertical/button-vertical.module.d.ts +8 -0
  110. package/directives/button-vertical/index.d.ts +3 -0
  111. package/directives/button-vertical/package.json +10 -0
  112. package/directives/button-vertical/taiga-ui-experimental-directives-button-vertical.d.ts +5 -0
  113. package/directives/card/card.component.d.ts +5 -0
  114. package/directives/card/card.directive.d.ts +0 -4
  115. package/directives/card/card.module.d.ts +3 -2
  116. package/directives/card/index.d.ts +1 -0
  117. package/directives/cell/cell.directive.d.ts +2 -3
  118. package/directives/icons/icons.component.d.ts +5 -0
  119. package/directives/icons/icons.directive.d.ts +10 -0
  120. package/directives/icons/icons.module.d.ts +8 -0
  121. package/directives/icons/index.d.ts +3 -0
  122. package/directives/icons/package.json +10 -0
  123. package/directives/icons/taiga-ui-experimental-directives-icons.d.ts +5 -0
  124. package/directives/index.d.ts +4 -0
  125. package/directives/sensitive/sensitive.module.d.ts +2 -1
  126. package/directives/title/title.directive.d.ts +2 -3
  127. package/esm2015/components/avatar/avatar.component.js +17 -12
  128. package/esm2015/components/avatar/avatar.module.js +5 -5
  129. package/esm2015/components/badge/badge.component.js +8 -36
  130. package/esm2015/components/badge/badge.directive.js +43 -0
  131. package/esm2015/components/badge/badge.module.js +8 -5
  132. package/esm2015/components/badge/badge.options.js +2 -2
  133. package/esm2015/components/badge/index.js +2 -1
  134. package/esm2015/components/badge-notification/badge-notification.component.js +4 -10
  135. package/esm2015/components/badged-content/badged-content.component.js +1 -1
  136. package/esm2015/components/button/button.component.js +3 -10
  137. package/esm2015/components/button/button.directive.js +7 -12
  138. package/esm2015/components/button/button.module.js +6 -5
  139. package/esm2015/components/checkbox/checkbox.component.js +13 -29
  140. package/esm2015/components/chip/chip.component.js +19 -0
  141. package/esm2015/components/chip/chip.directive.js +59 -0
  142. package/esm2015/components/chip/chip.module.js +19 -0
  143. package/esm2015/components/chip/chip.options.js +10 -0
  144. package/esm2015/components/chip/index.js +5 -0
  145. package/esm2015/components/chip/taiga-ui-experimental-components-chip.js +5 -0
  146. package/esm2015/components/icon/icon.component.js +20 -7
  147. package/esm2015/components/icon/icon.module.js +4 -5
  148. package/esm2015/components/icon/index.js +1 -2
  149. package/esm2015/components/index.js +4 -1
  150. package/esm2015/components/pin/index.js +3 -0
  151. package/esm2015/components/pin/pin.component.js +24 -0
  152. package/esm2015/components/pin/pin.module.js +16 -0
  153. package/esm2015/components/pin/taiga-ui-experimental-components-pin.js +5 -0
  154. package/esm2015/components/radio/radio.component.js +7 -20
  155. package/esm2015/components/rating/rating.component.js +3 -3
  156. package/esm2015/components/rating/rating.module.js +5 -5
  157. package/esm2015/components/thumbnail-card/thumbnail-card.component.js +21 -5
  158. package/esm2015/components/thumbnail-card/thumbnail-card.module.js +5 -5
  159. package/esm2015/components/toggle/toggle.component.js +13 -29
  160. package/esm2015/components/tooltip/index.js +4 -0
  161. package/esm2015/components/tooltip/taiga-ui-experimental-components-tooltip.js +5 -0
  162. package/esm2015/components/tooltip/tooltip.component.js +88 -0
  163. package/esm2015/components/tooltip/tooltip.module.js +42 -0
  164. package/esm2015/components/tooltip/tooltip.options.js +9 -0
  165. package/esm2015/directives/appearance/appearance.directive.js +30 -0
  166. package/esm2015/directives/appearance/appearance.module.js +16 -0
  167. package/esm2015/directives/appearance/index.js +3 -0
  168. package/esm2015/directives/appearance/taiga-ui-experimental-directives-appearance.js +5 -0
  169. package/esm2015/directives/button-close/button-close.directive.js +34 -0
  170. package/esm2015/directives/button-close/button-close.module.js +16 -0
  171. package/esm2015/directives/button-close/button-close.options.js +3 -0
  172. package/esm2015/directives/button-close/index.js +4 -0
  173. package/esm2015/directives/button-close/taiga-ui-experimental-directives-button-close.js +5 -0
  174. package/esm2015/directives/button-vertical/button-vertical.component.js +19 -0
  175. package/esm2015/directives/button-vertical/button-vertical.directive.js +22 -0
  176. package/esm2015/directives/button-vertical/button-vertical.module.js +17 -0
  177. package/esm2015/directives/button-vertical/index.js +4 -0
  178. package/esm2015/directives/button-vertical/taiga-ui-experimental-directives-button-vertical.js +5 -0
  179. package/esm2015/directives/card/card.component.js +19 -0
  180. package/esm2015/directives/card/card.directive.js +3 -18
  181. package/esm2015/directives/card/card.module.js +3 -2
  182. package/esm2015/directives/card/index.js +2 -1
  183. package/esm2015/directives/cell/cell.component.js +1 -1
  184. package/esm2015/directives/cell/cell.directive.js +7 -12
  185. package/esm2015/directives/icons/icons.component.js +19 -0
  186. package/esm2015/directives/icons/icons.directive.js +41 -0
  187. package/esm2015/directives/icons/icons.module.js +17 -0
  188. package/esm2015/directives/icons/index.js +4 -0
  189. package/esm2015/directives/icons/taiga-ui-experimental-directives-icons.js +5 -0
  190. package/esm2015/directives/index.js +5 -1
  191. package/esm2015/directives/progress-segmented/progress-segmented.component.js +1 -1
  192. package/esm2015/directives/sensitive/sensitive.component.js +1 -1
  193. package/esm2015/directives/sensitive/sensitive.module.js +4 -3
  194. package/esm2015/directives/surface/surface.component.js +1 -1
  195. package/esm2015/directives/surface/surface.directive.js +7 -6
  196. package/esm2015/directives/title/title.component.js +1 -1
  197. package/esm2015/directives/title/title.directive.js +6 -11
  198. package/esm2015/index.js +2 -1
  199. package/esm2015/tokens/icon-resolver.js +15 -0
  200. package/esm2015/tokens/index.js +2 -0
  201. package/esm2015/tokens/taiga-ui-experimental-tokens.js +5 -0
  202. package/fesm2015/taiga-ui-experimental-components-avatar.js +20 -15
  203. package/fesm2015/taiga-ui-experimental-components-avatar.js.map +1 -1
  204. package/fesm2015/taiga-ui-experimental-components-badge-notification.js +3 -9
  205. package/fesm2015/taiga-ui-experimental-components-badge-notification.js.map +1 -1
  206. package/fesm2015/taiga-ui-experimental-components-badge.js +44 -30
  207. package/fesm2015/taiga-ui-experimental-components-badge.js.map +1 -1
  208. package/fesm2015/taiga-ui-experimental-components-badged-content.js +1 -1
  209. package/fesm2015/taiga-ui-experimental-components-badged-content.js.map +1 -1
  210. package/fesm2015/taiga-ui-experimental-components-button.js +16 -27
  211. package/fesm2015/taiga-ui-experimental-components-button.js.map +1 -1
  212. package/fesm2015/taiga-ui-experimental-components-checkbox.js +12 -28
  213. package/fesm2015/taiga-ui-experimental-components-checkbox.js.map +1 -1
  214. package/fesm2015/taiga-ui-experimental-components-chip.js +105 -0
  215. package/fesm2015/taiga-ui-experimental-components-chip.js.map +1 -0
  216. package/fesm2015/taiga-ui-experimental-components-icon.js +22 -37
  217. package/fesm2015/taiga-ui-experimental-components-icon.js.map +1 -1
  218. package/fesm2015/taiga-ui-experimental-components-pin.js +44 -0
  219. package/fesm2015/taiga-ui-experimental-components-pin.js.map +1 -0
  220. package/fesm2015/taiga-ui-experimental-components-radio.js +7 -20
  221. package/fesm2015/taiga-ui-experimental-components-radio.js.map +1 -1
  222. package/fesm2015/taiga-ui-experimental-components-rating.js +6 -6
  223. package/fesm2015/taiga-ui-experimental-components-rating.js.map +1 -1
  224. package/fesm2015/taiga-ui-experimental-components-thumbnail-card.js +24 -8
  225. package/fesm2015/taiga-ui-experimental-components-thumbnail-card.js.map +1 -1
  226. package/fesm2015/taiga-ui-experimental-components-toggle.js +12 -28
  227. package/fesm2015/taiga-ui-experimental-components-toggle.js.map +1 -1
  228. package/fesm2015/taiga-ui-experimental-components-tooltip.js +139 -0
  229. package/fesm2015/taiga-ui-experimental-components-tooltip.js.map +1 -0
  230. package/fesm2015/taiga-ui-experimental-components.js +3 -0
  231. package/fesm2015/taiga-ui-experimental-components.js.map +1 -1
  232. package/fesm2015/taiga-ui-experimental-directives-appearance.js +50 -0
  233. package/fesm2015/taiga-ui-experimental-directives-appearance.js.map +1 -0
  234. package/fesm2015/taiga-ui-experimental-directives-button-close.js +56 -0
  235. package/fesm2015/taiga-ui-experimental-directives-button-close.js.map +1 -0
  236. package/fesm2015/taiga-ui-experimental-directives-button-vertical.js +58 -0
  237. package/fesm2015/taiga-ui-experimental-directives-button-vertical.js.map +1 -0
  238. package/fesm2015/taiga-ui-experimental-directives-card.js +1 -0
  239. package/fesm2015/taiga-ui-experimental-directives-card.js.map +1 -1
  240. package/fesm2015/taiga-ui-experimental-directives-cell.js +7 -12
  241. package/fesm2015/taiga-ui-experimental-directives-cell.js.map +1 -1
  242. package/fesm2015/taiga-ui-experimental-directives-icons.js +77 -0
  243. package/fesm2015/taiga-ui-experimental-directives-icons.js.map +1 -0
  244. package/fesm2015/taiga-ui-experimental-directives-progress-segmented.js +1 -1
  245. package/fesm2015/taiga-ui-experimental-directives-progress-segmented.js.map +1 -1
  246. package/fesm2015/taiga-ui-experimental-directives-sensitive.js +3 -3
  247. package/fesm2015/taiga-ui-experimental-directives-sensitive.js.map +1 -1
  248. package/fesm2015/taiga-ui-experimental-directives-surface.js +7 -6
  249. package/fesm2015/taiga-ui-experimental-directives-surface.js.map +1 -1
  250. package/fesm2015/taiga-ui-experimental-directives-title.js +6 -11
  251. package/fesm2015/taiga-ui-experimental-directives-title.js.map +1 -1
  252. package/fesm2015/taiga-ui-experimental-directives.js +4 -0
  253. package/fesm2015/taiga-ui-experimental-directives.js.map +1 -1
  254. package/fesm2015/taiga-ui-experimental-tokens.js +22 -0
  255. package/fesm2015/taiga-ui-experimental-tokens.js.map +1 -0
  256. package/fesm2015/taiga-ui-experimental.js +1 -0
  257. package/fesm2015/taiga-ui-experimental.js.map +1 -1
  258. package/index.d.ts +1 -0
  259. package/package.json +31 -31
  260. package/tokens/icon-resolver.d.ts +4 -0
  261. package/tokens/index.d.ts +1 -0
  262. package/tokens/package.json +10 -0
  263. package/tokens/taiga-ui-experimental-tokens.d.ts +5 -0
  264. package/components/icon/icon.pipe.d.ts +0 -12
  265. package/esm2015/components/icon/icon.pipe.js +0 -30
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/icon', ['exports', '@angular/core', '@taiga-ui/cdk'], 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.icon = {}), global.ng.core, global.cdk));
5
- })(this, (function (exports, i0, cdk) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/experimental/tokens')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/experimental/components/icon', ['exports', '@angular/core', '@taiga-ui/experimental/tokens'], 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.icon = {}), global.ng.core, global["taiga-ui"].experimental.tokens));
5
+ })(this, (function (exports, i0, tokens) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -25,55 +25,39 @@
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
 
27
27
  var TuiIconComponent = /** @class */ (function () {
28
- function TuiIconComponent() {
28
+ function TuiIconComponent(resolver) {
29
+ this.resolver = resolver;
29
30
  this.icon = '';
31
+ this.background = '';
30
32
  }
31
33
  return TuiIconComponent;
32
34
  }());
33
- TuiIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
34
- TuiIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiIconComponent, selector: "tui-icon", inputs: { icon: "icon" }, host: { properties: { "style.--t-mask": "\"url(\" + icon + \")\"" } }, 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) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain}:host:after{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";-webkit-mask:inherit;mask:inherit;background:currentColor}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
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: { "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 });
35
37
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconComponent, decorators: [{
36
38
  type: i0.Component,
37
39
  args: [{
38
40
  selector: 'tui-icon',
39
41
  template: '',
40
- host: { '[style.--t-mask]': '"url(" + icon + ")"' },
42
+ host: {
43
+ '[class._duo]': 'background',
44
+ '[style.--t-mask]': '"url(" + resolver(icon) + ")"',
45
+ // TODO: remove Outline hack in 4.0
46
+ '[style.--t-mask-bg]': 'background ? "url(" + resolver(background).replace("Outline", "") + ")" : null',
47
+ },
41
48
  styleUrls: ['./icon.style.less'],
42
49
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
43
50
  }]
44
- }], propDecorators: { icon: [{
45
- type: i0.Input
46
- }] } });
47
-
48
- var TUI_ICON_RESOLVER = cdk.tuiCreateTokenFromFactory(function () { return function (icon) { return "/assets/taiga-ui/icons/" + icon + ".svg"; }; });
49
- function tuiIconResolverProvider(useValue) {
50
- return {
51
- provide: TUI_ICON_RESOLVER,
52
- useValue: useValue,
53
- };
54
- }
55
- var TuiIconPipe = /** @class */ (function () {
56
- function TuiIconPipe(resolver) {
57
- this.resolver = resolver;
58
- }
59
- TuiIconPipe.prototype.transform = function (icon) {
60
- return this.resolver(icon);
61
- };
62
- return TuiIconPipe;
63
- }());
64
- TuiIconPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconPipe, deps: [{ token: TUI_ICON_RESOLVER }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
65
- TuiIconPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconPipe, name: "tuiIcon" });
66
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconPipe, decorators: [{
67
- type: i0.Pipe,
68
- args: [{
69
- name: "tuiIcon",
70
- }]
71
51
  }], ctorParameters: function () {
72
52
  return [{ type: undefined, decorators: [{
73
53
  type: i0.Inject,
74
- args: [TUI_ICON_RESOLVER]
54
+ args: [tokens.TUI_ICON_RESOLVER]
75
55
  }] }];
76
- } });
56
+ }, propDecorators: { icon: [{
57
+ type: i0.Input
58
+ }], background: [{
59
+ type: i0.Input
60
+ }] } });
77
61
 
78
62
  var TuiIconModule = /** @class */ (function () {
79
63
  function TuiIconModule() {
@@ -81,13 +65,13 @@
81
65
  return TuiIconModule;
82
66
  }());
83
67
  TuiIconModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
84
- TuiIconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconModule, declarations: [TuiIconComponent, TuiIconPipe], exports: [TuiIconComponent, TuiIconPipe] });
68
+ TuiIconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconModule, declarations: [TuiIconComponent], exports: [TuiIconComponent] });
85
69
  TuiIconModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconModule });
86
70
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiIconModule, decorators: [{
87
71
  type: i0.NgModule,
88
72
  args: [{
89
- declarations: [TuiIconComponent, TuiIconPipe],
90
- exports: [TuiIconComponent, TuiIconPipe],
73
+ declarations: [TuiIconComponent],
74
+ exports: [TuiIconComponent],
91
75
  }]
92
76
  }] });
93
77
 
@@ -95,11 +79,8 @@
95
79
  * Generated bundle index. Do not edit.
96
80
  */
97
81
 
98
- exports.TUI_ICON_RESOLVER = TUI_ICON_RESOLVER;
99
82
  exports.TuiIconComponent = TuiIconComponent;
100
83
  exports.TuiIconModule = TuiIconModule;
101
- exports.TuiIconPipe = TuiIconPipe;
102
- exports.tuiIconResolverProvider = tuiIconResolverProvider;
103
84
 
104
85
  Object.defineProperty(exports, '__esModule', { value: true });
105
86
 
@@ -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.pipe.ts","../../../projects/experimental/components/icon/icon.module.ts","../../../projects/experimental/components/icon/taiga-ui-experimental-components-icon.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\n\n@Component({\n selector: 'tui-icon',\n template: '',\n host: {'[style.--t-mask]': '\"url(\" + icon + \")\"'},\n styleUrls: ['./icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiIconComponent {\n @Input()\n icon = '';\n}\n","import {Inject, Pipe, PipeTransform, Provider} from '@angular/core';\nimport {tuiCreateTokenFromFactory, TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const TUI_ICON_RESOLVER = tuiCreateTokenFromFactory<TuiStringHandler<string>>(\n () => icon => `/assets/taiga-ui/icons/${icon}.svg`,\n);\n\nexport function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider {\n return {\n provide: TUI_ICON_RESOLVER,\n useValue,\n };\n}\n\n@Pipe({\n name: `tuiIcon`,\n})\nexport class TuiIconPipe implements PipeTransform {\n constructor(\n @Inject(TUI_ICON_RESOLVER) private readonly resolver: TuiStringHandler<string>,\n ) {}\n\n transform(icon: string): string {\n return this.resolver(icon);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiIconComponent} from './icon.component';\nimport {TuiIconPipe} from './icon.pipe';\n\n@NgModule({\n declarations: [TuiIconComponent, TuiIconPipe],\n exports: [TuiIconComponent, TuiIconPipe],\n})\nexport class TuiIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Component","ChangeDetectionStrategy","Input","tuiCreateTokenFromFactory","Pipe","Inject","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,QAAA,gBAAA,kBAAA,YAAA;IAPA,IAAA,SAAA,gBAAA,GAAA;IASI,QAAA,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;SACb;;;wIAHY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAAhB,gBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,4JALf,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+UAAA,CAAA,EAAA,eAAA,EAAAA,aAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;sHAKH,gBAAgB,EAAA,UAAA,EAAA,CAAA;sBAP5BC,YAAS;IAAC,YAAA,IAAA,EAAA,CAAA;IACP,oBAAA,QAAQ,EAAE,UAAU;IACpB,oBAAA,QAAQ,EAAE,EAAE;IACZ,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,qBAAqB,EAAC;wBACjD,SAAS,EAAE,CAAC,mBAAmB,CAAC;wBAChC,eAAe,EAAEC,0BAAuB,CAAC,MAAM;qBAClD,CAAA;kCAGG,IAAI,EAAA,CAAA;0BADHC,QAAK;;;QCPG,iBAAiB,GAAGC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A,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,aAAa,iBAHP,gBAAgB,EAAE,WAAW,CAClC,EAAA,OAAA,EAAA,CAAA,gBAAgB,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;sIAE9B,aAAa,EAAA,CAAA,CAAA;sHAAb,aAAa,EAAA,UAAA,EAAA,CAAA;sBAJzBO,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACN,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC;IAC7C,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC;qBAC3C,CAAA;;;ICRD;;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,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,GAAG,EAAE,CAAC;SAEsE;;;IAP7E,gBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,gBAAgB,kBAOLC,wBAAiB,EAAA,CAAA,EAAA,MAAA,EAAAD,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAP5B,gBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,2UAXf,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2bAAA,CAAA,EAAA,eAAA,EAAAA,aAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;sHAWH,gBAAgB,EAAA,UAAA,EAAA,CAAA;sBAb5BE,YAAS;IAAC,YAAA,IAAA,EAAA,CAAA;IACP,oBAAA,QAAQ,EAAE,UAAU;IACpB,oBAAA,QAAQ,EAAE,EAAE;IACZ,oBAAA,IAAI,EAAE;IACF,wBAAA,cAAc,EAAE,YAAY;IAC5B,wBAAA,kBAAkB,EAAE,+BAA+B;;IAEnD,wBAAA,qBAAqB,EACjB,gFAAgF;IACvF,qBAAA;wBACD,SAAS,EAAE,CAAC,mBAAmB,CAAC;wBAChC,eAAe,EAAEC,0BAAuB,CAAC,MAAM;qBAClD,CAAA;;;kCAQgBC,SAAM;mCAACH,wBAAiB,CAAA;;6BALrC,IAAI,EAAA,CAAA;0BADHI,QAAK;oBAIN,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,eA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/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"],"names":["i0","TUI_MODE","TUI_PLATFORM","NgControl","MODE_PROVIDER","Component","ChangeDetectionStrategy","Inject","Optional","Input","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,QAAA,iBAAA,kBAAA,YAAA;IAII,IAAA,SAAA,iBAAA,CAC+B,KAAuC,EACnC,QAAqB,EACZ,OAAyB,EAAA;IAFtC,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAkC;IACnC,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAa;IACZ,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;IALrE,QAAA,IAAI,CAAA,IAAA,GAAa,GAAG,CAAC;SAMjB;;;IARK,iBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,iBAAiB,EAKd,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAC,aAAQ,EACR,EAAA,EAAA,KAAA,EAAAC,gBAAY,aACAC,YAAS,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAAH,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAPxB,iBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,EAVf,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,kBAAA,EAAA,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Ac,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;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,i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BADHK,QAAK;;;ACVV,QAAA,cAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,cAAA,GAAA;;;;sIAAa,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAN,aAAA,CAAA,eAAA,CAAA,QAAA,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
  ],