mapa-library-ui 0.44.1 → 0.45.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 (129) hide show
  1. package/esm2020/lib/core/elements/element-base.mjs +2 -1
  2. package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  3. package/esm2020/src/lib/components/capability/lib/core/elements/element-base.mjs +2 -1
  4. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  5. package/esm2020/src/lib/components/chart/lib/core/elements/element-base.mjs +2 -1
  6. package/esm2020/src/lib/components/dropdown/dropdown.mjs +2 -1
  7. package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  8. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/public-api.mjs +6 -0
  9. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.component.mjs +36 -0
  10. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.module.mjs +75 -0
  11. package/esm2020/src/lib/components/dropdown/lib/core/elements/dropdown-tree.mjs +8 -0
  12. package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +2 -1
  13. package/esm2020/src/lib/components/dropdown-tree/dropdown.mjs +9 -0
  14. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/public-api.mjs +6 -0
  15. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/src/button.component.mjs +23 -0
  16. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/src/button.module.mjs +19 -0
  17. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/public-api.mjs +6 -0
  18. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.component.mjs +168 -0
  19. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.module.mjs +71 -0
  20. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/public-api.mjs +6 -0
  21. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.component.mjs +36 -0
  22. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.module.mjs +75 -0
  23. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/action-button.mjs +2 -0
  24. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/dropdown-tree.mjs +8 -0
  25. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/dropdown.mjs +8 -0
  26. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/element-base.mjs +33 -0
  27. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/element-search.mjs +2 -0
  28. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/errors.mjs +2 -0
  29. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/element-group.interface.mjs +2 -0
  30. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/element-option.interface.mjs +2 -0
  31. package/esm2020/src/lib/components/dropdown-tree/mapa-library-ui-src-lib-components-dropdown-tree.mjs +5 -0
  32. package/esm2020/src/lib/components/form/lib/components/form/src/form.component.mjs +3 -3
  33. package/esm2020/src/lib/components/form/lib/components/form/src/form.module.mjs +4 -2
  34. package/esm2020/src/lib/components/form/lib/components/input/src/input.component.mjs +1 -1
  35. package/esm2020/src/lib/components/form/lib/components/textarea/src/textarea.component.mjs +3 -3
  36. package/esm2020/src/lib/components/form/lib/core/elements/element-base.mjs +2 -1
  37. package/esm2020/src/lib/components/group-report/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  38. package/esm2020/src/lib/components/group-report/lib/core/elements/element-base.mjs +2 -1
  39. package/esm2020/src/lib/components/input/src/input.component.mjs +1 -1
  40. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +2 -1
  41. package/esm2020/src/lib/components/slide-toggle/lib/core/elements/element-base.mjs +2 -1
  42. package/esm2020/src/lib/components/table/lib/components/table/src/table.component.mjs +1 -1
  43. package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.component.mjs +3 -3
  44. package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +2 -1
  45. package/esm2020/src/lib/core/services/lib/core/services/loader/loader.service.mjs +26 -0
  46. package/esm2020/src/lib/core/services/lib/core/services/public-api.mjs +5 -0
  47. package/esm2020/src/lib/core/services/mapa-library-ui-src-lib-core-services.mjs +5 -0
  48. package/esm2020/src/lib/core/services/services.mjs +5 -0
  49. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +1 -1
  50. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  51. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs +1 -1
  52. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  53. package/fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs +432 -0
  54. package/fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -0
  55. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +102 -2
  56. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  57. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs +10 -8
  58. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  59. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +1 -1
  60. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  61. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs +1 -1
  62. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  63. package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs +3 -3
  64. package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  65. package/fesm2015/mapa-library-ui-src-lib-core-services.mjs +41 -0
  66. package/fesm2015/mapa-library-ui-src-lib-core-services.mjs.map +1 -0
  67. package/fesm2015/mapa-library-ui.mjs +1 -0
  68. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  69. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +1 -1
  70. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  71. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs +1 -1
  72. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  73. package/fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs +427 -0
  74. package/fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -0
  75. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +102 -2
  76. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  77. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs +10 -8
  78. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  79. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +1 -1
  80. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  81. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs +1 -1
  82. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  83. package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs +3 -3
  84. package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  85. package/fesm2020/mapa-library-ui-src-lib-core-services.mjs +41 -0
  86. package/fesm2020/mapa-library-ui-src-lib-core-services.mjs.map +1 -0
  87. package/fesm2020/mapa-library-ui.mjs +1 -0
  88. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  89. package/lib/core/elements/element-base.d.ts +3 -0
  90. package/mapa-library-ui-0.45.0.tgz +0 -0
  91. package/package.json +17 -1
  92. package/src/lib/components/capability/lib/core/elements/element-base.d.ts +3 -0
  93. package/src/lib/components/chart/lib/core/elements/element-base.d.ts +3 -0
  94. package/src/lib/components/dropdown/dropdown.d.ts +1 -0
  95. package/src/lib/components/dropdown/lib/components/dropdown-tree/public-api.d.ts +2 -0
  96. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.component.d.ts +11 -0
  97. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.module.d.ts +16 -0
  98. package/src/lib/components/dropdown/lib/core/elements/dropdown-tree.d.ts +4 -0
  99. package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +3 -0
  100. package/src/lib/components/dropdown-tree/dropdown.d.ts +5 -0
  101. package/src/lib/components/dropdown-tree/index.d.ts +5 -0
  102. package/src/lib/components/dropdown-tree/lib/components/button/public-api.d.ts +2 -0
  103. package/src/lib/components/dropdown-tree/lib/components/button/src/button.component.d.ts +10 -0
  104. package/src/lib/components/dropdown-tree/lib/components/button/src/button.module.d.ts +9 -0
  105. package/src/lib/components/dropdown-tree/lib/components/dropdown/public-api.d.ts +2 -0
  106. package/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.component.d.ts +40 -0
  107. package/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.module.d.ts +15 -0
  108. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/public-api.d.ts +2 -0
  109. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.component.d.ts +11 -0
  110. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.module.d.ts +16 -0
  111. package/src/lib/components/dropdown-tree/lib/core/elements/action-button.d.ts +5 -0
  112. package/src/lib/components/dropdown-tree/lib/core/elements/dropdown-tree.d.ts +4 -0
  113. package/src/lib/components/dropdown-tree/lib/core/elements/dropdown.d.ts +4 -0
  114. package/src/lib/components/dropdown-tree/lib/core/elements/element-base.d.ts +67 -0
  115. package/src/lib/components/dropdown-tree/lib/core/elements/element-search.d.ts +6 -0
  116. package/src/lib/components/dropdown-tree/lib/core/elements/errors.d.ts +12 -0
  117. package/src/lib/components/dropdown-tree/lib/core/interfaces/element-group.interface.d.ts +5 -0
  118. package/src/lib/components/dropdown-tree/lib/core/interfaces/element-option.interface.d.ts +4 -0
  119. package/src/lib/components/form/lib/components/form/src/form.module.d.ts +1 -1
  120. package/src/lib/components/form/lib/core/elements/element-base.d.ts +3 -0
  121. package/src/lib/components/group-report/lib/core/elements/element-base.d.ts +3 -0
  122. package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +3 -0
  123. package/src/lib/components/slide-toggle/lib/core/elements/element-base.d.ts +3 -0
  124. package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +3 -0
  125. package/src/lib/core/services/index.d.ts +5 -0
  126. package/src/lib/core/services/lib/core/services/loader/loader.service.d.ts +11 -0
  127. package/src/lib/core/services/lib/core/services/public-api.d.ts +1 -0
  128. package/src/lib/core/services/services.d.ts +1 -0
  129. package/mapa-library-ui-0.44.1.tgz +0 -0
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "0.44.1",
3
+ "version": "0.45.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0"
@@ -83,6 +83,14 @@
83
83
  "node": "./fesm2015/mapa-library-ui-src-lib-components-dialog.mjs",
84
84
  "default": "./fesm2020/mapa-library-ui-src-lib-components-dialog.mjs"
85
85
  },
86
+ "./src/lib/components/dropdown-tree": {
87
+ "types": "./src/lib/components/dropdown-tree/index.d.ts",
88
+ "esm2020": "./esm2020/src/lib/components/dropdown-tree/mapa-library-ui-src-lib-components-dropdown-tree.mjs",
89
+ "es2020": "./fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs",
90
+ "es2015": "./fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs",
91
+ "node": "./fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs",
92
+ "default": "./fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs"
93
+ },
86
94
  "./src/lib/components/dropdown": {
87
95
  "types": "./src/lib/components/dropdown/index.d.ts",
88
96
  "esm2020": "./esm2020/src/lib/components/dropdown/mapa-library-ui-src-lib-components-dropdown.mjs",
@@ -234,6 +242,14 @@
234
242
  "es2015": "./fesm2015/mapa-library-ui-src-lib-core-guards-authorize-guard.mjs",
235
243
  "node": "./fesm2015/mapa-library-ui-src-lib-core-guards-authorize-guard.mjs",
236
244
  "default": "./fesm2020/mapa-library-ui-src-lib-core-guards-authorize-guard.mjs"
245
+ },
246
+ "./src/lib/core/services": {
247
+ "types": "./src/lib/core/services/index.d.ts",
248
+ "esm2020": "./esm2020/src/lib/core/services/mapa-library-ui-src-lib-core-services.mjs",
249
+ "es2020": "./fesm2020/mapa-library-ui-src-lib-core-services.mjs",
250
+ "es2015": "./fesm2015/mapa-library-ui-src-lib-core-services.mjs",
251
+ "node": "./fesm2015/mapa-library-ui-src-lib-core-services.mjs",
252
+ "default": "./fesm2020/mapa-library-ui-src-lib-core-services.mjs"
237
253
  }
238
254
  }
239
255
  }
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -2,3 +2,4 @@ export * from './lib/core/elements/element-search';
2
2
  export * from './lib/core/elements/element-base';
3
3
  export * from './lib/core/elements/dropdown';
4
4
  export * from './lib/components/dropdown/public-api';
5
+ export * from './lib/components/dropdown-tree/public-api';
@@ -0,0 +1,2 @@
1
+ export * from './src/dropdown.component';
2
+ export * from './src/dropdown.module';
@@ -0,0 +1,11 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ import { DropdownTree } from "../../../core/elements/dropdown-tree";
3
+ import { TreeData } from "mat-tree-select-input";
4
+ import * as i0 from "@angular/core";
5
+ export declare class MapaDropdownTreeComponent {
6
+ formGroup: FormGroup;
7
+ element: DropdownTree;
8
+ filter(array: TreeData[], text: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownTreeComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownTreeComponent, "mapa-dropdown-tree", never, { "formGroup": "formGroup"; "element": "element"; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/material/button";
6
+ import * as i5 from "../../button/src/button.module";
7
+ import * as i6 from "@angular/material/list";
8
+ import * as i7 from "@angular/material/icon";
9
+ import * as i8 from "@angular/material/input";
10
+ import * as i9 from "@angular/material/select";
11
+ import * as i10 from "mat-tree-select-input";
12
+ export declare class MapaDropdownTreeModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownTreeModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaDropdownTreeModule, [typeof i1.MapaDropdownTreeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatButtonModule, typeof i5.MapaButtonModule, typeof i6.MatListModule, typeof i7.MatIconModule, typeof i8.MatInputModule, typeof i9.MatSelectModule, typeof i10.MatTreeSelectInputModule], [typeof i1.MapaDropdownTreeComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaDropdownTreeModule>;
16
+ }
@@ -0,0 +1,4 @@
1
+ import { ElementBase } from './element-base';
2
+ export declare class DropdownTree extends ElementBase {
3
+ controlType: string;
4
+ }
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -0,0 +1,5 @@
1
+ export * from './lib/core/elements/element-search';
2
+ export * from './lib/core/elements/element-base';
3
+ export * from './lib/core/elements/dropdown';
4
+ export * from './lib/components/dropdown/public-api';
5
+ export * from './lib/components/dropdown-tree/public-api';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="mapa-library-ui/src/lib/components/dropdown-tree" />
5
+ export * from './dropdown';
@@ -0,0 +1,2 @@
1
+ export * from './src/button.component';
2
+ export * from './src/button.module';
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ButtonComponent {
4
+ color: 'primary' | 'accent' | 'basic' | null | undefined;
5
+ disabled: boolean;
6
+ clicked: EventEmitter<void>;
7
+ onClick(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "mapa-button", never, { "color": "color"; "disabled": "disabled"; }, { "clicked": "clicked"; }, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/button";
5
+ export declare class MapaButtonModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaButtonModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaButtonModule, [typeof i1.ButtonComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule], [typeof i1.ButtonComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaButtonModule>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/dropdown.component';
2
+ export * from './src/dropdown.module';
@@ -0,0 +1,40 @@
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
2
+ import { FormControl } from "@angular/forms";
3
+ import { MatSelect } from "@angular/material/select";
4
+ import { ReplaySubject } from "rxjs/internal/ReplaySubject";
5
+ import { Subject } from "rxjs/internal/Subject";
6
+ import { ElementOption } from "../../../core/interfaces/element-option.interface";
7
+ import { Dropdown } from "../../../core/elements/dropdown";
8
+ import { ElementGroup } from "../../../core/interfaces/element-group.interface";
9
+ import * as i0 from "@angular/core";
10
+ export declare class MapaDropdownComponent implements OnInit, OnDestroy, OnChanges {
11
+ formControl: FormControl;
12
+ formControlSearch: FormControl;
13
+ element: Dropdown;
14
+ border: "soft" | "tag" | "highlight" | null | undefined;
15
+ dropdown: MatSelect;
16
+ filteredOptions: ReplaySubject<ElementOption[]>;
17
+ filteredGroups: ReplaySubject<ElementGroup[]>;
18
+ protected filteredOptionsCache: ElementOption[];
19
+ protected filteredGroupCache: ElementGroup[];
20
+ protected _onDestroy: Subject<void>;
21
+ isIndeterminate: boolean;
22
+ isChecked: boolean;
23
+ isOptionsGroup: boolean;
24
+ get selectedOptions(): any[];
25
+ constructor();
26
+ ngOnInit(): void;
27
+ ngOnChanges(changes: SimpleChanges): void;
28
+ ngOnDestroy(): void;
29
+ setOptions(): void;
30
+ protected filterOptionsFromGroup(group: ElementGroup, value: string): ElementOption[];
31
+ protected filterOptions(): void;
32
+ protected setToggleAllCheckboxState(): void;
33
+ toggleSelectAll(selectAllValue: boolean): void;
34
+ isElementGroup(object: ElementGroup | ElementOption): object is ElementGroup;
35
+ compareFn(c1: any, c2: any): boolean;
36
+ hasValue(): boolean;
37
+ clearValue(event: any): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "formControl": "formControl"; "formControlSearch": "formControlSearch"; "element": "element"; "border": "border"; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/material/button";
6
+ import * as i5 from "../../button/src/button.module";
7
+ import * as i6 from "@angular/material/list";
8
+ import * as i7 from "@angular/material/icon";
9
+ import * as i8 from "@angular/material/select";
10
+ import * as i9 from "ngx-mat-select-search";
11
+ export declare class MapaDropdownModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaDropdownModule, [typeof i1.MapaDropdownComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatButtonModule, typeof i5.MapaButtonModule, typeof i6.MatListModule, typeof i7.MatIconModule, typeof i8.MatSelectModule, typeof i9.NgxMatSelectSearchModule], [typeof i1.MapaDropdownComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaDropdownModule>;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/dropdown.component';
2
+ export * from './src/dropdown.module';
@@ -0,0 +1,11 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ import { DropdownTree } from "../../../core/elements/dropdown-tree";
3
+ import { TreeData } from "mat-tree-select-input";
4
+ import * as i0 from "@angular/core";
5
+ export declare class MapaDropdownTreeComponent {
6
+ formGroup: FormGroup;
7
+ element: DropdownTree;
8
+ filter(array: TreeData[], text: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownTreeComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownTreeComponent, "mapa-dropdown-tree", never, { "formGroup": "formGroup"; "element": "element"; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/material/button";
6
+ import * as i5 from "../../button/src/button.module";
7
+ import * as i6 from "@angular/material/list";
8
+ import * as i7 from "@angular/material/icon";
9
+ import * as i8 from "@angular/material/input";
10
+ import * as i9 from "@angular/material/select";
11
+ import * as i10 from "mat-tree-select-input";
12
+ export declare class MapaDropdownTreeModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownTreeModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaDropdownTreeModule, [typeof i1.MapaDropdownTreeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatButtonModule, typeof i5.MapaButtonModule, typeof i6.MatListModule, typeof i7.MatIconModule, typeof i8.MatInputModule, typeof i9.MatSelectModule, typeof i10.MatTreeSelectInputModule], [typeof i1.MapaDropdownTreeComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaDropdownTreeModule>;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface ActionButton {
3
+ label: string;
4
+ action: EventEmitter<any>;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { ElementBase } from './element-base';
2
+ export declare class DropdownTree extends ElementBase {
3
+ controlType: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { ElementBase } from './element-base';
2
+ export declare class Dropdown extends ElementBase {
3
+ controlType: string;
4
+ }
@@ -0,0 +1,67 @@
1
+ import { TreeData } from "mat-tree-select-input";
2
+ import { ElementGroup } from "../interfaces/element-group.interface";
3
+ import { ElementOption } from "../interfaces/element-option.interface";
4
+ import { ActionButton } from "./action-button";
5
+ import { ElementSearch } from "./element-search";
6
+ import { Errors } from "./errors";
7
+ export interface Status {
8
+ label: string;
9
+ }
10
+ export declare class ElementBase {
11
+ value: string;
12
+ key: string;
13
+ label: string;
14
+ required: boolean;
15
+ order: number;
16
+ controlType: string;
17
+ type: string;
18
+ placeholder?: string;
19
+ hint?: string;
20
+ prefix?: string;
21
+ suffix?: string;
22
+ autosize?: boolean;
23
+ autosizeMinWidth?: string;
24
+ autosizeMaxWidth?: string;
25
+ autosizeMinRow?: number;
26
+ autosizeMaxRow?: number;
27
+ options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
29
+ multiple?: boolean;
30
+ search?: ElementSearch;
31
+ maxLength: string | number | null;
32
+ errors?: Errors;
33
+ actionButton?: ActionButton;
34
+ mask?: string;
35
+ autocomplete?: string;
36
+ clearValue?: boolean;
37
+ status?: Status[];
38
+ constructor(options?: {
39
+ value?: string;
40
+ key?: string;
41
+ label?: string;
42
+ required?: boolean;
43
+ order?: number;
44
+ controlType?: string;
45
+ type?: string;
46
+ placeholder?: string;
47
+ hint?: string;
48
+ prefix?: string;
49
+ suffix?: string;
50
+ autosize?: boolean;
51
+ autosizeMinWidth?: string;
52
+ autosizeMaxWidth?: string;
53
+ autosizeMinRow?: number;
54
+ autosizeMaxRow?: number;
55
+ options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
57
+ multiple?: boolean;
58
+ search?: ElementSearch;
59
+ maxLength?: string | number | null;
60
+ errors?: Errors;
61
+ actionButton?: ActionButton;
62
+ mask?: string;
63
+ autocomplete?: string;
64
+ clearValue?: boolean;
65
+ status?: Status[];
66
+ });
67
+ }
@@ -0,0 +1,6 @@
1
+ import { FormControl } from "@angular/forms";
2
+ export interface ElementSearch {
3
+ placeholder?: string;
4
+ noEntriesFoundLabel?: string;
5
+ formControl?: FormControl;
6
+ }
@@ -0,0 +1,12 @@
1
+ export interface Errors {
2
+ required?: string;
3
+ minlength?: string;
4
+ cpf?: string;
5
+ cnpj?: string;
6
+ email?: string;
7
+ pattern?: string;
8
+ min?: string;
9
+ max?: string;
10
+ minLength?: string;
11
+ maxLength?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ import { ElementOption } from "./element-option.interface";
2
+ export interface ElementGroup {
3
+ label: string;
4
+ options: ElementOption[];
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface ElementOption {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -8,6 +8,6 @@ import * as i6 from "mapa-library-ui/src/lib/components/textarea";
8
8
  import * as i7 from "mapa-library-ui/src/lib/components/slide-toggle";
9
9
  export declare class MapaFormModule {
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<MapaFormModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapaFormModule, [typeof i1.MapaFormComponent], [typeof i2.CommonModule, typeof i3.MapaInputModule, typeof i4.MapaDropdownModule, typeof i5.MapaRadioButtonModule, typeof i6.MapaTextareaModule, typeof i7.MapaSlideToggleModule], [typeof i1.MapaFormComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaFormModule, [typeof i1.MapaFormComponent], [typeof i2.CommonModule, typeof i3.MapaInputModule, typeof i4.MapaDropdownModule, typeof i4.MapaDropdownTreeModule, typeof i5.MapaRadioButtonModule, typeof i6.MapaTextareaModule, typeof i7.MapaSlideToggleModule], [typeof i1.MapaFormComponent]>;
12
12
  static ɵinj: i0.ɵɵInjectorDeclaration<MapaFormModule>;
13
13
  }
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -1,3 +1,4 @@
1
+ import { TreeData } from "mat-tree-select-input";
1
2
  import { ElementGroup } from "../interfaces/element-group.interface";
2
3
  import { ElementOption } from "../interfaces/element-option.interface";
3
4
  import { ActionButton } from "./action-button";
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  autosizeMinRow?: number;
25
26
  autosizeMaxRow?: number;
26
27
  options: ElementOption[] | ElementGroup[];
28
+ tree: TreeData[];
27
29
  multiple?: boolean;
28
30
  search?: ElementSearch;
29
31
  maxLength: string | number | null;
@@ -51,6 +53,7 @@ export declare class ElementBase {
51
53
  autosizeMinRow?: number;
52
54
  autosizeMaxRow?: number;
53
55
  options?: ElementOption[] | ElementGroup[];
56
+ tree?: TreeData[];
54
57
  multiple?: boolean;
55
58
  search?: ElementSearch;
56
59
  maxLength?: string | number | null;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="mapa-library-ui/src/lib/core/services" />
5
+ export * from './services';
@@ -0,0 +1,11 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoaderService {
4
+ isLoading: BehaviorSubject<boolean>;
5
+ loadingMessage: BehaviorSubject<string>;
6
+ constructor();
7
+ startLoader(message?: string): void;
8
+ stopLoader(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
11
+ }
@@ -0,0 +1 @@
1
+ export * from './loader/loader.service';
@@ -0,0 +1 @@
1
+ export * from './lib/core/services/public-api';
Binary file