coer-elements 1.0.12 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/Tools/Page.class.ts +1 -1
- package/components/index.ts +0 -1
- package/dist_browser/Tools/Page.class.js +1 -1
- package/dist_browser/components/coer-alert/coer-alert.component.js +314 -0
- package/dist_node/Tools/Page.class.js +2 -2
- package/package.json +1 -1
- package/dist_node/components/index.js +0 -168
package/Tools/Page.class.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AfterViewInit, Component, Inject, inject, OnDestroy } from '@angular/core';
|
2
2
|
import { Breadcrumbs } from "./Breadcrumbs.class";
|
3
3
|
import { Source } from './Source.class';
|
4
|
-
import { CoerAlert } from '../components';
|
4
|
+
import { CoerAlert } from '../components/coer-alert/coer-alert.component';
|
5
5
|
import { IAppSource, IBreadcrumb, IGoBack } from '../interfaces';
|
6
6
|
import { ActivatedRoute, Router } from '@angular/router';
|
7
7
|
import { Tools } from './Tools';
|
package/components/index.ts
CHANGED
@@ -78,7 +78,6 @@ import { CoerAlert } from './coer-alert/coer-alert.component';
|
|
78
78
|
]
|
79
79
|
})
|
80
80
|
export class ComponentsModule { }
|
81
|
-
export * from './coer-alert/coer-alert.component';
|
82
81
|
//export * from './coer-button/coer-button.component';
|
83
82
|
//export * from './coer-checkbox/coer-checkbox.component';
|
84
83
|
//export * from './coer-filebox/coer-filebox.component';
|
@@ -39,7 +39,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
39
39
|
import { Component, inject } from '@angular/core';
|
40
40
|
import { Breadcrumbs } from "./Breadcrumbs.class";
|
41
41
|
import { Source } from './Source.class';
|
42
|
-
import { CoerAlert } from '../components';
|
42
|
+
import { CoerAlert } from '../components/coer-alert/coer-alert.component';
|
43
43
|
import { ActivatedRoute, Router } from '@angular/router';
|
44
44
|
import { Tools } from './Tools';
|
45
45
|
var Page = function () {
|
@@ -0,0 +1,314 @@
|
|
1
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
2
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
3
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
4
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
5
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
6
|
+
var _, done = false;
|
7
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
8
|
+
var context = {};
|
9
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
10
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
11
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
12
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
13
|
+
if (kind === "accessor") {
|
14
|
+
if (result === void 0) continue;
|
15
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
16
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
17
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
18
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
19
|
+
}
|
20
|
+
else if (_ = accept(result)) {
|
21
|
+
if (kind === "field") initializers.unshift(_);
|
22
|
+
else descriptor[key] = _;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
26
|
+
done = true;
|
27
|
+
};
|
28
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
29
|
+
var useValue = arguments.length > 2;
|
30
|
+
for (var i = 0; i < initializers.length; i++) {
|
31
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
32
|
+
}
|
33
|
+
return useValue ? value : void 0;
|
34
|
+
};
|
35
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
36
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
37
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
38
|
+
};
|
39
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
40
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
41
|
+
if (ar || !(i in from)) {
|
42
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
43
|
+
ar[i] = from[i];
|
44
|
+
}
|
45
|
+
}
|
46
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
47
|
+
};
|
48
|
+
import { Component } from '@angular/core';
|
49
|
+
import * as bootstrap from 'bootstrap';
|
50
|
+
import Swal from 'sweetalert2';
|
51
|
+
var CoerAlert = function () {
|
52
|
+
var _classDecorators = [Component({
|
53
|
+
selector: 'coer-alert',
|
54
|
+
templateUrl: './coer-alert.component.html',
|
55
|
+
styleUrls: ['./coer-alert.component.scss']
|
56
|
+
})];
|
57
|
+
var _classDescriptor;
|
58
|
+
var _classExtraInitializers = [];
|
59
|
+
var _classThis;
|
60
|
+
var CoerAlert = _classThis = /** @class */ (function () {
|
61
|
+
function CoerAlert_1() {
|
62
|
+
}
|
63
|
+
/** */
|
64
|
+
CoerAlert_1.prototype.Success = function (message, title, icon, autohide) {
|
65
|
+
if (message === void 0) { message = null; }
|
66
|
+
if (title === void 0) { title = null; }
|
67
|
+
if (icon === void 0) { icon = null; }
|
68
|
+
if (autohide === void 0) { autohide = 3000; }
|
69
|
+
//Title
|
70
|
+
if (!title || title == '')
|
71
|
+
title = 'Success';
|
72
|
+
var alertSuccessTitle = document.getElementById('alert-success-title');
|
73
|
+
alertSuccessTitle.textContent = title;
|
74
|
+
//Icon
|
75
|
+
icon = this.GetIcon(title, icon, 'bi-check-circle fa-beat');
|
76
|
+
var alertSuccessIcon = document.getElementById('alert-success-icon');
|
77
|
+
this.SetIcon(alertSuccessIcon, icon);
|
78
|
+
//Message
|
79
|
+
if (!message)
|
80
|
+
message = '';
|
81
|
+
var alertSuccessMessage = document.getElementById('alert-success-message');
|
82
|
+
alertSuccessMessage.innerHTML = message;
|
83
|
+
//Toast
|
84
|
+
var alertSuccess = document.getElementById('alert-success');
|
85
|
+
this.SetAutoHide(alertSuccess, autohide);
|
86
|
+
var toast = bootstrap.Toast.getOrCreateInstance(alertSuccess);
|
87
|
+
toast.show();
|
88
|
+
};
|
89
|
+
/** */
|
90
|
+
CoerAlert_1.prototype.Error = function (message, title, icon, autohide) {
|
91
|
+
if (message === void 0) { message = null; }
|
92
|
+
if (title === void 0) { title = null; }
|
93
|
+
if (icon === void 0) { icon = null; }
|
94
|
+
if (autohide === void 0) { autohide = 3000; }
|
95
|
+
//Title
|
96
|
+
if (!title || title == '')
|
97
|
+
title = 'Error';
|
98
|
+
var alertErrorTitle = document.getElementById('alert-error-title');
|
99
|
+
alertErrorTitle.textContent = title;
|
100
|
+
//Icon
|
101
|
+
icon = this.GetIcon(title, icon, 'bi-exclamation-octagon fa-beat');
|
102
|
+
var alertErrorIcon = document.getElementById('alert-error-icon');
|
103
|
+
this.SetIcon(alertErrorIcon, icon);
|
104
|
+
//Message
|
105
|
+
if (!message)
|
106
|
+
message = '';
|
107
|
+
var alertErrorBody = document.getElementById('alert-error-message');
|
108
|
+
alertErrorBody.innerHTML = message;
|
109
|
+
//Toast
|
110
|
+
var alertError = document.getElementById('alert-error');
|
111
|
+
this.SetAutoHide(alertError, autohide);
|
112
|
+
var toast = bootstrap.Toast.getOrCreateInstance(alertError);
|
113
|
+
toast.show();
|
114
|
+
};
|
115
|
+
/** */
|
116
|
+
CoerAlert_1.prototype.Info = function (message, title, icon, autohide) {
|
117
|
+
if (message === void 0) { message = null; }
|
118
|
+
if (title === void 0) { title = null; }
|
119
|
+
if (icon === void 0) { icon = null; }
|
120
|
+
if (autohide === void 0) { autohide = 3000; }
|
121
|
+
//Title
|
122
|
+
if (!title || title == '')
|
123
|
+
title = 'Info';
|
124
|
+
var alertInfoTitle = document.getElementById('alert-info-title');
|
125
|
+
alertInfoTitle.textContent = title;
|
126
|
+
//Icon
|
127
|
+
icon = this.GetIcon(title, icon, 'bi-info-circle fa-beat');
|
128
|
+
var alertInfoIcon = document.getElementById('alert-info-icon');
|
129
|
+
this.SetIcon(alertInfoIcon, icon);
|
130
|
+
//Message
|
131
|
+
if (!message)
|
132
|
+
message = '';
|
133
|
+
var alertInfoBody = document.getElementById('alert-info-message');
|
134
|
+
alertInfoBody.innerHTML = message;
|
135
|
+
//Toast
|
136
|
+
var alertInfo = document.getElementById('alert-info');
|
137
|
+
this.SetAutoHide(alertInfo, autohide);
|
138
|
+
var toast = bootstrap.Toast.getOrCreateInstance(alertInfo);
|
139
|
+
toast.show();
|
140
|
+
};
|
141
|
+
/** */
|
142
|
+
CoerAlert_1.prototype.Warning = function (message, title, icon, autohide) {
|
143
|
+
if (message === void 0) { message = null; }
|
144
|
+
if (title === void 0) { title = null; }
|
145
|
+
if (icon === void 0) { icon = null; }
|
146
|
+
if (autohide === void 0) { autohide = 3000; }
|
147
|
+
//Title
|
148
|
+
if (!title || title == '')
|
149
|
+
title = 'Warning';
|
150
|
+
var alertWarningTitle = document.getElementById('alert-warning-title');
|
151
|
+
alertWarningTitle.textContent = title;
|
152
|
+
//Icon
|
153
|
+
icon = this.GetIcon(title, icon, 'bi-exclamation-triangle-fill fa-beat');
|
154
|
+
var alertWarningIcon = document.getElementById('alert-warning-icon');
|
155
|
+
this.SetIcon(alertWarningIcon, icon);
|
156
|
+
//Message
|
157
|
+
if (!message)
|
158
|
+
message = '';
|
159
|
+
var alertWarningBody = document.getElementById('alert-warning-message');
|
160
|
+
alertWarningBody.innerHTML = message;
|
161
|
+
//Toast
|
162
|
+
var alertWarning = document.getElementById('alert-warning');
|
163
|
+
this.SetAutoHide(alertWarning, autohide);
|
164
|
+
var toast = bootstrap.Toast.getOrCreateInstance(alertWarning);
|
165
|
+
toast.show();
|
166
|
+
};
|
167
|
+
/** */
|
168
|
+
CoerAlert_1.prototype.Close = function (alert) {
|
169
|
+
return new Promise(function (Resolve) {
|
170
|
+
var element = document.getElementById(alert);
|
171
|
+
var toast = bootstrap.Toast.getOrCreateInstance(element);
|
172
|
+
toast.hide();
|
173
|
+
setTimeout(function () { Resolve(); }, 200);
|
174
|
+
});
|
175
|
+
};
|
176
|
+
/** */
|
177
|
+
CoerAlert_1.prototype.Confirm = function (message, alertType, icon) {
|
178
|
+
if (message === void 0) { message = 'Proceed?'; }
|
179
|
+
if (alertType === void 0) { alertType = 'warning'; }
|
180
|
+
if (icon === void 0) { icon = null; }
|
181
|
+
return new Promise(function (Resolve) {
|
182
|
+
var color;
|
183
|
+
var iconType;
|
184
|
+
switch (alertType) {
|
185
|
+
case 'danger':
|
186
|
+
{
|
187
|
+
if (icon == null)
|
188
|
+
icon = 'bi-exclamation-octagon';
|
189
|
+
iconType = 'error';
|
190
|
+
color = '#dc3545';
|
191
|
+
break;
|
192
|
+
}
|
193
|
+
;
|
194
|
+
case 'success':
|
195
|
+
{
|
196
|
+
if (icon == null)
|
197
|
+
icon = 'bi-check-circle';
|
198
|
+
iconType = 'info';
|
199
|
+
color = '#198754';
|
200
|
+
break;
|
201
|
+
}
|
202
|
+
;
|
203
|
+
case 'info':
|
204
|
+
{
|
205
|
+
if (icon == null)
|
206
|
+
icon = 'bi-info-circle';
|
207
|
+
iconType = 'error';
|
208
|
+
color = '#0d6efd';
|
209
|
+
break;
|
210
|
+
}
|
211
|
+
;
|
212
|
+
default: {
|
213
|
+
if (icon == null)
|
214
|
+
icon = 'bi-exclamation-triangle-fill';
|
215
|
+
iconType = 'warning';
|
216
|
+
color = '#ffc107';
|
217
|
+
break;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
switch (icon) {
|
221
|
+
case 'delete':
|
222
|
+
icon = 'fa-regular fa-trash-can';
|
223
|
+
break;
|
224
|
+
}
|
225
|
+
Swal.fire({
|
226
|
+
icon: iconType,
|
227
|
+
iconColor: 'transparent',
|
228
|
+
iconHtml: "<i class=\"".concat(icon, "\" style=\"color: ").concat(color, ";\"></i>"),
|
229
|
+
html: message,
|
230
|
+
showConfirmButton: true,
|
231
|
+
confirmButtonText: 'Yes',
|
232
|
+
confirmButtonColor: color,
|
233
|
+
focusConfirm: true,
|
234
|
+
showDenyButton: true,
|
235
|
+
denyButtonColor: color,
|
236
|
+
focusDeny: false,
|
237
|
+
reverseButtons: true,
|
238
|
+
allowOutsideClick: false,
|
239
|
+
allowEscapeKey: false,
|
240
|
+
allowEnterKey: true,
|
241
|
+
customClass: {
|
242
|
+
denyButton: 'sweet-alert-button',
|
243
|
+
confirmButton: 'sweet-alert-button'
|
244
|
+
}
|
245
|
+
}).then(function (_a) {
|
246
|
+
var value = _a.value;
|
247
|
+
return setTimeout(function () { return Resolve(value); });
|
248
|
+
});
|
249
|
+
});
|
250
|
+
};
|
251
|
+
/** */
|
252
|
+
CoerAlert_1.prototype.SetIcon = function (element, icon) {
|
253
|
+
for (var _i = 0, _a = __spreadArray([], element.classList.value.split(' '), true); _i < _a.length; _i++) {
|
254
|
+
var item = _a[_i];
|
255
|
+
if (item.length > 0) {
|
256
|
+
element.classList.remove(item);
|
257
|
+
element.classList.remove('q');
|
258
|
+
}
|
259
|
+
}
|
260
|
+
icon = icon.trim();
|
261
|
+
var hasWhiteSpaces = / /;
|
262
|
+
if (hasWhiteSpaces.test(icon)) {
|
263
|
+
var classes = icon.split(' ');
|
264
|
+
for (var _b = 0, classes_1 = classes; _b < classes_1.length; _b++) {
|
265
|
+
var icon_1 = classes_1[_b];
|
266
|
+
element.classList.add(icon_1);
|
267
|
+
}
|
268
|
+
}
|
269
|
+
else
|
270
|
+
element.classList.add(icon);
|
271
|
+
};
|
272
|
+
/** */
|
273
|
+
CoerAlert_1.prototype.SetAutoHide = function (element, autohide) {
|
274
|
+
element.removeAttribute('data-bs-autohide');
|
275
|
+
element.removeAttribute('data-bs-delay');
|
276
|
+
if (autohide && autohide > 0) {
|
277
|
+
if (autohide < 1000)
|
278
|
+
autohide = 1000;
|
279
|
+
element.setAttribute('data-bs-autohide', 'true');
|
280
|
+
element.setAttribute('data-bs-delay', String(autohide));
|
281
|
+
}
|
282
|
+
else
|
283
|
+
element.setAttribute('data-bs-autohide', 'false');
|
284
|
+
};
|
285
|
+
/** */
|
286
|
+
CoerAlert_1.prototype.GetIcon = function (title, icon, iconDefault) {
|
287
|
+
if (icon == null || icon == '') {
|
288
|
+
title = title.replaceAll(' ', '').toUpperCase();
|
289
|
+
switch (title) {
|
290
|
+
case 'ENABLED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
|
291
|
+
case 'ACTIVE': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
|
292
|
+
case 'ACTIVED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
|
293
|
+
case 'DISABLE': return 'fa-solid fa-thumbs-down fa-flip-horizontal';
|
294
|
+
case 'DISABLED': return 'fa-solid fa-thumbs-down fa-flip-horizontal';
|
295
|
+
case 'DELETE': return 'fa-regular fa-trash-can';
|
296
|
+
case 'DELETED': return 'fa-regular fa-trash-can';
|
297
|
+
default: return iconDefault;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
return icon;
|
301
|
+
};
|
302
|
+
return CoerAlert_1;
|
303
|
+
}());
|
304
|
+
__setFunctionName(_classThis, "CoerAlert");
|
305
|
+
(function () {
|
306
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
307
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
308
|
+
CoerAlert = _classThis = _classDescriptor.value;
|
309
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
310
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
311
|
+
})();
|
312
|
+
return CoerAlert = _classThis;
|
313
|
+
}();
|
314
|
+
export { CoerAlert };
|
@@ -42,7 +42,7 @@ exports.Page = void 0;
|
|
42
42
|
var core_1 = require("@angular/core");
|
43
43
|
var Breadcrumbs_class_1 = require("./Breadcrumbs.class");
|
44
44
|
var Source_class_1 = require("./Source.class");
|
45
|
-
var
|
45
|
+
var coer_alert_component_1 = require("../components/coer-alert/coer-alert.component");
|
46
46
|
var router_1 = require("@angular/router");
|
47
47
|
var Tools_1 = require("./Tools");
|
48
48
|
var Page = function () {
|
@@ -53,7 +53,7 @@ var Page = function () {
|
|
53
53
|
var Page = _classThis = /** @class */ (function () {
|
54
54
|
function Page_1(page) {
|
55
55
|
//Injection
|
56
|
-
this.alert = (0, core_1.inject)(
|
56
|
+
this.alert = (0, core_1.inject)(coer_alert_component_1.CoerAlert);
|
57
57
|
this.router = (0, core_1.inject)(router_1.Router);
|
58
58
|
this.activatedRoute = (0, core_1.inject)(router_1.ActivatedRoute);
|
59
59
|
/** */
|
package/package.json
CHANGED
@@ -1,168 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
14
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
15
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
16
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
17
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
18
|
-
var _, done = false;
|
19
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
20
|
-
var context = {};
|
21
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
22
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
23
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
24
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
25
|
-
if (kind === "accessor") {
|
26
|
-
if (result === void 0) continue;
|
27
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
28
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
29
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
30
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
31
|
-
}
|
32
|
-
else if (_ = accept(result)) {
|
33
|
-
if (kind === "field") initializers.unshift(_);
|
34
|
-
else descriptor[key] = _;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
38
|
-
done = true;
|
39
|
-
};
|
40
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
41
|
-
var useValue = arguments.length > 2;
|
42
|
-
for (var i = 0; i < initializers.length; i++) {
|
43
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
44
|
-
}
|
45
|
-
return useValue ? value : void 0;
|
46
|
-
};
|
47
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
48
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
49
|
-
};
|
50
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
51
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
52
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
53
|
-
};
|
54
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
55
|
-
exports.ComponentsModule = void 0;
|
56
|
-
var core_1 = require("@angular/core");
|
57
|
-
var common_1 = require("@angular/common");
|
58
|
-
var router_1 = require("@angular/router");
|
59
|
-
var forms_1 = require("@angular/forms");
|
60
|
-
//import { DirectivesModule } from 'src/app/shared/directives/directives.module';
|
61
|
-
//import { PipesModule } from 'src/app/shared/pipes/pipes.module';
|
62
|
-
//Angular Material
|
63
|
-
//import { MatButtonModule } from '@angular/material/button';
|
64
|
-
//import { MatCheckboxModule } from '@angular/material/checkbox';
|
65
|
-
//import { MatInputModule } from '@angular/material/input';
|
66
|
-
//import { MatFormFieldModule } from '@angular/material/form-field';
|
67
|
-
//import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
68
|
-
//import { MatTabsModule } from '@angular/material/tabs';
|
69
|
-
//Components
|
70
|
-
var coer_alert_component_1 = require("./coer-alert/coer-alert.component");
|
71
|
-
//import { CoerButton } from './coer-button/coer-button.component';
|
72
|
-
//import { CoerCheckbox } from './coer-checkbox/coer-checkbox.component';
|
73
|
-
//import { CoerFilebox } from './coer-filebox/coer-filebox.component';
|
74
|
-
//import { CoerForm } from './coer-form/coer-form.component';
|
75
|
-
//import { CoerGrid } from './coer-grid/coer-grid.component';
|
76
|
-
//import { CoerModal } from './coer-modal/coer-modal.component';
|
77
|
-
//import { CoerNumberBox } from './coer-numberbox/coer-numberbox.component';
|
78
|
-
//import { CoerPageTitle } from './coer-page-title/coer-page-title.component';
|
79
|
-
//import { CoerSelectbox } from './coer-selectbox/coer-selectbox.component';
|
80
|
-
//import { CoerSwitch } from './coer-switch/coer-switch.component';
|
81
|
-
//import { CoerTab } from './coer-tab/coer-tab.component';
|
82
|
-
//import { CoerTextarea } from './coer-textarea/coer-textarea.component';
|
83
|
-
//import { CoerTextBox } from './coer-textbox/coer-textbox.component';
|
84
|
-
var ComponentsModule = function () {
|
85
|
-
var _classDecorators = [(0, core_1.NgModule)({
|
86
|
-
imports: [
|
87
|
-
common_1.CommonModule,
|
88
|
-
router_1.RouterModule,
|
89
|
-
forms_1.FormsModule,
|
90
|
-
forms_1.ReactiveFormsModule,
|
91
|
-
//PipesModule,
|
92
|
-
//MatButtonModule,
|
93
|
-
//MatCheckboxModule,
|
94
|
-
//MatInputModule,
|
95
|
-
//MatFormFieldModule,
|
96
|
-
//MatSlideToggleModule,
|
97
|
-
//MatTabsModule,
|
98
|
-
//DirectivesModule
|
99
|
-
],
|
100
|
-
declarations: [
|
101
|
-
coer_alert_component_1.CoerAlert,
|
102
|
-
//CoerButton,
|
103
|
-
//CoerCheckbox,
|
104
|
-
//CoerFilebox,
|
105
|
-
//CoerForm,
|
106
|
-
//CoerGrid,
|
107
|
-
//CoerModal,
|
108
|
-
//CoerNumberBox,
|
109
|
-
//CoerPageTitle,
|
110
|
-
//CoerSelectbox,
|
111
|
-
//CoerSwitch,
|
112
|
-
//CoerTextarea,
|
113
|
-
//CoerTab,
|
114
|
-
//CoerTextBox,
|
115
|
-
],
|
116
|
-
exports: [
|
117
|
-
coer_alert_component_1.CoerAlert,
|
118
|
-
//CoerButton,
|
119
|
-
//CoerCheckbox,
|
120
|
-
//CoerFilebox,
|
121
|
-
//CoerForm,
|
122
|
-
//CoerGrid,
|
123
|
-
//CoerModal,
|
124
|
-
//CoerNumberBox,
|
125
|
-
//CoerPageTitle,
|
126
|
-
//CoerSelectbox,
|
127
|
-
//CoerSwitch,
|
128
|
-
//CoerTextarea,
|
129
|
-
//CoerTab,
|
130
|
-
//CoerTextBox,
|
131
|
-
]
|
132
|
-
})];
|
133
|
-
var _classDescriptor;
|
134
|
-
var _classExtraInitializers = [];
|
135
|
-
var _classThis;
|
136
|
-
var ComponentsModule = _classThis = /** @class */ (function () {
|
137
|
-
function ComponentsModule_1() {
|
138
|
-
}
|
139
|
-
return ComponentsModule_1;
|
140
|
-
}());
|
141
|
-
__setFunctionName(_classThis, "ComponentsModule");
|
142
|
-
(function () {
|
143
|
-
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
144
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
145
|
-
ComponentsModule = _classThis = _classDescriptor.value;
|
146
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
147
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
148
|
-
})();
|
149
|
-
return ComponentsModule = _classThis;
|
150
|
-
}();
|
151
|
-
exports.ComponentsModule = ComponentsModule;
|
152
|
-
__exportStar(require("./coer-alert/coer-alert.component"), exports);
|
153
|
-
//export * from './coer-button/coer-button.component';
|
154
|
-
//export * from './coer-checkbox/coer-checkbox.component';
|
155
|
-
//export * from './coer-filebox/coer-filebox.component';
|
156
|
-
//export * from './coer-filebox/coer-filebox.interface';
|
157
|
-
//export * from './coer-form/coer-form.component';
|
158
|
-
//export * from './coer-grid/coer-grid.component';
|
159
|
-
//export * from './coer-grid/coer-grid.interface';
|
160
|
-
//export * from './coer-grid/coer-grid.templates';
|
161
|
-
//export * from './coer-modal/coer-modal.component';
|
162
|
-
//export * from './coer-numberbox/coer-numberbox.component';
|
163
|
-
//export * from './coer-page-title/coer-page-title.component';
|
164
|
-
//export * from './coer-page-title/pageTitle.interface';
|
165
|
-
//export * from './coer-selectbox/coer-selectbox.component';
|
166
|
-
//export * from './coer-switch/coer-switch.component';
|
167
|
-
//export * from './coer-tab/coer-tab.component';
|
168
|
-
//export * from './coer-textbox/coer-textbox.component';
|