mapa-library-ui 0.0.8 → 0.0.11

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 (195) hide show
  1. package/README.md +1 -22
  2. package/{esm2022 → esm2020}/lib/core/directives/custom-paginator.directive.mjs +4 -4
  3. package/{esm2022 → esm2020}/lib/core/directives/mat-input-autosize.directive.mjs +4 -4
  4. package/{esm2022 → esm2020}/src/lib/components/button/src/button.component.mjs +4 -4
  5. package/{esm2022 → esm2020}/src/lib/components/button/src/button.module.mjs +5 -5
  6. package/{esm2022 → esm2020}/src/lib/components/button-icon/src/button-icon.component.mjs +4 -4
  7. package/{esm2022 → esm2020}/src/lib/components/button-icon/src/button-icon.module.mjs +7 -7
  8. package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/capability}/button/src/button.component.mjs +4 -4
  9. package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/capability}/button/src/button.module.mjs +5 -5
  10. package/{esm2022/src/lib/components/dialog → esm2020/src/lib/components/capability}/icon/src/icon.component.mjs +4 -4
  11. package/{esm2022/src/lib/components/dialog → esm2020/src/lib/components/capability}/icon/src/icon.module.mjs +5 -5
  12. package/esm2020/src/lib/components/capability/mapa-library-ui-src-lib-components-capability.mjs +5 -0
  13. package/{esm2022 → esm2020}/src/lib/components/checkbox/src/checkbox.component.mjs +4 -4
  14. package/{esm2022 → esm2020}/src/lib/components/checkbox/src/checkbox.module.mjs +11 -11
  15. package/{esm2022 → esm2020}/src/lib/components/dialog/button/src/button.component.mjs +4 -4
  16. package/{esm2022 → esm2020}/src/lib/components/dialog/button/src/button.module.mjs +5 -5
  17. package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/dialog}/icon/src/icon.component.mjs +4 -4
  18. package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/dialog}/icon/src/icon.module.mjs +5 -5
  19. package/{esm2022 → esm2020}/src/lib/components/dropdown/src/dropdown.component.mjs +4 -4
  20. package/{esm2022 → esm2020}/src/lib/components/dropdown/src/dropdown.module.mjs +13 -13
  21. package/{esm2022 → esm2020}/src/lib/components/dropdown/src/option/option.component.mjs +4 -4
  22. package/{esm2022 → esm2020}/src/lib/components/empty/src/empty.component.mjs +4 -4
  23. package/{esm2022 → esm2020}/src/lib/components/empty/src/empty.module.mjs +5 -5
  24. package/esm2020/src/lib/components/filters/button/public-api.mjs +6 -0
  25. package/esm2020/src/lib/components/filters/button/src/button.component.mjs +23 -0
  26. package/esm2020/src/lib/components/filters/button/src/button.module.mjs +19 -0
  27. package/esm2020/src/lib/components/filters/icon/public-api.mjs +6 -0
  28. package/esm2020/src/lib/components/filters/icon/src/icon.component.mjs +26 -0
  29. package/esm2020/src/lib/components/filters/icon/src/icon.module.mjs +19 -0
  30. package/esm2020/src/lib/components/filters/shared-public-api.mjs +6 -0
  31. package/{esm2022 → esm2020}/src/lib/components/icon/src/icon.component.mjs +4 -4
  32. package/{esm2022 → esm2020}/src/lib/components/icon/src/icon.module.mjs +5 -5
  33. package/{esm2022 → esm2020}/src/lib/components/input/src/input.component.mjs +4 -4
  34. package/{esm2022 → esm2020}/src/lib/components/input/src/input.module.mjs +16 -16
  35. package/{esm2022 → esm2020}/src/lib/components/nav-list/src/nav-list.component.mjs +4 -4
  36. package/{esm2022 → esm2020}/src/lib/components/nav-list/src/nav-list.module.mjs +5 -5
  37. package/{esm2022 → esm2020}/src/lib/components/radio-button/src/radio-button.component.mjs +4 -4
  38. package/{esm2022 → esm2020}/src/lib/components/radio-button/src/radio-button.module.mjs +7 -7
  39. package/{esm2022 → esm2020}/src/lib/components/report-item/src/report-item.component.mjs +5 -5
  40. package/{esm2022 → esm2020}/src/lib/components/report-item/src/report-item.module.mjs +9 -9
  41. package/{esm2022 → esm2020}/src/lib/components/table/src/table.component.mjs +4 -4
  42. package/{esm2022 → esm2020}/src/lib/components/table/src/table.module.mjs +16 -16
  43. package/esm2020/src/lib/components/tag/public-api.mjs +6 -0
  44. package/esm2020/src/lib/components/tag/src/tag.component.mjs +15 -0
  45. package/esm2020/src/lib/components/tag/src/tag.module.mjs +24 -0
  46. package/{esm2022 → esm2020}/src/lib/components/warning/src/warning.component.mjs +5 -5
  47. package/{esm2022 → esm2020}/src/lib/components/warning/src/warning.module.mjs +7 -7
  48. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-button-icon.mjs +9 -9
  49. package/fesm2015/mapa-library-ui-src-lib-components-button-icon.mjs.map +1 -0
  50. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-button.mjs +7 -7
  51. package/fesm2015/mapa-library-ui-src-lib-components-button.mjs.map +1 -0
  52. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +97 -0
  53. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -0
  54. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-checkbox.mjs +13 -13
  55. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-checkbox.mjs.map +1 -1
  56. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-dialog.mjs +14 -14
  57. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  58. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +93 -0
  59. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -0
  60. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-empty.mjs +7 -7
  61. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-empty.mjs.map +1 -1
  62. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-filters.mjs +14 -14
  63. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  64. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-icon.mjs +7 -7
  65. package/fesm2015/mapa-library-ui-src-lib-components-icon.mjs.map +1 -0
  66. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +81 -0
  67. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  68. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-nav-list.mjs +7 -7
  69. package/fesm2015/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -0
  70. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-radio-button.mjs +9 -9
  71. package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -0
  72. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-report-item.mjs +12 -12
  73. package/fesm2015/mapa-library-ui-src-lib-components-report-item.mjs.map +1 -0
  74. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-table.mjs +18 -18
  75. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs.map +1 -0
  76. package/fesm2015/mapa-library-ui-src-lib-components-tag.mjs +47 -0
  77. package/fesm2015/mapa-library-ui-src-lib-components-tag.mjs.map +1 -0
  78. package/fesm2015/mapa-library-ui-src-lib-components-warning.mjs +50 -0
  79. package/{fesm2022 → fesm2015}/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
  80. package/fesm2015/mapa-library-ui.mjs +327 -0
  81. package/fesm2015/mapa-library-ui.mjs.map +1 -0
  82. package/fesm2020/mapa-library-ui-src-lib-components-button-icon.mjs +70 -0
  83. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-button-icon.mjs.map +1 -1
  84. package/fesm2020/mapa-library-ui-src-lib-components-button.mjs +50 -0
  85. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-button.mjs.map +1 -1
  86. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +97 -0
  87. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -0
  88. package/fesm2020/mapa-library-ui-src-lib-components-checkbox.mjs +60 -0
  89. package/fesm2020/mapa-library-ui-src-lib-components-checkbox.mjs.map +1 -0
  90. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs +97 -0
  91. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -0
  92. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +91 -0
  93. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  94. package/fesm2020/mapa-library-ui-src-lib-components-empty.mjs +43 -0
  95. package/fesm2020/mapa-library-ui-src-lib-components-empty.mjs.map +1 -0
  96. package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs +97 -0
  97. package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs.map +1 -0
  98. package/fesm2020/mapa-library-ui-src-lib-components-icon.mjs +53 -0
  99. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-icon.mjs.map +1 -1
  100. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +81 -0
  101. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -0
  102. package/fesm2020/mapa-library-ui-src-lib-components-nav-list.mjs +52 -0
  103. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
  104. package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs +62 -0
  105. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  106. package/fesm2020/mapa-library-ui-src-lib-components-report-item.mjs +74 -0
  107. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-report-item.mjs.map +1 -1
  108. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs +174 -0
  109. package/{fesm2022 → fesm2020}/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  110. package/fesm2020/mapa-library-ui-src-lib-components-tag.mjs +47 -0
  111. package/fesm2020/mapa-library-ui-src-lib-components-tag.mjs.map +1 -0
  112. package/fesm2020/mapa-library-ui-src-lib-components-warning.mjs +50 -0
  113. package/fesm2020/mapa-library-ui-src-lib-components-warning.mjs.map +1 -0
  114. package/{fesm2022 → fesm2020}/mapa-library-ui.mjs +6 -6
  115. package/{fesm2022 → fesm2020}/mapa-library-ui.mjs.map +1 -1
  116. package/lib/core/directives/custom-paginator.directive.d.ts +1 -1
  117. package/lib/core/directives/mat-input-autosize.directive.d.ts +1 -1
  118. package/mapa-library-ui-0.0.11.tgz +0 -0
  119. package/package.json +99 -55
  120. package/src/lib/components/button/src/button.component.d.ts +1 -1
  121. package/src/lib/components/button-icon/src/button-icon.component.d.ts +1 -1
  122. package/src/lib/components/capability/button/public-api.d.ts +2 -0
  123. package/src/lib/components/capability/button/src/button.component.d.ts +10 -0
  124. package/src/lib/components/capability/button/src/button.module.d.ts +9 -0
  125. package/src/lib/components/capability/icon/public-api.d.ts +2 -0
  126. package/src/lib/components/capability/icon/src/icon.component.d.ts +13 -0
  127. package/src/lib/components/capability/icon/src/icon.module.d.ts +9 -0
  128. package/src/lib/components/capability/index.d.ts +5 -0
  129. package/src/lib/components/capability/shared-public-api.d.ts +2 -0
  130. package/src/lib/components/checkbox/src/checkbox.component.d.ts +1 -1
  131. package/src/lib/components/dialog/button/src/button.component.d.ts +1 -1
  132. package/src/lib/components/dialog/icon/src/icon.component.d.ts +1 -1
  133. package/src/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
  134. package/src/lib/components/dropdown/src/option/option.component.d.ts +1 -1
  135. package/src/lib/components/filters/button/src/button.component.d.ts +1 -1
  136. package/src/lib/components/filters/icon/src/icon.component.d.ts +1 -1
  137. package/src/lib/components/icon/src/icon.component.d.ts +1 -1
  138. package/src/lib/components/input/src/input.component.d.ts +1 -1
  139. package/src/lib/components/nav-list/src/nav-list.component.d.ts +1 -1
  140. package/src/lib/components/radio-button/src/radio-button.component.d.ts +1 -1
  141. package/src/lib/components/report-item/src/report-item.component.d.ts +1 -1
  142. package/src/lib/components/table/src/table.component.d.ts +1 -1
  143. package/src/lib/components/tag/public-api.d.ts +2 -2
  144. package/src/lib/components/tag/{tag.component.d.ts → src/tag.component.d.ts} +2 -2
  145. package/src/lib/components/warning/src/warning.component.d.ts +1 -1
  146. package/esm2022/src/lib/components/tag/public-api.mjs +0 -6
  147. package/esm2022/src/lib/components/tag/tag.component.mjs +0 -15
  148. package/esm2022/src/lib/components/tag/tag.module.mjs +0 -24
  149. package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +0 -91
  150. package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +0 -81
  151. package/fesm2022/mapa-library-ui-src-lib-components-tag.mjs +0 -47
  152. package/fesm2022/mapa-library-ui-src-lib-components-tag.mjs.map +0 -1
  153. package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +0 -50
  154. package/mapa-library-ui-0.0.8.tgz +0 -0
  155. /package/{esm2022 → esm2020}/lib/core/elements/dropdown.mjs +0 -0
  156. /package/{esm2022 → esm2020}/lib/core/elements/element-base.mjs +0 -0
  157. /package/{esm2022 → esm2020}/lib/core/elements/input-text.mjs +0 -0
  158. /package/{esm2022 → esm2020}/lib/core/interfaces/option.interface.mjs +0 -0
  159. /package/{esm2022 → esm2020}/mapa-library-ui.mjs +0 -0
  160. /package/{esm2022 → esm2020}/public-api.mjs +0 -0
  161. /package/{esm2022 → esm2020}/src/lib/components/button/mapa-library-ui-src-lib-components-button.mjs +0 -0
  162. /package/{esm2022 → esm2020}/src/lib/components/button/public-api.mjs +0 -0
  163. /package/{esm2022 → esm2020}/src/lib/components/button-icon/mapa-library-ui-src-lib-components-button-icon.mjs +0 -0
  164. /package/{esm2022 → esm2020}/src/lib/components/button-icon/public-api.mjs +0 -0
  165. /package/{esm2022/src/lib/components/dialog → esm2020/src/lib/components/capability}/button/public-api.mjs +0 -0
  166. /package/{esm2022/src/lib/components/dialog → esm2020/src/lib/components/capability}/icon/public-api.mjs +0 -0
  167. /package/{esm2022/src/lib/components/dialog → esm2020/src/lib/components/capability}/shared-public-api.mjs +0 -0
  168. /package/{esm2022 → esm2020}/src/lib/components/checkbox/mapa-library-ui-src-lib-components-checkbox.mjs +0 -0
  169. /package/{esm2022 → esm2020}/src/lib/components/checkbox/public-api.mjs +0 -0
  170. /package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/dialog}/button/public-api.mjs +0 -0
  171. /package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/dialog}/icon/public-api.mjs +0 -0
  172. /package/{esm2022 → esm2020}/src/lib/components/dialog/mapa-library-ui-src-lib-components-dialog.mjs +0 -0
  173. /package/{esm2022/src/lib/components/filters → esm2020/src/lib/components/dialog}/shared-public-api.mjs +0 -0
  174. /package/{esm2022 → esm2020}/src/lib/components/dropdown/mapa-library-ui-src-lib-components-dropdown.mjs +0 -0
  175. /package/{esm2022 → esm2020}/src/lib/components/dropdown/public-api.mjs +0 -0
  176. /package/{esm2022 → esm2020}/src/lib/components/empty/mapa-library-ui-src-lib-components-empty.mjs +0 -0
  177. /package/{esm2022 → esm2020}/src/lib/components/empty/public-api.mjs +0 -0
  178. /package/{esm2022 → esm2020}/src/lib/components/filters/mapa-library-ui-src-lib-components-filters.mjs +0 -0
  179. /package/{esm2022 → esm2020}/src/lib/components/icon/mapa-library-ui-src-lib-components-icon.mjs +0 -0
  180. /package/{esm2022 → esm2020}/src/lib/components/icon/public-api.mjs +0 -0
  181. /package/{esm2022 → esm2020}/src/lib/components/input/mapa-library-ui-src-lib-components-input.mjs +0 -0
  182. /package/{esm2022 → esm2020}/src/lib/components/input/public-api.mjs +0 -0
  183. /package/{esm2022 → esm2020}/src/lib/components/nav-list/mapa-library-ui-src-lib-components-nav-list.mjs +0 -0
  184. /package/{esm2022 → esm2020}/src/lib/components/nav-list/public-api.mjs +0 -0
  185. /package/{esm2022 → esm2020}/src/lib/components/radio-button/mapa-library-ui-src-lib-components-radio-button.mjs +0 -0
  186. /package/{esm2022 → esm2020}/src/lib/components/radio-button/public-api.mjs +0 -0
  187. /package/{esm2022 → esm2020}/src/lib/components/report-item/mapa-library-ui-src-lib-components-report-item.mjs +0 -0
  188. /package/{esm2022 → esm2020}/src/lib/components/report-item/public-api.mjs +0 -0
  189. /package/{esm2022 → esm2020}/src/lib/components/table/mapa-library-ui-src-lib-components-table.mjs +0 -0
  190. /package/{esm2022 → esm2020}/src/lib/components/table/public-api.mjs +0 -0
  191. /package/{esm2022 → esm2020}/src/lib/components/table/src/paginator_customization.mjs +0 -0
  192. /package/{esm2022 → esm2020}/src/lib/components/tag/mapa-library-ui-src-lib-components-tag.mjs +0 -0
  193. /package/{esm2022 → esm2020}/src/lib/components/warning/mapa-library-ui-src-lib-components-warning.mjs +0 -0
  194. /package/{esm2022 → esm2020}/src/lib/components/warning/public-api.mjs +0 -0
  195. /package/src/lib/components/tag/{tag.module.d.ts → src/tag.module.d.ts} +0 -0
@@ -0,0 +1,327 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, Self, Optional, Input, EventEmitter, Output } from '@angular/core';
3
+ import * as i1 from '@angular/material/input';
4
+ import * as i2 from '@angular/forms';
5
+ import { map, startWith } from 'rxjs';
6
+ import * as i1$1 from '@angular/material/paginator';
7
+
8
+ class ElementBase {
9
+ constructor(options = {}) {
10
+ this.value = options.value || '';
11
+ this.key = options.key || '';
12
+ this.label = options.label || '';
13
+ this.required = !!options.required;
14
+ this.order = options.order === undefined ? 1 : options.order;
15
+ this.controlType = options.controlType || '';
16
+ this.type = options.type || '';
17
+ this.placeholder = options.placeholder || '';
18
+ this.hint = options.hint || '';
19
+ this.prefix = options.prefix || '';
20
+ this.suffix = options.suffix || '';
21
+ this.autosize = options.autosize || false;
22
+ this.autosizeMinWidth = options.autosizeMinWidth || '212px';
23
+ this.autosizeMaxWidth = options.autosizeMaxWidth || '400px';
24
+ this.options = options.options || [];
25
+ this.multiple = options.multiple || false;
26
+ }
27
+ }
28
+
29
+ class Dropdown extends ElementBase {
30
+ constructor() {
31
+ super(...arguments);
32
+ this.controlType = 'dropdown';
33
+ }
34
+ }
35
+
36
+ class InputText extends ElementBase {
37
+ constructor() {
38
+ super(...arguments);
39
+ this.controlType = 'input';
40
+ }
41
+ }
42
+
43
+ /*
44
+ * Originally from: https://github.com/anotherkitten/mat-input-autosize
45
+ * @author: Ellie Larson (anotherkitten)
46
+ */
47
+ class MatInputAutosizeDirective {
48
+ constructor(el, childMatInput, childNgModel) {
49
+ this.childMatInput = childMatInput;
50
+ this.childNgModel = childNgModel;
51
+ this.matInputAutosizeMinWidth = '120px';
52
+ this.changeHiddenText = (newValue) => {
53
+ if (this.hiddenText) {
54
+ this.hiddenText.data = newValue + ' ';
55
+ }
56
+ };
57
+ this.inputElement = el.nativeElement;
58
+ }
59
+ ngAfterViewInit() {
60
+ this.checkErrors();
61
+ this.overwriteParentWidth();
62
+ this.createHiddenTextContainer();
63
+ this.setOwnStyles();
64
+ this.subscribeToChanges();
65
+ }
66
+ ngOnDestroy() {
67
+ if (this.changeDetectSub) {
68
+ this.changeDetectSub.unsubscribe();
69
+ }
70
+ }
71
+ checkErrors() {
72
+ if (!(this.inputElement instanceof HTMLInputElement)) {
73
+ throw new Error('matInputAutosize directive must be on an input element');
74
+ }
75
+ if (!this.childMatInput) {
76
+ throw new Error('Element with matInputAutosize directive must also have the matInput directive');
77
+ }
78
+ }
79
+ overwriteParentWidth() {
80
+ Object.assign(this.inputElement.parentNode.style, {
81
+ width: '100%',
82
+ });
83
+ }
84
+ createHiddenTextContainer() {
85
+ var _a;
86
+ const textContainer = document.createElement('div');
87
+ Object.assign(textContainer.style, {
88
+ display: 'inline-block',
89
+ 'max-width': this.matInputAutosizeMaxWidth || null,
90
+ 'min-width': this.matInputAutosizeMinWidth,
91
+ font: this.matInputAutosizeFontStyle || null,
92
+ visibility: 'hidden',
93
+ 'white-space': 'pre',
94
+ });
95
+ (_a = this.inputElement.parentNode) === null || _a === void 0 ? void 0 : _a.appendChild(textContainer);
96
+ this.hiddenText = document.createTextNode(' ');
97
+ textContainer.appendChild(this.hiddenText);
98
+ }
99
+ setOwnStyles() {
100
+ Object.assign(this.inputElement.style, {
101
+ position: 'absolute',
102
+ left: '0',
103
+ });
104
+ }
105
+ subscribeToChanges() {
106
+ if (this.childNgModel) {
107
+ this.changeDetectSub = this.childNgModel.control.valueChanges.subscribe(this.changeHiddenText);
108
+ }
109
+ else {
110
+ this.inputElement.addEventListener('input', () => this.changeHiddenText(this.inputElement.value));
111
+ }
112
+ }
113
+ }
114
+ MatInputAutosizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MatInputAutosizeDirective, deps: [{ token: i0.ElementRef }, { token: i1.MatInput, self: true }, { token: i2.NgModel, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
115
+ MatInputAutosizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MatInputAutosizeDirective, isStandalone: true, selector: "[matInputAutosize]", inputs: { matInputAutosizeMaxWidth: "matInputAutosizeMaxWidth", matInputAutosizeMinWidth: "matInputAutosizeMinWidth", matInputAutosizeFontStyle: "matInputAutosizeFontStyle" }, ngImport: i0 });
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MatInputAutosizeDirective, decorators: [{
117
+ type: Directive,
118
+ args: [{
119
+ selector: '[matInputAutosize]',
120
+ standalone: true,
121
+ }]
122
+ }], ctorParameters: function () {
123
+ return [{ type: i0.ElementRef }, { type: i1.MatInput, decorators: [{
124
+ type: Self
125
+ }] }, { type: i2.NgModel, decorators: [{
126
+ type: Optional
127
+ }, {
128
+ type: Self
129
+ }] }];
130
+ }, propDecorators: { matInputAutosizeMaxWidth: [{
131
+ type: Input
132
+ }], matInputAutosizeMinWidth: [{
133
+ type: Input
134
+ }], matInputAutosizeFontStyle: [{
135
+ type: Input
136
+ }] } });
137
+
138
+ class BubblePaginationDirective {
139
+ constructor(matPag, elementRef, ren) {
140
+ this.matPag = matPag;
141
+ this.elementRef = elementRef;
142
+ this.ren = ren;
143
+ this.pageIndexChangeEmitter = new EventEmitter();
144
+ this.showFirstButton = true;
145
+ this.showLastButton = true;
146
+ this.renderButtonsNumber = 2;
147
+ this.appCustomLength = 0;
148
+ this.hideDefaultArrows = false;
149
+ this.buttonsRef = [];
150
+ }
151
+ ngAfterViewInit() {
152
+ this.styleDefaultPagination();
153
+ this.createBubbleDivRef();
154
+ this.renderButtons();
155
+ }
156
+ ngOnChanges(changes) {
157
+ var _a;
158
+ if (!((_a = changes === null || changes === void 0 ? void 0 : changes["appCustomLength"]) === null || _a === void 0 ? void 0 : _a.firstChange)) {
159
+ this.removeButtons();
160
+ this.switchPage(0);
161
+ this.renderButtons();
162
+ }
163
+ }
164
+ renderButtons() {
165
+ this.buildButtons();
166
+ this.matPag.page
167
+ .pipe(map((e) => { var _a; return [(_a = e.previousPageIndex) !== null && _a !== void 0 ? _a : 0, e.pageIndex]; }), startWith([0, 0]))
168
+ .subscribe(([prev, curr]) => {
169
+ this.changeActiveButtonStyles(prev, curr);
170
+ this.updateButtonsOnPageEvent();
171
+ });
172
+ }
173
+ changeActiveButtonStyles(previousIndex, newIndex) {
174
+ const previouslyActive = this.buttonsRef[previousIndex];
175
+ const currentActive = this.buttonsRef[newIndex];
176
+ try {
177
+ this.ren.removeClass(previouslyActive, "g-bubble__active");
178
+ this.ren.addClass(currentActive, "g-bubble__active");
179
+ }
180
+ catch (_a) { }
181
+ this.buttonsRef.forEach((button) => this.ren.setStyle(button, "display", "none"));
182
+ const renderElements = this.renderButtonsNumber;
183
+ const endDots = newIndex < this.buttonsRef.length - renderElements - 1;
184
+ const startDots = newIndex - renderElements > 0;
185
+ const firstButton = this.buttonsRef[0];
186
+ const lastButton = this.buttonsRef[this.buttonsRef.length - 1];
187
+ try {
188
+ if (this.showLastButton) {
189
+ this.ren.setStyle(this.dotsEndRef, "display", endDots ? "block" : "none");
190
+ this.ren.setStyle(lastButton, "display", endDots ? "flex" : "none");
191
+ }
192
+ }
193
+ catch (_b) { }
194
+ try {
195
+ if (this.showFirstButton) {
196
+ this.ren.setStyle(this.dotsStartRef, "display", startDots ? "block" : "none");
197
+ this.ren.setStyle(firstButton, "display", startDots ? "flex" : "none");
198
+ }
199
+ }
200
+ catch (_c) { }
201
+ const startingIndex = startDots ? newIndex - renderElements : 0;
202
+ const endingIndex = endDots
203
+ ? newIndex + renderElements
204
+ : this.buttonsRef.length - 1;
205
+ for (let i = startingIndex; i <= endingIndex; i++) {
206
+ const button = this.buttonsRef[i];
207
+ this.ren.setStyle(button, "display", "flex");
208
+ }
209
+ }
210
+ styleDefaultPagination() {
211
+ const nativeElement = this.elementRef.nativeElement;
212
+ const itemsPerPage = nativeElement.querySelector(".mat-mdc-paginator-page-size");
213
+ const howManyDisplayedEl = nativeElement.querySelector(".mat-mdc-paginator-range-label");
214
+ const previousButton = nativeElement.querySelector("button.mat-mdc-paginator-navigation-previous");
215
+ const nextButtonDefault = nativeElement.querySelector("button.mat-mdc-paginator-navigation-next");
216
+ if (this.hideDefaultArrows) {
217
+ this.ren.setStyle(previousButton, "display", "none");
218
+ this.ren.setStyle(nextButtonDefault, "display", "none");
219
+ }
220
+ }
221
+ createBubbleDivRef() {
222
+ const actionContainer = this.elementRef.nativeElement.querySelector("div.mat-mdc-paginator-range-actions");
223
+ const nextButtonDefault = this.elementRef.nativeElement.querySelector("button.mat-mdc-paginator-navigation-next");
224
+ this.bubbleContainerRef = this.ren.createElement("div");
225
+ this.ren.addClass(this.bubbleContainerRef, "g-bubble-container");
226
+ this.ren.insertBefore(actionContainer, this.bubbleContainerRef, nextButtonDefault);
227
+ }
228
+ buildButtons() {
229
+ const neededButtons = Math.ceil(this.appCustomLength / this.matPag.pageSize);
230
+ if (neededButtons === 1) {
231
+ this.ren.setStyle(this.elementRef.nativeElement, "display", "none");
232
+ return;
233
+ }
234
+ this.buttonsRef = [this.createButton(0)];
235
+ this.dotsStartRef = this.createDotsElement();
236
+ for (let index = 1; index < neededButtons - 1; index++) {
237
+ this.buttonsRef = [...this.buttonsRef, this.createButton(index)];
238
+ }
239
+ this.dotsEndRef = this.createDotsElement();
240
+ this.buttonsRef = [
241
+ ...this.buttonsRef,
242
+ this.createButton(neededButtons - 1),
243
+ ];
244
+ }
245
+ removeButtons() {
246
+ this.bubbleContainerRef.innerHTML = '';
247
+ this.buttonsRef.forEach((button) => {
248
+ this.ren.removeChild(this.bubbleContainerRef, button);
249
+ });
250
+ this.buttonsRef = [];
251
+ this.buttonsRef.length = 0;
252
+ }
253
+ createButton(i) {
254
+ const bubbleButton = this.ren.createElement("div");
255
+ const text = this.ren.createText(String(i + 1));
256
+ this.ren.addClass(bubbleButton, "g-bubble");
257
+ this.ren.setStyle(bubbleButton, "margin-right", "8px");
258
+ this.ren.appendChild(bubbleButton, text);
259
+ this.ren.listen(bubbleButton, "click", () => {
260
+ this.switchPage(i);
261
+ });
262
+ this.ren.appendChild(this.bubbleContainerRef, bubbleButton);
263
+ this.ren.setStyle(bubbleButton, "display", "none");
264
+ return bubbleButton;
265
+ }
266
+ createDotsElement() {
267
+ const dotsEl = this.ren.createElement("span");
268
+ const dotsText = this.ren.createText(".....");
269
+ this.ren.setStyle(dotsEl, "font-size", "18px");
270
+ this.ren.setStyle(dotsEl, "margin-right", "8px");
271
+ this.ren.setStyle(dotsEl, "padding-top", "6px");
272
+ this.ren.setStyle(dotsEl, "color", "#919191");
273
+ this.ren.appendChild(dotsEl, dotsText);
274
+ this.ren.appendChild(this.bubbleContainerRef, dotsEl);
275
+ this.ren.setStyle(dotsEl, "display", "none");
276
+ return dotsEl;
277
+ }
278
+ switchPage(i) {
279
+ const previousPageIndex = this.matPag.pageIndex;
280
+ this.matPag.pageIndex = i;
281
+ try {
282
+ this.matPag["_emitPageEvent"](previousPageIndex);
283
+ }
284
+ catch (_a) { }
285
+ this.pageIndexChangeEmitter.emit(i);
286
+ }
287
+ updateButtonsOnPageEvent() {
288
+ const neededButtons = Math.ceil(this.appCustomLength / this.matPag.pageSize);
289
+ if (neededButtons === this.buttonsRef.length) {
290
+ return;
291
+ }
292
+ this.removeButtons();
293
+ this.buildButtons();
294
+ }
295
+ }
296
+ BubblePaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BubblePaginationDirective, deps: [{ token: i1$1.MatPaginator }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
297
+ BubblePaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BubblePaginationDirective, isStandalone: true, selector: "[appBubblePagination]", inputs: { showFirstButton: "showFirstButton", showLastButton: "showLastButton", renderButtonsNumber: "renderButtonsNumber", appCustomLength: "appCustomLength", hideDefaultArrows: "hideDefaultArrows" }, outputs: { pageIndexChangeEmitter: "pageIndexChangeEmitter" }, usesOnChanges: true, ngImport: i0 });
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BubblePaginationDirective, decorators: [{
299
+ type: Directive,
300
+ args: [{
301
+ selector: "[appBubblePagination]",
302
+ standalone: true,
303
+ }]
304
+ }], ctorParameters: function () { return [{ type: i1$1.MatPaginator }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { pageIndexChangeEmitter: [{
305
+ type: Output
306
+ }], showFirstButton: [{
307
+ type: Input
308
+ }], showLastButton: [{
309
+ type: Input
310
+ }], renderButtonsNumber: [{
311
+ type: Input
312
+ }], appCustomLength: [{
313
+ type: Input
314
+ }], hideDefaultArrows: [{
315
+ type: Input
316
+ }] } });
317
+
318
+ /*
319
+ * Public API Surface of mapa-library-ui
320
+ */
321
+
322
+ /**
323
+ * Generated bundle index. Do not edit.
324
+ */
325
+
326
+ export { BubblePaginationDirective, Dropdown, ElementBase, InputText, MatInputAutosizeDirective };
327
+ //# sourceMappingURL=mapa-library-ui.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapa-library-ui.mjs","sources":["../../../projects/mapa-library-ui/src/lib/core/elements/element-base.ts","../../../projects/mapa-library-ui/src/lib/core/elements/dropdown.ts","../../../projects/mapa-library-ui/src/lib/core/elements/input-text.ts","../../../projects/mapa-library-ui/src/lib/core/directives/mat-input-autosize.directive.ts","../../../projects/mapa-library-ui/src/lib/core/directives/custom-paginator.directive.ts","../../../projects/mapa-library-ui/src/public-api.ts","../../../projects/mapa-library-ui/src/mapa-library-ui.ts"],"sourcesContent":["import { ElementOption } from '../interfaces/option.interface';\n\nexport class ElementBase {\n value: string;\n key: string;\n label: string;\n required: boolean;\n order: number;\n controlType: string;\n type: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options: ElementOption[];\n multiple?: boolean;\n\n constructor(\n options: {\n value?: string;\n key?: string;\n label?: string;\n required?: boolean;\n order?: number;\n controlType?: string;\n type?: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options?: ElementOption[];\n multiple?: boolean;\n } = {}\n ) {\n this.value = options.value || '';\n this.key = options.key || '';\n this.label = options.label || '';\n this.required = !!options.required;\n this.order = options.order === undefined ? 1 : options.order;\n this.controlType = options.controlType || '';\n this.type = options.type || '';\n this.placeholder = options.placeholder || '';\n this.hint = options.hint || '';\n this.prefix = options.prefix || '';\n this.suffix = options.suffix || '';\n this.autosize = options.autosize || false;\n this.autosizeMinWidth = options.autosizeMinWidth || '212px';\n this.autosizeMaxWidth = options.autosizeMaxWidth || '400px';\n this.options = options.options || [];\n this.multiple = options.multiple || false;\n }\n}\n","import { ElementBase } from './element-base';\n\nexport class Dropdown extends ElementBase {\n override controlType = 'dropdown';\n}\n","import { ElementBase } from './element-base';\n\nexport class InputText extends ElementBase {\n override controlType = 'input';\n}\n","/*\n* Originally from: https://github.com/anotherkitten/mat-input-autosize\n* @author: Ellie Larson (anotherkitten)\n*/\n\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Input,\n OnDestroy,\n Optional,\n Self,\n} from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { MatInput } from '@angular/material/input';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[matInputAutosize]',\n standalone: true,\n})\nexport class MatInputAutosizeDirective implements AfterViewInit, OnDestroy {\n inputElement: HTMLInputElement;\n hiddenText!: Text;\n changeDetectSub!: Subscription;\n\n @Input() matInputAutosizeMaxWidth: any;\n @Input() matInputAutosizeMinWidth = '120px';\n @Input() matInputAutosizeFontStyle: any;\n\n constructor(\n el: ElementRef<HTMLInputElement>,\n @Self() private childMatInput: MatInput,\n @Optional() @Self() private childNgModel: NgModel\n ) {\n this.inputElement = el.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.checkErrors();\n this.overwriteParentWidth();\n this.createHiddenTextContainer();\n this.setOwnStyles();\n this.subscribeToChanges();\n }\n\n ngOnDestroy(): void {\n if (this.changeDetectSub) {\n this.changeDetectSub.unsubscribe();\n }\n }\n\n checkErrors(): void {\n if (!(this.inputElement instanceof HTMLInputElement)) {\n throw new Error('matInputAutosize directive must be on an input element');\n }\n\n if (!this.childMatInput) {\n throw new Error(\n 'Element with matInputAutosize directive must also have the matInput directive'\n );\n }\n }\n\n overwriteParentWidth(): void {\n Object.assign((this.inputElement.parentNode as HTMLElement).style, {\n width: '100%',\n });\n }\n\n createHiddenTextContainer(): void {\n const textContainer = document.createElement('div');\n Object.assign(textContainer.style, {\n display: 'inline-block',\n 'max-width': this.matInputAutosizeMaxWidth || null,\n 'min-width': this.matInputAutosizeMinWidth,\n font: this.matInputAutosizeFontStyle || null,\n visibility: 'hidden',\n 'white-space': 'pre',\n });\n this.inputElement.parentNode?.appendChild(textContainer);\n\n this.hiddenText = document.createTextNode(' ');\n textContainer.appendChild(this.hiddenText);\n }\n\n setOwnStyles(): void {\n Object.assign(this.inputElement.style, {\n position: 'absolute',\n left: '0',\n });\n }\n\n subscribeToChanges(): void {\n if (this.childNgModel) {\n this.changeDetectSub = this.childNgModel.control.valueChanges.subscribe(\n this.changeHiddenText\n );\n } else {\n this.inputElement.addEventListener('input', () =>\n this.changeHiddenText(this.inputElement.value)\n );\n }\n }\n\n changeHiddenText = (newValue: string): void => {\n if (this.hiddenText) {\n this.hiddenText.data = newValue + ' ';\n }\n };\n}\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n Renderer2,\n SimpleChanges,\n} from \"@angular/core\";\nimport { MatPaginator } from \"@angular/material/paginator\";\nimport { map, startWith } from \"rxjs\";\n\n@Directive({\n selector: \"[appBubblePagination]\",\n standalone: true,\n})\nexport class BubblePaginationDirective implements AfterViewInit, OnChanges {\n @Output() pageIndexChangeEmitter: EventEmitter<number> = new EventEmitter<number>();\n @Input() showFirstButton = true;\n @Input() showLastButton = true;\n @Input() renderButtonsNumber = 2;\n @Input() appCustomLength: number = 0;\n @Input() hideDefaultArrows = false;\n private dotsEndRef!: HTMLElement;\n private dotsStartRef!: HTMLElement;\n private bubbleContainerRef!: HTMLElement;\n private buttonsRef: HTMLElement[] = [];\n\n constructor(\n private readonly matPag: MatPaginator,\n private elementRef: ElementRef,\n private ren: Renderer2\n ) {}\n\n ngAfterViewInit(): void {\n this.styleDefaultPagination();\n this.createBubbleDivRef();\n this.renderButtons();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!changes?.[\"appCustomLength\"]?.firstChange) {\n this.removeButtons();\n this.switchPage(0);\n this.renderButtons();\n }\n }\n\n private renderButtons(): void {\n this.buildButtons();\n\n this.matPag.page\n .pipe(\n map((e) => [e.previousPageIndex ?? 0, e.pageIndex]),\n startWith([0, 0])\n )\n .subscribe(([prev, curr]) => {\n this.changeActiveButtonStyles(prev, curr);\n this.updateButtonsOnPageEvent();\n });\n }\n\n private changeActiveButtonStyles(previousIndex: number, newIndex: number) {\n const previouslyActive = this.buttonsRef[previousIndex];\n const currentActive = this.buttonsRef[newIndex];\n\n try {\n this.ren.removeClass(previouslyActive, \"g-bubble__active\");\n this.ren.addClass(currentActive, \"g-bubble__active\");\n } catch {}\n\n this.buttonsRef.forEach((button) =>\n this.ren.setStyle(button, \"display\", \"none\")\n );\n\n const renderElements = this.renderButtonsNumber;\n const endDots = newIndex < this.buttonsRef.length - renderElements - 1;\n const startDots = newIndex - renderElements > 0;\n\n const firstButton = this.buttonsRef[0];\n const lastButton = this.buttonsRef[this.buttonsRef.length - 1];\n\n try {\n if (this.showLastButton) {\n this.ren.setStyle(this.dotsEndRef, \"display\", endDots ? \"block\" : \"none\");\n this.ren.setStyle(lastButton, \"display\", endDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n try {\n if (this.showFirstButton) {\n this.ren.setStyle(\n this.dotsStartRef,\n \"display\",\n startDots ? \"block\" : \"none\"\n );\n this.ren.setStyle(firstButton, \"display\", startDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n const startingIndex = startDots ? newIndex - renderElements : 0;\n const endingIndex = endDots\n ? newIndex + renderElements\n : this.buttonsRef.length - 1;\n\n for (let i = startingIndex; i <= endingIndex; i++) {\n const button = this.buttonsRef[i];\n this.ren.setStyle(button, \"display\", \"flex\");\n }\n }\n\n private styleDefaultPagination() {\n const nativeElement = this.elementRef.nativeElement;\n const itemsPerPage = nativeElement.querySelector(\n \".mat-mdc-paginator-page-size\"\n );\n const howManyDisplayedEl = nativeElement.querySelector(\n \".mat-mdc-paginator-range-label\"\n );\n const previousButton = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-previous\"\n );\n const nextButtonDefault = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n if (this.hideDefaultArrows) {\n this.ren.setStyle(previousButton, \"display\", \"none\");\n this.ren.setStyle(nextButtonDefault, \"display\", \"none\");\n }\n }\n\n private createBubbleDivRef(): void {\n const actionContainer = this.elementRef.nativeElement.querySelector(\n \"div.mat-mdc-paginator-range-actions\"\n );\n const nextButtonDefault = this.elementRef.nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n this.bubbleContainerRef = this.ren.createElement(\"div\") as HTMLElement;\n this.ren.addClass(this.bubbleContainerRef, \"g-bubble-container\");\n\n this.ren.insertBefore(\n actionContainer,\n this.bubbleContainerRef,\n nextButtonDefault\n );\n }\n\n private buildButtons(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n\n if (neededButtons === 1) {\n this.ren.setStyle(this.elementRef.nativeElement, \"display\", \"none\");\n return;\n }\n\n this.buttonsRef = [this.createButton(0)];\n this.dotsStartRef = this.createDotsElement();\n\n for (let index = 1; index < neededButtons - 1; index++) {\n this.buttonsRef = [...this.buttonsRef, this.createButton(index)];\n }\n\n this.dotsEndRef = this.createDotsElement();\n\n this.buttonsRef = [\n ...this.buttonsRef,\n this.createButton(neededButtons - 1),\n ];\n }\n\n private removeButtons(): void {\n this.bubbleContainerRef.innerHTML = '';\n this.buttonsRef.forEach((button) => {\n this.ren.removeChild(this.bubbleContainerRef, button);\n });\n this.buttonsRef = [];\n this.buttonsRef.length = 0;\n }\n\n private createButton(i: number): HTMLElement {\n const bubbleButton = this.ren.createElement(\"div\");\n const text = this.ren.createText(String(i + 1));\n\n this.ren.addClass(bubbleButton, \"g-bubble\");\n this.ren.setStyle(bubbleButton, \"margin-right\", \"8px\");\n this.ren.appendChild(bubbleButton, text);\n\n this.ren.listen(bubbleButton, \"click\", () => {\n this.switchPage(i);\n });\n\n this.ren.appendChild(this.bubbleContainerRef, bubbleButton);\n this.ren.setStyle(bubbleButton, \"display\", \"none\");\n\n return bubbleButton;\n }\n\n private createDotsElement(): HTMLElement {\n const dotsEl = this.ren.createElement(\"span\");\n const dotsText = this.ren.createText(\".....\");\n\n this.ren.setStyle(dotsEl, \"font-size\", \"18px\");\n this.ren.setStyle(dotsEl, \"margin-right\", \"8px\");\n this.ren.setStyle(dotsEl, \"padding-top\", \"6px\");\n this.ren.setStyle(dotsEl, \"color\", \"#919191\");\n\n this.ren.appendChild(dotsEl, dotsText);\n this.ren.appendChild(this.bubbleContainerRef, dotsEl);\n this.ren.setStyle(dotsEl, \"display\", \"none\");\n\n return dotsEl;\n }\n\n private switchPage(i: number): void {\n const previousPageIndex = this.matPag.pageIndex;\n this.matPag.pageIndex = i;\n try {\n this.matPag[\"_emitPageEvent\"](previousPageIndex);\n } catch {}\n\n this.pageIndexChangeEmitter.emit(i);\n }\n\n private updateButtonsOnPageEvent(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n if (neededButtons === this.buttonsRef.length) {\n return;\n }\n\n this.removeButtons();\n this.buildButtons();\n }\n}\n","/*\n * Public API Surface of mapa-library-ui\n */\n\nexport * from './lib/core/elements/element-base';\nexport * from './lib/core/elements/dropdown';\nexport * from './lib/core/elements/input-text';\n\nexport * from './lib/core/interfaces/option.interface';\n\nexport * from './lib/core/directives/mat-input-autosize.directive';\nexport * from './lib/core/directives/custom-paginator.directive';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;MAEa,WAAW,CAAA;IAkBtB,WACE,CAAA,UAiBI,EAAE,EAAA;QAEN,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;AACnC,QAAA,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,KAAK,SAAS,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;QAC7D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAA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BAAvB,KAAK;gBACG,iBAAiB,EAAA,CAAA;sBAAzB,KAAK;;;ACxBR;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,70 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/material/icon';
4
+ import { MatIconModule } from '@angular/material/icon';
5
+ import { CommonModule } from '@angular/common';
6
+
7
+ class ButtonIconComponent {
8
+ constructor() {
9
+ this.id = "";
10
+ this.description = "";
11
+ this.icon = "";
12
+ this.objectData = "";
13
+ this.clicked = new EventEmitter();
14
+ }
15
+ ngOnInit() {
16
+ const data = this.buttonData[0];
17
+ this.id = data.id;
18
+ this.description = data.description;
19
+ this.icon = data.icon;
20
+ this.objectData = data.objectData;
21
+ }
22
+ onClick(id) {
23
+ console.log(id);
24
+ this.clicked.emit(id);
25
+ }
26
+ }
27
+ ButtonIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
+ ButtonIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ButtonIconComponent, selector: "mapa-button-icon", inputs: { buttonData: "buttonData" }, outputs: { clicked: "clicked" }, ngImport: i0, template: "<div class=\"button-icon\" id=\"componentes\">\n <div class=\"template-icon\">\n <mat-icon class=\"material-icons\">{{ icon }}</mat-icon>\n </div>\n <div class=\"template-title\">\n {{ description }}\n <div style=\"font-size: 0.8em\">\n {{ objectData }}\n </div>\n </div>\n <div class=\"preview\" (click)=\"onClick(id)\">\n Preview\n </div> \n</div>", styles: [".button-icon{font-family:SF-Pro;display:inline-flex;margin:10px;height:50px;background:#fff;border:solid 1px #ccc;color:#000000de;cursor:move;font-size:16px;font-weight:400;border-radius:8px}.button-icon .inline-flex{display:inline-flex}.button-icon .descricao{padding-top:20px}.button-icon .align_text{margin-left:10px}.button-icon .template-icon{margin-right:10px;padding:10px 12px 12px;border-radius:8px 0 0 8px;background-color:#fdefea}.button-icon .template-icon .mat-icon{color:#ea561d;font-size:2em;width:40px;height:40px}.button-icon .template-title{padding-top:5px;overflow:hidden}.button-icon .preview{cursor:pointer;padding:4px 10px 10px;font-weight:500;margin:12px;border-left:1px solid #CDCDCD}\n"], dependencies: [{ kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonIconComponent, decorators: [{
30
+ type: Component,
31
+ args: [{ selector: 'mapa-button-icon', template: "<div class=\"button-icon\" id=\"componentes\">\n <div class=\"template-icon\">\n <mat-icon class=\"material-icons\">{{ icon }}</mat-icon>\n </div>\n <div class=\"template-title\">\n {{ description }}\n <div style=\"font-size: 0.8em\">\n {{ objectData }}\n </div>\n </div>\n <div class=\"preview\" (click)=\"onClick(id)\">\n Preview\n </div> \n</div>", styles: [".button-icon{font-family:SF-Pro;display:inline-flex;margin:10px;height:50px;background:#fff;border:solid 1px #ccc;color:#000000de;cursor:move;font-size:16px;font-weight:400;border-radius:8px}.button-icon .inline-flex{display:inline-flex}.button-icon .descricao{padding-top:20px}.button-icon .align_text{margin-left:10px}.button-icon .template-icon{margin-right:10px;padding:10px 12px 12px;border-radius:8px 0 0 8px;background-color:#fdefea}.button-icon .template-icon .mat-icon{color:#ea561d;font-size:2em;width:40px;height:40px}.button-icon .template-title{padding-top:5px;overflow:hidden}.button-icon .preview{cursor:pointer;padding:4px 10px 10px;font-weight:500;margin:12px;border-left:1px solid #CDCDCD}\n"] }]
32
+ }], propDecorators: { buttonData: [{
33
+ type: Input
34
+ }], clicked: [{
35
+ type: Output
36
+ }] } });
37
+
38
+ class MapaButtonIconModule {
39
+ }
40
+ MapaButtonIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
41
+ MapaButtonIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonIconModule, declarations: [ButtonIconComponent], imports: [CommonModule,
42
+ MatIconModule], exports: [ButtonIconComponent] });
43
+ MapaButtonIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonIconModule, imports: [CommonModule,
44
+ MatIconModule] });
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonIconModule, decorators: [{
46
+ type: NgModule,
47
+ args: [{
48
+ declarations: [
49
+ ButtonIconComponent
50
+ ],
51
+ imports: [
52
+ CommonModule,
53
+ MatIconModule
54
+ ],
55
+ exports: [
56
+ ButtonIconComponent
57
+ ]
58
+ }]
59
+ }] });
60
+
61
+ /*
62
+ * Public API Surface of mapa-library-ui button-icon
63
+ */
64
+
65
+ /**
66
+ * Generated bundle index. Do not edit.
67
+ */
68
+
69
+ export { ButtonIconComponent, MapaButtonIconModule };
70
+ //# sourceMappingURL=mapa-library-ui-src-lib-components-button-icon.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapa-library-ui-src-lib-components-button-icon.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/button-icon/src/button-icon.component.ts","../../../projects/mapa-library-ui/src/lib/components/button-icon/src/button-icon.component.html","../../../projects/mapa-library-ui/src/lib/components/button-icon/src/button-icon.module.ts","../../../projects/mapa-library-ui/src/lib/components/button-icon/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/button-icon/mapa-library-ui-src-lib-components-button-icon.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n\nexport interface ButtonIcon {\n id: string;\n icon: string;\n description: string;\n objectData: string;\n}\n\n@Component({\n selector: 'mapa-button-icon',\n templateUrl: './button-icon.component.html',\n styleUrls: ['./button-icon.component.scss']\n})\nexport class ButtonIconComponent {\n id: string = \"\";\n description: string = \"\";\n icon: string = \"\";\n objectData: string = \"\";\n @Input() buttonData: any;\n @Output() clicked: EventEmitter<string> = new EventEmitter<string>();\n\n ngOnInit() {\n const data = this.buttonData[0];\n this.id = data.id;\n this.description = data.description;\n this.icon = data.icon;\n this.objectData = data.objectData;\n }\n\n onClick(id: string): void {\n console.log(id);\n this.clicked.emit(id);\n }\n}\n\n\n","<div class=\"button-icon\" id=\"componentes\">\n <div class=\"template-icon\">\n <mat-icon class=\"material-icons\">{{ icon }}</mat-icon>\n </div>\n <div class=\"template-title\">\n {{ description }}\n <div style=\"font-size: 0.8em\">\n {{ objectData }}\n </div>\n </div>\n <div class=\"preview\" (click)=\"onClick(id)\">\n Preview\n </div> \n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ButtonIconComponent } from './button-icon.component';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n\n@NgModule({\n declarations: [\n ButtonIconComponent\n ],\n imports: [\n CommonModule,\n MatIconModule\n ],\n exports: [\n ButtonIconComponent\n ]\n})\nexport class MapaButtonIconModule { }\n","/*\n * Public API Surface of mapa-library-ui button-icon\n */\n\nexport * from '../button-icon/src/button-icon.component';\nexport * from '../button-icon/src/button-icon.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAca,mBAAmB,CAAA;AALhC,IAAA,WAAA,GAAA;QAME,IAAE,CAAA,EAAA,GAAW,EAAE,CAAC;QAChB,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;QACzB,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAClB,IAAU,CAAA,UAAA,GAAW,EAAE,CAAC;AAEd,QAAA,IAAA,CAAA,OAAO,GAAyB,IAAI,YAAY,EAAU,CAAC;AActE,KAAA;IAZC,QAAQ,GAAA;QACN,MAAM,IA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AA,CAAA;sBAAhB,MAAM;;;MEDI,oBAAoB,CAAA;+GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;gHAApB,oBAAoB,EAAA,YAAA,EAAA,CAV7B,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAGnB,YAAY;AACZ,YAAA,aAAa,aAGb,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGV,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAP7B,YAAY;YACZ,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAMJ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;AACpB,qBAAA;AACF,iBAAA,CAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"mapa-library-ui-src-lib-components-button-icon.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/button-icon/src/button-icon.component.ts","../../../projects/mapa-library-ui/src/lib/components/button-icon/src/button-icon.component.html","../../../projects/mapa-library-ui/src/lib/components/button-icon/src/button-icon.module.ts","../../../projects/mapa-library-ui/src/lib/components/button-icon/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/button-icon/mapa-library-ui-src-lib-components-button-icon.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n\nexport interface ButtonIcon {\n id: string;\n icon: string;\n description: string;\n objectData: string;\n}\n\n@Component({\n selector: 'mapa-button-icon',\n templateUrl: './button-icon.component.html',\n styleUrls: ['./button-icon.component.scss']\n})\nexport class ButtonIconComponent {\n id: string = \"\";\n description: string = \"\";\n icon: string = \"\";\n objectData: string = \"\";\n @Input() buttonData: any;\n @Output() clicked: EventEmitter<string> = new EventEmitter<string>();\n\n ngOnInit() {\n const data = this.buttonData[0];\n this.id = data.id;\n this.description = data.description;\n this.icon = data.icon;\n this.objectData = data.objectData;\n }\n\n onClick(id: string): void {\n console.log(id);\n this.clicked.emit(id);\n }\n}\n\n\n","<div class=\"button-icon\" id=\"componentes\">\n <div class=\"template-icon\">\n <mat-icon class=\"material-icons\">{{ icon }}</mat-icon>\n </div>\n <div class=\"template-title\">\n {{ description }}\n <div style=\"font-size: 0.8em\">\n {{ objectData }}\n </div>\n </div>\n <div class=\"preview\" (click)=\"onClick(id)\">\n Preview\n </div> \n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ButtonIconComponent } from './button-icon.component';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n\n@NgModule({\n declarations: [\n ButtonIconComponent\n ],\n imports: [\n CommonModule,\n MatIconModule\n ],\n exports: [\n ButtonIconComponent\n ]\n})\nexport class MapaButtonIconModule { }\n","/*\n * Public API Surface of mapa-library-ui button-icon\n */\n\nexport * from '../button-icon/src/button-icon.component';\nexport * from '../button-icon/src/button-icon.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAca,mBAAmB,CAAA;AALhC,IAAA,WAAA,GAAA;QAME,IAAE,CAAA,EAAA,GAAW,EAAE,CAAC;QAChB,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;QACzB,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAClB,IAAU,CAAA,UAAA,GAAW,EAAE,CAAC;AAEd,QAAA,IAAA,CAAA,OAAO,GAAyB,IAAI,YAAY,EAAU,CAAC;AActE,KAAA;IAZC,QA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AAA,CAAA;sBAAhB,MAAM;;;MEDI,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAApB,oBAAoB,EAAA,YAAA,EAAA,CAV7B,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAGnB,YAAY;AACZ,QAAA,aAAa,aAGb,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAGV,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAP7B,YAAY;QACZ,aAAa,CAAA,EAAA,CAAA,CAAA;4FAMJ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;AACpB,qBAAA;AACF,iBAAA,CAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,50 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { MatButtonModule } from '@angular/material/button';
5
+
6
+ class ButtonComponent {
7
+ constructor() {
8
+ this.clicked = new EventEmitter();
9
+ }
10
+ onClick() {
11
+ this.clicked.emit();
12
+ }
13
+ }
14
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
+ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ButtonComponent, selector: "mapa-button", inputs: { color: "color", disabled: "disabled" }, outputs: { clicked: "clicked" }, ngImport: i0, template: "<button\n class=\"mapa-button\"\n (click)=\"onClick()\"\n [class.primary]=\"color === 'primary'\"\n [class.accent]=\"color === 'accent'\"\n [class.basic]=\"color === 'basic'\"\n [disabled]=\"disabled\"\n>\n <ng-content></ng-content>\n</button> ", styles: [".mapa-button{display:flex;padding:14px 24px;justify-content:center;align-items:center;gap:10px;border-radius:28px;border:none;font-family:SF-Pro;cursor:pointer;transform-origin:center;transition:transform .2s ease-in-out}.mapa-button:active{transform:scale(1.1)}.mapa-button:disabled{color:#dcdcde!important;background-color:transparent!important}.mapa-button.basic{color:#ea561d;background-color:transparent}.mapa-button.accent{border:1px solid #ea561d;color:#ea561d;background-color:#fff}.mapa-button.primary{background-color:#ea561d;color:#fff}\n"] });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ selector: 'mapa-button', template: "<button\n class=\"mapa-button\"\n (click)=\"onClick()\"\n [class.primary]=\"color === 'primary'\"\n [class.accent]=\"color === 'accent'\"\n [class.basic]=\"color === 'basic'\"\n [disabled]=\"disabled\"\n>\n <ng-content></ng-content>\n</button> ", styles: [".mapa-button{display:flex;padding:14px 24px;justify-content:center;align-items:center;gap:10px;border-radius:28px;border:none;font-family:SF-Pro;cursor:pointer;transform-origin:center;transition:transform .2s ease-in-out}.mapa-button:active{transform:scale(1.1)}.mapa-button:disabled{color:#dcdcde!important;background-color:transparent!important}.mapa-button.basic{color:#ea561d;background-color:transparent}.mapa-button.accent{border:1px solid #ea561d;color:#ea561d;background-color:#fff}.mapa-button.primary{background-color:#ea561d;color:#fff}\n"] }]
19
+ }], propDecorators: { color: [{
20
+ type: Input
21
+ }], disabled: [{
22
+ type: Input
23
+ }], clicked: [{
24
+ type: Output
25
+ }] } });
26
+
27
+ class MapaButtonModule {
28
+ }
29
+ MapaButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
30
+ MapaButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, declarations: [ButtonComponent], imports: [CommonModule, MatButtonModule], exports: [ButtonComponent] });
31
+ MapaButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, imports: [CommonModule, MatButtonModule] });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, decorators: [{
33
+ type: NgModule,
34
+ args: [{
35
+ declarations: [ButtonComponent],
36
+ exports: [ButtonComponent],
37
+ imports: [CommonModule, MatButtonModule],
38
+ }]
39
+ }] });
40
+
41
+ /*
42
+ * Public API Surface of mapa-library-ui button
43
+ */
44
+
45
+ /**
46
+ * Generated bundle index. Do not edit.
47
+ */
48
+
49
+ export { ButtonComponent, MapaButtonModule };
50
+ //# sourceMappingURL=mapa-library-ui-src-lib-components-button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapa-library-ui-src-lib-components-button.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/button/src/button.component.ts","../../../projects/mapa-library-ui/src/lib/components/button/src/button.component.html","../../../projects/mapa-library-ui/src/lib/components/button/src/button.module.ts","../../../projects/mapa-library-ui/src/lib/components/button/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/button/mapa-library-ui-src-lib-components-button.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'mapa-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss']\n})\nexport class ButtonComponent {\n @Input() color: 'primary' | 'accent' | 'basic' | null | undefined;\n @Input() disabled!: boolean;\n @Output() clicked: EventEmitter<void> = new EventEmitter<void>();\n\n onClick(): void {\n this.clicked.emit();\n }\n}\n","<button\n class=\"mapa-button\"\n (click)=\"onClick()\"\n [class.primary]=\"color === 'primary'\"\n [class.accent]=\"color === 'accent'\"\n [class.basic]=\"color === 'basic'\"\n [disabled]=\"disabled\"\n>\n <ng-content></ng-content>\n</button> ","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatButtonModule } from '@angular/material/button';\n\nimport { ButtonComponent } from './button.component';\n\n@NgModule({\n declarations: [ButtonComponent],\n exports: [ButtonComponent],\n imports: [CommonModule, MatButtonModule],\n})\nexport class MapaButtonModule {}\n","/*\n * Public API Surface of mapa-library-ui button\n */\n\nexport * from './src/button.component';\nexport * from './src/button.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;AAQY,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAKlE,KAAA;IAHC,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB;+GAPU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,sICP5B,8PASW,EAAA,MAAA,EAAA,CAAA,uiBAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FDFE,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;+BACE,aAAa,EAAA,QAAA,EAAA,8PAAA,EAAA,MAAA,EAAA,CAAA,uiBAAA,CAAA,EAAA,CAAA;8BAKd,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACI,OAAO,EAAA,CAAA;sBAAhB,MAAM;;;MEEI,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,iBAJZ,eAAe,CAAA,EAAA,OAAA,EAAA,CAEpB,YAAY,EAAE,eAAe,aAD7B,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;gHAGd,gBAAgB,EAAA,OAAA,EAAA,CAFjB,YAAY,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAE5B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC1B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;AACzC,iBAAA,CAAA;;;ACXD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"mapa-library-ui-src-lib-components-button.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/button/src/button.component.ts","../../../projects/mapa-library-ui/src/lib/components/button/src/button.component.html","../../../projects/mapa-library-ui/src/lib/components/button/src/button.module.ts","../../../projects/mapa-library-ui/src/lib/components/button/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/button/mapa-library-ui-src-lib-components-button.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'mapa-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss']\n})\nexport class ButtonComponent {\n @Input() color: 'primary' | 'accent' | 'basic' | null | undefined;\n @Input() disabled!: boolean;\n @Output() clicked: EventEmitter<void> = new EventEmitter<void>();\n\n onClick(): void {\n this.clicked.emit();\n }\n}\n","<button\n class=\"mapa-button\"\n (click)=\"onClick()\"\n [class.primary]=\"color === 'primary'\"\n [class.accent]=\"color === 'accent'\"\n [class.basic]=\"color === 'basic'\"\n [disabled]=\"disabled\"\n>\n <ng-content></ng-content>\n</button> ","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatButtonModule } from '@angular/material/button';\n\nimport { ButtonComponent } from './button.component';\n\n@NgModule({\n declarations: [ButtonComponent],\n exports: [ButtonComponent],\n imports: [CommonModule, MatButtonModule],\n})\nexport class MapaButtonModule {}\n","/*\n * Public API Surface of mapa-library-ui button\n */\n\nexport * from './src/button.component';\nexport * from './src/button.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;AAQY,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAKlE,KAAA;IAHC,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB;;6GAPU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,sICP5B,8PASW,EAAA,MAAA,EAAA,CAAA,uiBAAA,CAAA,EAAA,CAAA,CAAA;4FDFE,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;+BACE,aAAa,EAAA,QAAA,EAAA,8PAAA,EAAA,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