@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
@@ -9,10 +9,10 @@ import { AXNumberBoxComponent, AXNumberBoxModule } from '@acorex/components/numb
|
|
9
9
|
import * as i1 from '@angular/forms';
|
10
10
|
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
11
11
|
import { AXButtonComponent, AXButtonItemListComponent, AXButtonItemComponent, AXButtonModule } from '@acorex/components/button';
|
12
|
-
import { AXSkeletonComponent, AXSkeletonModule } from '@acorex/components/skeleton';
|
13
12
|
import { AXDropdownPanelComponent, AXDropdownModule } from '@acorex/components/dropdown';
|
14
13
|
import { isNumber, isEqual, cloneDeep } from 'lodash-es';
|
15
14
|
import { AXButtonGroupModule } from '@acorex/components/button-group';
|
15
|
+
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
16
16
|
|
17
17
|
class AXDataPagerChangedEvent extends AXEvent {
|
18
18
|
constructor() {
|
@@ -77,7 +77,7 @@ class AXDataPagerInfoComponent extends AXDataPagerChild {
|
|
77
77
|
*/
|
78
78
|
async applyParent() {
|
79
79
|
const info = this._parent.displayInfo;
|
80
|
-
if ([info.range, info.range.from, info.totalItems].every((c) => c)) {
|
80
|
+
if ([info.range, info.range.from, info.totalItems].every((c) => c != undefined)) {
|
81
81
|
this._textFormatted = (await this.translateService.translateAsync(this.text ?? '@acorex:datapager.info.text'))
|
82
82
|
.replace('[from]', info.range.from.toString())
|
83
83
|
.replace('[to]', info.range.to.toString())
|
@@ -389,7 +389,7 @@ class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
389
389
|
], usesInheritance: true, ngImport: i0, template: `
|
390
390
|
<ax-button
|
391
391
|
class="ax-sm"
|
392
|
-
[disabled]="_currentPage === 1 || _parent.disabled"
|
392
|
+
[disabled]="_currentPage === 1 || _parent.disabled || _parent.isLoading"
|
393
393
|
look="blank"
|
394
394
|
(onClick)="_handleOnItemClick({ data: 1 })"
|
395
395
|
>
|
@@ -402,28 +402,24 @@ class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
402
402
|
></ax-icon>
|
403
403
|
</ax-button>
|
404
404
|
|
405
|
-
@
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
</ax-button>
|
419
|
-
}
|
420
|
-
} @else {
|
421
|
-
<ax-skeleton></ax-skeleton>
|
405
|
+
@for (item of _items; track $index) {
|
406
|
+
<ax-button
|
407
|
+
class="ax-data-pager-num-button"
|
408
|
+
[disabled]="_parent.disabled || _parent.isLoading"
|
409
|
+
[color]="_currentPage === item.data ? 'primary' : 'default'"
|
410
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
411
|
+
[text]="item.text"
|
412
|
+
(onClick)="_handleOnItemClick(item)"
|
413
|
+
>
|
414
|
+
@if (item.iconClass) {
|
415
|
+
<ax-icon class="ax-icon" [ngClass]="item.iconClass"></ax-icon>
|
416
|
+
}
|
417
|
+
</ax-button>
|
422
418
|
}
|
423
419
|
|
424
420
|
<ax-button
|
425
421
|
class="ax-sm"
|
426
|
-
[disabled]="_currentPage === _lastPage || _parent.disabled"
|
422
|
+
[disabled]="_currentPage === _lastPage || _parent.disabled || _parent.isLoading"
|
427
423
|
look="blank"
|
428
424
|
(onClick)="_handleOnItemClick({ data: _lastPage })"
|
429
425
|
>
|
@@ -435,7 +431,7 @@ class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
435
431
|
}"
|
436
432
|
></ax-icon>
|
437
433
|
</ax-button>
|
438
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }
|
434
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
439
435
|
}
|
440
436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXDataPagerNumericSelectorComponent, decorators: [{
|
441
437
|
type: Component,
|
@@ -444,7 +440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
444
440
|
template: `
|
445
441
|
<ax-button
|
446
442
|
class="ax-sm"
|
447
|
-
[disabled]="_currentPage === 1 || _parent.disabled"
|
443
|
+
[disabled]="_currentPage === 1 || _parent.disabled || _parent.isLoading"
|
448
444
|
look="blank"
|
449
445
|
(onClick)="_handleOnItemClick({ data: 1 })"
|
450
446
|
>
|
@@ -457,28 +453,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
457
453
|
></ax-icon>
|
458
454
|
</ax-button>
|
459
455
|
|
460
|
-
@
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
</ax-button>
|
474
|
-
}
|
475
|
-
} @else {
|
476
|
-
<ax-skeleton></ax-skeleton>
|
456
|
+
@for (item of _items; track $index) {
|
457
|
+
<ax-button
|
458
|
+
class="ax-data-pager-num-button"
|
459
|
+
[disabled]="_parent.disabled || _parent.isLoading"
|
460
|
+
[color]="_currentPage === item.data ? 'primary' : 'default'"
|
461
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
462
|
+
[text]="item.text"
|
463
|
+
(onClick)="_handleOnItemClick(item)"
|
464
|
+
>
|
465
|
+
@if (item.iconClass) {
|
466
|
+
<ax-icon class="ax-icon" [ngClass]="item.iconClass"></ax-icon>
|
467
|
+
}
|
468
|
+
</ax-button>
|
477
469
|
}
|
478
470
|
|
479
471
|
<ax-button
|
480
472
|
class="ax-sm"
|
481
|
-
[disabled]="_currentPage === _lastPage || _parent.disabled"
|
473
|
+
[disabled]="_currentPage === _lastPage || _parent.disabled || _parent.isLoading"
|
482
474
|
look="blank"
|
483
475
|
(onClick)="_handleOnItemClick({ data: _lastPage })"
|
484
476
|
>
|
@@ -501,7 +493,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
501
493
|
AXUnsubscriber,
|
502
494
|
{ provide: AXComponent, useExisting: AXDataPagerNumericSelectorComponent },
|
503
495
|
],
|
504
|
-
imports: [AXButtonComponent, AXDecoratorIconComponent, NgClass
|
496
|
+
imports: [AXButtonComponent, AXDecoratorIconComponent, NgClass],
|
505
497
|
}]
|
506
498
|
}], ctorParameters: () => [] });
|
507
499
|
|
@@ -918,7 +910,7 @@ class AXDataPagerComponent extends MXValueComponent {
|
|
918
910
|
* @ignore
|
919
911
|
*/
|
920
912
|
_emitChangedEvent(u = false) {
|
921
|
-
this.totalPages = Math.ceil(this._total / this.size);
|
913
|
+
this.totalPages = Math.ceil(this._total / this.size) || 1;
|
922
914
|
//
|
923
915
|
if (!isEqual(this.previousDisplayInfo, this.displayInfo)) {
|
924
916
|
this.onChanged.emit(Object.assign({
|
@@ -936,36 +928,41 @@ class AXDataPagerComponent extends MXValueComponent {
|
|
936
928
|
}
|
937
929
|
/**
|
938
930
|
* Navigates to the next page, or to the last page if on the final page.
|
939
|
-
*
|
931
|
+
*
|
932
|
+
* @returns void - No return value. The component navigates to the next available page.
|
940
933
|
*/
|
941
934
|
goNextPage() {
|
942
935
|
this.goToPage(Math.min(this.value + 1, this.totalPages));
|
943
936
|
}
|
944
937
|
/**
|
945
938
|
* Navigates to the last page.
|
946
|
-
*
|
939
|
+
*
|
940
|
+
* @returns void - No return value. The component navigates to the final page.
|
947
941
|
*/
|
948
942
|
goLastPage() {
|
949
943
|
this.goToPage(this.totalPages);
|
950
944
|
}
|
951
945
|
/**
|
952
946
|
* Navigates to the first page.
|
953
|
-
*
|
947
|
+
*
|
948
|
+
* @returns void - No return value. The component navigates to the first page.
|
954
949
|
*/
|
955
950
|
goFirstPage() {
|
956
951
|
this.goToPage(1);
|
957
952
|
}
|
958
953
|
/**
|
959
954
|
* Navigates to the previous page, or to the first page if on the initial page.
|
960
|
-
*
|
955
|
+
*
|
956
|
+
* @returns void - No return value. The component navigates to the previous available page.
|
961
957
|
*/
|
962
958
|
goPrevPage() {
|
963
959
|
this.goToPage(Math.max(this.value - 1, 1));
|
964
960
|
}
|
965
961
|
/**
|
966
962
|
* Navigates to a specified page.
|
963
|
+
*
|
967
964
|
* @param page - The page number to navigate to.
|
968
|
-
* @
|
965
|
+
* @returns void - No return value. The component navigates to the specified page.
|
969
966
|
*/
|
970
967
|
goToPage(page) {
|
971
968
|
if (page != this.value) {
|