suis 1.2.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. package/README.md +0 -4
  2. package/esm2022/index.mjs +2 -1
  3. package/esm2022/lib/components/index.mjs +1 -11
  4. package/esm2022/lib/components/suis-box/suis-box.component.mjs +9 -3
  5. package/esm2022/lib/components/suis-chart/suis-chart.component.mjs +3 -3
  6. package/esm2022/lib/components/suis-container/suis-container.component.mjs +2 -2
  7. package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +2 -2
  8. package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +2 -2
  9. package/esm2022/lib/components/suis-input/suis-input.component.mjs +2 -2
  10. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +3 -3
  11. package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +2 -2
  12. package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +1 -1
  13. package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +5 -5
  14. package/esm2022/lib/components/suis-table/suis-table.component.mjs +3 -3
  15. package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +2 -2
  16. package/esm2022/lib/modules/index.mjs +4 -0
  17. package/esm2022/lib/modules/suis-button/components/suis-button/index.mjs +2 -0
  18. package/esm2022/lib/{components → modules/suis-button/components}/suis-button/suis-button.component.mjs +4 -4
  19. package/esm2022/lib/modules/suis-button/components/suis-button-link/index.mjs +2 -0
  20. package/esm2022/lib/{components → modules/suis-button/components}/suis-button-link/suis-button-link.component.mjs +4 -4
  21. package/esm2022/lib/modules/suis-button/components/suis-button-outlined/index.mjs +2 -0
  22. package/esm2022/lib/{components → modules/suis-button/components}/suis-button-outlined/suis-button-outlined.component.mjs +4 -4
  23. package/esm2022/lib/modules/suis-button/index.mjs +5 -0
  24. package/esm2022/lib/modules/suis-button/suis-button.module.mjs +30 -0
  25. package/esm2022/lib/modules/suis-navigation/components/suis-navigation/index.mjs +2 -0
  26. package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation/suis-navigation.component.mjs +3 -3
  27. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/index.mjs +2 -0
  28. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/suis-navigation-group.component.mjs +43 -0
  29. package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation-group-item/suis-navigation-group-item.component.mjs +2 -2
  30. package/esm2022/lib/modules/suis-navigation/components/suis-navigation-item/index.mjs +2 -0
  31. package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation-item/suis-navigation-item.component.mjs +1 -1
  32. package/esm2022/lib/modules/suis-navigation/directives/suis-navigation-item.directive.mjs +20 -0
  33. package/esm2022/lib/modules/suis-navigation/index.mjs +5 -0
  34. package/esm2022/lib/modules/suis-navigation/interfaces/suis-navigation-item.interfaces.mjs +2 -0
  35. package/esm2022/lib/modules/suis-navigation/suis-navigation.module.mjs +17 -0
  36. package/esm2022/lib/modules/suis-select/classes/suis-select-button.base.mjs +56 -0
  37. package/esm2022/lib/modules/suis-select/classes/suis-select-multi.base.mjs +65 -0
  38. package/esm2022/lib/modules/suis-select/classes/suis-select-single.base.mjs +46 -0
  39. package/esm2022/lib/modules/suis-select/classes/suis-select.base.mjs +88 -0
  40. package/esm2022/lib/modules/suis-select/components/suis-select/index.mjs +2 -0
  41. package/esm2022/lib/modules/suis-select/components/suis-select/suis-select.component.mjs +43 -0
  42. package/esm2022/lib/modules/suis-select/components/suis-select-button/index.mjs +2 -0
  43. package/esm2022/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.mjs +15 -0
  44. package/esm2022/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.mjs +16 -0
  45. package/esm2022/lib/modules/suis-select/components/suis-select-group/index.mjs +2 -0
  46. package/esm2022/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.mjs +60 -0
  47. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/index.mjs +2 -0
  48. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.mjs +18 -0
  49. package/esm2022/lib/modules/suis-select/components/suis-select-multi/index.mjs +2 -0
  50. package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs +45 -0
  51. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/index.mjs +2 -0
  52. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.mjs +62 -0
  53. package/esm2022/lib/modules/suis-select/components/suis-select-option/index.mjs +2 -0
  54. package/esm2022/lib/{components → modules/suis-select/components}/suis-select-option/suis-select-option.component.mjs +2 -2
  55. package/esm2022/lib/modules/suis-select/directives/suis-select-group-option.directive.mjs +20 -0
  56. package/esm2022/lib/modules/suis-select/directives/suis-select-option.directive.mjs +20 -0
  57. package/esm2022/lib/modules/suis-select/index.mjs +10 -0
  58. package/esm2022/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.mjs +2 -0
  59. package/esm2022/lib/modules/suis-select/interfaces/suis-select-option.interfaces.mjs +2 -0
  60. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.mjs +19 -0
  61. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.mjs +19 -0
  62. package/esm2022/lib/modules/suis-select/pipes/suis-select-group-label.pipe.mjs +23 -0
  63. package/esm2022/lib/modules/suis-select/pipes/suis-select-is-selected.pipe.mjs +17 -0
  64. package/esm2022/lib/modules/suis-select/pipes/suis-select-label.pipe.mjs +22 -0
  65. package/esm2022/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-chips.pipe.mjs +1 -1
  66. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.mjs +25 -0
  67. package/esm2022/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-is-selected.pipe.mjs +1 -1
  68. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.mjs +17 -0
  69. package/esm2022/lib/modules/suis-select/suis-select.module.mjs +48 -0
  70. package/esm2022/lib/shared/classes/index.mjs +1 -2
  71. package/fesm2022/suis.mjs +860 -537
  72. package/fesm2022/suis.mjs.map +1 -1
  73. package/index.d.ts +1 -0
  74. package/lib/components/index.d.ts +0 -10
  75. package/lib/components/suis-box/suis-box.component.d.ts +5 -1
  76. package/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.d.ts +1 -1
  77. package/lib/components/suis-table/suis-table.component.d.ts +1 -1
  78. package/lib/modules/index.d.ts +3 -0
  79. package/lib/{components → modules/suis-button/components}/suis-button/suis-button.component.d.ts +1 -1
  80. package/lib/{components → modules/suis-button/components}/suis-button-link/suis-button-link.component.d.ts +1 -1
  81. package/lib/{components → modules/suis-button/components}/suis-button-outlined/suis-button-outlined.component.d.ts +1 -1
  82. package/lib/modules/suis-button/index.d.ts +4 -0
  83. package/lib/modules/suis-button/suis-button.module.d.ts +9 -0
  84. package/lib/{components → modules/suis-navigation/components}/suis-navigation/index.d.ts +0 -1
  85. package/lib/{components → modules/suis-navigation/components}/suis-navigation/suis-navigation.component.d.ts +2 -2
  86. package/lib/{components → modules/suis-navigation/components}/suis-navigation-group/suis-navigation-group.component.d.ts +1 -1
  87. package/lib/{components → modules/suis-navigation/components}/suis-navigation-group-item/suis-navigation-group-item.component.d.ts +1 -1
  88. package/lib/modules/suis-navigation/components/suis-navigation-item/index.d.ts +1 -0
  89. package/lib/{components → modules/suis-navigation/components}/suis-navigation-item/suis-navigation-item.component.d.ts +1 -1
  90. package/lib/modules/suis-navigation/index.d.ts +4 -0
  91. package/lib/{components → modules}/suis-navigation/suis-navigation.module.d.ts +2 -2
  92. package/lib/modules/suis-select/classes/suis-select-button.base.d.ts +32 -0
  93. package/lib/{components/suis-select-multi/suis-select-multi.component.d.ts → modules/suis-select/classes/suis-select-multi.base.d.ts} +5 -5
  94. package/lib/modules/suis-select/classes/suis-select-single.base.d.ts +16 -0
  95. package/lib/{shared → modules/suis-select}/classes/suis-select.base.d.ts +6 -4
  96. package/lib/{components → modules/suis-select/components}/suis-select/index.d.ts +0 -1
  97. package/lib/modules/suis-select/components/suis-select/suis-select.component.d.ts +6 -0
  98. package/lib/modules/suis-select/components/suis-select-button/index.d.ts +1 -0
  99. package/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.d.ts +6 -0
  100. package/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.d.ts +6 -0
  101. package/lib/modules/suis-select/components/suis-select-group/index.d.ts +1 -0
  102. package/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.d.ts +14 -0
  103. package/lib/modules/suis-select/components/suis-select-group-option/index.d.ts +1 -0
  104. package/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.d.ts +17 -0
  105. package/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.d.ts +6 -0
  106. package/lib/modules/suis-select/components/suis-select-multi-group/index.d.ts +1 -0
  107. package/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.d.ts +14 -0
  108. package/lib/modules/suis-select/components/suis-select-option/index.d.ts +1 -0
  109. package/lib/{components → modules/suis-select/components}/suis-select-option/suis-select-option.component.d.ts +1 -1
  110. package/lib/modules/suis-select/directives/suis-select-group-option.directive.d.ts +10 -0
  111. package/lib/modules/suis-select/index.d.ts +9 -0
  112. package/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.d.ts +6 -0
  113. package/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.d.ts +8 -0
  114. package/lib/{shared → modules/suis-select}/pipes/suis-select-filter-options.pipe.d.ts +1 -1
  115. package/lib/modules/suis-select/pipes/suis-select-group-label.pipe.d.ts +8 -0
  116. package/lib/{components/suis-select → modules/suis-select/pipes}/suis-select-label.pipe.d.ts +1 -1
  117. package/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-chips.pipe.d.ts +1 -1
  118. package/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.d.ts +8 -0
  119. package/lib/{shared → modules/suis-select}/pipes/suis-select-sort-options.pipe.d.ts +1 -1
  120. package/lib/modules/suis-select/suis-select.module.d.ts +12 -0
  121. package/lib/shared/classes/index.d.ts +0 -1
  122. package/package.json +1 -2
  123. package/esm2022/lib/components/suis-button/index.mjs +0 -2
  124. package/esm2022/lib/components/suis-button-link/index.mjs +0 -2
  125. package/esm2022/lib/components/suis-button-outlined/index.mjs +0 -2
  126. package/esm2022/lib/components/suis-navigation/index.mjs +0 -3
  127. package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +0 -17
  128. package/esm2022/lib/components/suis-navigation-group/index.mjs +0 -2
  129. package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +0 -43
  130. package/esm2022/lib/components/suis-navigation-group-item/index.mjs +0 -2
  131. package/esm2022/lib/components/suis-navigation-item/index.mjs +0 -4
  132. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +0 -20
  133. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.interfaces.mjs +0 -2
  134. package/esm2022/lib/components/suis-select/index.mjs +0 -3
  135. package/esm2022/lib/components/suis-select/suis-select-is-selected.pipe.mjs +0 -17
  136. package/esm2022/lib/components/suis-select/suis-select-label.pipe.mjs +0 -22
  137. package/esm2022/lib/components/suis-select/suis-select.component.mjs +0 -78
  138. package/esm2022/lib/components/suis-select/suis-select.module.mjs +0 -31
  139. package/esm2022/lib/components/suis-select-multi/index.mjs +0 -2
  140. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +0 -98
  141. package/esm2022/lib/components/suis-select-option/index.mjs +0 -4
  142. package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +0 -20
  143. package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +0 -2
  144. package/esm2022/lib/shared/classes/suis-select.base.mjs +0 -81
  145. package/esm2022/lib/shared/pipes/suis-select-filter-options.pipe.mjs +0 -19
  146. package/esm2022/lib/shared/pipes/suis-select-sort-options.pipe.mjs +0 -17
  147. package/lib/components/suis-navigation-group-item/index.d.ts +0 -1
  148. package/lib/components/suis-navigation-item/index.d.ts +0 -3
  149. package/lib/components/suis-select/suis-select.component.d.ts +0 -16
  150. package/lib/components/suis-select/suis-select.module.d.ts +0 -9
  151. package/lib/components/suis-select-option/index.d.ts +0 -3
  152. /package/lib/{components → modules/suis-button/components}/suis-button/index.d.ts +0 -0
  153. /package/lib/{components → modules/suis-button/components}/suis-button-link/index.d.ts +0 -0
  154. /package/lib/{components → modules/suis-button/components}/suis-button-outlined/index.d.ts +0 -0
  155. /package/lib/{components → modules/suis-navigation/components}/suis-navigation-group/index.d.ts +0 -0
  156. /package/lib/{components/suis-navigation-item → modules/suis-navigation/directives}/suis-navigation-item.directive.d.ts +0 -0
  157. /package/lib/{components/suis-navigation-item → modules/suis-navigation/interfaces}/suis-navigation-item.interfaces.d.ts +0 -0
  158. /package/lib/{components → modules/suis-select/components}/suis-select-multi/index.d.ts +0 -0
  159. /package/lib/{components/suis-select-option → modules/suis-select/directives}/suis-select-option.directive.d.ts +0 -0
  160. /package/lib/{components/suis-select-option → modules/suis-select/interfaces}/suis-select-option.interfaces.d.ts +0 -0
  161. /package/lib/{components/suis-select → modules/suis-select/pipes}/suis-select-is-selected.pipe.d.ts +0 -0
  162. /package/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-is-selected.pipe.d.ts +0 -0
@@ -1,17 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisSelectSortOptionsPipe {
4
- transform(options) {
5
- return options.sort((a, b) => a.label.localeCompare(b.label));
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, isStandalone: true, name: "suisSelectSortOptions" }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, decorators: [{
11
- type: Pipe,
12
- args: [{
13
- standalone: true,
14
- name: 'suisSelectSortOptions',
15
- }]
16
- }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtc29ydC1vcHRpb25zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9zaGFyZWQvcGlwZXMvc3Vpcy1zZWxlY3Qtc29ydC1vcHRpb25zLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBT3BELE1BQU0sT0FBTyx5QkFBeUI7SUFDcEMsU0FBUyxDQUFDLE9BQThCO1FBQ3RDLE9BQU8sT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO0lBQ2hFLENBQUM7K0dBSFUseUJBQXlCOzZHQUF6Qix5QkFBeUI7OzRGQUF6Qix5QkFBeUI7a0JBSnJDLElBQUk7bUJBQUM7b0JBQ0osVUFBVSxFQUFFLElBQUk7b0JBQ2hCLElBQUksRUFBRSx1QkFBdUI7aUJBQzlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgU3Vpc1NlbGVjdE9wdGlvbiB9IGZyb20gJy4uLy4uL2NvbXBvbmVudHMvc3Vpcy1zZWxlY3Qtb3B0aW9uJztcblxuQFBpcGUoe1xuICBzdGFuZGFsb25lOiB0cnVlLFxuICBuYW1lOiAnc3Vpc1NlbGVjdFNvcnRPcHRpb25zJyxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc1NlbGVjdFNvcnRPcHRpb25zUGlwZTxUPiBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0ob3B0aW9uczogU3Vpc1NlbGVjdE9wdGlvbjxUPltdKTogU3Vpc1NlbGVjdE9wdGlvbjxUPltdIHtcbiAgICByZXR1cm4gb3B0aW9ucy5zb3J0KChhLCBiKSA9PiBhLmxhYmVsLmxvY2FsZUNvbXBhcmUoYi5sYWJlbCkpO1xuICB9XG59XG4iXX0=
@@ -1 +0,0 @@
1
- export * from './suis-navigation-group-item.component';
@@ -1,3 +0,0 @@
1
- export * from './suis-navigation-item.component';
2
- export * from './suis-navigation-item.directive';
3
- export * from './suis-navigation-item.interfaces';
@@ -1,16 +0,0 @@
1
- import { SuisSelectBase } from '../../shared/classes/suis-select.base';
2
- import * as i0 from "@angular/core";
3
- export declare class SuisSelectComponent<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<SuisSelectComponent<any>, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectComponent<any>, "suis-select", never, { "nullable": { "alias": "nullable"; "required": false; }; }, {}, never, never, true, never>;
16
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./suis-select.component";
3
- import * as i2 from "../suis-select-multi/suis-select-multi.component";
4
- import * as i3 from "../suis-select-option/suis-select-option.directive";
5
- export declare class SuisSelectModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SuisSelectModule, never, [typeof i1.SuisSelectComponent, typeof i2.SuisSelectMultiComponent, typeof i3.SuisSelectOptionDirective], [typeof i1.SuisSelectComponent, typeof i2.SuisSelectMultiComponent, typeof i3.SuisSelectOptionDirective]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<SuisSelectModule>;
9
- }
@@ -1,3 +0,0 @@
1
- export * from './suis-select-option.component';
2
- export * from './suis-select-option.directive';
3
- export * from './suis-select-option.interfaces';