@acorex/components 20.2.0-next.0 → 20.2.0-next.10
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/action-sheet/index.d.ts +56 -0
- package/alert/index.d.ts +1 -1
- package/autocomplete/index.d.ts +1 -0
- package/avatar/index.d.ts +11 -4
- package/breadcrumbs/index.d.ts +15 -1
- package/calendar/index.d.ts +23 -9
- package/check-box/index.d.ts +1 -1
- package/circular-progress/index.d.ts +23 -18
- package/collapse/index.d.ts +6 -3
- package/color-box/index.d.ts +1 -0
- package/color-palette/index.d.ts +1 -1
- package/comment/index.d.ts +3 -3
- package/conversation/index.d.ts +1 -0
- package/cron-job/index.d.ts +5 -4
- package/data-pager/index.d.ts +10 -5
- package/data-table/index.d.ts +16 -2
- package/datetime-box/index.d.ts +2 -0
- package/datetime-input/index.d.ts +1 -0
- package/datetime-picker/index.d.ts +8 -0
- package/dropdown/index.d.ts +41 -0
- package/fesm2022/acorex-components-action-sheet.mjs +56 -0
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +1 -1
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs +9 -3
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +11 -4
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +15 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +11 -8
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +89 -30
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +2 -2
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +23 -18
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +6 -3
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +9 -3
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +3 -3
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +5 -5
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +10 -4
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +15 -9
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +45 -48
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +30 -13
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +23 -4
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +8 -2
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +82 -8
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +46 -2
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +12 -6
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +2 -2
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +9 -5
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +6 -0
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +24 -8
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +29 -11
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +58 -0
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +64 -16
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box-2.mjs +11 -5
- package/fesm2022/acorex-components-number-box-2.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +10 -4
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +8 -2
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +10 -4
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +9 -3
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +14 -4
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +31 -7
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +2 -2
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +1 -1
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +2 -2
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +293 -0
- package/fesm2022/acorex-components-rrule.mjs.map +1 -0
- package/fesm2022/acorex-components-scheduler.mjs +48 -22
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +7 -1
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +60 -22
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +1 -1
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +7 -5
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +11 -5
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +10 -4
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +10 -4
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs +35 -59
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +3 -3
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +2 -2
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +11 -5
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/image-editor/index.d.ts +1 -0
- package/json-viewer/index.d.ts +3 -3
- package/kanban/index.d.ts +7 -3
- package/kbd/index.d.ts +6 -0
- package/list/index.d.ts +15 -2
- package/loading/index.d.ts +58 -1
- package/loading-dialog/index.d.ts +29 -11
- package/map/index.d.ts +27 -6
- package/number-box/index.d.ts +1 -0
- package/number-box-2/index.d.ts +1 -0
- package/package.json +10 -2
- package/paint/index.d.ts +1 -0
- package/password-box/index.d.ts +1 -0
- package/phone-box/index.d.ts +1 -0
- package/picker/index.d.ts +10 -8
- package/popover/index.d.ts +11 -3
- package/radio/index.d.ts +1 -1
- package/rate-picker/index.d.ts +1 -1
- package/rrule/README.md +3 -0
- package/rrule/index.d.ts +80 -0
- package/scheduler/index.d.ts +5 -1
- package/search-box/index.d.ts +1 -0
- package/select-box/index.d.ts +23 -8
- package/tag-box/index.d.ts +1 -0
- package/text-area/index.d.ts +1 -0
- package/text-box/index.d.ts +1 -0
- package/time-duration/index.d.ts +3 -1
- package/tooltip/index.d.ts +2 -2
- package/wysiwyg/index.d.ts +1 -0
@@ -92,25 +92,49 @@ class MXCalendarBaseComponent extends MXBaseComponent {
|
|
92
92
|
return this._minValue;
|
93
93
|
}
|
94
94
|
set minValue(v) {
|
95
|
-
this.
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
95
|
+
if (this.calendarService.isValidDate(v)) {
|
96
|
+
const value = this.calendarService.create(v).date;
|
97
|
+
this.setOption({
|
98
|
+
name: 'minValue',
|
99
|
+
value,
|
100
|
+
afterCallback: () => {
|
101
|
+
this.render();
|
102
|
+
},
|
103
|
+
});
|
104
|
+
}
|
105
|
+
else {
|
106
|
+
this.setOption({
|
107
|
+
name: 'minValue',
|
108
|
+
value: undefined,
|
109
|
+
afterCallback: () => {
|
110
|
+
this.render();
|
111
|
+
},
|
112
|
+
});
|
113
|
+
}
|
102
114
|
}
|
103
115
|
get maxValue() {
|
104
116
|
return this._maxValue;
|
105
117
|
}
|
106
118
|
set maxValue(v) {
|
107
|
-
this.
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
119
|
+
if (this.calendarService.isValidDate(v)) {
|
120
|
+
const value = this.calendarService.create(v).date;
|
121
|
+
this.setOption({
|
122
|
+
name: 'maxValue',
|
123
|
+
value,
|
124
|
+
afterCallback: () => {
|
125
|
+
this.render();
|
126
|
+
},
|
127
|
+
});
|
128
|
+
}
|
129
|
+
else {
|
130
|
+
this.setOption({
|
131
|
+
name: 'maxValue',
|
132
|
+
value: undefined,
|
133
|
+
afterCallback: () => {
|
134
|
+
this.render();
|
135
|
+
},
|
136
|
+
});
|
137
|
+
}
|
114
138
|
}
|
115
139
|
get disabledDates() {
|
116
140
|
return this._disabledDates;
|
@@ -258,6 +282,12 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
258
282
|
this.typeChange.pipe(unsubscriber.takeUntilDestroy).subscribe((value) => {
|
259
283
|
this.calendar.set(value);
|
260
284
|
});
|
285
|
+
this.minValueChange.subscribe((e) => {
|
286
|
+
if (this._viewStartDate.isBefore(e)) {
|
287
|
+
this._viewStartDate = this.calendarService.create(e, this.calendar());
|
288
|
+
this.render();
|
289
|
+
}
|
290
|
+
});
|
261
291
|
}
|
262
292
|
/**
|
263
293
|
* @ignore
|
@@ -271,7 +301,13 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
271
301
|
*/
|
272
302
|
ngAfterViewInit() {
|
273
303
|
if (!this.value) {
|
274
|
-
this.
|
304
|
+
if (this.minValue && this._viewStartDate.isBefore(this.minValue)) {
|
305
|
+
this._viewStartDate = this.calendarService.create(this.minValue, this.calendar());
|
306
|
+
this.render();
|
307
|
+
}
|
308
|
+
else {
|
309
|
+
this.goToday();
|
310
|
+
}
|
275
311
|
}
|
276
312
|
}
|
277
313
|
/**
|
@@ -549,14 +585,20 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
549
585
|
* @ignore
|
550
586
|
*/
|
551
587
|
internalSetValue(value) {
|
552
|
-
if (!value)
|
588
|
+
if (!value || !this.calendarService.isValidDate(value)) {
|
553
589
|
return null;
|
554
|
-
|
555
|
-
const
|
556
|
-
if (isDisabled)
|
590
|
+
}
|
591
|
+
const v = this.calendarService.convert(value, this.calendar());
|
592
|
+
if (this.isDisabled(v)) {
|
557
593
|
return null;
|
558
|
-
|
559
|
-
|
594
|
+
}
|
595
|
+
if (this.maxValue && this.calendarService.isValidDate(this.maxValue) && v.isAfter(this.maxValue)) {
|
596
|
+
return this.maxValue;
|
597
|
+
}
|
598
|
+
if (this.minValue && this.calendarService.isValidDate(this.minValue) && v.isBefore(this.minValue)) {
|
599
|
+
return this.minValue;
|
600
|
+
}
|
601
|
+
return v.date;
|
560
602
|
}
|
561
603
|
/**
|
562
604
|
* @ignore
|
@@ -567,6 +609,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
567
609
|
val.compare(this.displayRange.startTime, this.activeView) == -1 ||
|
568
610
|
val.compare(this.displayRange.endTime, this.activeView) == 1) {
|
569
611
|
this._viewStartDate = this.calendarService.create(value, this.calendar());
|
612
|
+
if (this.minValue && this._viewStartDate.isBefore(this.minValue)) {
|
613
|
+
this._viewStartDate = this.calendarService.create(this.minValue, this.calendar());
|
614
|
+
}
|
570
615
|
}
|
571
616
|
this._footPrint.year = val.year;
|
572
617
|
this._footPrint.month = val.monthOfYear;
|
@@ -603,22 +648,35 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
603
648
|
this._navUserInteraction = false;
|
604
649
|
}
|
605
650
|
/**
|
606
|
-
* Navigates
|
607
|
-
*
|
651
|
+
* Navigates forward in the calendar based on the current active view and the configured count.
|
652
|
+
*
|
653
|
+
* Behavior by view:
|
654
|
+
* - day view: advances by count months
|
655
|
+
* - month view: advances by count years
|
656
|
+
* - year view: advances by 10 × count years
|
657
|
+
*
|
658
|
+
* @returns void
|
608
659
|
*/
|
609
660
|
next() {
|
610
661
|
this._navNextPrev(false);
|
611
662
|
}
|
612
663
|
/**
|
613
|
-
* Navigates
|
614
|
-
*
|
664
|
+
* Navigates backward in the calendar based on the current active view and the configured count.
|
665
|
+
*
|
666
|
+
* Behavior by view:
|
667
|
+
* - day view: goes back by count months
|
668
|
+
* - month view: goes back by count years
|
669
|
+
* - year view: goes back by 10 × count years
|
670
|
+
*
|
671
|
+
* @returns void
|
615
672
|
*/
|
616
673
|
prev() {
|
617
674
|
this._navNextPrev(true);
|
618
675
|
}
|
619
676
|
/**
|
620
677
|
* Sets focus to the currently selected calendar slot or the first available slot.
|
621
|
-
*
|
678
|
+
*
|
679
|
+
* @returns void
|
622
680
|
*/
|
623
681
|
focus() {
|
624
682
|
const func = (s) => this.getHostElement().querySelector(s);
|
@@ -638,8 +696,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
638
696
|
this.navTo(this._viewStartDate.add('year', sign * 10 * this.count));
|
639
697
|
}
|
640
698
|
/**
|
641
|
-
* Navigates to the current date.
|
642
|
-
*
|
699
|
+
* Navigates to the current date and emits the navigation event.
|
700
|
+
*
|
701
|
+
* @returns void
|
643
702
|
*/
|
644
703
|
goToday() {
|
645
704
|
this.navTo(this._today);
|
@@ -647,8 +706,8 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
647
706
|
/**
|
648
707
|
* Navigates to a specified date and updates the view.
|
649
708
|
*
|
650
|
-
* @param date
|
651
|
-
* @
|
709
|
+
* @param date The date to navigate to, which can be a Date object or an AXDateTime instance.
|
710
|
+
* @returns void
|
652
711
|
*/
|
653
712
|
navTo(date) {
|
654
713
|
const val = this.calendarService.convert(date, this.calendar());
|