suis 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/lib/components/index.mjs +1 -11
  3. package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +2 -2
  4. package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +1 -1
  5. package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +5 -5
  6. package/esm2022/lib/modules/index.mjs +4 -0
  7. package/esm2022/lib/modules/suis-button/components/suis-button/index.mjs +2 -0
  8. package/esm2022/lib/{components → modules/suis-button/components}/suis-button/suis-button.component.mjs +4 -4
  9. package/esm2022/lib/modules/suis-button/components/suis-button-link/index.mjs +2 -0
  10. package/esm2022/lib/{components → modules/suis-button/components}/suis-button-link/suis-button-link.component.mjs +4 -4
  11. package/esm2022/lib/modules/suis-button/components/suis-button-outlined/index.mjs +2 -0
  12. package/esm2022/lib/{components → modules/suis-button/components}/suis-button-outlined/suis-button-outlined.component.mjs +4 -4
  13. package/esm2022/lib/modules/suis-button/index.mjs +5 -0
  14. package/esm2022/lib/modules/suis-button/suis-button.module.mjs +30 -0
  15. package/esm2022/lib/modules/suis-navigation/components/suis-navigation/index.mjs +2 -0
  16. package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation/suis-navigation.component.mjs +3 -3
  17. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/index.mjs +2 -0
  18. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/suis-navigation-group.component.mjs +43 -0
  19. package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation-group-item/suis-navigation-group-item.component.mjs +2 -2
  20. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-item/index.mjs +2 -0
  21. package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation-item/suis-navigation-item.component.mjs +1 -1
  22. package/esm2022/lib/modules/suis-navigation/directives/suis-navigation-item.directive.mjs +20 -0
  23. package/esm2022/lib/modules/suis-navigation/index.mjs +5 -0
  24. package/esm2022/lib/modules/suis-navigation/interfaces/suis-navigation-item.interfaces.mjs +2 -0
  25. package/esm2022/lib/modules/suis-navigation/suis-navigation.module.mjs +17 -0
  26. package/esm2022/lib/modules/suis-select/classes/suis-select-button.base.mjs +56 -0
  27. package/esm2022/lib/modules/suis-select/classes/suis-select-multi.base.mjs +65 -0
  28. package/esm2022/lib/modules/suis-select/classes/suis-select-single.base.mjs +46 -0
  29. package/esm2022/lib/modules/suis-select/classes/suis-select.base.mjs +88 -0
  30. package/esm2022/lib/modules/suis-select/components/suis-select/index.mjs +2 -0
  31. package/esm2022/lib/modules/suis-select/components/suis-select/suis-select.component.mjs +43 -0
  32. package/esm2022/lib/modules/suis-select/components/suis-select-button/index.mjs +2 -0
  33. package/esm2022/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.mjs +15 -0
  34. package/esm2022/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.mjs +16 -0
  35. package/esm2022/lib/modules/suis-select/components/suis-select-group/index.mjs +2 -0
  36. package/esm2022/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.mjs +60 -0
  37. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/index.mjs +2 -0
  38. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.mjs +18 -0
  39. package/esm2022/lib/modules/suis-select/components/suis-select-multi/index.mjs +2 -0
  40. package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs +45 -0
  41. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/index.mjs +2 -0
  42. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.mjs +62 -0
  43. package/esm2022/lib/modules/suis-select/components/suis-select-option/index.mjs +2 -0
  44. package/esm2022/lib/{components → modules/suis-select/components}/suis-select-option/suis-select-option.component.mjs +2 -2
  45. package/esm2022/lib/modules/suis-select/directives/suis-select-group-option.directive.mjs +20 -0
  46. package/esm2022/lib/modules/suis-select/directives/suis-select-option.directive.mjs +20 -0
  47. package/esm2022/lib/modules/suis-select/index.mjs +10 -0
  48. package/esm2022/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.mjs +2 -0
  49. package/esm2022/lib/modules/suis-select/interfaces/suis-select-option.interfaces.mjs +2 -0
  50. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.mjs +19 -0
  51. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.mjs +19 -0
  52. package/esm2022/lib/modules/suis-select/pipes/suis-select-group-label.pipe.mjs +23 -0
  53. package/esm2022/lib/modules/suis-select/pipes/suis-select-is-selected.pipe.mjs +17 -0
  54. package/esm2022/lib/modules/suis-select/pipes/suis-select-label.pipe.mjs +22 -0
  55. package/esm2022/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-chips.pipe.mjs +1 -1
  56. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.mjs +25 -0
  57. package/esm2022/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-is-selected.pipe.mjs +1 -1
  58. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.mjs +17 -0
  59. package/esm2022/lib/modules/suis-select/suis-select.module.mjs +48 -0
  60. package/esm2022/lib/shared/classes/index.mjs +1 -2
  61. package/fesm2022/suis.mjs +838 -521
  62. package/fesm2022/suis.mjs.map +1 -1
  63. package/index.d.ts +1 -0
  64. package/lib/components/index.d.ts +0 -10
  65. package/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.d.ts +1 -1
  66. package/lib/modules/index.d.ts +3 -0
  67. package/lib/{components → modules/suis-button/components}/suis-button/suis-button.component.d.ts +1 -1
  68. package/lib/{components → modules/suis-button/components}/suis-button-link/suis-button-link.component.d.ts +1 -1
  69. package/lib/{components → modules/suis-button/components}/suis-button-outlined/suis-button-outlined.component.d.ts +1 -1
  70. package/lib/modules/suis-button/index.d.ts +4 -0
  71. package/lib/modules/suis-button/suis-button.module.d.ts +9 -0
  72. package/lib/{components → modules/suis-navigation/components}/suis-navigation/index.d.ts +0 -1
  73. package/lib/{components → modules/suis-navigation/components}/suis-navigation/suis-navigation.component.d.ts +2 -2
  74. package/lib/{components → modules/suis-navigation/components}/suis-navigation-group/suis-navigation-group.component.d.ts +1 -1
  75. package/lib/{components → modules/suis-navigation/components}/suis-navigation-group-item/suis-navigation-group-item.component.d.ts +1 -1
  76. package/lib/modules/suis-navigation/components/suis-navigation-item/index.d.ts +1 -0
  77. package/lib/{components → modules/suis-navigation/components}/suis-navigation-item/suis-navigation-item.component.d.ts +1 -1
  78. package/lib/modules/suis-navigation/index.d.ts +4 -0
  79. package/lib/{components → modules}/suis-navigation/suis-navigation.module.d.ts +2 -2
  80. package/lib/modules/suis-select/classes/suis-select-button.base.d.ts +32 -0
  81. package/lib/{components/suis-select-multi/suis-select-multi.component.d.ts → modules/suis-select/classes/suis-select-multi.base.d.ts} +5 -5
  82. package/lib/modules/suis-select/classes/suis-select-single.base.d.ts +16 -0
  83. package/lib/{shared → modules/suis-select}/classes/suis-select.base.d.ts +6 -4
  84. package/lib/{components → modules/suis-select/components}/suis-select/index.d.ts +0 -1
  85. package/lib/modules/suis-select/components/suis-select/suis-select.component.d.ts +6 -0
  86. package/lib/modules/suis-select/components/suis-select-button/index.d.ts +1 -0
  87. package/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.d.ts +6 -0
  88. package/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.d.ts +6 -0
  89. package/lib/modules/suis-select/components/suis-select-group/index.d.ts +1 -0
  90. package/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.d.ts +14 -0
  91. package/lib/modules/suis-select/components/suis-select-group-option/index.d.ts +1 -0
  92. package/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.d.ts +17 -0
  93. package/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.d.ts +6 -0
  94. package/lib/modules/suis-select/components/suis-select-multi-group/index.d.ts +1 -0
  95. package/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.d.ts +14 -0
  96. package/lib/modules/suis-select/components/suis-select-option/index.d.ts +1 -0
  97. package/lib/{components → modules/suis-select/components}/suis-select-option/suis-select-option.component.d.ts +1 -1
  98. package/lib/modules/suis-select/directives/suis-select-group-option.directive.d.ts +10 -0
  99. package/lib/modules/suis-select/index.d.ts +9 -0
  100. package/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.d.ts +6 -0
  101. package/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.d.ts +8 -0
  102. package/lib/{shared → modules/suis-select}/pipes/suis-select-filter-options.pipe.d.ts +1 -1
  103. package/lib/modules/suis-select/pipes/suis-select-group-label.pipe.d.ts +8 -0
  104. package/lib/{components/suis-select → modules/suis-select/pipes}/suis-select-label.pipe.d.ts +1 -1
  105. package/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-chips.pipe.d.ts +1 -1
  106. package/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.d.ts +8 -0
  107. package/lib/{shared → modules/suis-select}/pipes/suis-select-sort-options.pipe.d.ts +1 -1
  108. package/lib/modules/suis-select/suis-select.module.d.ts +12 -0
  109. package/lib/shared/classes/index.d.ts +0 -1
  110. package/package.json +1 -1
  111. package/esm2022/lib/components/suis-button/index.mjs +0 -2
  112. package/esm2022/lib/components/suis-button-link/index.mjs +0 -2
  113. package/esm2022/lib/components/suis-button-outlined/index.mjs +0 -2
  114. package/esm2022/lib/components/suis-navigation/index.mjs +0 -3
  115. package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +0 -17
  116. package/esm2022/lib/components/suis-navigation-group/index.mjs +0 -2
  117. package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +0 -43
  118. package/esm2022/lib/components/suis-navigation-group-item/index.mjs +0 -2
  119. package/esm2022/lib/components/suis-navigation-item/index.mjs +0 -4
  120. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +0 -20
  121. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.interfaces.mjs +0 -2
  122. package/esm2022/lib/components/suis-select/index.mjs +0 -3
  123. package/esm2022/lib/components/suis-select/suis-select-is-selected.pipe.mjs +0 -17
  124. package/esm2022/lib/components/suis-select/suis-select-label.pipe.mjs +0 -22
  125. package/esm2022/lib/components/suis-select/suis-select.component.mjs +0 -78
  126. package/esm2022/lib/components/suis-select/suis-select.module.mjs +0 -31
  127. package/esm2022/lib/components/suis-select-multi/index.mjs +0 -2
  128. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +0 -98
  129. package/esm2022/lib/components/suis-select-option/index.mjs +0 -4
  130. package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +0 -20
  131. package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +0 -2
  132. package/esm2022/lib/shared/classes/suis-select.base.mjs +0 -81
  133. package/esm2022/lib/shared/pipes/suis-select-filter-options.pipe.mjs +0 -19
  134. package/esm2022/lib/shared/pipes/suis-select-sort-options.pipe.mjs +0 -17
  135. package/lib/components/suis-navigation-group-item/index.d.ts +0 -1
  136. package/lib/components/suis-navigation-item/index.d.ts +0 -3
  137. package/lib/components/suis-select/suis-select.component.d.ts +0 -16
  138. package/lib/components/suis-select/suis-select.module.d.ts +0 -9
  139. package/lib/components/suis-select-option/index.d.ts +0 -3
  140. /package/lib/{components → modules/suis-button/components}/suis-button/index.d.ts +0 -0
  141. /package/lib/{components → modules/suis-button/components}/suis-button-link/index.d.ts +0 -0
  142. /package/lib/{components → modules/suis-button/components}/suis-button-outlined/index.d.ts +0 -0
  143. /package/lib/{components → modules/suis-navigation/components}/suis-navigation-group/index.d.ts +0 -0
  144. /package/lib/{components/suis-navigation-item → modules/suis-navigation/directives}/suis-navigation-item.directive.d.ts +0 -0
  145. /package/lib/{components/suis-navigation-item → modules/suis-navigation/interfaces}/suis-navigation-item.interfaces.d.ts +0 -0
  146. /package/lib/{components → modules/suis-select/components}/suis-select-multi/index.d.ts +0 -0
  147. /package/lib/{components/suis-select-option → modules/suis-select/directives}/suis-select-option.directive.d.ts +0 -0
  148. /package/lib/{components/suis-select-option → modules/suis-select/interfaces}/suis-select-option.interfaces.d.ts +0 -0
  149. /package/lib/{components/suis-select → modules/suis-select/pipes}/suis-select-is-selected.pipe.d.ts +0 -0
  150. /package/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-is-selected.pipe.d.ts +0 -0
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/components';
2
+ export * from './lib/modules';
2
3
  export * from './lib/pipes';
3
4
  export * from './lib/services';
4
5
  export * from './lib/types';
@@ -2,9 +2,6 @@ export * from './suis-accordion';
2
2
  export * from './suis-alert';
3
3
  export * from './suis-box';
4
4
  export * from './suis-breadcrumbs';
5
- export * from './suis-button';
6
- export * from './suis-button-link';
7
- export * from './suis-button-outlined';
8
5
  export * from './suis-chart';
9
6
  export * from './suis-chip';
10
7
  export * from './suis-container';
@@ -21,17 +18,10 @@ export * from './suis-input-number';
21
18
  export * from './suis-input-radio';
22
19
  export * from './suis-item';
23
20
  export * from './suis-label';
24
- export * from './suis-navigation';
25
- export * from './suis-navigation-group';
26
- export * from './suis-navigation-group-item';
27
- export * from './suis-navigation-item';
28
21
  export * from './suis-notification';
29
22
  export * from './suis-notifications';
30
23
  export * from './suis-pagination';
31
24
  export * from './suis-progress-bar';
32
- export * from './suis-select';
33
- export * from './suis-select-option';
34
- export * from './suis-select-multi';
35
25
  export * from './suis-spinner';
36
26
  export * from './suis-spinner-container';
37
27
  export * from './suis-table';
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SuisSelectOption } from '../suis-select-option/suis-select-option.interfaces';
2
+ import { SuisSelectOption } from '../../modules/suis-select/interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisPaginationPerPageOptionsPipe implements PipeTransform {
5
5
  transform(options: number[]): SuisSelectOption<number>[];
@@ -0,0 +1,3 @@
1
+ export * from './suis-button';
2
+ export * from './suis-navigation';
3
+ export * from './suis-select';
@@ -1,4 +1,4 @@
1
- import { SuisButtonBase } from '../../shared/classes/suis-button.base';
1
+ import { SuisButtonBase } from '../../../../shared/classes/suis-button.base';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SuisButtonComponent extends SuisButtonBase {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonComponent, never>;
@@ -1,4 +1,4 @@
1
- import { SuisButtonBase } from '../../shared/classes/suis-button.base';
1
+ import { SuisButtonBase } from '../../../../shared/classes/suis-button.base';
2
2
  import { ActivatedRoute, Params, QueryParamsHandling } from '@angular/router';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisButtonLinkComponent extends SuisButtonBase {
@@ -1,4 +1,4 @@
1
- import { SuisButtonBase } from '../../shared/classes/suis-button.base';
1
+ import { SuisButtonBase } from '../../../../shared/classes/suis-button.base';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SuisButtonOutlinedComponent extends SuisButtonBase {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonOutlinedComponent, never>;
@@ -0,0 +1,4 @@
1
+ export * from './suis-button.module';
2
+ export * from './components/suis-button';
3
+ export * from './components/suis-button-link';
4
+ export * from './components/suis-button-outlined';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/suis-button/suis-button.component";
3
+ import * as i2 from "./components/suis-button-link/suis-button-link.component";
4
+ import * as i3 from "./components/suis-button-outlined/suis-button-outlined.component";
5
+ export declare class SuisButtonModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SuisButtonModule, never, [typeof i1.SuisButtonComponent, typeof i2.SuisButtonLinkComponent, typeof i3.SuisButtonOutlinedComponent], [typeof i1.SuisButtonComponent, typeof i2.SuisButtonLinkComponent, typeof i3.SuisButtonOutlinedComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SuisButtonModule>;
9
+ }
@@ -1,2 +1 @@
1
- export * from './suis-navigation.module';
2
1
  export * from './suis-navigation.component';
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { SuisNavigationGroupItem } from '../suis-navigation-item/suis-navigation-item.interfaces';
3
- import { SuisNavigationItemDirective } from '../suis-navigation-item';
2
+ import { SuisNavigationGroupItem } from '../../interfaces/suis-navigation-item.interfaces';
3
+ import { SuisNavigationItemDirective } from '../../directives/suis-navigation-item.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SuisNavigationComponent {
6
6
  /** @internal */
@@ -1,5 +1,5 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import { SuisNavigationGroupItem, SuisNavigationItem } from '../suis-navigation-item/suis-navigation-item.interfaces';
2
+ import { SuisNavigationGroupItem, SuisNavigationItem } from '../../interfaces/suis-navigation-item.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisNavigationGroupComponent {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { SuisNavigationGroupItem, SuisNavigationItem } from '../suis-navigation-item';
2
+ import { SuisNavigationGroupItem, SuisNavigationItem } from '../../interfaces/suis-navigation-item.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisNavigationGroupItemComponent {
5
5
  /**
@@ -0,0 +1 @@
1
+ export * from './suis-navigation-item.component';
@@ -1,5 +1,5 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import { SuisNavigationItem } from './suis-navigation-item.interfaces';
2
+ import { SuisNavigationItem } from '../../interfaces/suis-navigation-item.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisNavigationItemComponent {
5
5
  /**
@@ -0,0 +1,4 @@
1
+ export * from './suis-navigation.module';
2
+ export * from './components/suis-navigation';
3
+ export * from './directives/suis-navigation-item.directive';
4
+ export * from './interfaces/suis-navigation-item.interfaces';
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./suis-navigation.component";
3
- import * as i2 from "../suis-navigation-item/suis-navigation-item.directive";
2
+ import * as i1 from "./components/suis-navigation/suis-navigation.component";
3
+ import * as i2 from "./directives/suis-navigation-item.directive";
4
4
  export declare class SuisNavigationModule {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisNavigationModule, never>;
6
6
  static ɵmod: i0.ɵɵNgModuleDeclaration<SuisNavigationModule, never, [typeof i1.SuisNavigationComponent, typeof i2.SuisNavigationItemDirective], [typeof i1.SuisNavigationComponent, typeof i2.SuisNavigationItemDirective]>;
@@ -0,0 +1,32 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class SuisSelectButtonBase {
4
+ /**
5
+ * Sets the readonly state of select button. By default set to false.
6
+ */
7
+ readonly: boolean;
8
+ /**
9
+ * Sets the invalid state of select button. By default set to false.
10
+ */
11
+ invalid: boolean;
12
+ /**
13
+ * Allows to clear the select value by using cross icon in button. By default set to false.
14
+ */
15
+ clearable: boolean;
16
+ /**
17
+ * Indicates if select content is expanded and styles chevron accordingly. By default set to false.
18
+ */
19
+ expanded: boolean;
20
+ /**
21
+ * Emits on button click.
22
+ */
23
+ expandedChange: EventEmitter<void>;
24
+ /**
25
+ * Emits on button cross icon click.
26
+ */
27
+ cleared: EventEmitter<any>;
28
+ onExpand(): void;
29
+ onClear(event: any): void;
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>;
32
+ }
@@ -1,7 +1,7 @@
1
- import { SuisSelectBase } from '../../shared/classes/suis-select.base';
2
- import { SuisColor } from '../../types/suis-color.type';
1
+ import { SuisSelectBase } from './suis-select.base';
2
+ import { SuisColor } from '../../../types/suis-color.type';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SuisSelectMultiComponent<T> extends SuisSelectBase<T> {
4
+ export declare abstract class SuisSelectMultiBase<T> extends SuisSelectBase<T> {
5
5
  /** @internal */
6
6
  values: T[];
7
7
  /**
@@ -21,6 +21,6 @@ export declare class SuisSelectMultiComponent<T> extends SuisSelectBase<T> {
21
21
  onRemove(index: number): void;
22
22
  clearValue(): void;
23
23
  setValue(value: T[]): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiComponent<any>, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectMultiComponent<any>, "suis-select-multi", never, { "duplicate": { "alias": "duplicate"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "chipIconColor": { "alias": "chipIconColor"; "required": false; }; }, {}, never, never, true, never>;
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>;
26
26
  }
@@ -0,0 +1,16 @@
1
+ import { SuisSelectBase } from './suis-select.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class SuisSelectSingleBase<T> extends SuisSelectBase<T> {
4
+ /** @internal */
5
+ value: T | null;
6
+ /**
7
+ * Allows mechanism of clearing value. By default set to true.
8
+ */
9
+ nullable: boolean;
10
+ writeValue(obj: T): void;
11
+ onSelect(value: T): void;
12
+ clearValue(): void;
13
+ setValue(value: T | null): void;
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>;
16
+ }
@@ -1,12 +1,14 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { SuisInputBase } from './suis-input.base';
3
- import { SuisSelectOption } from '../../components/suis-select-option/suis-select-option.interfaces';
4
- import { SuisSelectOptionDirective } from '../../components/suis-select-option/suis-select-option.directive';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { SuisInputBase } from '../../../shared/classes/suis-input.base';
3
+ import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
4
+ import { SuisSelectOptionDirective } from '../directives/suis-select-option.directive';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare abstract class SuisSelectBase<T> extends SuisInputBase {
7
7
  /** @internal */
8
8
  suisSelectOption?: SuisSelectOptionDirective<T>;
9
9
  /** @internal */
10
+ searchInput?: ElementRef;
11
+ /** @internal */
10
12
  protected searchPhrase: string;
11
13
  /** @internal */
12
14
  protected expanded: boolean;
@@ -1,2 +1 @@
1
- export * from './suis-select.module';
2
1
  export * from './suis-select.component';
@@ -0,0 +1,6 @@
1
+ import { SuisSelectSingleBase } from '../../classes/suis-select-single.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisSelectComponent<T> extends SuisSelectSingleBase<T> {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectComponent<any>, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectComponent<any>, "suis-select", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-select-button.component';
@@ -0,0 +1,6 @@
1
+ import { SuisSelectButtonBase } from '../../classes/suis-select-button.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisSelectButtonComponent extends SuisSelectButtonBase {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectButtonComponent, "suis-select-button", never, {}, {}, never, ["*"], true, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { SuisSelectButtonBase } from '../../classes/suis-select-button.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisSelectButtonMultiComponent extends SuisSelectButtonBase {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectButtonMultiComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectButtonMultiComponent, "suis-select-button-multi", never, {}, {}, never, ["*"], true, never>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-select-group.component';
@@ -0,0 +1,14 @@
1
+ import { SuisSelectSingleBase } from '../../classes/suis-select-single.base';
2
+ import { SuisSelectGroupOptionDirective } from '../../directives/suis-select-group-option.directive';
3
+ import { SuisSelectGroupOption } from '../../interfaces/suis-select-group-option.interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SuisSelectGroupComponent<T> extends SuisSelectSingleBase<T> {
6
+ /** @internal */
7
+ suisSelectGroupOption?: SuisSelectGroupOptionDirective<T>;
8
+ /**
9
+ * Group options displayed in dropdown list. Type of SuisSelectGroupOption[].
10
+ */
11
+ groupOptions: SuisSelectGroupOption<T>[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupComponent<any>, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectGroupComponent<any>, "suis-select-group", never, { "groupOptions": { "alias": "groupOptions"; "required": false; }; }, {}, ["suisSelectGroupOption"], never, true, never>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-select-group-option.component';
@@ -0,0 +1,17 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { SuisSelectGroupOption } from '../../interfaces/suis-select-group-option.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisSelectGroupOptionComponent<T> {
5
+ /**
6
+ * Item data. Type of SuisSelectGroupOption<T>. Required input.
7
+ */
8
+ option?: SuisSelectGroupOption<T>;
9
+ /**
10
+ * Template to be displayed instead of item's label.
11
+ */
12
+ templateRef?: TemplateRef<{
13
+ $implicit: SuisSelectGroupOption<T>;
14
+ }>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupOptionComponent<any>, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectGroupOptionComponent<any>, "suis-select-group-option", never, { "option": { "alias": "option"; "required": true; }; "templateRef": { "alias": "templateRef"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { SuisSelectMultiBase } from '../../classes/suis-select-multi.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisSelectMultiComponent<T> extends SuisSelectMultiBase<T> {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiComponent<any>, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectMultiComponent<any>, "suis-select-multi", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-select-multi-group.component';
@@ -0,0 +1,14 @@
1
+ import { SuisSelectMultiBase } from '../../classes/suis-select-multi.base';
2
+ import { SuisSelectGroupOption } from '../../interfaces/suis-select-group-option.interfaces';
3
+ import { SuisSelectGroupOptionDirective } from '../../directives/suis-select-group-option.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SuisSelectMultiGroupComponent<T> extends SuisSelectMultiBase<T> {
6
+ /** @internal */
7
+ suisSelectGroupOption?: SuisSelectGroupOptionDirective<T>;
8
+ /**
9
+ * Group options displayed in dropdown list. Type of SuisSelectGroupOption[].
10
+ */
11
+ groupOptions: SuisSelectGroupOption<T>[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiGroupComponent<any>, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectMultiGroupComponent<any>, "suis-select-multi-group", never, { "groupOptions": { "alias": "groupOptions"; "required": false; }; }, {}, ["suisSelectGroupOption"], never, true, never>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-select-option.component';
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { SuisSelectOption } from './suis-select-option.interfaces';
2
+ import { SuisSelectOption } from '../../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectOptionComponent<T> {
5
5
  /**
@@ -0,0 +1,10 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisSelectGroupOptionDirective<T> {
4
+ /**
5
+ * Custom template of the group option.
6
+ */
7
+ readonly templateRef: TemplateRef<any>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupOptionDirective<any>, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectGroupOptionDirective<any>, "[suisSelectGroupOption]", never, {}, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,9 @@
1
+ export * from './suis-select.module';
2
+ export * from './components/suis-select';
3
+ export * from './components/suis-select-group';
4
+ export * from './components/suis-select-multi';
5
+ export * from './components/suis-select-multi-group';
6
+ export * from './directives/suis-select-group-option.directive';
7
+ export * from './directives/suis-select-option.directive';
8
+ export * from './interfaces/suis-select-group-option.interfaces';
9
+ export * from './interfaces/suis-select-option.interfaces';
@@ -0,0 +1,6 @@
1
+ import { SuisSelectOption } from './suis-select-option.interfaces';
2
+ export interface SuisSelectGroupOption<T> {
3
+ label: string;
4
+ children: SuisSelectOption<T>[];
5
+ [key: string]: any;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisSelectFilterGroupOptionsPipe<T> implements PipeTransform {
5
+ transform(groupOptions: SuisSelectGroupOption<T>[], phrase: string): SuisSelectGroupOption<T>[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectFilterGroupOptionsPipe<any>, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectFilterGroupOptionsPipe<any>, "suisSelectFilterGroupOptions", true>;
8
+ }
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SuisSelectOption } from '../../components/suis-select-option';
2
+ import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectFilterOptionsPipe<T> implements PipeTransform {
5
5
  transform(options: SuisSelectOption<T>[], phrase: string): SuisSelectOption<T>[];
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisSelectGroupLabelPipe<T> implements PipeTransform {
5
+ transform(value: T, groupOptions: SuisSelectGroupOption<T>[], placeholder: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupLabelPipe<any>, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectGroupLabelPipe<any>, "suisSelectGroupLabel", true>;
8
+ }
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SuisSelectOption } from '../suis-select-option/suis-select-option.interfaces';
2
+ import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectLabelPipe<T> implements PipeTransform {
5
5
  transform(value: T, options: SuisSelectOption<T>[], placeholder: string): string;
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SuisSelectOption } from '../suis-select-option/suis-select-option.interfaces';
2
+ import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectMultiChipsPipe<T> implements PipeTransform {
5
5
  transform(values: T[], options: SuisSelectOption<T>[]): string[];
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisSelectMultiGroupChipsPipe<T> implements PipeTransform {
5
+ transform(values: T[], groupOptions: SuisSelectGroupOption<T>[]): string[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiGroupChipsPipe<any>, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectMultiGroupChipsPipe<any>, "suisSelectMultiGroupChips", true>;
8
+ }
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SuisSelectOption } from '../../components/suis-select-option';
2
+ import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectSortOptionsPipe<T> implements PipeTransform {
5
5
  transform(options: SuisSelectOption<T>[]): SuisSelectOption<T>[];
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/suis-select/suis-select.component";
3
+ import * as i2 from "./components/suis-select-group/suis-select-group.component";
4
+ import * as i3 from "./components/suis-select-multi/suis-select-multi.component";
5
+ import * as i4 from "./components/suis-select-multi-group/suis-select-multi-group.component";
6
+ import * as i5 from "./directives/suis-select-option.directive";
7
+ import * as i6 from "./directives/suis-select-group-option.directive";
8
+ export declare class SuisSelectModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SuisSelectModule, never, [typeof i1.SuisSelectComponent, typeof i2.SuisSelectGroupComponent, typeof i3.SuisSelectMultiComponent, typeof i4.SuisSelectMultiGroupComponent, typeof i5.SuisSelectOptionDirective, typeof i6.SuisSelectGroupOptionDirective], [typeof i1.SuisSelectComponent, typeof i2.SuisSelectGroupComponent, typeof i3.SuisSelectMultiComponent, typeof i4.SuisSelectMultiGroupComponent, typeof i5.SuisSelectOptionDirective, typeof i6.SuisSelectGroupOptionDirective]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<SuisSelectModule>;
12
+ }
@@ -1,4 +1,3 @@
1
1
  export * from './suis-button.base';
2
2
  export * from './suis-checkbox.base';
3
3
  export * from './suis-input.base';
4
- export * from './suis-select.base';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",
@@ -1,2 +0,0 @@
1
- export * from './suis-button.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnV0dG9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtYnV0dG9uLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './suis-button-link.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnV0dG9uLWxpbmsvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1idXR0b24tbGluay5jb21wb25lbnQnO1xuIl19
@@ -1,2 +0,0 @@
1
- export * from './suis-button-outlined.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYnV0dG9uLW91dGxpbmVkL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtYnV0dG9uLW91dGxpbmVkLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './suis-navigation.module';
2
- export * from './suis-navigation.component';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbmF2aWdhdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtbmF2aWdhdGlvbi5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24uY29tcG9uZW50JztcbiJdfQ==
@@ -1,17 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { SuisNavigationComponent } from './suis-navigation.component';
3
- import { SuisNavigationItemDirective } from '../suis-navigation-item';
4
- import * as i0 from "@angular/core";
5
- export class SuisNavigationModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationModule, imports: [SuisNavigationComponent, SuisNavigationItemDirective], exports: [SuisNavigationComponent, SuisNavigationItemDirective] }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationModule, imports: [SuisNavigationComponent] }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- imports: [SuisNavigationComponent, SuisNavigationItemDirective],
14
- exports: [SuisNavigationComponent, SuisNavigationItemDirective],
15
- }]
16
- }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1uYXZpZ2F0aW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1uYXZpZ2F0aW9uL3N1aXMtbmF2aWdhdGlvbi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUN0RSxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7QUFNdEUsTUFBTSxPQUFPLG9CQUFvQjsrR0FBcEIsb0JBQW9CO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vbi1ncm91cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24tZ3JvdXAuY29tcG9uZW50JztcbiJdfQ==
@@ -1,43 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input, TemplateRef, } from '@angular/core';
2
- import { NgFor, NgIf } from '@angular/common';
3
- import { SuisNavigationItemComponent } from '../suis-navigation-item';
4
- import { RouterModule } from '@angular/router';
5
- import { SuisNavigationGroupItemComponent } from '../suis-navigation-group-item/suis-navigation-group-item.component';
6
- import * as i0 from "@angular/core";
7
- export class SuisNavigationGroupComponent {
8
- constructor() {
9
- /**
10
- * Expanded state of the navigation group. By default set to true.
11
- */
12
- this.expanded = true;
13
- /**
14
- * Adds expand / collapse logic to group header items. By default set to false.
15
- */
16
- this.expandable = false;
17
- }
18
- /** @internal */
19
- itemTrackBy(index, item) {
20
- return `${item.label}-${index}`;
21
- }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisNavigationGroupComponent, isStandalone: true, selector: "suis-navigation-group", inputs: { item: "item", templateRef: "templateRef", expanded: "expanded", expandable: "expandable" }, ngImport: i0, template: "<div *ngIf=\"item\" class=\"suis-navigation-group\">\n <div class=\"suis-navigation-group__header\">\n <suis-navigation-group-item\n [item]=\"item\"\n [templateRef]=\"templateRef\"\n [expandable]=\"expandable && !!item.children\"\n [(expanded)]=\"expanded\"\n ></suis-navigation-group-item>\n </div>\n <div *ngIf=\"expanded\" class=\"suis-navigation-group__children\">\n <suis-navigation-item\n *ngFor=\"let childItem of item.children; trackBy: itemTrackBy\"\n [item]=\"childItem\"\n [templateRef]=\"templateRef\"\n ></suis-navigation-item>\n </div>\n</div>\n", styles: [":host{display:block}.suis-navigation-group__header{display:flex;justify-content:space-between}\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: "component", type: SuisNavigationItemComponent, selector: "suis-navigation-item", inputs: ["item", "templateRef"] }, { kind: "component", type: SuisNavigationGroupItemComponent, selector: "suis-navigation-group-item", inputs: ["item", "templateRef", "expanded", "expandable"], outputs: ["expandedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationGroupComponent, decorators: [{
26
- type: Component,
27
- args: [{ selector: 'suis-navigation-group', standalone: true, imports: [
28
- NgIf,
29
- NgFor,
30
- RouterModule,
31
- SuisNavigationItemComponent,
32
- SuisNavigationGroupItemComponent,
33
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"item\" class=\"suis-navigation-group\">\n <div class=\"suis-navigation-group__header\">\n <suis-navigation-group-item\n [item]=\"item\"\n [templateRef]=\"templateRef\"\n [expandable]=\"expandable && !!item.children\"\n [(expanded)]=\"expanded\"\n ></suis-navigation-group-item>\n </div>\n <div *ngIf=\"expanded\" class=\"suis-navigation-group__children\">\n <suis-navigation-item\n *ngFor=\"let childItem of item.children; trackBy: itemTrackBy\"\n [item]=\"childItem\"\n [templateRef]=\"templateRef\"\n ></suis-navigation-item>\n </div>\n</div>\n", styles: [":host{display:block}.suis-navigation-group__header{display:flex;justify-content:space-between}\n"] }]
34
- }], propDecorators: { item: [{
35
- type: Input
36
- }], templateRef: [{
37
- type: Input
38
- }], expanded: [{
39
- type: Input
40
- }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wYW5kZWRcIiBjbGFzcz1cInN1aXMtbmF2aWdhdGlvbi1ncm91cF9fY2hpbGRyZW5cIj5cbiAgICA8c3Vpcy1uYXZpZ2F0aW9uLWl0ZW1cbiAgICAgICpuZ0Zvcj1cImxldCBjaGlsZEl0ZW0gb2YgaXRlbS5jaGlsZHJlbjsgdHJhY2tCeTogaXRlbVRyYWNrQnlcIlxuICAgICAgW2l0ZW1dPVwiY2hpbGRJdGVtXCJcbiAgICAgIFt0ZW1wbGF0ZVJlZl09XCJ0ZW1wbGF0ZVJlZlwiXG4gICAgPjwvc3Vpcy1uYXZpZ2F0aW9uLWl0ZW0+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './suis-navigation-group-item.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbmF2aWdhdGlvbi1ncm91cC1pdGVtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtbmF2aWdhdGlvbi1ncm91cC1pdGVtLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,4 +0,0 @@
1
- export * from './suis-navigation-item.component';
2
- export * from './suis-navigation-item.directive';
3
- export * from './suis-navigation-item.interfaces';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbmF2aWdhdGlvbi1pdGVtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLG1DQUFtQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24taXRlbS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24taXRlbS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24taXRlbS5pbnRlcmZhY2VzJztcbiJdfQ==