coer-elements 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/components/coer-grid/index.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/lib/coer-button/coer-button.component.d.ts +3 -3
- package/components/lib/coer-grid/coer-grid.templates.d.ts +9 -0
- package/esm2022/components/coer-grid/index.mjs +2 -0
- package/esm2022/components/index.mjs +2 -1
- package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +30 -0
- package/esm2022/interfaces/coer-filebox/index.mjs +1 -1
- package/esm2022/interfaces/lib/coer-menu/menu-option-selected.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-menu/menu.interface.mjs +2 -0
- package/esm2022/public_api.mjs +1 -1
- package/esm2022/tools/lib/menu.class.mjs +1 -1
- package/fesm2022/coer-elements.mjs +31 -1
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/package.json +1 -1
- package/src/images/no-image.png +0 -0
- package/src/images/no-user.png +0 -0
- package/src/interfaces/coer-filebox/index.ts +1 -1
- package/src/interfaces/coer-menu/index.ts +3 -0
- package/tools/lib/menu.class.d.ts +1 -1
- package/esm2022/interfaces/lib/menu/menu-option-selected.interface.mjs +0 -2
- package/esm2022/interfaces/lib/menu/menu.interface.mjs +0 -2
- package/src/interfaces/menu/index.ts +0 -3
- /package/interfaces/lib/{menu → coer-menu}/menu-option-selected.interface.d.ts +0 -0
- /package/interfaces/lib/{menu → coer-menu}/menu.interface.d.ts +0 -0
- /package/src/interfaces/lib/{menu → coer-menu}/menu-option-selected.interface.ts +0 -0
- /package/src/interfaces/lib/{menu → coer-menu}/menu-selected.interface.ts +0 -0
- /package/src/interfaces/lib/{menu → coer-menu}/menu.interface.ts +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
export * from '../lib/coer-grid/coer-grid.templates';
|
package/components/index.d.ts
CHANGED
@@ -6,9 +6,9 @@ export declare class CoerButton implements OnInit, OnDestroy {
|
|
6
6
|
private _tooltip;
|
7
7
|
private _tooltipElement;
|
8
8
|
id: string;
|
9
|
-
color: import("@angular/core").InputSignal<"
|
10
|
-
type: import("@angular/core").InputSignal<"
|
11
|
-
icon: import("@angular/core").InputSignal<"" | "new" | "save" | "cancel" | "import" | "excel" | "menu" | "
|
9
|
+
color: import("@angular/core").InputSignal<"warning" | "danger" | "success" | "default" | "primary" | "secondary" | "navigation">;
|
10
|
+
type: import("@angular/core").InputSignal<"icon" | "filled" | "outline" | "icon-outline" | "icon-no-border">;
|
11
|
+
icon: import("@angular/core").InputSignal<"" | "delete" | "new" | "save" | "cancel" | "import" | "excel" | "menu" | "edit" | "go" | "back">;
|
12
12
|
iconPosition: import("@angular/core").InputSignal<"left" | "right">;
|
13
13
|
animation: import("@angular/core").InputSignal<boolean>;
|
14
14
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IGridCoerSwitch, IGridCoerTextBox, IGridItem } from "../../../interfaces/coer-grid";
|
2
|
+
export declare const GridTemplates: {
|
3
|
+
/** Template for boolean property */
|
4
|
+
isActiveTemplate: (item: IGridItem<any>) => string;
|
5
|
+
/** Template for boolean property */
|
6
|
+
coerSwitchTemplate: (item: IGridItem<any>) => IGridCoerSwitch;
|
7
|
+
/** Template for text property */
|
8
|
+
coerTextboxTemplate: (item: IGridItem<any>) => IGridCoerTextBox;
|
9
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from '../lib/coer-grid/coer-grid.templates';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3NyYy9jb21wb25lbnRzL2NvZXItZ3JpZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNDQUFzQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi4vbGliL2NvZXItZ3JpZC9jb2VyLWdyaWQudGVtcGxhdGVzJzsiXX0=
|
@@ -13,4 +13,5 @@ export * from './lib/coer-switch/coer-switch.component';
|
|
13
13
|
export * from './lib/coer-tab/coer-tab.component';
|
14
14
|
export * from './lib/coer-textarea/coer-textarea.component';
|
15
15
|
export * from './lib/coer-textbox/coer-textbox.component';
|
16
|
-
|
16
|
+
export * from './coer-grid';
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3NyYy9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLHlDQUF5QyxDQUFDO0FBQ3hELGNBQWMsNkNBQTZDLENBQUM7QUFDNUQsY0FBYywyQ0FBMkMsQ0FBQztBQUMxRCxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsaURBQWlELENBQUM7QUFDaEUsY0FBYywrQ0FBK0MsQ0FBQztBQUM5RCxjQUFjLHlDQUF5QyxDQUFDO0FBQ3hELGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYyw2Q0FBNkMsQ0FBQztBQUM1RCxjQUFjLDJDQUEyQyxDQUFDO0FBRTFELGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb2V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iBmcm9tICcuL2NvZXItZ3JpZCc7Il19
|
@@ -0,0 +1,30 @@
|
|
1
|
+
export const GridTemplates = {
|
2
|
+
/** Template for boolean property */
|
3
|
+
isActiveTemplate: (item) => {
|
4
|
+
if (item.value) {
|
5
|
+
return `
|
6
|
+
<span class='text-green-bold'>
|
7
|
+
<i class="fa-solid fa-circle-check"></i> Active
|
8
|
+
</span>
|
9
|
+
`;
|
10
|
+
}
|
11
|
+
else {
|
12
|
+
return `
|
13
|
+
<span class='text-gray-bold'>
|
14
|
+
<i class="fa-solid fa-circle-minus"></i> Disabled
|
15
|
+
</span>
|
16
|
+
`;
|
17
|
+
}
|
18
|
+
},
|
19
|
+
/** Template for boolean property */
|
20
|
+
coerSwitchTemplate: (item) => ({
|
21
|
+
isInput: true,
|
22
|
+
tooltip: `${item.value ? 'Active' : 'Disabled'}`
|
23
|
+
}),
|
24
|
+
/** Template for text property */
|
25
|
+
coerTextboxTemplate: (item) => ({
|
26
|
+
isInput: true,
|
27
|
+
isInvalid: item.value.length <= 0
|
28
|
+
})
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1ncmlkLnRlbXBsYXRlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL2NvbXBvbmVudHMvbGliL2NvZXItZ3JpZC9jb2VyLWdyaWQudGVtcGxhdGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBRztJQUV6QixvQ0FBb0M7SUFDcEMsZ0JBQWdCLEVBQUUsQ0FBQyxJQUFvQixFQUFVLEVBQUU7UUFDL0MsSUFBSSxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDYixPQUFPOzs7O2FBSU4sQ0FBQztRQUNOLENBQUM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Vja1wiPjwvaT4gQWN0aXZlXHJcbiAgICAgICAgICAgICAgICA8L3NwYW4+XHJcbiAgICAgICAgICAgIGA7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgcmV0dXJuIGBcclxuICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPSd0ZXh0LWdyYXktYm9sZCc+XHJcbiAgICAgICAgICAgICAgICAgICAgPGkgY2xhc3M9XCJmYS1zb2xpZCBmYS1jaXJjbGUtbWludXNcIj48L2k+IERpc2FibGVkXHJcbiAgICAgICAgICAgICAgICA8L3NwYW4+XHJcbiAgICAgICAgICAgIGA7XHJcbiAgICAgICAgfVxyXG4gICAgfSxcclxuXHJcbiAgICAvKiogVGVtcGxhdGUgZm9yIGJvb2xlYW4gcHJvcGVydHkgKi9cclxuICAgIGNvZXJTd2l0Y2hUZW1wbGF0ZTogKGl0ZW06IElHcmlkSXRlbTxhbnk+KTogSUdyaWRDb2VyU3dpdGNoID0+ICh7XHJcbiAgICAgICAgaXNJbnB1dDogdHJ1ZSxcclxuICAgICAgICB0b29sdGlwOiBgJHtpdGVtLnZhbHVlID8gJ0FjdGl2ZScgOiAnRGlzYWJsZWQnIH1gXHJcbiAgICB9KSxcclxuXHJcbiAgICBcclxuICAgIC8qKiBUZW1wbGF0ZSBmb3IgdGV4dCBwcm9wZXJ0eSAqL1xyXG4gICAgY29lclRleHRib3hUZW1wbGF0ZTogKGl0ZW06IElHcmlkSXRlbTxhbnk+KTogSUdyaWRDb2VyVGV4dEJveCA9PiAoe1xyXG4gICAgICAgIGlzSW5wdXQ6IHRydWUsXHJcbiAgICAgICAgaXNJbnZhbGlkOiBpdGVtLnZhbHVlLmxlbmd0aCA8PSAwXHJcbiAgICB9KVxyXG59Il19
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from '../lib/coer-filebox/file-image.interface';
|
2
2
|
export * from '../lib/coer-filebox/file.interface';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3NyYy9pbnRlcmZhY2VzL2NvZXItZmlsZWJveC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBDQUEwQyxDQUFDO0FBQ3pELGNBQWMsb0NBQW9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuLi9saWIvY29lci1maWxlYm94L2ZpbGUtaW1hZ2UuaW50ZXJmYWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi4vbGliL2NvZXItZmlsZWJveC9maWxlLmludGVyZmFjZSc7ICJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1vcHRpb24tc2VsZWN0ZWQuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvaW50ZXJmYWNlcy9saWIvY29lci1tZW51L21lbnUtb3B0aW9uLXNlbGVjdGVkLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSU1lbnUgfSBmcm9tIFwiLi9tZW51LmludGVyZmFjZVwiO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJTWVudU9wdGlvblNlbGVjdGVkIHtcclxuICAgIGxldmVsOiBudW1iZXI7XHJcbiAgICBsYWJlbDogc3RyaW5nO1xyXG4gICAgaWNvbjogc3RyaW5nO1xyXG4gICAgcGF0aDogc3RyaW5nO1xyXG4gICAgcXVlcnlQYXJhbXM6IHN0cmluZztcclxuICAgIHRyZWU6IElNZW51W107XHJcbn0iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3NyYy9pbnRlcmZhY2VzL2xpYi9jb2VyLW1lbnUvbWVudS5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSU1lbnUge1xyXG4gICAgbGFiZWw6IHN0cmluZztcclxuICAgIGljb24/OiBzdHJpbmc7XHJcbiAgICBwYXRoPzogc3RyaW5nO1xyXG4gICAgaXRlbXM/OiBJTWVudVtdO1xyXG59Il19
|
package/esm2022/public_api.mjs
CHANGED
@@ -3,4 +3,4 @@ export * from './directives';
|
|
3
3
|
export * from './pipes';
|
4
4
|
export * from './signals';
|
5
5
|
export * from './tools';
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMnOyBcclxuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzJztcclxuZXhwb3J0ICogZnJvbSAnLi9waXBlcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vc2lnbmFscyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9vbHMnOyJdfQ==
|
@@ -20,4 +20,4 @@ export class Menu {
|
|
20
20
|
return null;
|
21
21
|
}
|
22
22
|
}
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL3Rvb2xzL2xpYi9tZW51LmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxJQUFJO2FBRVcsWUFBTyxHQUFHLGFBQWEsQ0FBQztJQUVoRCxNQUFNO0lBQ0MsTUFBTSxDQUFDLEdBQUcsQ0FBQyxJQUF5QjtRQUN2QyxJQUFJLE9BQU8sR0FBRyxjQUFjLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQVEsQ0FBQztRQUMxRCxJQUFJLE9BQU87WUFBRSxPQUFPLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUMzQyxPQUFPLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxFQUFFLEVBQUUsT0FBTyxFQUFFLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQztRQUMvQyxjQUFjLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO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c2Vzc2lvblN0b3JhZ2Uuc2V0SXRlbSh0aGlzLnN0b3JhZ2UsIEpTT04uc3RyaW5naWZ5KHN0b3JhZ2UpKTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwdWJsaWMgc3RhdGljIEdldCgpOiBJTWVudU9wdGlvblNlbGVjdGVkIHwgbnVsbCB7XHJcbiAgICAgICAgbGV0IHN0b3JhZ2UgPSBzZXNzaW9uU3RvcmFnZS5nZXRJdGVtKHRoaXMuc3RvcmFnZSkgYXMgYW55O1xyXG5cclxuICAgICAgICBpZiAoc3RvcmFnZSkge1xyXG4gICAgICAgICAgICBzdG9yYWdlID0gSlNPTi5wYXJzZShzdG9yYWdlKTtcclxuXHJcbiAgICAgICAgICAgIGlmIChzdG9yYWdlLmhhc093blByb3BlcnR5KCdtZW51JykpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBzdG9yYWdlLm1lbnU7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgfVxyXG59Il19
|
@@ -3503,6 +3503,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
3503
3503
|
}]
|
3504
3504
|
}] });
|
3505
3505
|
|
3506
|
+
const GridTemplates = {
|
3507
|
+
/** Template for boolean property */
|
3508
|
+
isActiveTemplate: (item) => {
|
3509
|
+
if (item.value) {
|
3510
|
+
return `
|
3511
|
+
<span class='text-green-bold'>
|
3512
|
+
<i class="fa-solid fa-circle-check"></i> Active
|
3513
|
+
</span>
|
3514
|
+
`;
|
3515
|
+
}
|
3516
|
+
else {
|
3517
|
+
return `
|
3518
|
+
<span class='text-gray-bold'>
|
3519
|
+
<i class="fa-solid fa-circle-minus"></i> Disabled
|
3520
|
+
</span>
|
3521
|
+
`;
|
3522
|
+
}
|
3523
|
+
},
|
3524
|
+
/** Template for boolean property */
|
3525
|
+
coerSwitchTemplate: (item) => ({
|
3526
|
+
isInput: true,
|
3527
|
+
tooltip: `${item.value ? 'Active' : 'Disabled'}`
|
3528
|
+
}),
|
3529
|
+
/** Template for text property */
|
3530
|
+
coerTextboxTemplate: (item) => ({
|
3531
|
+
isInput: true,
|
3532
|
+
isInvalid: item.value.length <= 0
|
3533
|
+
})
|
3534
|
+
};
|
3535
|
+
|
3506
3536
|
const breakpointSIGNAL = signal(Screen?.BREAKPOINT || 'xs');
|
3507
3537
|
|
3508
3538
|
const isLoadingSIGNAL = signal(false);
|
@@ -3798,5 +3828,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
3798
3828
|
* Generated bundle index. Do not edit.
|
3799
3829
|
*/
|
3800
3830
|
|
3801
|
-
export { Breadcrumbs, CONTROL_VALUE, CoerAlert, CoerButton, CoerCheckbox, CoerFilebox, CoerForm, CoerGrid, CoerModal, CoerNumberBox, CoerPageTitle, CoerRefDirective, CoerSelectbox, CoerSwitch, CoerTab, CoerTextBox, CoerTextarea, ComponentsModule, ControlValue, DateTime, DirectivesModule, Files, HtmlPipe, LifeCycleDirective, Menu, NoImagePipe, NumericFormatPipe, Page, PipesModule, Screen, Source, Tools, breakpointSIGNAL, isLoadingSIGNAL, isModalOpenSIGNAL };
|
3831
|
+
export { Breadcrumbs, CONTROL_VALUE, CoerAlert, CoerButton, CoerCheckbox, CoerFilebox, CoerForm, CoerGrid, CoerModal, CoerNumberBox, CoerPageTitle, CoerRefDirective, CoerSelectbox, CoerSwitch, CoerTab, CoerTextBox, CoerTextarea, ComponentsModule, ControlValue, DateTime, DirectivesModule, Files, GridTemplates, HtmlPipe, LifeCycleDirective, Menu, NoImagePipe, NumericFormatPipe, Page, PipesModule, Screen, Source, Tools, breakpointSIGNAL, isLoadingSIGNAL, isModalOpenSIGNAL };
|
3802
3832
|
//# sourceMappingURL=coer-elements.mjs.map
|