coer-elements 0.0.56 → 0.0.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -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