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.
Files changed (79) hide show
  1. package/esm2020/lib/core/elements/element-base.mjs +1 -1
  2. package/esm2020/lib/core/interfaces/element-option.interface.mjs +2 -0
  3. package/esm2020/public-api.mjs +2 -2
  4. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +2 -2
  5. package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  6. package/esm2020/src/lib/components/capability/lib/core/elements/element-base.mjs +1 -1
  7. package/esm2020/src/lib/components/capability/lib/core/elements/index.mjs +8 -0
  8. package/esm2020/src/lib/components/capability/lib/core/interfaces/element-option.interface.mjs +2 -0
  9. package/esm2020/src/lib/components/capability/lib/core/interfaces/index.mjs +7 -0
  10. package/esm2020/src/lib/components/capability/lib/core/interfaces/table-column.interface.mjs +2 -0
  11. package/esm2020/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.mjs +2 -0
  12. package/esm2020/src/lib/components/chart/lib/components/chart/src/chart.component.mjs +1 -1
  13. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  14. package/esm2020/src/lib/components/chart/lib/core/elements/element-base.mjs +1 -1
  15. package/esm2020/src/lib/components/chart/lib/core/interfaces/element-option.interface.mjs +2 -0
  16. package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.mjs +1 -1
  17. package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +1 -1
  18. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/element-option.interface.mjs +2 -0
  19. package/esm2020/src/lib/components/nav-list/lib/components/nav-list/src/nav-list.component.mjs +1 -1
  20. package/esm2020/src/lib/components/nav-list/lib/core/interfaces/element-option.interface.mjs +2 -0
  21. package/esm2020/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.mjs +1 -1
  22. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +1 -1
  23. package/esm2020/src/lib/components/radio-button/lib/core/interfaces/element-option.interface.mjs +2 -0
  24. package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +1 -1
  25. package/esm2020/src/lib/components/textarea/lib/core/interfaces/element-option.interface.mjs +2 -0
  26. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +54 -1
  27. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  28. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  29. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  30. package/fesm2015/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
  31. package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  32. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  33. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +54 -1
  34. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  35. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  36. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  37. package/fesm2020/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
  38. package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  39. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  40. package/lib/core/elements/element-base.d.ts +1 -1
  41. package/mapa-library-ui-0.3.1.tgz +0 -0
  42. package/package.json +1 -1
  43. package/public-api.d.ts +1 -1
  44. package/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +2 -1
  45. package/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
  46. package/src/lib/components/capability/lib/core/elements/element-base.d.ts +1 -1
  47. package/src/lib/components/capability/lib/core/elements/index.d.ts +7 -0
  48. package/src/lib/components/capability/lib/core/interfaces/index.d.ts +6 -0
  49. package/src/lib/components/capability/lib/core/interfaces/table-column.interface.d.ts +7 -0
  50. package/src/lib/components/capability/lib/core/interfaces/table-row-click-event.interface.d.ts +4 -0
  51. package/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
  52. package/src/lib/components/chart/lib/core/elements/element-base.d.ts +1 -1
  53. package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.d.ts +1 -1
  54. package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +1 -1
  55. package/src/lib/components/nav-list/lib/components/nav-list/src/nav-list.component.d.ts +1 -1
  56. package/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.d.ts +1 -1
  57. package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +1 -1
  58. package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +1 -1
  59. package/esm2020/lib/core/interfaces/option.interface.mjs +0 -2
  60. package/esm2020/src/lib/components/capability/lib/core/directives/custom-paginator-legacy.directive.mjs +0 -227
  61. package/esm2020/src/lib/components/capability/lib/core/directives/mat-input-autosize.directive.mjs +0 -96
  62. package/esm2020/src/lib/components/capability/lib/core/interfaces/option.interface.mjs +0 -2
  63. package/esm2020/src/lib/components/capability/public-api.mjs +0 -16
  64. package/esm2020/src/lib/components/chart/lib/core/interfaces/option.interface.mjs +0 -2
  65. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/option.interface.mjs +0 -2
  66. package/esm2020/src/lib/components/nav-list/lib/core/interfaces/option.interface.mjs +0 -2
  67. package/esm2020/src/lib/components/radio-button/lib/core/interfaces/option.interface.mjs +0 -2
  68. package/esm2020/src/lib/components/textarea/lib/core/interfaces/option.interface.mjs +0 -2
  69. package/mapa-library-ui-0.3.0.tgz +0 -0
  70. package/src/lib/components/capability/lib/core/directives/custom-paginator-legacy.directive.d.ts +0 -27
  71. package/src/lib/components/capability/lib/core/directives/mat-input-autosize.directive.d.ts +0 -26
  72. package/src/lib/components/capability/public-api.d.ts +0 -12
  73. /package/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
  74. /package/src/lib/components/capability/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
  75. /package/src/lib/components/chart/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
  76. /package/src/lib/components/dropdown/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
  77. /package/src/lib/components/nav-list/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
  78. /package/src/lib/components/radio-button/lib/core/interfaces/{option.interface.d.ts → element-option.interface.d.ts} +0 -0
  79. /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";