@acorex/core 6.5.71 → 6.5.72
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/README.md +6 -2
- package/esm2022/acorex-core.mjs +5 -0
- package/esm2022/index.mjs +44 -0
- package/esm2022/lib/classes/base-page.class.mjs +26 -0
- package/esm2022/lib/classes/color.class.mjs +49 -0
- package/esm2022/lib/classes/datetime.class.mjs +323 -0
- package/esm2022/lib/classes/menu.class.mjs +35 -0
- package/esm2022/lib/classes/navigator.class.mjs +2 -0
- package/esm2022/lib/classes/popup.class.mjs +2 -0
- package/esm2022/lib/classes/promise.class.mjs +21 -0
- package/esm2022/lib/classes/sectionlist.class.mjs +2 -0
- package/esm2022/lib/classes/select.class.mjs +8 -0
- package/esm2022/lib/core.module.mjs +27 -0
- package/esm2022/lib/error/error.class.mjs +2 -0
- package/esm2022/lib/error/error.module.mjs +19 -0
- package/esm2022/lib/error/error.service.mjs +22 -0
- package/esm2022/lib/events/keyboard.mjs +2 -0
- package/esm2022/lib/http/http-error.class.mjs +2 -0
- package/esm2022/lib/http/http-events.interceptor.mjs +3 -0
- package/esm2022/lib/http/http-request.class.mjs +2 -0
- package/esm2022/lib/http/http-result.class.mjs +25 -0
- package/esm2022/lib/http/http.module.mjs +35 -0
- package/esm2022/lib/http/http.service.mjs +148 -0
- package/{esm2020 → esm2022}/lib/locale/en.json +1 -1
- package/esm2022/lib/pipe/datetime.pipe.mjs +25 -0
- package/esm2022/lib/pipe/htmlToText.pipe.mjs +25 -0
- package/esm2022/lib/platform/index.mjs +2 -0
- package/esm2022/lib/platform/platform.service.mjs +152 -0
- package/esm2022/lib/services/config.mjs +29 -0
- package/esm2022/lib/services/event.service.mjs +34 -0
- package/esm2022/lib/services/navigator.service.mjs +10 -0
- package/esm2022/lib/services/storage.service.mjs +16 -0
- package/esm2022/lib/translator/translator.mjs +26 -0
- package/esm2022/lib/translator/translator.module.mjs +25 -0
- package/esm2022/lib/translator/translator.pipe.mjs +24 -0
- package/esm2022/lib/translator/translator.service.mjs +21 -0
- package/esm2022/lib/utils/array/array-util.mjs +133 -0
- package/esm2022/lib/utils/html/html-util.mjs +200 -0
- package/esm2022/lib/utils/html/html.module.mjs +19 -0
- package/esm2022/lib/utils/math/math-util.mjs +6 -0
- package/esm2022/lib/utils/object/object-util.mjs +83 -0
- package/esm2022/lib/utils/render/on-demand-preload-strategy.service.mjs +21 -0
- package/esm2022/lib/utils/render/render.service.mjs +109 -0
- package/esm2022/lib/utils/render/rendering.module.mjs +35 -0
- package/esm2022/lib/utils/scroll/scroll.directive.mjs +56 -0
- package/esm2022/lib/utils/scroll/scroll.module.mjs +19 -0
- package/esm2022/lib/utils/separator/separator.module.mjs +19 -0
- package/esm2022/lib/utils/separator/separator.pipe.mjs +33 -0
- package/{fesm2020 → fesm2022}/acorex-core.mjs +241 -196
- package/fesm2022/acorex-core.mjs.map +1 -0
- package/lib/classes/datetime.class.d.ts +4 -4
- package/lib/pipe/datetime.pipe.d.ts +1 -1
- package/lib/pipe/htmlToText.pipe.d.ts +1 -1
- package/lib/platform/platform.service.d.ts +4 -4
- package/lib/translator/translator.pipe.d.ts +1 -1
- package/lib/utils/html/html-util.d.ts +1 -1
- package/lib/utils/scroll/scroll.directive.d.ts +2 -2
- package/lib/utils/separator/separator.pipe.d.ts +1 -1
- package/package.json +14 -20
- package/acorex-core.d.ts +0 -5
- package/esm2020/acorex-core.mjs +0 -5
- package/esm2020/lib/classes/base-page.class.mjs +0 -28
- package/esm2020/lib/classes/color.class.mjs +0 -49
- package/esm2020/lib/classes/datetime.class.mjs +0 -314
- package/esm2020/lib/classes/menu.class.mjs +0 -27
- package/esm2020/lib/classes/navigator.class.mjs +0 -2
- package/esm2020/lib/classes/popup.class.mjs +0 -2
- package/esm2020/lib/classes/promise.class.mjs +0 -19
- package/esm2020/lib/classes/sectionlist.class.mjs +0 -2
- package/esm2020/lib/classes/select.class.mjs +0 -3
- package/esm2020/lib/core.module.mjs +0 -27
- package/esm2020/lib/error/error.class.mjs +0 -2
- package/esm2020/lib/error/error.module.mjs +0 -19
- package/esm2020/lib/error/error.service.mjs +0 -21
- package/esm2020/lib/events/keyboard.mjs +0 -2
- package/esm2020/lib/http/http-error.class.mjs +0 -2
- package/esm2020/lib/http/http-events.interceptor.mjs +0 -3
- package/esm2020/lib/http/http-request.class.mjs +0 -2
- package/esm2020/lib/http/http-result.class.mjs +0 -21
- package/esm2020/lib/http/http.module.mjs +0 -37
- package/esm2020/lib/http/http.service.mjs +0 -145
- package/esm2020/lib/pipe/datetime.pipe.mjs +0 -25
- package/esm2020/lib/pipe/htmlToText.pipe.mjs +0 -25
- package/esm2020/lib/platform/index.mjs +0 -2
- package/esm2020/lib/platform/platform.service.mjs +0 -150
- package/esm2020/lib/services/config.mjs +0 -29
- package/esm2020/lib/services/event.service.mjs +0 -36
- package/esm2020/lib/services/navigator.service.mjs +0 -10
- package/esm2020/lib/services/storage.service.mjs +0 -16
- package/esm2020/lib/translator/translator.mjs +0 -26
- package/esm2020/lib/translator/translator.module.mjs +0 -25
- package/esm2020/lib/translator/translator.pipe.mjs +0 -24
- package/esm2020/lib/translator/translator.service.mjs +0 -21
- package/esm2020/lib/utils/array/array-util.mjs +0 -133
- package/esm2020/lib/utils/html/html-util.mjs +0 -192
- package/esm2020/lib/utils/html/html.module.mjs +0 -19
- package/esm2020/lib/utils/math/math-util.mjs +0 -6
- package/esm2020/lib/utils/object/object-util.mjs +0 -83
- package/esm2020/lib/utils/render/on-demand-preload-strategy.service.mjs +0 -20
- package/esm2020/lib/utils/render/render.service.mjs +0 -103
- package/esm2020/lib/utils/render/rendering.module.mjs +0 -35
- package/esm2020/lib/utils/scroll/scroll.directive.mjs +0 -54
- package/esm2020/lib/utils/scroll/scroll.module.mjs +0 -19
- package/esm2020/lib/utils/separator/separator.module.mjs +0 -19
- package/esm2020/lib/utils/separator/separator.pipe.mjs +0 -33
- package/esm2020/public-api.mjs +0 -44
- package/fesm2015/acorex-core.mjs +0 -2274
- package/fesm2015/acorex-core.mjs.map +0 -1
- package/fesm2020/acorex-core.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/locale/fa.json +0 -0
- /package/{public-api.d.ts → index.d.ts} +0 -0
package/fesm2015/acorex-core.mjs
DELETED
|
@@ -1,2274 +0,0 @@
|
|
|
1
|
-
import moment from 'jalali-moment';
|
|
2
|
-
import { Subject, fromEvent } from 'rxjs';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, Injectable, InjectionToken, NgModule, Pipe, Directive, Input, HostListener } from '@angular/core';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import * as i1 from '@angular/common/http';
|
|
7
|
-
import { HttpHeaders, HttpParams, HttpClientModule } from '@angular/common/http';
|
|
8
|
-
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
9
|
-
import merge from 'lodash-es/merge';
|
|
10
|
-
import { __awaiter } from 'tslib';
|
|
11
|
-
import * as i1$1 from '@angular/router';
|
|
12
|
-
|
|
13
|
-
class AXColorUtil {
|
|
14
|
-
static hex2Rgb(hexColor) {
|
|
15
|
-
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor);
|
|
16
|
-
return result ? {
|
|
17
|
-
r: parseInt(result[1], 16),
|
|
18
|
-
g: parseInt(result[2], 16),
|
|
19
|
-
b: parseInt(result[3], 16)
|
|
20
|
-
} : null;
|
|
21
|
-
}
|
|
22
|
-
static rgb2Hex(r, g, b, a = 255) {
|
|
23
|
-
let alpha;
|
|
24
|
-
let hex = (r | 1 << 8).toString(16).slice(1) +
|
|
25
|
-
(g | 1 << 8).toString(16).slice(1) +
|
|
26
|
-
(b | 1 << 8).toString(16).slice(1);
|
|
27
|
-
if (a !== 255) {
|
|
28
|
-
alpha = a;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
alpha = 1;
|
|
32
|
-
}
|
|
33
|
-
alpha = Math.round(alpha * 100) / 100;
|
|
34
|
-
alpha = Math.round(alpha * 255);
|
|
35
|
-
const hexAlpha = (alpha + 0x10000).toString(16).substr(-2).toUpperCase();
|
|
36
|
-
return '#' + hex + (alpha == 255 ? '' : hexAlpha);
|
|
37
|
-
}
|
|
38
|
-
;
|
|
39
|
-
static illuminance(hexColor) {
|
|
40
|
-
const rgbColor = AXColorUtil.hex2Rgb(hexColor);
|
|
41
|
-
if (!rgbColor) {
|
|
42
|
-
return -1;
|
|
43
|
-
}
|
|
44
|
-
const r = rgbColor.r;
|
|
45
|
-
const g = rgbColor.g;
|
|
46
|
-
const b = rgbColor.b;
|
|
47
|
-
const a = [r, g, b].map(v => {
|
|
48
|
-
v /= 255;
|
|
49
|
-
return (v <= 0.03928) ?
|
|
50
|
-
v / 12.92 :
|
|
51
|
-
Math.pow(((v + 0.055) / 1.055), 2.4);
|
|
52
|
-
});
|
|
53
|
-
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
|
|
54
|
-
}
|
|
55
|
-
static contrastToWhite(hexColor) {
|
|
56
|
-
const whiteIlluminance = 1;
|
|
57
|
-
const illuminance = AXColorUtil.illuminance(hexColor);
|
|
58
|
-
return whiteIlluminance / illuminance;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// @dynamic
|
|
63
|
-
class AXObjectUtil {
|
|
64
|
-
static deepJSONClone(obj) {
|
|
65
|
-
return obj ? JSON.parse(JSON.stringify(obj)) : null;
|
|
66
|
-
}
|
|
67
|
-
static deepCopy(obj) {
|
|
68
|
-
let copy;
|
|
69
|
-
// Handle the 3 simple types, and null or undefined
|
|
70
|
-
if (null == obj || 'object' !== typeof obj) {
|
|
71
|
-
return obj;
|
|
72
|
-
}
|
|
73
|
-
// Handle Date
|
|
74
|
-
if (obj instanceof Date) {
|
|
75
|
-
copy = new Date();
|
|
76
|
-
copy.setTime(obj.getTime());
|
|
77
|
-
return copy;
|
|
78
|
-
}
|
|
79
|
-
// Handle Array
|
|
80
|
-
if (obj instanceof Array) {
|
|
81
|
-
copy = [];
|
|
82
|
-
for (let i = 0, len = obj.length; i < len; i++) {
|
|
83
|
-
copy[i] = AXObjectUtil.deepCopy(obj[i]);
|
|
84
|
-
}
|
|
85
|
-
return copy;
|
|
86
|
-
}
|
|
87
|
-
// Handle Object
|
|
88
|
-
if (obj instanceof Object) {
|
|
89
|
-
copy = {};
|
|
90
|
-
for (const attr in obj) {
|
|
91
|
-
if (obj.hasOwnProperty(attr)) {
|
|
92
|
-
copy[attr] = AXObjectUtil.deepCopy(obj[attr]);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return copy;
|
|
96
|
-
}
|
|
97
|
-
throw new Error('Unable to copy obj! Its type isn\'t supported.');
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function AXFetchProp(obj, prop) {
|
|
101
|
-
if (typeof obj === 'undefined') {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
const index = prop.indexOf('.');
|
|
105
|
-
if (index > -1) {
|
|
106
|
-
return AXFetchProp(obj[prop.substring(0, index)], prop.substr(index + 1));
|
|
107
|
-
}
|
|
108
|
-
return obj[prop];
|
|
109
|
-
}
|
|
110
|
-
function getPropByPath(obj, path, defaultVal) {
|
|
111
|
-
path = path
|
|
112
|
-
.replace(/\[/g, '.')
|
|
113
|
-
.replace(/]/g, '')
|
|
114
|
-
.split('.');
|
|
115
|
-
path.forEach((level) => {
|
|
116
|
-
if (obj) {
|
|
117
|
-
obj = obj[level];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
if (obj === undefined) {
|
|
121
|
-
return defaultVal;
|
|
122
|
-
}
|
|
123
|
-
return obj;
|
|
124
|
-
}
|
|
125
|
-
function setPropByPath(obj, path, value) {
|
|
126
|
-
if (Object(obj) !== obj) {
|
|
127
|
-
return obj;
|
|
128
|
-
} // When obj is not an object
|
|
129
|
-
// If not yet an array, get the keys from the string-path
|
|
130
|
-
if (!Array.isArray(path)) {
|
|
131
|
-
path = path.toString().match(/[^.[\]]+/g) || [];
|
|
132
|
-
}
|
|
133
|
-
path.slice(0, -1).reduce((a, c, i) => // Iterate all of them except the last one
|
|
134
|
-
Object(a[c]) === a[c] // Does the key exist and is its value an object?
|
|
135
|
-
// Yes: then follow that path
|
|
136
|
-
? a[c]
|
|
137
|
-
// No: create the key. Is the next key a potential array-index?
|
|
138
|
-
: a[c] = Math.abs(path[i + 1]) >> 0 === +path[i + 1]
|
|
139
|
-
? [] // Yes: assign a new array object
|
|
140
|
-
: {}, // No: assign a new plain object
|
|
141
|
-
obj)[path[path.length - 1]] = value; // Finally assign the value to the last key
|
|
142
|
-
return obj[path[0]]; // Return the top-level object to allow chaining
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// @dynamic
|
|
146
|
-
class AXConfig {
|
|
147
|
-
static get onChange() {
|
|
148
|
-
return AXConfig.dataChangeSubject.asObservable();
|
|
149
|
-
}
|
|
150
|
-
static set(arg1, arg2) {
|
|
151
|
-
if (arg1 && typeof arg1 == 'string') {
|
|
152
|
-
setPropByPath(AXConfig.dataModel, arg1, arg2);
|
|
153
|
-
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (arg1 && typeof arg1 == 'object') {
|
|
157
|
-
Object.assign(AXConfig.dataModel, arg1);
|
|
158
|
-
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (!arg1 && !arg2) {
|
|
162
|
-
return AXConfig.dataChangeSubject.asObservable();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
static get(path) {
|
|
166
|
-
return getPropByPath(AXConfig.dataModel, path);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
AXConfig.dataModel = {};
|
|
170
|
-
AXConfig.dataChangeSubject = new Subject();
|
|
171
|
-
|
|
172
|
-
class AXDateTime {
|
|
173
|
-
// private get _moment(): moment_.Moment {
|
|
174
|
-
// const m = moment(this.date);
|
|
175
|
-
// if (this.type === 'jalali') {
|
|
176
|
-
// m.locale('fa');
|
|
177
|
-
// }
|
|
178
|
-
// return m;
|
|
179
|
-
// }
|
|
180
|
-
constructor(value = new Date(), type = AXConfig.get('dateTime.type') || 'gregorian') {
|
|
181
|
-
this.type = type;
|
|
182
|
-
if (value instanceof Date) {
|
|
183
|
-
this._date = value;
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
this._date = new Date(value);
|
|
187
|
-
}
|
|
188
|
-
this._moment = moment(this.date);
|
|
189
|
-
if (this.type === 'jalali') {
|
|
190
|
-
this._moment.locale('fa');
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
static convert(value, type = AXConfig.get('dateTime.type') || 'gregorian') {
|
|
194
|
-
let date;
|
|
195
|
-
if (typeof value === 'string' || value instanceof String) {
|
|
196
|
-
date = new AXDateTime(value, type);
|
|
197
|
-
}
|
|
198
|
-
else if (value instanceof Date) {
|
|
199
|
-
date = new AXDateTime(value, type);
|
|
200
|
-
}
|
|
201
|
-
else if (value instanceof AXDateTime) {
|
|
202
|
-
date = value;
|
|
203
|
-
}
|
|
204
|
-
return date;
|
|
205
|
-
}
|
|
206
|
-
get date() {
|
|
207
|
-
return this._date;
|
|
208
|
-
}
|
|
209
|
-
resolveUnit(unit) {
|
|
210
|
-
return this.type === 'jalali' ? 'j' + unit : unit;
|
|
211
|
-
}
|
|
212
|
-
clone() {
|
|
213
|
-
return new AXDateTime(this.date, this.type);
|
|
214
|
-
}
|
|
215
|
-
get dayInMonth() {
|
|
216
|
-
return this._moment.date();
|
|
217
|
-
}
|
|
218
|
-
get dayOfYear() {
|
|
219
|
-
return this._moment.dayOfYear();
|
|
220
|
-
}
|
|
221
|
-
get dayInWeek() {
|
|
222
|
-
return this._moment.day();
|
|
223
|
-
}
|
|
224
|
-
get hour() {
|
|
225
|
-
return this._moment.hour();
|
|
226
|
-
}
|
|
227
|
-
get minute() {
|
|
228
|
-
return this._moment.minute();
|
|
229
|
-
}
|
|
230
|
-
get second() {
|
|
231
|
-
return this._moment.second();
|
|
232
|
-
}
|
|
233
|
-
get year() {
|
|
234
|
-
return this._moment.year();
|
|
235
|
-
}
|
|
236
|
-
get monthOfYear() {
|
|
237
|
-
return this._moment.month();
|
|
238
|
-
}
|
|
239
|
-
get month() {
|
|
240
|
-
return new AXCalendarMonth(this);
|
|
241
|
-
}
|
|
242
|
-
get firstDayOfWeek() {
|
|
243
|
-
const a = moment(this.date);
|
|
244
|
-
if (this.type === 'jalali') {
|
|
245
|
-
this._moment.locale('fa');
|
|
246
|
-
}
|
|
247
|
-
return new AXDateTime(a.startOf('w').toDate(), this.type);
|
|
248
|
-
}
|
|
249
|
-
get endDayOfWeek() {
|
|
250
|
-
const a = moment(this.date);
|
|
251
|
-
if (this.type === 'jalali') {
|
|
252
|
-
this._moment.locale('fa');
|
|
253
|
-
}
|
|
254
|
-
return new AXDateTime(moment(this.date).endOf('w').toDate(), this.type);
|
|
255
|
-
}
|
|
256
|
-
convertStringToJalali(date, format) {
|
|
257
|
-
return moment(date).locale('fa').format('YYYY/M/D');
|
|
258
|
-
}
|
|
259
|
-
convertStringToGregorian(date, format) {
|
|
260
|
-
return new Date(moment.from(date, 'fa', 'YYYY/MM/DD').format('YYYY/MM/DD'));
|
|
261
|
-
}
|
|
262
|
-
add(unit = 'day', amount) {
|
|
263
|
-
return new AXDateTime(moment(this.date).add(amount, this.resolveUnit(unit)).toDate(), this.type);
|
|
264
|
-
}
|
|
265
|
-
addDay(amount) {
|
|
266
|
-
return new AXDateTime(moment(this.date).add(amount, 'd').toDate(), this.type);
|
|
267
|
-
}
|
|
268
|
-
addMonth(amount) {
|
|
269
|
-
return new AXDateTime(moment(this.date).add(amount, 'months').toDate(), this.type);
|
|
270
|
-
}
|
|
271
|
-
addHour(amount) {
|
|
272
|
-
return new AXDateTime(moment(this.date).add(amount, 'hours').toDate(), this.type);
|
|
273
|
-
}
|
|
274
|
-
set(unit = 'day', value) {
|
|
275
|
-
return new AXDateTime(this._moment.set(unit, value).toDate(), this.type);
|
|
276
|
-
}
|
|
277
|
-
duration(end, unit = 'days') {
|
|
278
|
-
const duration = moment.duration(this._moment.diff(end._moment));
|
|
279
|
-
return Math.round(duration.as(unit));
|
|
280
|
-
}
|
|
281
|
-
startOf(unit = 'day') {
|
|
282
|
-
return new AXDateTime(moment(this.date).startOf(this.resolveUnit(unit)).toDate(), this.type);
|
|
283
|
-
}
|
|
284
|
-
endOf(unit = 'day') {
|
|
285
|
-
return new AXDateTime(moment(this.date).endOf(this.resolveUnit(unit)).toDate(), this.type);
|
|
286
|
-
}
|
|
287
|
-
format(format = AXConfig.get('dateTime.shortDateFormat') || (this.type === 'gregorian' ? 'DD-MM-YYYY' : 'YYYY-MM-DD')) {
|
|
288
|
-
if (format === 'P') {
|
|
289
|
-
return this._moment.fromNow();
|
|
290
|
-
}
|
|
291
|
-
return this._moment.format(format);
|
|
292
|
-
}
|
|
293
|
-
toString() {
|
|
294
|
-
return this.format();
|
|
295
|
-
}
|
|
296
|
-
equal(value, unit = 'day') {
|
|
297
|
-
if (!value) {
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
300
|
-
return this._moment.isSame(moment(value.date), this.resolveUnit(unit));
|
|
301
|
-
}
|
|
302
|
-
convertToJalaliDate(value) {
|
|
303
|
-
const options = {
|
|
304
|
-
numberingSystem: 'latn',
|
|
305
|
-
year: 'numeric',
|
|
306
|
-
month: '2-digit',
|
|
307
|
-
day: '2-digit',
|
|
308
|
-
hour: '2-digit',
|
|
309
|
-
minute: '2-digit',
|
|
310
|
-
second: '2-digit'
|
|
311
|
-
};
|
|
312
|
-
const jDate = new Date(value).toLocaleDateString('fa-IR', options);
|
|
313
|
-
const item = {};
|
|
314
|
-
item.year = jDate.slice(0, 4);
|
|
315
|
-
item.month = jDate.slice(5, 7);
|
|
316
|
-
item.day = jDate.slice(8, 10);
|
|
317
|
-
item.hour = jDate.slice(13, 15);
|
|
318
|
-
item.minutes = jDate.slice(16, 18);
|
|
319
|
-
item.seconds = jDate.slice(19, 21);
|
|
320
|
-
return item;
|
|
321
|
-
}
|
|
322
|
-
toJalaliString(value) {
|
|
323
|
-
const date = this.convertToJalaliDate(value);
|
|
324
|
-
let str = '';
|
|
325
|
-
str = date.year + '-' + date.month + '-' + date.day + 'T' + date.hour + ':' + date.minutes + ':' + date.seconds;
|
|
326
|
-
return str;
|
|
327
|
-
}
|
|
328
|
-
convertToGregorianDate(value) {
|
|
329
|
-
// TODO: check this fucking type
|
|
330
|
-
const options = {
|
|
331
|
-
numberingSystem: 'latn',
|
|
332
|
-
year: 'numeric',
|
|
333
|
-
month: '2-digit',
|
|
334
|
-
day: '2-digit',
|
|
335
|
-
hour: '2-digit',
|
|
336
|
-
minute: '2-digit',
|
|
337
|
-
second: '2-digit'
|
|
338
|
-
};
|
|
339
|
-
const date = new Date(value).toLocaleString('en-us', options);
|
|
340
|
-
const item = {};
|
|
341
|
-
item.year = date.slice(6, 10);
|
|
342
|
-
item.month = date.slice(0, 2);
|
|
343
|
-
item.day = date.slice(3, 5);
|
|
344
|
-
item.hour = date.slice(12, 14);
|
|
345
|
-
item.minutes = date.slice(15, 17);
|
|
346
|
-
item.seconds = date.slice(18, 20);
|
|
347
|
-
return item;
|
|
348
|
-
}
|
|
349
|
-
toGregorianString(value) {
|
|
350
|
-
const date = this.convertToGregorianDate(value);
|
|
351
|
-
let str = '';
|
|
352
|
-
str = date.year + '-' + date.month + '-' + date.day + 'T' + date.hour + ':' + date.minutes + ':' + date.seconds;
|
|
353
|
-
return str;
|
|
354
|
-
}
|
|
355
|
-
compaireNew(value, unit = 'YMD', type = 'jalali') {
|
|
356
|
-
const range = [0, 0];
|
|
357
|
-
let str1;
|
|
358
|
-
let str2;
|
|
359
|
-
if (type === 'jalali') {
|
|
360
|
-
str1 = this.toJalaliString(this.date);
|
|
361
|
-
str2 = this.toJalaliString(value.date ? value.date : value);
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
str1 = this.toGregorianString(this.date);
|
|
365
|
-
str2 = this.toGregorianString(value.date ? value.date : value);
|
|
366
|
-
}
|
|
367
|
-
switch (unit) {
|
|
368
|
-
case 'YMDhms':
|
|
369
|
-
range[0] = 0;
|
|
370
|
-
range[1] = 19;
|
|
371
|
-
break;
|
|
372
|
-
case 'YMDhm':
|
|
373
|
-
range[0] = 0;
|
|
374
|
-
range[1] = 16;
|
|
375
|
-
break;
|
|
376
|
-
case 'YMDh':
|
|
377
|
-
range[0] = 0;
|
|
378
|
-
range[1] = 13;
|
|
379
|
-
break;
|
|
380
|
-
case 'YMD':
|
|
381
|
-
range[0] = 0;
|
|
382
|
-
range[1] = 10;
|
|
383
|
-
break;
|
|
384
|
-
case 'YM':
|
|
385
|
-
range[0] = 0;
|
|
386
|
-
range[1] = 7;
|
|
387
|
-
break;
|
|
388
|
-
case 'h':
|
|
389
|
-
range[0] = 11;
|
|
390
|
-
range[1] = 13;
|
|
391
|
-
break;
|
|
392
|
-
case 'm':
|
|
393
|
-
range[0] = 14;
|
|
394
|
-
range[1] = 16;
|
|
395
|
-
break;
|
|
396
|
-
case 's':
|
|
397
|
-
range[0] = 17;
|
|
398
|
-
range[1] = 19;
|
|
399
|
-
break;
|
|
400
|
-
case 'D':
|
|
401
|
-
range[0] = 8;
|
|
402
|
-
range[1] = 10;
|
|
403
|
-
break;
|
|
404
|
-
case 'M':
|
|
405
|
-
range[0] = 5;
|
|
406
|
-
range[1] = 7;
|
|
407
|
-
break;
|
|
408
|
-
case 'Y':
|
|
409
|
-
range[0] = 0;
|
|
410
|
-
range[1] = 4;
|
|
411
|
-
break;
|
|
412
|
-
}
|
|
413
|
-
if (str1.slice(range[0], range[1]) === str2.slice(range[0], range[1])) {
|
|
414
|
-
return 0;
|
|
415
|
-
}
|
|
416
|
-
else if (str1.slice(range[0], range[1]) > str2.slice(range[0], range[1])) {
|
|
417
|
-
return 1;
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
return -1;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
compaire(value, unit = 'day') {
|
|
424
|
-
if (this._moment.isSame(moment(value.date), this.resolveUnit(unit))) {
|
|
425
|
-
return 0;
|
|
426
|
-
}
|
|
427
|
-
else if (this._moment.isAfter(moment(value.date), this.resolveUnit(unit))) {
|
|
428
|
-
return 1;
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
return -1;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
toISOString() {
|
|
435
|
-
return this._date.toISOString();
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
class AXCalendarMonth {
|
|
439
|
-
constructor(date) {
|
|
440
|
-
this._moment = moment(date.date);
|
|
441
|
-
this.index = date.date.getMonth();
|
|
442
|
-
this.name = this._moment.format('MMMM');
|
|
443
|
-
this.range = new AXDateTimeRange(new AXDateTime(this._moment.startOf('month').toDate(), date.type), new AXDateTime(this._moment.endOf('month').toDate(), date.type));
|
|
444
|
-
}
|
|
445
|
-
get range() {
|
|
446
|
-
return this._range;
|
|
447
|
-
}
|
|
448
|
-
set range(v) {
|
|
449
|
-
this._range = v;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
class AXDateTimeRange {
|
|
453
|
-
constructor(startTime, endTime) {
|
|
454
|
-
this.startTime = startTime;
|
|
455
|
-
this.endTime = endTime;
|
|
456
|
-
}
|
|
457
|
-
duration(unit = 'days') {
|
|
458
|
-
const duration = moment.duration(moment(this.startTime.date).diff(moment(this.endTime.date)));
|
|
459
|
-
return duration.as(unit);
|
|
460
|
-
}
|
|
461
|
-
enumurate(unit = 'day', type = AXConfig.get('dateTime.type') || 'jalali') {
|
|
462
|
-
const result = [];
|
|
463
|
-
for (let index = 0; this.startTime.add(unit, index).compaireNew(this.endTime, this.getViewCompaire(unit), type) <= 0; index++) {
|
|
464
|
-
result.push(this.startTime.add(unit, index));
|
|
465
|
-
}
|
|
466
|
-
return result;
|
|
467
|
-
}
|
|
468
|
-
includes(value, unit = 'day', type = 'jalali') {
|
|
469
|
-
return (value.compaireNew(this.startTime, this.getViewCompaire(unit), type) >= 0 &&
|
|
470
|
-
value.compaireNew(this.endTime, this.getViewCompaire(unit), type) <= 0);
|
|
471
|
-
}
|
|
472
|
-
getViewCompaire(view) {
|
|
473
|
-
switch (view) {
|
|
474
|
-
case 'day':
|
|
475
|
-
return 'YMD';
|
|
476
|
-
case 'month':
|
|
477
|
-
return 'YM';
|
|
478
|
-
case 'year':
|
|
479
|
-
return 'Y';
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
class AXBaseMenuItem {
|
|
485
|
-
constructor() {
|
|
486
|
-
this.uid = new Date().getTime().toString();
|
|
487
|
-
this.visible = true;
|
|
488
|
-
this.disable = false;
|
|
489
|
-
this.selected = false;
|
|
490
|
-
this.style = 'ax light';
|
|
491
|
-
this.orderIndex = 0;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
class AXMenuItem extends AXBaseMenuItem {
|
|
495
|
-
constructor() {
|
|
496
|
-
super(...arguments);
|
|
497
|
-
this.divider = false;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
class AXButtonItem extends AXBaseMenuItem {
|
|
501
|
-
constructor() {
|
|
502
|
-
super(...arguments);
|
|
503
|
-
this.dropdown = false;
|
|
504
|
-
this.submitBehavior = false;
|
|
505
|
-
this.cancelBehavior = false;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
class AXCheckItem {
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
class AXPromise {
|
|
512
|
-
constructor(executor) {
|
|
513
|
-
this._executor = executor;
|
|
514
|
-
setTimeout(() => {
|
|
515
|
-
this._executor(this.thenAction);
|
|
516
|
-
}, 50);
|
|
517
|
-
}
|
|
518
|
-
static resolve(value) {
|
|
519
|
-
const r = new AXPromise(z => {
|
|
520
|
-
z(value);
|
|
521
|
-
}).then(() => { });
|
|
522
|
-
return r;
|
|
523
|
-
}
|
|
524
|
-
then(action) {
|
|
525
|
-
this.thenAction = action;
|
|
526
|
-
return this;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
class AXSelectItem {
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* @deprecated Use AXBasePageComponent from @acorex/components
|
|
535
|
-
*/
|
|
536
|
-
// TODO: Add Angular decorator.
|
|
537
|
-
class AXBasePageComponent {
|
|
538
|
-
constructor() {
|
|
539
|
-
this.onClosed = new EventEmitter();
|
|
540
|
-
}
|
|
541
|
-
close(data) {
|
|
542
|
-
this.onClosed.emit({
|
|
543
|
-
component: this,
|
|
544
|
-
data: data
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
onClosing(e) {
|
|
548
|
-
}
|
|
549
|
-
ngOnDestroy() {
|
|
550
|
-
this.onClosed.unsubscribe();
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
AXBasePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXBasePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
554
|
-
AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXBasePageComponent });
|
|
555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXBasePageComponent, decorators: [{
|
|
556
|
-
type: Injectable
|
|
557
|
-
}] });
|
|
558
|
-
|
|
559
|
-
const AX_ERROR_DISPLAY_INTERCEPTOR = new InjectionToken('ax.error');
|
|
560
|
-
class AXErrorService {
|
|
561
|
-
constructor(injector) {
|
|
562
|
-
this.injector = injector;
|
|
563
|
-
}
|
|
564
|
-
handle(message) {
|
|
565
|
-
const instance = this.injector.get(AX_ERROR_DISPLAY_INTERCEPTOR);
|
|
566
|
-
if (instance) {
|
|
567
|
-
instance.show(message);
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
AXErrorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
572
|
-
AXErrorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorService, providedIn: 'root' });
|
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorService, decorators: [{
|
|
574
|
-
type: Injectable,
|
|
575
|
-
args: [{ providedIn: 'root' }]
|
|
576
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
577
|
-
|
|
578
|
-
class AXErrorModule {
|
|
579
|
-
}
|
|
580
|
-
AXErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
581
|
-
AXErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorModule, imports: [CommonModule] });
|
|
582
|
-
AXErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorModule, providers: [AXErrorService], imports: [[CommonModule]] });
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXErrorModule, decorators: [{
|
|
584
|
-
type: NgModule,
|
|
585
|
-
args: [{
|
|
586
|
-
declarations: [],
|
|
587
|
-
imports: [CommonModule],
|
|
588
|
-
exports: [],
|
|
589
|
-
providers: [AXErrorService],
|
|
590
|
-
}]
|
|
591
|
-
}] });
|
|
592
|
-
|
|
593
|
-
const AX_HTTP_EVENT_INTERCEPTOR = new InjectionToken('ax.http.events');
|
|
594
|
-
|
|
595
|
-
class HttpResult {
|
|
596
|
-
constructor(executor) {
|
|
597
|
-
this._executor = executor;
|
|
598
|
-
setTimeout(() => {
|
|
599
|
-
this._executor(this.resultAction, this.errorAction, this.completeAction);
|
|
600
|
-
}, 50);
|
|
601
|
-
}
|
|
602
|
-
result(action) {
|
|
603
|
-
this.resultAction = action;
|
|
604
|
-
return this;
|
|
605
|
-
}
|
|
606
|
-
error(action) {
|
|
607
|
-
this.errorAction = action;
|
|
608
|
-
return this;
|
|
609
|
-
}
|
|
610
|
-
complete(action) {
|
|
611
|
-
this.completeAction = action;
|
|
612
|
-
return this;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
// import { catchError, retry, retryWhen, mergeMap, delay, switchMap, scan, takeWhile, flatMap } from 'rxjs/operators';
|
|
617
|
-
// import { of, concat, throwError } from 'rxjs';
|
|
618
|
-
class AXHttpService {
|
|
619
|
-
constructor(http, injector) {
|
|
620
|
-
this.http = http;
|
|
621
|
-
this.injector = injector;
|
|
622
|
-
this.interceptor = this.injector.get(AX_HTTP_EVENT_INTERCEPTOR);
|
|
623
|
-
}
|
|
624
|
-
get(url, config = {}) {
|
|
625
|
-
config.url = url;
|
|
626
|
-
config.method = "get";
|
|
627
|
-
return this.request(config);
|
|
628
|
-
}
|
|
629
|
-
post(url, config = {}) {
|
|
630
|
-
config.url = url;
|
|
631
|
-
config.method = "post";
|
|
632
|
-
return this.request(config);
|
|
633
|
-
}
|
|
634
|
-
delete(url, config = {}) {
|
|
635
|
-
config.url = url;
|
|
636
|
-
config.method = "delete";
|
|
637
|
-
return this.request(config);
|
|
638
|
-
}
|
|
639
|
-
put(url, config = {}) {
|
|
640
|
-
config.url = url;
|
|
641
|
-
config.method = "put";
|
|
642
|
-
return this.request(config);
|
|
643
|
-
}
|
|
644
|
-
request(config) {
|
|
645
|
-
return new HttpResult((result, error, complete) => {
|
|
646
|
-
this.handleBegin(config).then(c => {
|
|
647
|
-
this.http
|
|
648
|
-
.request(config.method, config.url, this.mapOptions(config))
|
|
649
|
-
//.pipe(this.retry)
|
|
650
|
-
.subscribe(data => {
|
|
651
|
-
this.handleResult(data, result, complete, config);
|
|
652
|
-
}, c => {
|
|
653
|
-
this.handleError(c, error, complete, config);
|
|
654
|
-
});
|
|
655
|
-
});
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
handleResult(data, result, complete, config) {
|
|
659
|
-
if (this.interceptor) {
|
|
660
|
-
this.interceptor.success(config, data).then(c => {
|
|
661
|
-
if (result)
|
|
662
|
-
result(c);
|
|
663
|
-
this.handleComplete(complete, config);
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
//
|
|
668
|
-
if (result)
|
|
669
|
-
result(data);
|
|
670
|
-
this.handleComplete(complete, config);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
handleBegin(config) {
|
|
674
|
-
return new Promise((resolve) => {
|
|
675
|
-
if (!config.headers)
|
|
676
|
-
config.headers = {};
|
|
677
|
-
if (!config.params)
|
|
678
|
-
config.params = {};
|
|
679
|
-
//
|
|
680
|
-
if (this.interceptor) {
|
|
681
|
-
this.interceptor.begin(config).then(c => {
|
|
682
|
-
resolve(c);
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
else {
|
|
686
|
-
resolve(config);
|
|
687
|
-
}
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
handleComplete(complete, config) {
|
|
691
|
-
if (complete)
|
|
692
|
-
complete();
|
|
693
|
-
if (this.interceptor)
|
|
694
|
-
this.interceptor.complete(config);
|
|
695
|
-
}
|
|
696
|
-
handleError(c, error, complete, config) {
|
|
697
|
-
var _a;
|
|
698
|
-
let r = {
|
|
699
|
-
message: c.message,
|
|
700
|
-
status: c.status,
|
|
701
|
-
code: (_a = c.status) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
702
|
-
handled: false,
|
|
703
|
-
error: c.error
|
|
704
|
-
};
|
|
705
|
-
if (error) {
|
|
706
|
-
error(r);
|
|
707
|
-
}
|
|
708
|
-
if (!r.handled) {
|
|
709
|
-
if (this.interceptor)
|
|
710
|
-
this.interceptor.error(config, r);
|
|
711
|
-
}
|
|
712
|
-
this.handleComplete(complete, config);
|
|
713
|
-
}
|
|
714
|
-
mapOptions(options) {
|
|
715
|
-
let headers = new HttpHeaders();
|
|
716
|
-
for (const key in options.headers) {
|
|
717
|
-
if (options.headers.hasOwnProperty(key)) {
|
|
718
|
-
const value = options.headers[key];
|
|
719
|
-
headers = headers.set(key, value);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
let params = new HttpParams();
|
|
723
|
-
for (const key in options.params) {
|
|
724
|
-
if (options.params.hasOwnProperty(key)) {
|
|
725
|
-
const value = options.params[key];
|
|
726
|
-
params = params.set(key, value);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
return {
|
|
730
|
-
headers: headers,
|
|
731
|
-
params: params,
|
|
732
|
-
body: options.body,
|
|
733
|
-
responseType: options.responseType || 'json'
|
|
734
|
-
};
|
|
735
|
-
// if (options.method == "get") {
|
|
736
|
-
// return {
|
|
737
|
-
// headers: headers,
|
|
738
|
-
// params: params
|
|
739
|
-
// };
|
|
740
|
-
// }
|
|
741
|
-
// else {
|
|
742
|
-
// return {
|
|
743
|
-
// headers: headers,
|
|
744
|
-
// params: params,
|
|
745
|
-
// body: options.body
|
|
746
|
-
// };
|
|
747
|
-
// }
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
AXHttpService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpService, deps: [{ token: i1.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
751
|
-
AXHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpService });
|
|
752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpService, decorators: [{
|
|
753
|
-
type: Injectable
|
|
754
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i0.Injector }]; } });
|
|
755
|
-
|
|
756
|
-
class AXHttpModule {
|
|
757
|
-
static forRoot() {
|
|
758
|
-
return {
|
|
759
|
-
ngModule: AXHttpModule,
|
|
760
|
-
providers: [AXHttpService]
|
|
761
|
-
};
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
AXHttpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
765
|
-
AXHttpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpModule, imports: [CommonModule,
|
|
766
|
-
HttpClientModule], exports: [HttpClientModule] });
|
|
767
|
-
AXHttpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpModule, providers: [
|
|
768
|
-
AXHttpService
|
|
769
|
-
], imports: [[
|
|
770
|
-
CommonModule,
|
|
771
|
-
HttpClientModule
|
|
772
|
-
], HttpClientModule] });
|
|
773
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHttpModule, decorators: [{
|
|
774
|
-
type: NgModule,
|
|
775
|
-
args: [{
|
|
776
|
-
declarations: [],
|
|
777
|
-
imports: [
|
|
778
|
-
CommonModule,
|
|
779
|
-
HttpClientModule
|
|
780
|
-
],
|
|
781
|
-
exports: [HttpClientModule],
|
|
782
|
-
providers: [
|
|
783
|
-
AXHttpService
|
|
784
|
-
]
|
|
785
|
-
}]
|
|
786
|
-
}] });
|
|
787
|
-
|
|
788
|
-
const isChrome = (win) => testUserAgent(win, /Chrome/i);
|
|
789
|
-
const isFirefox = (win) => testUserAgent(win, /Firefox/i);
|
|
790
|
-
const isEdge = (win) => testUserAgent(win, /Edge/i);
|
|
791
|
-
const isSafari = (win) => testUserAgent(win, /Safari/i);
|
|
792
|
-
const isOpera = (win) => testUserAgent(win, /Opera/i) || testUserAgent(win, /OPR/i);
|
|
793
|
-
const isMSIE = (win) => testUserAgent(win, /MSIE/i) || testUserAgent(win, /Trident/i);
|
|
794
|
-
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
795
|
-
const isIpad = (win) => {
|
|
796
|
-
// iOS 12 and below
|
|
797
|
-
if (testUserAgent(win, /iPad/i)) {
|
|
798
|
-
return true;
|
|
799
|
-
}
|
|
800
|
-
// iOS 13+
|
|
801
|
-
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
802
|
-
return true;
|
|
803
|
-
}
|
|
804
|
-
return false;
|
|
805
|
-
};
|
|
806
|
-
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
807
|
-
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
808
|
-
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
809
|
-
const isAndroidTablet = (win) => {
|
|
810
|
-
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
811
|
-
};
|
|
812
|
-
const isPhablet = (win) => {
|
|
813
|
-
const width = win.innerWidth;
|
|
814
|
-
const height = win.innerHeight;
|
|
815
|
-
const smallest = Math.min(width, height);
|
|
816
|
-
const largest = Math.max(width, height);
|
|
817
|
-
return (smallest > 390 && smallest < 520) &&
|
|
818
|
-
(largest > 620 && largest < 800);
|
|
819
|
-
};
|
|
820
|
-
const isTablet = (win) => {
|
|
821
|
-
const width = win.innerWidth;
|
|
822
|
-
const height = win.innerHeight;
|
|
823
|
-
const smallest = Math.min(width, height);
|
|
824
|
-
const largest = Math.max(width, height);
|
|
825
|
-
return (isIpad(win) ||
|
|
826
|
-
isAndroidTablet(win) ||
|
|
827
|
-
((smallest > 460 && smallest < 820) &&
|
|
828
|
-
(largest > 780 && largest < 1400)));
|
|
829
|
-
};
|
|
830
|
-
const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
|
|
831
|
-
const isTouch = (win) => matchMedia(win, '(any-pointer:coarse)');
|
|
832
|
-
const isDesktop = (win) => !isMobile(win);
|
|
833
|
-
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
834
|
-
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
835
|
-
const isCapacitorNative = (win) => {
|
|
836
|
-
const capacitor = win['Capacitor'];
|
|
837
|
-
return !!(capacitor && capacitor.isNative);
|
|
838
|
-
};
|
|
839
|
-
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
840
|
-
const isPWA = (win) => !!(win.matchMedia('(display-mode: standalone)').matches || win.navigator.standalone);
|
|
841
|
-
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
842
|
-
const matchMedia = (win, query) => win.matchMedia(query).matches;
|
|
843
|
-
const isSMScreen = (win) => matchMedia(win, '(max-width: 640px)');
|
|
844
|
-
const isMDScreen = (win) => matchMedia(win, '(max-width: 768px)');
|
|
845
|
-
const isLGScreen = (win) => matchMedia(win, '(max-width: 1024px)');
|
|
846
|
-
const isXLScreen = (win) => matchMedia(win, '(max-width: 1280px)');
|
|
847
|
-
const is2XLScreen = (win) => matchMedia(win, '(max-width: 1536px)');
|
|
848
|
-
const PLATFORMS_MAP = {
|
|
849
|
-
'Android': isAndroid,
|
|
850
|
-
'iOS': isIOS,
|
|
851
|
-
'Desktop': isDesktop,
|
|
852
|
-
'Mobile': isMobile,
|
|
853
|
-
'Touch': isTouch,
|
|
854
|
-
'Chrome': isChrome,
|
|
855
|
-
'Firefox': isFirefox,
|
|
856
|
-
'Safari': isSafari,
|
|
857
|
-
'Edge': isEdge,
|
|
858
|
-
'Opera': isOpera,
|
|
859
|
-
'Hybrid': isHybrid,
|
|
860
|
-
'PWA': isPWA,
|
|
861
|
-
'Electron': isElectron,
|
|
862
|
-
SM: isSMScreen,
|
|
863
|
-
MD: isMDScreen,
|
|
864
|
-
LG: isLGScreen,
|
|
865
|
-
XL: isXLScreen,
|
|
866
|
-
"2XL": is2XLScreen,
|
|
867
|
-
};
|
|
868
|
-
class AXPlatformEvent {
|
|
869
|
-
}
|
|
870
|
-
class AXPlatform {
|
|
871
|
-
constructor() {
|
|
872
|
-
this.resize = new Subject();
|
|
873
|
-
this.click = new Subject();
|
|
874
|
-
this.scroll = new Subject();
|
|
875
|
-
fromEvent(window, 'resize')
|
|
876
|
-
.pipe(debounceTime(100))
|
|
877
|
-
.pipe(distinctUntilChanged())
|
|
878
|
-
.subscribe((e) => {
|
|
879
|
-
this.resize.next({
|
|
880
|
-
nativeEvent: e,
|
|
881
|
-
source: this
|
|
882
|
-
});
|
|
883
|
-
//
|
|
884
|
-
this._setFullHeightRatio();
|
|
885
|
-
});
|
|
886
|
-
document.addEventListener('click', (e) => {
|
|
887
|
-
this.click.next({
|
|
888
|
-
nativeEvent: e,
|
|
889
|
-
source: this
|
|
890
|
-
});
|
|
891
|
-
}, true);
|
|
892
|
-
document.addEventListener('scroll', (e) => {
|
|
893
|
-
this.scroll.next({
|
|
894
|
-
nativeEvent: e,
|
|
895
|
-
source: this
|
|
896
|
-
});
|
|
897
|
-
}, true);
|
|
898
|
-
// init functions
|
|
899
|
-
this._setFullHeightRatio();
|
|
900
|
-
}
|
|
901
|
-
isRtl() {
|
|
902
|
-
return document.dir == 'rtl' || document.body.dir == 'rtl' || document.body.style.direction == 'rtl';
|
|
903
|
-
}
|
|
904
|
-
isLandscape() {
|
|
905
|
-
return window.innerHeight < window.innerWidth;
|
|
906
|
-
}
|
|
907
|
-
isPortrate() {
|
|
908
|
-
return !this.isLandscape();
|
|
909
|
-
}
|
|
910
|
-
is(name) {
|
|
911
|
-
return PLATFORMS_MAP[name](window) || false;
|
|
912
|
-
}
|
|
913
|
-
switchDarkMode() {
|
|
914
|
-
const _html = document.getElementsByTagName("html")[0];
|
|
915
|
-
_html.classList.add('ax-dark');
|
|
916
|
-
}
|
|
917
|
-
switchLightMode() {
|
|
918
|
-
const _html = document.getElementsByTagName("html")[0];
|
|
919
|
-
_html.classList.remove('ax-dark');
|
|
920
|
-
}
|
|
921
|
-
_setFullHeightRatio() {
|
|
922
|
-
document.querySelector(':root').style.setProperty('--ax-vh', window.innerHeight / 100 + 'px');
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
AXPlatform.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXPlatform, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
926
|
-
AXPlatform.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXPlatform, providedIn: 'root' });
|
|
927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXPlatform, decorators: [{
|
|
928
|
-
type: Injectable,
|
|
929
|
-
args: [{
|
|
930
|
-
providedIn: 'root',
|
|
931
|
-
}]
|
|
932
|
-
}], ctorParameters: function () { return []; } });
|
|
933
|
-
|
|
934
|
-
class AXDateTimePipe {
|
|
935
|
-
constructor() { }
|
|
936
|
-
transform(value, format) {
|
|
937
|
-
const date = AXDateTime.convert(value);
|
|
938
|
-
if (value == null) {
|
|
939
|
-
return '';
|
|
940
|
-
}
|
|
941
|
-
if (!format) {
|
|
942
|
-
return date.toString();
|
|
943
|
-
}
|
|
944
|
-
else {
|
|
945
|
-
return date.format(format);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
AXDateTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
950
|
-
AXDateTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDateTimePipe, name: "dt" });
|
|
951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDateTimePipe, decorators: [{
|
|
952
|
-
type: Pipe,
|
|
953
|
-
args: [{ name: 'dt' }]
|
|
954
|
-
}], ctorParameters: function () { return []; } });
|
|
955
|
-
|
|
956
|
-
class AXHtmlToTextPipe {
|
|
957
|
-
transform(value) {
|
|
958
|
-
if (value) {
|
|
959
|
-
const regexHtml = /<\/?[^>]+>/gi;
|
|
960
|
-
const regexNbsp = / /gi;
|
|
961
|
-
const regexAmp = /&/gi;
|
|
962
|
-
return value
|
|
963
|
-
.replace(regexHtml, '')
|
|
964
|
-
.replace(regexNbsp, '')
|
|
965
|
-
.replace(regexAmp, '');
|
|
966
|
-
}
|
|
967
|
-
else {
|
|
968
|
-
return '';
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
AXHtmlToTextPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlToTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
973
|
-
AXHtmlToTextPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlToTextPipe, name: "html2text" });
|
|
974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlToTextPipe, decorators: [{
|
|
975
|
-
type: Pipe,
|
|
976
|
-
args: [{ name: 'html2text' }]
|
|
977
|
-
}] });
|
|
978
|
-
|
|
979
|
-
class AXEventService {
|
|
980
|
-
constructor() {
|
|
981
|
-
this.list = [];
|
|
982
|
-
}
|
|
983
|
-
broadcast(key, options) {
|
|
984
|
-
const d = this.list.find(c => c.key === key);
|
|
985
|
-
if (d) {
|
|
986
|
-
d.events.forEach(c => {
|
|
987
|
-
c(options);
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
on(key, callback) {
|
|
992
|
-
let d = this.list.find(c => c.key === key);
|
|
993
|
-
if (!d) {
|
|
994
|
-
d = { key, events: [] };
|
|
995
|
-
this.list.push(d);
|
|
996
|
-
}
|
|
997
|
-
d.events.push(callback);
|
|
998
|
-
}
|
|
999
|
-
destroy(key, callback) {
|
|
1000
|
-
const d = this.list.find(c => c.key === key);
|
|
1001
|
-
if (d) {
|
|
1002
|
-
d.events = [];
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
AXEventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1007
|
-
AXEventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXEventService, providedIn: 'root' });
|
|
1008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXEventService, decorators: [{
|
|
1009
|
-
type: Injectable,
|
|
1010
|
-
args: [{ providedIn: 'root' }]
|
|
1011
|
-
}] });
|
|
1012
|
-
|
|
1013
|
-
class AXNavigator {
|
|
1014
|
-
}
|
|
1015
|
-
AXNavigator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNavigator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1016
|
-
AXNavigator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNavigator });
|
|
1017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNavigator, decorators: [{
|
|
1018
|
-
type: Injectable
|
|
1019
|
-
}] });
|
|
1020
|
-
|
|
1021
|
-
class AXStorageService {
|
|
1022
|
-
get(key) {
|
|
1023
|
-
return localStorage.getItem(key);
|
|
1024
|
-
}
|
|
1025
|
-
set(key, value) {
|
|
1026
|
-
localStorage.setItem(key, value);
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
AXStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1030
|
-
AXStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXStorageService });
|
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXStorageService, decorators: [{
|
|
1032
|
-
type: Injectable
|
|
1033
|
-
}] });
|
|
1034
|
-
|
|
1035
|
-
// @dynamic
|
|
1036
|
-
class AXTranslator {
|
|
1037
|
-
static get onChange() {
|
|
1038
|
-
return AXTranslator.dataChangeSubject.asObservable();
|
|
1039
|
-
}
|
|
1040
|
-
static load(lang, value) {
|
|
1041
|
-
if (typeof value === 'object') {
|
|
1042
|
-
if (!AXTranslator[`__data__${lang}`]) {
|
|
1043
|
-
AXTranslator[`__data__${lang}`] = {};
|
|
1044
|
-
}
|
|
1045
|
-
AXTranslator[`__data__${lang}`] = merge(AXTranslator[`__data__${lang}`], value);
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
static use(lang) {
|
|
1049
|
-
AXTranslator.lang = lang;
|
|
1050
|
-
}
|
|
1051
|
-
static get(key, lang) {
|
|
1052
|
-
return getPropByPath(AXTranslator[`__data__${lang || AXTranslator.lang}`], key) || key;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
AXTranslator.lang = 'en';
|
|
1056
|
-
AXTranslator.dataChangeSubject = new Subject();
|
|
1057
|
-
|
|
1058
|
-
class AXTranslatorService {
|
|
1059
|
-
load(lang, value) {
|
|
1060
|
-
AXTranslator.load(lang, value);
|
|
1061
|
-
}
|
|
1062
|
-
use(lang) {
|
|
1063
|
-
AXTranslator.use(lang);
|
|
1064
|
-
}
|
|
1065
|
-
get(key, lang) {
|
|
1066
|
-
return AXTranslator.get(lang, lang);
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
AXTranslatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1070
|
-
AXTranslatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorService, providedIn: 'platform' });
|
|
1071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorService, decorators: [{
|
|
1072
|
-
type: Injectable,
|
|
1073
|
-
args: [{ providedIn: 'platform' }]
|
|
1074
|
-
}] });
|
|
1075
|
-
|
|
1076
|
-
class AXTranslatorPipe {
|
|
1077
|
-
constructor() { }
|
|
1078
|
-
// transform(value: string, lang?: string): Promise<string> {
|
|
1079
|
-
// return new Promise<string>((resolve, reject) => {
|
|
1080
|
-
// if (!value) {
|
|
1081
|
-
// resolve(value);
|
|
1082
|
-
// }
|
|
1083
|
-
// resolve(this.translate.get(value, lang));
|
|
1084
|
-
// });
|
|
1085
|
-
// }
|
|
1086
|
-
transform(value, lang) {
|
|
1087
|
-
return AXTranslator.get(value, lang);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
AXTranslatorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1091
|
-
AXTranslatorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorPipe, name: "trans" });
|
|
1092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorPipe, decorators: [{
|
|
1093
|
-
type: Pipe,
|
|
1094
|
-
args: [{ name: 'trans', pure: true }]
|
|
1095
|
-
}], ctorParameters: function () { return []; } });
|
|
1096
|
-
|
|
1097
|
-
var common$1 = {
|
|
1098
|
-
search: "Search",
|
|
1099
|
-
yes: "yes",
|
|
1100
|
-
no: "No",
|
|
1101
|
-
confirm: "Confirm",
|
|
1102
|
-
okay: "Okay",
|
|
1103
|
-
cancel: "Cancel",
|
|
1104
|
-
remove: "Remove",
|
|
1105
|
-
edit: "Edit",
|
|
1106
|
-
configs: "Configs",
|
|
1107
|
-
noDataFound: "No data found!",
|
|
1108
|
-
searching: "searching ...",
|
|
1109
|
-
save: "Save",
|
|
1110
|
-
"save-as": "Save As...",
|
|
1111
|
-
title: "Title",
|
|
1112
|
-
description: "Description",
|
|
1113
|
-
name: "Name",
|
|
1114
|
-
uniquename: "Unique Name",
|
|
1115
|
-
size: "Size",
|
|
1116
|
-
"add-item": "Add Item",
|
|
1117
|
-
color: "Color",
|
|
1118
|
-
display: "Display",
|
|
1119
|
-
"min-value": "Min Value",
|
|
1120
|
-
value: "Value",
|
|
1121
|
-
"max-value": "Max Value",
|
|
1122
|
-
"refresh-rate": "Refresh Rate",
|
|
1123
|
-
refresh: "Refresh",
|
|
1124
|
-
reload: "Reload",
|
|
1125
|
-
condition: "Condition",
|
|
1126
|
-
next: "Next",
|
|
1127
|
-
prev: "Prev"
|
|
1128
|
-
};
|
|
1129
|
-
var dateTime$1 = {
|
|
1130
|
-
weekdaysShort: {
|
|
1131
|
-
sun: "Sun",
|
|
1132
|
-
mon: "Mon",
|
|
1133
|
-
tue: "Tue",
|
|
1134
|
-
wed: "Wed",
|
|
1135
|
-
thu: "Thu",
|
|
1136
|
-
fri: "Fri",
|
|
1137
|
-
sat: "Sat"
|
|
1138
|
-
},
|
|
1139
|
-
dayTime: {
|
|
1140
|
-
am: "am",
|
|
1141
|
-
pm: "pm",
|
|
1142
|
-
m: "m",
|
|
1143
|
-
a: "a",
|
|
1144
|
-
p: "p"
|
|
1145
|
-
},
|
|
1146
|
-
today: "today",
|
|
1147
|
-
duration: {
|
|
1148
|
-
format_second: "{0} second(s)",
|
|
1149
|
-
format_minute: "{0} minute(s)"
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
|
-
var queryBuilder$1 = {
|
|
1153
|
-
contains: "contains",
|
|
1154
|
-
"not-contains": "not-contains",
|
|
1155
|
-
"contains-all": "contains-all",
|
|
1156
|
-
"start-with": "start-with",
|
|
1157
|
-
"end-with": "end-with",
|
|
1158
|
-
equal: "equal",
|
|
1159
|
-
"not-equal": "not-equal",
|
|
1160
|
-
"null": "null",
|
|
1161
|
-
"not-null": "not-null",
|
|
1162
|
-
"greater-than": "greater-than",
|
|
1163
|
-
gt: "greater-than",
|
|
1164
|
-
"greater-than-equal": "greater-than-equal",
|
|
1165
|
-
gte: "greater-than-equal",
|
|
1166
|
-
"less-than": "less-than",
|
|
1167
|
-
lt: "less-than",
|
|
1168
|
-
"less-than-equal": "less-than-equal",
|
|
1169
|
-
lte: "less-than-equal",
|
|
1170
|
-
"true": "true",
|
|
1171
|
-
"false": "false",
|
|
1172
|
-
empty: "empty"
|
|
1173
|
-
};
|
|
1174
|
-
var validation$1 = {
|
|
1175
|
-
messages: {
|
|
1176
|
-
required: "This field is required!",
|
|
1177
|
-
email: "Please enter a valid email address!",
|
|
1178
|
-
phone: "Please enter a valid phone number!"
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
|
-
var dataGrid$1 = {
|
|
1182
|
-
page: "page",
|
|
1183
|
-
more: "more",
|
|
1184
|
-
to: "To",
|
|
1185
|
-
of: "Of",
|
|
1186
|
-
next: "next",
|
|
1187
|
-
last: "last",
|
|
1188
|
-
first: "first",
|
|
1189
|
-
previous: "previous",
|
|
1190
|
-
loadingOoo: "Loading...",
|
|
1191
|
-
selectAll: "selectAll",
|
|
1192
|
-
searchOoo: "Search...",
|
|
1193
|
-
blanks: "blanks",
|
|
1194
|
-
filterOoo: "Filter...",
|
|
1195
|
-
equals: "Equals",
|
|
1196
|
-
notEqual: "NotEqual",
|
|
1197
|
-
lessThan: "LessThan",
|
|
1198
|
-
greaterThan: "GreaterThan",
|
|
1199
|
-
lessThanOrEqual: "LessThanOrEqual",
|
|
1200
|
-
greaterThanOrEqual: "GreaterThanOrEqual",
|
|
1201
|
-
inRange: "InRange",
|
|
1202
|
-
inRangeStart: "To",
|
|
1203
|
-
inRangeEnd: "From",
|
|
1204
|
-
contains: "Contains",
|
|
1205
|
-
notContains: "NotContains",
|
|
1206
|
-
startsWith: "Starts with",
|
|
1207
|
-
endsWith: "Ends with",
|
|
1208
|
-
andCondition: "AND",
|
|
1209
|
-
orCondition: "OR",
|
|
1210
|
-
applyFilter: "Apply",
|
|
1211
|
-
resetFilter: "Reset",
|
|
1212
|
-
clearFilter: "Clear",
|
|
1213
|
-
group: "Group",
|
|
1214
|
-
columns: "Columns",
|
|
1215
|
-
filters: "Filters",
|
|
1216
|
-
groups: "Groups",
|
|
1217
|
-
values: "Values",
|
|
1218
|
-
enabled: "Enabled",
|
|
1219
|
-
pinColumn: "Pin Column",
|
|
1220
|
-
groupBy: "Group by",
|
|
1221
|
-
ungroupBy: "UnGroup by",
|
|
1222
|
-
resetColumns: "ResetColumns",
|
|
1223
|
-
expandAll: "ExpandAll",
|
|
1224
|
-
collapseAll: "CollapseAll",
|
|
1225
|
-
toolPanel: "ToolPanel",
|
|
1226
|
-
"export": "Exporto",
|
|
1227
|
-
csvExport: "csv Export",
|
|
1228
|
-
excelExport: "Excel Export (.xlsx)",
|
|
1229
|
-
excelXmlExport: "Excel Exporto (.xml)",
|
|
1230
|
-
chartRange: "Chart Range",
|
|
1231
|
-
columnChart: "Column",
|
|
1232
|
-
groupedColumn: "Grouped",
|
|
1233
|
-
stackedColumn: "Stacked",
|
|
1234
|
-
normalizedColumn: "normalized Column",
|
|
1235
|
-
barChart: "bar Chart",
|
|
1236
|
-
groupedBar: "Grouped",
|
|
1237
|
-
stackedBar: "Stacked",
|
|
1238
|
-
normalizedBar: "normalized Bar",
|
|
1239
|
-
pie: "Pie",
|
|
1240
|
-
doughnut: "Doughnut",
|
|
1241
|
-
line: "Line",
|
|
1242
|
-
xyChart: "X Y (Scatter)",
|
|
1243
|
-
scatter: "Scatter",
|
|
1244
|
-
bubble: "Bubble",
|
|
1245
|
-
areaChart: "Area",
|
|
1246
|
-
area: "Area",
|
|
1247
|
-
stackedArea: "Stacked",
|
|
1248
|
-
normalizedArea: "100% Stacked",
|
|
1249
|
-
histogramChart: "Histogram",
|
|
1250
|
-
pinLeft: "Pin Left",
|
|
1251
|
-
pinRight: "Pin Right",
|
|
1252
|
-
noPin: "Dont Pin",
|
|
1253
|
-
sum: "Sum",
|
|
1254
|
-
min: "Min",
|
|
1255
|
-
max: "Max",
|
|
1256
|
-
none: "None",
|
|
1257
|
-
count: "Count",
|
|
1258
|
-
avg: "Average",
|
|
1259
|
-
filteredRows: "Filtered",
|
|
1260
|
-
selectedRows: "Selected",
|
|
1261
|
-
totalRows: "Total Rows",
|
|
1262
|
-
totalAndFilteredRows: "Rows",
|
|
1263
|
-
copy: "Copy",
|
|
1264
|
-
copyWithHeaders: "Copy With Headers",
|
|
1265
|
-
ctrlC: "Ctrl C",
|
|
1266
|
-
paste: "Paste",
|
|
1267
|
-
ctrlV: "Ctrl V",
|
|
1268
|
-
pivotChartTitle: "Pivot Chart",
|
|
1269
|
-
rangeChartTitle: "Range Chart",
|
|
1270
|
-
settings: "Settings",
|
|
1271
|
-
data: "Data",
|
|
1272
|
-
format: "Format",
|
|
1273
|
-
categories: "Categories",
|
|
1274
|
-
series: "Series",
|
|
1275
|
-
xyValues: "X Y Values",
|
|
1276
|
-
paired: "Paired Mode",
|
|
1277
|
-
axis: "Axis",
|
|
1278
|
-
color: "Color",
|
|
1279
|
-
thickness: "Thickness",
|
|
1280
|
-
xType: "X Type",
|
|
1281
|
-
automatic: "Automatic",
|
|
1282
|
-
category: "Category",
|
|
1283
|
-
number: "Number",
|
|
1284
|
-
time: "Time",
|
|
1285
|
-
xRotation: "X Rotation",
|
|
1286
|
-
yRotation: "Y Rotation",
|
|
1287
|
-
ticks: "Ticks",
|
|
1288
|
-
width: "Width",
|
|
1289
|
-
length: "Length",
|
|
1290
|
-
padding: "Padding",
|
|
1291
|
-
chart: "Chart",
|
|
1292
|
-
title: "Title",
|
|
1293
|
-
background: "Background",
|
|
1294
|
-
font: "Font",
|
|
1295
|
-
top: "Top",
|
|
1296
|
-
right: "Right",
|
|
1297
|
-
bottom: "Bottom",
|
|
1298
|
-
left: "Left",
|
|
1299
|
-
labels: "Labels",
|
|
1300
|
-
size: "Size",
|
|
1301
|
-
minSize: "Minimum Size",
|
|
1302
|
-
maxSize: "Maximum Size",
|
|
1303
|
-
legend: "Legend",
|
|
1304
|
-
position: "Position",
|
|
1305
|
-
markerSize: "Marker Size",
|
|
1306
|
-
markerStroke: "Marker Stroke",
|
|
1307
|
-
markerPadding: "Marker Padding",
|
|
1308
|
-
itemPaddingX: "Item Padding X",
|
|
1309
|
-
itemPaddingY: "Item Padding Y",
|
|
1310
|
-
strokeWidth: "Stroke Width",
|
|
1311
|
-
offset: "Offset",
|
|
1312
|
-
offsets: "Offsets",
|
|
1313
|
-
tooltips: "Tooltips",
|
|
1314
|
-
callout: "Callout",
|
|
1315
|
-
markers: "Markers",
|
|
1316
|
-
shadow: "Shadow",
|
|
1317
|
-
blur: "Blur",
|
|
1318
|
-
xOffset: "X Offset",
|
|
1319
|
-
yOffset: "Y Offset",
|
|
1320
|
-
lineWidth: "Line Width",
|
|
1321
|
-
normal: "Normal",
|
|
1322
|
-
bold: "Bold",
|
|
1323
|
-
italic: "Italic",
|
|
1324
|
-
boldItalic: "Bold Italic",
|
|
1325
|
-
predefined: "Predefined",
|
|
1326
|
-
fillOpacity: "Fill Opacity",
|
|
1327
|
-
strokeOpacity: "Line Opacity",
|
|
1328
|
-
histogramBinCount: "Bin Count",
|
|
1329
|
-
columnGroup: "Column",
|
|
1330
|
-
barGroup: "Bar",
|
|
1331
|
-
pieGroup: "Pie",
|
|
1332
|
-
lineGroup: "Line",
|
|
1333
|
-
scatterGroup: "Scatter",
|
|
1334
|
-
areaGroup: "Area",
|
|
1335
|
-
histogramGroup: "Histogram",
|
|
1336
|
-
groupedColumnTooltip: "Grouped",
|
|
1337
|
-
stackedColumnTooltip: "Stacked",
|
|
1338
|
-
normalizedColumnTooltip: "100% Stacked",
|
|
1339
|
-
groupedBarTooltip: "Grouped",
|
|
1340
|
-
stackedBarTooltip: "Stacked",
|
|
1341
|
-
pieTooltip: "Pie",
|
|
1342
|
-
doughnutTooltip: "Doughnut",
|
|
1343
|
-
lineTooltip: "Line",
|
|
1344
|
-
groupedAreaTooltip: "Grouped",
|
|
1345
|
-
stackedAreaTooltip: "Stacked",
|
|
1346
|
-
scatterTooltip: "Scatter",
|
|
1347
|
-
bubbleTooltip: "Bubble",
|
|
1348
|
-
histogramTooltip: "Histogram"
|
|
1349
|
-
};
|
|
1350
|
-
var en = {
|
|
1351
|
-
common: common$1,
|
|
1352
|
-
dateTime: dateTime$1,
|
|
1353
|
-
queryBuilder: queryBuilder$1,
|
|
1354
|
-
validation: validation$1,
|
|
1355
|
-
dataGrid: dataGrid$1
|
|
1356
|
-
};
|
|
1357
|
-
|
|
1358
|
-
var en$1 = /*#__PURE__*/Object.freeze({
|
|
1359
|
-
__proto__: null,
|
|
1360
|
-
common: common$1,
|
|
1361
|
-
dateTime: dateTime$1,
|
|
1362
|
-
queryBuilder: queryBuilder$1,
|
|
1363
|
-
validation: validation$1,
|
|
1364
|
-
dataGrid: dataGrid$1,
|
|
1365
|
-
'default': en
|
|
1366
|
-
});
|
|
1367
|
-
|
|
1368
|
-
var common = {
|
|
1369
|
-
search: "جستجو",
|
|
1370
|
-
yes: "بله",
|
|
1371
|
-
no: "خیر",
|
|
1372
|
-
confirm: "تایید",
|
|
1373
|
-
okay: "تایید",
|
|
1374
|
-
cancel: "انصراف",
|
|
1375
|
-
remove: "حذف",
|
|
1376
|
-
edit: "ویرایش",
|
|
1377
|
-
configs: "پیکربندی",
|
|
1378
|
-
noDataFound: "موردی یافت نشد!",
|
|
1379
|
-
searching: "درحال جستجو ...",
|
|
1380
|
-
"save-as": "ذخیره به عنوان ...",
|
|
1381
|
-
title: "عنوان",
|
|
1382
|
-
description: "توضیحات",
|
|
1383
|
-
name: "نام",
|
|
1384
|
-
uniquename: "نام شناسه یکتا",
|
|
1385
|
-
size: "اندازه",
|
|
1386
|
-
"add-item": "افزودن",
|
|
1387
|
-
color: "رنگ",
|
|
1388
|
-
display: "نمایش",
|
|
1389
|
-
value: "مقدار",
|
|
1390
|
-
"min-value": "مقدار کمینه",
|
|
1391
|
-
"max-value": "مقدار بیشینه",
|
|
1392
|
-
"refresh-rate": "نرخ بروز رسانی",
|
|
1393
|
-
refresh: "بروز رسانی",
|
|
1394
|
-
reload: "بارگزاری مجدد",
|
|
1395
|
-
condition: "شرط",
|
|
1396
|
-
next: "بعدی",
|
|
1397
|
-
prev: "قبلی",
|
|
1398
|
-
reset: "بازنشانی"
|
|
1399
|
-
};
|
|
1400
|
-
var dateTime = {
|
|
1401
|
-
weekdaysShort: {
|
|
1402
|
-
sun: "ی",
|
|
1403
|
-
mon: "د",
|
|
1404
|
-
tue: "س",
|
|
1405
|
-
wed: "چ",
|
|
1406
|
-
thu: "پ",
|
|
1407
|
-
fri: "ج",
|
|
1408
|
-
sat: "ش"
|
|
1409
|
-
},
|
|
1410
|
-
dayTime: {
|
|
1411
|
-
am: "ق ظ",
|
|
1412
|
-
pm: "ب ظُ",
|
|
1413
|
-
m: ".ظ",
|
|
1414
|
-
a: "ق",
|
|
1415
|
-
p: "ب"
|
|
1416
|
-
},
|
|
1417
|
-
today: "امروز",
|
|
1418
|
-
duration: {
|
|
1419
|
-
format_second: "{0} ثانیه",
|
|
1420
|
-
format_minute: "{0} دقیقه"
|
|
1421
|
-
}
|
|
1422
|
-
};
|
|
1423
|
-
var queryBuilder = {
|
|
1424
|
-
contains: "شامل",
|
|
1425
|
-
"not-contains": "به غیر از",
|
|
1426
|
-
"contains-all": "شامل همه",
|
|
1427
|
-
"start-with": "شروع شود با",
|
|
1428
|
-
"end-with": "پایان با",
|
|
1429
|
-
equal: "برابر با",
|
|
1430
|
-
"not-equal": "نا برابر با",
|
|
1431
|
-
"null": " خالی باشد",
|
|
1432
|
-
"not-null": "خالی نباشد",
|
|
1433
|
-
"greater-than": "بزرگ تر",
|
|
1434
|
-
gt: "بزرگ تر",
|
|
1435
|
-
"greater-than-equal": "بزرگتر مساوی",
|
|
1436
|
-
gte: "بزرگتر مساوی",
|
|
1437
|
-
"less-than": "کوچکتر",
|
|
1438
|
-
lt: "کوچکتر",
|
|
1439
|
-
"less-than-equal": "کوچکتر مساوی",
|
|
1440
|
-
lte: "کوچکتر مساوی",
|
|
1441
|
-
"true": "true",
|
|
1442
|
-
"false": "false"
|
|
1443
|
-
};
|
|
1444
|
-
var validation = {
|
|
1445
|
-
messages: {
|
|
1446
|
-
required: "مقدار این فیلد الزامی می باشد!",
|
|
1447
|
-
email: "این آدرس ایمیل معتبر نمی باشد!",
|
|
1448
|
-
phone: "این شماره تلفن معتبر نمی باشد!"
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
var dataGrid = {
|
|
1452
|
-
page: "صفحه",
|
|
1453
|
-
more: "بیشتر",
|
|
1454
|
-
to: "تا",
|
|
1455
|
-
of: "از",
|
|
1456
|
-
next: "بعدی",
|
|
1457
|
-
last: "آخرین",
|
|
1458
|
-
first: "اولین",
|
|
1459
|
-
previous: "قبلی",
|
|
1460
|
-
loadingOoo: "... لطفا منتظر بمانید",
|
|
1461
|
-
selectAll: "انتخاب همه",
|
|
1462
|
-
searchOoo: "جستجو ...",
|
|
1463
|
-
blanks: "جای خالی",
|
|
1464
|
-
filterOoo: "فیلتر ...",
|
|
1465
|
-
equals: "برابر",
|
|
1466
|
-
notEqual: "نابرابر",
|
|
1467
|
-
lessThan: "کوچکتر از",
|
|
1468
|
-
greaterThan: "بزرگتر از",
|
|
1469
|
-
lessThanOrEqual: "کوچکتر مساوی",
|
|
1470
|
-
greaterThanOrEqual: "بزرکتر مساوی",
|
|
1471
|
-
inRange: "در محدوده",
|
|
1472
|
-
inRangeStart: "تا",
|
|
1473
|
-
inRangeEnd: "از",
|
|
1474
|
-
contains: "شامل",
|
|
1475
|
-
notContains: "شامل نمی شود",
|
|
1476
|
-
startsWith: "شروع شود با",
|
|
1477
|
-
endsWith: "پایان با",
|
|
1478
|
-
andCondition: "و",
|
|
1479
|
-
orCondition: "یا",
|
|
1480
|
-
applyFilter: "اعمال",
|
|
1481
|
-
resetFilter: "تنظیم مجدد فیلتر",
|
|
1482
|
-
clearFilter: "پاک کردن فیلتر",
|
|
1483
|
-
group: "گروه",
|
|
1484
|
-
columns: "ستون ها",
|
|
1485
|
-
filters: "فیاتر ها",
|
|
1486
|
-
groups: "گروه ها ",
|
|
1487
|
-
values: "مقدار ها",
|
|
1488
|
-
enabled: "فعال شده",
|
|
1489
|
-
pinColumn: "سنجاق",
|
|
1490
|
-
groupBy: "دسته بندی بر اساس",
|
|
1491
|
-
ungroupBy: "حذف دسته بندی",
|
|
1492
|
-
resetColumns: "تنظیم مجدد ستون ها",
|
|
1493
|
-
expandAll: "باز کردن همه",
|
|
1494
|
-
collapseAll: "بستن همه",
|
|
1495
|
-
toolPanel: "پنل ابزار",
|
|
1496
|
-
"export": "خروجی",
|
|
1497
|
-
csvExport: "csv خروجی",
|
|
1498
|
-
excelExport: "خروجی اکسل (.xlsx)",
|
|
1499
|
-
excelXmlExport: "خروجی اکسل (.xml)",
|
|
1500
|
-
chartRange: "محدوده نمودار",
|
|
1501
|
-
columnChart: "ستون",
|
|
1502
|
-
groupedColumn: "دسته بندی شده",
|
|
1503
|
-
stackedColumn: "انباشته",
|
|
1504
|
-
normalizedColumn: "ستون نرمال",
|
|
1505
|
-
barChart: "نمودار میله ای",
|
|
1506
|
-
groupedBar: "دسته بندی شده",
|
|
1507
|
-
stackedBar: "انباشته",
|
|
1508
|
-
normalizedBar: "نوار ",
|
|
1509
|
-
pie: "پای",
|
|
1510
|
-
doughnut: "Doughnut",
|
|
1511
|
-
line: "خط",
|
|
1512
|
-
xyChart: "X Y (پراکندگی)",
|
|
1513
|
-
scatter: "پراکندگی",
|
|
1514
|
-
bubble: "حباب",
|
|
1515
|
-
areaChart: "حوزه",
|
|
1516
|
-
area: "حوزه",
|
|
1517
|
-
stackedArea: "انباشته ",
|
|
1518
|
-
normalizedArea: "100% انباشته",
|
|
1519
|
-
histogramChart: "هیستوگرام",
|
|
1520
|
-
pinLeft: "سنجاق چپ",
|
|
1521
|
-
pinRight: "سنجاق راست",
|
|
1522
|
-
noPin: "حذف سنجاق",
|
|
1523
|
-
sum: "مجموع",
|
|
1524
|
-
min: "مینیمم",
|
|
1525
|
-
max: "ماکزیمم",
|
|
1526
|
-
none: "هیچ",
|
|
1527
|
-
count: "شمردن",
|
|
1528
|
-
avg: "میانگین",
|
|
1529
|
-
filteredRows: "فیلتر شده",
|
|
1530
|
-
selectedRows: "انتخاب شده",
|
|
1531
|
-
totalRows: "مجموع ردیف ها",
|
|
1532
|
-
totalAndFilteredRows: "سطر ها",
|
|
1533
|
-
copy: "کپی",
|
|
1534
|
-
copyWithHeaders: "کپی با هدر ها",
|
|
1535
|
-
ctrlC: "Ctrl C",
|
|
1536
|
-
paste: "جایگزینی",
|
|
1537
|
-
ctrlV: "Ctrl V",
|
|
1538
|
-
pivotChartTitle: "نمودار محوری",
|
|
1539
|
-
rangeChartTitle: "نمودار محدوده",
|
|
1540
|
-
settings: "تنظیمات",
|
|
1541
|
-
data: "تاریخ",
|
|
1542
|
-
format: "قالب",
|
|
1543
|
-
categories: "دسته بندی ها",
|
|
1544
|
-
series: "Series",
|
|
1545
|
-
xyValues: "X Y مقادیر",
|
|
1546
|
-
paired: "حالت زوج",
|
|
1547
|
-
axis: "محور",
|
|
1548
|
-
color: "رنگ",
|
|
1549
|
-
thickness: "ضخامت",
|
|
1550
|
-
xType: "X Type",
|
|
1551
|
-
automatic: "خودکار",
|
|
1552
|
-
category: "دسته بندی",
|
|
1553
|
-
number: "عدد",
|
|
1554
|
-
time: "زمان",
|
|
1555
|
-
xRotation: "X چرخش",
|
|
1556
|
-
yRotation: "Y چرخش",
|
|
1557
|
-
ticks: "نمادها",
|
|
1558
|
-
width: "عرض",
|
|
1559
|
-
length: "طول",
|
|
1560
|
-
padding: "لایه گزاری",
|
|
1561
|
-
chart: "جدول",
|
|
1562
|
-
title: "عنوان",
|
|
1563
|
-
background: "زمینه",
|
|
1564
|
-
font: "فونت",
|
|
1565
|
-
top: "بالا",
|
|
1566
|
-
right: "راست",
|
|
1567
|
-
bottom: "پایین",
|
|
1568
|
-
left: "چپ",
|
|
1569
|
-
labels: "برچسب",
|
|
1570
|
-
size: "اندازه",
|
|
1571
|
-
minSize: "حداقل اندازه",
|
|
1572
|
-
maxSize: "بیشترین اندازه",
|
|
1573
|
-
position: "موقعیت",
|
|
1574
|
-
markerSize: "اندازه نشانگر",
|
|
1575
|
-
callout: "فراخوان",
|
|
1576
|
-
markers: "نشانه گرها",
|
|
1577
|
-
shadow: "سایه",
|
|
1578
|
-
blur: "محو شدن",
|
|
1579
|
-
xOffset: "X انحراف",
|
|
1580
|
-
yOffset: "Y انحراف",
|
|
1581
|
-
lineWidth: "عرض خط",
|
|
1582
|
-
normal: "نرمال",
|
|
1583
|
-
italic: "Italic",
|
|
1584
|
-
boldItalic: "Bold Italic",
|
|
1585
|
-
predefined: "Predefined",
|
|
1586
|
-
fillOpacity: "Fill Opacity",
|
|
1587
|
-
strokeOpacity: "Line Opacity",
|
|
1588
|
-
histogramBinCount: "Bin Count",
|
|
1589
|
-
columnGroup: "ستون",
|
|
1590
|
-
barGroup: "Bar",
|
|
1591
|
-
pieGroup: "Pie",
|
|
1592
|
-
lineGroup: "خط",
|
|
1593
|
-
areaGroup: "حوزه",
|
|
1594
|
-
histogramGroup: "هیستوگرام",
|
|
1595
|
-
groupedColumnTooltip: "دسته بندی شده",
|
|
1596
|
-
stackedColumnTooltip: "Stacked",
|
|
1597
|
-
normalizedColumnTooltip: "100% Stacked",
|
|
1598
|
-
groupedBarTooltip: "دسته بندی شده",
|
|
1599
|
-
stackedBarTooltip: "Stacked",
|
|
1600
|
-
pieTooltip: "Pie",
|
|
1601
|
-
doughnutTooltip: "Doughnut",
|
|
1602
|
-
lineTooltip: "خط",
|
|
1603
|
-
groupedAreaTooltip: "گروه بندی شده",
|
|
1604
|
-
stackedAreaTooltip: "Stacked",
|
|
1605
|
-
scatterTooltip: "Scatter",
|
|
1606
|
-
bubbleTooltip: "حباب",
|
|
1607
|
-
histogramTooltip: "هیستوگرام",
|
|
1608
|
-
autosizeThiscolumn: "تنظیم اندازه ستون ",
|
|
1609
|
-
autosizeAllColumns: "تنظیم اندازه همه ستون ها"
|
|
1610
|
-
};
|
|
1611
|
-
var fa = {
|
|
1612
|
-
common: common,
|
|
1613
|
-
dateTime: dateTime,
|
|
1614
|
-
queryBuilder: queryBuilder,
|
|
1615
|
-
validation: validation,
|
|
1616
|
-
dataGrid: dataGrid
|
|
1617
|
-
};
|
|
1618
|
-
|
|
1619
|
-
var fa$1 = /*#__PURE__*/Object.freeze({
|
|
1620
|
-
__proto__: null,
|
|
1621
|
-
common: common,
|
|
1622
|
-
dateTime: dateTime,
|
|
1623
|
-
queryBuilder: queryBuilder,
|
|
1624
|
-
validation: validation,
|
|
1625
|
-
dataGrid: dataGrid,
|
|
1626
|
-
'default': fa
|
|
1627
|
-
});
|
|
1628
|
-
|
|
1629
|
-
class AXTranslatorModule {
|
|
1630
|
-
constructor() {
|
|
1631
|
-
AXTranslator.load('en', en$1);
|
|
1632
|
-
AXTranslator.load('fa', fa$1);
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
AXTranslatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1636
|
-
AXTranslatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorModule, declarations: [AXTranslatorPipe], exports: [AXTranslatorPipe] });
|
|
1637
|
-
AXTranslatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorModule, providers: [], imports: [[]] });
|
|
1638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTranslatorModule, decorators: [{
|
|
1639
|
-
type: NgModule,
|
|
1640
|
-
args: [{
|
|
1641
|
-
imports: [],
|
|
1642
|
-
exports: [AXTranslatorPipe],
|
|
1643
|
-
declarations: [AXTranslatorPipe],
|
|
1644
|
-
providers: [],
|
|
1645
|
-
}]
|
|
1646
|
-
}], ctorParameters: function () { return []; } });
|
|
1647
|
-
|
|
1648
|
-
// @dynamic
|
|
1649
|
-
class AXArrayUtil {
|
|
1650
|
-
static pickRandom(array) {
|
|
1651
|
-
return array[Math.floor(Math.random() * array.length)];
|
|
1652
|
-
}
|
|
1653
|
-
static insert(array, index, ...rest) {
|
|
1654
|
-
array.splice.apply(array, [index, 0].concat(Array.prototype.slice.call(rest, 1)));
|
|
1655
|
-
return array;
|
|
1656
|
-
}
|
|
1657
|
-
static range(min, max) {
|
|
1658
|
-
return new Array(max - min).fill(1).map((d, i) => i);
|
|
1659
|
-
}
|
|
1660
|
-
static filter(array, filters) {
|
|
1661
|
-
if (filters == null || filters.length === 0) {
|
|
1662
|
-
return array;
|
|
1663
|
-
}
|
|
1664
|
-
const lamda = (item) => {
|
|
1665
|
-
let result = true;
|
|
1666
|
-
for (const key in filters) {
|
|
1667
|
-
if (filters.hasOwnProperty(key)) {
|
|
1668
|
-
const f = filters[key];
|
|
1669
|
-
if (f !== 'AND') {
|
|
1670
|
-
const vals = [];
|
|
1671
|
-
const mt = f.field.match(/\[\:(.*?)\]/);
|
|
1672
|
-
if (mt && mt.length > 1) {
|
|
1673
|
-
const p1 = f.field.replace(mt[0], '');
|
|
1674
|
-
const p2 = mt[1];
|
|
1675
|
-
const prop = AXFetchProp(item, p1);
|
|
1676
|
-
if (prop instanceof Array && prop.length) {
|
|
1677
|
-
vals.push(...prop.map(m => (AXFetchProp(m, p2))));
|
|
1678
|
-
}
|
|
1679
|
-
else {
|
|
1680
|
-
result = false;
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
else {
|
|
1684
|
-
vals.push(AXFetchProp(item, f.field));
|
|
1685
|
-
}
|
|
1686
|
-
for (const j in vals) {
|
|
1687
|
-
if (vals.hasOwnProperty(j)) {
|
|
1688
|
-
let v1 = vals[j];
|
|
1689
|
-
const v2 = f.value;
|
|
1690
|
-
if (f.dataType === 'string') {
|
|
1691
|
-
v1 = v1.toString();
|
|
1692
|
-
switch (f.condition) {
|
|
1693
|
-
case 'equal':
|
|
1694
|
-
result = (v1 && v2) && v1.toLowerCase() === v2.toLowerCase();
|
|
1695
|
-
break;
|
|
1696
|
-
case 'not-equal':
|
|
1697
|
-
result = !((v1 && v2) && v1.toLowerCase() === v2.toLowerCase());
|
|
1698
|
-
break;
|
|
1699
|
-
case 'contains':
|
|
1700
|
-
result = ((v1 && v2) && (v1.toLowerCase().includes(v2.toLowerCase())));
|
|
1701
|
-
break;
|
|
1702
|
-
case 'not-contains':
|
|
1703
|
-
result = !((v1 && v2) && (v1.toLowerCase().includes(v2.toLowerCase())));
|
|
1704
|
-
break;
|
|
1705
|
-
case 'start-with':
|
|
1706
|
-
result = ((v1 && v2) && (v1.toLowerCase().startsWith(v2.toLowerCase())));
|
|
1707
|
-
break;
|
|
1708
|
-
case 'end-with':
|
|
1709
|
-
result = ((v1 && v2) && (v1.toLowerCase().endsWith(v2.toLowerCase())));
|
|
1710
|
-
break;
|
|
1711
|
-
case 'is-empty':
|
|
1712
|
-
result = v1 == null || v1 === undefined;
|
|
1713
|
-
break;
|
|
1714
|
-
case 'is-not-empty':
|
|
1715
|
-
result = !(v1 == null || v1 === undefined);
|
|
1716
|
-
break;
|
|
1717
|
-
default:
|
|
1718
|
-
console.error('The condition is not defined');
|
|
1719
|
-
result = false;
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
else if (f.dataType === 'date') {
|
|
1723
|
-
}
|
|
1724
|
-
else if (f.dataType === 'number') {
|
|
1725
|
-
v1 = Number(v1);
|
|
1726
|
-
switch (f.condition) {
|
|
1727
|
-
case 'equal':
|
|
1728
|
-
result = v1 === v2;
|
|
1729
|
-
break;
|
|
1730
|
-
case 'not-equal':
|
|
1731
|
-
result = v1 !== v2;
|
|
1732
|
-
break;
|
|
1733
|
-
case 'contains':
|
|
1734
|
-
result = v2 && v2 instanceof Array && v2.includes(v1);
|
|
1735
|
-
break;
|
|
1736
|
-
case 'less-than':
|
|
1737
|
-
result = v1 < v2;
|
|
1738
|
-
break;
|
|
1739
|
-
case 'less-than-equal':
|
|
1740
|
-
result = v1 <= v2;
|
|
1741
|
-
break;
|
|
1742
|
-
case 'greater-than':
|
|
1743
|
-
result = v1 > v2;
|
|
1744
|
-
break;
|
|
1745
|
-
case 'greater-than-equal':
|
|
1746
|
-
result = v1 >= v2;
|
|
1747
|
-
break;
|
|
1748
|
-
case 'is-empty':
|
|
1749
|
-
result = v1 == null || v1 === undefined;
|
|
1750
|
-
break;
|
|
1751
|
-
case 'is-not-empty':
|
|
1752
|
-
result = !(v1 == null || v1 === undefined);
|
|
1753
|
-
break;
|
|
1754
|
-
default:
|
|
1755
|
-
console.error('The condition is not defined');
|
|
1756
|
-
result = false;
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
else {
|
|
1760
|
-
console.error('The datatype is not supported');
|
|
1761
|
-
result = false;
|
|
1762
|
-
}
|
|
1763
|
-
if (result) {
|
|
1764
|
-
break;
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
if (!result) {
|
|
1770
|
-
return false;
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
return true;
|
|
1775
|
-
};
|
|
1776
|
-
return array.filter(lamda);
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
class AXMathUtil {
|
|
1781
|
-
static randomRange(min, max) {
|
|
1782
|
-
return Math.floor(Math.random() * (max - min + 1) + min);
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
class AXPoint {
|
|
1787
|
-
constructor(x, y) {
|
|
1788
|
-
this.x = x;
|
|
1789
|
-
this.y = y;
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
class AXClientRec {
|
|
1793
|
-
constructor(rec) {
|
|
1794
|
-
this._left = rec.left;
|
|
1795
|
-
this._top = rec.top;
|
|
1796
|
-
this._width = rec.width;
|
|
1797
|
-
this._height = rec.height;
|
|
1798
|
-
this._right = this._left + this._width;
|
|
1799
|
-
this._bottom = this._top + this._height;
|
|
1800
|
-
}
|
|
1801
|
-
get left() {
|
|
1802
|
-
return this._left;
|
|
1803
|
-
}
|
|
1804
|
-
set left(v) {
|
|
1805
|
-
this._left = v;
|
|
1806
|
-
}
|
|
1807
|
-
get top() {
|
|
1808
|
-
return this._top;
|
|
1809
|
-
}
|
|
1810
|
-
set top(v) {
|
|
1811
|
-
this._top = v;
|
|
1812
|
-
}
|
|
1813
|
-
get right() {
|
|
1814
|
-
return this._right;
|
|
1815
|
-
}
|
|
1816
|
-
set right(v) {
|
|
1817
|
-
this._right = v;
|
|
1818
|
-
}
|
|
1819
|
-
get bottom() {
|
|
1820
|
-
return this._bottom;
|
|
1821
|
-
}
|
|
1822
|
-
set bottom(v) {
|
|
1823
|
-
this._bottom = v;
|
|
1824
|
-
}
|
|
1825
|
-
get width() {
|
|
1826
|
-
return this._width;
|
|
1827
|
-
}
|
|
1828
|
-
set width(v) {
|
|
1829
|
-
this._width = v;
|
|
1830
|
-
}
|
|
1831
|
-
get height() {
|
|
1832
|
-
return this._height;
|
|
1833
|
-
}
|
|
1834
|
-
set height(v) {
|
|
1835
|
-
this._height = v;
|
|
1836
|
-
}
|
|
1837
|
-
intersect(rec) {
|
|
1838
|
-
return (this.left < rec.left + rec.width &&
|
|
1839
|
-
this.left + this.width > rec.left &&
|
|
1840
|
-
this.top < rec.top + rec.height &&
|
|
1841
|
-
this.top + this.height > rec.top);
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
// @dynamic
|
|
1845
|
-
class AXHtmlUtil {
|
|
1846
|
-
static getBoundingRectPoint(el, placement) {
|
|
1847
|
-
const rec = el.getBoundingClientRect();
|
|
1848
|
-
const width = el.offsetWidth;
|
|
1849
|
-
const height = el.offsetHeight;
|
|
1850
|
-
switch (placement) {
|
|
1851
|
-
case 'top-start':
|
|
1852
|
-
return new AXPoint(rec.left, rec.top);
|
|
1853
|
-
case 'top-middle':
|
|
1854
|
-
return new AXPoint(rec.left + (width / 2), rec.top);
|
|
1855
|
-
case 'top-end':
|
|
1856
|
-
return new AXPoint(rec.left + (width), rec.top);
|
|
1857
|
-
case 'center-end':
|
|
1858
|
-
return new AXPoint(rec.left + (width), rec.top + (height / 2));
|
|
1859
|
-
case 'bottom-end':
|
|
1860
|
-
return new AXPoint(rec.left + (width), rec.top + (height));
|
|
1861
|
-
case 'bottom-middle':
|
|
1862
|
-
return new AXPoint(rec.left + (width / 2), rec.top + (height));
|
|
1863
|
-
case 'bottom-start':
|
|
1864
|
-
return new AXPoint(rec.left, rec.top + (height));
|
|
1865
|
-
case 'center-start':
|
|
1866
|
-
return new AXPoint(rec.left, rec.top + (height / 2));
|
|
1867
|
-
default:
|
|
1868
|
-
return new AXPoint(rec.left + (width / 2), rec.top + (height));
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
static isInRecPoint(pos, rec) {
|
|
1872
|
-
return pos.x >= rec.left && pos.x <= (rec.left + rec.width) && pos.y >= rec.top && (pos.y <= (rec.top + rec.height));
|
|
1873
|
-
}
|
|
1874
|
-
// static isOverLap(rec1: AXClientRecCtor, rec2: AXClientRecCtor): boolean {
|
|
1875
|
-
// const r1: AXClientRec = new AXClientRec(rec1);
|
|
1876
|
-
// const r2: AXClientRec = new AXClientRec(rec2);
|
|
1877
|
-
// return ;
|
|
1878
|
-
// }
|
|
1879
|
-
static isInElementBound(pos, element) {
|
|
1880
|
-
const elBound = element.getBoundingClientRect();
|
|
1881
|
-
return AXHtmlUtil.isInRecPoint(pos, {
|
|
1882
|
-
left: elBound.left,
|
|
1883
|
-
width: elBound.width,
|
|
1884
|
-
top: elBound.top,
|
|
1885
|
-
height: elBound.height
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1888
|
-
static getDimensions() {
|
|
1889
|
-
let winW = 630;
|
|
1890
|
-
let winH = 460;
|
|
1891
|
-
if (document.body && document.body.offsetWidth) {
|
|
1892
|
-
winW = document.body.offsetWidth;
|
|
1893
|
-
winH = document.body.offsetHeight;
|
|
1894
|
-
}
|
|
1895
|
-
if (document.compatMode === 'CSS1Compat' && document.documentElement && document.documentElement.offsetWidth) {
|
|
1896
|
-
winW = document.documentElement.offsetWidth;
|
|
1897
|
-
winH = document.documentElement.offsetHeight;
|
|
1898
|
-
}
|
|
1899
|
-
if (window.innerWidth && window.innerHeight) {
|
|
1900
|
-
winW = window.innerWidth;
|
|
1901
|
-
winH = window.innerHeight;
|
|
1902
|
-
}
|
|
1903
|
-
return { width: winW, height: winH };
|
|
1904
|
-
}
|
|
1905
|
-
static getOffsetRight(elem) {
|
|
1906
|
-
let element = elem;
|
|
1907
|
-
const width = element.offsetWidth;
|
|
1908
|
-
let right = 0;
|
|
1909
|
-
while (element.offsetParent) {
|
|
1910
|
-
right += element.offsetLeft;
|
|
1911
|
-
element = element.offsetParent;
|
|
1912
|
-
}
|
|
1913
|
-
right += element.offsetLeft;
|
|
1914
|
-
right = AXHtmlUtil.getDimensions().width - right;
|
|
1915
|
-
right -= width;
|
|
1916
|
-
return right;
|
|
1917
|
-
}
|
|
1918
|
-
static getUID() {
|
|
1919
|
-
return 'el-' + AXMathUtil.randomRange(1000000000, 9999999999).toString();
|
|
1920
|
-
}
|
|
1921
|
-
static getRelatedPosition(source, placement, target, alignment) {
|
|
1922
|
-
const result = { x: 0, y: 0 };
|
|
1923
|
-
const sourcePos = AXHtmlUtil.getBoundingRectPoint(source, placement);
|
|
1924
|
-
let top = 0;
|
|
1925
|
-
let left = 0;
|
|
1926
|
-
switch (alignment) {
|
|
1927
|
-
case 'top-start':
|
|
1928
|
-
top = sourcePos.y;
|
|
1929
|
-
left = sourcePos.x;
|
|
1930
|
-
break;
|
|
1931
|
-
case 'top-middle':
|
|
1932
|
-
top = sourcePos.y;
|
|
1933
|
-
left = sourcePos.x - target.offsetWidth / 2;
|
|
1934
|
-
break;
|
|
1935
|
-
case 'top-end':
|
|
1936
|
-
top = sourcePos.y;
|
|
1937
|
-
left = sourcePos.x - target.offsetWidth;
|
|
1938
|
-
break;
|
|
1939
|
-
case 'center-end':
|
|
1940
|
-
top = sourcePos.y - target.offsetHeight / 2;
|
|
1941
|
-
left = sourcePos.x - target.offsetWidth;
|
|
1942
|
-
break;
|
|
1943
|
-
case 'bottom-end':
|
|
1944
|
-
top = sourcePos.y - target.offsetHeight;
|
|
1945
|
-
left = sourcePos.x - target.offsetWidth;
|
|
1946
|
-
break;
|
|
1947
|
-
case 'bottom-middle':
|
|
1948
|
-
top = sourcePos.y - target.offsetHeight;
|
|
1949
|
-
left = sourcePos.x - target.offsetWidth / 2;
|
|
1950
|
-
break;
|
|
1951
|
-
case 'bottom-start':
|
|
1952
|
-
top = sourcePos.y - target.offsetHeight;
|
|
1953
|
-
left = sourcePos.x;
|
|
1954
|
-
break;
|
|
1955
|
-
case 'center-start':
|
|
1956
|
-
top = sourcePos.y - target.offsetHeight / 2;
|
|
1957
|
-
left = sourcePos.x;
|
|
1958
|
-
break;
|
|
1959
|
-
}
|
|
1960
|
-
result.y = top;
|
|
1961
|
-
result.x = left;
|
|
1962
|
-
return result;
|
|
1963
|
-
}
|
|
1964
|
-
static collision(a, b) {
|
|
1965
|
-
const ac = a.getBoundingClientRect();
|
|
1966
|
-
const bc = b.getBoundingClientRect();
|
|
1967
|
-
if (ac.left < bc.left + bc.width && ac.left + ac.width > bc.left &&
|
|
1968
|
-
ac.top < bc.top + bc.height && ac.top + ac.height > bc.top) {
|
|
1969
|
-
return true;
|
|
1970
|
-
}
|
|
1971
|
-
else {
|
|
1972
|
-
return false;
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
class AXHtmlModule {
|
|
1978
|
-
}
|
|
1979
|
-
AXHtmlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1980
|
-
AXHtmlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlModule, declarations: [AXHtmlToTextPipe], imports: [CommonModule], exports: [AXHtmlToTextPipe] });
|
|
1981
|
-
AXHtmlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlModule, providers: [], imports: [[CommonModule]] });
|
|
1982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHtmlModule, decorators: [{
|
|
1983
|
-
type: NgModule,
|
|
1984
|
-
args: [{
|
|
1985
|
-
declarations: [AXHtmlToTextPipe],
|
|
1986
|
-
imports: [CommonModule],
|
|
1987
|
-
exports: [AXHtmlToTextPipe],
|
|
1988
|
-
providers: []
|
|
1989
|
-
}]
|
|
1990
|
-
}] });
|
|
1991
|
-
|
|
1992
|
-
class AXOnDemandPreloadService {
|
|
1993
|
-
constructor() {
|
|
1994
|
-
this.subject = new Subject();
|
|
1995
|
-
this.tmp = AXHtmlUtil.getUID();
|
|
1996
|
-
}
|
|
1997
|
-
startPreload(routePath) {
|
|
1998
|
-
const slices = [];
|
|
1999
|
-
this.subject.next(routePath);
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
|
-
AXOnDemandPreloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXOnDemandPreloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2003
|
-
AXOnDemandPreloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXOnDemandPreloadService });
|
|
2004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXOnDemandPreloadService, decorators: [{
|
|
2005
|
-
type: Injectable
|
|
2006
|
-
}], ctorParameters: function () { return []; } });
|
|
2007
|
-
|
|
2008
|
-
class AXRenderService {
|
|
2009
|
-
constructor(appRef, router, componentFactoryResolver, compiler, modulePreloadService, injector) {
|
|
2010
|
-
this.appRef = appRef;
|
|
2011
|
-
this.router = router;
|
|
2012
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
2013
|
-
this.compiler = compiler;
|
|
2014
|
-
this.modulePreloadService = modulePreloadService;
|
|
2015
|
-
this.injector = injector;
|
|
2016
|
-
}
|
|
2017
|
-
appendComponent(componentClass, options = {}, location) {
|
|
2018
|
-
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentClass);
|
|
2019
|
-
const componentRef = componentFactory.create(this.injector);
|
|
2020
|
-
this.appRef.attachView(componentRef.hostView);
|
|
2021
|
-
Object.assign(componentRef.instance, options);
|
|
2022
|
-
//
|
|
2023
|
-
const domElem = componentRef.hostView.rootNodes[0];
|
|
2024
|
-
componentRef.onDestroy(() => {
|
|
2025
|
-
this.appRef.detachView(componentRef.hostView);
|
|
2026
|
-
});
|
|
2027
|
-
if (location) {
|
|
2028
|
-
location.appendChild(domElem);
|
|
2029
|
-
}
|
|
2030
|
-
else {
|
|
2031
|
-
document.body.appendChild(domElem);
|
|
2032
|
-
}
|
|
2033
|
-
setTimeout(() => {
|
|
2034
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
2035
|
-
}, 0);
|
|
2036
|
-
return componentRef;
|
|
2037
|
-
}
|
|
2038
|
-
findLoadedComponentByRoute(path, timeoutTime = 10) {
|
|
2039
|
-
const delay = 200;
|
|
2040
|
-
const loop = timeoutTime * 1000 / delay;
|
|
2041
|
-
return new Promise((resolve, reject) => {
|
|
2042
|
-
let found = null;
|
|
2043
|
-
let preload = false;
|
|
2044
|
-
const theLoop = (i) => {
|
|
2045
|
-
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
2046
|
-
found = yield this._findLoadedComponentByRoute(path);
|
|
2047
|
-
if (--i && found == null) {
|
|
2048
|
-
if (!preload) {
|
|
2049
|
-
this.modulePreloadService.startPreload(path);
|
|
2050
|
-
preload = true;
|
|
2051
|
-
}
|
|
2052
|
-
theLoop(i);
|
|
2053
|
-
}
|
|
2054
|
-
else if (found) {
|
|
2055
|
-
resolve(found);
|
|
2056
|
-
}
|
|
2057
|
-
else {
|
|
2058
|
-
reject();
|
|
2059
|
-
}
|
|
2060
|
-
}), delay);
|
|
2061
|
-
};
|
|
2062
|
-
theLoop(loop);
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
_findLoadedComponentByRoute(search) {
|
|
2066
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2067
|
-
let found = null;
|
|
2068
|
-
const f = (children, parentPath) => {
|
|
2069
|
-
for (const p in children) {
|
|
2070
|
-
if (children.hasOwnProperty(p)) {
|
|
2071
|
-
const route = children[p];
|
|
2072
|
-
const pp = (route.path != '' && route.path != null) ? parentPath + '/' + route.path : parentPath;
|
|
2073
|
-
if (pp == search && !route._loadedConfig && !route['_loadedRoutes'] && route.component) {
|
|
2074
|
-
found = route;
|
|
2075
|
-
return;
|
|
2076
|
-
}
|
|
2077
|
-
else if (route._loadedConfig || route['_loadedRoutes'] || route.children) {
|
|
2078
|
-
f(route.children || route['_loadedRoutes'] || route._loadedConfig.routes, pp);
|
|
2079
|
-
}
|
|
2080
|
-
}
|
|
2081
|
-
}
|
|
2082
|
-
};
|
|
2083
|
-
for (const p in this.router.config) {
|
|
2084
|
-
if (this.router.config.hasOwnProperty(p)) {
|
|
2085
|
-
const route = this.router.config[p];
|
|
2086
|
-
if (route.path === search && route.component) {
|
|
2087
|
-
found = route;
|
|
2088
|
-
}
|
|
2089
|
-
else if (route['_loadedConfig'] || route['_loadedRoutes'] || route.children) {
|
|
2090
|
-
f(route.children || route['_loadedRoutes'] || route['_loadedConfig'].routes, route.path);
|
|
2091
|
-
}
|
|
2092
|
-
if (found)
|
|
2093
|
-
break;
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
return found;
|
|
2097
|
-
});
|
|
2098
|
-
}
|
|
2099
|
-
}
|
|
2100
|
-
AXRenderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderService, deps: [{ token: i0.ApplicationRef }, { token: i1$1.Router }, { token: i0.ComponentFactoryResolver }, { token: i0.Compiler }, { token: AXOnDemandPreloadService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2101
|
-
AXRenderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderService, providedIn: 'root' });
|
|
2102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderService, decorators: [{
|
|
2103
|
-
type: Injectable,
|
|
2104
|
-
args: [{ providedIn: 'root' }]
|
|
2105
|
-
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$1.Router }, { type: i0.ComponentFactoryResolver }, { type: i0.Compiler }, { type: AXOnDemandPreloadService }, { type: i0.Injector }]; } });
|
|
2106
|
-
|
|
2107
|
-
// @dynamic
|
|
2108
|
-
function getOnDemandPreloadServiceFactory() {
|
|
2109
|
-
return new AXOnDemandPreloadService();
|
|
2110
|
-
}
|
|
2111
|
-
class AXRenderingModule {
|
|
2112
|
-
}
|
|
2113
|
-
AXRenderingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2114
|
-
AXRenderingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderingModule });
|
|
2115
|
-
AXRenderingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderingModule, providers: [
|
|
2116
|
-
{
|
|
2117
|
-
provide: AXOnDemandPreloadService,
|
|
2118
|
-
useFactory: getOnDemandPreloadServiceFactory
|
|
2119
|
-
},
|
|
2120
|
-
AXRenderService
|
|
2121
|
-
], imports: [[]] });
|
|
2122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRenderingModule, decorators: [{
|
|
2123
|
-
type: NgModule,
|
|
2124
|
-
args: [{
|
|
2125
|
-
imports: [],
|
|
2126
|
-
exports: [],
|
|
2127
|
-
declarations: [],
|
|
2128
|
-
providers: [
|
|
2129
|
-
{
|
|
2130
|
-
provide: AXOnDemandPreloadService,
|
|
2131
|
-
useFactory: getOnDemandPreloadServiceFactory
|
|
2132
|
-
},
|
|
2133
|
-
AXRenderService
|
|
2134
|
-
],
|
|
2135
|
-
}]
|
|
2136
|
-
}] });
|
|
2137
|
-
|
|
2138
|
-
class AXHorizontalScrollDirective {
|
|
2139
|
-
constructor(el) {
|
|
2140
|
-
this.el = el;
|
|
2141
|
-
this.scrollValue = 40;
|
|
2142
|
-
}
|
|
2143
|
-
onMouseWheel(e) {
|
|
2144
|
-
const delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail));
|
|
2145
|
-
this.el.nativeElement.scrollLeft -= delta * this.scrollValue;
|
|
2146
|
-
}
|
|
2147
|
-
}
|
|
2148
|
-
AXHorizontalScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHorizontalScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2149
|
-
AXHorizontalScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AXHorizontalScrollDirective, selector: "[horizontalScroll]", inputs: { scrollValue: ["horizontalScroll", "scrollValue"] }, host: { listeners: { "wheel": "onMouseWheel($event)" } }, ngImport: i0 });
|
|
2150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXHorizontalScrollDirective, decorators: [{
|
|
2151
|
-
type: Directive,
|
|
2152
|
-
args: [{
|
|
2153
|
-
// tslint:disable-next-line: directive-selector
|
|
2154
|
-
selector: '[horizontalScroll]'
|
|
2155
|
-
}]
|
|
2156
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollValue: [{
|
|
2157
|
-
type: Input,
|
|
2158
|
-
args: ['horizontalScroll']
|
|
2159
|
-
}], onMouseWheel: [{
|
|
2160
|
-
type: HostListener,
|
|
2161
|
-
args: ['wheel', ['$event']]
|
|
2162
|
-
}] } });
|
|
2163
|
-
class AXVerticalScrollDirective {
|
|
2164
|
-
constructor(el) {
|
|
2165
|
-
this.el = el;
|
|
2166
|
-
this.scrollValue = 40;
|
|
2167
|
-
}
|
|
2168
|
-
onMouseWheel(e) {
|
|
2169
|
-
const delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail));
|
|
2170
|
-
this.el.nativeElement.scrollTop -= delta * this.scrollValue;
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
AXVerticalScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXVerticalScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2174
|
-
AXVerticalScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AXVerticalScrollDirective, selector: "[verticalScroll]", inputs: { scrollValue: ["verticalScroll", "scrollValue"] }, host: { listeners: { "wheel": "onMouseWheel($event)" } }, ngImport: i0 });
|
|
2175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXVerticalScrollDirective, decorators: [{
|
|
2176
|
-
type: Directive,
|
|
2177
|
-
args: [{
|
|
2178
|
-
// tslint:disable-next-line: directive-selector
|
|
2179
|
-
selector: '[verticalScroll]'
|
|
2180
|
-
}]
|
|
2181
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollValue: [{
|
|
2182
|
-
type: Input,
|
|
2183
|
-
args: ['verticalScroll']
|
|
2184
|
-
}], onMouseWheel: [{
|
|
2185
|
-
type: HostListener,
|
|
2186
|
-
args: ['wheel', ['$event']]
|
|
2187
|
-
}] } });
|
|
2188
|
-
|
|
2189
|
-
class AXScrollModule {
|
|
2190
|
-
}
|
|
2191
|
-
AXScrollModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2192
|
-
AXScrollModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXScrollModule, declarations: [AXHorizontalScrollDirective, AXVerticalScrollDirective], imports: [CommonModule], exports: [AXHorizontalScrollDirective, AXVerticalScrollDirective] });
|
|
2193
|
-
AXScrollModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXScrollModule, providers: [], imports: [[CommonModule]] });
|
|
2194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXScrollModule, decorators: [{
|
|
2195
|
-
type: NgModule,
|
|
2196
|
-
args: [{
|
|
2197
|
-
declarations: [AXHorizontalScrollDirective, AXVerticalScrollDirective],
|
|
2198
|
-
imports: [CommonModule],
|
|
2199
|
-
exports: [AXHorizontalScrollDirective, AXVerticalScrollDirective],
|
|
2200
|
-
providers: []
|
|
2201
|
-
}]
|
|
2202
|
-
}] });
|
|
2203
|
-
|
|
2204
|
-
// export class AXSeparatorPipe2 implements PipeTransform {
|
|
2205
|
-
// transform(value: any) {
|
|
2206
|
-
// if (value) {
|
|
2207
|
-
// return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
2208
|
-
// } else {
|
|
2209
|
-
// return '0';
|
|
2210
|
-
// }
|
|
2211
|
-
// }
|
|
2212
|
-
// }
|
|
2213
|
-
class AXSeparatorPipe {
|
|
2214
|
-
transform(value, currency = '', decimal = 0, locale = AXConfig.get('layout.rtl') ? 'fa' : 'en') {
|
|
2215
|
-
return (new Intl.NumberFormat(locale, {
|
|
2216
|
-
minimumFractionDigits: 0,
|
|
2217
|
-
maximumFractionDigits: decimal
|
|
2218
|
-
}).format(Number(value)) + (currency != '' ? ' ' + currency : ''));
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
AXSeparatorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2222
|
-
AXSeparatorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorPipe, name: "separator" });
|
|
2223
|
-
AXSeparatorPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorPipe, providedIn: 'root' });
|
|
2224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorPipe, decorators: [{
|
|
2225
|
-
type: Pipe,
|
|
2226
|
-
args: [{ name: 'separator' }]
|
|
2227
|
-
}, {
|
|
2228
|
-
type: Injectable,
|
|
2229
|
-
args: [{
|
|
2230
|
-
providedIn: 'root'
|
|
2231
|
-
}]
|
|
2232
|
-
}] });
|
|
2233
|
-
|
|
2234
|
-
class AXSeparatorModule {
|
|
2235
|
-
}
|
|
2236
|
-
AXSeparatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2237
|
-
AXSeparatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorModule, declarations: [AXSeparatorPipe], imports: [CommonModule], exports: [AXSeparatorPipe] });
|
|
2238
|
-
AXSeparatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorModule, providers: [], imports: [[CommonModule]] });
|
|
2239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSeparatorModule, decorators: [{
|
|
2240
|
-
type: NgModule,
|
|
2241
|
-
args: [{
|
|
2242
|
-
declarations: [AXSeparatorPipe],
|
|
2243
|
-
imports: [CommonModule],
|
|
2244
|
-
exports: [AXSeparatorPipe],
|
|
2245
|
-
providers: []
|
|
2246
|
-
}]
|
|
2247
|
-
}] });
|
|
2248
|
-
|
|
2249
|
-
const PIPES = [AXDateTimePipe];
|
|
2250
|
-
const MODULES = [AXScrollModule, AXTranslatorModule];
|
|
2251
|
-
const SERVICES = [AXEventService,
|
|
2252
|
-
AXStorageService
|
|
2253
|
-
];
|
|
2254
|
-
class AXCoreModule {
|
|
2255
|
-
}
|
|
2256
|
-
AXCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2257
|
-
AXCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCoreModule, declarations: [AXDateTimePipe], imports: [AXScrollModule, AXTranslatorModule], exports: [AXDateTimePipe] });
|
|
2258
|
-
AXCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCoreModule, providers: [...SERVICES], imports: [[...MODULES]] });
|
|
2259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCoreModule, decorators: [{
|
|
2260
|
-
type: NgModule,
|
|
2261
|
-
args: [{
|
|
2262
|
-
declarations: [...PIPES],
|
|
2263
|
-
imports: [...MODULES],
|
|
2264
|
-
exports: [...PIPES],
|
|
2265
|
-
providers: [...SERVICES]
|
|
2266
|
-
}]
|
|
2267
|
-
}] });
|
|
2268
|
-
|
|
2269
|
-
/**
|
|
2270
|
-
* Generated bundle index. Do not edit.
|
|
2271
|
-
*/
|
|
2272
|
-
|
|
2273
|
-
export { AXArrayUtil, AXBaseMenuItem, AXBasePageComponent, AXButtonItem, AXCalendarMonth, AXCheckItem, AXClientRec, AXColorUtil, AXConfig, AXCoreModule, AXDateTime, AXDateTimePipe, AXDateTimeRange, AXErrorModule, AXErrorService, AXEventService, AXFetchProp, AXHorizontalScrollDirective, AXHtmlModule, AXHtmlToTextPipe, AXHtmlUtil, AXHttpModule, AXHttpService, AXMathUtil, AXMenuItem, AXNavigator, AXObjectUtil, AXOnDemandPreloadService, AXPlatform, AXPlatformEvent, AXPoint, AXPromise, AXRenderService, AXRenderingModule, AXScrollModule, AXSelectItem, AXSeparatorModule, AXSeparatorPipe, AXStorageService, AXTranslator, AXTranslatorModule, AXTranslatorPipe, AXTranslatorService, AXVerticalScrollDirective, AX_ERROR_DISPLAY_INTERCEPTOR, AX_HTTP_EVENT_INTERCEPTOR, HttpResult, getOnDemandPreloadServiceFactory, getPropByPath, setPropByPath, testUserAgent };
|
|
2274
|
-
//# sourceMappingURL=acorex-core.mjs.map
|