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.
@@ -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