mapa-library-ui 0.17.1 → 0.18.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 (29) hide show
  1. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +7 -29
  2. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +5 -79
  3. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  4. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +5 -79
  5. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  6. package/mapa-library-ui-0.18.0.tgz +0 -0
  7. package/package.json +1 -1
  8. package/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +2 -9
  9. package/esm2020/src/lib/components/capability/lib/core/elements/index.mjs +0 -8
  10. package/esm2020/src/lib/components/capability/lib/core/elements/input-text.mjs +0 -8
  11. package/esm2020/src/lib/components/capability/lib/core/elements/radio-button.mjs +0 -8
  12. package/esm2020/src/lib/components/capability/lib/core/elements/textarea.mjs +0 -8
  13. package/esm2020/src/lib/components/capability/lib/core/interfaces/button-icon.interface.mjs +0 -2
  14. package/esm2020/src/lib/components/capability/lib/core/interfaces/chart-options.interface.mjs +0 -2
  15. package/esm2020/src/lib/components/capability/lib/core/interfaces/dialog-data.interface.mjs +0 -2
  16. package/esm2020/src/lib/components/capability/lib/core/interfaces/index.mjs +0 -7
  17. package/esm2020/src/lib/components/capability/lib/core/interfaces/table-column.interface.mjs +0 -4
  18. package/esm2020/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.mjs +0 -2
  19. package/mapa-library-ui-0.17.1.tgz +0 -0
  20. package/src/lib/components/capability/lib/core/elements/index.d.ts +0 -7
  21. package/src/lib/components/capability/lib/core/elements/input-text.d.ts +0 -4
  22. package/src/lib/components/capability/lib/core/elements/radio-button.d.ts +0 -4
  23. package/src/lib/components/capability/lib/core/elements/textarea.d.ts +0 -4
  24. package/src/lib/components/capability/lib/core/interfaces/button-icon.interface.d.ts +0 -6
  25. package/src/lib/components/capability/lib/core/interfaces/chart-options.interface.d.ts +0 -19
  26. package/src/lib/components/capability/lib/core/interfaces/dialog-data.interface.d.ts +0 -11
  27. package/src/lib/components/capability/lib/core/interfaces/index.d.ts +0 -6
  28. package/src/lib/components/capability/lib/core/interfaces/table-column.interface.d.ts +0 -15
  29. package/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.d.ts +0 -4
@@ -6,7 +6,7 @@ import { MatButtonModule } from '@angular/material/button';
6
6
  import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
7
7
  import { Subject } from 'rxjs/internal/Subject';
8
8
  import * as i2 from '@angular/forms';
9
- import { FormsModule, ReactiveFormsModule, FormControl } from '@angular/forms';
9
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
10
10
  import * as i4 from '@angular/material/form-field';
11
11
  import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
12
12
  import * as i5 from '@angular/material/select';
@@ -783,62 +783,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
783
783
  }]
784
784
  }] });
785
785
 
786
- class ElementBase {
787
- constructor(options = {}) {
788
- this.value = options.value || "";
789
- this.key = options.key || "";
790
- this.label = options.label || "";
791
- this.required = !!options.required;
792
- this.order = options.order === undefined ? 1 : options.order;
793
- this.controlType = options.controlType || "";
794
- this.type = options.type || "";
795
- this.placeholder = options.placeholder || "";
796
- this.hint = options.hint || "";
797
- this.prefix = options.prefix || "";
798
- this.suffix = options.suffix || "";
799
- this.autosize = options.autosize || false;
800
- this.autosizeMinWidth = options.autosizeMinWidth || "212px";
801
- this.autosizeMaxWidth = options.autosizeMaxWidth || "400px";
802
- this.autosizeMinRow = options.autosizeMinRow || 2;
803
- this.autosizeMaxRow = options.autosizeMaxRow || 5;
804
- this.options = options.options || [];
805
- this.multiple = options.multiple || false;
806
- this.search = options.search || undefined;
807
- this.maxLength = options.maxLength || null;
808
- this.errors = options.errors || undefined;
809
- this.actionButton = options.actionButton || undefined;
810
- this.mask = options.mask || undefined;
811
- }
812
- }
813
-
814
- class Dropdown extends ElementBase {
815
- constructor() {
816
- super(...arguments);
817
- this.controlType = 'dropdown';
818
- }
819
- }
820
-
821
- class InputText extends ElementBase {
822
- constructor() {
823
- super(...arguments);
824
- this.controlType = 'input';
825
- }
826
- }
827
-
828
- class RadioButton extends ElementBase {
829
- constructor() {
830
- super(...arguments);
831
- this.controlType = 'radio-button';
832
- }
833
- }
834
-
835
- class Textarea extends ElementBase {
836
- constructor() {
837
- super(...arguments);
838
- this.controlType = 'textarea';
839
- }
840
- }
841
-
842
786
  class MapaCapabilityComparativeIndicatorComponent {
843
787
  getWidth(item) {
844
788
  return 32 + (item.interval || 0) * 2 + "px";
@@ -892,34 +836,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
892
836
  }] } });
893
837
 
894
838
  class MapaCapabilityComparativeComponent {
895
- constructor() {
896
- this.index = 0;
897
- this.formControlComparative = new FormControl();
898
- this.dropdownComparative = new Dropdown({
899
- key: 'competency',
900
- label: 'Competência',
901
- options: this.options,
902
- });
903
- this.formControlComparative.valueChanges.subscribe((value) => {
904
- this.index = Number(value.key);
905
- });
906
- }
907
- ngOnInit() {
908
- if (this.options) {
909
- this.dropdownComparative.options = this.options;
910
- this.formControlComparative.setValue(this.options[0]);
911
- }
912
- }
839
+ constructor() { }
840
+ ngOnInit() { }
913
841
  }
914
842
  MapaCapabilityComparativeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityComparativeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
915
- MapaCapabilityComparativeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityComparativeComponent, selector: "mapa-capability-comparative", inputs: { data: "data", options: "options" }, ngImport: i0, template: "<section class=\"capability-comparative\">\n <nav *ngIf=\"dropdownComparative.options.length > 0\">\n <mapa-dropdown\n [formControl]=\"formControlComparative\"\n [element]=\"dropdownComparative\"\n ></mapa-dropdown>\n </nav>\n <main>\n <mapa-capability-comparative-header\n [data]=\"data[index]\"\n ></mapa-capability-comparative-header>\n <mapa-capability-comparative-chart\n [data]=\"data[index]\"\n ></mapa-capability-comparative-chart>\n </main>\n</section>\n", styles: [".capability-comparative{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;margin:auto}.capability-comparative main{width:100%}@media only screen and (min-width: 1200px){.capability-comparative{flex-direction:row}.capability-comparative nav{display:flex;height:100%;width:30%}.capability-comparative main{width:70%}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MapaCapabilityComparativeChartComponent, selector: "mapa-capability-comparative-chart", inputs: ["data"] }, { kind: "component", type: MapaCapabilityComparativeHeaderComponent, selector: "mapa-capability-comparative-header", inputs: ["data"] }, { kind: "component", type: MapaDropdownComponent, selector: "mapa-dropdown", inputs: ["formControl", "formControlSearch", "element", "border"] }], encapsulation: i0.ViewEncapsulation.None });
843
+ MapaCapabilityComparativeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaCapabilityComparativeComponent, selector: "mapa-capability-comparative", inputs: { data: "data" }, ngImport: i0, template: "<section class=\"capability-comparative\">\n <mapa-capability-comparative-header\n [data]=\"data\"\n ></mapa-capability-comparative-header>\n <mapa-capability-comparative-chart\n [data]=\"data\"\n ></mapa-capability-comparative-chart>\n</section>\n", styles: [".capability-comparative{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;margin:auto}.capability-comparative__header{align-items:flex-start!important;flex-direction:column!important}.capability-comparative__header section{display:flex;gap:24px}\n"], dependencies: [{ kind: "component", type: MapaCapabilityComparativeChartComponent, selector: "mapa-capability-comparative-chart", inputs: ["data"] }, { kind: "component", type: MapaCapabilityComparativeHeaderComponent, selector: "mapa-capability-comparative-header", inputs: ["data"] }], encapsulation: i0.ViewEncapsulation.None });
916
844
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaCapabilityComparativeComponent, decorators: [{
917
845
  type: Component,
918
- args: [{ selector: "mapa-capability-comparative", encapsulation: ViewEncapsulation.None, template: "<section class=\"capability-comparative\">\n <nav *ngIf=\"dropdownComparative.options.length > 0\">\n <mapa-dropdown\n [formControl]=\"formControlComparative\"\n [element]=\"dropdownComparative\"\n ></mapa-dropdown>\n </nav>\n <main>\n <mapa-capability-comparative-header\n [data]=\"data[index]\"\n ></mapa-capability-comparative-header>\n <mapa-capability-comparative-chart\n [data]=\"data[index]\"\n ></mapa-capability-comparative-chart>\n </main>\n</section>\n", styles: [".capability-comparative{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;margin:auto}.capability-comparative main{width:100%}@media only screen and (min-width: 1200px){.capability-comparative{flex-direction:row}.capability-comparative nav{display:flex;height:100%;width:30%}.capability-comparative main{width:70%}}\n"] }]
846
+ args: [{ selector: "mapa-capability-comparative", encapsulation: ViewEncapsulation.None, template: "<section class=\"capability-comparative\">\n <mapa-capability-comparative-header\n [data]=\"data\"\n ></mapa-capability-comparative-header>\n <mapa-capability-comparative-chart\n [data]=\"data\"\n ></mapa-capability-comparative-chart>\n</section>\n", styles: [".capability-comparative{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;margin:auto}.capability-comparative__header{align-items:flex-start!important;flex-direction:column!important}.capability-comparative__header section{display:flex;gap:24px}\n"] }]
919
847
  }], ctorParameters: function () { return []; }, propDecorators: { data: [{
920
848
  type: Input
921
- }], options: [{
922
- type: Input
923
849
  }] } });
924
850
 
925
851
  class MapaCapabilityComparativeHeaderModule {