mapa-library-ui 0.0.8
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/README.md +24 -0
- package/esm2022/lib/core/directives/custom-paginator.directive.mjs +183 -0
- package/esm2022/lib/core/directives/mat-input-autosize.directive.mjs +96 -0
- package/esm2022/lib/core/elements/dropdown.mjs +8 -0
- package/esm2022/lib/core/elements/element-base.mjs +21 -0
- package/esm2022/lib/core/elements/input-text.mjs +8 -0
- package/esm2022/lib/core/interfaces/option.interface.mjs +2 -0
- package/esm2022/mapa-library-ui.mjs +5 -0
- package/esm2022/public-api.mjs +10 -0
- package/esm2022/src/lib/components/button/mapa-library-ui-src-lib-components-button.mjs +5 -0
- package/esm2022/src/lib/components/button/public-api.mjs +6 -0
- package/esm2022/src/lib/components/button/src/button.component.mjs +23 -0
- package/esm2022/src/lib/components/button/src/button.module.mjs +19 -0
- package/esm2022/src/lib/components/button-icon/mapa-library-ui-src-lib-components-button-icon.mjs +5 -0
- package/esm2022/src/lib/components/button-icon/public-api.mjs +6 -0
- package/esm2022/src/lib/components/button-icon/src/button-icon.component.mjs +34 -0
- package/esm2022/src/lib/components/button-icon/src/button-icon.module.mjs +28 -0
- package/esm2022/src/lib/components/checkbox/mapa-library-ui-src-lib-components-checkbox.mjs +5 -0
- package/esm2022/src/lib/components/checkbox/public-api.mjs +6 -0
- package/esm2022/src/lib/components/checkbox/src/checkbox.component.mjs +17 -0
- package/esm2022/src/lib/components/checkbox/src/checkbox.module.mjs +35 -0
- package/esm2022/src/lib/components/dialog/button/public-api.mjs +6 -0
- package/esm2022/src/lib/components/dialog/button/src/button.component.mjs +23 -0
- package/esm2022/src/lib/components/dialog/button/src/button.module.mjs +19 -0
- package/esm2022/src/lib/components/dialog/icon/public-api.mjs +6 -0
- package/esm2022/src/lib/components/dialog/icon/src/icon.component.mjs +26 -0
- package/esm2022/src/lib/components/dialog/icon/src/icon.module.mjs +19 -0
- package/esm2022/src/lib/components/dialog/mapa-library-ui-src-lib-components-dialog.mjs +5 -0
- package/esm2022/src/lib/components/dialog/shared-public-api.mjs +6 -0
- package/esm2022/src/lib/components/dropdown/mapa-library-ui-src-lib-components-dropdown.mjs +5 -0
- package/esm2022/src/lib/components/dropdown/public-api.mjs +6 -0
- package/esm2022/src/lib/components/dropdown/src/dropdown.component.mjs +26 -0
- package/esm2022/src/lib/components/dropdown/src/dropdown.module.mjs +36 -0
- package/esm2022/src/lib/components/dropdown/src/option/option.component.mjs +26 -0
- package/esm2022/src/lib/components/empty/mapa-library-ui-src-lib-components-empty.mjs +5 -0
- package/esm2022/src/lib/components/empty/public-api.mjs +6 -0
- package/esm2022/src/lib/components/empty/src/empty.component.mjs +11 -0
- package/esm2022/src/lib/components/empty/src/empty.module.mjs +24 -0
- package/esm2022/src/lib/components/filters/button/public-api.mjs +6 -0
- package/esm2022/src/lib/components/filters/button/src/button.component.mjs +23 -0
- package/esm2022/src/lib/components/filters/button/src/button.module.mjs +19 -0
- package/esm2022/src/lib/components/filters/icon/public-api.mjs +6 -0
- package/esm2022/src/lib/components/filters/icon/src/icon.component.mjs +26 -0
- package/esm2022/src/lib/components/filters/icon/src/icon.module.mjs +19 -0
- package/esm2022/src/lib/components/filters/mapa-library-ui-src-lib-components-filters.mjs +5 -0
- package/esm2022/src/lib/components/filters/shared-public-api.mjs +6 -0
- package/esm2022/src/lib/components/icon/mapa-library-ui-src-lib-components-icon.mjs +5 -0
- package/esm2022/src/lib/components/icon/public-api.mjs +6 -0
- package/esm2022/src/lib/components/icon/src/icon.component.mjs +26 -0
- package/esm2022/src/lib/components/icon/src/icon.module.mjs +19 -0
- package/esm2022/src/lib/components/input/mapa-library-ui-src-lib-components-input.mjs +5 -0
- package/esm2022/src/lib/components/input/public-api.mjs +6 -0
- package/esm2022/src/lib/components/input/src/input.component.mjs +27 -0
- package/esm2022/src/lib/components/input/src/input.module.mjs +46 -0
- package/esm2022/src/lib/components/nav-list/mapa-library-ui-src-lib-components-nav-list.mjs +5 -0
- package/esm2022/src/lib/components/nav-list/public-api.mjs +6 -0
- package/esm2022/src/lib/components/nav-list/src/nav-list.component.mjs +26 -0
- package/esm2022/src/lib/components/nav-list/src/nav-list.module.mjs +18 -0
- package/esm2022/src/lib/components/radio-button/mapa-library-ui-src-lib-components-radio-button.mjs +5 -0
- package/esm2022/src/lib/components/radio-button/public-api.mjs +6 -0
- package/esm2022/src/lib/components/radio-button/src/radio-button.component.mjs +26 -0
- package/esm2022/src/lib/components/radio-button/src/radio-button.module.mjs +28 -0
- package/esm2022/src/lib/components/report-item/mapa-library-ui-src-lib-components-report-item.mjs +5 -0
- package/esm2022/src/lib/components/report-item/public-api.mjs +6 -0
- package/esm2022/src/lib/components/report-item/src/report-item.component.mjs +34 -0
- package/esm2022/src/lib/components/report-item/src/report-item.module.mjs +32 -0
- package/esm2022/src/lib/components/table/mapa-library-ui-src-lib-components-table.mjs +5 -0
- package/esm2022/src/lib/components/table/public-api.mjs +6 -0
- package/esm2022/src/lib/components/table/src/paginator_customization.mjs +9 -0
- package/esm2022/src/lib/components/table/src/table.component.mjs +112 -0
- package/esm2022/src/lib/components/table/src/table.module.mjs +49 -0
- package/esm2022/src/lib/components/tag/mapa-library-ui-src-lib-components-tag.mjs +5 -0
- package/esm2022/src/lib/components/tag/public-api.mjs +6 -0
- package/esm2022/src/lib/components/tag/tag.component.mjs +15 -0
- package/esm2022/src/lib/components/tag/tag.module.mjs +24 -0
- package/esm2022/src/lib/components/warning/mapa-library-ui-src-lib-components-warning.mjs +5 -0
- package/esm2022/src/lib/components/warning/public-api.mjs +6 -0
- package/esm2022/src/lib/components/warning/src/warning.component.mjs +16 -0
- package/esm2022/src/lib/components/warning/src/warning.module.mjs +26 -0
- package/fesm2022/mapa-library-ui-src-lib-components-button-icon.mjs +70 -0
- package/fesm2022/mapa-library-ui-src-lib-components-button-icon.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-button.mjs +50 -0
- package/fesm2022/mapa-library-ui-src-lib-components-button.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-checkbox.mjs +60 -0
- package/fesm2022/mapa-library-ui-src-lib-components-checkbox.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dialog.mjs +97 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +91 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-empty.mjs +43 -0
- package/fesm2022/mapa-library-ui-src-lib-components-empty.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +97 -0
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-icon.mjs +53 -0
- package/fesm2022/mapa-library-ui-src-lib-components-icon.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +81 -0
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-nav-list.mjs +52 -0
- package/fesm2022/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs +62 -0
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-report-item.mjs +74 -0
- package/fesm2022/mapa-library-ui-src-lib-components-report-item.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +174 -0
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-tag.mjs +47 -0
- package/fesm2022/mapa-library-ui-src-lib-components-tag.mjs.map +1 -0
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +50 -0
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -0
- package/fesm2022/mapa-library-ui.mjs +323 -0
- package/fesm2022/mapa-library-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/core/directives/custom-paginator.directive.d.ts +33 -0
- package/lib/core/directives/mat-input-autosize.directive.d.ts +26 -0
- package/lib/core/elements/dropdown.d.ts +4 -0
- package/lib/core/elements/element-base.d.ts +37 -0
- package/lib/core/elements/input-text.d.ts +4 -0
- package/lib/core/interfaces/option.interface.d.ts +4 -0
- package/mapa-library-ui-0.0.8.tgz +0 -0
- package/package.json +115 -0
- package/public-api.d.ts +6 -0
- package/src/lib/components/button/index.d.ts +5 -0
- package/src/lib/components/button/public-api.d.ts +2 -0
- package/src/lib/components/button/src/button.component.d.ts +10 -0
- package/src/lib/components/button/src/button.module.d.ts +9 -0
- package/src/lib/components/button-icon/index.d.ts +5 -0
- package/src/lib/components/button-icon/public-api.d.ts +2 -0
- package/src/lib/components/button-icon/src/button-icon.component.d.ts +20 -0
- package/src/lib/components/button-icon/src/button-icon.module.d.ts +9 -0
- package/src/lib/components/checkbox/index.d.ts +5 -0
- package/src/lib/components/checkbox/public-api.d.ts +2 -0
- package/src/lib/components/checkbox/src/checkbox.component.d.ts +8 -0
- package/src/lib/components/checkbox/src/checkbox.module.d.ts +10 -0
- package/src/lib/components/dialog/button/public-api.d.ts +2 -0
- package/src/lib/components/dialog/button/src/button.component.d.ts +10 -0
- package/src/lib/components/dialog/button/src/button.module.d.ts +9 -0
- package/src/lib/components/dialog/icon/public-api.d.ts +2 -0
- package/src/lib/components/dialog/icon/src/icon.component.d.ts +13 -0
- package/src/lib/components/dialog/icon/src/icon.module.d.ts +9 -0
- package/src/lib/components/dialog/index.d.ts +5 -0
- package/src/lib/components/dialog/shared-public-api.d.ts +2 -0
- package/src/lib/components/dropdown/index.d.ts +5 -0
- package/src/lib/components/dropdown/public-api.d.ts +2 -0
- package/src/lib/components/dropdown/src/dropdown.component.d.ts +12 -0
- package/src/lib/components/dropdown/src/dropdown.module.d.ts +12 -0
- package/src/lib/components/dropdown/src/option/option.component.d.ts +12 -0
- package/src/lib/components/empty/index.d.ts +5 -0
- package/src/lib/components/empty/public-api.d.ts +2 -0
- package/src/lib/components/empty/src/empty.component.d.ts +5 -0
- package/src/lib/components/empty/src/empty.module.d.ts +8 -0
- package/src/lib/components/filters/button/public-api.d.ts +2 -0
- package/src/lib/components/filters/button/src/button.component.d.ts +10 -0
- package/src/lib/components/filters/button/src/button.module.d.ts +9 -0
- package/src/lib/components/filters/icon/public-api.d.ts +2 -0
- package/src/lib/components/filters/icon/src/icon.component.d.ts +13 -0
- package/src/lib/components/filters/icon/src/icon.module.d.ts +9 -0
- package/src/lib/components/filters/index.d.ts +5 -0
- package/src/lib/components/filters/shared-public-api.d.ts +2 -0
- package/src/lib/components/icon/index.d.ts +5 -0
- package/src/lib/components/icon/public-api.d.ts +2 -0
- package/src/lib/components/icon/src/icon.component.d.ts +13 -0
- package/src/lib/components/icon/src/icon.module.d.ts +9 -0
- package/src/lib/components/input/index.d.ts +5 -0
- package/src/lib/components/input/public-api.d.ts +2 -0
- package/src/lib/components/input/src/input.component.d.ts +11 -0
- package/src/lib/components/input/src/input.module.d.ts +13 -0
- package/src/lib/components/nav-list/index.d.ts +5 -0
- package/src/lib/components/nav-list/public-api.d.ts +2 -0
- package/src/lib/components/nav-list/src/nav-list.component.d.ts +13 -0
- package/src/lib/components/nav-list/src/nav-list.module.d.ts +8 -0
- package/src/lib/components/radio-button/index.d.ts +5 -0
- package/src/lib/components/radio-button/public-api.d.ts +2 -0
- package/src/lib/components/radio-button/src/radio-button.component.d.ts +15 -0
- package/src/lib/components/radio-button/src/radio-button.module.d.ts +9 -0
- package/src/lib/components/report-item/index.d.ts +5 -0
- package/src/lib/components/report-item/public-api.d.ts +2 -0
- package/src/lib/components/report-item/src/report-item.component.d.ts +20 -0
- package/src/lib/components/report-item/src/report-item.module.d.ts +10 -0
- package/src/lib/components/table/index.d.ts +5 -0
- package/src/lib/components/table/public-api.d.ts +2 -0
- package/src/lib/components/table/src/paginator_customization.d.ts +2 -0
- package/src/lib/components/table/src/table.component.d.ts +36 -0
- package/src/lib/components/table/src/table.module.d.ts +13 -0
- package/src/lib/components/tag/index.d.ts +5 -0
- package/src/lib/components/tag/public-api.d.ts +2 -0
- package/src/lib/components/tag/tag.component.d.ts +7 -0
- package/src/lib/components/tag/tag.module.d.ts +8 -0
- package/src/lib/components/warning/index.d.ts +5 -0
- package/src/lib/components/warning/public-api.d.ts +2 -0
- package/src/lib/components/warning/src/warning.component.d.ts +7 -0
- package/src/lib/components/warning/src/warning.module.d.ts +9 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, Self, Optional, Input, EventEmitter, Output } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/input';
|
|
4
|
+
import * as i2 from '@angular/forms';
|
|
5
|
+
import { map, startWith } from 'rxjs';
|
|
6
|
+
import * as i1$1 from '@angular/material/paginator';
|
|
7
|
+
|
|
8
|
+
class ElementBase {
|
|
9
|
+
constructor(options = {}) {
|
|
10
|
+
this.value = options.value || '';
|
|
11
|
+
this.key = options.key || '';
|
|
12
|
+
this.label = options.label || '';
|
|
13
|
+
this.required = !!options.required;
|
|
14
|
+
this.order = options.order === undefined ? 1 : options.order;
|
|
15
|
+
this.controlType = options.controlType || '';
|
|
16
|
+
this.type = options.type || '';
|
|
17
|
+
this.placeholder = options.placeholder || '';
|
|
18
|
+
this.hint = options.hint || '';
|
|
19
|
+
this.prefix = options.prefix || '';
|
|
20
|
+
this.suffix = options.suffix || '';
|
|
21
|
+
this.autosize = options.autosize || false;
|
|
22
|
+
this.autosizeMinWidth = options.autosizeMinWidth || '212px';
|
|
23
|
+
this.autosizeMaxWidth = options.autosizeMaxWidth || '400px';
|
|
24
|
+
this.options = options.options || [];
|
|
25
|
+
this.multiple = options.multiple || false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class Dropdown extends ElementBase {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.controlType = 'dropdown';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class InputText extends ElementBase {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.controlType = 'input';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* Originally from: https://github.com/anotherkitten/mat-input-autosize
|
|
45
|
+
* @author: Ellie Larson (anotherkitten)
|
|
46
|
+
*/
|
|
47
|
+
class MatInputAutosizeDirective {
|
|
48
|
+
constructor(el, childMatInput, childNgModel) {
|
|
49
|
+
this.childMatInput = childMatInput;
|
|
50
|
+
this.childNgModel = childNgModel;
|
|
51
|
+
this.matInputAutosizeMinWidth = '120px';
|
|
52
|
+
this.changeHiddenText = (newValue) => {
|
|
53
|
+
if (this.hiddenText) {
|
|
54
|
+
this.hiddenText.data = newValue + ' ';
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
this.inputElement = el.nativeElement;
|
|
58
|
+
}
|
|
59
|
+
ngAfterViewInit() {
|
|
60
|
+
this.checkErrors();
|
|
61
|
+
this.overwriteParentWidth();
|
|
62
|
+
this.createHiddenTextContainer();
|
|
63
|
+
this.setOwnStyles();
|
|
64
|
+
this.subscribeToChanges();
|
|
65
|
+
}
|
|
66
|
+
ngOnDestroy() {
|
|
67
|
+
if (this.changeDetectSub) {
|
|
68
|
+
this.changeDetectSub.unsubscribe();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
checkErrors() {
|
|
72
|
+
if (!(this.inputElement instanceof HTMLInputElement)) {
|
|
73
|
+
throw new Error('matInputAutosize directive must be on an input element');
|
|
74
|
+
}
|
|
75
|
+
if (!this.childMatInput) {
|
|
76
|
+
throw new Error('Element with matInputAutosize directive must also have the matInput directive');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
overwriteParentWidth() {
|
|
80
|
+
Object.assign(this.inputElement.parentNode.style, {
|
|
81
|
+
width: '100%',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
createHiddenTextContainer() {
|
|
85
|
+
const textContainer = document.createElement('div');
|
|
86
|
+
Object.assign(textContainer.style, {
|
|
87
|
+
display: 'inline-block',
|
|
88
|
+
'max-width': this.matInputAutosizeMaxWidth || null,
|
|
89
|
+
'min-width': this.matInputAutosizeMinWidth,
|
|
90
|
+
font: this.matInputAutosizeFontStyle || null,
|
|
91
|
+
visibility: 'hidden',
|
|
92
|
+
'white-space': 'pre',
|
|
93
|
+
});
|
|
94
|
+
this.inputElement.parentNode?.appendChild(textContainer);
|
|
95
|
+
this.hiddenText = document.createTextNode(' ');
|
|
96
|
+
textContainer.appendChild(this.hiddenText);
|
|
97
|
+
}
|
|
98
|
+
setOwnStyles() {
|
|
99
|
+
Object.assign(this.inputElement.style, {
|
|
100
|
+
position: 'absolute',
|
|
101
|
+
left: '0',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
subscribeToChanges() {
|
|
105
|
+
if (this.childNgModel) {
|
|
106
|
+
this.changeDetectSub = this.childNgModel.control.valueChanges.subscribe(this.changeHiddenText);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
this.inputElement.addEventListener('input', () => this.changeHiddenText(this.inputElement.value));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MatInputAutosizeDirective, deps: [{ token: i0.ElementRef }, { token: i1.MatInput, self: true }, { token: i2.NgModel, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
113
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MatInputAutosizeDirective, isStandalone: true, selector: "[matInputAutosize]", inputs: { matInputAutosizeMaxWidth: "matInputAutosizeMaxWidth", matInputAutosizeMinWidth: "matInputAutosizeMinWidth", matInputAutosizeFontStyle: "matInputAutosizeFontStyle" }, ngImport: i0 }); }
|
|
114
|
+
}
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MatInputAutosizeDirective, decorators: [{
|
|
116
|
+
type: Directive,
|
|
117
|
+
args: [{
|
|
118
|
+
selector: '[matInputAutosize]',
|
|
119
|
+
standalone: true,
|
|
120
|
+
}]
|
|
121
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.MatInput, decorators: [{
|
|
122
|
+
type: Self
|
|
123
|
+
}] }, { type: i2.NgModel, decorators: [{
|
|
124
|
+
type: Optional
|
|
125
|
+
}, {
|
|
126
|
+
type: Self
|
|
127
|
+
}] }]; }, propDecorators: { matInputAutosizeMaxWidth: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], matInputAutosizeMinWidth: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], matInputAutosizeFontStyle: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}] } });
|
|
134
|
+
|
|
135
|
+
class BubblePaginationDirective {
|
|
136
|
+
constructor(matPag, elementRef, ren) {
|
|
137
|
+
this.matPag = matPag;
|
|
138
|
+
this.elementRef = elementRef;
|
|
139
|
+
this.ren = ren;
|
|
140
|
+
this.pageIndexChangeEmitter = new EventEmitter();
|
|
141
|
+
this.showFirstButton = true;
|
|
142
|
+
this.showLastButton = true;
|
|
143
|
+
this.renderButtonsNumber = 2;
|
|
144
|
+
this.appCustomLength = 0;
|
|
145
|
+
this.hideDefaultArrows = false;
|
|
146
|
+
this.buttonsRef = [];
|
|
147
|
+
}
|
|
148
|
+
ngAfterViewInit() {
|
|
149
|
+
this.styleDefaultPagination();
|
|
150
|
+
this.createBubbleDivRef();
|
|
151
|
+
this.renderButtons();
|
|
152
|
+
}
|
|
153
|
+
ngOnChanges(changes) {
|
|
154
|
+
if (!changes?.["appCustomLength"]?.firstChange) {
|
|
155
|
+
this.removeButtons();
|
|
156
|
+
this.switchPage(0);
|
|
157
|
+
this.renderButtons();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
renderButtons() {
|
|
161
|
+
this.buildButtons();
|
|
162
|
+
this.matPag.page
|
|
163
|
+
.pipe(map((e) => [e.previousPageIndex ?? 0, e.pageIndex]), startWith([0, 0]))
|
|
164
|
+
.subscribe(([prev, curr]) => {
|
|
165
|
+
this.changeActiveButtonStyles(prev, curr);
|
|
166
|
+
this.updateButtonsOnPageEvent();
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
changeActiveButtonStyles(previousIndex, newIndex) {
|
|
170
|
+
const previouslyActive = this.buttonsRef[previousIndex];
|
|
171
|
+
const currentActive = this.buttonsRef[newIndex];
|
|
172
|
+
try {
|
|
173
|
+
this.ren.removeClass(previouslyActive, "g-bubble__active");
|
|
174
|
+
this.ren.addClass(currentActive, "g-bubble__active");
|
|
175
|
+
}
|
|
176
|
+
catch { }
|
|
177
|
+
this.buttonsRef.forEach((button) => this.ren.setStyle(button, "display", "none"));
|
|
178
|
+
const renderElements = this.renderButtonsNumber;
|
|
179
|
+
const endDots = newIndex < this.buttonsRef.length - renderElements - 1;
|
|
180
|
+
const startDots = newIndex - renderElements > 0;
|
|
181
|
+
const firstButton = this.buttonsRef[0];
|
|
182
|
+
const lastButton = this.buttonsRef[this.buttonsRef.length - 1];
|
|
183
|
+
try {
|
|
184
|
+
if (this.showLastButton) {
|
|
185
|
+
this.ren.setStyle(this.dotsEndRef, "display", endDots ? "block" : "none");
|
|
186
|
+
this.ren.setStyle(lastButton, "display", endDots ? "flex" : "none");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
catch { }
|
|
190
|
+
try {
|
|
191
|
+
if (this.showFirstButton) {
|
|
192
|
+
this.ren.setStyle(this.dotsStartRef, "display", startDots ? "block" : "none");
|
|
193
|
+
this.ren.setStyle(firstButton, "display", startDots ? "flex" : "none");
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
catch { }
|
|
197
|
+
const startingIndex = startDots ? newIndex - renderElements : 0;
|
|
198
|
+
const endingIndex = endDots
|
|
199
|
+
? newIndex + renderElements
|
|
200
|
+
: this.buttonsRef.length - 1;
|
|
201
|
+
for (let i = startingIndex; i <= endingIndex; i++) {
|
|
202
|
+
const button = this.buttonsRef[i];
|
|
203
|
+
this.ren.setStyle(button, "display", "flex");
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
styleDefaultPagination() {
|
|
207
|
+
const nativeElement = this.elementRef.nativeElement;
|
|
208
|
+
const itemsPerPage = nativeElement.querySelector(".mat-mdc-paginator-page-size");
|
|
209
|
+
const howManyDisplayedEl = nativeElement.querySelector(".mat-mdc-paginator-range-label");
|
|
210
|
+
const previousButton = nativeElement.querySelector("button.mat-mdc-paginator-navigation-previous");
|
|
211
|
+
const nextButtonDefault = nativeElement.querySelector("button.mat-mdc-paginator-navigation-next");
|
|
212
|
+
if (this.hideDefaultArrows) {
|
|
213
|
+
this.ren.setStyle(previousButton, "display", "none");
|
|
214
|
+
this.ren.setStyle(nextButtonDefault, "display", "none");
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
createBubbleDivRef() {
|
|
218
|
+
const actionContainer = this.elementRef.nativeElement.querySelector("div.mat-mdc-paginator-range-actions");
|
|
219
|
+
const nextButtonDefault = this.elementRef.nativeElement.querySelector("button.mat-mdc-paginator-navigation-next");
|
|
220
|
+
this.bubbleContainerRef = this.ren.createElement("div");
|
|
221
|
+
this.ren.addClass(this.bubbleContainerRef, "g-bubble-container");
|
|
222
|
+
this.ren.insertBefore(actionContainer, this.bubbleContainerRef, nextButtonDefault);
|
|
223
|
+
}
|
|
224
|
+
buildButtons() {
|
|
225
|
+
const neededButtons = Math.ceil(this.appCustomLength / this.matPag.pageSize);
|
|
226
|
+
if (neededButtons === 1) {
|
|
227
|
+
this.ren.setStyle(this.elementRef.nativeElement, "display", "none");
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
this.buttonsRef = [this.createButton(0)];
|
|
231
|
+
this.dotsStartRef = this.createDotsElement();
|
|
232
|
+
for (let index = 1; index < neededButtons - 1; index++) {
|
|
233
|
+
this.buttonsRef = [...this.buttonsRef, this.createButton(index)];
|
|
234
|
+
}
|
|
235
|
+
this.dotsEndRef = this.createDotsElement();
|
|
236
|
+
this.buttonsRef = [
|
|
237
|
+
...this.buttonsRef,
|
|
238
|
+
this.createButton(neededButtons - 1),
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
removeButtons() {
|
|
242
|
+
this.bubbleContainerRef.innerHTML = '';
|
|
243
|
+
this.buttonsRef.forEach((button) => {
|
|
244
|
+
this.ren.removeChild(this.bubbleContainerRef, button);
|
|
245
|
+
});
|
|
246
|
+
this.buttonsRef = [];
|
|
247
|
+
this.buttonsRef.length = 0;
|
|
248
|
+
}
|
|
249
|
+
createButton(i) {
|
|
250
|
+
const bubbleButton = this.ren.createElement("div");
|
|
251
|
+
const text = this.ren.createText(String(i + 1));
|
|
252
|
+
this.ren.addClass(bubbleButton, "g-bubble");
|
|
253
|
+
this.ren.setStyle(bubbleButton, "margin-right", "8px");
|
|
254
|
+
this.ren.appendChild(bubbleButton, text);
|
|
255
|
+
this.ren.listen(bubbleButton, "click", () => {
|
|
256
|
+
this.switchPage(i);
|
|
257
|
+
});
|
|
258
|
+
this.ren.appendChild(this.bubbleContainerRef, bubbleButton);
|
|
259
|
+
this.ren.setStyle(bubbleButton, "display", "none");
|
|
260
|
+
return bubbleButton;
|
|
261
|
+
}
|
|
262
|
+
createDotsElement() {
|
|
263
|
+
const dotsEl = this.ren.createElement("span");
|
|
264
|
+
const dotsText = this.ren.createText(".....");
|
|
265
|
+
this.ren.setStyle(dotsEl, "font-size", "18px");
|
|
266
|
+
this.ren.setStyle(dotsEl, "margin-right", "8px");
|
|
267
|
+
this.ren.setStyle(dotsEl, "padding-top", "6px");
|
|
268
|
+
this.ren.setStyle(dotsEl, "color", "#919191");
|
|
269
|
+
this.ren.appendChild(dotsEl, dotsText);
|
|
270
|
+
this.ren.appendChild(this.bubbleContainerRef, dotsEl);
|
|
271
|
+
this.ren.setStyle(dotsEl, "display", "none");
|
|
272
|
+
return dotsEl;
|
|
273
|
+
}
|
|
274
|
+
switchPage(i) {
|
|
275
|
+
const previousPageIndex = this.matPag.pageIndex;
|
|
276
|
+
this.matPag.pageIndex = i;
|
|
277
|
+
try {
|
|
278
|
+
this.matPag["_emitPageEvent"](previousPageIndex);
|
|
279
|
+
}
|
|
280
|
+
catch { }
|
|
281
|
+
this.pageIndexChangeEmitter.emit(i);
|
|
282
|
+
}
|
|
283
|
+
updateButtonsOnPageEvent() {
|
|
284
|
+
const neededButtons = Math.ceil(this.appCustomLength / this.matPag.pageSize);
|
|
285
|
+
if (neededButtons === this.buttonsRef.length) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
this.removeButtons();
|
|
289
|
+
this.buildButtons();
|
|
290
|
+
}
|
|
291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubblePaginationDirective, deps: [{ token: i1$1.MatPaginator }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
292
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BubblePaginationDirective, isStandalone: true, selector: "[appBubblePagination]", inputs: { showFirstButton: "showFirstButton", showLastButton: "showLastButton", renderButtonsNumber: "renderButtonsNumber", appCustomLength: "appCustomLength", hideDefaultArrows: "hideDefaultArrows" }, outputs: { pageIndexChangeEmitter: "pageIndexChangeEmitter" }, usesOnChanges: true, ngImport: i0 }); }
|
|
293
|
+
}
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubblePaginationDirective, decorators: [{
|
|
295
|
+
type: Directive,
|
|
296
|
+
args: [{
|
|
297
|
+
selector: "[appBubblePagination]",
|
|
298
|
+
standalone: true,
|
|
299
|
+
}]
|
|
300
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatPaginator }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { pageIndexChangeEmitter: [{
|
|
301
|
+
type: Output
|
|
302
|
+
}], showFirstButton: [{
|
|
303
|
+
type: Input
|
|
304
|
+
}], showLastButton: [{
|
|
305
|
+
type: Input
|
|
306
|
+
}], renderButtonsNumber: [{
|
|
307
|
+
type: Input
|
|
308
|
+
}], appCustomLength: [{
|
|
309
|
+
type: Input
|
|
310
|
+
}], hideDefaultArrows: [{
|
|
311
|
+
type: Input
|
|
312
|
+
}] } });
|
|
313
|
+
|
|
314
|
+
/*
|
|
315
|
+
* Public API Surface of mapa-library-ui
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Generated bundle index. Do not edit.
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
export { BubblePaginationDirective, Dropdown, ElementBase, InputText, MatInputAutosizeDirective };
|
|
323
|
+
//# sourceMappingURL=mapa-library-ui.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapa-library-ui.mjs","sources":["../../../projects/mapa-library-ui/src/lib/core/elements/element-base.ts","../../../projects/mapa-library-ui/src/lib/core/elements/dropdown.ts","../../../projects/mapa-library-ui/src/lib/core/elements/input-text.ts","../../../projects/mapa-library-ui/src/lib/core/directives/mat-input-autosize.directive.ts","../../../projects/mapa-library-ui/src/lib/core/directives/custom-paginator.directive.ts","../../../projects/mapa-library-ui/src/public-api.ts","../../../projects/mapa-library-ui/src/mapa-library-ui.ts"],"sourcesContent":["import { ElementOption } from '../interfaces/option.interface';\n\nexport class ElementBase {\n value: string;\n key: string;\n label: string;\n required: boolean;\n order: number;\n controlType: string;\n type: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options: ElementOption[];\n multiple?: boolean;\n\n constructor(\n options: {\n value?: string;\n key?: string;\n label?: string;\n required?: boolean;\n order?: number;\n controlType?: string;\n type?: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options?: ElementOption[];\n multiple?: boolean;\n } = {}\n ) {\n this.value = options.value || '';\n this.key = options.key || '';\n this.label = options.label || '';\n this.required = !!options.required;\n this.order = options.order === undefined ? 1 : options.order;\n this.controlType = options.controlType || '';\n this.type = options.type || '';\n this.placeholder = options.placeholder || '';\n this.hint = options.hint || '';\n this.prefix = options.prefix || '';\n this.suffix = options.suffix || '';\n this.autosize = options.autosize || false;\n this.autosizeMinWidth = options.autosizeMinWidth || '212px';\n this.autosizeMaxWidth = options.autosizeMaxWidth || '400px';\n this.options = options.options || [];\n this.multiple = options.multiple || false;\n }\n}\n","import { ElementBase } from './element-base';\n\nexport class Dropdown extends ElementBase {\n override controlType = 'dropdown';\n}\n","import { ElementBase } from './element-base';\n\nexport class InputText extends ElementBase {\n override controlType = 'input';\n}\n","/*\n* Originally from: https://github.com/anotherkitten/mat-input-autosize\n* @author: Ellie Larson (anotherkitten)\n*/\n\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Input,\n OnDestroy,\n Optional,\n Self,\n} from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { MatInput } from '@angular/material/input';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[matInputAutosize]',\n standalone: true,\n})\nexport class MatInputAutosizeDirective implements AfterViewInit, OnDestroy {\n inputElement: HTMLInputElement;\n hiddenText!: Text;\n changeDetectSub!: Subscription;\n\n @Input() matInputAutosizeMaxWidth: any;\n @Input() matInputAutosizeMinWidth = '120px';\n @Input() matInputAutosizeFontStyle: any;\n\n constructor(\n el: ElementRef<HTMLInputElement>,\n @Self() private childMatInput: MatInput,\n @Optional() @Self() private childNgModel: NgModel\n ) {\n this.inputElement = el.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.checkErrors();\n this.overwriteParentWidth();\n this.createHiddenTextContainer();\n this.setOwnStyles();\n this.subscribeToChanges();\n }\n\n ngOnDestroy(): void {\n if (this.changeDetectSub) {\n this.changeDetectSub.unsubscribe();\n }\n }\n\n checkErrors(): void {\n if (!(this.inputElement instanceof HTMLInputElement)) {\n throw new Error('matInputAutosize directive must be on an input element');\n }\n\n if (!this.childMatInput) {\n throw new Error(\n 'Element with matInputAutosize directive must also have the matInput directive'\n );\n }\n }\n\n overwriteParentWidth(): void {\n Object.assign((this.inputElement.parentNode as HTMLElement).style, {\n width: '100%',\n });\n }\n\n createHiddenTextContainer(): void {\n const textContainer = document.createElement('div');\n Object.assign(textContainer.style, {\n display: 'inline-block',\n 'max-width': this.matInputAutosizeMaxWidth || null,\n 'min-width': this.matInputAutosizeMinWidth,\n font: this.matInputAutosizeFontStyle || null,\n visibility: 'hidden',\n 'white-space': 'pre',\n });\n this.inputElement.parentNode?.appendChild(textContainer);\n\n this.hiddenText = document.createTextNode(' ');\n textContainer.appendChild(this.hiddenText);\n }\n\n setOwnStyles(): void {\n Object.assign(this.inputElement.style, {\n position: 'absolute',\n left: '0',\n });\n }\n\n subscribeToChanges(): void {\n if (this.childNgModel) {\n this.changeDetectSub = this.childNgModel.control.valueChanges.subscribe(\n this.changeHiddenText\n );\n } else {\n this.inputElement.addEventListener('input', () =>\n this.changeHiddenText(this.inputElement.value)\n );\n }\n }\n\n changeHiddenText = (newValue: string): void => {\n if (this.hiddenText) {\n this.hiddenText.data = newValue + ' ';\n }\n };\n}\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n Renderer2,\n SimpleChanges,\n} from \"@angular/core\";\nimport { MatPaginator } from \"@angular/material/paginator\";\nimport { map, startWith } from \"rxjs\";\n\n@Directive({\n selector: \"[appBubblePagination]\",\n standalone: true,\n})\nexport class BubblePaginationDirective implements AfterViewInit, OnChanges {\n @Output() pageIndexChangeEmitter: EventEmitter<number> = new EventEmitter<number>();\n @Input() showFirstButton = true;\n @Input() showLastButton = true;\n @Input() renderButtonsNumber = 2;\n @Input() appCustomLength: number = 0;\n @Input() hideDefaultArrows = false;\n private dotsEndRef!: HTMLElement;\n private dotsStartRef!: HTMLElement;\n private bubbleContainerRef!: HTMLElement;\n private buttonsRef: HTMLElement[] = [];\n\n constructor(\n private readonly matPag: MatPaginator,\n private elementRef: ElementRef,\n private ren: Renderer2\n ) {}\n\n ngAfterViewInit(): void {\n this.styleDefaultPagination();\n this.createBubbleDivRef();\n this.renderButtons();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!changes?.[\"appCustomLength\"]?.firstChange) {\n this.removeButtons();\n this.switchPage(0);\n this.renderButtons();\n }\n }\n\n private renderButtons(): void {\n this.buildButtons();\n\n this.matPag.page\n .pipe(\n map((e) => [e.previousPageIndex ?? 0, e.pageIndex]),\n startWith([0, 0])\n )\n .subscribe(([prev, curr]) => {\n this.changeActiveButtonStyles(prev, curr);\n this.updateButtonsOnPageEvent();\n });\n }\n\n private changeActiveButtonStyles(previousIndex: number, newIndex: number) {\n const previouslyActive = this.buttonsRef[previousIndex];\n const currentActive = this.buttonsRef[newIndex];\n\n try {\n this.ren.removeClass(previouslyActive, \"g-bubble__active\");\n this.ren.addClass(currentActive, \"g-bubble__active\");\n } catch {}\n\n this.buttonsRef.forEach((button) =>\n this.ren.setStyle(button, \"display\", \"none\")\n );\n\n const renderElements = this.renderButtonsNumber;\n const endDots = newIndex < this.buttonsRef.length - renderElements - 1;\n const startDots = newIndex - renderElements > 0;\n\n const firstButton = this.buttonsRef[0];\n const lastButton = this.buttonsRef[this.buttonsRef.length - 1];\n\n try {\n if (this.showLastButton) {\n this.ren.setStyle(this.dotsEndRef, \"display\", endDots ? \"block\" : \"none\");\n this.ren.setStyle(lastButton, \"display\", endDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n try {\n if (this.showFirstButton) {\n this.ren.setStyle(\n this.dotsStartRef,\n \"display\",\n startDots ? \"block\" : \"none\"\n );\n this.ren.setStyle(firstButton, \"display\", startDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n const startingIndex = startDots ? newIndex - renderElements : 0;\n const endingIndex = endDots\n ? newIndex + renderElements\n : this.buttonsRef.length - 1;\n\n for (let i = startingIndex; i <= endingIndex; i++) {\n const button = this.buttonsRef[i];\n this.ren.setStyle(button, \"display\", \"flex\");\n }\n }\n\n private styleDefaultPagination() {\n const nativeElement = this.elementRef.nativeElement;\n const itemsPerPage = nativeElement.querySelector(\n \".mat-mdc-paginator-page-size\"\n );\n const howManyDisplayedEl = nativeElement.querySelector(\n \".mat-mdc-paginator-range-label\"\n );\n const previousButton = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-previous\"\n );\n const nextButtonDefault = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n if (this.hideDefaultArrows) {\n this.ren.setStyle(previousButton, \"display\", \"none\");\n this.ren.setStyle(nextButtonDefault, \"display\", \"none\");\n }\n }\n\n private createBubbleDivRef(): void {\n const actionContainer = this.elementRef.nativeElement.querySelector(\n \"div.mat-mdc-paginator-range-actions\"\n );\n const nextButtonDefault = this.elementRef.nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n this.bubbleContainerRef = this.ren.createElement(\"div\") as HTMLElement;\n this.ren.addClass(this.bubbleContainerRef, \"g-bubble-container\");\n\n this.ren.insertBefore(\n actionContainer,\n this.bubbleContainerRef,\n nextButtonDefault\n );\n }\n\n private buildButtons(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n\n if (neededButtons === 1) {\n this.ren.setStyle(this.elementRef.nativeElement, \"display\", \"none\");\n return;\n }\n\n this.buttonsRef = [this.createButton(0)];\n this.dotsStartRef = this.createDotsElement();\n\n for (let index = 1; index < neededButtons - 1; index++) {\n this.buttonsRef = [...this.buttonsRef, this.createButton(index)];\n }\n\n this.dotsEndRef = this.createDotsElement();\n\n this.buttonsRef = [\n ...this.buttonsRef,\n this.createButton(neededButtons - 1),\n ];\n }\n\n private removeButtons(): void {\n this.bubbleContainerRef.innerHTML = '';\n this.buttonsRef.forEach((button) => {\n this.ren.removeChild(this.bubbleContainerRef, button);\n });\n this.buttonsRef = [];\n this.buttonsRef.length = 0;\n }\n\n private createButton(i: number): HTMLElement {\n const bubbleButton = this.ren.createElement(\"div\");\n const text = this.ren.createText(String(i + 1));\n\n this.ren.addClass(bubbleButton, \"g-bubble\");\n this.ren.setStyle(bubbleButton, \"margin-right\", \"8px\");\n this.ren.appendChild(bubbleButton, text);\n\n this.ren.listen(bubbleButton, \"click\", () => {\n this.switchPage(i);\n });\n\n this.ren.appendChild(this.bubbleContainerRef, bubbleButton);\n this.ren.setStyle(bubbleButton, \"display\", \"none\");\n\n return bubbleButton;\n }\n\n private createDotsElement(): HTMLElement {\n const dotsEl = this.ren.createElement(\"span\");\n const dotsText = this.ren.createText(\".....\");\n\n this.ren.setStyle(dotsEl, \"font-size\", \"18px\");\n this.ren.setStyle(dotsEl, \"margin-right\", \"8px\");\n this.ren.setStyle(dotsEl, \"padding-top\", \"6px\");\n this.ren.setStyle(dotsEl, \"color\", \"#919191\");\n\n this.ren.appendChild(dotsEl, dotsText);\n this.ren.appendChild(this.bubbleContainerRef, dotsEl);\n this.ren.setStyle(dotsEl, \"display\", \"none\");\n\n return dotsEl;\n }\n\n private switchPage(i: number): void {\n const previousPageIndex = this.matPag.pageIndex;\n this.matPag.pageIndex = i;\n try {\n this.matPag[\"_emitPageEvent\"](previousPageIndex);\n } catch {}\n\n this.pageIndexChangeEmitter.emit(i);\n }\n\n private updateButtonsOnPageEvent(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n if (neededButtons === this.buttonsRef.length) {\n return;\n }\n\n this.removeButtons();\n this.buildButtons();\n }\n}\n","/*\n * Public API Surface of mapa-library-ui\n */\n\nexport * from './lib/core/elements/element-base';\nexport * from './lib/core/elements/dropdown';\nexport * from './lib/core/elements/input-text';\n\nexport * from './lib/core/interfaces/option.interface';\n\nexport * from './lib/core/directives/mat-input-autosize.directive';\nexport * from './lib/core/directives/custom-paginator.directive';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;MAEa,WAAW,CAAA;AAkBtB,IAAA,WAAA,CACE,UAiBI,EAAE,EAAA;QAEN,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;AACnC,QAAA,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,KAAK,SAAS,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;QAC7D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAC;QAC1C,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC;QAC5D,IAA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AAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,EAAA,OAAA,EAAA,EAAA,sBAAA,EAAA,wBAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;sJAEW,sBAAsB,EAAA,CAAA;sBAA/B,MAAM;gBACE,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,mBAAmB,EAAA,CAAA;sBAA3B,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,iBAAiB,EAAA,CAAA;sBAAzB,KAAK;;;ACxBR;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { MatPaginator } from "@angular/material/paginator";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BubblePaginationDirective implements AfterViewInit, OnChanges {
|
|
5
|
+
private readonly matPag;
|
|
6
|
+
private elementRef;
|
|
7
|
+
private ren;
|
|
8
|
+
pageIndexChangeEmitter: EventEmitter<number>;
|
|
9
|
+
showFirstButton: boolean;
|
|
10
|
+
showLastButton: boolean;
|
|
11
|
+
renderButtonsNumber: number;
|
|
12
|
+
appCustomLength: number;
|
|
13
|
+
hideDefaultArrows: boolean;
|
|
14
|
+
private dotsEndRef;
|
|
15
|
+
private dotsStartRef;
|
|
16
|
+
private bubbleContainerRef;
|
|
17
|
+
private buttonsRef;
|
|
18
|
+
constructor(matPag: MatPaginator, elementRef: ElementRef, ren: Renderer2);
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
private renderButtons;
|
|
22
|
+
private changeActiveButtonStyles;
|
|
23
|
+
private styleDefaultPagination;
|
|
24
|
+
private createBubbleDivRef;
|
|
25
|
+
private buildButtons;
|
|
26
|
+
private removeButtons;
|
|
27
|
+
private createButton;
|
|
28
|
+
private createDotsElement;
|
|
29
|
+
private switchPage;
|
|
30
|
+
private updateButtonsOnPageEvent;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BubblePaginationDirective, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BubblePaginationDirective, "[appBubblePagination]", never, { "showFirstButton": { "alias": "showFirstButton"; "required": false; }; "showLastButton": { "alias": "showLastButton"; "required": false; }; "renderButtonsNumber": { "alias": "renderButtonsNumber"; "required": false; }; "appCustomLength": { "alias": "appCustomLength"; "required": false; }; "hideDefaultArrows": { "alias": "hideDefaultArrows"; "required": false; }; }, { "pageIndexChangeEmitter": "pageIndexChangeEmitter"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { NgModel } from '@angular/forms';
|
|
3
|
+
import { MatInput } from '@angular/material/input';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MatInputAutosizeDirective implements AfterViewInit, OnDestroy {
|
|
7
|
+
private childMatInput;
|
|
8
|
+
private childNgModel;
|
|
9
|
+
inputElement: HTMLInputElement;
|
|
10
|
+
hiddenText: Text;
|
|
11
|
+
changeDetectSub: Subscription;
|
|
12
|
+
matInputAutosizeMaxWidth: any;
|
|
13
|
+
matInputAutosizeMinWidth: string;
|
|
14
|
+
matInputAutosizeFontStyle: any;
|
|
15
|
+
constructor(el: ElementRef<HTMLInputElement>, childMatInput: MatInput, childNgModel: NgModel);
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
checkErrors(): void;
|
|
19
|
+
overwriteParentWidth(): void;
|
|
20
|
+
createHiddenTextContainer(): void;
|
|
21
|
+
setOwnStyles(): void;
|
|
22
|
+
subscribeToChanges(): void;
|
|
23
|
+
changeHiddenText: (newValue: string) => void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatInputAutosizeDirective, [null, { self: true; }, { optional: true; self: true; }]>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatInputAutosizeDirective, "[matInputAutosize]", never, { "matInputAutosizeMaxWidth": { "alias": "matInputAutosizeMaxWidth"; "required": false; }; "matInputAutosizeMinWidth": { "alias": "matInputAutosizeMinWidth"; "required": false; }; "matInputAutosizeFontStyle": { "alias": "matInputAutosizeFontStyle"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementOption } from '../interfaces/option.interface';
|
|
2
|
+
export declare class ElementBase {
|
|
3
|
+
value: string;
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
required: boolean;
|
|
7
|
+
order: number;
|
|
8
|
+
controlType: string;
|
|
9
|
+
type: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
hint?: string;
|
|
12
|
+
prefix?: string;
|
|
13
|
+
suffix?: string;
|
|
14
|
+
autosize?: boolean;
|
|
15
|
+
autosizeMinWidth?: string;
|
|
16
|
+
autosizeMaxWidth?: string;
|
|
17
|
+
options: ElementOption[];
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
constructor(options?: {
|
|
20
|
+
value?: string;
|
|
21
|
+
key?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
order?: number;
|
|
25
|
+
controlType?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
hint?: string;
|
|
29
|
+
prefix?: string;
|
|
30
|
+
suffix?: string;
|
|
31
|
+
autosize?: boolean;
|
|
32
|
+
autosizeMinWidth?: string;
|
|
33
|
+
autosizeMaxWidth?: string;
|
|
34
|
+
options?: ElementOption[];
|
|
35
|
+
multiple?: boolean;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mapa-library-ui",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^16.2.0",
|
|
6
|
+
"@angular/core": "^16.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/mapa-library-ui.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/mapa-library-ui.mjs",
|
|
21
|
+
"esm": "./esm2022/mapa-library-ui.mjs",
|
|
22
|
+
"default": "./fesm2022/mapa-library-ui.mjs"
|
|
23
|
+
},
|
|
24
|
+
"./src/lib/components/button": {
|
|
25
|
+
"types": "./src/lib/components/button/index.d.ts",
|
|
26
|
+
"esm2022": "./esm2022/src/lib/components/button/mapa-library-ui-src-lib-components-button.mjs",
|
|
27
|
+
"esm": "./esm2022/src/lib/components/button/mapa-library-ui-src-lib-components-button.mjs",
|
|
28
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-button.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./src/lib/components/button-icon": {
|
|
31
|
+
"types": "./src/lib/components/button-icon/index.d.ts",
|
|
32
|
+
"esm2022": "./esm2022/src/lib/components/button-icon/mapa-library-ui-src-lib-components-button-icon.mjs",
|
|
33
|
+
"esm": "./esm2022/src/lib/components/button-icon/mapa-library-ui-src-lib-components-button-icon.mjs",
|
|
34
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-button-icon.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./src/lib/components/checkbox": {
|
|
37
|
+
"types": "./src/lib/components/checkbox/index.d.ts",
|
|
38
|
+
"esm2022": "./esm2022/src/lib/components/checkbox/mapa-library-ui-src-lib-components-checkbox.mjs",
|
|
39
|
+
"esm": "./esm2022/src/lib/components/checkbox/mapa-library-ui-src-lib-components-checkbox.mjs",
|
|
40
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-checkbox.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./src/lib/components/dialog": {
|
|
43
|
+
"types": "./src/lib/components/dialog/index.d.ts",
|
|
44
|
+
"esm2022": "./esm2022/src/lib/components/dialog/mapa-library-ui-src-lib-components-dialog.mjs",
|
|
45
|
+
"esm": "./esm2022/src/lib/components/dialog/mapa-library-ui-src-lib-components-dialog.mjs",
|
|
46
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-dialog.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./src/lib/components/dropdown": {
|
|
49
|
+
"types": "./src/lib/components/dropdown/index.d.ts",
|
|
50
|
+
"esm2022": "./esm2022/src/lib/components/dropdown/mapa-library-ui-src-lib-components-dropdown.mjs",
|
|
51
|
+
"esm": "./esm2022/src/lib/components/dropdown/mapa-library-ui-src-lib-components-dropdown.mjs",
|
|
52
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./src/lib/components/empty": {
|
|
55
|
+
"types": "./src/lib/components/empty/index.d.ts",
|
|
56
|
+
"esm2022": "./esm2022/src/lib/components/empty/mapa-library-ui-src-lib-components-empty.mjs",
|
|
57
|
+
"esm": "./esm2022/src/lib/components/empty/mapa-library-ui-src-lib-components-empty.mjs",
|
|
58
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-empty.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./src/lib/components/filters": {
|
|
61
|
+
"types": "./src/lib/components/filters/index.d.ts",
|
|
62
|
+
"esm2022": "./esm2022/src/lib/components/filters/mapa-library-ui-src-lib-components-filters.mjs",
|
|
63
|
+
"esm": "./esm2022/src/lib/components/filters/mapa-library-ui-src-lib-components-filters.mjs",
|
|
64
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-filters.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./src/lib/components/icon": {
|
|
67
|
+
"types": "./src/lib/components/icon/index.d.ts",
|
|
68
|
+
"esm2022": "./esm2022/src/lib/components/icon/mapa-library-ui-src-lib-components-icon.mjs",
|
|
69
|
+
"esm": "./esm2022/src/lib/components/icon/mapa-library-ui-src-lib-components-icon.mjs",
|
|
70
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-icon.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./src/lib/components/input": {
|
|
73
|
+
"types": "./src/lib/components/input/index.d.ts",
|
|
74
|
+
"esm2022": "./esm2022/src/lib/components/input/mapa-library-ui-src-lib-components-input.mjs",
|
|
75
|
+
"esm": "./esm2022/src/lib/components/input/mapa-library-ui-src-lib-components-input.mjs",
|
|
76
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-input.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./src/lib/components/nav-list": {
|
|
79
|
+
"types": "./src/lib/components/nav-list/index.d.ts",
|
|
80
|
+
"esm2022": "./esm2022/src/lib/components/nav-list/mapa-library-ui-src-lib-components-nav-list.mjs",
|
|
81
|
+
"esm": "./esm2022/src/lib/components/nav-list/mapa-library-ui-src-lib-components-nav-list.mjs",
|
|
82
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-nav-list.mjs"
|
|
83
|
+
},
|
|
84
|
+
"./src/lib/components/radio-button": {
|
|
85
|
+
"types": "./src/lib/components/radio-button/index.d.ts",
|
|
86
|
+
"esm2022": "./esm2022/src/lib/components/radio-button/mapa-library-ui-src-lib-components-radio-button.mjs",
|
|
87
|
+
"esm": "./esm2022/src/lib/components/radio-button/mapa-library-ui-src-lib-components-radio-button.mjs",
|
|
88
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs"
|
|
89
|
+
},
|
|
90
|
+
"./src/lib/components/report-item": {
|
|
91
|
+
"types": "./src/lib/components/report-item/index.d.ts",
|
|
92
|
+
"esm2022": "./esm2022/src/lib/components/report-item/mapa-library-ui-src-lib-components-report-item.mjs",
|
|
93
|
+
"esm": "./esm2022/src/lib/components/report-item/mapa-library-ui-src-lib-components-report-item.mjs",
|
|
94
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-report-item.mjs"
|
|
95
|
+
},
|
|
96
|
+
"./src/lib/components/table": {
|
|
97
|
+
"types": "./src/lib/components/table/index.d.ts",
|
|
98
|
+
"esm2022": "./esm2022/src/lib/components/table/mapa-library-ui-src-lib-components-table.mjs",
|
|
99
|
+
"esm": "./esm2022/src/lib/components/table/mapa-library-ui-src-lib-components-table.mjs",
|
|
100
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-table.mjs"
|
|
101
|
+
},
|
|
102
|
+
"./src/lib/components/tag": {
|
|
103
|
+
"types": "./src/lib/components/tag/index.d.ts",
|
|
104
|
+
"esm2022": "./esm2022/src/lib/components/tag/mapa-library-ui-src-lib-components-tag.mjs",
|
|
105
|
+
"esm": "./esm2022/src/lib/components/tag/mapa-library-ui-src-lib-components-tag.mjs",
|
|
106
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-tag.mjs"
|
|
107
|
+
},
|
|
108
|
+
"./src/lib/components/warning": {
|
|
109
|
+
"types": "./src/lib/components/warning/index.d.ts",
|
|
110
|
+
"esm2022": "./esm2022/src/lib/components/warning/mapa-library-ui-src-lib-components-warning.mjs",
|
|
111
|
+
"esm": "./esm2022/src/lib/components/warning/mapa-library-ui-src-lib-components-warning.mjs",
|
|
112
|
+
"default": "./fesm2022/mapa-library-ui-src-lib-components-warning.mjs"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './lib/core/elements/element-base';
|
|
2
|
+
export * from './lib/core/elements/dropdown';
|
|
3
|
+
export * from './lib/core/elements/input-text';
|
|
4
|
+
export * from './lib/core/interfaces/option.interface';
|
|
5
|
+
export * from './lib/core/directives/mat-input-autosize.directive';
|
|
6
|
+
export * from './lib/core/directives/custom-paginator.directive';
|