@acorex/components 16.18.6 → 16.18.7
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/calendar/calendar-box/calendar-box.component.mjs +74 -31
- package/esm2022/lib/property-editor/editors/selectbox-editor/selectbox.editor.mjs +4 -4
- package/fesm2022/acorex-components.mjs +72 -28
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +8 -4
- package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +2 -2
- package/package.json +1 -1
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { AXConfig } from '@acorex/core';
|
1
|
+
import { AXConfig, AXDateTime, AXDateTimeRange, AXTranslator, } from '@acorex/core';
|
2
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
import * as i1 from "@angular/common";
|
6
5
|
import * as i2 from "../../button/button.component";
|
@@ -13,21 +12,43 @@ export class AXCalendarBoxComponent {
|
|
13
12
|
jalali: {
|
14
13
|
locale: AXConfig.get('dateTime.jalali.locale') || 'fa',
|
15
14
|
dir: 'rtl',
|
16
|
-
number: 1
|
15
|
+
number: 1,
|
17
16
|
},
|
18
17
|
gregorian: {
|
19
18
|
locale: AXConfig.get('dateTime.gregorian.locale') || 'en',
|
20
19
|
dir: 'ltr',
|
21
|
-
number: 0
|
22
|
-
}
|
20
|
+
number: 0,
|
21
|
+
},
|
23
22
|
};
|
24
23
|
numRotate;
|
25
24
|
size = 'md';
|
26
25
|
type;
|
27
26
|
locale;
|
28
27
|
dir;
|
29
|
-
|
30
|
-
|
28
|
+
_min;
|
29
|
+
set min(v) {
|
30
|
+
if (v) {
|
31
|
+
this._min = v;
|
32
|
+
this.focusedValue = this.today;
|
33
|
+
this.viewRange = this.today.month.range;
|
34
|
+
this.navigate(0);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
get min() {
|
38
|
+
return this._min;
|
39
|
+
}
|
40
|
+
_max;
|
41
|
+
set max(v) {
|
42
|
+
if (v) {
|
43
|
+
this._max = v;
|
44
|
+
this.focusedValue = this.today;
|
45
|
+
this.viewRange = this.today.month.range;
|
46
|
+
this.navigate(0);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
get max() {
|
50
|
+
return this._max;
|
51
|
+
}
|
31
52
|
selectableHoliday = true;
|
32
53
|
dayStyle = [];
|
33
54
|
dayMinMaxResoan = '';
|
@@ -68,7 +89,7 @@ export class AXCalendarBoxComponent {
|
|
68
89
|
vv = AXDateTime.convert(v);
|
69
90
|
}
|
70
91
|
let unValidDate = false;
|
71
|
-
if (this.
|
92
|
+
if (this._max || this._min) {
|
72
93
|
unValidDate = this.isInMInMaxRange(vv);
|
73
94
|
}
|
74
95
|
if (!unValidDate) {
|
@@ -80,7 +101,7 @@ export class AXCalendarBoxComponent {
|
|
80
101
|
this.onValueChanged.emit({
|
81
102
|
component: this,
|
82
103
|
value: this._value?.date,
|
83
|
-
htmlElement: this.ref.nativeElement
|
104
|
+
htmlElement: this.ref.nativeElement,
|
84
105
|
});
|
85
106
|
}
|
86
107
|
if (v == undefined) {
|
@@ -92,7 +113,7 @@ export class AXCalendarBoxComponent {
|
|
92
113
|
this.onClick.emit({
|
93
114
|
component: this,
|
94
115
|
value: this._value?.date,
|
95
|
-
htmlElement: this.ref.nativeElement
|
116
|
+
htmlElement: this.ref.nativeElement,
|
96
117
|
});
|
97
118
|
}
|
98
119
|
}
|
@@ -128,8 +149,10 @@ export class AXCalendarBoxComponent {
|
|
128
149
|
return this.dayStyle.find((c) => c.date.split('T')[0] == date.toISOString().split('T')[0]).text;
|
129
150
|
}
|
130
151
|
else {
|
131
|
-
if ((this.
|
132
|
-
|
152
|
+
if ((this._min &&
|
153
|
+
this._max &&
|
154
|
+
date.compaireNew(new AXDateTime(this._min, this.type), 'YMD', this.type) === -1) ||
|
155
|
+
date.compaireNew(new AXDateTime(this._max, this.type), 'YMD', this.type) === 1) {
|
133
156
|
return this.dayMinMaxResoan;
|
134
157
|
}
|
135
158
|
else {
|
@@ -183,7 +206,7 @@ export class AXCalendarBoxComponent {
|
|
183
206
|
AXTranslator.get(`${path}.wed`, this.locale),
|
184
207
|
AXTranslator.get(`${path}.thu`, this.locale),
|
185
208
|
AXTranslator.get(`${path}.fri`, this.locale),
|
186
|
-
AXTranslator.get(`${path}.sat`, this.locale)
|
209
|
+
AXTranslator.get(`${path}.sat`, this.locale),
|
187
210
|
];
|
188
211
|
}
|
189
212
|
getTodayName() {
|
@@ -197,7 +220,11 @@ export class AXCalendarBoxComponent {
|
|
197
220
|
}
|
198
221
|
rotate(array, n) {
|
199
222
|
const len = array.length;
|
200
|
-
return !(n % len)
|
223
|
+
return !(n % len)
|
224
|
+
? array
|
225
|
+
: n > 0
|
226
|
+
? array.map((e, i, a) => a[(i + n) % len])
|
227
|
+
: array.map((e, i, a) => a[(len - ((len - i - n) % len)) % len]);
|
201
228
|
}
|
202
229
|
navigate(value) {
|
203
230
|
let start;
|
@@ -208,7 +235,10 @@ export class AXCalendarBoxComponent {
|
|
208
235
|
fd = value.startOf('month');
|
209
236
|
}
|
210
237
|
else {
|
211
|
-
fd = this.viewRange.startTime
|
238
|
+
fd = this.viewRange.startTime
|
239
|
+
.add('day', 15)
|
240
|
+
.add('month', value)
|
241
|
+
.startOf('month');
|
212
242
|
}
|
213
243
|
start = fd.firstDayOfWeek;
|
214
244
|
end = fd.endOf('month').endDayOfWeek;
|
@@ -231,7 +261,10 @@ export class AXCalendarBoxComponent {
|
|
231
261
|
fd = value.startOf('year');
|
232
262
|
}
|
233
263
|
else {
|
234
|
-
fd = this.viewRange.startTime
|
264
|
+
fd = this.viewRange.startTime
|
265
|
+
.add('day', 15)
|
266
|
+
.add('year', value)
|
267
|
+
.startOf('year');
|
235
268
|
}
|
236
269
|
start = fd;
|
237
270
|
end = fd.endOf('year');
|
@@ -261,7 +294,8 @@ export class AXCalendarBoxComponent {
|
|
261
294
|
//
|
262
295
|
if (this.view === 'day') {
|
263
296
|
this.matrix = this.matrixify(this.applyStyle(this.viewRange.enumurate('day', this.type)), 7);
|
264
|
-
if (this.matrix.length > 0 &&
|
297
|
+
if (this.matrix.length > 0 &&
|
298
|
+
this.matrix[0].find((c) => c.nextMonth === false) === undefined) {
|
265
299
|
this.matrix.splice(0, 1);
|
266
300
|
}
|
267
301
|
if (this.matrix[this.matrix.length - 1].find((c) => c.nextMonth === false) === undefined) {
|
@@ -281,12 +315,17 @@ export class AXCalendarBoxComponent {
|
|
281
315
|
dates.forEach((d, i, j) => {
|
282
316
|
const item = {};
|
283
317
|
item.date = d;
|
284
|
-
item.selected =
|
285
|
-
|
286
|
-
item.
|
318
|
+
item.selected =
|
319
|
+
d.compaireNew(new AXDateTime(this.value, this.type), this.getViewCompaire(this.view), this.type) === 0;
|
320
|
+
item.focused =
|
321
|
+
d.compaireNew(this.focusedValue, this.getViewCompaire(this.view), this.type) === 0;
|
322
|
+
item.today =
|
323
|
+
this.today &&
|
324
|
+
d.compaireNew(this.today, this.getViewCompaire(this.view), this.type) === 0;
|
287
325
|
if (this.view === 'day') {
|
288
326
|
// item.nextMonth = d.compaireNew(this.viewRange.startTime.add('day', 10), 'YM') !== 0;
|
289
|
-
item.nextMonth =
|
327
|
+
item.nextMonth =
|
328
|
+
d.compaireNew(this.viewRange.startTime.add('day', 10), 'YM', this.type) !== 0;
|
290
329
|
item.unselect = this.isInMInMaxRange(d);
|
291
330
|
this.holidays.forEach((h) => {
|
292
331
|
const comp = d.compaireNew(new AXDateTime(h.date, this.type), 'YMD', this.type);
|
@@ -338,16 +377,18 @@ export class AXCalendarBoxComponent {
|
|
338
377
|
isInMInMaxRange(d) {
|
339
378
|
let r = false;
|
340
379
|
if (d !== undefined) {
|
341
|
-
if (this.
|
342
|
-
r =
|
380
|
+
if (this._min && !this._max) {
|
381
|
+
r =
|
382
|
+
d.compaireNew(new AXDateTime(this._min, this.type), this.getViewCompaire(this.view), this.type) === -1;
|
343
383
|
}
|
344
|
-
if (this.
|
345
|
-
r =
|
384
|
+
if (this._max && !this._min) {
|
385
|
+
r =
|
386
|
+
d.compaireNew(new AXDateTime(this._max, this.type), this.getViewCompaire(this.view), this.type) === 1;
|
346
387
|
}
|
347
|
-
if (this.
|
388
|
+
if (this._min && this._max) {
|
348
389
|
r =
|
349
|
-
d.compaireNew(new AXDateTime(this.
|
350
|
-
d.compaireNew(new AXDateTime(this.
|
390
|
+
d.compaireNew(new AXDateTime(this._min, this.type), this.getViewCompaire(this.view), this.type) === -1 ||
|
391
|
+
d.compaireNew(new AXDateTime(this._max, this.type), this.getViewCompaire(this.view), this.type) === 1;
|
351
392
|
}
|
352
393
|
}
|
353
394
|
return r;
|
@@ -358,7 +399,9 @@ export class AXCalendarBoxComponent {
|
|
358
399
|
}
|
359
400
|
else {
|
360
401
|
this.view = 'day';
|
361
|
-
this.setFocus(new AXDateTime(this.value, this.type)
|
402
|
+
this.setFocus(new AXDateTime(this.value, this.type)
|
403
|
+
.set('year', date.year)
|
404
|
+
.set('month', date.monthOfYear));
|
362
405
|
}
|
363
406
|
event.stopPropagation();
|
364
407
|
}
|
@@ -423,4 +466,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImpor
|
|
423
466
|
}], value: [{
|
424
467
|
type: Input
|
425
468
|
}] } });
|
426
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXItYm94LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zcmMvbGliL2NhbGVuZGFyL2NhbGVuZGFyLWJveC9jYWxlbmRhci1ib3guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvY2FsZW5kYXIvY2Fs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uICAgICAgICAgICAgaXRlbS5ob2xpZGF5ID0gdHJ1ZTtcbiAgICAgICAgICAgIGlmICh0aGlzLnNlbGVjdGFibGVIb2xpZGF5ID09PSBmYWxzZSkge1xuICAgICAgICAgICAgICBpdGVtLnVuc2VsZWN0ID0gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IGluZGV4RGF5ID0gaSAtIE1hdGguZmxvb3IoaSAvIDcpICogNztcbiAgICAgICAgdGhpcy53ZWVrZW5kcy5mb3JFYWNoKChjYykgPT4ge1xuICAgICAgICAgIGlmIChOdW1iZXIoY2MpID09PSBpbmRleERheSkge1xuICAgICAgICAgICAgaXRlbS5ob2xpZGF5ID0gdHJ1ZTtcbiAgICAgICAgICAgIGlmICh0aGlzLnNlbGVjdGFibGVIb2xpZGF5ID09PSBmYWxzZSkge1xuICAgICAgICAgICAgICBpdGVtLnVuc2VsZWN0ID0gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgICAgaXRlbXMucHVzaChpdGVtKTtcbiAgICB9KTtcbiAgICByZXR1cm4gaXRlbXM7XG4gIH1cblxuICBjaGFuZ2VWaWV3KCkge1xuICAgIGlmICh0aGlzLnZpZXcgPT09ICdkYXknKSB7XG4gICAgICB0aGlzLnZpZXcgPSAnbW9udGgnO1xuICAgIH0gZWxzZSBpZiAodGhpcy52aWV3ID09PSAnbW9udGgnKSB7XG4gICAgICB0aGlzLnZpZXcgPSAneWVhcic7XG4gICAgfVxuICB9XG5cbiAgbWF0cml4aWZ5KGFycjogYW55W10sIGNvbHMpIHtcbiAgICBjb25zdCByb3dzID0gTWF0aC5jZWlsKGFyci5sZW5ndGggLyBjb2xzKTtcbiAgICBjb25zdCBtYXRyaXggPSBbXTtcbiAgICBpZiAocm93cyAqIGNvbHMgPT09IGFyci5sZW5ndGgpIHtcbiAgICAgIGZv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Y29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nU3dpdGNoQ2FzZT1cIidtb250aCdcIj5cbiAgICAgICAgICAgICAgICAgICAge3t2aWV3UmFuZ2Uuc3RhcnRUaW1lIHwgZHQ6XCJZWVlZXCJ9fVxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nU3dpdGNoRGVmYXVsdD5cbiAgICAgICAgICAgICAgICAgICAge3t2aWV3UmFuZ2Uuc3RhcnRUaW1lIHwgZHQ6XCJZWVlZXCJ9fSAtIHt7dmlld1JhbmdlLmVuZFRpbWUgfCBkdDpcIllZWVlcIn19XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8L2F4LWJ1dHRvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJheC1jb250cm9sbC1idXR0b25cIj5cbiAgICAgICAgICAgIDxheC1idXR0b24gdHlwZT1cImxpZ2h0IGJsYW5rXCIgKGNsaWNrKT1cInByZXYoKVwiPlxuICAgICAgICAgICAgICAgIHt7J2NvbW1vbi5wcmV2JyB8IHRyYW5zfX1cbiAgICAgICAgICAgIDwvYXgtYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwiYXgtY2FsZW5kYXItYm9keVwiPlxuICAgICAgICA8bmctY29udGFpbmVyIFtuZ1N3aXRjaF09XCJ2aWV3XCI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaENhc2U9XCInZGF5J1wiPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJheC1tb250aC1pdGVtc1wiPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0Zvcj0nbGV0IHcgb2Ygd2Vla2RheXMnPlxuICAgICAgICAgICAgICAgICAgICA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AgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0Zvcj1cImxldCByIG9mIG1hdHJpeFwiPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiYXgtbW9udGgtaXRlbVwiICpuZ0Zvcj1cImxldCBkIG9mIHI7dHJhY2tCeTp0cmFja0J5Rm5cIiBbbmdDbGFzc109XCJ7J3NlbGVjdGVkJzogZC5zZWxlY3RlZCwnZm9jdXNlZCc6ZC5mb2N1c2VkLCd0b2RheSc6ZC50b2RheX1cIiAoY2xpY2spPVwic2V0TW9udGhDbGljaygkZXZlbnQsZC5kYXRlKVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHN0cm9uZz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7e2QuZGF0ZXwgZHQ6XCJNTU1cIn19XG4gICAgICAgICAgICAgICAgICAgICAgICA8L3N0cm9uZz5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJheC15ZWFyLWNvbnRhaW5lclwiICpuZ1N3aXRjaENhc2U9XCIneWVhcidcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyIGNsYXNzPVwiY2FsZW5kYXItcm93XCIgKm5nRm9yPVwibGV0IHIgb2YgbWF0cml4XCI+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJheC15ZWFyLWl0ZW1cIiAqbmdGb3I9XCJsZXQgZCBvZiByO3RyYWNrQnk6dHJhY2tCeUZuXCIgW25nQ2xhc3NdPVwieydzZWxlY3RlZCc6IGQuc2VsZWN0ZWQsJ2ZvY3VzZWQnOmQuZm9jdXNlZCwndG9kYXknOmQudG9kYXl9XCIgKGNsaWNrKT1cInNldFllYXJDbGljaygkZXZlbnQsZC5kYXRlKVwiPlxuICAgICAgICAgICAgICAgICAgICAgICA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XG4gICAgICB0aGlzLmRheVN0eWxlLmZpbmQoXG4gICAgICAgIChjKSA9PiBjLmRhdGUuc3BsaXQoJ1QnKVswXSA9PSBkYXRlLnRvSVNPU3RyaW5nKCkuc3BsaXQoJ1QnKVswXVxuICAgICAgKVxuICAgICkge1xuICAgICAgcmV0dXJuIHRoaXMuZGF5U3R5bGUuZmluZChcbiAgICAgICAgKGMpID0+IGMuZGF0ZS5zcGxpdCgnVCcpWzBdID09IGRhdGUudG9JU09TdHJpbmcoKS5zcGxpdCgnVCcpWzBdXG4gICAgICApLnRleHQ7XG4gICAgfSBlbHNlIHtcbiAgICAgIGlmIChcbiAgICAgICAgKHRoaXMuX21pbiAmJlxuICAgICAgICAgIHRoaXMuX21heCAmJlxuICAgICAgICAgIGRhdGUuY29tcGFpcmVOZXcoXG4gICAgICAgICAgICBuZXcgQVhEYXRlVGltZSh0aGlzLl9taW4sIHRoaXMudHlwZSksXG4gICAgICAgICAgICAnWU1EJyxcbiAgICAgICAgICAgIHRoaXMudHlwZVxuICAgICAgICAgICkgPT09IC0xKSB8fFxuICAgICAgICBkYXRlLmNvbXBhaXJlTmV3KFxuICAgICAgICAgIG5ldyBBWERhdGVUaW1lKHRoaXMuX21heCwgdGhpcy50eXBlKSxcbiAgICAgICAgICAnWU1EJyxcbiAgICAgICAgICB0aGlzLnR5cGVcbiAgICAgICAgKSA9PT0gMVxuICAgICAgKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmRheU1pbk1heFJlc29hbjtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiAnJztcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLmZvY3VzZWRWYWx1ZSA9IG5ldyBBWERhdGVUaW1lKG5ldyBEYXRlKCksIHRoaXMudHlwZSk7XG4gICAgLy9cbiAgICB0aGlzLmluaXRMYXlvdXQoKTtcbiAgICAvL1xuICAgIHRoaXMudmlld1JhbmdlID0gdGhpcy50b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cGVcbiAgICAgICAgKSA9PT0gMDtcbiAgICAgIGl0ZW0uZm9jdXNlZCA9XG4gICAgICAgIGQuY29tcGFpcmVOZXcoXG4gICAgICAgICAgdGhpcy5mb2N1c2VkVmFsdWUsXG4gICAgICAgICAgdGhpcy5nZXRWaWV3Q29tcGFpcmUodGhpcy52aWV3KSxcbiAgICAgICAgICB0aGlzLnR5cGVcbiAgICAgICAgKSA9PT0gMDtcbiAgICAgIGl0ZW0udG9kYXkgPVxuICAgICAgICB0aGlzLnRvZGF5ICYmXG4gICAgICAgIGQuY29tcGFpcmVOZXcoXG4gICAgICAgICAgdGhpcy50b2RheSxcbiAgICAgICAgICB0aGlzLmdldFZpZXdDb21wYWlyZSh0aGlzLnZpZXcpLFxuICAgICAgICAgIHRoaXMudHlwZVxuICAgICAgICApID09PSAwO1xuICAgICAgaWYgKHRoaXMudmlldyA9PT0gJ2RheScpIHtcbiAgICAgICAgLy8gIGl0ZW0ubmV4dE1vbnRoID0gZC5jb21wYWlyZU5ldyh0aGlzLnZpZXdSYW5nZS5zdGFydFRpbWUuYWRkKCdkYXknLCAxMCksICdZTScpICE9PSAwO1xuICAgICAgICBpdGVtLm5leHRNb250aCA9XG4gICAgICAgICAgZC5jb21wYWlyZU5ldyhcbiAgICAgICAgICAgIHRoaXMudmlld1JhbmdlLnN0YXJ0VGltZS5hZGQoJ2RheScsIDEwKSxcbiAgICAgICAgICAgICdZTScsXG4gICAgICAgICAgICB0aGlzLnR5cGVcbiAgICAgICAgICApICE9PSAwO1xuXG4gICAgICAgIGl0ZW0udW5zZWxlY3QgPSB0aGlzLmlzSW5NSW5NYXhSYW5nZShkKTtcbiAgICAgICAgdGhpcy5ob2xpZGF5cy5mb3JFYWNoKChoKSA9PiB7XG4gICAgICAgICAgY29uc3QgY29tcCA9IGQuY29tcGFpcmVOZXcoXG4gICAgICAgICAgICBuZXcgQVhEYXRlVGltZShoLmRhdGUsIHRoaXMudHlwZSksXG4gICAgICAgICAgICAnWU1EJyxcbiAgICAgICAgICAgIHRoaXMudHlwZVxuICAgICAgICAgICk7XG4gICAgICAgICAgaWYgKGNvbXAgPT09IDApIHtcbiAgICAgICAgICAgIGl0ZW0uaG9saWRheSA9IHRydWU7XG4gICAgICAgICAgICBpZiAodGhpcy5zZWxlY3RhYmxlSG9saWRheSA9PT0gZmFsc2UpIHtcbiAgICAgICAgICAgICAgaXRlbS51bnNlbGVjdCA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICBjb25zdCBpbmRleERheSA9IGkgLSBNYXRoLmZsb29yKGkgLyA3KSAqIDc7XG4gICAgICAgIHRoaXMud2Vla2VuZHMuZm9yRWFjaCgoY2MpID0+IHtcbiAgICAgICAgICBpZiAoTnVtYmVyKGNjKSA9PT0gaW5kZXhEYXkpIHtcbiAgICAgICAgICAgIGl0ZW0uaG9saWRheSA9IHRydWU7XG4gICAgICAgICAgICBpZiAodGhpcy5zZWxlY3RhYmxlSG9saWRheSA9PT0gZmFsc2UpIHtcbiAgICAgICAgICAgICAgaXRlbS51bnNlbGVjdCA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICAgIGl0ZW1zLnB1c2goaXRlbSk7XG4gICAgfSk7XG4gICAgcmV0dXJuIGl0ZW1zO1xuICB9XG5cbiAgY2hhbmdlVmlldygpIHtcbiAgICBpZiAodGhpcy52aWV3ID09PSAnZGF5Jykge1xuICAgICAgdGhpcy52aWV3ID0gJ21vbnRoJztcbiAgICB9IGVsc2UgaWYgKHRoaXMudmlldyA9PT0gJ21vbnRoJykge1xuICAgICAgdGhpcy52aWV3ID0gJ3llYXInO1xuICAgIH1cbiAgfVxuXG4gIG1hdHJpeGlmeShhcnI6IGFueVtdLCBjb2xzKSB7XG4gICAgY29uc3Qgcm93cyA9IE1hdGguY2VpbChhcnIubGVuZ3RoIC8gY29scyk7XG4gICAgY29uc3QgbWF0cml4ID0gW107XG4gICAgaWYgKHJvd3MgKiBjb2xzID09PSBhcnIubGVuZ3RoKSB7XG4gICAgICBmb3IgKGxldCBpID0gMDsgaSA8IGFyci5sZW5ndGg7IGkgKz0gY29scykge1xuICAgICAgICBtYXRyaXgucHVzaChhcnIuc2xpY2UoaSwgY29scyArIGkpKTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIG1hdHJpeDtcbiAgfVxuXG4gIHNldERheUNsaWNrKGV2ZW50OiBNb3VzZUV2ZW50LCBpdGVtKSB7XG4gICAgaWYgKGl0ZW0udW5zZWxlY3QgIT09IHRydWUpIHtcbiAgICAgIHRoaXMudmFsdWUgPSBpdGVtLmRhdGUuZGF0ZTtcbiAgICB9XG5cbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgfVxuXG4gIGlzSW5NSW5NYXhSYW5nZShkKSB7XG4gICAgbGV0IHIgPSBmYWxzZTtcbiAgICBpZiAoZCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICBpZiAodGhpcy5fbWluICYmICF0aGlzLl9tYXgpIHtcbiAgICAgICAgciA9XG4gICAgICAgICAgZC5jb21wYWlyZU5ldyhcbiAgICAgICAgICAgIG5ldyBBWERhdGVUaW1lKHRoaXMuX21pbiwgdGhpcy50eXBlKSxcbiAgICAgICAgICAgIHRoaXMuZ2V0Vmlld0NvbXBhaXJlKHRoaXMudmlldyksXG4gICAgICAgICAgICB0aGlzLnR5cGVcbiAgICAgICAgICApID09PSAtMTtcbiAgICAgIH1cbiAgICAgIGlmICh0aGlzLl9tYXggJiYgIXRoaXMuX21pbikge1xuICAgICAgICByID1cbiAgICAgICAgICBkLmNvbXBhaXJlTmV3KFxuICAgICAgICAgICAgbmV3IEFYRGF0ZVRpbWUodGhpcy5fbWF4LCB0aGlzLnR5cGUpLFxuICAgICAgICAgICAgdGhpcy5nZXRWaWV3Q29tcGFpcmUodGhpcy52aWV3KSxcbiAgICAgICAgICAgIHRoaXMudHlwZVxuICAgICAgICAgICkgPT09IDE7XG4gICAgICB9XG4gICAgICBpZiAodGhpcy5fbWluICYmIHRoaXMuX21heCkge1xuICAgICAgICByID1cbiAgICAgICAgICBkLmNvbXBhaXJlTmV3KFxuICAgICAgICAgICAgbmV3IEFYRGF0ZVRpbWUodGhpcy5fbWluLCB0aGlzLnR5cGUpLFxuICAgICAgICAgICAgdGhpcy5nZXRWaWV3Q29tcGFpcmUodGhpcy52aWV3KSxcbiAgICAgICAgICAgIHRoaXMudHlwZVxuICAgICAgICAgICkgPT09IC0xIHx8XG4gICAgICAgICAgZC5jb21wYWlyZU5ldyhcbiAgICAgICAgICAgIG5ldyBBWERhdGVUaW1lKHRoaXMuX21heCwgdGhpcy50eXBlKSxcbiAgICAgICAgICAgIHRoaXMuZ2V0Vmlld0NvbXBhaXJlKHRoaXMudmlldyksXG4gICAgICAgICAgICB0aGlzLnR5cGVcbiAgICAgICAgICApID09PSAxO1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gcjtcbiAgfVxuXG4gIHNldE1vbnRoQ2xpY2soZXZlbnQ6IE1vdXNlRXZlbnQsIGRhdGU6IEFYRGF0ZVRpbWUpIHtcbiAgICBpZiAodGhpcy5kZXB0aCA9PT0gJ21vbnRoJykge1xuICAgICAgdGhpcy52YWx1ZSA9IGRhdGUuZGF0ZTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy52aWV3ID0gJ2RheSc7XG4gICAgICB0aGlzLnNldEZvY3VzKFxuICAgICAgICBuZXcgQVhEYXRlVGltZSh0aGlzLnZhbHVlLCB0aGlzLnR5cGUpXG4gICAgICAgICAgLnNldCgneWVhcicsIGRhdGUueWVhcilcbiAgICAgICAgICAuc2V0KCdtb250aCcsIGRhdGUubW9udGhPZlllYXIpXG4gICAgICApO1xuICAgIH1cbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgfVxuXG4gIHNldFllYXJDbGljayhldmVudDogTW91c2VFdmVudCwgZGF0ZTogQVhEYXR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G4gICAgICAgIDxkaXYgY2xhc3M9XCJheC1uYXYtYnV0dG9uXCIgW25nU3dpdGNoXT1cInZpZXdcIj5cbiAgICAgICAgICAgIDxheC1idXR0b24gdHlwZT1cImxpZ2h0IGJsYW5rXCIgKGNsaWNrKT1cImNoYW5nZVZpZXcoKVwiPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nU3dpdGNoQ2FzZT1cIidkYXknXCI+XG4gICAgICAgICAgICAgICAgICAgIHt7dmlld1JhbmdlLnN0YXJ0VGltZS5hZGQoJ2RheScsMTApIHwgZHQ6XCJNTU0gWVlZWVwifX1cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaENhc2U9XCInbW9udGgnXCI+XG4gICAgICAgICAgICAgICAgICAgIHt7dmlld1JhbmdlLnN0YXJ0VGltZSB8IGR0OlwiWVlZWVwifX1cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaERlZmF1bHQ+XG4gICAgICAgICAgICAgICAgICAgIHt7dmlld1JhbmdlLnN0YXJ0VGltZSB8IGR0OlwiWVlZWVwifX0gLSB7e3ZpZXdSYW5nZS5lbmRUaW1lIHwgZHQ6XCJZWVlZXCJ9fVxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9heC1idXR0b24+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8ZGl2IGNsYXNzPVwiYXgtY29udHJvbGwtYnV0dG9uXCI+XG4gICAgICAgICAgICA8YXgtYnV0dG9uIHR5cGU9XCJsaWdodCBibGFua1wiIChjbGljayk9XCJwcmV2KClcIj5cbiAgICAgICAgICAgICAgICB7eydjb21tb24ucHJldicgfCB0cmFuc319XG4gICAgICAgICAgICA8L2F4LWJ1dHRvbj5cbiAgICAgICAgPC9kaXY+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AgICAgICAgICAgICAgIChjbGljayk9XCJzZXREYXlDbGljaygkZXZlbnQsZClcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7e2QuZGF0ZS5kYXlJbk1vbnRofX08L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImF4LW1vbnRoLWNvbnRhaW5lclwiICpuZ1N3aXRjaENhc2U9XCInbW9udGgnXCI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdGb3I9XCJsZXQgciBvZiBtYXRyaXhcIj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImF4LW1vbnRoLWl0ZW1cIiAqbmdGb3I9XCJsZXQgZCBvZiByO3RyYWNrQnk6dHJhY2tCeUZuXCIgW25nQ2xhc3NdPVwieydzZWxlY3RlZCc6IGQuc2VsZWN0ZWQsJ2ZvY3VzZWQnOmQuZm9jdXNlZCwndG9kYXknOmQudG9kYXl9XCIgKGNsaWNrKT1cInNldE1vbnRoQ2xpY2soJGV2ZW50LGQuZGF0ZSlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxzdHJvbmc+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge3tkLmRhdGV8IGR0OlwiTU1NXCJ9fVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9zdHJvbmc+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiYXgteWVhci1jb250YWluZXJcIiAqbmdTd2l0Y2hDYXNlPVwiJ3llYXInXCI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciBjbGFzcz1cImNhbGVuZGFyLXJvd1wiICpuZ0Zvcj1cImxldCByIG9mIG1hdHJpeFwiPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiYXgteWVhci1pdGVtXCIgKm5nRm9yPVwibGV0IGQgb2Ygcjt0cmFja0J5OnRyYWNrQnlGblwiIFtuZ0NsYXNzXT1cInsnc2VsZWN0ZWQnOiBkLnNlbGVjdGVkLCdmb2N1c2VkJzpkLmZvY3VzZWQsJ3RvZGF5JzpkLnRvZGF5fVwiIChjbGljayk9XCJzZXRZZWFyQ2xpY2soJGV2ZW50LGQuZGF0ZSlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxzdHJvbmc+e3tkLmRhdGUgfCBkdDpcIllZWVlcIn19PC9zdHJvbmc+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgPC9kaXY+XG4gICAgPGRpdiBjbGFzcz1cImF4LWNhbGVuZGFyLWZvb3RlclwiPlxuICAgICAgICA8YXgtYnV0dG9uIChjbGljayk9XCJzZXRUb2RheSgpXCIgKm5nSWY9XCJzaG93VG9kYXlCdXR0b25cIiB0eXBlPVwiZGFya1wiPlxuICAgICAgICAgICAge3tnZXRUb2RheU5hbWUoKX19XG4gICAgICAgIDwvYXgtYnV0dG9uPlxuICAgIDwvZGl2PlxuPC9kaXY+Il19
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { AXProperyEditorComponent } from '../../property-editor.class';
|
1
|
+
import { ChangeDetectorRef, Component, ViewChild } from '@angular/core';
|
3
2
|
import { AXSelectBoxComponent } from '../../../selectbox/selectbox.component';
|
3
|
+
import { AXProperyEditorComponent } from '../../property-editor.class';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "../../../selectbox/selectbox.component";
|
6
6
|
import * as i2 from "../../../data-source/datasource.component";
|
@@ -12,7 +12,7 @@ export class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent
|
|
12
12
|
selectionMode = 'single';
|
13
13
|
selectionDataMode = 'value';
|
14
14
|
allowSearch = true;
|
15
|
-
allowNull =
|
15
|
+
allowNull = true;
|
16
16
|
disabled = false;
|
17
17
|
items = [];
|
18
18
|
remoteOperation = false;
|
@@ -72,4 +72,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImpor
|
|
72
72
|
type: ViewChild,
|
73
73
|
args: [AXSelectBoxComponent, { static: true }]
|
74
74
|
}] } });
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0Ym94LmVkaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zcmMvbGliL3Byb3BlcnR5LWVkaXRvci9lZGl0b3JzL3NlbGVjdGJveC1lZGl0b3Ivc2VsZWN0Ym94LmVkaXRvci50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zcmMvbGliL3Byb3BlcnR5LWVkaXRvci9lZGl0b3JzL3NlbGVjdGJveC1lZGl0b3Ivc2VsZWN0Ym94LmVkaXRvci5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hFLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBRTlFLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDOzs7OztBQUt2RSxNQUFNLE9BQU8sa0NBQW1DL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