@elite.framework/ng.ui.core 1.0.80 → 1.0.82
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/base-crud/index.d.ts +1 -0
- package/fesm2022/elite.framework-ng.ui.core-base-crud.mjs +16 -2
- package/fesm2022/elite.framework-ng.ui.core-base-crud.mjs.map +1 -1
- package/fesm2022/elite.framework-ng.ui.core-generic-crud-table.mjs +29 -18
- package/fesm2022/elite.framework-ng.ui.core-generic-crud-table.mjs.map +1 -1
- package/fesm2022/elite.framework-ng.ui.core-generic-report.mjs +354 -286
- package/fesm2022/elite.framework-ng.ui.core-generic-report.mjs.map +1 -1
- package/fesm2022/elite.framework-ng.ui.core-generic-search-advanced.mjs +1307 -123
- package/fesm2022/elite.framework-ng.ui.core-generic-search-advanced.mjs.map +1 -1
- package/fesm2022/elite.framework-ng.ui.core-generic-table.mjs +18 -2
- package/fesm2022/elite.framework-ng.ui.core-generic-table.mjs.map +1 -1
- package/fesm2022/elite.framework-ng.ui.core-text-editor.mjs +16 -14
- package/fesm2022/elite.framework-ng.ui.core-text-editor.mjs.map +1 -1
- package/generic-crud-table/index.d.ts +1 -0
- package/generic-report/index.d.ts +50 -26
- package/generic-search-advanced/index.d.ts +127 -25
- package/generic-table/index.d.ts +4 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elite.framework-ng.ui.core-text-editor.mjs","sources":["../tmp-esm2022/text-editor/lib/text-editor-module.js","../tmp-esm2022/text-editor/lib/formly-rich-text-editor-type.js","../tmp-esm2022/text-editor/elite.framework-ng.ui.core-text-editor.js"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from \"@angular/core\";\nexport class TextEditorModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, imports: [CommonModule] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1lZGl0b3ItbW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9uZy51aS5jb3JlL3RleHQtZWRpdG9yL3NyYy9saWIvdGV4dC1lZGl0b3ItbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQUsvQyxNQUFNLE9BQU8sZ0JBQWdCO3VHQUFoQixnQkFBZ0I7d0dBQWhCLGdCQUFnQixZQUZqQixZQUFZO3dHQUVYLGdCQUFnQixZQUZqQixZQUFZOzsyRkFFWCxnQkFBZ0I7a0JBSDVCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgVGV4dEVkaXRvck1vZHVsZSB7fVxuIl19","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\nimport { EditorModule } from 'primeng/editor';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { AutofocusDirective } from '@elite.framework/ng.core/directives';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/forms\";\nimport * as i2 from \"primeng/editor\";\nexport class RichTextEditorTypeComponent extends FieldType {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: RichTextEditorTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.1.8\", type: RichTextEditorTypeComponent, isStandalone: true, selector: \"formly-rich-text-editor-type\", usesInheritance: true, ngImport: i0, template: `\n <p-editor\n [(ngModel)]=\"formControl.value\"\n [appAutofocus]=\"to['autofocus'] || false\"\n [style]=\"{height: to['height'] || '200px'}\"\n [placeholder]=\"to.placeholder\"\n ></p-editor>\n `, isInline: true, dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"ngmodule\", type: FormsModule }, { kind: \"directive\", type: i1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"ngmodule\", type: EditorModule }, { kind: \"component\", type: i2.Editor, selector: \"p-editor\", inputs: [\"style\", \"styleClass\", \"placeholder\", \"formats\", \"modules\", \"bounds\", \"scrollingContainer\", \"debug\", \"readonly\"], outputs: [\"onInit\", \"onTextChange\", \"onSelectionChange\"] }, { kind: \"directive\", type: AutofocusDirective, selector: \"[appAutofocus]\", inputs: [\"appAutofocus\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: RichTextEditorTypeComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'formly-rich-text-editor-type',\n standalone: true,\n imports: [CommonModule, FormsModule, EditorModule, AutofocusDirective],\n template: `\n <p-editor\n [(ngModel)]=\"formControl.value\"\n [appAutofocus]=\"to['autofocus'] || false\"\n [style]=\"{height: to['height'] || '200px'}\"\n [placeholder]=\"to.placeholder\"\n ></p-editor>\n `,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWx5LXJpY2gtdGV4dC1lZGl0b3ItdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbmcudWkuY29yZS90ZXh0LWVkaXRvci9zcmMvbGliL2Zvcm1seS1yaWNoLXRleHQtZWRpdG9yLXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzlDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUNBQXFDLENBQUM7Ozs7QUFlekUsTUFBTSxPQUFPLDJCQUE0QixTQUFRLFNBQVM7dUdBQTdDLDJCQUEyQjsyRkFBM0IsMkJBQTJCLCtHQVQ1Qjs7Ozs7OztHQU9ULDJEQVJTLFlBQVksOEJBQUUsV0FBVyw4V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10gfHwgZmFsc2VcIlxuICAgICAgW3N0eWxlXT1cIntoZWlnaHQ6IHRvWydoZWlnaHQnXSB8fCAnMjAwcHgnfVwiXG4gICAgICBbcGxhY2Vob2xkZXJdPVwidG8ucGxhY2Vob2xkZXJcIlxuICAgID48L3AtZWRpdG9yPlxuICBgLFxufSlcbmV4cG9ydCBjbGFzcyBSaWNoVGV4dEVkaXRvclR5cGVDb21wb25lbnQgZXh0ZW5kcyBGaWVsZFR5cGUge31cbiJdfQ==","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxpdGUuZnJhbWV3b3JrLW5nLnVpLmNvcmUtdGV4dC1lZGl0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL25nLnVpLmNvcmUvdGV4dC1lZGl0b3Ivc3JjL2VsaXRlLmZyYW1ld29yay1uZy51aS5jb3JlLXRleHQtZWRpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19"],"names":[],"mappings":";;;;;;;;;;AAGO,MAAM,gBAAgB,CAAC;AAC9B,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;AACzK,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC,mBA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IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,QAAQ,EAAE,8BAA8B;AAC5D,oBAAoB,UAAU,EAAE,IAAI;AACpC,oBAAoB,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,CAAC;AAC1F,oBAAoB,QAAQ,EAAE;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;ACnCb;AACA;AACA;;;;"}
|
|
1
|
+
{"version":3,"file":"elite.framework-ng.ui.core-text-editor.mjs","sources":["../tmp-esm2022/text-editor/lib/text-editor-module.js","../tmp-esm2022/text-editor/lib/formly-rich-text-editor-type.js","../tmp-esm2022/text-editor/elite.framework-ng.ui.core-text-editor.js"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from \"@angular/core\";\nexport class TextEditorModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, imports: [CommonModule] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: TextEditorModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1lZGl0b3ItbW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9uZy51aS5jb3JlL3RleHQtZWRpdG9yL3NyYy9saWIvdGV4dC1lZGl0b3ItbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQUsvQyxNQUFNLE9BQU8sZ0JBQWdCO3VHQUFoQixnQkFBZ0I7d0dBQWhCLGdCQUFnQixZQUZqQixZQUFZO3dHQUVYLGdCQUFnQixZQUZqQixZQUFZOzsyRkFFWCxnQkFBZ0I7a0JBSDVCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgVGV4dEVkaXRvck1vZHVsZSB7fVxuIl19","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\nimport { EditorModule } from 'primeng/editor';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { AutofocusDirective } from '@elite.framework/ng.core/directives';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/forms\";\nimport * as i2 from \"primeng/editor\";\nexport class RichTextEditorTypeComponent extends FieldType {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: RichTextEditorTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.1.8\", type: RichTextEditorTypeComponent, isStandalone: true, selector: \"formly-rich-text-editor-type\", usesInheritance: true, ngImport: i0, template: `\r\n <p-editor\r\n [(ngModel)]=\"formControl.value\"\r\n (ngModelChange)=\"formControl.setValue($event)\"\r\n [appAutofocus]=\"to['autofocus'] || false\"\r\n [style]=\"{height: to['height'] || '200px'}\"\r\n [placeholder]=\"to.placeholder\"\r\n ></p-editor>\r\n `, isInline: true, dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"ngmodule\", type: FormsModule }, { kind: \"directive\", type: i1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"ngmodule\", type: EditorModule }, { kind: \"component\", type: i2.Editor, selector: \"p-editor\", inputs: [\"style\", \"styleClass\", \"placeholder\", \"formats\", \"modules\", \"bounds\", \"scrollingContainer\", \"debug\", \"readonly\"], outputs: [\"onInit\", \"onTextChange\", \"onSelectionChange\"] }, { kind: \"directive\", type: AutofocusDirective, selector: \"[appAutofocus]\", inputs: [\"appAutofocus\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: RichTextEditorTypeComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'formly-rich-text-editor-type',\n standalone: true,\n imports: [CommonModule, FormsModule, EditorModule, AutofocusDirective],\n template: `\r\n <p-editor\r\n [(ngModel)]=\"formControl.value\"\r\n (ngModelChange)=\"formControl.setValue($event)\"\r\n [appAutofocus]=\"to['autofocus'] || false\"\r\n [style]=\"{height: to['height'] || '200px'}\"\r\n [placeholder]=\"to.placeholder\"\r\n ></p-editor>\r\n `,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybW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UNvbXBvbmVudCBleHRlbmRzIEZpZWxkVHlwZSB7fVxyXG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxpdGUuZnJhbWV3b3JrLW5nLnVpLmNvcmUtdGV4dC1lZGl0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL25nLnVpLmNvcmUvdGV4dC1lZGl0b3Ivc3JjL2VsaXRlLmZyYW1ld29yay1uZy51aS5jb3JlLXRleHQtZWRpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19"],"names":[],"mappings":";;;;;;;;;;AAGO,MAAM,gBAAgB,CAAC;AAC9B,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;AACzK,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AACpJ,IAAI,OAAO,IAAI,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAA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AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;ACrCb;AACA;AACA;;;;"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { FormGroup } from '@angular/forms';
|
|
5
5
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
6
6
|
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
7
|
+
import { MenuItem } from 'primeng/api';
|
|
8
|
+
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
9
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
10
|
|
|
8
11
|
declare class GenericReportModule {
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericReportModule, never>;
|
|
@@ -12,9 +15,6 @@ declare class GenericReportModule {
|
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
interface ExportConfig {
|
|
15
|
-
columns: {
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
};
|
|
18
18
|
filters: any;
|
|
19
19
|
exportType: ExportType;
|
|
20
20
|
fileName?: string;
|
|
@@ -26,25 +26,21 @@ declare enum ExportType {
|
|
|
26
26
|
EXCEL = 3,
|
|
27
27
|
PRINT = 4
|
|
28
28
|
}
|
|
29
|
-
declare class GenericReportComponent implements OnInit {
|
|
29
|
+
declare class GenericReportComponent implements OnInit, OnDestroy {
|
|
30
30
|
ref: DynamicDialogRef;
|
|
31
31
|
config: DynamicDialogConfig;
|
|
32
32
|
previewContainer: ElementRef;
|
|
33
33
|
filterFields: FormlyFieldConfig[];
|
|
34
34
|
fields_: FormlyFieldConfig[];
|
|
35
|
-
availableColumns: Array<{
|
|
36
|
-
key: string;
|
|
37
|
-
displayName: string;
|
|
38
|
-
selected: boolean;
|
|
39
|
-
customName?: string;
|
|
40
|
-
}>;
|
|
41
35
|
exportType: ExportType;
|
|
42
36
|
fileName: string;
|
|
43
37
|
showFilters: boolean;
|
|
44
38
|
loading: boolean;
|
|
45
|
-
activeTabIndex: number;
|
|
46
39
|
currentDate: Date;
|
|
47
40
|
previewData: any[];
|
|
41
|
+
htmlExportContent: string;
|
|
42
|
+
showHtmlInIframe: boolean;
|
|
43
|
+
previewColumns: any[];
|
|
48
44
|
options: FormlyFormOptions;
|
|
49
45
|
enableQueryBuilder: boolean;
|
|
50
46
|
localExport: boolean;
|
|
@@ -58,39 +54,67 @@ declare class GenericReportComponent implements OnInit {
|
|
|
58
54
|
label: string;
|
|
59
55
|
icon: string;
|
|
60
56
|
}[];
|
|
57
|
+
exportMenuItems: MenuItem[];
|
|
61
58
|
private destroy$;
|
|
59
|
+
private dialogService;
|
|
62
60
|
private translate;
|
|
63
61
|
private restService;
|
|
64
62
|
private queryBuilder;
|
|
63
|
+
private sanitizer;
|
|
65
64
|
constructor(ref: DynamicDialogRef, config: DynamicDialogConfig);
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
66
|
ngOnInit(): void;
|
|
67
|
-
get filterCount():
|
|
67
|
+
get filterCount(): number;
|
|
68
68
|
private buildQueryUIFields;
|
|
69
69
|
private initializeComponent;
|
|
70
|
+
private initializeFilterFields;
|
|
71
|
+
private initializeExportConfig;
|
|
72
|
+
private initializeExportMenu;
|
|
73
|
+
private openReportNameDialog;
|
|
70
74
|
private getDefaultFilterFields;
|
|
71
|
-
get selectedColumns(): any[];
|
|
72
|
-
onExportTypeChange(type: ExportType): void;
|
|
73
|
-
onColumnToggle(column: any): void;
|
|
74
|
-
onCustomNameChange(column: any): void;
|
|
75
|
-
selectAllColumns(): void;
|
|
76
|
-
deselectAllColumns(): void;
|
|
77
75
|
generatePreview(): void;
|
|
78
|
-
getPreviewValue(row: any, columnKey: string): string;
|
|
79
|
-
getExportButtonText(): string;
|
|
80
76
|
onSubmit(): void;
|
|
81
77
|
onReset(): void;
|
|
82
78
|
onExport(): void;
|
|
83
|
-
private
|
|
79
|
+
private createExportConfig;
|
|
84
80
|
private handleApiExport;
|
|
85
|
-
|
|
86
|
-
private
|
|
81
|
+
private createRequestOptions;
|
|
82
|
+
private handleExportResponse;
|
|
83
|
+
private isMobileDevice;
|
|
84
|
+
private isIOS;
|
|
85
|
+
private isAndroid;
|
|
86
|
+
showPdfModal: boolean;
|
|
87
|
+
currentPdfUrl?: SafeResourceUrl;
|
|
88
|
+
currentFileName: string;
|
|
89
|
+
private showPdfInMobile;
|
|
90
|
+
private sanitizeUrl;
|
|
91
|
+
onPdfDownload(): void;
|
|
92
|
+
private downloadBinaryExport;
|
|
93
|
+
private showHtmlExport;
|
|
94
|
+
private setIframeContent;
|
|
95
|
+
print(): void;
|
|
96
|
+
getExportButtonText(): string;
|
|
97
|
+
onExportTypeChange(type: ExportType): void;
|
|
98
|
+
getCurrentExportTypeIcon(): string;
|
|
87
99
|
private base64ToBlob;
|
|
88
100
|
private downloadFile;
|
|
89
101
|
private getFileExtension;
|
|
90
|
-
|
|
102
|
+
private getMimeType;
|
|
103
|
+
private cleanHtmlContent;
|
|
91
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericReportComponent, never>;
|
|
92
105
|
static ɵcmp: i0.ɵɵComponentDeclaration<GenericReportComponent, "app-generic-report", never, { "filterFields": { "alias": "filterFields"; "required": false; }; "enableQueryBuilder": { "alias": "enableQueryBuilder"; "required": false; }; "localExport": { "alias": "localExport"; "required": false; }; "queryString": { "alias": "queryString"; "required": false; }; "apiName": { "alias": "apiName"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, {}, never, never, true, never>;
|
|
93
106
|
}
|
|
94
107
|
|
|
95
|
-
|
|
108
|
+
declare class ReportNameDialogComponent {
|
|
109
|
+
fileName: string;
|
|
110
|
+
ref: DynamicDialogRef<any>;
|
|
111
|
+
config: DynamicDialogConfig<any, any>;
|
|
112
|
+
translate: TranslateService;
|
|
113
|
+
ngOnInit(): void;
|
|
114
|
+
save(): void;
|
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportNameDialogComponent, never>;
|
|
116
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReportNameDialogComponent, "app-report-name-dialog", never, {}, {}, never, never, true, never>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { ExportType, GenericReportComponent, GenericReportModule, ReportNameDialogComponent };
|
|
96
120
|
export type { ExportConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
5
5
|
import { FormlyFormOptions, FormlyFieldConfig, FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
7
|
import { QueryParameters } from '@elite.framework/ng.core/services';
|
|
@@ -24,7 +24,8 @@ declare class GenericSearchAdvanced implements OnInit {
|
|
|
24
24
|
options: FormlyFormOptions;
|
|
25
25
|
fields: FormlyFieldConfig[];
|
|
26
26
|
fields_: FormlyFieldConfig[];
|
|
27
|
-
|
|
27
|
+
enableSelect: boolean;
|
|
28
|
+
enableGroup: boolean;
|
|
28
29
|
odataConfig: any;
|
|
29
30
|
ngOnInit(): void;
|
|
30
31
|
get filterCount(): any;
|
|
@@ -34,44 +35,39 @@ declare class GenericSearchAdvanced implements OnInit {
|
|
|
34
35
|
toggleDrawer(): void;
|
|
35
36
|
closeDrawer(): void;
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericSearchAdvanced, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenericSearchAdvanced, "lib-generic-search-advanced", never, { "model": { "alias": "model"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface QueryBuilderField {
|
|
41
|
-
key: string;
|
|
42
|
-
label: string;
|
|
43
|
-
type: string;
|
|
44
|
-
operators: string[];
|
|
45
|
-
props?: any;
|
|
46
|
-
defaultOperator?: string;
|
|
47
|
-
defaultValue?: any;
|
|
48
|
-
}
|
|
49
|
-
interface SortBuilderField {
|
|
50
|
-
key: string;
|
|
51
|
-
label: string;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericSearchAdvanced, "lib-generic-search-advanced", never, { "model": { "alias": "model"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "enableSelect": { "alias": "enableSelect"; "required": false; }; "enableGroup": { "alias": "enableGroup"; "required": false; }; "odataConfig": { "alias": "odataConfig"; "required": false; }; }, { "search": "search"; "paginationChange": "paginationChange"; "odataSearch": "odataSearch"; }, never, never, true, never>;
|
|
52
39
|
}
|
|
53
40
|
|
|
54
41
|
declare class QueryBuilderService {
|
|
55
42
|
translate: TranslateService;
|
|
56
43
|
private fieldTypeConfig;
|
|
57
|
-
buildQueryUIFields(fields: FormlyFieldConfig[]): FormlyFieldConfig[];
|
|
44
|
+
buildQueryUIFields(fields: FormlyFieldConfig[], enableSelect: boolean, enableGroup: boolean): FormlyFieldConfig[];
|
|
58
45
|
private getQueryTabs;
|
|
59
46
|
private getFilterTabFields;
|
|
60
47
|
private getSortingTabFields;
|
|
48
|
+
private getGroupingTabFields;
|
|
49
|
+
private getColumnsTabFields;
|
|
61
50
|
private getPaginationTabFields;
|
|
62
|
-
private getFilterCount;
|
|
63
51
|
private extractFilterableFields;
|
|
64
52
|
private extractSortableFields;
|
|
65
|
-
private
|
|
53
|
+
private extractGroupableFields;
|
|
54
|
+
private extractSelectableFields;
|
|
66
55
|
private traverseFields;
|
|
56
|
+
getAppliedFiltersCount(model: any): {
|
|
57
|
+
total: number;
|
|
58
|
+
breakdown: any;
|
|
59
|
+
};
|
|
67
60
|
private mapFieldType;
|
|
61
|
+
private getDataType;
|
|
68
62
|
private getOperatorsForType;
|
|
69
63
|
buildODataFromQueryModel(model: any, originalFields: FormlyFieldConfig[]): QueryParameters;
|
|
70
64
|
toODataQueryString(params: QueryParameters): string;
|
|
71
65
|
parseODataQuery(queryString: string): QueryParameters;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
getFieldConfig(fieldKey: string, fields: any[]): any;
|
|
67
|
+
getAggregateFunctions(): {
|
|
68
|
+
label: string;
|
|
69
|
+
value: string;
|
|
70
|
+
}[];
|
|
75
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryBuilderService, never>;
|
|
76
72
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueryBuilderService>;
|
|
77
73
|
}
|
|
@@ -158,6 +154,112 @@ declare class TabTypeComponent extends FieldType<FormlyFieldConfig> {
|
|
|
158
154
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabTypeComponent, "formly-tab-type", never, {}, {}, never, never, true, never>;
|
|
159
155
|
}
|
|
160
156
|
|
|
157
|
+
interface QueryBuilderField {
|
|
158
|
+
key: string;
|
|
159
|
+
label: string;
|
|
160
|
+
type: string;
|
|
161
|
+
props: any;
|
|
162
|
+
operators: string[];
|
|
163
|
+
defaultOperator: string;
|
|
164
|
+
defaultValue: any;
|
|
165
|
+
}
|
|
166
|
+
interface SortBuilderField {
|
|
167
|
+
key: string;
|
|
168
|
+
label: string;
|
|
169
|
+
}
|
|
170
|
+
interface GroupByField {
|
|
171
|
+
key: string;
|
|
172
|
+
label: string;
|
|
173
|
+
dataType: string;
|
|
174
|
+
}
|
|
175
|
+
interface SelectField {
|
|
176
|
+
key: string;
|
|
177
|
+
label: string;
|
|
178
|
+
dataType: string;
|
|
179
|
+
isNumeric: boolean;
|
|
180
|
+
defaultVisible: boolean;
|
|
181
|
+
aggregatable: boolean;
|
|
182
|
+
}
|
|
183
|
+
interface ColumnConfig {
|
|
184
|
+
field: string;
|
|
185
|
+
displayName: string;
|
|
186
|
+
isVisible: boolean;
|
|
187
|
+
aggregateFunction?: string;
|
|
188
|
+
isNumeric: boolean;
|
|
189
|
+
aggregatable: boolean;
|
|
190
|
+
}
|
|
191
|
+
interface GroupConfig {
|
|
192
|
+
field: string;
|
|
193
|
+
displayName: string;
|
|
194
|
+
showTotal: boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare class ColumnsBuilderComponent extends FieldType<FieldTypeConfig> implements OnInit {
|
|
198
|
+
dragStartIndex: number;
|
|
199
|
+
private _columnsForm;
|
|
200
|
+
aggregateFunctions: {
|
|
201
|
+
label: string;
|
|
202
|
+
value: string;
|
|
203
|
+
}[];
|
|
204
|
+
get columns(): SelectField[];
|
|
205
|
+
get columnsForm(): FormGroup;
|
|
206
|
+
get visibleColumnsCount(): number;
|
|
207
|
+
get numericColumnsCount(): number;
|
|
208
|
+
get aggregatedColumnsCount(): number;
|
|
209
|
+
ngOnInit(): void;
|
|
210
|
+
initializeForm(): void;
|
|
211
|
+
private setupValueChanges;
|
|
212
|
+
private updateModel;
|
|
213
|
+
onFormChange(): void;
|
|
214
|
+
onDragStart(event: DragEvent, index: number): void;
|
|
215
|
+
onDragOver(event: DragEvent): void;
|
|
216
|
+
onDrop(event: DragEvent, dropIndex: number): void;
|
|
217
|
+
onDragEnter(event: DragEvent): void;
|
|
218
|
+
onDragLeave(event: DragEvent): void;
|
|
219
|
+
private removeDragStyles;
|
|
220
|
+
private updateColumnOrders;
|
|
221
|
+
getColumnControl(columnKey: string, controlName: string): FormControl;
|
|
222
|
+
private getDefaultValue;
|
|
223
|
+
isColumnVisible(columnKey: string): boolean;
|
|
224
|
+
hasAggregateFunction(columnKey: string): boolean;
|
|
225
|
+
getAggregateFunctionValue(columnKey: string): string;
|
|
226
|
+
toggleAll(visible: boolean): void;
|
|
227
|
+
resetToDefault(): void;
|
|
228
|
+
getAggregateLabel(functionName: string): string;
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsBuilderComponent, never>;
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnsBuilderComponent, "formly-columns-builder", never, {}, {}, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare class GroupBuilderComponent extends FieldType<FieldTypeConfig> implements OnInit {
|
|
234
|
+
private _groups;
|
|
235
|
+
dragStartIndex: number;
|
|
236
|
+
get groups(): FormArray;
|
|
237
|
+
get availableFields(): GroupByField[];
|
|
238
|
+
get maxGroups(): number;
|
|
239
|
+
ngOnInit(): void;
|
|
240
|
+
private initializeFormArray;
|
|
241
|
+
private setupValueChanges;
|
|
242
|
+
private updateModel;
|
|
243
|
+
onFormChange(): void;
|
|
244
|
+
private createGroupControl;
|
|
245
|
+
addGroup(): void;
|
|
246
|
+
removeGroup(index: number): void;
|
|
247
|
+
onDragStart(event: DragEvent, index: number): void;
|
|
248
|
+
onDragOver(event: DragEvent): void;
|
|
249
|
+
onDrop(event: DragEvent, dropIndex: number): void;
|
|
250
|
+
onDragEnter(event: DragEvent): void;
|
|
251
|
+
onDragLeave(event: DragEvent): void;
|
|
252
|
+
onDragEnd(event: DragEvent): void;
|
|
253
|
+
private removeDragStyles;
|
|
254
|
+
moveGroup(fromIndex: number, toIndex: number): void;
|
|
255
|
+
getGroupControl(index: number, controlName: string): FormControl;
|
|
256
|
+
onFieldChange(index: number, fieldKey: string): void;
|
|
257
|
+
getFieldLabel(fieldKey: string): string;
|
|
258
|
+
canAddMoreGroups(): boolean;
|
|
259
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupBuilderComponent, never>;
|
|
260
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupBuilderComponent, "formly-group-builder", never, {}, {}, never, never, true, never>;
|
|
261
|
+
}
|
|
262
|
+
|
|
161
263
|
interface GroupTypeProps {
|
|
162
264
|
label?: string;
|
|
163
265
|
description?: string;
|
|
@@ -193,5 +295,5 @@ declare class GroupTypeComponent extends FieldType<FormlyFieldConfig<GroupTypePr
|
|
|
193
295
|
|
|
194
296
|
declare const formlyConfig: i0.Provider;
|
|
195
297
|
|
|
196
|
-
export { GenericSearchAdvanced, GenericSearchAdvancedModule, GroupTypeComponent, QueryBuilderComponent, QueryBuilderService, SortBuilderComponent, TabTypeComponent, formlyConfig };
|
|
197
|
-
export type { GroupTypeProps, QueryBuilderField, SortBuilderField };
|
|
298
|
+
export { ColumnsBuilderComponent, GenericSearchAdvanced, GenericSearchAdvancedModule, GroupBuilderComponent, GroupTypeComponent, QueryBuilderComponent, QueryBuilderService, SortBuilderComponent, TabTypeComponent, formlyConfig };
|
|
299
|
+
export type { ColumnConfig, GroupByField, GroupConfig, GroupTypeProps, QueryBuilderField, SelectField, SortBuilderField };
|
package/generic-table/index.d.ts
CHANGED
|
@@ -46,6 +46,9 @@ declare class GenericTable<T> implements OnChanges {
|
|
|
46
46
|
rowSelectable: boolean;
|
|
47
47
|
/** يحتفظ بالصف المحدد */
|
|
48
48
|
_selection: T | T[] | null;
|
|
49
|
+
rowStyleFn?: (row: T) => any;
|
|
50
|
+
rowClassFn?: (row: T) => string | string[] | Set<string>;
|
|
51
|
+
disableRowCheckboxFn?: (row: T) => boolean;
|
|
49
52
|
get selection(): T | T[] | null;
|
|
50
53
|
set selection(val: T | T[] | null);
|
|
51
54
|
trackByIdx(index: number, item: any): number;
|
|
@@ -76,7 +79,7 @@ declare class GenericTable<T> implements OnChanges {
|
|
|
76
79
|
getMenuItems(row: T): MenuItem[];
|
|
77
80
|
onRowSelect(event: TableRowSelectEvent<T>): void;
|
|
78
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTable<any>, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenericTable<any>, "lib-generic-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsPosition": { "alias": "actionsPosition"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "first": { "alias": "first"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; }; "addButtonConfigs": { "alias": "addButtonConfigs"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "showRowSelectionCheckbox": { "alias": "showRowSelectionCheckbox"; "required": false; }; }, { "action": "action"; "pageChange": "pageChange"; "onAddNew": "onAddNew"; "rowSelect": "rowSelect"; "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericTable<any>, "lib-generic-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsPosition": { "alias": "actionsPosition"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "first": { "alias": "first"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; }; "addButtonConfigs": { "alias": "addButtonConfigs"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "rowStyleFn": { "alias": "rowStyleFn"; "required": false; }; "rowClassFn": { "alias": "rowClassFn"; "required": false; }; "disableRowCheckboxFn": { "alias": "disableRowCheckboxFn"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "showRowSelectionCheckbox": { "alias": "showRowSelectionCheckbox"; "required": false; }; }, { "action": "action"; "pageChange": "pageChange"; "onAddNew": "onAddNew"; "rowSelect": "rowSelect"; "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
export { GenericTable, GenericTableModule };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elite.framework/ng.ui.core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.82",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.1.0",
|
|
6
6
|
"@angular/core": "^20.1.0"
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"types": "./condition-editor/index.d.ts",
|
|
49
49
|
"default": "./fesm2022/elite.framework-ng.ui.core-condition-editor.mjs"
|
|
50
50
|
},
|
|
51
|
-
"./datepicker": {
|
|
52
|
-
"types": "./datepicker/index.d.ts",
|
|
53
|
-
"default": "./fesm2022/elite.framework-ng.ui.core-datepicker.mjs"
|
|
54
|
-
},
|
|
55
51
|
"./custom-switch": {
|
|
56
52
|
"types": "./custom-switch/index.d.ts",
|
|
57
53
|
"default": "./fesm2022/elite.framework-ng.ui.core-custom-switch.mjs"
|
|
58
54
|
},
|
|
55
|
+
"./datepicker": {
|
|
56
|
+
"types": "./datepicker/index.d.ts",
|
|
57
|
+
"default": "./fesm2022/elite.framework-ng.ui.core-datepicker.mjs"
|
|
58
|
+
},
|
|
59
59
|
"./deactivation-reason": {
|
|
60
60
|
"types": "./deactivation-reason/index.d.ts",
|
|
61
61
|
"default": "./fesm2022/elite.framework-ng.ui.core-deactivation-reason.mjs"
|