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.
- package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +7 -29
- package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +5 -79
- package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +5 -79
- package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/mapa-library-ui-0.18.0.tgz +0 -0
- package/package.json +1 -1
- package/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +2 -9
- package/esm2020/src/lib/components/capability/lib/core/elements/index.mjs +0 -8
- package/esm2020/src/lib/components/capability/lib/core/elements/input-text.mjs +0 -8
- package/esm2020/src/lib/components/capability/lib/core/elements/radio-button.mjs +0 -8
- package/esm2020/src/lib/components/capability/lib/core/elements/textarea.mjs +0 -8
- package/esm2020/src/lib/components/capability/lib/core/interfaces/button-icon.interface.mjs +0 -2
- package/esm2020/src/lib/components/capability/lib/core/interfaces/chart-options.interface.mjs +0 -2
- package/esm2020/src/lib/components/capability/lib/core/interfaces/dialog-data.interface.mjs +0 -2
- package/esm2020/src/lib/components/capability/lib/core/interfaces/index.mjs +0 -7
- package/esm2020/src/lib/components/capability/lib/core/interfaces/table-column.interface.mjs +0 -4
- package/esm2020/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.mjs +0 -2
- package/mapa-library-ui-0.17.1.tgz +0 -0
- package/src/lib/components/capability/lib/core/elements/index.d.ts +0 -7
- package/src/lib/components/capability/lib/core/elements/input-text.d.ts +0 -4
- package/src/lib/components/capability/lib/core/elements/radio-button.d.ts +0 -4
- package/src/lib/components/capability/lib/core/elements/textarea.d.ts +0 -4
- package/src/lib/components/capability/lib/core/interfaces/button-icon.interface.d.ts +0 -6
- package/src/lib/components/capability/lib/core/interfaces/chart-options.interface.d.ts +0 -19
- package/src/lib/components/capability/lib/core/interfaces/dialog-data.interface.d.ts +0 -11
- package/src/lib/components/capability/lib/core/interfaces/index.d.ts +0 -6
- package/src/lib/components/capability/lib/core/interfaces/table-column.interface.d.ts +0 -15
- 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
|
|
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
|
-
|
|
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"
|
|
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 <
|
|
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 {
|