mapa-library-ui 0.0.50 → 0.1.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 (95) hide show
  1. package/esm2020/lib/core/interfaces/chart-options.interface.mjs +2 -0
  2. package/esm2020/public-api.mjs +3 -2
  3. package/esm2020/src/lib/components/chart/chart.mjs +5 -0
  4. package/esm2020/src/lib/components/chart/lib/components/chart/public-api.mjs +6 -0
  5. package/esm2020/src/lib/components/chart/lib/components/chart/src/chart.component.mjs +99 -0
  6. package/esm2020/src/lib/components/chart/lib/components/chart/src/chart.module.mjs +32 -0
  7. package/esm2020/src/lib/components/chart/lib/components/dropdown/public-api.mjs +6 -0
  8. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.mjs +103 -0
  9. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.module.mjs +63 -0
  10. package/esm2020/src/lib/components/chart/lib/core/elements/dropdown.mjs +8 -0
  11. package/esm2020/src/lib/components/chart/lib/core/elements/element-base.mjs +26 -0
  12. package/esm2020/src/lib/components/chart/lib/core/elements/element-search.mjs +2 -0
  13. package/esm2020/src/lib/components/chart/lib/core/elements/errors.mjs +2 -0
  14. package/esm2020/src/lib/components/chart/lib/core/interfaces/chart-options.interface.mjs +2 -0
  15. package/esm2020/src/lib/components/chart/lib/core/interfaces/option.interface.mjs +2 -0
  16. package/esm2020/src/lib/components/chart/mapa-library-ui-src-lib-components-chart.mjs +5 -0
  17. package/esm2020/src/lib/components/dialog/chart.mjs +5 -0
  18. package/esm2020/src/lib/components/dialog/lib/components/chart/public-api.mjs +6 -0
  19. package/esm2020/src/lib/components/dialog/lib/components/chart/src/chart.component.mjs +99 -0
  20. package/esm2020/src/lib/components/dialog/lib/components/chart/src/chart.module.mjs +32 -0
  21. package/esm2020/src/lib/components/dialog/lib/components/dropdown/public-api.mjs +6 -0
  22. package/esm2020/src/lib/components/dialog/lib/components/dropdown/src/dropdown.component.mjs +103 -0
  23. package/esm2020/src/lib/components/dialog/lib/components/dropdown/src/dropdown.module.mjs +63 -0
  24. package/esm2020/src/lib/components/dialog/lib/core/elements/dropdown.mjs +8 -0
  25. package/esm2020/src/lib/components/dialog/lib/core/elements/element-base.mjs +26 -0
  26. package/esm2020/src/lib/components/dialog/lib/core/elements/element-search.mjs +2 -0
  27. package/esm2020/src/lib/components/dialog/lib/core/elements/errors.mjs +2 -0
  28. package/esm2020/src/lib/components/dialog/lib/core/interfaces/chart-options.interface.mjs +2 -0
  29. package/esm2020/src/lib/components/dialog/lib/core/interfaces/option.interface.mjs +2 -0
  30. package/esm2020/src/lib/components/dialog/mapa-library-ui-src-lib-components-dialog.mjs +2 -2
  31. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs +307 -0
  32. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs.map +1 -0
  33. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs +255 -126
  34. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  35. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  36. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs +304 -0
  37. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs.map +1 -0
  38. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs +252 -124
  39. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  40. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  41. package/lib/core/interfaces/chart-options.interface.d.ts +19 -0
  42. package/mapa-library-ui-0.1.0.tgz +0 -0
  43. package/package.json +9 -1
  44. package/public-api.d.ts +2 -1
  45. package/src/lib/components/chart/chart.d.ts +1 -0
  46. package/src/lib/components/chart/index.d.ts +5 -0
  47. package/src/lib/components/chart/lib/components/chart/public-api.d.ts +2 -0
  48. package/src/lib/components/chart/lib/components/chart/src/chart.component.d.ts +13 -0
  49. package/src/lib/components/chart/lib/components/chart/src/chart.module.d.ts +10 -0
  50. package/src/lib/components/chart/lib/components/dropdown/public-api.d.ts +2 -0
  51. package/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.d.ts +30 -0
  52. package/src/lib/components/chart/lib/components/dropdown/src/dropdown.module.d.ts +13 -0
  53. package/src/lib/components/chart/lib/core/elements/dropdown.d.ts +4 -0
  54. package/src/lib/components/chart/lib/core/elements/element-base.d.ts +49 -0
  55. package/src/lib/components/chart/lib/core/elements/element-search.d.ts +6 -0
  56. package/src/lib/components/chart/lib/core/elements/errors.d.ts +7 -0
  57. package/src/lib/components/chart/lib/core/interfaces/chart-options.interface.d.ts +19 -0
  58. package/src/lib/components/chart/lib/core/interfaces/option.interface.d.ts +4 -0
  59. package/src/lib/components/dialog/chart.d.ts +1 -0
  60. package/src/lib/components/dialog/index.d.ts +1 -1
  61. package/src/lib/components/dialog/lib/components/chart/public-api.d.ts +2 -0
  62. package/src/lib/components/dialog/lib/components/chart/src/chart.component.d.ts +13 -0
  63. package/src/lib/components/dialog/lib/components/chart/src/chart.module.d.ts +10 -0
  64. package/src/lib/components/dialog/lib/components/dropdown/public-api.d.ts +2 -0
  65. package/src/lib/components/dialog/lib/components/dropdown/src/dropdown.component.d.ts +30 -0
  66. package/src/lib/components/dialog/lib/components/dropdown/src/dropdown.module.d.ts +13 -0
  67. package/src/lib/components/dialog/lib/core/elements/dropdown.d.ts +4 -0
  68. package/src/lib/components/dialog/lib/core/elements/element-base.d.ts +49 -0
  69. package/src/lib/components/dialog/lib/core/elements/element-search.d.ts +6 -0
  70. package/src/lib/components/dialog/lib/core/elements/errors.d.ts +7 -0
  71. package/src/lib/components/dialog/lib/core/interfaces/chart-options.interface.d.ts +19 -0
  72. package/src/lib/components/dialog/lib/core/interfaces/option.interface.d.ts +4 -0
  73. package/esm2020/src/lib/components/dialog/dialog.mjs +0 -7
  74. package/esm2020/src/lib/components/dialog/lib/components/button/public-api.mjs +0 -6
  75. package/esm2020/src/lib/components/dialog/lib/components/button/src/button.component.mjs +0 -23
  76. package/esm2020/src/lib/components/dialog/lib/components/button/src/button.module.mjs +0 -19
  77. package/esm2020/src/lib/components/dialog/lib/components/dialog/public-api.mjs +0 -6
  78. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.component.mjs +0 -50
  79. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.module.mjs +0 -36
  80. package/esm2020/src/lib/components/dialog/lib/components/icon/public-api.mjs +0 -6
  81. package/esm2020/src/lib/components/dialog/lib/components/icon/src/icon.component.mjs +0 -26
  82. package/esm2020/src/lib/components/dialog/lib/components/icon/src/icon.module.mjs +0 -19
  83. package/esm2020/src/lib/components/dialog/lib/core/interfaces/dialog-data.interface.mjs +0 -2
  84. package/mapa-library-ui-0.0.50.tgz +0 -0
  85. package/src/lib/components/dialog/dialog.d.ts +0 -3
  86. package/src/lib/components/dialog/lib/components/button/public-api.d.ts +0 -2
  87. package/src/lib/components/dialog/lib/components/button/src/button.component.d.ts +0 -10
  88. package/src/lib/components/dialog/lib/components/button/src/button.module.d.ts +0 -9
  89. package/src/lib/components/dialog/lib/components/dialog/public-api.d.ts +0 -2
  90. package/src/lib/components/dialog/lib/components/dialog/src/dialog.component.d.ts +0 -19
  91. package/src/lib/components/dialog/lib/components/dialog/src/dialog.module.d.ts +0 -11
  92. package/src/lib/components/dialog/lib/components/icon/public-api.d.ts +0 -2
  93. package/src/lib/components/dialog/lib/components/icon/src/icon.component.d.ts +0 -13
  94. package/src/lib/components/dialog/lib/components/icon/src/icon.module.d.ts +0 -9
  95. package/src/lib/components/dialog/lib/core/interfaces/dialog-data.interface.d.ts +0 -9
@@ -1,178 +1,307 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output, NgModule, Inject } from '@angular/core';
3
- import * as i3 from '@angular/common';
2
+ import { Component, ViewEncapsulation, Input, ViewChild, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import { MatButtonModule } from '@angular/material/button';
6
- import * as i1 from '@angular/material/icon';
5
+ import * as i2$1 from 'ng-apexcharts';
6
+ import { NgApexchartsModule } from 'ng-apexcharts';
7
+ import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
8
+ import { Subject } from 'rxjs/internal/Subject';
9
+ import * as i2 from '@angular/forms';
10
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
11
+ import * as i3 from '@angular/material/form-field';
12
+ import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
13
+ import * as i4 from '@angular/material/select';
14
+ import { MatSelectModule, MAT_SELECT_CONFIG } from '@angular/material/select';
15
+ import * as i5 from '@angular/material/core';
16
+ import * as i6 from 'ngx-mat-select-search';
17
+ import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
18
+ import { MatListModule } from '@angular/material/list';
7
19
  import { MatIconModule } from '@angular/material/icon';
8
- import * as i2 from '@angular/platform-browser';
9
- import * as i1$1 from '@angular/material/dialog';
10
- import { MAT_DIALOG_DATA, MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
11
- import * as i4 from 'mapa-library-ui/src/lib/components/button';
12
- import { MapaButtonModule as MapaButtonModule$1 } from 'mapa-library-ui/src/lib/components/button';
13
20
 
14
- class ButtonComponent {
21
+ class MapaDropdownComponent {
15
22
  constructor() {
16
- this.clicked = new EventEmitter();
23
+ this.filteredOptions = new ReplaySubject(1);
24
+ this.filteredOptionsCache = [];
25
+ this._onDestroy = new Subject();
26
+ this.isIndeterminate = false;
27
+ this.isChecked = false;
17
28
  }
18
- onClick() {
19
- this.clicked.emit();
29
+ ngOnInit() {
30
+ var _a;
31
+ this.filteredOptionsCache = this.element.options.slice();
32
+ this.filteredOptions.next(this.filteredOptionsCache);
33
+ if (this.element.search) {
34
+ (_a = this.element.search.formControl) === null || _a === void 0 ? void 0 : _a.valueChanges.subscribe(() => {
35
+ this.filterOptions();
36
+ this.setToggleAllCheckboxState();
37
+ });
38
+ }
39
+ }
40
+ ngAfterViewInit() {
41
+ this.setInitialValue();
42
+ }
43
+ ngOnDestroy() {
44
+ this._onDestroy.next();
45
+ this._onDestroy.complete();
46
+ }
47
+ filterOptions() {
48
+ var _a, _b;
49
+ if (!this.element.options) {
50
+ return;
51
+ }
52
+ // get the search keyword
53
+ let search = (_b = (_a = this.element.search) === null || _a === void 0 ? void 0 : _a.formControl) === null || _b === void 0 ? void 0 : _b.value;
54
+ if (!search) {
55
+ this.filteredOptionsCache = this.element.options.slice();
56
+ this.filteredOptions.next(this.filteredOptionsCache);
57
+ return;
58
+ }
59
+ // filter the options
60
+ this.filteredOptionsCache = this.element.options.filter((option) => option.value.toLowerCase().indexOf(search) > -1);
61
+ this.filteredOptions.next(this.filteredOptionsCache);
62
+ }
63
+ setInitialValue() {
64
+ this.filteredOptions
65
+ //.pipe(take(1), takeUntil(this._onDestroy))
66
+ .subscribe(() => {
67
+ this.dropdown.compareWith = (a, b) => a && b && a.id === b.id;
68
+ });
69
+ }
70
+ setToggleAllCheckboxState() {
71
+ var _a, _b;
72
+ let filteredLength = 0;
73
+ let search = (_b = (_a = this.element.search) === null || _a === void 0 ? void 0 : _a.formControl) === null || _b === void 0 ? void 0 : _b.value;
74
+ if (search && search.value) {
75
+ this.filteredOptionsCache.forEach(el => {
76
+ if (search.value.toLowerCase().indexOf(el) > -1) {
77
+ filteredLength++;
78
+ }
79
+ });
80
+ this.isIndeterminate = filteredLength > 0 && filteredLength < this.filteredOptionsCache.length;
81
+ this.isChecked = filteredLength > 0 && filteredLength === this.filteredOptionsCache.length;
82
+ }
83
+ }
84
+ toggleSelectAll(selectAllValue) {
85
+ this.filteredOptions
86
+ //.pipe(take(1), takeUntil(this._onDestroy))
87
+ .subscribe((options) => {
88
+ var _a, _b;
89
+ if (selectAllValue) {
90
+ (_a = this.formControl) === null || _a === void 0 ? void 0 : _a.patchValue(options);
91
+ }
92
+ else {
93
+ (_b = this.formControl) === null || _b === void 0 ? void 0 : _b.patchValue([]);
94
+ }
95
+ });
20
96
  }
21
97
  }
22
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
- 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 42px;justify-content:center;align-items:center;gap:10px;border-radius:28px;border:none;font-family:SF-Pro;font-weight:500;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"] });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonComponent, decorators: [{
98
+ MapaDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
99
+ MapaDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaDropdownComponent, selector: "mapa-dropdown", inputs: { formControl: "formControl", formControlSearch: "formControlSearch", element: "element", border: "border" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }], ngImport: i0, template: "<label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n</label>\n<mat-form-field\n appearance=\"outline\"\n class=\"mapa-dropdown\"\n [class.mapa-dropdown--highlight]=\"border === 'highlight'\"\n [class.mapa-dropdown--soft-border]=\"border === 'soft'\"\n [class.mapa-dropdown--tag]=\"border === 'tag'\"\n [class.mapa-dropdown--labeled]=\"!!element.label\">\n <mat-select\n #dropdown\n [formControl]=\"formControl\"\n [multiple]=\"element.multiple\"\n [placeholder]=\"element.placeholder || ''\"\n >\n <mat-option *ngIf=\"element.search\" class=\"mapa-dropdown__search\">\n <ngx-mat-select-search\n *ngIf=\"element.search.formControl\"\n [showToggleAllCheckbox]=\"true\"\n [formControl]=\"element.search.formControl\"\n [placeholderLabel]=\"element.search.placeholder || ''\"\n i18n-placeholderLabel\n [noEntriesFoundLabel]=\"element.search.noEntriesFoundLabel || ''\"\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate\"\n [toggleAllCheckboxChecked]=\"isChecked\"\n (toggleAll)=\"toggleSelectAll($event)\"\n ></ngx-mat-select-search>\n </mat-option>\n\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\n {{ option.value }}\n </mat-option>\n </mat-select>\n <mat-error\n *ngIf=\"formControl?.hasError('required')\">\n {{ element.errors?.required }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('minlength')\">\n {{ element.errors?.minlength }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('cpf')\">\n {{ element.errors?.cpf }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('cnpj')\">\n {{ element.errors?.cnpj }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('email')\">\n {{ element.errors?.email }}\n </mat-error>\n</mat-form-field>\n", styles: [".mapa-dropdown{max-width:min-content;min-width:235px}.mapa-dropdown .mat-select{font-family:SF-Pro!important}.mapa-dropdown .mat-icon{display:flex;justify-content:center;align-items:center}.mapa-dropdown__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown--highlight .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#eedb2a}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important}.mapa-dropdown--tag .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#cdcdcd}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown .mat-form-field-outline{background-color:#fff;border-radius:8px}.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-end{border-width:2px}.mapa-dropdown .mat-form-field-flex{display:flex;align-items:center;height:48px}.mapa-dropdown .mat-form-field-infix{border-top:unset!important;padding:unset!important}.mapa-dropdown .mat-select-trigger{min-width:50px;padding-top:.3em;height:unset!important}.mapa-dropdown .mat-select-value-text{display:block;width:90%}.mapa-dropdown .mat-select-arrow-wrapper{transform:none!important}.mapa-dropdown .mat-select-arrow{border:unset}.mapa-dropdown .mat-select-arrow:before,.mapa-dropdown .mat-select-arrow:after{content:\"\";display:block;margin-top:-4px;position:absolute;right:10px;top:50%;width:0;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.mapa-dropdown [aria-expanded=true] .mat-select-arrow{margin:6px 0 0}.mapa-dropdown [aria-expanded=true] .mat-select-arrow:before,.mapa-dropdown [aria-expanded=true] .mat-select-arrow:after{transform:rotate(-135deg)!important;-webkit-transform:rotate(-135deg)!important}.mapa-overlay-dropdown{transform:translate(-16px) translateY(36px)!important}.mapa-overlay-dropdown .mat-select-panel{border-radius:8px;min-width:calc(100% + 24px)!important}.mapa-overlay-dropdown .mat-select-panel .mat-option,.mapa-overlay-dropdown .mat-select-panel .mat-option-text{font-family:SF-Pro!important;font-size:16px;font-style:normal;font-weight:400;line-height:2em;height:2em;color:#50575e}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option{display:flex;padding:16px 8px!important;flex-direction:column;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#f6f7f7;height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inside-mat-option{height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-clear{top:-3px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inner{top:8px;border:2px solid #a7aaad;border-radius:8px!important;width:100%!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-toggle-all-checkbox{padding-left:8px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input{padding:8px 8px 8px 6px!important;height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input::placeholder{color:#c3c4c7!important}.mapa-overlay-dropdown .mapa-dropdown__search .mat-option-text{width:100%}.mapa-overlay-dropdown .mat-pseudo-checkbox{color:#c3c4c7!important}.mapa-overlay-dropdown .mat-checkbox-frame{border-color:#c3c4c7!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i6.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownComponent, decorators: [{
25
101
  type: Component,
26
- 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 42px;justify-content:center;align-items:center;gap:10px;border-radius:28px;border:none;font-family:SF-Pro;font-weight:500;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"] }]
27
- }], propDecorators: { color: [{
102
+ args: [{ selector: "mapa-dropdown", encapsulation: ViewEncapsulation.None, template: "<label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n</label>\n<mat-form-field\n appearance=\"outline\"\n class=\"mapa-dropdown\"\n [class.mapa-dropdown--highlight]=\"border === 'highlight'\"\n [class.mapa-dropdown--soft-border]=\"border === 'soft'\"\n [class.mapa-dropdown--tag]=\"border === 'tag'\"\n [class.mapa-dropdown--labeled]=\"!!element.label\">\n <mat-select\n #dropdown\n [formControl]=\"formControl\"\n [multiple]=\"element.multiple\"\n [placeholder]=\"element.placeholder || ''\"\n >\n <mat-option *ngIf=\"element.search\" class=\"mapa-dropdown__search\">\n <ngx-mat-select-search\n *ngIf=\"element.search.formControl\"\n [showToggleAllCheckbox]=\"true\"\n [formControl]=\"element.search.formControl\"\n [placeholderLabel]=\"element.search.placeholder || ''\"\n i18n-placeholderLabel\n [noEntriesFoundLabel]=\"element.search.noEntriesFoundLabel || ''\"\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate\"\n [toggleAllCheckboxChecked]=\"isChecked\"\n (toggleAll)=\"toggleSelectAll($event)\"\n ></ngx-mat-select-search>\n </mat-option>\n\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\n {{ option.value }}\n </mat-option>\n </mat-select>\n <mat-error\n *ngIf=\"formControl?.hasError('required')\">\n {{ element.errors?.required }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('minlength')\">\n {{ element.errors?.minlength }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('cpf')\">\n {{ element.errors?.cpf }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('cnpj')\">\n {{ element.errors?.cnpj }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('email')\">\n {{ element.errors?.email }}\n </mat-error>\n</mat-form-field>\n", styles: [".mapa-dropdown{max-width:min-content;min-width:235px}.mapa-dropdown .mat-select{font-family:SF-Pro!important}.mapa-dropdown .mat-icon{display:flex;justify-content:center;align-items:center}.mapa-dropdown__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown--highlight .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#eedb2a}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important}.mapa-dropdown--tag .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#cdcdcd}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown .mat-form-field-outline{background-color:#fff;border-radius:8px}.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-end{border-width:2px}.mapa-dropdown .mat-form-field-flex{display:flex;align-items:center;height:48px}.mapa-dropdown .mat-form-field-infix{border-top:unset!important;padding:unset!important}.mapa-dropdown .mat-select-trigger{min-width:50px;padding-top:.3em;height:unset!important}.mapa-dropdown .mat-select-value-text{display:block;width:90%}.mapa-dropdown .mat-select-arrow-wrapper{transform:none!important}.mapa-dropdown .mat-select-arrow{border:unset}.mapa-dropdown .mat-select-arrow:before,.mapa-dropdown .mat-select-arrow:after{content:\"\";display:block;margin-top:-4px;position:absolute;right:10px;top:50%;width:0;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.mapa-dropdown [aria-expanded=true] .mat-select-arrow{margin:6px 0 0}.mapa-dropdown [aria-expanded=true] .mat-select-arrow:before,.mapa-dropdown [aria-expanded=true] .mat-select-arrow:after{transform:rotate(-135deg)!important;-webkit-transform:rotate(-135deg)!important}.mapa-overlay-dropdown{transform:translate(-16px) translateY(36px)!important}.mapa-overlay-dropdown .mat-select-panel{border-radius:8px;min-width:calc(100% + 24px)!important}.mapa-overlay-dropdown .mat-select-panel .mat-option,.mapa-overlay-dropdown .mat-select-panel .mat-option-text{font-family:SF-Pro!important;font-size:16px;font-style:normal;font-weight:400;line-height:2em;height:2em;color:#50575e}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option{display:flex;padding:16px 8px!important;flex-direction:column;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#f6f7f7;height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inside-mat-option{height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-clear{top:-3px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inner{top:8px;border:2px solid #a7aaad;border-radius:8px!important;width:100%!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-toggle-all-checkbox{padding-left:8px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input{padding:8px 8px 8px 6px!important;height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input::placeholder{color:#c3c4c7!important}.mapa-overlay-dropdown .mapa-dropdown__search .mat-option-text{width:100%}.mapa-overlay-dropdown .mat-pseudo-checkbox{color:#c3c4c7!important}.mapa-overlay-dropdown .mat-checkbox-frame{border-color:#c3c4c7!important}\n"] }]
103
+ }], ctorParameters: function () { return []; }, propDecorators: { formControl: [{
28
104
  type: Input
29
- }], disabled: [{
105
+ }], formControlSearch: [{
30
106
  type: Input
31
- }], clicked: [{
32
- type: Output
107
+ }], element: [{
108
+ type: Input
109
+ }], border: [{
110
+ type: Input
111
+ }], dropdown: [{
112
+ type: ViewChild,
113
+ args: ["dropdown", { static: true }]
33
114
  }] } });
34
115
 
35
- class MapaButtonModule {
36
- }
37
- MapaButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
- MapaButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, declarations: [ButtonComponent], imports: [CommonModule, MatButtonModule], exports: [ButtonComponent] });
39
- MapaButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, imports: [CommonModule, MatButtonModule] });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, decorators: [{
41
- type: NgModule,
42
- args: [{
43
- declarations: [ButtonComponent],
44
- exports: [ButtonComponent],
45
- imports: [CommonModule, MatButtonModule],
46
- }]
47
- }] });
48
-
49
- /*
50
- * Public API Surface of mapa-library-ui button
51
- */
52
-
53
- class IconComponent {
54
- constructor(matIconRegistry, domSanitizer) {
55
- this.matIconRegistry = matIconRegistry;
56
- this.domSanitizer = domSanitizer;
116
+ class MapaChartComponent {
117
+ constructor() {
118
+ this.colors = ["#EA561D", "#6195FB", "#2ED47A", "#EEDB2A"];
57
119
  }
58
- ngOnChanges() {
59
- this.registerCustomIcons(this.svg);
120
+ ngOnInit() {
121
+ this.generateChart();
60
122
  }
61
- registerCustomIcons(svg) {
62
- this.matIconRegistry.addSvgIcon(svg, this.domSanitizer.bypassSecurityTrustResourceUrl(`../../../../assets/${svg}.svg`));
123
+ generateChart() {
124
+ var _a, _b, _c;
125
+ if (this.options) {
126
+ this.chartOptions = {
127
+ series: this.options.series,
128
+ chart: {
129
+ height: 500,
130
+ width: "70%",
131
+ type: ((_a = this.options.chart) === null || _a === void 0 ? void 0 : _a.type) || "radar",
132
+ events: {
133
+ beforeMount: (chart) => {
134
+ chart.windowResizeHandler();
135
+ }
136
+ }
137
+ },
138
+ stroke: {
139
+ width: 1,
140
+ colors: this.colors,
141
+ },
142
+ fill: {
143
+ opacity: 0.3,
144
+ colors: this.colors,
145
+ },
146
+ markers: {
147
+ size: 2,
148
+ shape: "circle",
149
+ colors: this.colors,
150
+ strokeColors: this.colors,
151
+ },
152
+ xaxis: {
153
+ categories: (_b = this.options.xaxis) === null || _b === void 0 ? void 0 : _b.categories,
154
+ labels: {
155
+ style: {
156
+ colors: new Array((_c = this.options.xaxis) === null || _c === void 0 ? void 0 : _c.categories.length).fill("#666666"),
157
+ fontSize: "12px",
158
+ fontFamily: "SF-Pro",
159
+ },
160
+ },
161
+ },
162
+ yaxis: {
163
+ labels: {
164
+ style: {
165
+ colors: "#9B9B9B",
166
+ fontSize: "12px",
167
+ fontFamily: "SF-Pro",
168
+ },
169
+ },
170
+ },
171
+ legend: {
172
+ position: "right",
173
+ horizontalAlign: "center",
174
+ height: 500,
175
+ fontSize: "12px",
176
+ fontFamily: "SF-Pro",
177
+ containerMargin: { left: 30 },
178
+ markers: {
179
+ fillColors: this.colors,
180
+ },
181
+ },
182
+ responsive: [
183
+ {
184
+ breakpoint: 1300,
185
+ options: {
186
+ chart: {
187
+ width: "100%",
188
+ height: 550,
189
+ },
190
+ legend: {
191
+ position: "bottom",
192
+ horizontalAlign: "center",
193
+ height: 100,
194
+ },
195
+ },
196
+ },
197
+ ],
198
+ };
199
+ }
63
200
  }
64
201
  }
65
- IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IconComponent, deps: [{ token: i1.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
66
- IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: IconComponent, selector: "mapa-icon", inputs: { svg: "svg" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon *ngIf=\"svg\" [svgIcon]=\"svg\"></mat-icon>\n<mat-icon *ngIf=\"!svg\"><ng-content></ng-content></mat-icon>\n", styles: [".mat-icon{color:#f5704b}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IconComponent, decorators: [{
202
+ MapaChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
203
+ MapaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaChartComponent, selector: "mapa-chart", inputs: { options: "options" }, ngImport: i0, template: "<section>\n <div class=\"chart\" *ngIf=\"chartOptions\">\n <div class=\"chart__dropdown\" *ngIf=\"options.dropdown\">\n <mapa-dropdown\n [formControl]=\"options.dropdown.formControl\"\n [element]=\"options.dropdown.element\"\n ></mapa-dropdown>\n </div>\n <apx-chart\n [series]=\"chartOptions.series!\"\n [chart]=\"chartOptions.chart!\"\n [xaxis]=\"chartOptions.xaxis!\"\n [yaxis]=\"chartOptions.yaxis!\"\n [stroke]=\"chartOptions.stroke!\"\n [markers]=\"chartOptions.markers!\"\n [fill]=\"chartOptions.fill!\"\n [title]=\"chartOptions.title!\"\n [legend]=\"chartOptions.legend!\"\n [responsive]=\"chartOptions.responsive!\"\n ></apx-chart>\n </div>\n</section>\n", styles: [".chart{margin:35px auto}.chart__dropdown{position:absolute;z-index:999}.chart .apexcharts-legend.apx-legend-position-right{justify-content:center!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.ChartComponent, selector: "apx-chart", inputs: ["chart", "annotations", "colors", "dataLabels", "series", "stroke", "labels", "legend", "markers", "noData", "fill", "tooltip", "plotOptions", "responsive", "xaxis", "yaxis", "forecastDataPoints", "grid", "states", "title", "subtitle", "theme", "autoUpdateSeries"] }, { kind: "component", type: MapaDropdownComponent, selector: "mapa-dropdown", inputs: ["formControl", "formControlSearch", "element", "border"] }], encapsulation: i0.ViewEncapsulation.None });
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaChartComponent, decorators: [{
68
205
  type: Component,
69
- args: [{ selector: 'mapa-icon', template: "<mat-icon *ngIf=\"svg\" [svgIcon]=\"svg\"></mat-icon>\n<mat-icon *ngIf=\"!svg\"><ng-content></ng-content></mat-icon>\n", styles: [".mat-icon{color:#f5704b}\n"] }]
70
- }], ctorParameters: function () { return [{ type: i1.MatIconRegistry }, { type: i2.DomSanitizer }]; }, propDecorators: { svg: [{
206
+ args: [{ selector: "mapa-chart", encapsulation: ViewEncapsulation.None, template: "<section>\n <div class=\"chart\" *ngIf=\"chartOptions\">\n <div class=\"chart__dropdown\" *ngIf=\"options.dropdown\">\n <mapa-dropdown\n [formControl]=\"options.dropdown.formControl\"\n [element]=\"options.dropdown.element\"\n ></mapa-dropdown>\n </div>\n <apx-chart\n [series]=\"chartOptions.series!\"\n [chart]=\"chartOptions.chart!\"\n [xaxis]=\"chartOptions.xaxis!\"\n [yaxis]=\"chartOptions.yaxis!\"\n [stroke]=\"chartOptions.stroke!\"\n [markers]=\"chartOptions.markers!\"\n [fill]=\"chartOptions.fill!\"\n [title]=\"chartOptions.title!\"\n [legend]=\"chartOptions.legend!\"\n [responsive]=\"chartOptions.responsive!\"\n ></apx-chart>\n </div>\n</section>\n", styles: [".chart{margin:35px auto}.chart__dropdown{position:absolute;z-index:999}.chart .apexcharts-legend.apx-legend-position-right{justify-content:center!important}\n"] }]
207
+ }], ctorParameters: function () { return []; }, propDecorators: { options: [{
71
208
  type: Input
72
209
  }] } });
73
210
 
74
- class MapaIconModule {
211
+ class MapaDropdownModule {
75
212
  }
76
- MapaIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
77
- MapaIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaIconModule, declarations: [IconComponent], imports: [CommonModule, MatIconModule], exports: [IconComponent] });
78
- MapaIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaIconModule, imports: [CommonModule, MatIconModule] });
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaIconModule, decorators: [{
213
+ MapaDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
214
+ MapaDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, declarations: [MapaDropdownComponent], imports: [CommonModule,
215
+ FormsModule,
216
+ ReactiveFormsModule,
217
+ MatListModule,
218
+ MatIconModule,
219
+ MatSelectModule,
220
+ NgxMatSelectSearchModule], exports: [MapaDropdownComponent] });
221
+ MapaDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, providers: [
222
+ {
223
+ provide: MAT_SELECT_CONFIG,
224
+ useValue: { overlayPanelClass: "mapa-overlay-dropdown" },
225
+ },
226
+ {
227
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
228
+ useValue: { appearance: "outline" },
229
+ },
230
+ ], imports: [CommonModule,
231
+ FormsModule,
232
+ ReactiveFormsModule,
233
+ MatListModule,
234
+ MatIconModule,
235
+ MatSelectModule,
236
+ NgxMatSelectSearchModule] });
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, decorators: [{
80
238
  type: NgModule,
81
239
  args: [{
82
- declarations: [IconComponent],
83
- exports: [IconComponent],
84
- imports: [CommonModule, MatIconModule],
240
+ declarations: [MapaDropdownComponent],
241
+ exports: [MapaDropdownComponent],
242
+ imports: [
243
+ CommonModule,
244
+ FormsModule,
245
+ ReactiveFormsModule,
246
+ MatListModule,
247
+ MatIconModule,
248
+ MatSelectModule,
249
+ NgxMatSelectSearchModule,
250
+ ],
251
+ providers: [
252
+ {
253
+ provide: MAT_SELECT_CONFIG,
254
+ useValue: { overlayPanelClass: "mapa-overlay-dropdown" },
255
+ },
256
+ {
257
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
258
+ useValue: { appearance: "outline" },
259
+ },
260
+ ],
85
261
  }]
86
262
  }] });
87
263
 
88
264
  /*
89
- * Public API Surface of mapa-library-ui icon
265
+ * Public API Surface of mapa-library-ui dropdown
90
266
  */
91
267
 
92
- class MapaDialogComponent {
93
- constructor(data, dialogRef, sanitizer) {
94
- this.data = data;
95
- this.dialogRef = dialogRef;
96
- this.sanitizer = sanitizer;
97
- this.isSave = false;
98
- }
99
- ngOnInit() {
100
- this.dialogData = this.data.dialogData;
101
- if (this.dialogData.imgBase64) {
102
- this.imgBase64 = this.sanitizer.bypassSecurityTrustResourceUrl(`data:image/jpg;base64,${this.dialogData.imgBase64}`);
103
- }
104
- }
105
- close() {
106
- this.dialogRef.close(this.isSave);
107
- }
108
- save() {
109
- this.isSave = true;
110
- this.dialogRef.close(this.isSave);
111
- }
112
- }
113
- MapaDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.MatDialogRef }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
114
- MapaDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaDialogComponent, selector: "mapa-dialog", ngImport: i0, template: "<div class=\"mapa-dialog\">\n <mat-icon (click)=\"close()\">close</mat-icon>\n <mat-dialog-content>\n <img *ngIf=\"imgBase64\" [src]=\"imgBase64\" />\n <h2>\n {{ dialogData.title }}\n </h2>\n <p>{{ dialogData.description }}</p>\n </mat-dialog-content>\n <mat-dialog-actions>\n <mapa-button color=\"basic\" (click)=\"close()\" *ngIf=\"dialogData.actions.close\">\n {{ dialogData.actions.close }}\n </mapa-button>\n <mapa-button color=\"primary\" (click)=\"save()\" *ngIf=\"dialogData.actions.save\">\n {{ dialogData.actions.save }}\n </mapa-button>\n </mat-dialog-actions>\n</div>\n", styles: [".mapa-dialog{padding:20px 28px;background-color:transparent}.mapa-dialog .mat-icon{position:absolute;right:10px;top:10px;cursor:pointer}.mapa-dialog h2{color:#181818;font-family:SF-Pro;font-size:24px;font-style:normal;font-weight:400;line-height:32px}.mapa-dialog img{max-width:100%}.mapa-dialog p{color:#50575e;font-family:SF-Pro;font-size:16px;font-style:normal;font-weight:500;line-height:28px}.mapa-dialog .mat-dialog-actions{justify-content:end}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.ButtonComponent, selector: "mapa-button", inputs: ["color", "disabled"], outputs: ["clicked"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDialogComponent, decorators: [{
116
- type: Component,
117
- args: [{ selector: "mapa-dialog", template: "<div class=\"mapa-dialog\">\n <mat-icon (click)=\"close()\">close</mat-icon>\n <mat-dialog-content>\n <img *ngIf=\"imgBase64\" [src]=\"imgBase64\" />\n <h2>\n {{ dialogData.title }}\n </h2>\n <p>{{ dialogData.description }}</p>\n </mat-dialog-content>\n <mat-dialog-actions>\n <mapa-button color=\"basic\" (click)=\"close()\" *ngIf=\"dialogData.actions.close\">\n {{ dialogData.actions.close }}\n </mapa-button>\n <mapa-button color=\"primary\" (click)=\"save()\" *ngIf=\"dialogData.actions.save\">\n {{ dialogData.actions.save }}\n </mapa-button>\n </mat-dialog-actions>\n</div>\n", styles: [".mapa-dialog{padding:20px 28px;background-color:transparent}.mapa-dialog .mat-icon{position:absolute;right:10px;top:10px;cursor:pointer}.mapa-dialog h2{color:#181818;font-family:SF-Pro;font-size:24px;font-style:normal;font-weight:400;line-height:32px}.mapa-dialog img{max-width:100%}.mapa-dialog p{color:#50575e;font-family:SF-Pro;font-size:16px;font-style:normal;font-weight:500;line-height:28px}.mapa-dialog .mat-dialog-actions{justify-content:end}\n"] }]
118
- }], ctorParameters: function () {
119
- return [{ type: undefined, decorators: [{
120
- type: Inject,
121
- args: [MAT_DIALOG_DATA]
122
- }] }, { type: i1$1.MatDialogRef }, { type: i2.DomSanitizer }];
123
- } });
124
- function openDialog(dialog, dialogData) {
125
- const config = new MatDialogConfig();
126
- config.disableClose = true;
127
- config.autoFocus = true;
128
- config.panelClass = "icon-outside";
129
- config.data = {
130
- dialogData,
131
- };
132
- const dialogRef = dialog.open(MapaDialogComponent, config);
133
- return dialogRef.afterClosed();
134
- }
135
-
136
- class MapaDialogModule {
268
+ class MapaChartModule {
137
269
  }
138
- MapaDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
139
- MapaDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaDialogModule, declarations: [MapaDialogComponent], imports: [CommonModule,
140
- MapaButtonModule$1,
141
- MatDialogModule,
142
- MatIconModule], exports: [MapaDialogComponent] });
143
- MapaDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDialogModule, imports: [CommonModule,
144
- MapaButtonModule$1,
145
- MatDialogModule,
146
- MatIconModule] });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDialogModule, decorators: [{
270
+ MapaChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
271
+ MapaChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaChartModule, declarations: [MapaChartComponent], imports: [CommonModule,
272
+ NgApexchartsModule,
273
+ MapaDropdownModule], exports: [MapaChartComponent] });
274
+ MapaChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaChartModule, imports: [CommonModule,
275
+ NgApexchartsModule,
276
+ MapaDropdownModule] });
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaChartModule, decorators: [{
148
278
  type: NgModule,
149
279
  args: [{
150
280
  declarations: [
151
- MapaDialogComponent,
281
+ MapaChartComponent
282
+ ],
283
+ exports: [
284
+ MapaChartComponent
152
285
  ],
153
286
  imports: [
154
287
  CommonModule,
155
- MapaButtonModule$1,
156
- MatDialogModule,
157
- MatIconModule
158
- ],
159
- exports: [
160
- MapaDialogComponent,
288
+ NgApexchartsModule,
289
+ MapaDropdownModule,
161
290
  ]
162
291
  }]
163
292
  }] });
164
293
 
165
294
  /*
166
- * Public API Surface of mapa-library-ui dialog
295
+ * Public API Surface of mapa-library-ui chart
167
296
  */
168
297
 
169
298
  /*
170
- * Public API Surface of mapa-library-ui dialog
299
+ * Public API Surface of mapa-library-ui chart
171
300
  */
172
301
 
173
302
  /**
174
303
  * Generated bundle index. Do not edit.
175
304
  */
176
305
 
177
- export { ButtonComponent, IconComponent, MapaButtonModule, MapaDialogComponent, MapaDialogModule, MapaIconModule, openDialog };
306
+ export { MapaChartComponent, MapaChartModule };
178
307
  //# sourceMappingURL=mapa-library-ui-src-lib-components-dialog.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapa-library-ui-src-lib-components-dialog.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/icon/src/icon.component.ts","../../../projects/mapa-library-ui/src/lib/components/icon/src/icon.component.html","../../../projects/mapa-library-ui/src/lib/components/icon/src/icon.module.ts","../../../projects/mapa-library-ui/src/lib/components/icon/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/dialog/src/dialog.component.ts","../../../projects/mapa-library-ui/src/lib/components/dialog/src/dialog.component.html","../../../projects/mapa-library-ui/src/lib/components/dialog/src/dialog.module.ts","../../../projects/mapa-library-ui/src/lib/components/dialog/public-api.ts","../../../projects/mapa-library-ui/src/dialog.ts","../../../projects/mapa-library-ui/src/mapa-library-ui-src-lib-components-dialog.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","import { Component, Input } from '@angular/core';\nimport { MatIconRegistry } from \"@angular/material/icon\";\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Component({\n selector: 'mapa-icon',\n templateUrl: './icon.component.html',\n styleUrls: ['./icon.component.scss']\n})\nexport class IconComponent {\n @Input() svg: string | null | undefined;\n\n constructor(\n private matIconRegistry: MatIconRegistry,\n private domSanitizer: DomSanitizer\n ) {}\n\n ngOnChanges(): void {\n this.registerCustomIcons(this.svg!);\n }\n\n registerCustomIcons(svg: string): void {\n this.matIconRegistry.addSvgIcon(\n svg,\n this.domSanitizer.bypassSecurityTrustResourceUrl(`../../../../assets/${svg}.svg`)\n );\n }\n}\n","<mat-icon *ngIf=\"svg\" [svgIcon]=\"svg\"></mat-icon>\n<mat-icon *ngIf=\"!svg\"><ng-content></ng-content></mat-icon>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { IconComponent } from './icon.component';\n\n@NgModule({\n declarations: [IconComponent],\n exports: [IconComponent],\n imports: [CommonModule, MatIconModule],\n})\nexport class MapaIconModule {}\n","/*\n * Public API Surface of mapa-library-ui icon\n */\n\nexport * from './src/icon.component';\nexport * from './src/icon.module';","import { Component, Inject } from \"@angular/core\";\nimport {\n MAT_DIALOG_DATA,\n MatDialog,\n MatDialogConfig,\n MatDialogRef,\n} from \"@angular/material/dialog\";\nimport { DomSanitizer, SafeResourceUrl } from \"@angular/platform-browser\";\nimport { DialogData } from \"../../../core/interfaces/dialog-data.interface\";\n\n@Component({\n selector: \"mapa-dialog\",\n templateUrl: \"./dialog.component.html\",\n styleUrls: [\"./dialog.component.scss\"],\n})\nexport class MapaDialogComponent {\n imgBase64!: SafeResourceUrl;\n isSave: boolean = false;\n dialogData!: DialogData;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: any,\n private dialogRef: MatDialogRef<MapaDialogComponent>,\n private sanitizer: DomSanitizer\n ) {}\n\n ngOnInit() {\n this.dialogData = this.data.dialogData;\n if (this.dialogData.imgBase64) {\n this.imgBase64 = this.sanitizer.bypassSecurityTrustResourceUrl(\n `data:image/jpg;base64,${this.dialogData.imgBase64}`\n );\n }\n }\n\n close() {\n this.dialogRef.close(this.isSave);\n }\n\n save() {\n this.isSave = true;\n this.dialogRef.close(this.isSave);\n }\n}\n\nexport function openDialog(dialog: MatDialog, dialogData: DialogData) {\n const config = new MatDialogConfig();\n\n config.disableClose = true;\n config.autoFocus = true;\n config.panelClass = \"icon-outside\";\n config.data = {\n dialogData,\n };\n\n const dialogRef = dialog.open(MapaDialogComponent, config);\n\n return dialogRef.afterClosed();\n}\n","<div class=\"mapa-dialog\">\n <mat-icon (click)=\"close()\">close</mat-icon>\n <mat-dialog-content>\n <img *ngIf=\"imgBase64\" [src]=\"imgBase64\" />\n <h2>\n {{ dialogData.title }}\n </h2>\n <p>{{ dialogData.description }}</p>\n </mat-dialog-content>\n <mat-dialog-actions>\n <mapa-button color=\"basic\" (click)=\"close()\" *ngIf=\"dialogData.actions.close\">\n {{ dialogData.actions.close }}\n </mapa-button>\n <mapa-button color=\"primary\" (click)=\"save()\" *ngIf=\"dialogData.actions.save\">\n {{ dialogData.actions.save }}\n </mapa-button>\n </mat-dialog-actions>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatDialogModule} from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';\nimport { MapaDialogComponent } from './dialog.component';\n\n@NgModule({\n declarations: [\n MapaDialogComponent,\n ],\n imports: [\n CommonModule,\n MapaButtonModule,\n MatDialogModule,\n MatIconModule\n ],\n exports: [\n MapaDialogComponent,\n ]\n})\nexport class MapaDialogModule { }\n","/*\n * Public API Surface of mapa-library-ui dialog\n */\n\nexport * from '../dialog/src/dialog.component';\nexport * from '../dialog/src/dialog.module';\n","/*\n * Public API Surface of mapa-library-ui dialog\n */\n\nexport * from './lib/components/button/public-api';\nexport * from './lib/components/icon/public-api';\nexport * from './lib/components/dialog/public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './dialog';\n"],"names":["i1","i5","MapaButtonModule"],"mappings":";;;;;;;;;;;;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;AAQY,QAAA,IAAA,CAAA,OAAO,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAKlE;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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AA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,YAAA,EAAA,CAZzB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAGnB,YAAY;QACZC,kBAAgB;QAChB,eAAe;QACf,aAAa,aAGb,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAGV,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YATzB,YAAY;QACZA,kBAAgB;QAChB,eAAe;QACf,aAAa,CAAA,EAAA,CAAA,CAAA;4FAMJ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAd5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZA,kBAAgB;wBAChB,eAAe;wBACf,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;AACpB,qBAAA;iBACF,CAAA;;;ACpBD;;AAEG;;ACFH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"mapa-library-ui-src-lib-components-dialog.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/dropdown/src/dropdown.component.ts","../../../projects/mapa-library-ui/src/lib/components/dropdown/src/dropdown.component.html","../../../projects/mapa-library-ui/src/lib/components/chart/src/chart.component.ts","../../../projects/mapa-library-ui/src/lib/components/chart/src/chart.component.html","../../../projects/mapa-library-ui/src/lib/components/dropdown/src/dropdown.module.ts","../../../projects/mapa-library-ui/src/lib/components/dropdown/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/chart/src/chart.module.ts","../../../projects/mapa-library-ui/src/lib/components/chart/public-api.ts","../../../projects/mapa-library-ui/src/chart.ts","../../../projects/mapa-library-ui/src/mapa-library-ui-src-lib-components-dialog.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n Input,\n OnDestroy,\n OnInit,\n ViewChild,\n ViewEncapsulation,\n} from \"@angular/core\";\nimport { FormControl } from \"@angular/forms\";\n\nimport { MatSelect } from \"@angular/material/select\";\n\nimport { ReplaySubject } from \"rxjs/internal/ReplaySubject\";\nimport { Subject } from \"rxjs/internal/Subject\";\n//import { take, takeUntil } from \"rxjs/operators\";\n\nimport { ElementOption } from \"../../../core/interfaces/option.interface\";\nimport { Dropdown } from \"../../../core/elements/dropdown\";\n\n@Component({\n selector: \"mapa-dropdown\",\n templateUrl: \"./dropdown.component.html\",\n styleUrls: [\"./dropdown.component.scss\"],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MapaDropdownComponent implements OnInit, AfterViewInit, OnDestroy {\n @Input() formControl!: FormControl;\n @Input() formControlSearch!: FormControl;\n @Input() element!: Dropdown;\n @Input() border: \"soft\" | \"tag\" | \"highlight\" | null | undefined;\n\n @ViewChild(\"dropdown\", { static: true }) dropdown!: MatSelect;\n\n public filteredOptions: ReplaySubject<ElementOption[]> = new ReplaySubject<\n ElementOption[]\n >(1);\n protected filteredOptionsCache: ElementOption[] = [];\n protected _onDestroy = new Subject<void>();\n \n isIndeterminate = false;\n isChecked = false;\n\n constructor() {}\n\n ngOnInit() {\n this.filteredOptionsCache = this.element.options.slice();\n this.filteredOptions.next(this.filteredOptionsCache);\n\n if (this.element.search) {\n this.element.search.formControl?.valueChanges\n //.pipe(takeUntil(this._onDestroy))\n .subscribe(() => {\n this.filterOptions();\n this.setToggleAllCheckboxState();\n });\n }\n }\n\n ngAfterViewInit() {\n this.setInitialValue();\n }\n\n ngOnDestroy() {\n this._onDestroy.next();\n this._onDestroy.complete();\n }\n\n protected filterOptions() {\n if (!this.element.options) {\n return;\n }\n // get the search keyword\n let search = this.element.search?.formControl?.value;\n if (!search) {\n this.filteredOptionsCache = this.element.options.slice();\n this.filteredOptions.next(this.filteredOptionsCache);\n return;\n }\n // filter the options\n this.filteredOptionsCache = this.element.options.filter(\n (option: ElementOption) =>\n option.value.toLowerCase().indexOf(search) > -1\n );\n this.filteredOptions.next(this.filteredOptionsCache);\n }\n\n protected setInitialValue() {\n this.filteredOptions\n //.pipe(take(1), takeUntil(this._onDestroy))\n .subscribe(() => {\n this.dropdown.compareWith = (a: Element, b: Element) => a && b && a.id === b.id;\n });\n }\n\n protected setToggleAllCheckboxState() {\n let filteredLength = 0;\n let search = this.element.search?.formControl?.value;\n\n if (search && search.value) {\n this.filteredOptionsCache.forEach(el => {\n if (search.value.toLowerCase().indexOf(el) > -1) {\n filteredLength++;\n }\n });\n this.isIndeterminate = filteredLength > 0 && filteredLength < this.filteredOptionsCache.length;\n this.isChecked = filteredLength > 0 && filteredLength === this.filteredOptionsCache.length;\n }\n }\n\n toggleSelectAll(selectAllValue: boolean) {\n this.filteredOptions\n //.pipe(take(1), takeUntil(this._onDestroy))\n .subscribe((options: ElementOption[]) => {\n if (selectAllValue) {\n this.formControl?.patchValue(options);\n } else {\n this.formControl?.patchValue([]);\n }\n });\n }\n}\n","<label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n</label>\n<mat-form-field\n appearance=\"outline\"\n class=\"mapa-dropdown\"\n [class.mapa-dropdown--highlight]=\"border === 'highlight'\"\n [class.mapa-dropdown--soft-border]=\"border === 'soft'\"\n [class.mapa-dropdown--tag]=\"border === 'tag'\"\n [class.mapa-dropdown--labeled]=\"!!element.label\">\n <mat-select\n #dropdown\n [formControl]=\"formControl\"\n [multiple]=\"element.multiple\"\n [placeholder]=\"element.placeholder || ''\"\n >\n <mat-option *ngIf=\"element.search\" class=\"mapa-dropdown__search\">\n <ngx-mat-select-search\n *ngIf=\"element.search.formControl\"\n [showToggleAllCheckbox]=\"true\"\n [formControl]=\"element.search.formControl\"\n [placeholderLabel]=\"element.search.placeholder || ''\"\n i18n-placeholderLabel\n [noEntriesFoundLabel]=\"element.search.noEntriesFoundLabel || ''\"\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate\"\n [toggleAllCheckboxChecked]=\"isChecked\"\n (toggleAll)=\"toggleSelectAll($event)\"\n ></ngx-mat-select-search>\n </mat-option>\n\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option\">\n {{ option.value }}\n </mat-option>\n </mat-select>\n <mat-error\n *ngIf=\"formControl?.hasError('required')\">\n {{ element.errors?.required }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('minlength')\">\n {{ element.errors?.minlength }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('cpf')\">\n {{ element.errors?.cpf }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('cnpj')\">\n {{ element.errors?.cnpj }}\n </mat-error>\n <mat-error\n *ngIf=\"formControl?.hasError('email')\">\n {{ element.errors?.email }}\n </mat-error>\n</mat-form-field>\n","import {\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewEncapsulation,\n} from \"@angular/core\";\nimport { FormControl } from \"@angular/forms\";\n\nimport { ChartOptions } from \"../../../core/interfaces/chart-options.interface\";\nimport { ElementOption } from \"../../../core/interfaces/option.interface\";\n\n@Component({\n selector: \"mapa-chart\",\n templateUrl: \"./chart.component.html\",\n styleUrls: [\"./chart.component.scss\"],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MapaChartComponent implements OnInit {\n @Input() options!: Partial<ChartOptions>;\n\n private colors = [\"#EA561D\", \"#6195FB\", \"#2ED47A\", \"#EEDB2A\"];\n public chartOptions!: Partial<ChartOptions>;\n\n constructor() {}\n\n ngOnInit(): void {\n this.generateChart();\n }\n\n private generateChart(): void {\n if (this.options) {\n this.chartOptions = {\n series: this.options.series,\n chart: {\n height: 500,\n width: \"70%\",\n type: this.options.chart?.type || \"radar\",\n events: {\n beforeMount: (chart) => {\n chart.windowResizeHandler();\n }\n }\n },\n stroke: {\n width: 1,\n colors: this.colors,\n },\n fill: {\n opacity: 0.3,\n colors: this.colors,\n },\n markers: {\n size: 2,\n shape: \"circle\",\n colors: this.colors,\n strokeColors: this.colors,\n },\n xaxis: {\n categories: this.options.xaxis?.categories,\n labels: {\n style: {\n colors: new Array(this.options.xaxis?.categories.length).fill(\n \"#666666\"\n ),\n fontSize: \"12px\",\n fontFamily: \"SF-Pro\",\n },\n },\n },\n yaxis: {\n labels: {\n style: {\n colors: \"#9B9B9B\",\n fontSize: \"12px\",\n fontFamily: \"SF-Pro\",\n },\n },\n },\n legend: {\n position: \"right\",\n horizontalAlign: \"center\",\n height: 500,\n fontSize: \"12px\",\n fontFamily: \"SF-Pro\",\n containerMargin: { left: 30 },\n markers: {\n fillColors: this.colors,\n },\n },\n responsive: [\n {\n breakpoint: 1300,\n options: {\n chart: {\n width: \"100%\",\n height: 550,\n },\n legend: {\n position: \"bottom\",\n horizontalAlign: \"center\",\n height: 100,\n },\n },\n },\n ],\n };\n }\n }\n}\n","<section>\n <div class=\"chart\" *ngIf=\"chartOptions\">\n <div class=\"chart__dropdown\" *ngIf=\"options.dropdown\">\n <mapa-dropdown\n [formControl]=\"options.dropdown.formControl\"\n [element]=\"options.dropdown.element\"\n ></mapa-dropdown>\n </div>\n <apx-chart\n [series]=\"chartOptions.series!\"\n [chart]=\"chartOptions.chart!\"\n [xaxis]=\"chartOptions.xaxis!\"\n [yaxis]=\"chartOptions.yaxis!\"\n [stroke]=\"chartOptions.stroke!\"\n [markers]=\"chartOptions.markers!\"\n [fill]=\"chartOptions.fill!\"\n [title]=\"chartOptions.title!\"\n [legend]=\"chartOptions.legend!\"\n [responsive]=\"chartOptions.responsive!\"\n ></apx-chart>\n </div>\n</section>\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\n\nimport { MatListModule } from \"@angular/material/list\";\nimport { MatIconModule } from \"@angular/material/icon\";\n\nimport { MapaDropdownComponent } from \"./dropdown.component\";\nimport { MAT_SELECT_CONFIG, MatSelectModule } from \"@angular/material/select\";\nimport { NgxMatSelectSearchModule } from \"ngx-mat-select-search\";\nimport { MAT_FORM_FIELD_DEFAULT_OPTIONS } from \"@angular/material/form-field\";\n\n@NgModule({\n declarations: [MapaDropdownComponent],\n exports: [MapaDropdownComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatListModule,\n MatIconModule,\n MatSelectModule,\n NgxMatSelectSearchModule,\n ],\n providers: [\n {\n provide: MAT_SELECT_CONFIG,\n useValue: { overlayPanelClass: \"mapa-overlay-dropdown\" },\n },\n {\n provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,\n useValue: { appearance: \"outline\" },\n },\n ],\n})\nexport class MapaDropdownModule {}\n","/*\n * Public API Surface of mapa-library-ui dropdown\n */\n\nexport * from './src/dropdown.component';\nexport * from './src/dropdown.module';\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { NgApexchartsModule } from 'ng-apexcharts';\n\nimport { MapaChartComponent } from './chart.component';\nimport { MapaDropdownModule } from '../../dropdown/public-api';\n\n@NgModule({\n declarations: [\n MapaChartComponent\n ],\n exports: [\n MapaChartComponent\n ],\n imports: [\n CommonModule,\n NgApexchartsModule,\n MapaDropdownModule,\n ]\n})\nexport class MapaChartModule { }\n","/*\n * Public API Surface of mapa-library-ui chart\n */\n\nexport * from './src/chart.component';\nexport * from './src/chart.module';\n","/*\n * Public API Surface of mapa-library-ui chart\n */\n\nexport * from './lib/components/chart/public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './chart';\n"],"names":["i2","i3.MapaDropdownComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;MA0Ba,qBAAqB,CAAA;AAiBhC,IAAA,WAAA,GAAA;QATO,IAAA,CAAA,eAAe,GAAmC,IAAI,aAAa,CAExE,CAAC,CAAC,CAAC;AACK,QAAA,IAAoB,CAAA,oBAAA,GAAoB,EAAE,CAAC;AAC3C,QAAA,IAAA,CAAA,UA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