suis 3.0.2 → 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 +1 -0
  2. package/fesm2022/suis.mjs +312 -312
  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 -30
  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 -25
  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 -75
  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 -56
  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 -27
  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 -84
  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 -61
  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 -33
  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 -24
  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 -73
  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 -69
  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 -46
  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 -40
  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 -13
  129. package/esm2022/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.mjs +0 -13
  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 -59
  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 -42
  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 -61
  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
@@ -1,2 +0,0 @@
1
- export * from './suis-input-image.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtaW1hZ2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1pbnB1dC1pbWFnZS5jb21wb25lbnQnO1xuIl19
@@ -1,61 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Output, ViewChild, forwardRef, } from '@angular/core';
2
- import { SuisInputBase } from '../../shared/classes/suis-input.base';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { SuisIconComponent } from '../suis-icon/suis-icon.component';
5
- import * as i0 from "@angular/core";
6
- export class SuisInputImageComponent extends SuisInputBase {
7
- constructor() {
8
- super(...arguments);
9
- /**
10
- * Emits value on FileList upload.
11
- */
12
- this.uploaded = new EventEmitter();
13
- /** @internal */
14
- this.value = null;
15
- /** @internal */
16
- this.imageUrl = null;
17
- }
18
- writeValue(obj) {
19
- if (typeof obj === 'string')
20
- this.imageUrl = obj;
21
- this.cdRef.markForCheck();
22
- }
23
- onChange(event) {
24
- const target = event.target;
25
- if (target.files)
26
- this.uploaded.emit(target.files);
27
- this.cdRef.markForCheck();
28
- }
29
- onRemove() {
30
- this.imageUrl = null;
31
- this.value = null;
32
- (this.fileInput?.nativeElement).value = '';
33
- this._onChange(this.value);
34
- this.changed.emit(this.value);
35
- this.cdRef.markForCheck();
36
- }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisInputImageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SuisInputImageComponent, isStandalone: true, selector: "suis-input-image", outputs: { uploaded: "uploaded" }, providers: [
39
- {
40
- provide: NG_VALUE_ACCESSOR,
41
- multi: true,
42
- useExisting: forwardRef(() => SuisInputImageComponent),
43
- },
44
- ], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n class=\"suis-input-image\"\n [class.suis-input-image--invalid]=\"invalid\"\n [class.suis-input-image--readonly]=\"readonly\"\n>\n @if (imageUrl) {\n <figure class=\"suis-input-image__preview\">\n <img [src]=\"imageUrl\" alt=\"Uploaded image\" />\n <button type=\"button\" (click)=\"onRemove()\" [disabled]=\"readonly\">\n <suis-icon\n type=\"times\"\n color=\"danger\"\n size=\"md\"\n [filled]=\"true\"\n ></suis-icon>\n </button>\n </figure>\n }\n <input\n #input\n type=\"file\"\n class=\"suis-input-image__input\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n />\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-input-image{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.625rem;display:flex;align-items:center}.suis-input-image:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-image--invalid{border:.0625rem solid #ff4757}.suis-input-image--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-input-image--readonly{background-color:#f5f6fa;cursor:not-allowed}.suis-input-image--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.suis-input-image__preview{position:relative;margin-right:1rem}.suis-input-image__preview img{display:block;min-width:6.25rem;min-height:6.25rem;max-width:6.25rem;max-height:6.25rem;border-radius:.25rem;object-fit:contain}.suis-input-image__preview button{position:absolute;top:.1875rem;right:.1875rem;border:0;background-color:transparent;cursor:pointer}.suis-input-image--invalid{color:#ff4757}.suis-input-image__input::file-selector-button{color:#fff;background-color:#273c75;border-radius:.25rem;transition:background-color .25s ease-in-out;padding:.25rem .75rem;border:0;font-size:.75rem}.suis-input-image__input:not(:disabled)::file-selector-button:hover{background-color:#273c75d9;cursor:pointer}.suis-input-image__input:disabled::file-selector-button,.suis-input-image__input:disabled{cursor:not-allowed}\n"], dependencies: [{ kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisInputImageComponent, decorators: [{
47
- type: Component,
48
- args: [{ selector: 'suis-input-image', standalone: true, imports: [SuisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
49
- {
50
- provide: NG_VALUE_ACCESSOR,
51
- multi: true,
52
- useExisting: forwardRef(() => SuisInputImageComponent),
53
- },
54
- ], template: "<div\n class=\"suis-input-image\"\n [class.suis-input-image--invalid]=\"invalid\"\n [class.suis-input-image--readonly]=\"readonly\"\n>\n @if (imageUrl) {\n <figure class=\"suis-input-image__preview\">\n <img [src]=\"imageUrl\" alt=\"Uploaded image\" />\n <button type=\"button\" (click)=\"onRemove()\" [disabled]=\"readonly\">\n <suis-icon\n type=\"times\"\n color=\"danger\"\n size=\"md\"\n [filled]=\"true\"\n ></suis-icon>\n </button>\n </figure>\n }\n <input\n #input\n type=\"file\"\n class=\"suis-input-image__input\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n />\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-input-image{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.625rem;display:flex;align-items:center}.suis-input-image:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-image--invalid{border:.0625rem solid #ff4757}.suis-input-image--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-input-image--readonly{background-color:#f5f6fa;cursor:not-allowed}.suis-input-image--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.suis-input-image__preview{position:relative;margin-right:1rem}.suis-input-image__preview img{display:block;min-width:6.25rem;min-height:6.25rem;max-width:6.25rem;max-height:6.25rem;border-radius:.25rem;object-fit:contain}.suis-input-image__preview button{position:absolute;top:.1875rem;right:.1875rem;border:0;background-color:transparent;cursor:pointer}.suis-input-image--invalid{color:#ff4757}.suis-input-image__input::file-selector-button{color:#fff;background-color:#273c75;border-radius:.25rem;transition:background-color .25s ease-in-out;padding:.25rem .75rem;border:0;font-size:.75rem}.suis-input-image__input:not(:disabled)::file-selector-button:hover{background-color:#273c75d9;cursor:pointer}.suis-input-image__input:disabled::file-selector-button,.suis-input-image__input:disabled{cursor:not-allowed}\n"] }]
55
- }], propDecorators: { fileInput: [{
56
- type: ViewChild,
57
- args: ['input']
58
- }], uploaded: [{
59
- type: Output
60
- }] } });
61
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC1pbWFnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtaW1hZ2Uvc3Vpcy1pbnB1dC1pbWFnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtaW1hZ2Uvc3Vpcy1pbnB1dC1pbWFnZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixTQUFTLEVBQ1QsVUFBVSxHQUNYLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUNyRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNuRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQzs7QUFpQnJFLE1BQU0sT0FBTyx1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WFnZV9fcHJldmlld1wiPlxuICAgIDxpbWcgW3NyY109XCJpbWFnZVVybFwiIGFsdD1cIlVwbG9hZGVkIGltYWdlXCIgLz5cbiAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiAoY2xpY2spPVwib25SZW1vdmUoKVwiIFtkaXNhYmxlZF09XCJyZWFkb25seVwiPlxuICAgICAgPHN1aXMtaWNvblxuICAgICAgICB0eXBlPVwidGltZXNcIlxuICAgICAgICBjb2xvcj1cImRhbmdlclwiXG4gICAgICAgIHNpemU9XCJtZFwiXG4gICAgICAgIFtmaWxsZWRdPVwidHJ1ZVwiXG4gICAgICA+PC9zdWlzLWljb24+XG4gICAgPC9idXR0b24+XG4gIDwvZmlndXJlPlxuICB9XG4gIDxpbnB1dFxuICAgICNpbnB1dFxuICAgIHR5cGU9XCJmaWxlXCJcbiAgICBjbGFzcz1cInN1aXMtaW5wdXQtaW1hZ2VfX2lucHV0XCJcbiAgICBbYXR0ci5pZF09XCJpZFwiXG4gICAgW2F0dHIubmFtZV09XCJuYW1lXCJcbiAgICBbZGlzYWJsZWRdPVwicmVhZG9ubHlcIlxuICAgIChpbnB1dCk9XCJvbkNoYW5nZSgkZXZlbnQpXCJcbiAgICAoZm9jdXMpPVwib25Ub3VjaCgpXCJcbiAgLz5cbjwvZGl2PlxuIl19
@@ -1,2 +0,0 @@
1
- export * from './suis-input-number.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtbnVtYmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtaW5wdXQtbnVtYmVyLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,49 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input, forwardRef, } from '@angular/core';
2
- import { SuisInputBase } from '../../shared/classes';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export class SuisInputNumberComponent extends SuisInputBase {
6
- constructor() {
7
- super(...arguments);
8
- /**
9
- * Placeholder text displayed in input. By default set to empty string.
10
- */
11
- this.placeholder = '';
12
- /** @internal */
13
- this.value = null;
14
- }
15
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
- writeValue(obj) {
17
- this.value = obj;
18
- this._onChange(this.value);
19
- this.cdRef.markForCheck();
20
- }
21
- onChange(event) {
22
- const target = event.target;
23
- this.value = target.value ? Number(target.value) : null;
24
- this._onChange(this.value);
25
- this.changed.emit(this.value);
26
- this.cdRef.markForCheck();
27
- }
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisInputNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
29
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisInputNumberComponent, isStandalone: true, selector: "suis-input-number", inputs: { placeholder: "placeholder" }, providers: [
30
- {
31
- provide: NG_VALUE_ACCESSOR,
32
- multi: true,
33
- useExisting: forwardRef(() => SuisInputNumberComponent),
34
- },
35
- ], usesInheritance: true, ngImport: i0, template: "<input\n type=\"number\"\n class=\"suis-input-number\"\n [class.suis-input-number--invalid]=\"invalid\"\n [class.suis-input-number--readonly]=\"readonly\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n/>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-input-number{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.625rem;-moz-appearance:textfield}.suis-input-number:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-number--invalid{border:.0625rem solid #ff4757}.suis-input-number--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-input-number--readonly{background-color:#f5f6fa;cursor:not-allowed}.suis-input-number--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.suis-input-number::-webkit-outer-spin-button,.suis-input-number::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisInputNumberComponent, decorators: [{
38
- type: Component,
39
- args: [{ selector: 'suis-input-number', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
40
- {
41
- provide: NG_VALUE_ACCESSOR,
42
- multi: true,
43
- useExisting: forwardRef(() => SuisInputNumberComponent),
44
- },
45
- ], template: "<input\n type=\"number\"\n class=\"suis-input-number\"\n [class.suis-input-number--invalid]=\"invalid\"\n [class.suis-input-number--readonly]=\"readonly\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n/>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-input-number{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.625rem;-moz-appearance:textfield}.suis-input-number:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-number--invalid{border:.0625rem solid #ff4757}.suis-input-number--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-input-number--readonly{background-color:#f5f6fa;cursor:not-allowed}.suis-input-number--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.suis-input-number::-webkit-outer-spin-button,.suis-input-number::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n"] }]
46
- }], propDecorators: { placeholder: [{
47
- type: Input
48
- }] } });
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC1udW1iZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLWlucHV0LW51bWJlci9zdWlzLWlucHV0LW51bWJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtbnVtYmVyL3N1aXMtaW5wdXQtbnVtYmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFDTCxVQUFVLEdBQ1gsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQWlCbkQsTUFBTSxPQUFPLHdCQUF5QixTQUFRLGFBQWE7SUFmM0Q7O1FBZ0JFOztXQUVHO1FBQ00sZ0JBQVcsR0FBVyxFQUFFLENBQUM7UUFFbEMsZ0JBQWdCO1FBQ2hCLFVBQUssR0FBa0IsSUFBSSxDQUFDO0tBZ0I3Qjt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lucHV0LW51bWJlci0tcmVhZG9ubHldPVwicmVhZG9ubHlcIlxuICBbYXR0ci5pZF09XCJpZFwiXG4gIFthdHRyLm5hbWVdPVwibmFtZVwiXG4gIFt2YWx1ZV09XCJ2YWx1ZVwiXG4gIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXG4gIFtkaXNhYmxlZF09XCJyZWFkb25seVwiXG4gIChpbnB1dCk9XCJvbkNoYW5nZSgkZXZlbnQpXCJcbiAgKGZvY3VzKT1cIm9uVG91Y2goKVwiXG4vPlxuIl19
@@ -1,2 +0,0 @@
1
- export * from './suis-input-radio.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtcmFkaW8vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1pbnB1dC1yYWRpby5jb21wb25lbnQnO1xuIl19
@@ -1,56 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, forwardRef, } from '@angular/core';
2
- import { SuisLabelComponent } from '../suis-label/suis-label.component';
3
- import { NG_VALUE_ACCESSOR, RadioControlValueAccessor } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export class SuisInputRadioComponent extends RadioControlValueAccessor {
6
- constructor() {
7
- super(...arguments);
8
- /**
9
- * Sets input disabled state. By default set to false.
10
- */
11
- this.readonly = false;
12
- /**
13
- * Adds invalid styling to the input. By default set to false.
14
- */
15
- this.invalid = false;
16
- /**
17
- * Sets input checked state to true. By default set to false.
18
- */
19
- this.default = false;
20
- }
21
- ngAfterViewInit() {
22
- if (this.default)
23
- (this.radioInput?.nativeElement).checked = true;
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisInputRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisInputRadioComponent, isStandalone: true, selector: "suis-input-radio", inputs: { id: "id", readonly: "readonly", invalid: "invalid", default: "default" }, providers: [
27
- {
28
- provide: NG_VALUE_ACCESSOR,
29
- multi: true,
30
- useExisting: forwardRef(() => SuisInputRadioComponent),
31
- },
32
- ], viewQueries: [{ propertyName: "radioInput", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<input\n #input\n type=\"radio\"\n class=\"suis-input-radio\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [disabled]=\"readonly\"\n/>\n\n<suis-label\n class=\"suis-input-radio__label\"\n [class.suis-input-radio__label--invalid]=\"invalid\"\n [class.suis-input-radio__label--readonly]=\"readonly\"\n [for]=\"id\"\n [pointer]=\"true\"\n [readonly]=\"readonly\"\n>\n <div\n [tabindex]=\"readonly ? -1 : 0\"\n class=\"suis-input-radio__circle\"\n [class.suis-input-radio__circle--invalid]=\"invalid\"\n [class.suis-input-radio__circle--readonly]=\"readonly\"\n >\n <div class=\"suis-input-radio__circle__fill\"></div>\n </div>\n <ng-content></ng-content>\n</suis-label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:flex}.suis-input-radio{display:none}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle{border:.0625rem solid #192a56}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle__fill{border-radius:100%;height:.75rem;width:.75rem;background-color:#273c75}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle--readonly{border:.0625rem solid #dcdde1}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle--readonly .suis-input-radio__circle__fill{background-color:#dcdde1}.suis-input-radio__label--invalid{color:#ff4757}.suis-input-radio__label--readonly{cursor:not-allowed}.suis-input-radio__circle{margin-right:.5rem;border:.0625rem solid #dcdde1;border-radius:100%;height:1.25rem;width:1.25rem;display:flex;justify-content:center;align-items:center}.suis-input-radio__circle:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-radio__circle--readonly{border:.0625rem solid #dcdde1;cursor:not-allowed}.suis-input-radio__circle--readonly:focus{box-shadow:none}.suis-input-radio__circle--invalid{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}\n"], dependencies: [{ kind: "component", type: SuisLabelComponent, selector: "suis-label", inputs: ["for", "required", "pointer", "readonly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisInputRadioComponent, decorators: [{
35
- type: Component,
36
- args: [{ selector: 'suis-input-radio', standalone: true, imports: [SuisLabelComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
37
- {
38
- provide: NG_VALUE_ACCESSOR,
39
- multi: true,
40
- useExisting: forwardRef(() => SuisInputRadioComponent),
41
- },
42
- ], template: "<input\n #input\n type=\"radio\"\n class=\"suis-input-radio\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [disabled]=\"readonly\"\n/>\n\n<suis-label\n class=\"suis-input-radio__label\"\n [class.suis-input-radio__label--invalid]=\"invalid\"\n [class.suis-input-radio__label--readonly]=\"readonly\"\n [for]=\"id\"\n [pointer]=\"true\"\n [readonly]=\"readonly\"\n>\n <div\n [tabindex]=\"readonly ? -1 : 0\"\n class=\"suis-input-radio__circle\"\n [class.suis-input-radio__circle--invalid]=\"invalid\"\n [class.suis-input-radio__circle--readonly]=\"readonly\"\n >\n <div class=\"suis-input-radio__circle__fill\"></div>\n </div>\n <ng-content></ng-content>\n</suis-label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:flex}.suis-input-radio{display:none}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle{border:.0625rem solid #192a56}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle__fill{border-radius:100%;height:.75rem;width:.75rem;background-color:#273c75}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle--readonly{border:.0625rem solid #dcdde1}.suis-input-radio:checked~suis-label ::ng-deep .suis-input-radio__circle--readonly .suis-input-radio__circle__fill{background-color:#dcdde1}.suis-input-radio__label--invalid{color:#ff4757}.suis-input-radio__label--readonly{cursor:not-allowed}.suis-input-radio__circle{margin-right:.5rem;border:.0625rem solid #dcdde1;border-radius:100%;height:1.25rem;width:1.25rem;display:flex;justify-content:center;align-items:center}.suis-input-radio__circle:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-radio__circle--readonly{border:.0625rem solid #dcdde1;cursor:not-allowed}.suis-input-radio__circle--readonly:focus{box-shadow:none}.suis-input-radio__circle--invalid{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}\n"] }]
43
- }], propDecorators: { radioInput: [{
44
- type: ViewChild,
45
- args: ['input']
46
- }], id: [{
47
- type: Input,
48
- args: [{ required: true }]
49
- }], readonly: [{
50
- type: Input
51
- }], invalid: [{
52
- type: Input
53
- }], default: [{
54
- type: Input
55
- }] } });
56
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC1yYWRpby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtcmFkaW8vc3Vpcy1pbnB1dC1yY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pcy1pbnB1dC1yYWRpb19fY2lyY2xlLS1pbnZhbGlkXT1cImludmFsaWRcIlxuICAgIFtjbGFzcy5zdWlzLWlucHV0LXJhZGlvX19jaXJjbGUtLXJlYWRvbmx5XT1cInJlYWRvbmx5XCJcbiAgPlxuICAgIDxkaXYgY2xhc3M9XCJzdWlzLWlucHV0LXJhZGlvX19jaXJjbGVfX2ZpbGxcIj48L2Rpdj5cbiAgPC9kaXY+XG4gIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbjwvc3Vpcy1sYWJlbD5cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './suis-item.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaXRlbS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLWl0ZW0uY29tcG9uZW50JztcbiJdfQ==
@@ -1,31 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisItemComponent {
4
- constructor() {
5
- /**
6
- * Adds a padding around the content. By default set to true.
7
- */
8
- this.spacing = true;
9
- /**
10
- * Styles item as a header. By default set to false.
11
- */
12
- this.header = false;
13
- /**
14
- * Displays border bottom below the item. Does not effect header item. By default set to true.
15
- */
16
- this.divider = true;
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
19
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SuisItemComponent, isStandalone: true, selector: "suis-item", inputs: { spacing: "spacing", header: "header", divider: "divider" }, ngImport: i0, template: "<div\n class=\"suis-item\"\n [class.suis-item--spacing]=\"spacing\"\n [class.suis-item--header]=\"header\"\n [class.suis-item--divider]=\"divider && !header\"\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-item{background-color:#fff;border:0}.suis-item--spacing{padding:1rem}.suis-item--divider{border-bottom:.0625rem solid #dcdde1}.suis-item--header{font-weight:500;display:flex;color:#192a56;justify-content:center;align-items:center;border-bottom:.1875rem solid #192a56}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisItemComponent, decorators: [{
22
- type: Component,
23
- args: [{ selector: 'suis-item', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"suis-item\"\n [class.suis-item--spacing]=\"spacing\"\n [class.suis-item--header]=\"header\"\n [class.suis-item--divider]=\"divider && !header\"\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-item{background-color:#fff;border:0}.suis-item--spacing{padding:1rem}.suis-item--divider{border-bottom:.0625rem solid #dcdde1}.suis-item--header{font-weight:500;display:flex;color:#192a56;justify-content:center;align-items:center;border-bottom:.1875rem solid #192a56}\n"] }]
24
- }], propDecorators: { spacing: [{
25
- type: Input
26
- }], header: [{
27
- type: Input
28
- }], divider: [{
29
- type: Input
30
- }] } });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3V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L3N1aXMtaXRlbS5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL3N1aXMtaXRlbS5jb21wb25lbnQuc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc0l0ZW1Db21wb25lbnQge1xuICAvKipcbiAgICogQWRkcyBhIHBhZGRpbmcgYXJvdW5kIHRoZSBjb250ZW50LiBCeSBkZWZhdWx0IHNldCB0byB0cnVlLlxuICAgKi9cbiAgQElucHV0KCkgc3BhY2luZzogYm9vbGVhbiA9IHRydWU7XG5cbiAgLyoqXG4gICAqIFN0eWxlcyBpdGVtIGFzIGEgaGVhZGVyLiBCeSBkZWZhdWx0IHNldCB0byBmYWxzZS5cbiAgICovXG4gIEBJbnB1dCgpIGhlYWRlcjogYm9vbGVhbiA9IGZhbHNlO1xuXG4gIC8qKlxuICAgKiBEaXNwbGF5cyBib3JkZXIgYm90dG9tIGJlbG93IHRoZSBpdGVtLiBEb2VzIG5vdCBlZmZlY3QgaGVhZGVyIGl0ZW0uIEJ5IGRlZmF1bHQgc2V0IHRvIHRydWUuXG4gICAqL1xuICBASW5wdXQoKSBkaXZpZGVyOiBib29sZWFuID0gdHJ1ZTtcbn1cbiIsIjxkaXZcbiAgY2xhc3M9XCJzdWlzLWl0ZW1cIlxuICBbY2xhc3Muc3Vpcy1pdGVtLS1zcGFjaW5nXT1cInNwYWNpbmdcIlxuICBbY2xhc3Muc3Vpcy1pdGVtLS1oZWFkZXJdPVwiaGVhZGVyXCJcbiAgW2NsYXNzLnN1aXMtaXRlbS0tZGl2aWRlcl09XCJkaXZpZGVyICYmICFoZWFkZXJcIlxuPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2Rpdj5cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './suis-label.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbGFiZWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1sYWJlbC5jb21wb25lbnQnO1xuIl19
@@ -1,33 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisLabelComponent {
4
- constructor() {
5
- /**
6
- * Adds a red colored asterisk after the label. By default set to false.
7
- */
8
- this.required = false;
9
- /**
10
- * Shows the pointer cursor when hovered. By default set to false.
11
- */
12
- this.pointer = false;
13
- /**
14
- * Grays out the label content and removes cursor pointer behavior. By default set to false.
15
- */
16
- this.readonly = false;
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
19
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SuisLabelComponent, isStandalone: true, selector: "suis-label", inputs: { for: "for", required: "required", pointer: "pointer", readonly: "readonly" }, ngImport: i0, template: "<label\n class=\"suis-label\"\n [class.suis-label--pointer]=\"!readonly && pointer\"\n [class.suis-label--readonly]=\"readonly\"\n [htmlFor]=\"for ? for : undefined\"\n>\n <ng-content></ng-content>\n @if (required) {\n <span class=\"suis-label__asterisk\">*</span>\n }\n <ng-content select=\"[suisLabelAside]\"></ng-content>\n</label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-label{font-size:.875rem;display:flex;align-items:center}.suis-label__asterisk{color:#ff4757;margin-left:.0625rem}.suis-label--pointer{cursor:pointer}.suis-label--readonly{color:#dcdde1}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisLabelComponent, decorators: [{
22
- type: Component,
23
- args: [{ selector: 'suis-label', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label\n class=\"suis-label\"\n [class.suis-label--pointer]=\"!readonly && pointer\"\n [class.suis-label--readonly]=\"readonly\"\n [htmlFor]=\"for ? for : undefined\"\n>\n <ng-content></ng-content>\n @if (required) {\n <span class=\"suis-label__asterisk\">*</span>\n }\n <ng-content select=\"[suisLabelAside]\"></ng-content>\n</label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-label{font-size:.875rem;display:flex;align-items:center}.suis-label__asterisk{color:#ff4757;margin-left:.0625rem}.suis-label--pointer{cursor:pointer}.suis-label--readonly{color:#dcdde1}\n"] }]
24
- }], propDecorators: { for: [{
25
- type: Input
26
- }], required: [{
27
- type: Input
28
- }], pointer: [{
29
- type: Input
30
- }], readonly: [{
31
- type: Input
32
- }] } });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1sYWJlbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbGFiZWwvc3Vpcy1sYWJlbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbGFiZWwvc3Vpcy1sYWJlbC5jb21wb25lbnQuaHRtbCJdLCJ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3N1aXNMYWJlbEFzaWRlXVwiPjwvbmctY29udGVudD5cbjwvbGFiZWw+XG4iXX0=
@@ -1,4 +0,0 @@
1
- export * from './suis-notification.component';
2
- export * from './suis-notification.interfaces';
3
- export * from './suis-notification.types';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbm90aWZpY2F0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5vdGlmaWNhdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5vdGlmaWNhdGlvbi5pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1ub3RpZmljYXRpb24udHlwZXMnO1xuIl19
@@ -1,33 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { NgClass } 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 SuisNotificationComponent {
7
- constructor() {
8
- /**
9
- * Notification item data. Type of SuisNotification.
10
- */
11
- this.notification = null;
12
- /**
13
- * Emits on close button action.
14
- */
15
- this.closed = new EventEmitter();
16
- }
17
- onClose() {
18
- this.notification = null;
19
- this.closed.emit();
20
- }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SuisNotificationComponent, isStandalone: true, selector: "suis-notification", inputs: { notification: "notification" }, outputs: { closed: "closed" }, ngImport: i0, template: "@if (notification) {\n<div\n class=\"suis-notification\"\n [ngClass]=\"'suis-notification' | suisNgClass : notification.type\"\n>\n <div class=\"suis-notification__header\">\n <span>\n {{ notification.header }}\n </span>\n <button\n class=\"suis-notification__header__close\"\n type=\"button\"\n (click)=\"onClose()\"\n >\n <suis-icon type=\"times\" [color]=\"'white'\" [size]=\"'lg'\"></suis-icon>\n </button>\n </div>\n <div class=\"suis-notification__message\">\n {{ notification.message }}\n </div>\n</div>\n}\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-notification{min-width:16.25rem;max-width:16.25rem;padding:1rem;border-radius:.25rem;color:#fff;position:relative;font-size:.875rem}.suis-notification--success{background-color:#2ed573}.suis-notification--warning{background-color:#ffa502}.suis-notification--danger{background-color:#ff4757}.suis-notification__header{display:flex;align-items:center;justify-content:space-between;font-size:1rem;font-weight:700;margin-bottom:.75rem}.suis-notification__header__close{background-color:transparent;border:none;cursor:pointer}.suis-notification__header__close:hover{opacity:.75}.suis-notification__message{font-size:.875rem}\n"], dependencies: [{ 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 }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisNotificationComponent, decorators: [{
25
- type: Component,
26
- args: [{ selector: 'suis-notification', standalone: true, imports: [NgClass, SuisNgClassPipe, SuisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (notification) {\n<div\n class=\"suis-notification\"\n [ngClass]=\"'suis-notification' | suisNgClass : notification.type\"\n>\n <div class=\"suis-notification__header\">\n <span>\n {{ notification.header }}\n </span>\n <button\n class=\"suis-notification__header__close\"\n type=\"button\"\n (click)=\"onClose()\"\n >\n <suis-icon type=\"times\" [color]=\"'white'\" [size]=\"'lg'\"></suis-icon>\n </button>\n </div>\n <div class=\"suis-notification__message\">\n {{ notification.message }}\n </div>\n</div>\n}\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-notification{min-width:16.25rem;max-width:16.25rem;padding:1rem;border-radius:.25rem;color:#fff;position:relative;font-size:.875rem}.suis-notification--success{background-color:#2ed573}.suis-notification--warning{background-color:#ffa502}.suis-notification--danger{background-color:#ff4757}.suis-notification__header{display:flex;align-items:center;justify-content:space-between;font-size:1rem;font-weight:700;margin-bottom:.75rem}.suis-notification__header__close{background-color:transparent;border:none;cursor:pointer}.suis-notification__header__close:hover{opacity:.75}.suis-notification__message{font-size:.875rem}\n"] }]
27
- }], propDecorators: { notification: [{
28
- type: Input,
29
- args: [{ required: true }]
30
- }], closed: [{
31
- type: Output
32
- }] } });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1ub3RpZmljYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLW5vdGlmaWNhdGlvbi9zdWlzLW5vdGlmaWNhdGlvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbm90aWZpY2F0aW9uL3N1aX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yJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1ub3RpZmljYXRpb24uaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1ub3RpZmljYXRpb24vc3Vpcy1ub3RpZmljYXRpb24uaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3Vpc05vdGlmaWNhdGlvblR5cGUgfSBmcm9tICcuL3N1aXMtbm90aWZpY2F0aW9uLnR5cGVzJztcblxuZXhwb3J0IGludGVyZmFjZSBTdWlzTm90aWZpY2F0aW9uIHtcbiAgaWQ6IHN0cmluZztcbiAgaGVhZGVyOiBzdHJpbmc7XG4gIG1lc3NhZ2U6IHN0cmluZztcbiAgdHlwZTogU3Vpc05vdGlmaWNhdGlvblR5cGU7XG4gIGRlbGF5OiBudW1iZXI7XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1ub3RpZmljYXRpb24udHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbm90aWZpY2F0aW9uL3N1aXMtbm90aWZpY2F0aW9uLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBTdWlzTm90aWZpY2F0aW9uVHlwZSA9ICdzdWNjZXNzJyB8ICd3YXJuaW5nJyB8ICdkYW5nZXInO1xuIl19
@@ -1,2 +0,0 @@
1
- export * from './suis-notifications.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbm90aWZpY2F0aW9ucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5vdGlmaWNhdGlvbnMuY29tcG9uZW50JztcbiJdfQ==
@@ -1,24 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, inject, } from '@angular/core';
2
- import { SuisNotificationComponent } from '../suis-notification/suis-notification.component';
3
- import { SuisNotificationService } from '../../services/suis-notification.service';
4
- import * as i0 from "@angular/core";
5
- export class SuisNotificationsComponent {
6
- constructor() {
7
- this.notificationService = inject(SuisNotificationService);
8
- this.notifications = this.notificationService.getNotifications();
9
- }
10
- remove(id) {
11
- this.notificationService.forceRemoveNotification(id);
12
- }
13
- /** @internal */
14
- notificationTrackBy(index, notification) {
15
- return notification.id;
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisNotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SuisNotificationsComponent, isStandalone: true, selector: "suis-notifications", ngImport: i0, template: "@for (notification of notifications(); track notificationTrackBy($index,\nnotification)) {\n<suis-notification\n [notification]=\"notification\"\n (closed)=\"remove(notification.id)\"\n></suis-notification>\n}\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{position:fixed;bottom:0;right:0;padding:1rem}:host suis-notification{display:block;margin-top:.75rem}\n"], dependencies: [{ kind: "component", type: SuisNotificationComponent, selector: "suis-notification", inputs: ["notification"], outputs: ["closed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisNotificationsComponent, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'suis-notifications', standalone: true, imports: [SuisNotificationComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@for (notification of notifications(); track notificationTrackBy($index,\nnotification)) {\n<suis-notification\n [notification]=\"notification\"\n (closed)=\"remove(notification.id)\"\n></suis-notification>\n}\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{position:fixed;bottom:0;right:0;padding:1rem}:host suis-notification{display:block;margin-top:.75rem}\n"] }]
23
- }] });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1ub3RpZmljYXRpb25zLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1ub3RpZmljYXRpb25zL3N1aXMtbm90aWZpY2F0aW9ucy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbm90aWZpY2F0aW9ucy9zdWlzLW5vdGlmaWNhdGlvbnMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBRVQsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGtEQUFrRCx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ub3RpZmljYXRpb24uaWQ7XG4gIH1cbn1cbiIsIkBmb3IgKG5vdGlmaWNhdGlvbiBvZiBub3RpZmljYXRpb25zKCk7IHRyYWNrIG5vdGlmaWNhdGlvblRyYWNrQnkoJGluZGV4LFxubm90aWZpY2F0aW9uKSkge1xuPHN1aXMtbm90aWZpY2F0aW9uXG4gIFtub3RpZmljYXRpb25dPVwibm90aWZpY2F0aW9uXCJcbiAgKGNsb3NlZCk9XCJyZW1vdmUobm90aWZpY2F0aW9uLmlkKVwiXG4+PC9zdWlzLW5vdGlmaWNhdGlvbj5cbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './suis-pagination.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtcGFnaW5hdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLXBhZ2luYXRpb24uY29tcG9uZW50JztcbiJdfQ==
@@ -1,21 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisPaginationItemsPipe {
4
- transform(ofLabel, page, perPage, totalItems, itemsLabel) {
5
- if (totalItems <= 0)
6
- return `0-0 ${ofLabel} 0 ${itemsLabel}`;
7
- const minItem = page * perPage - perPage + 1;
8
- const maxItem = page * perPage > totalItems ? totalItems : page * perPage;
9
- return `${minItem}-${maxItem} ${ofLabel} ${totalItems} ${itemsLabel}`;
10
- }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationItemsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
12
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationItemsPipe, isStandalone: true, name: "suisPaginationItems" }); }
13
- }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationItemsPipe, decorators: [{
15
- type: Pipe,
16
- args: [{
17
- standalone: true,
18
- name: 'suisPaginationItems',
19
- }]
20
- }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbmF0aW9uLWl0ZW1zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtcGFnaW5hdGlvbi9zdWlzLXBhZ2luYXRpb24taXRlbXMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFNcEQsTUFBTSxPQUFPLHVCQUF1QjtJQUNsQyxTQUFTLENBQ1AsT0FBZSxFQUNmLElBQVksRUFDWixPQUFlLEVBQ2YsVUFBa0IsRUFDbEIsVUFBa0I7UUFFbEIsSUFBSSxVQUFVLElBQUksQ0FBQztZQUFFLE9BQU8sT0FBTyxPQUFPLE1BQU0sVUFBVSxFQUFFLENBQUM7UUFFN0QsTUFBTSxPQUFPLEdBQUcsSUFBSSxHQUFHLE9BQU8sR0FBRyxPQUFPLEdBQUcsQ0FBQyxDQUFDO1FBQzdDLE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxPQUFPLEdBQUcsVUFBVSxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLElBQUksR0FBRyxPQUFPLENBQUM7UUFFMUUsT0FBTy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9YDtcbiAgfVxufVxuIl19
@@ -1,20 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class SuisPaginationPagePipe {
4
- transform(ofLabel, page, perPage, totalItems) {
5
- if (totalItems <= 0)
6
- return `1 ${ofLabel} 1`;
7
- const maxPage = Math.ceil(totalItems / perPage);
8
- return `${page} ${ofLabel} ${maxPage}`;
9
- }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationPagePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
11
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationPagePipe, isStandalone: true, name: "suisPaginationPage" }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationPagePipe, decorators: [{
14
- type: Pipe,
15
- args: [{
16
- standalone: true,
17
- name: 'suisPaginationPage',
18
- }]
19
- }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbmF0aW9uLXBhZ2UucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1wYWdpbmF0aW9uL3N1aXMtcGFnaW5hdGlvbi1wYWdlLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBTXBELE1BQU0sT0FBTyxzQkFBc0I7SUFDakMsU0FBUyxDQUNQLE9BQWUsRUFDZixJQUFZLEVBQ1osT0FBZSxFQUNmLFVBQWtCO1FBRWxCLElBQUksVUFBVSxJQUFJLENBQUM7WUF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isPaginationPerPageOptionsPipe {
4
- transform(options) {
5
- return options.map((option) => {
6
- return { value: option, label: option.toString() };
7
- });
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, isStandalone: true, name: "suisPaginationPerPageOptions" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- standalone: true,
16
- name: 'suisPaginationPerPageOptions',
17
- }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbmF0aW9uLXBlci1wYWdlLW9wdGlvbnMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1wYWdpbmF0aW9uL3N1aXMtcGFnaW5hdGlvbi1wZXItcGFnZS1vcHRpb25zLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBT3BELE1BQU0sT0FBTyxnQ0FBZ0M7SUFDM0MsU0FBUyxDQUFDLE9BQWlCO1FBQ3pCLE9BQU8sT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLE1BQU0sRUFBRSxFQUFFO1lBQzVCLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLENBQUMsUUFBUSxFQUFF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