mapa-library-ui 0.3.0 → 0.3.1
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/lib/core/elements/element-base.mjs +1 -1
- package/esm2020/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/esm2020/public-api.mjs +2 -2
- package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +2 -2
- package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.mjs +1 -1
- package/esm2020/src/lib/components/capability/lib/core/elements/element-base.mjs +1 -1
- package/esm2020/src/lib/components/capability/lib/core/elements/index.mjs +8 -0
- package/esm2020/src/lib/components/capability/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/esm2020/src/lib/components/capability/lib/core/interfaces/index.mjs +7 -0
- package/esm2020/src/lib/components/capability/lib/core/interfaces/table-column.interface.mjs +2 -0
- package/esm2020/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.mjs +2 -0
- package/esm2020/src/lib/components/chart/lib/components/chart/src/chart.component.mjs +1 -1
- package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.mjs +1 -1
- package/esm2020/src/lib/components/chart/lib/core/elements/element-base.mjs +1 -1
- package/esm2020/src/lib/components/chart/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.mjs +1 -1
- package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +1 -1
- package/esm2020/src/lib/components/dropdown/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/esm2020/src/lib/components/nav-list/lib/components/nav-list/src/nav-list.component.mjs +1 -1
- package/esm2020/src/lib/components/nav-list/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/esm2020/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.mjs +1 -1
- package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +1 -1
- package/esm2020/src/lib/components/radio-button/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +1 -1
- package/esm2020/src/lib/components/textarea/lib/core/interfaces/element-option.interface.mjs +2 -0
- package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +54 -1
- package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
- package/fesm2015/mapa-library-ui.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +54 -1
- package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
- package/fesm2020/mapa-library-ui.mjs.map +1 -1
- package/lib/core/elements/element-base.d.ts +1 -1
- package/mapa-library-ui-0.3.1.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +2 -1
- package/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
- package/src/lib/components/capability/lib/core/elements/element-base.d.ts +1 -1
- package/src/lib/components/capability/lib/core/elements/index.d.ts +7 -0
- package/src/lib/components/capability/lib/core/interfaces/index.d.ts +6 -0
- package/src/lib/components/capability/lib/core/interfaces/table-column.interface.d.ts +7 -0
- package/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.d.ts +4 -0
- package/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
- package/src/lib/components/chart/lib/core/elements/element-base.d.ts +1 -1
- package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
- package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +1 -1
- package/src/lib/components/nav-list/lib/components/nav-list/src/nav-list.component.d.ts +1 -1
- package/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.d.ts +1 -1
- package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +1 -1
- package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +1 -1
- package/esm2020/lib/core/interfaces/option.interface.mjs +0 -2
- package/esm2020/src/lib/components/capability/lib/core/directives/custom-paginator-legacy.directive.mjs +0 -227
- package/esm2020/src/lib/components/capability/lib/core/directives/mat-input-autosize.directive.mjs +0 -96
- package/esm2020/src/lib/components/capability/lib/core/interfaces/option.interface.mjs +0 -2
- package/esm2020/src/lib/components/capability/public-api.mjs +0 -16
- package/esm2020/src/lib/components/chart/lib/core/interfaces/option.interface.mjs +0 -2
- package/esm2020/src/lib/components/dropdown/lib/core/interfaces/option.interface.mjs +0 -2
- package/esm2020/src/lib/components/nav-list/lib/core/interfaces/option.interface.mjs +0 -2
- package/esm2020/src/lib/components/radio-button/lib/core/interfaces/option.interface.mjs +0 -2
- package/esm2020/src/lib/components/textarea/lib/core/interfaces/option.interface.mjs +0 -2
- package/mapa-library-ui-0.3.0.tgz +0 -0
- package/src/lib/components/capability/lib/core/directives/custom-paginator-legacy.directive.d.ts +0 -27
- package/src/lib/components/capability/lib/core/directives/mat-input-autosize.directive.d.ts +0 -26
- package/src/lib/components/capability/public-api.d.ts +0 -12
- /package/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
- /package/src/lib/components/capability/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
- /package/src/lib/components/chart/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
- /package/src/lib/components/dropdown/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
- /package/src/lib/components/nav-list/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
- /package/src/lib/components/radio-button/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
- /package/src/lib/components/textarea/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
|
@@ -18,7 +18,6 @@ import { MatListModule } from '@angular/material/list';
|
|
|
18
18
|
import * as i1$1 from '@angular/material/icon';
|
|
19
19
|
import { MatIconModule } from '@angular/material/icon';
|
|
20
20
|
import * as i2$1 from '@angular/platform-browser';
|
|
21
|
-
import { Dropdown } from 'projects/mapa-library-ui/src/public-api';
|
|
22
21
|
import * as i1$2 from '@angular/router';
|
|
23
22
|
import { NavigationStart } from '@angular/router';
|
|
24
23
|
import * as i2$2 from 'mapa-library-ui/src/lib/components/button';
|
|
@@ -682,6 +681,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
682
681
|
}]
|
|
683
682
|
}] });
|
|
684
683
|
|
|
684
|
+
class ElementBase {
|
|
685
|
+
constructor(options = {}) {
|
|
686
|
+
this.value = options.value || "";
|
|
687
|
+
this.key = options.key || "";
|
|
688
|
+
this.label = options.label || "";
|
|
689
|
+
this.required = !!options.required;
|
|
690
|
+
this.order = options.order === undefined ? 1 : options.order;
|
|
691
|
+
this.controlType = options.controlType || "";
|
|
692
|
+
this.type = options.type || "";
|
|
693
|
+
this.placeholder = options.placeholder || "";
|
|
694
|
+
this.hint = options.hint || "";
|
|
695
|
+
this.prefix = options.prefix || "";
|
|
696
|
+
this.suffix = options.suffix || "";
|
|
697
|
+
this.autosize = options.autosize || false;
|
|
698
|
+
this.autosizeMinWidth = options.autosizeMinWidth || "212px";
|
|
699
|
+
this.autosizeMaxWidth = options.autosizeMaxWidth || "400px";
|
|
700
|
+
this.autosizeMinRow = options.autosizeMinRow || 2;
|
|
701
|
+
this.autosizeMaxRow = options.autosizeMaxRow || 5;
|
|
702
|
+
this.options = options.options || [];
|
|
703
|
+
this.multiple = options.multiple || false;
|
|
704
|
+
this.search = options.search || undefined;
|
|
705
|
+
this.maxLength = options.maxLength || null;
|
|
706
|
+
this.errors = options.errors || undefined;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
class Dropdown extends ElementBase {
|
|
711
|
+
constructor() {
|
|
712
|
+
super(...arguments);
|
|
713
|
+
this.controlType = 'dropdown';
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
class InputText extends ElementBase {
|
|
718
|
+
constructor() {
|
|
719
|
+
super(...arguments);
|
|
720
|
+
this.controlType = 'input';
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
class RadioButton extends ElementBase {
|
|
725
|
+
constructor() {
|
|
726
|
+
super(...arguments);
|
|
727
|
+
this.controlType = 'radio-button';
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
class Textarea extends ElementBase {
|
|
732
|
+
constructor() {
|
|
733
|
+
super(...arguments);
|
|
734
|
+
this.controlType = 'textarea';
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
685
738
|
class MapaCapabilityComparativeIndicatorComponent {
|
|
686
739
|
getWidth(item) {
|
|
687
740
|
return 32 + (item.interval || 0) * 2 + "px";
|