coer-elements 0.0.56 → 0.0.57
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/components/lib/coer-button/coer-button.component.d.ts +2 -2
- package/esm2022/components/lib/coer-button/coer-button.component.mjs +4 -6
- package/esm2022/index.mjs +37 -2
- package/esm2022/tools/lib/section.class.mjs +46 -0
- package/esm2022/tools/public-api.mjs +2 -1
- package/fesm2022/coer-elements-components.mjs +3 -5
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +42 -2
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/fesm2022/coer-elements.mjs +38 -0
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/index.d.ts +8 -1
- package/package.json +1 -1
- package/styles/coer-elements.css +0 -5
- package/styles/containers.scss +0 -2
- package/tools/lib/section.class.d.ts +24 -0
- package/tools/public-api.d.ts +1 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { signal, Component, forwardRef, inject, Inject } from '@angular/core';
|
2
|
+
import { signal, Component, forwardRef, inject, Inject, output } from '@angular/core';
|
3
3
|
import * as bootstrap from 'bootstrap';
|
4
4
|
import Swal from 'sweetalert2';
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
@@ -1159,6 +1159,46 @@ class Screen {
|
|
1159
1159
|
}); }
|
1160
1160
|
}
|
1161
1161
|
|
1162
|
+
class Section {
|
1163
|
+
constructor() {
|
1164
|
+
//Injection
|
1165
|
+
this.alert = inject(CoerAlert);
|
1166
|
+
this.router = inject(Router);
|
1167
|
+
//Outputs
|
1168
|
+
this.onReady = output();
|
1169
|
+
this.onDestroy = output();
|
1170
|
+
//Grid Templates
|
1171
|
+
this.isActiveTemplate = GridTemplates.isActiveTemplate;
|
1172
|
+
this.coerSwitchTemplate = GridTemplates.coerSwitchTemplate;
|
1173
|
+
this.coerTextboxTemplate = GridTemplates.coerTextboxTemplate;
|
1174
|
+
this.coerIconTemplate = GridTemplates.coerIconTemplate;
|
1175
|
+
//Tools
|
1176
|
+
this.IsNull = Tools.IsNull;
|
1177
|
+
this.IsNotNull = Tools.IsNotNull;
|
1178
|
+
this.IsOnlyWhiteSpace = Tools.IsOnlyWhiteSpace;
|
1179
|
+
this.IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace;
|
1180
|
+
}
|
1181
|
+
ngAfterViewInit() {
|
1182
|
+
Tools.Sleep().then(_ => this.onReady.emit());
|
1183
|
+
}
|
1184
|
+
ngOnDestroy() {
|
1185
|
+
Tools.Sleep().then(_ => this.onDestroy.emit());
|
1186
|
+
}
|
1187
|
+
/** */
|
1188
|
+
Log(value, log = null) {
|
1189
|
+
if (Tools.IsNotNull(log))
|
1190
|
+
console.log({ log, value });
|
1191
|
+
else
|
1192
|
+
console.log(value);
|
1193
|
+
}
|
1194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Section, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
1195
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: Section, selector: "ng-component", outputs: { onReady: "onReady", onDestroy: "onDestroy" }, ngImport: i0, template: '', isInline: true }); }
|
1196
|
+
}
|
1197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Section, decorators: [{
|
1198
|
+
type: Component,
|
1199
|
+
args: [{ template: '' }]
|
1200
|
+
}] });
|
1201
|
+
|
1162
1202
|
class Service {
|
1163
1203
|
constructor() {
|
1164
1204
|
//Injections
|
@@ -1567,5 +1607,5 @@ class Service {
|
|
1567
1607
|
* Generated bundle index. Do not edit.
|
1568
1608
|
*/
|
1569
1609
|
|
1570
|
-
export { Breadcrumbs, CONTROL_VALUE, CoerAlert, Colors, ControlValue, DateTime, Files, Filters, GridTemplates, Menu, Page, Screen, Service, Source, Tools };
|
1610
|
+
export { Breadcrumbs, CONTROL_VALUE, CoerAlert, Colors, ControlValue, DateTime, Files, Filters, GridTemplates, Menu, Page, Screen, Section, Service, Source, Tools };
|
1571
1611
|
//# sourceMappingURL=coer-elements-tools.mjs.map
|