coer-elements 0.0.56 → 0.0.59
Sign up to get free protection for your applications and to get access to all the features.
- 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 +54 -2
- package/esm2022/tools/lib/section.class.mjs +52 -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 +48 -2
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/fesm2022/coer-elements.mjs +53 -0
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/index.d.ts +10 -1
- package/package.json +7 -7
- package/styles/coer-elements.css +0 -5
- package/styles/containers.scss +0 -2
- package/tools/lib/section.class.d.ts +27 -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, input, 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,52 @@ 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
|
+
//Inputs enableAnimations
|
1168
|
+
this.isLoading = input(false);
|
1169
|
+
this.isUpdate = input(false);
|
1170
|
+
//Outputs
|
1171
|
+
this.onReady = output();
|
1172
|
+
this.onDestroy = output();
|
1173
|
+
//Variables
|
1174
|
+
this.enableAnimations = false;
|
1175
|
+
//Grid Templates
|
1176
|
+
this.isActiveTemplate = GridTemplates.isActiveTemplate;
|
1177
|
+
this.coerSwitchTemplate = GridTemplates.coerSwitchTemplate;
|
1178
|
+
this.coerTextboxTemplate = GridTemplates.coerTextboxTemplate;
|
1179
|
+
this.coerIconTemplate = GridTemplates.coerIconTemplate;
|
1180
|
+
//Tools
|
1181
|
+
this.IsNull = Tools.IsNull;
|
1182
|
+
this.IsNotNull = Tools.IsNotNull;
|
1183
|
+
this.IsOnlyWhiteSpace = Tools.IsOnlyWhiteSpace;
|
1184
|
+
this.IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace;
|
1185
|
+
}
|
1186
|
+
ngAfterViewInit() {
|
1187
|
+
Tools.Sleep().then(_ => this.onReady.emit());
|
1188
|
+
Tools.Sleep(1000).then(_ => this.enableAnimations = true);
|
1189
|
+
}
|
1190
|
+
ngOnDestroy() {
|
1191
|
+
this.onDestroy.emit();
|
1192
|
+
}
|
1193
|
+
/** */
|
1194
|
+
Log(value, log = null) {
|
1195
|
+
if (Tools.IsNotNull(log))
|
1196
|
+
console.log({ log, value });
|
1197
|
+
else
|
1198
|
+
console.log(value);
|
1199
|
+
}
|
1200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Section, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
1201
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: Section, selector: "ng-component", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, isUpdate: { classPropertyName: "isUpdate", publicName: "isUpdate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onReady: "onReady", onDestroy: "onDestroy" }, ngImport: i0, template: '', isInline: true }); }
|
1202
|
+
}
|
1203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Section, decorators: [{
|
1204
|
+
type: Component,
|
1205
|
+
args: [{ template: '' }]
|
1206
|
+
}] });
|
1207
|
+
|
1162
1208
|
class Service {
|
1163
1209
|
constructor() {
|
1164
1210
|
//Injections
|
@@ -1567,5 +1613,5 @@ class Service {
|
|
1567
1613
|
* Generated bundle index. Do not edit.
|
1568
1614
|
*/
|
1569
1615
|
|
1570
|
-
export { Breadcrumbs, CONTROL_VALUE, CoerAlert, Colors, ControlValue, DateTime, Files, Filters, GridTemplates, Menu, Page, Screen, Service, Source, Tools };
|
1616
|
+
export { Breadcrumbs, CONTROL_VALUE, CoerAlert, Colors, ControlValue, DateTime, Files, Filters, GridTemplates, Menu, Page, Screen, Section, Service, Source, Tools };
|
1571
1617
|
//# sourceMappingURL=coer-elements-tools.mjs.map
|