suis 3.0.1 → 4.0.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 (169) hide show
  1. package/README.md +2 -1
  2. package/fesm2022/suis.mjs +329 -362
  3. package/fesm2022/suis.mjs.map +1 -1
  4. package/lib/modules/suis-select/classes/suis-select-button.base.d.ts +1 -1
  5. package/lib/modules/suis-select/classes/suis-select-multi.base.d.ts +1 -1
  6. package/lib/modules/suis-select/classes/suis-select-single.base.d.ts +1 -1
  7. package/lib/modules/suis-select/classes/suis-select.base.d.ts +1 -1
  8. package/lib/shared/classes/suis-button.base.d.ts +1 -1
  9. package/lib/shared/classes/suis-checkbox.base.d.ts +1 -1
  10. package/lib/shared/classes/suis-input.base.d.ts +1 -1
  11. package/package.json +5 -7
  12. package/esm2022/index.mjs +0 -6
  13. package/esm2022/lib/components/index.mjs +0 -33
  14. package/esm2022/lib/components/suis-accordion/index.mjs +0 -2
  15. package/esm2022/lib/components/suis-accordion/suis-accordion.component.mjs +0 -31
  16. package/esm2022/lib/components/suis-alert/index.mjs +0 -2
  17. package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +0 -38
  18. package/esm2022/lib/components/suis-box/index.mjs +0 -2
  19. package/esm2022/lib/components/suis-box/suis-box.component.mjs +0 -25
  20. package/esm2022/lib/components/suis-breadcrumbs/index.mjs +0 -3
  21. package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.mjs +0 -26
  22. package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.interface.mjs +0 -2
  23. package/esm2022/lib/components/suis-chart/index.mjs +0 -3
  24. package/esm2022/lib/components/suis-chart/suis-chart-data.pipe.mjs +0 -35
  25. package/esm2022/lib/components/suis-chart/suis-chart-height.pipe.mjs +0 -19
  26. package/esm2022/lib/components/suis-chart/suis-chart.component.mjs +0 -82
  27. package/esm2022/lib/components/suis-chart/suis-chart.interfaces.mjs +0 -2
  28. package/esm2022/lib/components/suis-chip/index.mjs +0 -2
  29. package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +0 -44
  30. package/esm2022/lib/components/suis-container/index.mjs +0 -2
  31. package/esm2022/lib/components/suis-container/suis-container.component.mjs +0 -19
  32. package/esm2022/lib/components/suis-dialog/index.mjs +0 -2
  33. package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +0 -62
  34. package/esm2022/lib/components/suis-dialog-container/index.mjs +0 -3
  35. package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.component.mjs +0 -17
  36. package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.interfaces.mjs +0 -2
  37. package/esm2022/lib/components/suis-divider/index.mjs +0 -2
  38. package/esm2022/lib/components/suis-divider/suis-divider.component.mjs +0 -22
  39. package/esm2022/lib/components/suis-form-field/index.mjs +0 -2
  40. package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +0 -14
  41. package/esm2022/lib/components/suis-icon/index.mjs +0 -3
  42. package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +0 -44
  43. package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +0 -58
  44. package/esm2022/lib/components/suis-icon/suis-icon.types.mjs +0 -2
  45. package/esm2022/lib/components/suis-input/index.mjs +0 -3
  46. package/esm2022/lib/components/suis-input/suis-input.component.mjs +0 -64
  47. package/esm2022/lib/components/suis-input/suis-input.types.mjs +0 -2
  48. package/esm2022/lib/components/suis-input-checkbox/index.mjs +0 -2
  49. package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +0 -28
  50. package/esm2022/lib/components/suis-input-chips/index.mjs +0 -2
  51. package/esm2022/lib/components/suis-input-chips/suis-input-chips.component.mjs +0 -91
  52. package/esm2022/lib/components/suis-input-image/index.mjs +0 -2
  53. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +0 -62
  54. package/esm2022/lib/components/suis-input-number/index.mjs +0 -2
  55. package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +0 -49
  56. package/esm2022/lib/components/suis-input-radio/index.mjs +0 -2
  57. package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +0 -56
  58. package/esm2022/lib/components/suis-item/index.mjs +0 -2
  59. package/esm2022/lib/components/suis-item/suis-item.component.mjs +0 -31
  60. package/esm2022/lib/components/suis-label/index.mjs +0 -2
  61. package/esm2022/lib/components/suis-label/suis-label.component.mjs +0 -34
  62. package/esm2022/lib/components/suis-notification/index.mjs +0 -4
  63. package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +0 -33
  64. package/esm2022/lib/components/suis-notification/suis-notification.interfaces.mjs +0 -2
  65. package/esm2022/lib/components/suis-notification/suis-notification.types.mjs +0 -2
  66. package/esm2022/lib/components/suis-notifications/index.mjs +0 -2
  67. package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +0 -25
  68. package/esm2022/lib/components/suis-pagination/index.mjs +0 -2
  69. package/esm2022/lib/components/suis-pagination/suis-pagination-items.pipe.mjs +0 -21
  70. package/esm2022/lib/components/suis-pagination/suis-pagination-page.pipe.mjs +0 -20
  71. package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +0 -19
  72. package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +0 -120
  73. package/esm2022/lib/components/suis-progress-bar/index.mjs +0 -2
  74. package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.component.mjs +0 -46
  75. package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.pipe.mjs +0 -19
  76. package/esm2022/lib/components/suis-spinner/index.mjs +0 -2
  77. package/esm2022/lib/components/suis-spinner/suis-spinner.component.mjs +0 -27
  78. package/esm2022/lib/components/suis-spinner-container/index.mjs +0 -2
  79. package/esm2022/lib/components/suis-spinner-container/suis-spinner-container.component.mjs +0 -38
  80. package/esm2022/lib/components/suis-table/index.mjs +0 -6
  81. package/esm2022/lib/components/suis-table/suis-table-cell.directive.mjs +0 -21
  82. package/esm2022/lib/components/suis-table/suis-table-column.directive.mjs +0 -41
  83. package/esm2022/lib/components/suis-table/suis-table.component.mjs +0 -79
  84. package/esm2022/lib/components/suis-table/suis-table.interfaces.mjs +0 -2
  85. package/esm2022/lib/components/suis-table/suis-table.module.mjs +0 -30
  86. package/esm2022/lib/components/suis-tabs/index.mjs +0 -4
  87. package/esm2022/lib/components/suis-tabs/suis-tab-actions.pipe.mjs +0 -19
  88. package/esm2022/lib/components/suis-tabs/suis-tab-template.pipe.mjs +0 -23
  89. package/esm2022/lib/components/suis-tabs/suis-tab.directive.mjs +0 -25
  90. package/esm2022/lib/components/suis-tabs/suis-tabs.component.mjs +0 -36
  91. package/esm2022/lib/components/suis-tabs/suis-tabs.module.mjs +0 -17
  92. package/esm2022/lib/components/suis-text-area/index.mjs +0 -2
  93. package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +0 -49
  94. package/esm2022/lib/components/suis-title/index.mjs +0 -3
  95. package/esm2022/lib/components/suis-title/suis-title.component.mjs +0 -23
  96. package/esm2022/lib/components/suis-title/suis-title.enum.mjs +0 -7
  97. package/esm2022/lib/components/suis-toggle/index.mjs +0 -2
  98. package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +0 -26
  99. package/esm2022/lib/components/suis-toolbar/index.mjs +0 -2
  100. package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +0 -19
  101. package/esm2022/lib/modules/index.mjs +0 -4
  102. package/esm2022/lib/modules/suis-button/components/suis-button/index.mjs +0 -2
  103. package/esm2022/lib/modules/suis-button/components/suis-button/suis-button.component.mjs +0 -15
  104. package/esm2022/lib/modules/suis-button/components/suis-button-link/index.mjs +0 -2
  105. package/esm2022/lib/modules/suis-button/components/suis-button-link/suis-button-link.component.mjs +0 -37
  106. package/esm2022/lib/modules/suis-button/components/suis-button-outlined/index.mjs +0 -2
  107. package/esm2022/lib/modules/suis-button/components/suis-button-outlined/suis-button-outlined.component.mjs +0 -15
  108. package/esm2022/lib/modules/suis-button/index.mjs +0 -5
  109. package/esm2022/lib/modules/suis-button/suis-button.module.mjs +0 -30
  110. package/esm2022/lib/modules/suis-navigation/components/suis-navigation/index.mjs +0 -2
  111. package/esm2022/lib/modules/suis-navigation/components/suis-navigation/suis-navigation.component.mjs +0 -70
  112. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/index.mjs +0 -2
  113. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/suis-navigation-group.component.mjs +0 -49
  114. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +0 -51
  115. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-item/index.mjs +0 -2
  116. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-item/suis-navigation-item.component.mjs +0 -26
  117. package/esm2022/lib/modules/suis-navigation/directives/suis-navigation-item.directive.mjs +0 -20
  118. package/esm2022/lib/modules/suis-navigation/index.mjs +0 -5
  119. package/esm2022/lib/modules/suis-navigation/interfaces/suis-navigation-item.interfaces.mjs +0 -2
  120. package/esm2022/lib/modules/suis-navigation/suis-navigation.module.mjs +0 -17
  121. package/esm2022/lib/modules/suis-select/classes/suis-select-button.base.mjs +0 -56
  122. package/esm2022/lib/modules/suis-select/classes/suis-select-multi.base.mjs +0 -66
  123. package/esm2022/lib/modules/suis-select/classes/suis-select-single.base.mjs +0 -46
  124. package/esm2022/lib/modules/suis-select/classes/suis-select.base.mjs +0 -105
  125. package/esm2022/lib/modules/suis-select/components/suis-select/index.mjs +0 -2
  126. package/esm2022/lib/modules/suis-select/components/suis-select/suis-select.component.mjs +0 -43
  127. package/esm2022/lib/modules/suis-select/components/suis-select-button/index.mjs +0 -2
  128. package/esm2022/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.mjs +0 -15
  129. package/esm2022/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.mjs +0 -16
  130. package/esm2022/lib/modules/suis-select/components/suis-select-group/index.mjs +0 -2
  131. package/esm2022/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.mjs +0 -62
  132. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/index.mjs +0 -2
  133. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.mjs +0 -18
  134. package/esm2022/lib/modules/suis-select/components/suis-select-multi/index.mjs +0 -2
  135. package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs +0 -45
  136. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/index.mjs +0 -2
  137. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.mjs +0 -64
  138. package/esm2022/lib/modules/suis-select/components/suis-select-option/index.mjs +0 -2
  139. package/esm2022/lib/modules/suis-select/components/suis-select-option/suis-select-option.component.mjs +0 -54
  140. package/esm2022/lib/modules/suis-select/directives/suis-select-group-option.directive.mjs +0 -20
  141. package/esm2022/lib/modules/suis-select/directives/suis-select-option.directive.mjs +0 -20
  142. package/esm2022/lib/modules/suis-select/index.mjs +0 -10
  143. package/esm2022/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.mjs +0 -2
  144. package/esm2022/lib/modules/suis-select/interfaces/suis-select-option.interfaces.mjs +0 -2
  145. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.mjs +0 -21
  146. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.mjs +0 -21
  147. package/esm2022/lib/modules/suis-select/pipes/suis-select-group-label.pipe.mjs +0 -25
  148. package/esm2022/lib/modules/suis-select/pipes/suis-select-is-selected.pipe.mjs +0 -17
  149. package/esm2022/lib/modules/suis-select/pipes/suis-select-label.pipe.mjs +0 -24
  150. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-chips.pipe.mjs +0 -24
  151. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.mjs +0 -25
  152. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-is-selected.pipe.mjs +0 -17
  153. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-group-options.pipe.mjs +0 -24
  154. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.mjs +0 -24
  155. package/esm2022/lib/modules/suis-select/suis-select.module.mjs +0 -48
  156. package/esm2022/lib/pipes/index.mjs +0 -2
  157. package/esm2022/lib/pipes/suis-ng-class.pipe.mjs +0 -19
  158. package/esm2022/lib/services/index.mjs +0 -3
  159. package/esm2022/lib/services/suis-dialog.service.mjs +0 -36
  160. package/esm2022/lib/services/suis-notification.service.mjs +0 -82
  161. package/esm2022/lib/shared/classes/index.mjs +0 -4
  162. package/esm2022/lib/shared/classes/suis-button.base.mjs +0 -52
  163. package/esm2022/lib/shared/classes/suis-checkbox.base.mjs +0 -34
  164. package/esm2022/lib/shared/classes/suis-input.base.mjs +0 -63
  165. package/esm2022/lib/types/index.mjs +0 -4
  166. package/esm2022/lib/types/suis-color.type.mjs +0 -2
  167. package/esm2022/lib/types/suis-size.type.mjs +0 -2
  168. package/esm2022/lib/types/suis-sort.type.mjs +0 -2
  169. package/esm2022/suis.mjs +0 -5
@@ -28,5 +28,5 @@ export declare abstract class SuisSelectButtonBase {
28
28
  onExpand(): void;
29
29
  onClear(event: any): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectButtonBase, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectButtonBase, never, never, { "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; "cleared": "cleared"; }, never, never, false, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectButtonBase, never, never, { "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; "cleared": "cleared"; }, never, never, true, never>;
32
32
  }
@@ -22,5 +22,5 @@ export declare abstract class SuisSelectMultiBase<T> extends SuisSelectBase<T> {
22
22
  clearValue(): void;
23
23
  setValue(value: T[]): void;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiBase<any>, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectMultiBase<any>, never, never, { "duplicate": { "alias": "duplicate"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "chipIconColor": { "alias": "chipIconColor"; "required": false; }; }, {}, never, never, false, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectMultiBase<any>, never, never, { "duplicate": { "alias": "duplicate"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "chipIconColor": { "alias": "chipIconColor"; "required": false; }; }, {}, never, never, true, never>;
26
26
  }
@@ -12,5 +12,5 @@ export declare abstract class SuisSelectSingleBase<T> extends SuisSelectBase<T>
12
12
  clearValue(): void;
13
13
  setValue(value: T | null): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectSingleBase<any>, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectSingleBase<any>, never, never, { "nullable": { "alias": "nullable"; "required": false; }; }, {}, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectSingleBase<any>, never, never, { "nullable": { "alias": "nullable"; "required": false; }; }, {}, never, never, true, never>;
16
16
  }
@@ -56,5 +56,5 @@ export declare abstract class SuisSelectBase<T> extends SuisInputBase {
56
56
  /** @internal */
57
57
  optionTrackBy(index: number, option: SuisSelectOption): string;
58
58
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectBase<any>, never>;
59
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectBase<any>, never, never, { "options": { "alias": "options"; "required": false; }; "sortOptions": { "alias": "sortOptions"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; }, { "searchPhraseChanged": "searchPhraseChanged"; }, ["suisSelectOption"], never, false, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectBase<any>, never, never, { "options": { "alias": "options"; "required": false; }; "sortOptions": { "alias": "sortOptions"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; }, { "searchPhraseChanged": "searchPhraseChanged"; }, ["suisSelectOption"], never, true, never>;
60
60
  }
@@ -28,5 +28,5 @@ export declare abstract class SuisButtonBase {
28
28
  clicked: EventEmitter<void>;
29
29
  onClick(event?: Event): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonBase, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, { "clicked": "clicked"; }, never, never, false, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
32
32
  }
@@ -10,5 +10,5 @@ export declare abstract class SuisCheckboxBase extends SuisInputBase {
10
10
  writeValue(obj: boolean): void;
11
11
  onChange(event: Event): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisCheckboxBase, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisCheckboxBase, never, never, { "required": { "alias": "required"; "required": false; }; }, {}, never, never, false, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisCheckboxBase, never, never, { "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
14
14
  }
@@ -38,5 +38,5 @@ export declare abstract class SuisInputBase implements ControlValueAccessor {
38
38
  /** @internal */
39
39
  onTouch(): void;
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputBase, never>;
41
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisInputBase, never, never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "changed": "changed"; "touched": "touched"; }, never, never, false, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisInputBase, never, never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "changed": "changed"; "touched": "touched"; }, never, never, true, never>;
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",
@@ -17,10 +17,10 @@
17
17
  "dashboard"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@angular/common": ">=18.2.0",
21
- "@angular/core": ">=18.2.0",
22
- "@angular/forms": ">=18.2.0",
23
- "@angular/router": ">=18.2.0"
20
+ "@angular/common": ">=19.0.0",
21
+ "@angular/core": ">=19.0.0",
22
+ "@angular/forms": ">=19.0.0",
23
+ "@angular/router": ">=19.0.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "tslib": ">=2.3.0"
@@ -34,8 +34,6 @@
34
34
  },
35
35
  ".": {
36
36
  "types": "./index.d.ts",
37
- "esm2022": "./esm2022/suis.mjs",
38
- "esm": "./esm2022/suis.mjs",
39
37
  "default": "./fesm2022/suis.mjs"
40
38
  }
41
39
  }
package/esm2022/index.mjs DELETED
@@ -1,6 +0,0 @@
1
- export * from './lib/components';
2
- export * from './lib/modules';
3
- export * from './lib/pipes';
4
- export * from './lib/services';
5
- export * from './lib/types';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kdWxlcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9waXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90eXBlcyc7XG4iXX0=
@@ -1,33 +0,0 @@
1
- export * from './suis-accordion';
2
- export * from './suis-alert';
3
- export * from './suis-box';
4
- export * from './suis-breadcrumbs';
5
- export * from './suis-chart';
6
- export * from './suis-chip';
7
- export * from './suis-container';
8
- export * from './suis-dialog';
9
- export * from './suis-dialog-container';
10
- export * from './suis-divider';
11
- export * from './suis-form-field';
12
- export * from './suis-icon';
13
- export * from './suis-input';
14
- export * from './suis-input-checkbox';
15
- export * from './suis-input-chips';
16
- export * from './suis-input-image';
17
- export * from './suis-input-number';
18
- export * from './suis-input-radio';
19
- export * from './suis-item';
20
- export * from './suis-label';
21
- export * from './suis-notification';
22
- export * from './suis-notifications';
23
- export * from './suis-pagination';
24
- export * from './suis-progress-bar';
25
- export * from './suis-spinner';
26
- export * from './suis-spinner-container';
27
- export * from './suis-table';
28
- export * from './suis-tabs';
29
- export * from './suis-text-area';
30
- export * from './suis-title';
31
- export * from './suis-toggle';
32
- export * from './suis-toolbar';
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxtQkFBbUI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QtbnVtYmVyJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1pbnB1dC1yYWRpbyc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtaXRlbSc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtbGFiZWwnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5vdGlmaWNhdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtbm90aWZpY2F0aW9ucyc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtcGFnaW5hdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtcHJvZ3Jlc3MtYmFyJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zcGlubmVyJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zcGlubmVyLWNvbnRhaW5lcic7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtdGFibGUnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLXRhYnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLXRleHQtYXJlYSc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtdGl0bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLXRvZ2dsZSc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtdG9vbGJhcic7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './suis-accordion.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYWNjb3JkaW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNEJBQTRCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtYWNjb3JkaW9uLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,31 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { NgIf } from '@angular/common';
3
- import { SuisIconComponent } from '../suis-icon/suis-icon.component';
4
- import * as i0 from "@angular/core";
5
- export class SuisAccordionComponent {
6
- constructor() {
7
- /**
8
- * Controlls styling of the accordion based on expanded state of group. By default set to false.
9
- */
10
- this.expanded = false;
11
- /**
12
- * Emits when expanded value of the accordion has been changed.
13
- */
14
- this.expandedChange = new EventEmitter();
15
- }
16
- onToggle() {
17
- this.expanded = !this.expanded;
18
- this.expandedChange.emit(this.expanded);
19
- }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisAccordionComponent, isStandalone: true, selector: "suis-accordion", inputs: { expanded: "expanded" }, outputs: { expandedChange: "expandedChange" }, ngImport: i0, template: "<div class=\"suis-accordion\">\n <button (click)=\"onToggle()\" class=\"suis-accordion__header\">\n <ng-content select=\"[suisAccordionHeader]\"></ng-content>\n <suis-icon\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n ></suis-icon>\n </button>\n <div class=\"suis-accordion__content\" *ngIf=\"expanded\">\n <ng-content select=\"[suisAccordionContent]\"></ng-content>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-accordion__header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background-color:#fff;border:.0625rem solid #dcdde1;border-radius:.25rem;font-size:1rem;font-weight:500;color:#192a56}.suis-accordion__header:hover{cursor:pointer}.suis-accordion__content{padding:.75rem 1rem;border:.0625rem solid #dcdde1;border-top:0;font-size:.875rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisAccordionComponent, decorators: [{
24
- type: Component,
25
- args: [{ selector: 'suis-accordion', standalone: true, imports: [NgIf, SuisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-accordion\">\n <button (click)=\"onToggle()\" class=\"suis-accordion__header\">\n <ng-content select=\"[suisAccordionHeader]\"></ng-content>\n <suis-icon\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n ></suis-icon>\n </button>\n <div class=\"suis-accordion__content\" *ngIf=\"expanded\">\n <ng-content select=\"[suisAccordionContent]\"></ng-content>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-accordion__header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background-color:#fff;border:.0625rem solid #dcdde1;border-radius:.25rem;font-size:1rem;font-weight:500;color:#192a56}.suis-accordion__header:hover{cursor:pointer}.suis-accordion__content{padding:.75rem 1rem;border:.0625rem solid #dcdde1;border-top:0;font-size:.875rem}\n"] }]
26
- }], propDecorators: { expanded: [{
27
- type: Input
28
- }], expandedChange: [{
29
- type: Output
30
- }] } });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1hY2NvcmRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4v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B0aGUgYWNjb3JkaW9uIGhhcyBiZWVuIGNoYW5nZWQuXG4gICAqL1xuICBAT3V0cHV0KCkgZXhwYW5kZWRDaGFuZ2UgPSBuZXcgRXZlbnRFbWl0dGVyPGJvb2xlYW4+KCk7XG5cbiAgb25Ub2dnbGUoKTogdm9pZCB7XG4gICAgdGhpcy5leHBhbmRlZCA9ICF0aGlzLmV4cGFuZGVkO1xuICAgIHRoaXMuZXhwYW5kZWRDaGFuZ2UuZW1pdCh0aGlzLmV4cGFuZGVkKTtcbiAgfVxufVxuIiwiPGRpdiBjbGFzcz1cInN1aXMtYWNjb3JkaW9uXCI+XG4gIDxidXR0b24gKGNsaWNrKT1cIm9uVG9nZ2xlKClcIiBjbGFzcz1cInN1aXMtYWNjb3JkaW9uX19oZWFkZXJcIj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJbc3Vpc0FjY29yZGlvbkhlYWRlcl1cIj48L25nLWNvbnRlbnQ+XG4gICAgPHN1aXMtaWNvblxuICAgICAgW3R5cGVdPVwiZXhwYW5kZWQgPyAnY2hldnJvbi11cCcgOiAnY2hldnJvbi1kb3duJ1wiXG4gICAgICBzaXplPVwibGdcIlxuICAgICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICA+PC9zdWlzLWljb24+XG4gIDwvYnV0dG9uPlxuICA8ZGl2IGNsYXNzPVwic3Vpcy1hY2NvcmRpb25fX2NvbnRlbnRcIiAqbmdJZj1cImV4cGFuZGVkXCI+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW3N1aXNBY2NvcmRpb25Db250ZW50XVwiPjwvbmctY29udGVudD5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './suis-alert.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYWxlcnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1hbGVydC5jb21wb25lbnQnO1xuIl19
@@ -1,38 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { NgClass, NgIf } from '@angular/common';
3
- import { SuisNgClassPipe } from '../../pipes';
4
- import { SuisIconComponent } from '../suis-icon/suis-icon.component';
5
- import * as i0 from "@angular/core";
6
- export class SuisAlertComponent {
7
- constructor() {
8
- /**
9
- * Controls visibilty of the alert. By default set to false.
10
- */
11
- this.hidden = false;
12
- /**
13
- * Emits change of hidden state.
14
- */
15
- this.hiddenChange = new EventEmitter();
16
- /**
17
- * Sets the color pallette of the alert. Type of SuisInfoColor. By default set to 'danger'.
18
- */
19
- this.color = 'danger';
20
- }
21
- onCancel() {
22
- this.hidden = true;
23
- this.hiddenChange.emit(true);
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisAlertComponent, isStandalone: true, selector: "suis-alert", inputs: { hidden: "hidden", color: "color" }, outputs: { hiddenChange: "hiddenChange" }, ngImport: i0, template: "<div\n *ngIf=\"!hidden\"\n class=\"suis-alert\"\n [ngClass]=\"'suis-alert' | suisNgClass : color\"\n>\n <ng-content></ng-content>\n <button class=\"suis-alert__cancel\" type=\"button\" (click)=\"onCancel()\">\n <suis-icon type=\"times\" [color]=\"'white'\" [size]=\"'lg'\"></suis-icon>\n </button>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-alert{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.75rem 1.25rem;border-radius:.25rem;color:#fff;font-weight:500}.suis-alert--success{background-color:#2ed573}.suis-alert--warning{background-color:#ffa502}.suis-alert--danger{background-color:#ff4757}.suis-alert__cancel{background-color:transparent;border:none;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: SuisNgClassPipe, name: "suisNgClass" }, { kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisAlertComponent, decorators: [{
29
- type: Component,
30
- args: [{ selector: 'suis-alert', standalone: true, imports: [NgIf, NgClass, SuisNgClassPipe, SuisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n *ngIf=\"!hidden\"\n class=\"suis-alert\"\n [ngClass]=\"'suis-alert' | suisNgClass : color\"\n>\n <ng-content></ng-content>\n <button class=\"suis-alert__cancel\" type=\"button\" (click)=\"onCancel()\">\n <suis-icon type=\"times\" [color]=\"'white'\" [size]=\"'lg'\"></suis-icon>\n </button>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-alert{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.75rem 1.25rem;border-radius:.25rem;color:#fff;font-weight:500}.suis-alert--success{background-color:#2ed573}.suis-alert--warning{background-color:#ffa502}.suis-alert--danger{background-color:#ff4757}.suis-alert__cancel{background-color:transparent;border:none;cursor:pointer}\n"] }]
31
- }], propDecorators: { hidden: [{
32
- type: Input
33
- }], hiddenChange: [{
34
- type: Output
35
- }], color: [{
36
- type: Input
37
- }] } });
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1hbGVydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYWxlcnQvc3Vpcy1hbGVydC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYWxlcnQvc3Vpcy1hbGVydC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRWhELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDOUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7O0FBVXJFLE1BQU0sT0FBTyxrQkFBa0I7SUFSL0I7UUFTRTs7V0FFRztRQUNNLFdBQU0sR0FBWSxLQUFLLENBQUM7UUFFakM7O1dBRUc7UUFDTyxpQkFBWSxHQUFHLElBQUksWUFBWSxFQUFXLENBQUM7UUFFckQ7O1dBRUc7UUFDTSxVQUFLLEdBQWtCLFFBQVEsQ0FBQztLQU0xQztJQUpDLFFBQVE7UUFDTixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQztRQUNuQixJQUFJLENBQUMsWUFBWSxD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IDxidXR0b24gY2xhc3M9XCJzdWlzLWFsZXJ0X19jYW5jZWxcIiB0eXBlPVwiYnV0dG9uXCIgKGNsaWNrKT1cIm9uQ2FuY2VsKClcIj5cbiAgICA8c3Vpcy1pY29uIHR5cGU9XCJ0aW1lc1wiIFtjb2xvcl09XCInd2hpdGUnXCIgW3NpemVdPVwiJ2xnJ1wiPjwvc3Vpcy1pY29uPlxuICA8L2J1dHRvbj5cbjwvZGl2PlxuIl19
@@ -1,2 +0,0 @@
1
- export * from './suis-box.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYm94L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtYm94LmNvbXBvbmVudCc7XG4iXX0=
@@ -1,25 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisBoxComponent {
4
- constructor() {
5
- /**
6
- * Adds a padding around the content. By default set to false.
7
- */
8
- this.spacing = false;
9
- /**
10
- * Sets box height to 100%. By default set to false.
11
- */
12
- this.fullHeight = false;
13
- }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisBoxComponent, isStandalone: true, selector: "suis-box", inputs: { spacing: "spacing", fullHeight: "fullHeight" }, ngImport: i0, template: "<div\n class=\"suis-box\"\n [class.suis-box--spacing]=\"spacing\"\n [class.suis-box--full-height]=\"fullHeight\"\n>\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-box{background-color:#fff;border:.0625rem solid #dcdde1;border-radius:.25rem}.suis-box--full-height{height:100%}.suis-box--spacing{padding:1rem}@media (min-width: 768px){.suis-box--spacing{padding:1.25rem}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisBoxComponent, decorators: [{
18
- type: Component,
19
- args: [{ selector: 'suis-box', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"suis-box\"\n [class.suis-box--spacing]=\"spacing\"\n [class.suis-box--full-height]=\"fullHeight\"\n>\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-box{background-color:#fff;border:.0625rem solid #dcdde1;border-radius:.25rem}.suis-box--full-height{height:100%}.suis-box--spacing{padding:1rem}@media (min-width: 768px){.suis-box--spacing{padding:1.25rem}}\n"] }]
20
- }], propDecorators: { spacing: [{
21
- type: Input
22
- }], fullHeight: [{
23
- type: Input
24
- }] } });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1ib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLWJveC9zdWlzLWJveC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYm94L3N1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HQgc2V0IHRvIGZhbHNlLlxuICAgKi9cbiAgQElucHV0KCkgc3BhY2luZzogYm9vbGVhbiA9IGZhbHNlO1xuXG4gIC8qKlxuICAgKiBTZXRzIGJveCBoZWlnaHQgdG8gMTAwJS4gQnkgZGVmYXVsdCBzZXQgdG8gZmFsc2UuXG4gICAqL1xuICBASW5wdXQoKSBmdWxsSGVpZ2h0OiBib29sZWFuID0gZmFsc2U7XG59XG4iLCI8ZGl2XG4gIGNsYXNzPVwic3Vpcy1ib3hcIlxuICBbY2xhc3Muc3Vpcy1ib3gtLXNwYWNpbmddPVwic3BhY2luZ1wiXG4gIFtjbGFzcy5zdWlzLWJveC0tZnVsbC1oZWlnaHRdPVwiZnVsbEhlaWdodFwiXG4+XG4gIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbjwvZGl2PlxuIl19
@@ -1,3 +0,0 @@
1
- export * from './suis-breadcrumbs.component';
2
- export * from './suis-breadcrumbs.interface';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnJlYWRjcnVtYnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLWJyZWFkY3J1bWJzLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtYnJlYWRjcnVtYnMuaW50ZXJmYWNlJztcbiJdfQ==
@@ -1,26 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import { NgFor, NgIf } from '@angular/common';
3
- import { RouterModule } from '@angular/router';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/router";
6
- export class SuisBreadcrumbsComponent {
7
- constructor() {
8
- /**
9
- * List of breadcrumbs items. Type of SuisBreadcrumbItem[]. By default set to empty array.
10
- */
11
- this.items = [];
12
- }
13
- /** @internal */
14
- itemTrackBy(index, item) {
15
- return `${item.label}-${index}`;
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisBreadcrumbsComponent, isStandalone: true, selector: "suis-breadcrumbs", inputs: { items: "items" }, ngImport: i0, template: "<div class=\"suis-breadcrumbs\">\n <ng-container\n *ngFor=\"let item of items; let last = last; trackBy: itemTrackBy\"\n >\n <a [routerLink]=\"last ? undefined : item.link\">\n {{ item.label }}\n </a>\n <span *ngIf=\"!last\">/</span>\n </ng-container>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-breadcrumbs a{text-decoration:none;color:#2f3640;font-weight:400}.suis-breadcrumbs a:not(:last-of-type){font-weight:600;color:#40739e}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisBreadcrumbsComponent, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'suis-breadcrumbs', standalone: true, imports: [NgIf, NgFor, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-breadcrumbs\">\n <ng-container\n *ngFor=\"let item of items; let last = last; trackBy: itemTrackBy\"\n >\n <a [routerLink]=\"last ? undefined : item.link\">\n {{ item.label }}\n </a>\n <span *ngIf=\"!last\">/</span>\n </ng-container>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-breadcrumbs a{text-decoration:none;color:#2f3640;font-weight:400}.suis-breadcrumbs a:not(:last-of-type){font-weight:600;color:#40739e}\n"] }]
23
- }], propDecorators: { items: [{
24
- type: Input
25
- }] } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1icmVhZGNydW1icy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnJlYWRjcnVtYnMvc3Vpcy1icmVhZGNydW1icy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnJlYWRjcnVtYnMvc3Vpcy1icmVhZGNydW1icy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxRSxPQUFPLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTlDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBT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=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1icmVhZGNydW1icy5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnJlYWRjcnVtYnMvc3Vpcy1icmVhZGNydW1icy5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU3Vpc0JyZWFkY3J1bWJJdGVtIHtcbiAgbGFiZWw6IHN0cmluZztcbiAgbGluazogc3RyaW5nO1xufVxuIl19
@@ -1,3 +0,0 @@
1
- export * from './suis-chart.component';
2
- export * from './suis-chart.interfaces';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtY2hhcnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLWNoYXJ0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtY2hhcnQuaW50ZXJmYWNlcyc7XG4iXX0=
@@ -1,35 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisChartDataPipe {
4
- transform(data, compareData) {
5
- if (!compareData.length)
6
- return data;
7
- const combinedData = [];
8
- data.forEach((item, index) => {
9
- combinedData.push(item);
10
- if (compareData.length - 1 >= index) {
11
- combinedData.push({
12
- ...compareData[index],
13
- compare: true,
14
- });
15
- }
16
- else {
17
- combinedData.push({
18
- value: 0,
19
- compare: true,
20
- });
21
- }
22
- });
23
- return combinedData;
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChartDataPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
26
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SuisChartDataPipe, isStandalone: true, name: "suisChartData" }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChartDataPipe, decorators: [{
29
- type: Pipe,
30
- args: [{
31
- name: 'suisChartData',
32
- standalone: true,
33
- }]
34
- }] });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1jaGFydC1kYXRhLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtY2hhcnQvc3Vpcy1jaGFydC1kYXRhLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBVXBELE1BQU0sT0FBTyxpQkFBaUI7SUFDNUIsU0FBUyxDQUNQLElBQXlCLEVBQ3pCLFdBQWdDO1FBRWhDLElBQUksQ0FBQyxXQUFXLENBQUMsTUFBTTtZQUFFLE9BQU8sSUFBSSxDQUFDO1FBRXJDLE1BQU0sWUFBWSxHQUFtQyxFQUFFLENBQUM7UUFFeEQsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLElBQUksRUFBRSxLQUFLLEVBQUUsRUFBRTtZQUMzQixZQUFZLENBQUMsSUFBS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VtW10sXG4gICAgY29tcGFyZURhdGE6IFN1aXNDaGFydERhdGFJdGVtW11cbiAgKTogU3Vpc0NoYXJ0RGF0YUNvbXBhcmlzaW9uSXRlbVtdIHtcbiAgICBpZiAoIWNvbXBhcmVEYXRhLmxlbmd0aCkgcmV0dXJuIGRhdGE7XG5cbiAgICBjb25zdCBjb21iaW5lZERhdGE6IFN1aXNDaGFydERhdGFDb21wYXJpc2lvbkl0ZW1bXSA9IFtdO1xuXG4gICAgZGF0YS5mb3JFYWNoKChpdGVtLCBpbmRleCkgPT4ge1xuICAgICAgY29tYmluZWREYXRhLnB1c2goaXRlbSk7XG4gICAgICBpZiAoY29tcGFyZURhdGEubGVuZ3RoIC0gMSA+PSBpbmRleCkge1xuICAgICAgICBjb21iaW5lZERhdGEucHVzaCh7XG4gICAgICAgICAgLi4uY29tcGFyZURhdGFbaW5kZXhdLFxuICAgICAgICAgIGNvbXBhcmU6IHRydWUsXG4gICAgICAgIH0pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29tYmluZWREYXRhLnB1c2goe1xuICAgICAgICAgIHZhbHVlOiAwLFxuICAgICAgICAgIGNvbXBhcmU6IHRydWUsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0pO1xuXG4gICAgcmV0dXJuIGNvbWJpbmVkRGF0YTtcbiAgfVxufVxuIl19
@@ -1,19 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisChartHeightPipe {
4
- transform(value, maxValue) {
5
- if (value > maxValue)
6
- return '100%';
7
- return `${(value / maxValue) * 100}%`;
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChartHeightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SuisChartHeightPipe, isStandalone: true, name: "suisChartHeight" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChartHeightPipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- name: 'suisChartHeight',
16
- standalone: true,
17
- }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1jaGFydC1oZWlnaHQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1jaGFydC9zdWlzLWNoYXJ0LWhlaWdodC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQU1wRCxNQUFNLE9BQU8sbUJBQW1CO0lBQzlCLFNBQVMsQ0FBQyxLQUFhLEVBQUUsUUFBZ0I7UUFDdkMsSUFBSSxLQUFLLEdBQUcsUUFBUTtZQUFFLE9BQU8sTUFBTSxDQUFDO1FBQ3BDLE9BQU8sR0FBRyxDQUFDLEtBQUssR0FBRyxRQUFRLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQztJQUN4QyxDQUFDOytHQUpVLG1CQUFtQjs2R0FBbkIsbUJBQW1COzs0RkFBbkIsbUJBQW1CO2tCQUovQixJQUFJO21CQUFDO29CQUNKLElBQUksRUFBRSxpQkFBaUI7b0JBQ3ZCLFVBQVUsRUFBRSxJQUFJO2lCQUNqQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQFBpcGUoe1xuICBuYW1lOiAnc3Vpc0NoYXJ0SGVpZ2h0JyxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc0NoYXJ0SGVpZ2h0UGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0odmFsdWU6IG51bWJlciwgbWF4VmFsdWU6IG51bWJlcik6IHN0cmluZyB7XG4gICAgaWYgKHZhbHVlID4gbWF4VmFsdWUpIHJldHVybiAnMTAwJSc7XG4gICAgcmV0dXJuIGAkeyh2YWx1ZSAvIG1heFZhbHVlKSAqIDEwMH0lYDtcbiAgfVxufVxuIl19
@@ -1,82 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import { NgClass, NgForOf, NgIf } from '@angular/common';
3
- import { SuisChartHeightPipe } from './suis-chart-height.pipe';
4
- import { SuisNgClassPipe } from '../../pipes';
5
- import { SuisChartDataPipe } from './suis-chart-data.pipe';
6
- import * as i0 from "@angular/core";
7
- export class SuisChartComponent {
8
- constructor() {
9
- /** @internal */
10
- this._maxValue = 100;
11
- /**
12
- * Array of the chart bars labels. By default set to empty array.
13
- */
14
- this.labels = [];
15
- /**
16
- * Array of data values and optionally colors. Type of SuisChartDataItem[]. By default set to empty array.
17
- */
18
- this.data = [];
19
- /**
20
- * Sets the default color of the chart bars. Type of SuisColor. By default set to 'primary'.
21
- */
22
- this.color = 'primary';
23
- /**
24
- * Adjusts the width of the chart bars. Type of SuisSize. By default set to 'md'.
25
- */
26
- this.size = 'md';
27
- /**
28
- * Sets the maximum value automatically based on data values. By default set to false.
29
- */
30
- this.autoMax = false;
31
- /**
32
- * Array of comparision data values and optionally colors. Type of SuisChartDataItem[]. By default set to empty array.
33
- */
34
- this.compareData = [];
35
- /**
36
- * Sets the default color of the comparision chart bars. Type of SuisColor. By default set to 'warning'.
37
- */
38
- this.compareColor = 'warning';
39
- }
40
- /** @internal */
41
- get maxValue() {
42
- if (!this.autoMax)
43
- return this._maxValue;
44
- return Math.max(...[...this.data, ...this.compareData].map((item) => item.value));
45
- }
46
- /**
47
- * Set the maximum value of the chart bars. By default set to 100.
48
- */
49
- set maxValue(value) {
50
- this._maxValue = value;
51
- }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
53
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisChartComponent, isStandalone: true, selector: "suis-chart", inputs: { maxValue: "maxValue", labels: "labels", data: "data", color: "color", size: "size", autoMax: "autoMax", compareData: "compareData", compareColor: "compareColor" }, ngImport: i0, template: "<div class=\"suis-chart\">\n <div\n class=\"suis-chart__content\"\n [ngClass]=\"'suis-chart__content' | suisNgClass : size\"\n >\n <div\n *ngFor=\"let item of data | suisChartData : compareData\"\n class=\"suis-chart__content__item\"\n [ngClass]=\"\n 'suis-chart__content__item'\n | suisNgClass\n : (item.compare ? item.color || compareColor : item.color || color)\n : (item.compare ? 'compare' : 'single')\n \"\n [style.height]=\"item.value | suisChartHeight : maxValue\"\n >\n <div class=\"suis-chart__content__item__value\">\n {{ item.value }}\n </div>\n </div>\n </div>\n <div\n class=\"suis-chart__labels\"\n [ngClass]=\"'suis-chart__labels' | suisNgClass : size\"\n >\n <div\n *ngFor=\"let label of labels\"\n class=\"suis-chart__labels__item\"\n [class.suis-chart__labels__item--double]=\"compareData.length\"\n >\n {{ label }}\n </div>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block;height:100%}.suis-chart{height:100%}.suis-chart__content,.suis-chart__labels{display:flex;align-items:flex-end;justify-content:center}.suis-chart__content--xs .suis-chart__content__item,.suis-chart__content--xs .suis-chart__labels__item,.suis-chart__labels--xs .suis-chart__content__item,.suis-chart__labels--xs .suis-chart__labels__item{width:1rem}.suis-chart__content--xs .suis-chart__content__item:not(:last-child),.suis-chart__content--xs .suis-chart__labels__item:not(:last-child),.suis-chart__labels--xs .suis-chart__content__item:not(:last-child),.suis-chart__labels--xs .suis-chart__labels__item:not(:last-child){margin-right:.5rem}.suis-chart__content--xs .suis-chart__content__item--compare,.suis-chart__content--xs .suis-chart__labels__item--compare,.suis-chart__labels--xs .suis-chart__content__item--compare,.suis-chart__labels--xs .suis-chart__labels__item--compare{margin-left:-.5rem}.suis-chart__content--xs .suis-chart__content__item--double,.suis-chart__content--xs .suis-chart__labels__item--double,.suis-chart__labels--xs .suis-chart__content__item--double,.suis-chart__labels--xs .suis-chart__labels__item--double{width:2rem}.suis-chart__content--sm .suis-chart__content__item,.suis-chart__content--sm .suis-chart__labels__item,.suis-chart__labels--sm .suis-chart__content__item,.suis-chart__labels--sm .suis-chart__labels__item{width:1.25rem}.suis-chart__content--sm .suis-chart__content__item:not(:last-child),.suis-chart__content--sm .suis-chart__labels__item:not(:last-child),.suis-chart__labels--sm .suis-chart__content__item:not(:last-child),.suis-chart__labels--sm .suis-chart__labels__item:not(:last-child){margin-right:.625rem}.suis-chart__content--sm .suis-chart__content__item--compare,.suis-chart__content--sm .suis-chart__labels__item--compare,.suis-chart__labels--sm .suis-chart__content__item--compare,.suis-chart__labels--sm .suis-chart__labels__item--compare{margin-left:-.625rem}.suis-chart__content--sm .suis-chart__content__item--double,.suis-chart__content--sm .suis-chart__labels__item--double,.suis-chart__labels--sm .suis-chart__content__item--double,.suis-chart__labels--sm .suis-chart__labels__item--double{width:2.5rem}.suis-chart__content--md .suis-chart__content__item,.suis-chart__content--md .suis-chart__labels__item,.suis-chart__labels--md .suis-chart__content__item,.suis-chart__labels--md .suis-chart__labels__item{width:1.5rem}.suis-chart__content--md .suis-chart__content__item:not(:last-child),.suis-chart__content--md .suis-chart__labels__item:not(:last-child),.suis-chart__labels--md .suis-chart__content__item:not(:last-child),.suis-chart__labels--md .suis-chart__labels__item:not(:last-child){margin-right:.75rem}.suis-chart__content--md .suis-chart__content__item--compare,.suis-chart__content--md .suis-chart__labels__item--compare,.suis-chart__labels--md .suis-chart__content__item--compare,.suis-chart__labels--md .suis-chart__labels__item--compare{margin-left:-.75rem}.suis-chart__content--md .suis-chart__content__item--double,.suis-chart__content--md .suis-chart__labels__item--double,.suis-chart__labels--md .suis-chart__content__item--double,.suis-chart__labels--md .suis-chart__labels__item--double{width:3rem}.suis-chart__content--lg .suis-chart__content__item,.suis-chart__content--lg .suis-chart__labels__item,.suis-chart__labels--lg .suis-chart__content__item,.suis-chart__labels--lg .suis-chart__labels__item{width:1.75rem}.suis-chart__content--lg .suis-chart__content__item:not(:last-child),.suis-chart__content--lg .suis-chart__labels__item:not(:last-child),.suis-chart__labels--lg .suis-chart__content__item:not(:last-child),.suis-chart__labels--lg .suis-chart__labels__item:not(:last-child){margin-right:.875rem}.suis-chart__content--lg .suis-chart__content__item--compare,.suis-chart__content--lg .suis-chart__labels__item--compare,.suis-chart__labels--lg .suis-chart__content__item--compare,.suis-chart__labels--lg .suis-chart__labels__item--compare{margin-left:-1rem}.suis-chart__content--lg .suis-chart__content__item--double,.suis-chart__content--lg .suis-chart__labels__item--double,.suis-chart__labels--lg .suis-chart__content__item--double,.suis-chart__labels--lg .suis-chart__labels__item--double{width:3.5rem}.suis-chart__content--xl .suis-chart__content__item,.suis-chart__content--xl .suis-chart__labels__item,.suis-chart__labels--xl .suis-chart__content__item,.suis-chart__labels--xl .suis-chart__labels__item{width:2rem}.suis-chart__content--xl .suis-chart__content__item:not(:last-child),.suis-chart__content--xl .suis-chart__labels__item:not(:last-child),.suis-chart__labels--xl .suis-chart__content__item:not(:last-child),.suis-chart__labels--xl .suis-chart__labels__item:not(:last-child){margin-right:1rem}.suis-chart__content--xl .suis-chart__content__item--compare,.suis-chart__content--xl .suis-chart__labels__item--compare,.suis-chart__labels--xl .suis-chart__content__item--compare,.suis-chart__labels--xl .suis-chart__labels__item--compare{margin-left:-1rem}.suis-chart__content--xl .suis-chart__content__item--double,.suis-chart__content--xl .suis-chart__labels__item--double,.suis-chart__labels--xl .suis-chart__content__item--double,.suis-chart__labels--xl .suis-chart__labels__item--double{width:4rem}.suis-chart__content{height:calc(100% - 1.25rem)}.suis-chart__content__item{background-color:#192a56;min-height:.0625rem;position:relative}.suis-chart__content__item--primary{background-color:#192a56}.suis-chart__content__item--secondary{background-color:#273c75}.suis-chart__content__item--tertiary{background-color:#dcdde1}.suis-chart__content__item--complementary{background-color:#f5f6fa}.suis-chart__content__item--success{background-color:#2ed573}.suis-chart__content__item--warning{background-color:#ffa502}.suis-chart__content__item--danger{background-color:#ff4757}.suis-chart__content__item--white{background-color:#fff}.suis-chart__content__item--gray{background-color:#bcbcbc}.suis-chart__content__item--dark{background-color:#000}.suis-chart__content__item__value{position:absolute;top:-1rem;text-align:center;width:100%;font-size:.75rem;color:#a4a7b0}.suis-chart__labels__item{margin-top:.25rem;font-size:.75rem;color:#a4a7b0;text-align:center}\n"], dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: SuisChartHeightPipe, name: "suisChartHeight" }, { kind: "pipe", type: SuisChartDataPipe, name: "suisChartData" }, { kind: "pipe", type: SuisNgClassPipe, name: "suisNgClass" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChartComponent, decorators: [{
56
- type: Component,
57
- args: [{ selector: 'suis-chart', standalone: true, imports: [
58
- NgForOf,
59
- NgIf,
60
- NgClass,
61
- SuisChartHeightPipe,
62
- SuisChartDataPipe,
63
- SuisNgClassPipe,
64
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-chart\">\n <div\n class=\"suis-chart__content\"\n [ngClass]=\"'suis-chart__content' | suisNgClass : size\"\n >\n <div\n *ngFor=\"let item of data | suisChartData : compareData\"\n class=\"suis-chart__content__item\"\n [ngClass]=\"\n 'suis-chart__content__item'\n | suisNgClass\n : (item.compare ? item.color || compareColor : item.color || color)\n : (item.compare ? 'compare' : 'single')\n \"\n [style.height]=\"item.value | suisChartHeight : maxValue\"\n >\n <div class=\"suis-chart__content__item__value\">\n {{ item.value }}\n </div>\n </div>\n </div>\n <div\n class=\"suis-chart__labels\"\n [ngClass]=\"'suis-chart__labels' | suisNgClass : size\"\n >\n <div\n *ngFor=\"let label of labels\"\n class=\"suis-chart__labels__item\"\n [class.suis-chart__labels__item--double]=\"compareData.length\"\n >\n {{ label }}\n </div>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block;height:100%}.suis-chart{height:100%}.suis-chart__content,.suis-chart__labels{display:flex;align-items:flex-end;justify-content:center}.suis-chart__content--xs .suis-chart__content__item,.suis-chart__content--xs .suis-chart__labels__item,.suis-chart__labels--xs .suis-chart__content__item,.suis-chart__labels--xs .suis-chart__labels__item{width:1rem}.suis-chart__content--xs .suis-chart__content__item:not(:last-child),.suis-chart__content--xs .suis-chart__labels__item:not(:last-child),.suis-chart__labels--xs .suis-chart__content__item:not(:last-child),.suis-chart__labels--xs .suis-chart__labels__item:not(:last-child){margin-right:.5rem}.suis-chart__content--xs .suis-chart__content__item--compare,.suis-chart__content--xs .suis-chart__labels__item--compare,.suis-chart__labels--xs .suis-chart__content__item--compare,.suis-chart__labels--xs .suis-chart__labels__item--compare{margin-left:-.5rem}.suis-chart__content--xs .suis-chart__content__item--double,.suis-chart__content--xs .suis-chart__labels__item--double,.suis-chart__labels--xs .suis-chart__content__item--double,.suis-chart__labels--xs .suis-chart__labels__item--double{width:2rem}.suis-chart__content--sm .suis-chart__content__item,.suis-chart__content--sm .suis-chart__labels__item,.suis-chart__labels--sm .suis-chart__content__item,.suis-chart__labels--sm .suis-chart__labels__item{width:1.25rem}.suis-chart__content--sm .suis-chart__content__item:not(:last-child),.suis-chart__content--sm .suis-chart__labels__item:not(:last-child),.suis-chart__labels--sm .suis-chart__content__item:not(:last-child),.suis-chart__labels--sm .suis-chart__labels__item:not(:last-child){margin-right:.625rem}.suis-chart__content--sm .suis-chart__content__item--compare,.suis-chart__content--sm .suis-chart__labels__item--compare,.suis-chart__labels--sm .suis-chart__content__item--compare,.suis-chart__labels--sm .suis-chart__labels__item--compare{margin-left:-.625rem}.suis-chart__content--sm .suis-chart__content__item--double,.suis-chart__content--sm .suis-chart__labels__item--double,.suis-chart__labels--sm .suis-chart__content__item--double,.suis-chart__labels--sm .suis-chart__labels__item--double{width:2.5rem}.suis-chart__content--md .suis-chart__content__item,.suis-chart__content--md .suis-chart__labels__item,.suis-chart__labels--md .suis-chart__content__item,.suis-chart__labels--md .suis-chart__labels__item{width:1.5rem}.suis-chart__content--md .suis-chart__content__item:not(:last-child),.suis-chart__content--md .suis-chart__labels__item:not(:last-child),.suis-chart__labels--md .suis-chart__content__item:not(:last-child),.suis-chart__labels--md .suis-chart__labels__item:not(:last-child){margin-right:.75rem}.suis-chart__content--md .suis-chart__content__item--compare,.suis-chart__content--md .suis-chart__labels__item--compare,.suis-chart__labels--md .suis-chart__content__item--compare,.suis-chart__labels--md .suis-chart__labels__item--compare{margin-left:-.75rem}.suis-chart__content--md .suis-chart__content__item--double,.suis-chart__content--md .suis-chart__labels__item--double,.suis-chart__labels--md .suis-chart__content__item--double,.suis-chart__labels--md .suis-chart__labels__item--double{width:3rem}.suis-chart__content--lg .suis-chart__content__item,.suis-chart__content--lg .suis-chart__labels__item,.suis-chart__labels--lg .suis-chart__content__item,.suis-chart__labels--lg .suis-chart__labels__item{width:1.75rem}.suis-chart__content--lg .suis-chart__content__item:not(:last-child),.suis-chart__content--lg .suis-chart__labels__item:not(:last-child),.suis-chart__labels--lg .suis-chart__content__item:not(:last-child),.suis-chart__labels--lg .suis-chart__labels__item:not(:last-child){margin-right:.875rem}.suis-chart__content--lg .suis-chart__content__item--compare,.suis-chart__content--lg .suis-chart__labels__item--compare,.suis-chart__labels--lg .suis-chart__content__item--compare,.suis-chart__labels--lg .suis-chart__labels__item--compare{margin-left:-1rem}.suis-chart__content--lg .suis-chart__content__item--double,.suis-chart__content--lg .suis-chart__labels__item--double,.suis-chart__labels--lg .suis-chart__content__item--double,.suis-chart__labels--lg .suis-chart__labels__item--double{width:3.5rem}.suis-chart__content--xl .suis-chart__content__item,.suis-chart__content--xl .suis-chart__labels__item,.suis-chart__labels--xl .suis-chart__content__item,.suis-chart__labels--xl .suis-chart__labels__item{width:2rem}.suis-chart__content--xl .suis-chart__content__item:not(:last-child),.suis-chart__content--xl .suis-chart__labels__item:not(:last-child),.suis-chart__labels--xl .suis-chart__content__item:not(:last-child),.suis-chart__labels--xl .suis-chart__labels__item:not(:last-child){margin-right:1rem}.suis-chart__content--xl .suis-chart__content__item--compare,.suis-chart__content--xl .suis-chart__labels__item--compare,.suis-chart__labels--xl .suis-chart__content__item--compare,.suis-chart__labels--xl .suis-chart__labels__item--compare{margin-left:-1rem}.suis-chart__content--xl .suis-chart__content__item--double,.suis-chart__content--xl .suis-chart__labels__item--double,.suis-chart__labels--xl .suis-chart__content__item--double,.suis-chart__labels--xl .suis-chart__labels__item--double{width:4rem}.suis-chart__content{height:calc(100% - 1.25rem)}.suis-chart__content__item{background-color:#192a56;min-height:.0625rem;position:relative}.suis-chart__content__item--primary{background-color:#192a56}.suis-chart__content__item--secondary{background-color:#273c75}.suis-chart__content__item--tertiary{background-color:#dcdde1}.suis-chart__content__item--complementary{background-color:#f5f6fa}.suis-chart__content__item--success{background-color:#2ed573}.suis-chart__content__item--warning{background-color:#ffa502}.suis-chart__content__item--danger{background-color:#ff4757}.suis-chart__content__item--white{background-color:#fff}.suis-chart__content__item--gray{background-color:#bcbcbc}.suis-chart__content__item--dark{background-color:#000}.suis-chart__content__item__value{position:absolute;top:-1rem;text-align:center;width:100%;font-size:.75rem;color:#a4a7b0}.suis-chart__labels__item{margin-top:.25rem;font-size:.75rem;color:#a4a7b0;text-align:center}\n"] }]
65
- }], propDecorators: { maxValue: [{
66
- type: Input
67
- }], labels: [{
68
- type: Input
69
- }], data: [{
70
- type: Input
71
- }], color: [{
72
- type: Input
73
- }], size: [{
74
- type: Input
75
- }], autoMax: [{
76
- type: Input
77
- }], compareData: [{
78
- type: Input
79
- }], compareColor: [{
80
- type: Input
81
- }] } });
82
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1jaGFydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtY2hhcnQvc3Vpcy1jaGFydC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtY2hhcnQvc3Vpcy1jaGFydC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxRSxPQUFPLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRTlDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDOztBQWlCM0QsTUFBTSxPQUFPLGtCQUFrQjtJQWYvQjtRQWdCRSxnQkFBZ0I7UUFDaEIsY0FBUyxHQUFXLEdBQUcsQ0FBQztRQWlCeEI7O1dBRUc7UUFDTSxXQUFNLEdBQWEsRU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1xuICBjb2xvcj86IFN1aXNDb2xvcjtcbiAgY29tcGFyZT86IGJvb2xlYW47XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './suis-chip.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtY2hpcC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLWNoaXAuY29tcG9uZW50JztcbiJdfQ==
@@ -1,44 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { NgIf, NgClass } from '@angular/common';
3
- import { SuisIconComponent } from '../suis-icon/suis-icon.component';
4
- import { SuisNgClassPipe } from '../../pipes/suis-ng-class.pipe';
5
- import * as i0 from "@angular/core";
6
- export class SuisChipComponent {
7
- constructor() {
8
- /**
9
- * Sets the color pallette of the chip. Type of SuisColor. By default set to 'primary'.
10
- */
11
- this.color = 'primary';
12
- /**
13
- * Sets the color of the cross icon. Visible only if removable set to true. Type of SuisColor. By default set to 'white'.
14
- */
15
- this.iconColor = 'white';
16
- /**
17
- * Shows cross icon with remove action. By default set to false.
18
- */
19
- this.removable = false;
20
- /**
21
- * Emits on cross icon click.
22
- */
23
- this.remove = new EventEmitter();
24
- }
25
- /** @internal */
26
- onRemove() {
27
- this.remove.emit();
28
- }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisChipComponent, isStandalone: true, selector: "suis-chip", inputs: { color: "color", iconColor: "iconColor", removable: "removable" }, outputs: { remove: "remove" }, ngImport: i0, template: "<div class=\"suis-chip\" [ngClass]=\"'suis-chip' | suisNgClass : color\">\n <ng-content></ng-content>\n <button\n *ngIf=\"removable\"\n class=\"suis-chip__remove\"\n type=\"button\"\n (click)=\"onRemove()\"\n >\n <suis-icon\n type=\"times\"\n [color]=\"iconColor\"\n [pointer]=\"true\"\n [size]=\"'md'\"\n ></suis-icon>\n </button>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-chip{display:flex;align-items:center;justify-content:center;width:fit-content;border-radius:1rem;font-size:.875rem;padding:.25rem .5rem;color:#fff}.suis-chip--primary{background-color:#192a56}.suis-chip--secondary{background-color:#273c75}.suis-chip--tertiary{background-color:#dcdde1}.suis-chip--complementary{background-color:#f5f6fa}.suis-chip--success{background-color:#2ed573}.suis-chip--warning{background-color:#ffa502}.suis-chip--danger{background-color:#ff4757}.suis-chip--white{background-color:#fff}.suis-chip--gray{background-color:#bcbcbc}.suis-chip--dark{background-color:#000}.suis-chip__remove{border:none;background-color:transparent}.suis-chip--tertiary,.suis-chip--complementary,.suis-chip--white{color:#2f3640}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }, { kind: "pipe", type: SuisNgClassPipe, name: "suisNgClass" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisChipComponent, decorators: [{
33
- type: Component,
34
- args: [{ selector: 'suis-chip', standalone: true, imports: [NgIf, NgClass, SuisIconComponent, SuisNgClassPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-chip\" [ngClass]=\"'suis-chip' | suisNgClass : color\">\n <ng-content></ng-content>\n <button\n *ngIf=\"removable\"\n class=\"suis-chip__remove\"\n type=\"button\"\n (click)=\"onRemove()\"\n >\n <suis-icon\n type=\"times\"\n [color]=\"iconColor\"\n [pointer]=\"true\"\n [size]=\"'md'\"\n ></suis-icon>\n </button>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-chip{display:flex;align-items:center;justify-content:center;width:fit-content;border-radius:1rem;font-size:.875rem;padding:.25rem .5rem;color:#fff}.suis-chip--primary{background-color:#192a56}.suis-chip--secondary{background-color:#273c75}.suis-chip--tertiary{background-color:#dcdde1}.suis-chip--complementary{background-color:#f5f6fa}.suis-chip--success{background-color:#2ed573}.suis-chip--warning{background-color:#ffa502}.suis-chip--danger{background-color:#ff4757}.suis-chip--white{background-color:#fff}.suis-chip--gray{background-color:#bcbcbc}.suis-chip--dark{background-color:#000}.suis-chip__remove{border:none;background-color:transparent}.suis-chip--tertiary,.suis-chip--complementary,.suis-chip--white{color:#2f3640}\n"] }]
35
- }], propDecorators: { color: [{
36
- type: Input
37
- }], iconColor: [{
38
- type: Input
39
- }], removable: [{
40
- type: Input
41
- }], remove: [{
42
- type: Output
43
- }] } });
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1jaGlwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1jaGlwL3N1aXMtY2hpcC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saW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