@taiga-ui/kit 4.1.0 → 4.3.0

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 (152) hide show
  1. package/components/accordion/accordion.directive.d.ts +1 -0
  2. package/components/carousel/carousel.component.d.ts +1 -1
  3. package/components/input-phone-international/input-phone-international.options.d.ts +1 -1
  4. package/components/segmented/segmented.directive.d.ts +2 -3
  5. package/components/slider/slider.component.d.ts +1 -1
  6. package/components/tiles/tile-handle.directive.d.ts +1 -1
  7. package/directives/button-select/button-select.directive.d.ts +12 -0
  8. package/directives/button-select/index.d.ts +1 -0
  9. package/directives/index.d.ts +1 -0
  10. package/esm2022/components/accordion/accordion-item.component.mjs +11 -27
  11. package/esm2022/components/accordion/accordion.directive.mjs +8 -17
  12. package/esm2022/components/avatar/avatar-labeled.component.mjs +3 -6
  13. package/esm2022/components/avatar/avatar-stack.component.mjs +6 -7
  14. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +6 -7
  15. package/esm2022/components/button-loading/button-loading.component.mjs +3 -5
  16. package/esm2022/components/calendar-month/calendar-month.component.mjs +6 -7
  17. package/esm2022/components/calendar-range/calendar-range.component.mjs +5 -6
  18. package/esm2022/components/carousel/carousel.component.mjs +17 -28
  19. package/esm2022/components/checkbox/checkbox.options.mjs +3 -3
  20. package/esm2022/components/compass/compass.component.mjs +6 -7
  21. package/esm2022/components/elastic-container/elastic-container.component.mjs +8 -11
  22. package/esm2022/components/elastic-container/elastic-container.directive.mjs +2 -2
  23. package/esm2022/components/files/file/file.component.mjs +6 -7
  24. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +6 -6
  25. package/esm2022/components/files/input-files/input-files.component.mjs +3 -5
  26. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +3 -2
  27. package/esm2022/components/filter/filter.component.mjs +6 -7
  28. package/esm2022/components/input-inline/input-inline.component.mjs +5 -6
  29. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +3 -3
  30. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +3 -3
  31. package/esm2022/components/items-with-more/items-with-more.service.mjs +2 -2
  32. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +7 -8
  33. package/esm2022/components/line-clamp/line-clamp.component.mjs +5 -6
  34. package/esm2022/components/pagination/pagination.component.mjs +4 -12
  35. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +4 -6
  36. package/esm2022/components/pin/pin.directive.mjs +6 -6
  37. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +6 -9
  38. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +3 -3
  39. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +7 -10
  40. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +2 -2
  41. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +8 -13
  42. package/esm2022/components/radio-list/radio-list.component.mjs +7 -10
  43. package/esm2022/components/range/range.component.mjs +9 -19
  44. package/esm2022/components/rating/rating.component.mjs +12 -29
  45. package/esm2022/components/segmented/segmented.component.mjs +8 -9
  46. package/esm2022/components/segmented/segmented.directive.mjs +17 -21
  47. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +4 -8
  48. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +7 -9
  49. package/esm2022/components/slider/slider.component.mjs +8 -12
  50. package/esm2022/components/stepper/step.component.mjs +12 -23
  51. package/esm2022/components/stepper/stepper.component.mjs +12 -21
  52. package/esm2022/components/switch/switch.component.mjs +4 -6
  53. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +7 -13
  54. package/esm2022/components/tabs/tabs-vertical.directive.mjs +8 -12
  55. package/esm2022/components/tabs/tabs.directive.mjs +7 -7
  56. package/esm2022/components/tiles/tile-handle.directive.mjs +15 -21
  57. package/esm2022/components/tiles/tile.component.mjs +9 -16
  58. package/esm2022/components/tiles/tiles.component.mjs +7 -10
  59. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +4 -6
  60. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +7 -8
  61. package/esm2022/directives/button-select/button-select.directive.mjs +41 -0
  62. package/esm2022/directives/button-select/index.mjs +2 -0
  63. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +5 -0
  64. package/esm2022/directives/fade/fade.directive.mjs +11 -19
  65. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +2 -2
  66. package/esm2022/directives/highlight/highlight.directive.mjs +2 -2
  67. package/esm2022/directives/index.mjs +2 -1
  68. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +15 -20
  69. package/esm2022/directives/present/present.directive.mjs +4 -8
  70. package/esm2022/directives/sensitive/sensitive.directive.mjs +2 -2
  71. package/esm2022/directives/tooltip/tooltip.directive.mjs +7 -7
  72. package/fesm2022/taiga-ui-kit-components-accordion.mjs +16 -41
  73. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-avatar.mjs +6 -10
  75. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -6
  77. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +2 -4
  79. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -6
  81. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
  83. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-carousel.mjs +16 -27
  85. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +2 -2
  87. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -6
  89. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -11
  91. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-files.mjs +12 -15
  93. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -6
  95. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  97. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +4 -4
  99. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +1 -1
  101. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +9 -11
  103. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-pagination.mjs +3 -11
  105. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +3 -5
  107. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-pin.mjs +5 -5
  109. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-preview.mjs +7 -10
  111. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-progress.mjs +13 -21
  113. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +6 -9
  115. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-range.mjs +8 -18
  117. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-rating.mjs +11 -28
  119. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-segmented.mjs +22 -26
  121. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-slider.mjs +14 -24
  123. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-stepper.mjs +21 -41
  125. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-switch.mjs +3 -5
  127. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-tabs.mjs +17 -27
  129. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-tiles.mjs +26 -42
  131. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-tree.mjs +8 -11
  133. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +47 -0
  135. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -0
  136. package/fesm2022/taiga-ui-kit-directives-fade.mjs +10 -18
  137. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +1 -1
  139. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +1 -1
  141. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +14 -19
  143. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -7
  145. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +1 -1
  147. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +6 -6
  149. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-directives.mjs +1 -0
  151. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  152. package/package.json +14 -8
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, ChangeDetectorRef, Directive, HostListener } from '@angular/core';
2
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, ChangeDetectorRef, Directive } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { tuiWatch } from '@taiga-ui/cdk/observables';
5
5
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
@@ -81,12 +81,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
81
81
  inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],
82
82
  },
83
83
  ],
84
- host: { tuiTooltip: '' },
84
+ host: {
85
+ tuiTooltip: '',
86
+ '(mousedown)': 'stopOnMobile($event)',
87
+ },
85
88
  }]
86
- }], propDecorators: { stopOnMobile: [{
87
- type: HostListener,
88
- args: ['mousedown', ['$event']]
89
- }] } });
89
+ }] });
90
90
 
91
91
  /**
92
92
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-tooltip.mjs","sources":["../../../projects/kit/directives/tooltip/tooltip.directive.ts","../../../projects/kit/directives/tooltip/taiga-ui-kit-directives-tooltip.ts"],"sourcesContent":["import type {DoCheck, Signal} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n HostListener,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n tuiAppearanceState,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {\n TUI_HINT_OPTIONS,\n TuiHintDescribe,\n TuiHintDirective,\n TuiHintHover,\n} from '@taiga-ui/core/directives/hint';\nimport {TUI_ICON_START} from '@taiga-ui/core/tokens';\nimport {map} from 'rxjs';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./tooltip.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-tooltip',\n },\n})\nclass TuiTooltipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiTooltip]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n {\n provide: TUI_ICON_START,\n useFactory: () => inject(TUI_HINT_OPTIONS).icon,\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDescribe,\n inputs: ['tuiHintDescribe'],\n },\n {\n directive: TuiHintDirective,\n inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {tuiTooltip: ''},\n})\nexport class TuiTooltip implements DoCheck {\n private readonly textfield = inject(TuiTextfieldComponent, {optional: true});\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly describe = inject(TuiHintDescribe);\n private readonly driver = inject(TuiHintHover);\n\n protected readonly nothing = tuiWithStyles(TuiTooltipStyles);\n protected readonly state: Signal<unknown> = tuiAppearanceState(\n toSignal(\n inject(TuiHintHover).pipe(\n map((hover) => (hover ? 'hover' : null)),\n tuiWatch(inject(ChangeDetectorRef)),\n ),\n {initialValue: null},\n ),\n );\n\n public ngDoCheck(): void {\n if (this.textfield?.id) {\n this.describe.tuiHintDescribe = this.textfield.id;\n }\n }\n\n @HostListener('mousedown', ['$event'])\n protected stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n this.driver.toggle();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA6BA,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,iHARR,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,uGAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAVrB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,aAAa;AACvB,qBAAA,EAAA,MAAA,EAAA,CAAA,uGAAA,CAAA,EAAA,CAAA;;AAIL,MA0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,4BAAA,OAAO,EAAE,cAAc;4BACvB,UAAU,EAAE,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI;AAClD,yBAAA;AACJ,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,eAAe;4BAC1B,MAAM,EAAE,CAAC,iBAAiB,CAAC;AAC9B,yBAAA;AACD,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,CAAC;AACzE,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAC,UAAU,EAAE,EAAE,EAAC;AACzB,iBAAA,CAAA;8BAyBa,YAAY,EAAA,CAAA;sBADrB,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAA;;;AC1FzC;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-tooltip.mjs","sources":["../../../projects/kit/directives/tooltip/tooltip.directive.ts","../../../projects/kit/directives/tooltip/taiga-ui-kit-directives-tooltip.ts"],"sourcesContent":["import type {DoCheck, Signal} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n tuiAppearanceState,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {\n TUI_HINT_OPTIONS,\n TuiHintDescribe,\n TuiHintDirective,\n TuiHintHover,\n} from '@taiga-ui/core/directives/hint';\nimport {TUI_ICON_START} from '@taiga-ui/core/tokens';\nimport {map} from 'rxjs';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./tooltip.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-tooltip',\n },\n})\nclass TuiTooltipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiTooltip]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n {\n provide: TUI_ICON_START,\n useFactory: () => inject(TUI_HINT_OPTIONS).icon,\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDescribe,\n inputs: ['tuiHintDescribe'],\n },\n {\n directive: TuiHintDirective,\n inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n tuiTooltip: '',\n '(mousedown)': 'stopOnMobile($event)',\n },\n})\nexport class TuiTooltip implements DoCheck {\n private readonly textfield = inject(TuiTextfieldComponent, {optional: true});\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly describe = inject(TuiHintDescribe);\n private readonly driver = inject(TuiHintHover);\n\n protected readonly nothing = tuiWithStyles(TuiTooltipStyles);\n protected readonly state: Signal<unknown> = tuiAppearanceState(\n toSignal(\n inject(TuiHintHover).pipe(\n map((hover) => (hover ? 'hover' : null)),\n tuiWatch(inject(ChangeDetectorRef)),\n ),\n {initialValue: null},\n ),\n );\n\n public ngDoCheck(): void {\n if (this.textfield?.id) {\n this.describe.tuiHintDescribe = this.textfield.id;\n }\n }\n\n protected stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n this.driver.toggle();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA4BA,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MA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;"}
@@ -1,5 +1,6 @@
1
1
  export * from '@taiga-ui/kit/directives/button-close';
2
2
  export * from '@taiga-ui/kit/directives/button-group';
3
+ export * from '@taiga-ui/kit/directives/button-select';
3
4
  export * from '@taiga-ui/kit/directives/chevron';
4
5
  export * from '@taiga-ui/kit/directives/connected';
5
6
  export * from '@taiga-ui/kit/directives/data-list-dropdown-manager';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives.mjs","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-kit-directives.mjs","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "description": "Taiga UI Angular main components kit",
5
5
  "keywords": [
6
6
  "angular",
@@ -335,6 +335,12 @@
335
335
  "esm": "./esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs",
336
336
  "default": "./fesm2022/taiga-ui-kit-directives-button-group.mjs"
337
337
  },
338
+ "./directives/button-select": {
339
+ "types": "./directives/button-select/index.d.ts",
340
+ "esm2022": "./esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs",
341
+ "esm": "./esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs",
342
+ "default": "./fesm2022/taiga-ui-kit-directives-button-select.mjs"
343
+ },
338
344
  "./directives/chevron": {
339
345
  "types": "./directives/chevron/index.d.ts",
340
346
  "esm2022": "./esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs",
@@ -467,17 +473,17 @@
467
473
  "@angular/core": ">=16.0.0",
468
474
  "@angular/forms": ">=16.0.0",
469
475
  "@angular/router": ">=16.0.0",
470
- "@maskito/angular": "^3.0.0",
471
- "@maskito/core": "^3.0.0",
472
- "@maskito/kit": "^3.0.0",
473
- "@maskito/phone": "^3.0.0",
476
+ "@maskito/angular": "^3.0.1",
477
+ "@maskito/core": "^3.0.1",
478
+ "@maskito/kit": "^3.0.1",
479
+ "@maskito/phone": "^3.0.1",
474
480
  "@ng-web-apis/common": "^4.2.1",
475
481
  "@ng-web-apis/intersection-observer": "^4.2.1",
476
482
  "@ng-web-apis/mutation-observer": "^4.2.1",
477
483
  "@ng-web-apis/resize-observer": "^4.2.1",
478
- "@taiga-ui/cdk": "^4.1.0",
479
- "@taiga-ui/core": "^4.1.0",
480
- "@taiga-ui/i18n": "^4.1.0",
484
+ "@taiga-ui/cdk": "^4.3.0",
485
+ "@taiga-ui/core": "^4.3.0",
486
+ "@taiga-ui/i18n": "^4.3.0",
481
487
  "@taiga-ui/polymorpheus": "^4.6.4",
482
488
  "rxjs": ">=7.0.0"
483
489
  },