@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.
Files changed (156) hide show
  1. package/action-sheet/index.d.ts +56 -0
  2. package/alert/index.d.ts +1 -1
  3. package/autocomplete/index.d.ts +1 -0
  4. package/avatar/index.d.ts +11 -4
  5. package/breadcrumbs/index.d.ts +15 -1
  6. package/calendar/index.d.ts +23 -9
  7. package/check-box/index.d.ts +1 -1
  8. package/circular-progress/index.d.ts +23 -18
  9. package/collapse/index.d.ts +6 -3
  10. package/color-box/index.d.ts +1 -0
  11. package/color-palette/index.d.ts +1 -1
  12. package/comment/index.d.ts +3 -3
  13. package/conversation/index.d.ts +1 -0
  14. package/cron-job/index.d.ts +5 -4
  15. package/data-pager/index.d.ts +10 -5
  16. package/data-table/index.d.ts +16 -2
  17. package/datetime-box/index.d.ts +2 -0
  18. package/datetime-input/index.d.ts +1 -0
  19. package/datetime-picker/index.d.ts +8 -0
  20. package/dropdown/index.d.ts +41 -0
  21. package/fesm2022/acorex-components-action-sheet.mjs +56 -0
  22. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  23. package/fesm2022/acorex-components-alert.mjs +1 -1
  24. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  25. package/fesm2022/acorex-components-autocomplete.mjs +9 -3
  26. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/acorex-components-avatar.mjs +11 -4
  28. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  29. package/fesm2022/acorex-components-breadcrumbs.mjs +15 -1
  30. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  31. package/fesm2022/acorex-components-button.mjs +11 -8
  32. package/fesm2022/acorex-components-button.mjs.map +1 -1
  33. package/fesm2022/acorex-components-calendar.mjs +89 -30
  34. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  35. package/fesm2022/acorex-components-check-box.mjs +2 -2
  36. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  37. package/fesm2022/acorex-components-circular-progress.mjs +23 -18
  38. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  39. package/fesm2022/acorex-components-collapse.mjs +6 -3
  40. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  41. package/fesm2022/acorex-components-color-box.mjs +9 -3
  42. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  43. package/fesm2022/acorex-components-color-palette.mjs +3 -3
  44. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  45. package/fesm2022/acorex-components-comment.mjs +5 -5
  46. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  47. package/fesm2022/acorex-components-conversation.mjs +10 -4
  48. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  49. package/fesm2022/acorex-components-cron-job.mjs +15 -9
  50. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  51. package/fesm2022/acorex-components-data-pager.mjs +45 -48
  52. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  53. package/fesm2022/acorex-components-data-table.mjs +30 -13
  54. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  55. package/fesm2022/acorex-components-datetime-box.mjs +23 -4
  56. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  57. package/fesm2022/acorex-components-datetime-input.mjs +8 -2
  58. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  59. package/fesm2022/acorex-components-datetime-picker.mjs +82 -8
  60. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  61. package/fesm2022/acorex-components-dropdown.mjs +46 -2
  62. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  63. package/fesm2022/acorex-components-image-editor.mjs +12 -6
  64. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  65. package/fesm2022/acorex-components-json-viewer.mjs +2 -2
  66. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  67. package/fesm2022/acorex-components-kanban.mjs +9 -5
  68. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  69. package/fesm2022/acorex-components-kbd.mjs +6 -0
  70. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  71. package/fesm2022/acorex-components-list.mjs +24 -8
  72. package/fesm2022/acorex-components-list.mjs.map +1 -1
  73. package/fesm2022/acorex-components-loading-dialog.mjs +29 -11
  74. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  75. package/fesm2022/acorex-components-loading.mjs +58 -0
  76. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  77. package/fesm2022/acorex-components-map.mjs +64 -16
  78. package/fesm2022/acorex-components-map.mjs.map +1 -1
  79. package/fesm2022/acorex-components-number-box-2.mjs +11 -5
  80. package/fesm2022/acorex-components-number-box-2.mjs.map +1 -1
  81. package/fesm2022/acorex-components-number-box.mjs +10 -4
  82. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  83. package/fesm2022/acorex-components-paint.mjs +8 -2
  84. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  85. package/fesm2022/acorex-components-password-box.mjs +10 -4
  86. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  87. package/fesm2022/acorex-components-phone-box.mjs +9 -3
  88. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  89. package/fesm2022/acorex-components-picker.mjs +14 -4
  90. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  91. package/fesm2022/acorex-components-popover.mjs +31 -7
  92. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  93. package/fesm2022/acorex-components-popup.mjs +2 -2
  94. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  95. package/fesm2022/acorex-components-query-builder.mjs +1 -1
  96. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  97. package/fesm2022/acorex-components-radio.mjs +2 -2
  98. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  99. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  100. package/fesm2022/acorex-components-rest-api-generator.mjs +1 -1
  101. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  102. package/fesm2022/acorex-components-rrule.mjs +293 -0
  103. package/fesm2022/acorex-components-rrule.mjs.map +1 -0
  104. package/fesm2022/acorex-components-scheduler.mjs +48 -22
  105. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  106. package/fesm2022/acorex-components-search-box.mjs +7 -1
  107. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  108. package/fesm2022/acorex-components-select-box.mjs +60 -22
  109. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  110. package/fesm2022/acorex-components-side-menu.mjs +1 -1
  111. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  112. package/fesm2022/acorex-components-tabs.mjs +7 -5
  113. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  114. package/fesm2022/acorex-components-tag-box.mjs +11 -5
  115. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  116. package/fesm2022/acorex-components-text-area.mjs +10 -4
  117. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  118. package/fesm2022/acorex-components-text-box.mjs +10 -4
  119. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  120. package/fesm2022/acorex-components-time-duration.mjs +35 -59
  121. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  122. package/fesm2022/acorex-components-tooltip.mjs +3 -3
  123. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  124. package/fesm2022/acorex-components-tree-view.mjs +2 -2
  125. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  126. package/fesm2022/acorex-components-wysiwyg.mjs +11 -5
  127. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  128. package/image-editor/index.d.ts +1 -0
  129. package/json-viewer/index.d.ts +3 -3
  130. package/kanban/index.d.ts +7 -3
  131. package/kbd/index.d.ts +6 -0
  132. package/list/index.d.ts +15 -2
  133. package/loading/index.d.ts +58 -1
  134. package/loading-dialog/index.d.ts +29 -11
  135. package/map/index.d.ts +27 -6
  136. package/number-box/index.d.ts +1 -0
  137. package/number-box-2/index.d.ts +1 -0
  138. package/package.json +10 -2
  139. package/paint/index.d.ts +1 -0
  140. package/password-box/index.d.ts +1 -0
  141. package/phone-box/index.d.ts +1 -0
  142. package/picker/index.d.ts +10 -8
  143. package/popover/index.d.ts +11 -3
  144. package/radio/index.d.ts +1 -1
  145. package/rate-picker/index.d.ts +1 -1
  146. package/rrule/README.md +3 -0
  147. package/rrule/index.d.ts +80 -0
  148. package/scheduler/index.d.ts +5 -1
  149. package/search-box/index.d.ts +1 -0
  150. package/select-box/index.d.ts +23 -8
  151. package/tag-box/index.d.ts +1 -0
  152. package/text-area/index.d.ts +1 -0
  153. package/text-box/index.d.ts +1 -0
  154. package/time-duration/index.d.ts +3 -1
  155. package/tooltip/index.d.ts +2 -2
  156. 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
- @if (!_parent.isLoading) {
406
- @for (item of _items; track $index) {
407
- <ax-button
408
- class="ax-data-pager-num-button"
409
- [disabled]="_parent.disabled"
410
- [color]="_currentPage === item.data ? 'primary' : 'default'"
411
- [look]="_currentPage === item.data ? 'solid' : 'blank'"
412
- [text]="item.text"
413
- (onClick)="_handleOnItemClick(item)"
414
- >
415
- @if (item.iconClass) {
416
- <ax-icon class="ax-icon" [ngClass]="item.iconClass"></ax-icon>
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"] }, { kind: "component", type: AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
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
- @if (!_parent.isLoading) {
461
- @for (item of _items; track $index) {
462
- <ax-button
463
- class="ax-data-pager-num-button"
464
- [disabled]="_parent.disabled"
465
- [color]="_currentPage === item.data ? 'primary' : 'default'"
466
- [look]="_currentPage === item.data ? 'solid' : 'blank'"
467
- [text]="item.text"
468
- (onClick)="_handleOnItemClick(item)"
469
- >
470
- @if (item.iconClass) {
471
- <ax-icon class="ax-icon" [ngClass]="item.iconClass"></ax-icon>
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, AXSkeletonComponent],
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
- * @ignore
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
- * @ignore
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
- * @ignore
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
- * @ignore
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
- * @ignore
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) {