@acorex/components 5.0.2 → 5.0.7

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 (104) hide show
  1. package/bundles/acorex-components.umd.js +1528 -1038
  2. package/bundles/acorex-components.umd.js.map +1 -1
  3. package/esm2015/lib/alert/alert.component.js +17 -17
  4. package/esm2015/lib/badge/badge.component.js +34 -0
  5. package/esm2015/lib/badge/badge.module.js +21 -0
  6. package/esm2015/lib/badge/index.js +3 -0
  7. package/esm2015/lib/base/events.class.js +7 -1
  8. package/esm2015/lib/base/mixin/base-components.class.js +6 -6
  9. package/esm2015/lib/base/mixin/button-mixin.class.js +2 -2
  10. package/esm2015/lib/base/mixin/interactive-mixin.class.js +6 -1
  11. package/esm2015/lib/base/mixin/mixin.class.js +2 -3
  12. package/esm2015/lib/button/button-group.component.js +3 -3
  13. package/esm2015/lib/button/button.component.js +27 -6
  14. package/esm2015/lib/button/button.module.js +1 -5
  15. package/esm2015/lib/button/index.js +1 -2
  16. package/esm2015/lib/calendar/calendar.component.js +266 -38
  17. package/esm2015/lib/calendar/calendar.module.js +4 -3
  18. package/esm2015/lib/checkbox/checkbox.component.js +2 -2
  19. package/esm2015/lib/datepicker/datepicker.component.js +21 -5
  20. package/esm2015/lib/decorators/prefix.component.js +3 -3
  21. package/esm2015/lib/decorators/suffix.component.js +3 -11
  22. package/esm2015/lib/dialog/dialog.component.js +2 -2
  23. package/esm2015/lib/dialog/dialog.service.js +24 -5
  24. package/esm2015/lib/dropdown/dropdown-base.class.js +98 -0
  25. package/esm2015/lib/dropdown/dropdown-panel.component.js +23 -130
  26. package/esm2015/lib/dropdown/dropdown.component.js +16 -123
  27. package/esm2015/lib/dropdown/dropdown.module.js +5 -4
  28. package/esm2015/lib/icon/icon.component.js +4 -4
  29. package/esm2015/lib/number-box/number-box.component.js +4 -4
  30. package/esm2015/lib/password-box/index.js +3 -0
  31. package/esm2015/lib/password-box/password-box.component.js +74 -0
  32. package/esm2015/lib/password-box/password-box.module.js +35 -0
  33. package/esm2015/lib/popover/popover.component.js +183 -82
  34. package/esm2015/lib/range-slider/index.js +3 -0
  35. package/esm2015/lib/range-slider/range-slider.component.js +22 -0
  36. package/esm2015/lib/range-slider/range-slider.module.js +21 -0
  37. package/esm2015/lib/selectbox/selectbox.component.js +11 -3
  38. package/esm2015/lib/selectbox/selectbox.module.js +8 -4
  39. package/esm2015/lib/selection-list/selection-list.component.js +3 -2
  40. package/esm2015/lib/switch/switch.component.js +2 -2
  41. package/esm2015/lib/tabs/index.js +4 -2
  42. package/esm2015/lib/tabs/tab-content.directive.js +27 -0
  43. package/esm2015/lib/tabs/tab-item.component.js +76 -0
  44. package/esm2015/lib/tabs/tab-strip.component.js +15 -7
  45. package/esm2015/lib/tabs/tab-view.component.js +4 -5
  46. package/esm2015/lib/tabs/tab.component.js +2 -3
  47. package/esm2015/lib/tabs/tabs.component.js +74 -0
  48. package/esm2015/lib/tabs/tabs.module.js +9 -7
  49. package/esm2015/lib/textbox/textbox.component.js +8 -6
  50. package/esm2015/lib/textbox/textbox.module.js +6 -2
  51. package/esm2015/lib/time-box/time-box.component.js +1 -1
  52. package/esm2015/lib/toast/toast.component.js +2 -2
  53. package/esm2015/public-api.js +4 -1
  54. package/fesm2015/acorex-components.js +1316 -883
  55. package/fesm2015/acorex-components.js.map +1 -1
  56. package/lib/alert/alert.component.d.ts +4 -4
  57. package/lib/badge/badge.component.d.ts +11 -0
  58. package/lib/badge/badge.module.d.ts +8 -0
  59. package/lib/badge/index.d.ts +2 -0
  60. package/lib/base/events.class.d.ts +7 -0
  61. package/lib/base/mixin/button-mixin.class.d.ts +3 -1
  62. package/lib/base/mixin/interactive-mixin.class.d.ts +2 -3
  63. package/lib/base/mixin/loading-mixin.class.d.ts +1 -3
  64. package/lib/base/mixin/mixin.class.d.ts +1 -224
  65. package/lib/base/mixin/textbox-mixin.class.d.ts +4 -7
  66. package/lib/base/mixin/value-mixin.class.d.ts +4 -5
  67. package/lib/button/button-group.component.d.ts +3 -2
  68. package/lib/button/button.component.d.ts +4 -1
  69. package/lib/button/button.module.d.ts +6 -7
  70. package/lib/button/index.d.ts +0 -1
  71. package/lib/calendar/calendar.component.d.ts +52 -12
  72. package/lib/calendar/calendar.module.d.ts +4 -3
  73. package/lib/datepicker/datepicker.component.d.ts +3 -3
  74. package/lib/decorators/prefix.component.d.ts +1 -1
  75. package/lib/decorators/suffix.component.d.ts +1 -1
  76. package/lib/dialog/dialog.service.d.ts +20 -2
  77. package/lib/dropdown/dropdown-base.class.d.ts +92 -0
  78. package/lib/dropdown/dropdown-panel.component.d.ts +12 -100
  79. package/lib/dropdown/dropdown.component.d.ts +9 -27
  80. package/lib/dropdown/dropdown.module.d.ts +2 -1
  81. package/lib/icon/icon.component.d.ts +1 -1
  82. package/lib/number-box/number-box.component.d.ts +1 -1
  83. package/lib/password-box/index.d.ts +2 -0
  84. package/lib/password-box/password-box.component.d.ts +24 -0
  85. package/lib/password-box/password-box.module.d.ts +12 -0
  86. package/lib/popover/popover.component.d.ts +37 -23
  87. package/lib/range-slider/index.d.ts +2 -0
  88. package/lib/range-slider/range-slider.component.d.ts +8 -0
  89. package/lib/range-slider/range-slider.module.d.ts +8 -0
  90. package/lib/selectbox/selectbox.component.d.ts +1 -0
  91. package/lib/selectbox/selectbox.module.d.ts +5 -1
  92. package/lib/selection-list/selection-list.component.d.ts +1 -1
  93. package/lib/tabs/index.d.ts +3 -1
  94. package/lib/tabs/tab-content.directive.d.ts +11 -0
  95. package/lib/tabs/tab-item.component.d.ts +16 -0
  96. package/lib/tabs/tab-strip.component.d.ts +5 -3
  97. package/lib/tabs/tab-view.component.d.ts +2 -2
  98. package/lib/tabs/tabs.component.d.ts +19 -0
  99. package/lib/tabs/tabs.module.d.ts +6 -4
  100. package/lib/textbox/textbox.module.d.ts +3 -2
  101. package/package.json +1 -1
  102. package/public-api.d.ts +3 -0
  103. package/esm2015/lib/button/dropdown-button.component.js +0 -200
  104. package/lib/button/dropdown-button.component.d.ts +0 -234
@@ -1,25 +1,26 @@
1
1
  import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, Inject, EventEmitter, Directive, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, HostBinding, HostListener, ContentChildren, ViewChildren, ViewChild, Optional, ContentChild, TemplateRef } from '@angular/core';
3
+ import { Injectable, Inject, EventEmitter, Directive, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, HostBinding, HostListener, ContentChildren, Optional, ViewChild, ContentChild, ElementRef, ViewChildren, TemplateRef } from '@angular/core';
4
4
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
5
5
  import * as i2 from '@acorex/core';
6
- import { AXObjectUtil, AXTranslator, AXConfig, AXDateTime } from '@acorex/core';
7
- import { Subscription, Subject, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
8
- import { debounceTime, distinctUntilChanged, observeOn, finalize } from 'rxjs/operators';
9
- import * as i1 from '@angular/common';
6
+ import { AXObjectUtil, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXDrawingUtil, AXTranslator, AXConfig } from '@acorex/core';
7
+ import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
8
+ import { debounceTime, distinctUntilChanged, throttleTime, observeOn, finalize } from 'rxjs/operators';
9
+ import * as i4 from '@angular/common';
10
10
  import { CommonModule, DOCUMENT } from '@angular/common';
11
- import * as i1$2 from '@angular/cdk/portal';
12
- import { TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
13
- import * as i1$1 from '@angular/cdk/overlay';
14
- import { OverlayModule, OverlayContainer, Overlay } from '@angular/cdk/overlay';
15
11
  import * as i3 from '@angular/forms';
16
12
  import { FormsModule } from '@angular/forms';
13
+ import * as i1$1 from '@angular/cdk/portal';
14
+ import { TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
15
+ import _ from 'lodash';
16
+ import * as i1 from '@angular/cdk/overlay';
17
+ import { OverlayModule, OverlayContainer, Overlay } from '@angular/cdk/overlay';
17
18
  import * as i2$1 from '@angular/cdk/a11y';
18
19
  import { A11yModule } from '@angular/cdk/a11y';
19
20
  import * as i3$1 from '@angular/cdk/drag-drop';
20
21
  import { DragDropModule } from '@angular/cdk/drag-drop';
21
22
  import * as i2$2 from '@angular/cdk/bidi';
22
- import * as i1$3 from 'ngx-mask';
23
+ import * as i1$2 from 'ngx-mask';
23
24
  import { NgxMaskModule } from 'ngx-mask';
24
25
  import { trigger, transition, style, animate } from '@angular/animations';
25
26
 
@@ -29,7 +30,7 @@ class AXBaseComponent {
29
30
  * @ignore
30
31
  */
31
32
  constructor(...args) {
32
- this.id = `ax-${new Date().getTime().toString()}`;
33
+ this.id = `AX${Math.round(Math.random() * Math.pow(10, 10))}`;
33
34
  _elementRef.set(this, void 0);
34
35
  __classPrivateFieldSet(this, _elementRef, args[0]);
35
36
  this._cdr = args[1];
@@ -52,14 +53,14 @@ class AXBaseComponent {
52
53
  return this._getHostElement().firstElementChild;
53
54
  }
54
55
  _onInternalInit() {
55
- var _a;
56
56
  this._getHostElement().__axContext__ = this;
57
- this._getHostElement().setAttribute('data-id', this.id);
58
57
  if (this.rtl == null) {
59
58
  this.rtl = window.getComputedStyle(this._getHostElement(), null).getPropertyValue('direction') === 'rtl';
60
59
  }
61
- this._getHostElement().classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
62
- (_a = this._getInnerElement()) === null || _a === void 0 ? void 0 : _a.classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
60
+ //TODO: Apply
61
+ // this._getHostElement().classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
62
+ // this._getInnerElement()?.classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
63
+ // this._getHostElement().setAttribute('data-id', this.id);
63
64
  this.onInit();
64
65
  }
65
66
  _onInternalViewInit() {
@@ -207,7 +208,7 @@ function _ButtonComponentMixin(Base) {
207
208
  const cssClasses = {
208
209
  'ax-button-icon': !this.text,
209
210
  'ax-state-disabled': this["disabled"],
210
- 'ax-state-selected': this.selected,
211
+ 'ax-state-selected': this.selected
211
212
  };
212
213
  cssClasses[`ax-${this.color || 'primary'}${this.look ? '-' + this.look : ''}`] = true;
213
214
  return cssClasses;
@@ -449,7 +450,12 @@ function _InteractiveComponenetMixin(Base) {
449
450
  }
450
451
  _disabled = new WeakMap(), _tabIndex = new WeakMap();
451
452
  return Mixin;
452
- }
453
+ }
454
+ const INTERACTIVE_INPUTS = [
455
+ 'disabled',
456
+ 'tabIndex',
457
+ ];
458
+ const INTERACTIVE_OUTPUT = ['onBlur', 'onFocus'];
453
459
 
454
460
  function _SelectionComponenetMixin(Base) {
455
461
  return class extends Base {
@@ -853,11 +859,10 @@ const AXBaseClickableMixin = _SizableComponenetMixin(_InteractiveComponenetMixin
853
859
  const AXBaseButtonMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ClickableComponenetMixin(_ButtonComponentMixin(AXBaseComponent))));
854
860
  const AXBaseValueComponentMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXBaseComponent)));
855
861
  const AXBaseTextBoxMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
856
- const AXBaseDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(AXBaseComponent)));
857
862
  const AXBaseSelectionValueMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
858
863
  const AXBaseValueDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
859
864
  const AXBaseSelectionDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent))))));
860
- const AXCalendarMixin = _ClickableComponenetMixin(_ButtonComponentMixin(_SizableComponenetMixin(AXBaseComponent)));
865
+ const AXCalendarComponentMixin = _ClickableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXBaseComponent)));
861
866
 
862
867
  /**
863
868
  * Contains native event
@@ -890,6 +895,12 @@ class AXClickEvent extends AXHtmlEvent {
890
895
  class AXButtonClickEvent extends AXClickEvent {
891
896
  }
892
897
  /**
898
+ * Fires each time the user click the element.
899
+ * @category Events
900
+ */
901
+ class AXItemClickEvent extends AXEvent {
902
+ }
903
+ /**
893
904
  * Fires each time the component gets focused.
894
905
  * @category Events
895
906
  */
@@ -977,13 +988,13 @@ class AXAlertComponent extends AXBaseComponentMixin {
977
988
  /**
978
989
  * The Alert allows you to set different types of alerts
979
990
  */
980
- get type() {
981
- return this._type;
991
+ get color() {
992
+ return this._color;
982
993
  }
983
- set type(v) {
984
- this._type = v;
994
+ set color(v) {
995
+ this._color = v;
985
996
  this.typeChange.emit(v);
986
- switch (this.type) {
997
+ switch (this.color) {
987
998
  case 'success':
988
999
  this.icon = 'ax-ic ax-ic-check-filled';
989
1000
  break;
@@ -999,7 +1010,7 @@ class AXAlertComponent extends AXBaseComponentMixin {
999
1010
  }
1000
1011
  }
1001
1012
  get hostClass() {
1002
- return `ax-${this.type}`;
1013
+ return `ax-${this.color}`;
1003
1014
  }
1004
1015
  /**
1005
1016
  * set the visibility of the Alert
@@ -1012,17 +1023,16 @@ class AXAlertComponent extends AXBaseComponentMixin {
1012
1023
  __classPrivateFieldSet(this, _visible, v);
1013
1024
  const host = this._getHostElement();
1014
1025
  if (v) {
1015
- host.classList.remove('ax-none', 'animate__fadeOut');
1016
- host.classList.add('animate__animated', 'animate__fadeIn', 'animate__fast');
1026
+ host.classList.remove('ax-state-hidden');
1027
+ host.classList.add('ax-state-visible');
1017
1028
  }
1018
1029
  else {
1019
- host.classList.remove('animate__fadeIn');
1020
- host.classList.add('animate__animated', 'animate__fadeOut', 'animate__fast');
1030
+ host.classList.add('ax-state-hidden');
1031
+ host.classList.toggle('ax-state-visible');
1021
1032
  }
1022
1033
  }
1023
1034
  }
1024
1035
  onInit() {
1025
- // this._getHostElement().classList.add(`ax-${this.type}`);
1026
1036
  if (this.timeOut) {
1027
1037
  setTimeout(() => {
1028
1038
  this.dismiss();
@@ -1039,10 +1049,11 @@ class AXAlertComponent extends AXBaseComponentMixin {
1039
1049
  */
1040
1050
  dismiss() {
1041
1051
  const host = this._getHostElement();
1042
- host.classList.add('animate__animated', 'animate__fadeOut', 'animate__fast');
1043
- host.addEventListener('animationend', () => {
1052
+ this.visible = false;
1053
+ const func = () => {
1044
1054
  host.parentElement.removeChild(host);
1045
- });
1055
+ };
1056
+ host.addEventListener('transitionend', func);
1046
1057
  }
1047
1058
  /**
1048
1059
  * Hide the alert
@@ -1059,7 +1070,7 @@ class AXAlertComponent extends AXBaseComponentMixin {
1059
1070
  }
1060
1071
  _visible = new WeakMap();
1061
1072
  AXAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1062
- AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXAlertComponent, selector: "ax-alert", inputs: { icon: "icon", type: "type", timeOut: "timeOut", visible: "visible" }, outputs: { typeChange: "typeChange" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-alert ax-none" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-alert-icon\" *ngIf=\"icon\">\r\n <i class=\"{{icon}} fa-lg\"></i>\r\n</div>\r\n<div class=\"ax-alert-body\">\r\n <ng-content select=\"ax-alert-title\">\r\n </ng-content>\r\n <ng-content select=\"ax-alert-content\">\r\n </ng-content>\r\n <ng-content select=\"ax-alert-footer\">\r\n </ng-content>\r\n</div>\r\n<ng-content select=\"ax-alert-suffix\">\r\n</ng-content>", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1073
+ AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXAlertComponent, selector: "ax-alert", inputs: { icon: "icon", color: "color", timeOut: "timeOut", visible: "visible" }, outputs: { typeChange: "typeChange" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-alert ax-none" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-alert-icon\" *ngIf=\"icon\">\r\n <i class=\"{{icon}} fa-lg\"></i>\r\n</div>\r\n<div class=\"ax-alert-body\">\r\n <ng-content select=\"ax-alert-title\">\r\n </ng-content>\r\n <ng-content select=\"ax-alert-content\">\r\n </ng-content>\r\n <ng-content select=\"ax-alert-footer\">\r\n </ng-content>\r\n</div>\r\n<ng-content select=\"ax-alert-suffix\">\r\n</ng-content>", directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1063
1074
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertComponent, decorators: [{
1064
1075
  type: Component,
1065
1076
  args: [{
@@ -1073,7 +1084,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1073
1084
  type: Input
1074
1085
  }], typeChange: [{
1075
1086
  type: Output
1076
- }], type: [{
1087
+ }], color: [{
1077
1088
  type: Input
1078
1089
  }], hostClass: [{
1079
1090
  type: HostBinding,
@@ -1123,7 +1134,7 @@ AXAlertButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", v
1123
1134
  AXAlertButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXAlertButtonComponent, selector: "ax-alert-button", inputs: { title: "title", icon: "icon" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { listeners: { "click": "_handleOnClick($event)", "focus": "_handleOnFocus($event)", "blur": "_handleOnBlur($event)" }, classAttribute: "ax-alert-button" }, usesInheritance: true, ngImport: i0, template: `
1124
1135
  {{title}}
1125
1136
  <i *ngIf="icon" class="{{icon}}"></i>
1126
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1137
+ `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1127
1138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
1128
1139
  type: Component,
1129
1140
  args: [{
@@ -1221,7 +1232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1221
1232
  }]
1222
1233
  }] });
1223
1234
 
1224
- const COMPONENT$k = [
1235
+ const COMPONENT$n = [
1225
1236
  AXAlertComponent,
1226
1237
  AXAlertContentComponent,
1227
1238
  AXAlertTitleComponent,
@@ -1229,7 +1240,7 @@ const COMPONENT$k = [
1229
1240
  AXAlertFooterComponent,
1230
1241
  AXAlertSuffixComponent
1231
1242
  ];
1232
- const MODULES$k = [CommonModule];
1243
+ const MODULES$n = [CommonModule];
1233
1244
  class AXAlertModule {
1234
1245
  }
1235
1246
  AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1244,13 +1255,13 @@ AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
1244
1255
  AXAlertButtonComponent,
1245
1256
  AXAlertFooterComponent,
1246
1257
  AXAlertSuffixComponent] });
1247
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$k]] });
1258
+ AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$n]] });
1248
1259
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, decorators: [{
1249
1260
  type: NgModule,
1250
1261
  args: [{
1251
- declarations: [...COMPONENT$k],
1252
- imports: [...MODULES$k],
1253
- exports: [...COMPONENT$k],
1262
+ declarations: [...COMPONENT$n],
1263
+ imports: [...MODULES$n],
1264
+ exports: [...COMPONENT$n],
1254
1265
  providers: [],
1255
1266
  }]
1256
1267
  }] });
@@ -1306,19 +1317,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1306
1317
  type: Input
1307
1318
  }] } });
1308
1319
 
1309
- const COMPONENT$j = [AXAvatarComponent];
1310
- const MODULES$j = [CommonModule];
1320
+ const COMPONENT$m = [AXAvatarComponent];
1321
+ const MODULES$m = [CommonModule];
1311
1322
  class AXAvatarModule {
1312
1323
  }
1313
1324
  AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1314
1325
  AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent], imports: [CommonModule], exports: [AXAvatarComponent] });
1315
- AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$j]] });
1326
+ AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$m]] });
1316
1327
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, decorators: [{
1317
1328
  type: NgModule,
1318
1329
  args: [{
1319
- declarations: [...COMPONENT$j],
1320
- imports: [...MODULES$j],
1321
- exports: [...COMPONENT$j],
1330
+ declarations: [...COMPONENT$m],
1331
+ imports: [...MODULES$m],
1332
+ exports: [...COMPONENT$m],
1333
+ providers: [],
1334
+ }]
1335
+ }] });
1336
+
1337
+ class AXBadgeComponent extends AXBaseComponentMixin {
1338
+ constructor(elementRef, cdr) {
1339
+ super(elementRef, cdr);
1340
+ this.text = '';
1341
+ this.color = 'light';
1342
+ //TODO: ax-badge
1343
+ }
1344
+ get __hostClass() {
1345
+ return [`ax-bg-${this.color}-100`, `ax-text-${this.color}-600`].join(' ');
1346
+ }
1347
+ }
1348
+ AXBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1349
+ AXBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXBadgeComponent, selector: "ax-badge", inputs: { text: "text", color: "color" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-badge" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeComponent, decorators: [{
1351
+ type: Component,
1352
+ args: [{
1353
+ selector: 'ax-badge',
1354
+ templateUrl: './badge.component.html',
1355
+ changeDetection: ChangeDetectionStrategy.OnPush,
1356
+ encapsulation: ViewEncapsulation.None,
1357
+ host: { class: 'ax-badge' }
1358
+ }]
1359
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1360
+ type: Input
1361
+ }], color: [{
1362
+ type: Input
1363
+ }], __hostClass: [{
1364
+ type: HostBinding,
1365
+ args: ['class']
1366
+ }] } });
1367
+
1368
+ const COMPONENT$l = [AXBadgeComponent];
1369
+ const MODULES$l = [CommonModule];
1370
+ class AXBadgeModule {
1371
+ }
1372
+ AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1373
+ AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
1374
+ AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$l]] });
1375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, decorators: [{
1376
+ type: NgModule,
1377
+ args: [{
1378
+ declarations: [...COMPONENT$l],
1379
+ imports: [...MODULES$l],
1380
+ exports: [...COMPONENT$l],
1322
1381
  providers: [],
1323
1382
  }]
1324
1383
  }] });
@@ -1344,7 +1403,6 @@ class AXButtonComponent extends AXBaseButtonMixin {
1344
1403
  }
1345
1404
  }
1346
1405
  _emitOnClickEvent(e) {
1347
- debugger;
1348
1406
  if (this.disabled)
1349
1407
  return;
1350
1408
  if (this.toggleable) {
@@ -1352,22 +1410,171 @@ class AXButtonComponent extends AXBaseButtonMixin {
1352
1410
  }
1353
1411
  super._emitOnClickEvent(e);
1354
1412
  }
1413
+ _emitOnFocusEvent(e) {
1414
+ super._emitOnFocusEvent(e);
1415
+ }
1416
+ _emitOnBlurEvent(e) {
1417
+ super._emitOnBlurEvent(e);
1418
+ }
1419
+ get __hostClass() {
1420
+ return Object.entries(this._classes).filter(c => c[1]).map(c => c[0]).concat(...[`ax-${this.size}`]).join(' ');
1421
+ }
1355
1422
  }
1356
1423
  AXButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1357
- AXButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXButtonComponent, selector: "ax-button", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", cssClass: "cssClass", cssStyle: "cssStyle", text: "text", submitBehavior: "submitBehavior", cancelBehavior: "cancelBehavior", color: "color", look: "look", toggleable: "toggleable", selected: "selected" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { listeners: { "document:keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-content select=\"ax-loading\">\r\n </ng-content>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <ng-content select=\"ax-icon\">\r\n </ng-content>\r\n <span *ngIf=\"text\">{{text}}</span>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-content select=\"ax-dropdown-panel\">\r\n </ng-content>\r\n</button>", directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1424
+ AXButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXButtonComponent, selector: "ax-button", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", text: "text", submitBehavior: "submitBehavior", cancelBehavior: "cancelBehavior", color: "color", look: "look", toggleable: "toggleable", selected: "selected" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { attributes: { "role": "button" }, listeners: { "document:keydown.escape": "onKeydownHandler($event)", "click": "_emitOnClickEvent($event)", "focus": "_emitOnFocusEvent($event)", "blur": "_emitOnBlurEvent($event)" }, properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<!-- <button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n </ng-content>\r\n <span *ngIf=\"text\">{{text}}</span>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-content select=\"ax-dropdown-panel\">\r\n </ng-content>\r\n</button> -->\r\n<!-- <button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"> -->\r\n<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<span *ngIf=\"text\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-dropdown-panel\">\r\n</ng-content>\r\n<!-- </button> -->", directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1358
1425
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonComponent, decorators: [{
1359
1426
  type: Component,
1360
1427
  args: [{
1361
1428
  selector: 'ax-button',
1362
1429
  templateUrl: './button.component.html',
1363
- inputs: ['disabled', 'tabIndex', 'size', 'cssClass', 'cssStyle', ...BUTTON_INPUTS],
1430
+ inputs: ['disabled', 'tabIndex', 'size', ...BUTTON_INPUTS],
1364
1431
  outputs: [...BUTTON_OUTPUT],
1365
1432
  changeDetection: ChangeDetectionStrategy.OnPush,
1366
- encapsulation: ViewEncapsulation.None
1433
+ encapsulation: ViewEncapsulation.None,
1434
+ host: { role: 'button' }
1367
1435
  }]
1368
1436
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
1369
1437
  type: HostListener,
1370
1438
  args: ['document:keydown.escape', ['$event']]
1439
+ }], _emitOnClickEvent: [{
1440
+ type: HostListener,
1441
+ args: ['click', ['$event']]
1442
+ }], _emitOnFocusEvent: [{
1443
+ type: HostListener,
1444
+ args: ['focus', ['$event']]
1445
+ }], _emitOnBlurEvent: [{
1446
+ type: HostListener,
1447
+ args: ['blur', ['$event']]
1448
+ }], __hostClass: [{
1449
+ type: HostBinding,
1450
+ args: ['class']
1451
+ }] } });
1452
+
1453
+ class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1454
+ constructor(elementRef, zone, cdr) {
1455
+ super(elementRef, cdr);
1456
+ this.zone = zone;
1457
+ this.selectionChange = new EventEmitter();
1458
+ this.colorChange = new EventEmitter();
1459
+ this._color = 'primary';
1460
+ this.lookChange = new EventEmitter();
1461
+ this._look = null;
1462
+ this.onItemClick = new EventEmitter();
1463
+ this.onValueChanged = new EventEmitter();
1464
+ }
1465
+ get selection() {
1466
+ return this._selection;
1467
+ }
1468
+ set selection(value) {
1469
+ value = this.onOptionChanging({ name: 'selection', value: value });
1470
+ const oldValue = this.selection;
1471
+ if (value != oldValue) {
1472
+ this._selection = value;
1473
+ this.selectionChange.emit(value);
1474
+ this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
1475
+ }
1476
+ }
1477
+ /**
1478
+ * Predefined color schemes
1479
+ */
1480
+ get color() {
1481
+ return this._color;
1482
+ }
1483
+ set color(value) {
1484
+ value = this.onOptionChanging({ name: 'color', value: value });
1485
+ const oldValue = this.color;
1486
+ if (value != oldValue) {
1487
+ this._color = value;
1488
+ this.colorChange.emit(value);
1489
+ this.onOptionChanged({ name: 'value', oldValue, newValue: value });
1490
+ }
1491
+ }
1492
+ /**
1493
+ * Predefined look schemes
1494
+ */
1495
+ get look() {
1496
+ return this._look;
1497
+ }
1498
+ set look(value) {
1499
+ value = this.onOptionChanging({ name: 'look', value: value });
1500
+ const oldValue = this.look;
1501
+ if (value != oldValue) {
1502
+ this._look = value;
1503
+ this.lookChange.emit(value);
1504
+ this.onOptionChanged({ name: 'look', oldValue, newValue: value });
1505
+ }
1506
+ }
1507
+ ngAfterContentInit() {
1508
+ this._bindEvents();
1509
+ this._bindProps();
1510
+ }
1511
+ _bindEvents() {
1512
+ (this._contentButtons || []).forEach(b => {
1513
+ b.onClick.subscribe(c => {
1514
+ this._handleClickEvent(c, b);
1515
+ });
1516
+ });
1517
+ }
1518
+ _bindProps() {
1519
+ (this._contentButtons || []).forEach(b => {
1520
+ b.look = this.look;
1521
+ b.color = this.color;
1522
+ b.disabled = this.disabled;
1523
+ b.toggleable = false;
1524
+ });
1525
+ }
1526
+ onOptionChanged(options) {
1527
+ this._bindProps();
1528
+ }
1529
+ _handleClickEvent(e, button) {
1530
+ if (this.selection == 'multiple') {
1531
+ button.selected = !button.selected;
1532
+ }
1533
+ else if (this.selection == 'single') {
1534
+ this._contentButtons.forEach(c => {
1535
+ c.selected = false;
1536
+ });
1537
+ button.selected = true;
1538
+ }
1539
+ else {
1540
+ button.selected = false;
1541
+ }
1542
+ this.onItemClick.emit({
1543
+ component: this,
1544
+ htmlElement: e.htmlElement,
1545
+ item: button
1546
+ });
1547
+ }
1548
+ }
1549
+ AXButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1550
+ AXButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXButtonGroupComponent, selector: "ax-button-group", inputs: { cssClass: "cssClass", size: "size", cssStyle: "cssStyle", rtl: "rtl", disabled: "disabled", selection: "selection", color: "color", look: "look" }, outputs: { selectionChange: "selectionChange", colorChange: "colorChange", lookChange: "lookChange", onItemClick: "onItemClick" }, host: { attributes: { "role": "group" }, classAttribute: "ax-button-group" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-button\">\r\n</ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
1552
+ type: Component,
1553
+ args: [{
1554
+ selector: 'ax-button-group',
1555
+ templateUrl: 'button-group.component.html',
1556
+ inputs: ['cssClass', 'size', 'cssStyle', 'rtl', 'disabled'],
1557
+ encapsulation: ViewEncapsulation.None,
1558
+ changeDetection: ChangeDetectionStrategy.OnPush,
1559
+ host: { class: 'ax-button-group', role: 'group' }
1560
+ }]
1561
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
1562
+ type: Output
1563
+ }], selection: [{
1564
+ type: Input
1565
+ }], colorChange: [{
1566
+ type: Output
1567
+ }], color: [{
1568
+ type: Input
1569
+ }], lookChange: [{
1570
+ type: Output
1571
+ }], look: [{
1572
+ type: Input
1573
+ }], onItemClick: [{
1574
+ type: Output
1575
+ }], _contentButtons: [{
1576
+ type: ContentChildren,
1577
+ args: [AXButtonComponent, { descendants: true }]
1371
1578
  }] } });
1372
1579
 
1373
1580
  const AXBaseItemButtonMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
@@ -1405,7 +1612,7 @@ AXButtonItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
1405
1612
  <span *ngIf="text">{{text}}</span>
1406
1613
  <ng-content select="ax-suffix">
1407
1614
  </ng-content>
1408
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1615
+ `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1409
1616
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonItemComponent, decorators: [{
1410
1617
  type: Component,
1411
1618
  args: [{
@@ -1445,526 +1652,428 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1445
1652
  args: ['class']
1446
1653
  }] } });
1447
1654
 
1448
- class AXIconComponent extends AXSizableComponentMixin {
1655
+ class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
1449
1656
  constructor(elementRef, cdr) {
1450
1657
  super(elementRef, cdr);
1451
1658
  }
1452
- get iconClass() {
1453
- return `ax-ic ${this.icon}`;
1454
- }
1455
1659
  }
1456
- AXIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1457
- AXIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.iconClass" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1458
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconComponent, decorators: [{
1660
+ AXDecoratorPrefixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorPrefixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1661
+ AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorPrefixComponent, selector: "ax-prefix", host: { classAttribute: "ax-prefix" }, usesInheritance: true, ngImport: i0, template: `
1662
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-badge">
1663
+ </ng-content>
1664
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1665
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
1459
1666
  type: Component,
1460
1667
  args: [{
1461
- selector: 'ax-icon',
1462
- template: '',
1668
+ selector: 'ax-prefix',
1669
+ template: `
1670
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-badge">
1671
+ </ng-content>
1672
+ `,
1463
1673
  changeDetection: ChangeDetectionStrategy.OnPush,
1464
1674
  encapsulation: ViewEncapsulation.None,
1675
+ host: { class: 'ax-prefix' }
1465
1676
  }]
1466
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1467
- type: Input
1468
- }], iconClass: [{
1469
- type: HostBinding,
1470
- args: ['class']
1471
- }] } });
1677
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1472
1678
 
1473
- class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
1679
+ class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
1474
1680
  constructor(elementRef, cdr) {
1475
1681
  super(elementRef, cdr);
1476
1682
  }
1477
1683
  }
1478
- AXDecoratorPrefixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorPrefixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1479
- AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorPrefixComponent, selector: "ax-prefix", host: { classAttribute: "ax-prefix" }, usesInheritance: true, ngImport: i0, template: `
1480
- <ng-content select="ax-button,ax-loading,ax-dropdown-button,ax-icon">
1684
+ AXDecoratorSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorSuffixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1685
+ AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorSuffixComponent, selector: "ax-suffix", host: { classAttribute: "ax-suffix" }, usesInheritance: true, ngImport: i0, template: `
1686
+ <ng-content select="ax-button,ax-icon,ax-badge">
1481
1687
  </ng-content>
1482
1688
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
1689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
1484
1690
  type: Component,
1485
1691
  args: [{
1486
- selector: 'ax-prefix',
1692
+ selector: 'ax-suffix',
1487
1693
  template: `
1488
- <ng-content select="ax-button,ax-loading,ax-dropdown-button,ax-icon">
1694
+ <ng-content select="ax-button,ax-icon,ax-badge">
1489
1695
  </ng-content>
1490
1696
  `,
1491
1697
  changeDetection: ChangeDetectionStrategy.OnPush,
1492
1698
  encapsulation: ViewEncapsulation.None,
1493
- host: { class: 'ax-prefix' }
1699
+ host: { class: 'ax-suffix' }
1494
1700
  }]
1495
1701
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1496
1702
 
1497
- const AXBaseDropdownButtonMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ClickableComponenetMixin(_ButtonComponentMixin(_DropdownComponenetMixin((AXBaseComponent))))));
1498
- class AXDropdownButtonComponent extends AXBaseDropdownButtonMixin {
1499
- constructor(_elementRef, _cdr, _overlay, _platform, _viewContainerRef) {
1500
- super(_elementRef, _cdr);
1501
- this._overlay = _overlay;
1502
- this._platform = _platform;
1503
- this._viewContainerRef = _viewContainerRef;
1504
- this.onItemClick = new EventEmitter();
1505
- this._subs = [];
1506
- this.dropdownIcon = 'ax-ic-chevron ax-transform ax--rotate-90';
1507
- this.splited = true;
1703
+ const COMPONENT$k = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent];
1704
+ const MODULES$k = [CommonModule];
1705
+ class AXEditorDecoratorModule {
1706
+ }
1707
+ AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1708
+ AXEditorDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, declarations: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent] });
1709
+ AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$k]] });
1710
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
1711
+ type: NgModule,
1712
+ args: [{
1713
+ declarations: [...COMPONENT$k],
1714
+ imports: [...MODULES$k],
1715
+ exports: [...COMPONENT$k],
1716
+ providers: [],
1717
+ }]
1718
+ }] });
1719
+
1720
+ class AXIconComponent extends AXSizableComponentMixin {
1721
+ constructor(elementRef, cdr) {
1722
+ super(elementRef, cdr);
1508
1723
  }
1509
- get items() {
1510
- return this._items || [];
1511
- }
1512
- set items(v) {
1513
- this._items = v;
1514
- this._cdr.markForCheck();
1515
- }
1516
- _getAllButtons() {
1517
- return [...Array.from(this._viewButtons), ...Array.from(this._contentButtons)];
1518
- }
1519
- onViewInit() {
1520
- this._getAllButtons().forEach(c => {
1521
- this._subs.push(c.onClick.subscribe(this._handleOnItemClick.bind(this)));
1522
- });
1523
- }
1524
- onDestroy() {
1525
- var _a, _b;
1526
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
1527
- (_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
1528
- this._subs.forEach(s => {
1529
- s === null || s === void 0 ? void 0 : s.unsubscribe();
1530
- });
1531
- }
1532
- _handleKeydownHandler(e) {
1533
- if (e.key === 'Enter' && e.type === 'keydown') {
1534
- this.toggle();
1535
- }
1536
- if (e.key === 'Escape') {
1537
- if (this.isOpen) {
1538
- this.close();
1539
- e.stopPropagation();
1540
- }
1541
- }
1542
- }
1543
- _emitOnClickEvent(e) {
1544
- if (!this.splited) {
1545
- this.toggle();
1546
- }
1547
- else {
1548
- super._emitOnClickEvent(e);
1549
- }
1550
- }
1551
- _handleArrowClickEvent(e) {
1552
- this.toggle();
1553
- }
1554
- _emitOnItemClickEvent(e, item) {
1555
- this.onItemClick.emit({
1556
- component: this,
1557
- htmlElement: this._getHostElement(),
1558
- nativeEvent: e.nativeEvent,
1559
- name: item.name,
1560
- data: item.data,
1561
- });
1562
- this.close();
1563
- }
1564
- _handleOnItemClick(e) {
1565
- this.close();
1566
- this._emitOnItemClickEvent(e, e.component);
1567
- }
1568
- toggle() {
1569
- if (this.disabled !== true) {
1570
- this.isOpen ? this.close() : this.open();
1571
- }
1572
- }
1573
- close() {
1574
- var _a, _b;
1575
- if (!this.isOpen) {
1576
- return;
1577
- }
1578
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
1579
- (_b = this._subs[1]) === null || _b === void 0 ? void 0 : _b.unsubscribe();
1580
- this._emitOnClosedEvent();
1581
- }
1582
- open() {
1583
- if (this.isOpen) {
1584
- return;
1585
- }
1586
- this._ensureOverlayCreated();
1587
- this._overlayRef.attach(this._templatePortal);
1588
- this._emitOnOpenedEvent();
1589
- }
1590
- _ensureOverlayCreated() {
1591
- let baseSize = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', '')) / 2;
1592
- if (!this._overlayRef) {
1593
- const positionStrategy = this._overlay.position()
1594
- .flexibleConnectedTo(this._getInnerElement())
1595
- .withPositions([
1596
- {
1597
- originX: 'start',
1598
- originY: 'bottom',
1599
- overlayX: 'start',
1600
- overlayY: 'top',
1601
- offsetY: baseSize
1602
- },
1603
- {
1604
- originX: 'start',
1605
- originY: 'top',
1606
- overlayX: 'start',
1607
- overlayY: 'bottom'
1608
- }
1609
- ])
1610
- .withPush(false);
1611
- this._overlayRef = this._overlay.create({
1612
- positionStrategy,
1613
- scrollStrategy: this._overlay.scrollStrategies.close(),
1614
- panelClass: ['animate__animated', 'animate__fadeIn', 'animate__faster'],
1615
- hasBackdrop: false,
1616
- backdropClass: ['cdk-overlay-transparent-backdrop']
1617
- });
1618
- this._subs[0] = this._overlayRef._outsidePointerEvents.subscribe(c => {
1619
- const target = c.target;
1620
- const comElem = this._getHostElement();
1621
- if (!(comElem.contains(target))) {
1622
- this.close();
1623
- }
1624
- });
1625
- this._subs[1] = this._overlayRef.attachments().subscribe(() => {
1626
- if (this.fitParent === true) {
1627
- this._dropdownWidth = this._getHostElement().offsetWidth;
1628
- }
1629
- else {
1630
- this._dropdownWidth = this._getHostElement().offsetWidth * 1.5;
1631
- }
1632
- this._subs[2] = this._platform.scroll.subscribe(c => {
1633
- if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
1634
- this.close();
1635
- });
1636
- });
1637
- }
1638
- if (!this._templatePortal) {
1639
- this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
1640
- }
1641
- }
1642
- get isOpen() {
1643
- return this._overlayRef ? this._overlayRef.hasAttached() : false;
1724
+ get __iconClass() {
1725
+ return `ax-ic ${this.icon}`;
1644
1726
  }
1645
1727
  }
1646
- AXDropdownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i2.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
1647
- AXDropdownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", cssClass: "cssClass", text: "text", submitBehavior: "submitBehavior", cancelBehavior: "cancelBehavior", color: "color", look: "look", toggleable: "toggleable", selected: "selected", items: "items", dropdownIcon: "dropdownIcon", splited: "splited" }, outputs: { onClick: "onClick", onBlur: "onBlur", onFocus: "onFocus", onItemClick: "onItemClick" }, host: { listeners: { "keydown": "_handleKeydownHandler($event)" }, classAttribute: "ax-dropdown-button" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<button [ngClass]=\"_classes\" class=\"{{cssClass}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\"\r\n (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-content select=\"ax-loading\">\r\n </ng-content>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <ng-content select=\"ax-icon\">\r\n </ng-content>\r\n <span *ngIf=\"text\">{{text}}</span>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-container *ngIf=\"!splited\">\r\n <ax-icon [icon]=\"dropdownIcon\"></ax-icon>\r\n </ng-container>\r\n</button>\r\n<button class=\"ax-button ax-dropdown-arrow {{cssClass}}\" (click)=\"_handleArrowClickEvent($event)\" *ngIf=\"splited\">\r\n <ax-icon [icon]=\"dropdownIcon\"></ax-icon>\r\n</button>\r\n<ng-template #baseTemplate>\r\n <div class=\"ax-overlay-pane ax-dropdown-list\" [style.min-width.px]=\"_dropdownWidth\">\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"ng-container[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ng-template>", components: [{ type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownButtonComponent, decorators: [{
1728
+ AXIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1729
+ AXIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.__iconClass" } }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1730
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconComponent, decorators: [{
1649
1731
  type: Component,
1650
1732
  args: [{
1651
- selector: 'ax-dropdown-button',
1652
- templateUrl: 'dropdown-button.component.html',
1653
- inputs: ['disabled', 'tabIndex', 'size', 'cssClass', ...BUTTON_INPUTS],
1654
- outputs: ['onClick', 'onBlur', 'onFocus'],
1655
- encapsulation: ViewEncapsulation.None,
1733
+ selector: 'ax-icon',
1734
+ template: '',
1656
1735
  changeDetection: ChangeDetectionStrategy.OnPush,
1657
- host: { class: 'ax-dropdown-button' }
1658
- }]
1659
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Overlay }, { type: i2.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { _contentButtons: [{
1660
- type: ContentChildren,
1661
- args: [AXButtonItemComponent]
1662
- }], _viewButtons: [{
1663
- type: ViewChildren,
1664
- args: [AXButtonItemComponent]
1665
- }], onItemClick: [{
1666
- type: Output
1667
- }], items: [{
1668
- type: Input
1669
- }], _baseTemplate: [{
1670
- type: ViewChild,
1671
- args: ['baseTemplate']
1672
- }], dropdownIcon: [{
1673
- type: Input
1674
- }], splited: [{
1675
- type: Input
1676
- }], _handleKeydownHandler: [{
1677
- type: HostListener,
1678
- args: ['keydown', ['$event']]
1679
- }] } });
1680
-
1681
- class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1682
- constructor(elementRef, zone, cdr) {
1683
- super(elementRef, cdr);
1684
- this.zone = zone;
1685
- this.selectionChange = new EventEmitter();
1686
- this.colorChange = new EventEmitter();
1687
- this._color = 'primary';
1688
- this.lookChange = new EventEmitter();
1689
- this._look = null;
1690
- this.onItemClick = new EventEmitter();
1691
- }
1692
- get selection() {
1693
- return this._selection;
1694
- }
1695
- set selection(value) {
1696
- value = this.onOptionChanging({ name: 'selection', value: value });
1697
- const oldValue = this.selection;
1698
- if (value != oldValue) {
1699
- this._selection = value;
1700
- this.selectionChange.emit(value);
1701
- this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
1702
- }
1703
- }
1704
- /**
1705
- * Predefined color schemes
1706
- */
1707
- get color() {
1708
- return this._color;
1709
- }
1710
- set color(value) {
1711
- value = this.onOptionChanging({ name: 'color', value: value });
1712
- const oldValue = this.color;
1713
- if (value != oldValue) {
1714
- this._color = value;
1715
- this.colorChange.emit(value);
1716
- this.onOptionChanged({ name: 'value', oldValue, newValue: value });
1717
- }
1718
- }
1719
- /**
1720
- * Predefined look schemes
1721
- */
1722
- get look() {
1723
- return this._look;
1724
- }
1725
- set look(value) {
1726
- value = this.onOptionChanging({ name: 'look', value: value });
1727
- const oldValue = this.look;
1728
- if (value != oldValue) {
1729
- this._look = value;
1730
- this.lookChange.emit(value);
1731
- this.onOptionChanged({ name: 'look', oldValue, newValue: value });
1732
- }
1733
- }
1734
- ngAfterContentInit() {
1735
- this._bindEvents();
1736
- this._bindProps();
1737
- }
1738
- _bindEvents() {
1739
- (this._contentButtons || []).forEach(b => {
1740
- b.onClick.subscribe(c => {
1741
- this._handleClickEvent(c, b);
1742
- });
1743
- });
1744
- }
1745
- _bindProps() {
1746
- (this._contentButtons || []).forEach(b => {
1747
- b.look = this.look;
1748
- b.color = this.color;
1749
- b.disabled = this.disabled;
1750
- b.toggleable = false;
1751
- });
1752
- }
1753
- onOptionChanged(options) {
1754
- this._bindProps();
1755
- }
1756
- _handleClickEvent(e, button) {
1757
- if (this.selection == 'multiple') {
1758
- button.selected = !button.selected;
1759
- }
1760
- else if (this.selection == 'single') {
1761
- this._contentButtons.forEach(c => {
1762
- c.selected = false;
1763
- });
1764
- button.selected = true;
1765
- }
1766
- else {
1767
- button.selected = false;
1768
- }
1769
- this.onItemClick.emit({
1770
- component: this,
1771
- htmlElement: e.htmlElement,
1772
- data: e.data,
1773
- nativeEvent: e.nativeEvent
1774
- });
1775
- }
1776
- }
1777
- AXButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1778
- AXButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXButtonGroupComponent, selector: "ax-button-group", inputs: { cssClass: "cssClass", size: "size", cssStyle: "cssStyle", rtl: "rtl", disabled: "disabled", selection: "selection", color: "color", look: "look" }, outputs: { selectionChange: "selectionChange", colorChange: "colorChange", lookChange: "lookChange", onItemClick: "onItemClick" }, host: { attributes: { "role": "group" }, classAttribute: "ax-button-group" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-button\">\r\n</ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1779
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
1780
- type: Component,
1781
- args: [{
1782
- selector: 'ax-button-group',
1783
- templateUrl: 'button-group.component.html',
1784
- inputs: ['cssClass', 'size', 'cssStyle', 'rtl', 'disabled'],
1785
1736
  encapsulation: ViewEncapsulation.None,
1786
- changeDetection: ChangeDetectionStrategy.OnPush,
1787
- host: { class: 'ax-button-group', role: 'group' }
1788
1737
  }]
1789
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
1790
- type: Output
1791
- }], selection: [{
1792
- type: Input
1793
- }], colorChange: [{
1794
- type: Output
1795
- }], color: [{
1796
- type: Input
1797
- }], lookChange: [{
1798
- type: Output
1799
- }], look: [{
1738
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1800
1739
  type: Input
1801
- }], onItemClick: [{
1802
- type: Output
1803
- }], _contentButtons: [{
1804
- type: ContentChildren,
1805
- args: [AXButtonComponent, { descendants: true }]
1740
+ }], __iconClass: [{
1741
+ type: HostBinding,
1742
+ args: ['class']
1806
1743
  }] } });
1807
1744
 
1808
- class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
1809
- constructor(elementRef, cdr) {
1810
- super(elementRef, cdr);
1811
- }
1812
- }
1813
- AXDecoratorSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorSuffixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1814
- AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorSuffixComponent, selector: "ax-suffix", host: { classAttribute: "ax-suffix" }, usesInheritance: true, ngImport: i0, template: `
1815
- <ng-content select="ax-button">
1816
- </ng-content>
1817
- <ng-content select="ax-dropdown-button">
1818
- </ng-content>
1819
- <ng-content select="ax-icon">
1820
- </ng-content>
1821
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
1823
- type: Component,
1824
- args: [{
1825
- selector: 'ax-suffix',
1826
- template: `
1827
- <ng-content select="ax-button">
1828
- </ng-content>
1829
- <ng-content select="ax-dropdown-button">
1830
- </ng-content>
1831
- <ng-content select="ax-icon">
1832
- </ng-content>
1833
- `,
1834
- changeDetection: ChangeDetectionStrategy.OnPush,
1835
- encapsulation: ViewEncapsulation.None,
1836
- host: { class: 'ax-suffix' }
1837
- }]
1838
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1839
-
1840
- const COMPONENT$i = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent];
1841
- const MODULES$i = [CommonModule];
1842
- class AXEditorDecoratorModule {
1843
- }
1844
- AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1845
- AXEditorDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, declarations: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent] });
1846
- AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$i]] });
1847
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
1848
- type: NgModule,
1849
- args: [{
1850
- declarations: [...COMPONENT$i],
1851
- imports: [...MODULES$i],
1852
- exports: [...COMPONENT$i],
1853
- providers: [],
1854
- }]
1855
- }] });
1856
-
1857
- const COMPONENT$h = [AXIconComponent];
1858
- const MODULES$h = [CommonModule];
1745
+ const COMPONENT$j = [AXIconComponent];
1746
+ const MODULES$j = [CommonModule];
1859
1747
  class AXIconModule {
1860
1748
  }
1861
1749
  AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1862
1750
  AXIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
1863
- AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$h]] });
1751
+ AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$j]] });
1864
1752
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, decorators: [{
1865
1753
  type: NgModule,
1866
1754
  args: [{
1867
- declarations: [...COMPONENT$h],
1868
- imports: [...MODULES$h],
1869
- exports: [...COMPONENT$h],
1755
+ declarations: [...COMPONENT$j],
1756
+ imports: [...MODULES$j],
1757
+ exports: [...COMPONENT$j],
1870
1758
  providers: [],
1871
1759
  }]
1872
1760
  }] });
1873
1761
 
1874
- const COMPONENT$g = [
1762
+ const COMPONENT$i = [
1875
1763
  AXButtonComponent,
1876
- AXDropdownButtonComponent,
1877
1764
  AXButtonItemComponent,
1878
1765
  AXButtonGroupComponent,
1879
1766
  ];
1880
- const MODULES$g = [CommonModule, AXIconModule, AXEditorDecoratorModule];
1767
+ const MODULES$i = [CommonModule, AXIconModule, AXEditorDecoratorModule];
1881
1768
  class AXButtonModule {
1882
1769
  }
1883
1770
  AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1884
1771
  AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
1885
- AXDropdownButtonComponent,
1886
1772
  AXButtonItemComponent,
1887
1773
  AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
1888
- AXDropdownButtonComponent,
1889
1774
  AXButtonItemComponent,
1890
1775
  AXButtonGroupComponent] });
1891
- AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$g]] });
1776
+ AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$i]] });
1892
1777
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, decorators: [{
1893
1778
  type: NgModule,
1894
1779
  args: [{
1895
- imports: [MODULES$g],
1896
- exports: [COMPONENT$g],
1897
- declarations: [COMPONENT$g],
1780
+ imports: [MODULES$i],
1781
+ exports: [COMPONENT$i],
1782
+ declarations: [COMPONENT$i],
1898
1783
  providers: [],
1899
1784
  }]
1900
1785
  }] });
1901
1786
 
1902
- class AXCalendarComponent extends AXCalendarMixin {
1787
+ class AXCalendarComponent extends AXCalendarComponentMixin {
1903
1788
  constructor(elementRef, cdr) {
1904
1789
  super(elementRef, cdr);
1905
- this.actionBar = false;
1906
- this.showTime = false;
1907
- this.dayItems = new Array(32);
1908
- this.yearItems = [1990];
1909
- this.monthItems = [
1910
- 'January',
1911
- 'February',
1912
- 'March',
1913
- 'April',
1914
- 'May',
1915
- 'June',
1916
- 'July',
1917
- 'August',
1918
- 'September',
1919
- 'October',
1920
- 'November',
1921
- 'December',
1922
- ];
1923
- this.createYears();
1790
+ this.cdr = cdr;
1791
+ this._today = new AXDateTime(new Date());
1792
+ this._navText = '';
1793
+ this._todayText = '';
1794
+ this._slots = [];
1795
+ this._activeView = 'days';
1796
+ this.depthChange = new EventEmitter();
1797
+ this._depth = 'days';
1798
+ }
1799
+ get _viewRange() {
1800
+ const current = this._viewStartDate || this._today;
1801
+ switch (this.activeView) {
1802
+ case 'years':
1803
+ let y = current.startOf('year').year;
1804
+ let min = y - (y % 10) - 1;
1805
+ let max = min + 11;
1806
+ return new AXDateTimeRange(AXDateTime.convert(new Date(min, 0), this._today.calendar.name()), AXDateTime.convert(new Date(max, 0), this._today.calendar.name()));
1807
+ case 'months':
1808
+ //TODO: check add month function
1809
+ return new AXDateTimeRange(current.startOf('year'), current.endOf('year').add('month', 4).add('day', -1));
1810
+ default:
1811
+ //return new AXDateTimeRange(current.startOf('month').startOf('week'), current.endOf('month').endOf('week'));
1812
+ return new AXDateTimeRange(current.startOf('month'), current.endOf('month'));
1813
+ }
1924
1814
  }
1925
- ngAfterViewInit() {
1815
+ get activeView() {
1816
+ return this._activeView;
1926
1817
  }
1927
- createYears() {
1928
- let number = 1990;
1929
- for (let i = 0; i < 40; i++) {
1930
- number = number + 1;
1931
- this.yearItems.push(number);
1818
+ set activeView(v) {
1819
+ this._activeView = v;
1820
+ this._genearteSlots();
1821
+ }
1822
+ get depth() {
1823
+ return this._depth;
1824
+ }
1825
+ set depth(v) {
1826
+ this._depth = v;
1827
+ this._activeView = v;
1828
+ this.depthChange.emit(v);
1829
+ this._genearteSlots();
1830
+ }
1831
+ get min() {
1832
+ return this._min;
1833
+ }
1834
+ set min(v) {
1835
+ this._min = v;
1836
+ }
1837
+ get max() {
1838
+ return this._max;
1839
+ }
1840
+ set max(v) {
1841
+ this._max = v;
1842
+ }
1843
+ get disabledDates() {
1844
+ return this._disabledDates;
1845
+ }
1846
+ set disabledDates(v) {
1847
+ this._disabledDates = v;
1848
+ }
1849
+ get holidayDates() {
1850
+ return this._holidayDates;
1851
+ }
1852
+ set holidayDates(v) {
1853
+ this._holidayDates = v;
1854
+ }
1855
+ onInit() {
1856
+ this.goToday();
1857
+ }
1858
+ _genearteSlots() {
1859
+ if (!this._viewStartDate)
1860
+ return;
1861
+ const vr = this._viewRange;
1862
+ // year view
1863
+ if (this.activeView == 'years') {
1864
+ const a = vr.enumurate('year');
1865
+ this._slots = a.map((d, i) => {
1866
+ const r = {};
1867
+ r.date = d.date;
1868
+ r.text = d.format('YYYY');
1869
+ r.disabled = (this.min && d.compare(this.min, 'year') == -1) || (this.max && d.compare(this.max, 'year') == 1);
1870
+ if (r.disabled) {
1871
+ r.cssClass = {
1872
+ 'ax-state-disabled': r.disabled,
1873
+ };
1874
+ }
1875
+ else {
1876
+ r.cssClass = {
1877
+ 'ax-state-today': d.equal(this._today, 'year'),
1878
+ 'ax-state-selected': this.value && this.depth == 'years' && d.equal(this.value, 'year'),
1879
+ };
1880
+ }
1881
+ return r;
1882
+ });
1883
+ this._navText = `${vr.startTime.year} - ${vr.endTime.year}`;
1884
+ this._todayText = this._today.format('YYYY');
1885
+ }
1886
+ // month view
1887
+ else if (this.activeView == 'months') {
1888
+ const a = vr.enumurate('month');
1889
+ this._slots = a.map((d, i) => {
1890
+ const r = {};
1891
+ r.date = d.date;
1892
+ r.text = d.format('MMM');
1893
+ r.tooltip = d.format('MMMM YYYY');
1894
+ r.disabled = (this.min && d.compare(this.min, 'month') == -1) || (this.max && d.compare(this.max, 'month') == 1);
1895
+ if (r.disabled) {
1896
+ r.cssClass = {
1897
+ 'ax-state-disabled': r.disabled,
1898
+ };
1899
+ }
1900
+ else {
1901
+ r.cssClass = {
1902
+ 'ax-state-today': d.equal(this._today, 'month'),
1903
+ 'ax-state-selected': this.value && this.depth == 'months' && d.equal(this.value, 'month'),
1904
+ 'ax-state-other': d.year != this._viewStartDate.year
1905
+ };
1906
+ }
1907
+ return r;
1908
+ });
1909
+ this._navText = this._viewStartDate.format('YYYY');
1910
+ this._todayText = this._today.format('MMMM YYYY');
1911
+ }
1912
+ // day view
1913
+ else {
1914
+ const a = vr.enumurate('day');
1915
+ this._slots = a.map((d, i) => {
1916
+ const r = {};
1917
+ r.date = d.date;
1918
+ r.text = d.dayOfMonth;
1919
+ r.tooltip = d.format();
1920
+ r.disabled = (this.min && d.compare(this.min, 'day') == -1) || (this.max && d.compare(this.max, 'day') == 1);
1921
+ if (r.disabled || this.isDisabled(d)) {
1922
+ r.cssClass = {
1923
+ 'ax-state-disabled': true,
1924
+ };
1925
+ }
1926
+ else {
1927
+ r.cssClass = {
1928
+ 'ax-state-today': d.equal(this._today, 'day'),
1929
+ 'ax-state-selected': this.value && d.equal(this.value, 'day'),
1930
+ 'ax-state-holiday': this.isHoliday(d) || this.isWeekend(d),
1931
+ // 'ax-state-event-info': d.dayOfMonth == 12,
1932
+ // 'ax-state-event': d.dayOfMonth == 12,
1933
+ };
1934
+ }
1935
+ r.cssClass[`ax-col-start-${vr.startTime.dayOfWeek}`] = i == 0;
1936
+ return r;
1937
+ });
1938
+ this._navText = this._viewStartDate.format('MMMM YYYY');
1939
+ this._todayText = this._today.format('DDDD, MMMM dd, YYYY');
1940
+ }
1941
+ }
1942
+ _handlePrevClick(e) {
1943
+ this.prev();
1944
+ }
1945
+ _handleNextClick(e) {
1946
+ this.next();
1947
+ }
1948
+ _handleSlotClick(slot) {
1949
+ if (slot.disabled || this.disabled)
1950
+ return;
1951
+ if (this.activeView == 'days') {
1952
+ this.value = slot.date;
1953
+ }
1954
+ else if (this.activeView == 'months' && this.depth == 'days') {
1955
+ this.activeView = 'days';
1956
+ this.navTo(slot.date);
1957
+ }
1958
+ else if (this.activeView == 'months' && this.depth == 'months') {
1959
+ this.value = slot.date;
1960
+ }
1961
+ else if (this.activeView == 'years' && (this.depth == 'days' || this.depth == 'months')) {
1962
+ this.activeView = 'months';
1963
+ this.navTo(slot.date);
1964
+ }
1965
+ else if (this.activeView == 'years' && this.depth == 'years') {
1966
+ this.value = slot.date;
1967
+ }
1968
+ }
1969
+ _handleNavClick(e) {
1970
+ if (this.activeView == 'days')
1971
+ this.activeView = 'months';
1972
+ else if (this.activeView == 'months')
1973
+ this.activeView = 'years';
1974
+ }
1975
+ _onValueChanged(oldValue, newValue) {
1976
+ this._genearteSlots();
1977
+ }
1978
+ _handleGoToday() {
1979
+ this.value = this._today.date;
1980
+ this.goToday();
1981
+ }
1982
+ next() {
1983
+ this._navNextPrev(false);
1984
+ }
1985
+ prev() {
1986
+ this._navNextPrev(true);
1987
+ }
1988
+ _navNextPrev(prev) {
1989
+ const sign = (prev ? -1 : 1);
1990
+ if (this.activeView == 'days')
1991
+ this.navTo(this._viewStartDate.add('month', sign * 1));
1992
+ else if (this.activeView == 'months')
1993
+ this.navTo(this._viewStartDate.add('year', sign * 1));
1994
+ else
1995
+ this.navTo(this._viewStartDate.add('year', sign * 12));
1996
+ }
1997
+ goToday() {
1998
+ this.navTo(this._today.startOf());
1999
+ }
2000
+ navTo(date) {
2001
+ this._viewStartDate = AXDateTime.convert(date, this._today.calendar.name());
2002
+ this._genearteSlots();
2003
+ }
2004
+ get __hostClass() {
2005
+ const _classes = {
2006
+ 'ax-state-disabled': this.disabled
2007
+ };
2008
+ return Object.entries(_classes).filter(c => c[1]).map(c => c[0]).join(' ');
2009
+ }
2010
+ isDisabled(date) {
2011
+ if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {
2012
+ debugger;
2013
+ return this.disabledDates.some(d => date.equal(d, 'day'));
2014
+ }
2015
+ else if (typeof this.disabledDates == 'function') {
2016
+ return this.disabledDates(date.date);
2017
+ }
2018
+ return false;
2019
+ }
2020
+ isHoliday(date) {
2021
+ if (Array.isArray(this.holidayDates) && this.holidayDates.length != 0) {
2022
+ return this.holidayDates.some(d => date.equal(d, 'day'));
2023
+ }
2024
+ else if (typeof this.holidayDates == 'function') {
2025
+ return this.holidayDates(date.date);
1932
2026
  }
2027
+ return false;
2028
+ }
2029
+ isWeekend(date) {
2030
+ return date.dayOfWeek == 7 || date.dayOfWeek == 1;
1933
2031
  }
1934
2032
  }
1935
2033
  AXCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1936
- AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCalendarComponent, selector: "ax-calendar", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", cssClass: "cssClass", cssStyle: "cssStyle", actionBar: "actionBar", showTime: "showTime" }, viewQueries: [{ propertyName: "days", first: true, predicate: ["days"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-calendar\">\r\n <div class=\"ax-calendar-header\">\r\n <ax-button cssClass=\"ax-nav-button\" text=\"October 2021\" color=\"light\" look=\"blank\"></ax-button>\r\n <ax-button cssClass=\"ax-prev-button\" color=\"light\" look=\"blank\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button cssClass=\"ax-next-button\" color=\"light\" look=\"blank\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div class=\"ax-month-items\">\r\n <div class=\"ax-month-item\">MO</div>\r\n <div class=\"ax-month-item\">TU</div>\r\n <div class=\"ax-month-item\">WE</div>\r\n <div class=\"ax-month-item\">TH</div>\r\n <div class=\"ax-month-item\">FR</div>\r\n <div class=\"ax-month-item\">SA</div>\r\n <div class=\"ax-month-item\">SU</div>\r\n </div>\r\n <div class=\"ax-day-items\">\r\n <div class=\"ax-day-item ax-state-event\">27</div>\r\n <div class=\"ax-day-item ax-state-event ax-state-event-primary\">28</div>\r\n <div class=\"ax-day-item ax-state-event ax-state-event-secondary\">29</div>\r\n <div class=\"ax-day-item ax-state-event ax-state-event-success\">30</div>\r\n <div class=\"ax-day-item ax-state-event ax-state-event-warning\">01</div>\r\n <div class=\"ax-day-item ax-state-event ax-state-event-danger\">02</div>\r\n <div class=\"ax-day-item ax-state-holiday\">03</div>\r\n <div class=\"ax-day-item\">04</div>\r\n <div class=\"ax-day-item\">05</div>\r\n <div class=\"ax-day-item\">06</div>\r\n <div class=\"ax-day-item\">07</div>\r\n <div class=\"ax-day-item\">08</div>\r\n <div class=\"ax-day-item\">09</div>\r\n <div class=\"ax-day-item ax-state-holiday\">10</div>\r\n <div class=\"ax-day-item\">11</div>\r\n <div class=\"ax-day-item ax-state-event ax-state-event-info\">12</div>\r\n <div class=\"ax-day-item\">13</div>\r\n <div class=\"ax-day-item\">14</div>\r\n <div class=\"ax-day-item\">15</div>\r\n <div class=\"ax-day-item\">16</div>\r\n <div class=\"ax-day-item ax-state-holiday\">17</div>\r\n <div class=\"ax-day-item\">18</div>\r\n <div class=\"ax-day-item\">19</div>\r\n <div class=\"ax-day-item\">20</div>\r\n <div class=\"ax-day-item\">21</div>\r\n <div class=\"ax-day-item\">22</div>\r\n <div class=\"ax-day-item\">23</div>\r\n <div class=\"ax-day-item ax-state-holiday\">24</div>\r\n <div class=\"ax-day-item\">25</div>\r\n <div class=\"ax-day-item\">26</div>\r\n <div class=\"ax-day-item\">27</div>\r\n <div class=\"ax-day-item ax-state-today\">28</div>\r\n <div class=\"ax-day-item\">29</div>\r\n <div class=\"ax-day-item\">30</div>\r\n <div class=\"ax-day-item ax-state-holiday\">31</div>\r\n <div class=\"ax-day-item\">01</div>\r\n <div class=\"ax-day-item\">02</div>\r\n <div class=\"ax-day-item\">03</div>\r\n <div class=\"ax-day-item\">04</div>\r\n <div class=\"ax-day-item ax-state-selected\">05</div>\r\n <div class=\"ax-day-item\">06</div>\r\n <div class=\"ax-day-item ax-state-holiday\">07</div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-footer\">\r\n <ax-button text=\"Today\" color=\"dark\" size=\"sm\"></ax-button>\r\n </div>\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2034
+ AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", disabled: "disabled", tabIndex: "tabIndex", activeView: "activeView", depth: "depth", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", depthChange: "depthChange" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-calendar-header\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\" (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\" [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\" [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\" \r\n (click)=\"_handleSlotClick(slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\" \r\n (click)=\"_handleSlotClick(slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div>SU</div>\r\n <div>MO</div>\r\n <div>TU</div>\r\n <div>WE</div>\r\n <div>TH</div>\r\n <div>FR</div>\r\n <div>SA</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick(slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n</div>\r\n<div class=\"ax-calendar-footer\">\r\n <ax-button [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\" (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1937
2035
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarComponent, decorators: [{
1938
2036
  type: Component,
1939
2037
  args: [{
1940
2038
  selector: 'ax-calendar',
1941
2039
  templateUrl: './calendar.component.html',
1942
2040
  changeDetection: ChangeDetectionStrategy.OnPush,
1943
- inputs: ['disabled', 'tabIndex', 'size', 'cssClass', 'cssStyle'],
2041
+ inputs: [...VALUE_INPUTS, ...INTERACTIVE_INPUTS],
2042
+ outputs: [...VALUE_OUTPUT, ...INTERACTIVE_OUTPUT],
1944
2043
  encapsulation: ViewEncapsulation.None,
1945
2044
  }]
1946
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { days: [{
1947
- type: ViewChild,
1948
- args: ['days']
1949
- }], actionBar: [{
2045
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { activeView: [{
2046
+ type: Input
2047
+ }], depthChange: [{
2048
+ type: Output
2049
+ }], depth: [{
2050
+ type: Input
2051
+ }], min: [{
1950
2052
  type: Input
1951
- }], showTime: [{
2053
+ }], max: [{
1952
2054
  type: Input
2055
+ }], disabledDates: [{
2056
+ type: Input
2057
+ }], holidayDates: [{
2058
+ type: Input
2059
+ }], __hostClass: [{
2060
+ type: HostBinding,
2061
+ args: ['class']
1953
2062
  }] } });
1954
2063
 
1955
- const COMPONENT$f = [AXCalendarComponent];
1956
- const MODULES$f = [CommonModule, AXButtonModule, AXEditorDecoratorModule, AXIconModule];
2064
+ const COMPONENT$h = [AXCalendarComponent];
2065
+ const MODULES$h = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
1957
2066
  class AXCalendarModule {
1958
2067
  }
1959
2068
  AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1960
- AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXEditorDecoratorModule, AXIconModule], exports: [AXCalendarComponent] });
1961
- AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$f]] });
2069
+ AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule], exports: [AXCalendarComponent] });
2070
+ AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
1962
2071
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, decorators: [{
1963
2072
  type: NgModule,
1964
2073
  args: [{
1965
- declarations: [...COMPONENT$f],
1966
- imports: [...MODULES$f],
1967
- exports: [...COMPONENT$f],
2074
+ declarations: [...COMPONENT$h],
2075
+ imports: [...MODULES$h],
2076
+ exports: [...COMPONENT$h],
1968
2077
  providers: [],
1969
2078
  }]
1970
2079
  }] });
@@ -2419,7 +2528,7 @@ AXCarouselPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0",
2419
2528
  AXCarouselPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCarouselPagerComponent, selector: "ax-carousel-pager", host: { classAttribute: "ax-carousel-pager" }, usesInheritance: true, ngImport: i0, template: `
2420
2529
  <button *ngFor="let d of _dots;let i=index" [class.ax-state-active]="i==_pageIndex" (click)="_handleClick($event,i)">
2421
2530
  </button>
2422
- `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2531
+ `, isInline: true, directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2423
2532
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselPagerComponent, decorators: [{
2424
2533
  type: Component,
2425
2534
  args: [{
@@ -2434,19 +2543,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2434
2543
  }]
2435
2544
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
2436
2545
 
2437
- const COMPONENT$e = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
2438
- const MODULES$e = [CommonModule];
2546
+ const COMPONENT$g = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
2547
+ const MODULES$g = [CommonModule];
2439
2548
  class AXCarouselModule {
2440
2549
  }
2441
2550
  AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2442
2551
  AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
2443
- AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$e]] });
2552
+ AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$g]] });
2444
2553
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, decorators: [{
2445
2554
  type: NgModule,
2446
2555
  args: [{
2447
- declarations: [...COMPONENT$e],
2448
- imports: [...MODULES$e],
2449
- exports: [...COMPONENT$e],
2556
+ declarations: [...COMPONENT$g],
2557
+ imports: [...MODULES$g],
2558
+ exports: [...COMPONENT$g],
2450
2559
  providers: [],
2451
2560
  }]
2452
2561
  }] });
@@ -2472,7 +2581,7 @@ class AXCheckBoxComponent extends AXBaseValueComponentMixin {
2472
2581
  }
2473
2582
  }
2474
2583
  AXCheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCheckBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2475
- AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", indeterminate: "indeterminate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-start ax-checkbox-container\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"_id\" class=\"ax-checkbox\" type=\"checkbox\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm ax-flex ax-flex-col\">\r\n <label [for]=\"_id\" class=\"ax-font-medium ax-text-gray-700\">\r\n <ng-content></ng-content><br>\r\n </label>\r\n </div>\r\n <!-- <div class=\"ax-ms-3 ax-text-sm\">\r\n \r\n </div> -->\r\n</div>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", directives: [{ type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2584
+ AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", indeterminate: "indeterminate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-start ax-checkbox-container\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"_id\" class=\"ax-checkbox\" type=\"checkbox\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-2 ax-text-sm ax-flex ax-flex-col\">\r\n <label [for]=\"_id\" class=\"ax-font-medium ax-text-light-700\">\r\n <ng-content></ng-content><br>\r\n </label>\r\n </div>\r\n <!-- <div class=\"ax-ms-3 ax-text-sm\">\r\n \r\n </div> -->\r\n</div>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", directives: [{ type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2476
2585
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
2477
2586
  type: Component,
2478
2587
  args: [{
@@ -2547,7 +2656,7 @@ class AXDataListComponent extends AXBaseSelectionValueMixin {
2547
2656
  }
2548
2657
  }
2549
2658
  AXDataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2550
- AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2659
+ AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2551
2660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListComponent, decorators: [{
2552
2661
  type: Component,
2553
2662
  args: [{
@@ -2579,34 +2688,117 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2579
2688
  type: Input
2580
2689
  }] } });
2581
2690
 
2582
- const COMPONENT$d = [AXDataListComponent];
2583
- const MODULES$d = [CommonModule, AXButtonModule];
2691
+ const COMPONENT$f = [AXDataListComponent];
2692
+ const MODULES$f = [CommonModule, AXButtonModule];
2584
2693
  class AXDataListModule {
2585
2694
  }
2586
2695
  AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2587
2696
  AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule], exports: [AXDataListComponent] });
2588
- AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$d]] });
2697
+ AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$f]] });
2589
2698
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListModule, decorators: [{
2590
2699
  type: NgModule,
2591
2700
  args: [{
2592
- declarations: [...COMPONENT$d],
2593
- imports: [...MODULES$d],
2594
- exports: [...COMPONENT$d],
2701
+ declarations: [...COMPONENT$f],
2702
+ imports: [...MODULES$f],
2703
+ exports: [...COMPONENT$f],
2595
2704
  providers: [],
2596
2705
  }]
2597
2706
  }] });
2598
2707
 
2599
- class AXDropdownComponent extends AXBaseDropdownMixin {
2600
- constructor(_elementRef, _cdr, _overlay, _platform, _viewContainerRef) {
2708
+ class AXPopoverComponent extends AXBaseComponent {
2709
+ constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
2601
2710
  super(_elementRef, _cdr);
2711
+ this._cdr = _cdr;
2712
+ this._zone = _zone;
2602
2713
  this._overlay = _overlay;
2603
2714
  this._platform = _platform;
2604
2715
  this._viewContainerRef = _viewContainerRef;
2716
+ this.position = [
2717
+ {
2718
+ originX: 'start',
2719
+ originY: 'bottom',
2720
+ overlayX: 'start',
2721
+ overlayY: 'top',
2722
+ },
2723
+ {
2724
+ originX: 'start',
2725
+ originY: 'top',
2726
+ overlayX: 'start',
2727
+ overlayY: 'bottom'
2728
+ }
2729
+ ];
2605
2730
  this._subs = [];
2731
+ //
2732
+ this.openTrigger = 'toggle';
2733
+ //
2734
+ this.closeTrigger = 'clickout';
2735
+ //
2736
+ this.hasBackdrop = false;
2737
+ //
2738
+ this._mousePos = { x: 0, y: 0 };
2739
+ this._isScrollAttached = false;
2740
+ //
2741
+ this.onOpened = new EventEmitter();
2742
+ this.onClosed = new EventEmitter();
2743
+ }
2744
+ get target() {
2745
+ return this._target;
2606
2746
  }
2747
+ set target(v) {
2748
+ if (v instanceof HTMLElement)
2749
+ this._target = v;
2750
+ else if (v instanceof ElementRef)
2751
+ this._target = v.nativeElement;
2752
+ else if (v instanceof AXBaseComponent)
2753
+ this._target = v._getInnerElement();
2754
+ }
2755
+ _emitOnOpenedEvent() {
2756
+ this.onOpened.emit({
2757
+ component: this,
2758
+ htmlElement: this._getHostElement()
2759
+ });
2760
+ }
2761
+ _emitOnClosedEvent() {
2762
+ this.onClosed.emit({
2763
+ component: this,
2764
+ htmlElement: this._getHostElement()
2765
+ });
2766
+ }
2767
+ //
2607
2768
  onViewInit() {
2769
+ if (this._target) {
2770
+ if (this.openTrigger === 'mouseover') {
2771
+ const mouseEnter$ = fromEvent(this._target, 'mouseover');
2772
+ this._addSub(mouseEnter$.subscribe(e => {
2773
+ const point = { x: e.clientX, y: e.clientY };
2774
+ if (AXDrawingUtil.isInElementBound(point, this._target))
2775
+ this.open();
2776
+ }));
2777
+ }
2778
+ if (this.closeTrigger === 'mouseout') {
2779
+ const mouseMove$ = fromEvent(document, 'mousemove');
2780
+ this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
2781
+ this._mousePos.x = e.clientX;
2782
+ this._mousePos.y = e.clientY;
2783
+ if (this.isOpen) {
2784
+ setTimeout(() => {
2785
+ if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
2786
+ this.close();
2787
+ }, 100);
2788
+ }
2789
+ }));
2790
+ }
2791
+ //
2792
+ if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
2793
+ const click$ = fromEvent(this._target, 'click');
2794
+ this._addSub(click$.subscribe(e => {
2795
+ this.openTrigger == 'toggle' ? this.toggle() : this.open();
2796
+ }));
2797
+ }
2798
+ }
2608
2799
  }
2609
- ngOnDestroy() {
2800
+ //
2801
+ onDestroy() {
2610
2802
  var _a, _b;
2611
2803
  (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
2612
2804
  (_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
@@ -2625,23 +2817,20 @@ class AXDropdownComponent extends AXBaseDropdownMixin {
2625
2817
  }
2626
2818
  }
2627
2819
  }
2628
- _handleArrowClickEvent() {
2629
- this.toggle();
2630
- }
2820
+ //
2631
2821
  toggle() {
2632
- if (this.disabled !== true && this.readonly !== true) {
2633
- this.isOpen ? this.close() : this.open();
2634
- }
2822
+ this.isOpen ? this.close() : this.open();
2635
2823
  }
2824
+ //
2636
2825
  close() {
2637
- var _a, _b;
2826
+ var _a;
2638
2827
  if (!this.isOpen) {
2639
2828
  return;
2640
2829
  }
2641
2830
  (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
2642
- (_b = this._subs[1]) === null || _b === void 0 ? void 0 : _b.unsubscribe();
2643
2831
  this._emitOnClosedEvent();
2644
2832
  }
2833
+ //
2645
2834
  open() {
2646
2835
  if (this.isOpen) {
2647
2836
  return;
@@ -2651,52 +2840,39 @@ class AXDropdownComponent extends AXBaseDropdownMixin {
2651
2840
  this._emitOnOpenedEvent();
2652
2841
  }
2653
2842
  _ensureOverlayCreated() {
2654
- let baseSize = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', '')) / 2;
2843
+ const targetRef = this._target;
2844
+ if (!targetRef)
2845
+ return;
2655
2846
  if (!this._overlayRef) {
2656
2847
  const positionStrategy = this._overlay.position()
2657
- .flexibleConnectedTo(this._getInnerElement())
2658
- .withPositions([
2659
- {
2660
- originX: 'start',
2661
- originY: 'bottom',
2662
- overlayX: 'start',
2663
- overlayY: 'top',
2664
- offsetY: baseSize
2665
- },
2666
- {
2667
- originX: 'start',
2668
- originY: 'top',
2669
- overlayX: 'start',
2670
- overlayY: 'bottom'
2671
- }
2672
- ])
2848
+ .flexibleConnectedTo(targetRef)
2849
+ .withPositions(Array.isArray(this.position) ? this.position : [this.position])
2673
2850
  .withPush(false);
2674
2851
  this._overlayRef = this._overlay.create({
2675
2852
  positionStrategy,
2676
2853
  scrollStrategy: this._overlay.scrollStrategies.close(),
2677
- panelClass: ['animate__animated', 'animate__fadeIn', 'animate__faster'],
2678
- hasBackdrop: false,
2679
- backdropClass: ['cdk-overlay-transparent-backdrop']
2680
- });
2681
- this._subs[0] = this._overlayRef._outsidePointerEvents.subscribe(c => {
2682
- const target = c.target;
2683
- const comElem = this._getHostElement();
2684
- if (!(comElem.contains(target))) {
2685
- this.close();
2686
- }
2854
+ panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
2855
+ hasBackdrop: this.hasBackdrop,
2856
+ backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
2687
2857
  });
2688
- this._subs[1] = this._overlayRef.attachments().subscribe(() => {
2689
- if (this.fitParent === true) {
2690
- this._dropdownWidth = this._getInnerElement().offsetWidth;
2691
- }
2692
- else {
2693
- this._dropdownWidth = null;
2694
- }
2695
- this._subs[2] = this._platform.scroll.subscribe(c => {
2696
- if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
2858
+ if (this.closeTrigger == 'clickout') {
2859
+ this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
2860
+ const target = c.target;
2861
+ const comElem = targetRef;
2862
+ if (!(comElem.contains(target))) {
2697
2863
  this.close();
2698
- });
2699
- });
2864
+ }
2865
+ }));
2866
+ }
2867
+ this._addSub(this._overlayRef.attachments().subscribe(() => {
2868
+ if (!this._isScrollAttached) {
2869
+ this._addSub(this._platform.scroll.subscribe(c => {
2870
+ // if (!(c.nativeEvent.target as HTMLElement).closest('.ax-overlay-pane'))
2871
+ this.close();
2872
+ }));
2873
+ this._isScrollAttached = true;
2874
+ }
2875
+ }));
2700
2876
  }
2701
2877
  if (!this._templatePortal) {
2702
2878
  this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
@@ -2705,29 +2881,174 @@ class AXDropdownComponent extends AXBaseDropdownMixin {
2705
2881
  get isOpen() {
2706
2882
  return this._overlayRef ? this._overlayRef.hasAttached() : false;
2707
2883
  }
2884
+ _addSub(sub) {
2885
+ this._subs.push(sub);
2886
+ }
2708
2887
  }
2709
- AXDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i2.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
2710
- AXDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownComponent, selector: "ax-drop-down", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", fitParent: "fitParent" }, outputs: { onOpened: "onOpened", onClosed: "onClosed" }, host: { listeners: { "keydown": "_handleKeydownHandler($event)" }, classAttribute: "ax-dropdown" }, viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-editor-container\">\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-dropdown-content\" style=\"display: inline-flex;\" (click)=\"_handleArrowClickEvent()\">\r\n <ng-content select=\"ng-container[input]\">\r\n </ng-content>\r\n </div>\r\n <ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" [size]=\"size\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent()\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-button>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-template #baseTemplate>\r\n <div class=\"ax-overlay-pane ax-transition ax-duration-300 ax-ease-in-out\" [style.min-width.px]=\"_dropdownWidth\">\r\n <ng-content select=\"ng-container[panel]\">\r\n </ng-content>\r\n </div>\r\n </ng-template>\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2711
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownComponent, decorators: [{
2888
+ AXPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.Overlay }, { token: i2.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
2889
+ AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPopoverComponent, selector: "ax-popover", inputs: { target: "target", position: "position", openTrigger: "openTrigger", closeTrigger: "closeTrigger", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass" }, host: { listeners: { "document:keydown": "_handleKeydownHandler($event)" } }, viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2890
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverComponent, decorators: [{
2712
2891
  type: Component,
2713
2892
  args: [{
2714
- selector: 'ax-drop-down',
2715
- templateUrl: 'dropdown.component.html',
2716
- inputs: ['disabled', 'readonly', 'tabIndex', 'size', 'fitParent'],
2717
- outputs: ['onOpened', 'onClosed'],
2893
+ selector: 'ax-popover',
2894
+ templateUrl: './popover.component.html',
2718
2895
  encapsulation: ViewEncapsulation.None,
2719
2896
  changeDetection: ChangeDetectionStrategy.OnPush,
2720
- host: { class: 'ax-dropdown' }
2721
2897
  }]
2722
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Overlay }, { type: i2.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { _baseTemplate: [{
2898
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i2.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
2899
+ type: Input
2900
+ }], position: [{
2901
+ type: Input
2902
+ }], _baseTemplate: [{
2723
2903
  type: ViewChild,
2724
2904
  args: ['baseTemplate']
2905
+ }], openTrigger: [{
2906
+ type: Input
2907
+ }], closeTrigger: [{
2908
+ type: Input
2909
+ }], hasBackdrop: [{
2910
+ type: Input
2911
+ }], backdropClass: [{
2912
+ type: Input
2725
2913
  }], _handleKeydownHandler: [{
2726
2914
  type: HostListener,
2727
- args: ['keydown', ['$event']]
2915
+ args: ['document:keydown', ['$event']]
2916
+ }] } });
2917
+
2918
+ class AXPopoverModule {
2919
+ }
2920
+ AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2921
+ AXPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
2922
+ AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
2923
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, decorators: [{
2924
+ type: NgModule,
2925
+ args: [{
2926
+ declarations: [AXPopoverComponent],
2927
+ imports: [CommonModule],
2928
+ exports: [AXPopoverComponent],
2929
+ providers: []
2930
+ }]
2931
+ }] });
2932
+
2933
+ const AXBaseDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(AXBaseComponent));
2934
+ class AXBaseDropDownComponent extends AXBaseDropdownMixin {
2935
+ constructor() {
2936
+ super(...arguments);
2937
+ this.fitParent = true;
2938
+ this.onOpened = new EventEmitter();
2939
+ this.onClosed = new EventEmitter();
2940
+ this.position = [];
2941
+ }
2942
+ _emitOnOpenedEvent() {
2943
+ //** call from interactive mixin **//
2944
+ //(this as any).focus();
2945
+ //
2946
+ this.onOpened.emit({
2947
+ component: this,
2948
+ htmlElement: this._getHostElement()
2949
+ });
2950
+ }
2951
+ _emitOnClosedEvent() {
2952
+ this.onClosed.emit({
2953
+ component: this,
2954
+ htmlElement: this._getHostElement()
2955
+ });
2956
+ }
2957
+ onViewInit() {
2958
+ if (this.dropdownWidth == null) {
2959
+ if (this.fitParent === true) {
2960
+ this.dropdownWidth = this._getInnerElement().offsetWidth;
2961
+ }
2962
+ }
2963
+ // wait for documentElement
2964
+ setTimeout(() => {
2965
+ if (this.position.length == 0) {
2966
+ const offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
2967
+ const list = [
2968
+ {
2969
+ originX: 'start',
2970
+ originY: 'bottom',
2971
+ overlayX: 'start',
2972
+ overlayY: 'top',
2973
+ offsetY: offset
2974
+ },
2975
+ {
2976
+ originX: 'start',
2977
+ originY: 'top',
2978
+ overlayX: 'start',
2979
+ overlayY: 'bottom',
2980
+ offsetY: -offset
2981
+ }
2982
+ ];
2983
+ this.position.push(...list);
2984
+ }
2985
+ }, 500);
2986
+ }
2987
+ toggle() {
2988
+ if (this.disabled !== true) {
2989
+ this.popover.toggle();
2990
+ }
2991
+ }
2992
+ close() {
2993
+ if (!this.isOpen || this.disabled) {
2994
+ return;
2995
+ }
2996
+ this.popover.close();
2997
+ this._emitOnClosedEvent();
2998
+ }
2999
+ open() {
3000
+ if (this.isOpen || this.disabled) {
3001
+ return;
3002
+ }
3003
+ this.popover.open();
3004
+ this._emitOnOpenedEvent();
3005
+ }
3006
+ get isOpen() {
3007
+ return this.popover.isOpen;
3008
+ }
3009
+ }
3010
+ AXBaseDropDownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBaseDropDownComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3011
+ AXBaseDropDownComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBaseDropDownComponent });
3012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBaseDropDownComponent, decorators: [{
3013
+ type: Injectable
3014
+ }], propDecorators: { fitParent: [{
3015
+ type: Input
3016
+ }], dropdownWidth: [{
3017
+ type: Input
3018
+ }], onOpened: [{
3019
+ type: Output
3020
+ }], onClosed: [{
3021
+ type: Output
3022
+ }], position: [{
3023
+ type: Input
3024
+ }] } });
3025
+
3026
+ class AXDropdownComponent extends AXBaseDropDownComponent {
3027
+ constructor(_elementRef, _cdr) {
3028
+ super(_elementRef, _cdr);
3029
+ this._target = this;
3030
+ }
3031
+ _handleArrowClickEvent() {
3032
+ this.toggle();
3033
+ }
3034
+ }
3035
+ AXDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3036
+ AXDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownComponent, selector: "ax-drop-down", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", fitParent: "fitParent" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-editor-container\" [class.ax-state-disabled]=\"disabled\">\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-dropdown-content\" style=\"display: inline-flex;\" (click)=\"_handleArrowClickEvent()\">\r\n <ng-content select=\"[input]\">\r\n </ng-content>\r\n </div>\r\n <ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" [size]=\"size\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent()\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-button>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n</div>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [style.min-width.px]=\"dropdownWidth\">\r\n <ng-content select=\"[panel]\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3037
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownComponent, decorators: [{
3038
+ type: Component,
3039
+ args: [{
3040
+ selector: 'ax-drop-down',
3041
+ templateUrl: 'dropdown.component.html',
3042
+ inputs: ['disabled', 'tabIndex', 'size', 'fitParent'],
3043
+ encapsulation: ViewEncapsulation.None,
3044
+ changeDetection: ChangeDetectionStrategy.OnPush
3045
+ }]
3046
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
3047
+ type: ViewChild,
3048
+ args: [AXPopoverComponent]
2728
3049
  }] } });
2729
3050
 
2730
- class AXDatepickerComponent extends AXBaseComponentMixin {
3051
+ class AXDatepickerComponent extends AXBaseTextBoxMixin {
2731
3052
  constructor(elementRef, cdr) {
2732
3053
  super(elementRef, cdr);
2733
3054
  this.dayItems = new Array(32);
@@ -2775,31 +3096,40 @@ class AXDatepickerComponent extends AXBaseComponentMixin {
2775
3096
  }
2776
3097
  }
2777
3098
  AXDatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2778
- AXDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDatepickerComponent, selector: "ax-datepicker", usesInheritance: true, ngImport: i0, template: "<ax-drop-down>\r\n <ng-container input>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"ax-datepicker-body\">\r\n <ax-calendar [showTime]=\"true\" [actionBar]=\"true\"></ax-calendar>\r\n </div>\r\n </ng-container>\r\n</ax-drop-down>", components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["disabled", "readonly", "tabIndex", "size", "fitParent"], outputs: ["onOpened", "onClosed"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "actionBar", "showTime"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3099
+ AXDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDatepickerComponent, selector: "ax-date-picker", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", value: "value", name: "name" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<ax-drop-down [fitParent]=\"false\" [disabled]=\"disabled\">\r\n <ng-container input>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </ng-container>\r\n <div class=\"ax-datepicker-body\" panel>\r\n <ax-calendar></ax-calendar>\r\n <!-- [showTime]=\"true\" [actionBar]=\"true\" -->\r\n </div>\r\n</ax-drop-down>", components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["disabled", "tabIndex", "size", "fitParent"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "disabled", "tabIndex", "activeView", "depth", "min", "max", "disabledDates", "holidayDates"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2779
3100
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerComponent, decorators: [{
2780
3101
  type: Component,
2781
3102
  args: [{
2782
- selector: 'ax-datepicker',
3103
+ selector: 'ax-date-picker',
2783
3104
  templateUrl: './datepicker.component.html',
3105
+ inputs: [
3106
+ 'disabled',
3107
+ 'readonly',
3108
+ 'tabIndex',
3109
+ 'cssClass',
3110
+ 'size',
3111
+ ...TEXTBOX_INPUTS,
3112
+ ],
3113
+ outputs: [
3114
+ 'valueChange',
3115
+ 'onValueChanged',
3116
+ 'onBlur',
3117
+ 'onFocus',
3118
+ ...TEXTBOX_OUTPUT,
3119
+ ],
2784
3120
  changeDetection: ChangeDetectionStrategy.OnPush,
2785
3121
  encapsulation: ViewEncapsulation.None,
2786
3122
  }]
2787
3123
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2788
3124
 
2789
- const AXBaseDropdownMenuMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin((AXBaseComponent)));
2790
- class AXDropdownPanelComponent extends AXBaseDropdownMenuMixin {
2791
- constructor(elementRef, cdr, _overlay, _platform, _viewContainerRef, _parent) {
3125
+ class AXDropdownPanelComponent extends AXBaseDropDownComponent {
3126
+ constructor(elementRef, cdr, _parent) {
2792
3127
  super(elementRef, cdr);
2793
- this._overlay = _overlay;
2794
- this._platform = _platform;
2795
- this._viewContainerRef = _viewContainerRef;
2796
3128
  this._parent = _parent;
2797
3129
  this.onItemClick = new EventEmitter();
3130
+ this._needBorder = false;
2798
3131
  this._subs = [];
2799
- if (_parent) {
2800
- this.target = _parent;
2801
- this._subs.push(_parent.onClick.subscribe(this.toggle.bind(this)));
2802
- }
3132
+ this._target = this._parent._getHostElement();
2803
3133
  }
2804
3134
  get items() {
2805
3135
  return this._items || [];
@@ -2812,32 +3142,18 @@ class AXDropdownPanelComponent extends AXBaseDropdownMenuMixin {
2812
3142
  return [...Array.from(this._viewButtons), ...Array.from(this._contentButtons)];
2813
3143
  }
2814
3144
  onViewInit() {
3145
+ super.onViewInit();
2815
3146
  this._getAllButtons().forEach(c => {
3147
+ this._needBorder = true;
2816
3148
  this._subs.push(c.onClick.subscribe(this._handleOnItemClick.bind(this)));
3149
+ this._cdr.markForCheck();
2817
3150
  });
2818
3151
  }
2819
3152
  onDestroy() {
2820
- var _a, _b;
2821
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
2822
- (_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
2823
3153
  this._subs.forEach(s => {
2824
3154
  s === null || s === void 0 ? void 0 : s.unsubscribe();
2825
3155
  });
2826
3156
  }
2827
- _handleKeydownHandler(e) {
2828
- if (e.key === 'Enter' && e.type === 'keydown') {
2829
- this.toggle();
2830
- }
2831
- if (e.key === 'Escape') {
2832
- if (this.isOpen) {
2833
- this.close();
2834
- e.stopPropagation();
2835
- }
2836
- }
2837
- }
2838
- _handleArrowClickEvent(e) {
2839
- this.toggle();
2840
- }
2841
3157
  _emitOnItemClickEvent(e, item) {
2842
3158
  this.onItemClick.emit({
2843
3159
  component: this,
@@ -2846,93 +3162,14 @@ class AXDropdownPanelComponent extends AXBaseDropdownMenuMixin {
2846
3162
  name: item.name,
2847
3163
  data: item.data,
2848
3164
  });
2849
- this.close();
2850
3165
  }
2851
3166
  _handleOnItemClick(e) {
2852
3167
  this.close();
2853
3168
  this._emitOnItemClickEvent(e, e.component);
2854
3169
  }
2855
- toggle() {
2856
- if (this.disabled !== true) {
2857
- this.isOpen ? this.close() : this.open();
2858
- }
2859
- }
2860
- close() {
2861
- var _a, _b;
2862
- if (!this.isOpen) {
2863
- return;
2864
- }
2865
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
2866
- (_b = this._subs[1]) === null || _b === void 0 ? void 0 : _b.unsubscribe();
2867
- this._emitOnClosedEvent();
2868
- }
2869
- open() {
2870
- if (this.isOpen) {
2871
- return;
2872
- }
2873
- this._ensureOverlayCreated();
2874
- this._overlayRef.attach(this._templatePortal);
2875
- this._emitOnOpenedEvent();
2876
- }
2877
- _ensureOverlayCreated() {
2878
- let baseSize = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
2879
- const targetRef = this.target._getInnerElement();
2880
- if (!this._overlayRef) {
2881
- const positionStrategy = this._overlay.position()
2882
- .flexibleConnectedTo(targetRef)
2883
- .withPositions([
2884
- {
2885
- originX: 'start',
2886
- originY: 'bottom',
2887
- overlayX: 'start',
2888
- overlayY: 'top',
2889
- offsetY: baseSize
2890
- },
2891
- {
2892
- originX: 'start',
2893
- originY: 'top',
2894
- overlayX: 'start',
2895
- overlayY: 'bottom'
2896
- }
2897
- ])
2898
- .withPush(false);
2899
- this._overlayRef = this._overlay.create({
2900
- positionStrategy,
2901
- scrollStrategy: this._overlay.scrollStrategies.close(),
2902
- panelClass: ['animate__animated', 'animate__fadeIn', 'animate__faster'],
2903
- hasBackdrop: false,
2904
- backdropClass: ['cdk-overlay-transparent-backdrop']
2905
- });
2906
- this._subs[0] = this._overlayRef._outsidePointerEvents.subscribe(c => {
2907
- const target = c.target;
2908
- const comElem = targetRef;
2909
- if (!(comElem.contains(target))) {
2910
- this.close();
2911
- }
2912
- });
2913
- this._subs[1] = this._overlayRef.attachments().subscribe(() => {
2914
- if (this.fitParent === true) {
2915
- this._dropdownWidth = targetRef.offsetWidth;
2916
- }
2917
- else {
2918
- this._dropdownWidth = targetRef.offsetWidth * 1.5;
2919
- }
2920
- this._subs[2] = this._platform.scroll.subscribe(c => {
2921
- if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
2922
- this.close();
2923
- });
2924
- });
2925
- }
2926
- if (!this._templatePortal) {
2927
- this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
2928
- }
2929
- }
2930
- get isOpen() {
2931
- return this._overlayRef ? this._overlayRef.hasAttached() : false;
2932
- }
2933
3170
  }
2934
- AXDropdownPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i2.AXPlatform }, { token: i0.ViewContainerRef }, { token: AXButtonComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2935
- AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { target: "target", items: "items" }, outputs: { onItemClick: "onItemClick" }, host: { listeners: { "keydown": "_handleKeydownHandler($event)" } }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #baseTemplate>\n <div class=\"ax-overlay-pane ax-dropdown-list\" [style.min-width.px]=\"_dropdownWidth\">\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\n <ax-prefix *ngIf=\"item.iconClass\">\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n <ng-template #panelTpl>\n <ng-content select=\"ng-container[panel],ax-button-item\">\n </ng-content>\n </ng-template>\n </div>\n</ng-template>", components: [{ type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3171
+ AXDropdownPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXButtonComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3172
+ AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { items: "items" }, outputs: { onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2936
3173
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
2937
3174
  type: Component,
2938
3175
  args: [{
@@ -2941,7 +3178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2941
3178
  changeDetection: ChangeDetectionStrategy.OnPush,
2942
3179
  encapsulation: ViewEncapsulation.None,
2943
3180
  }]
2944
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Overlay }, { type: i2.AXPlatform }, { type: i0.ViewContainerRef }, { type: AXButtonComponent, decorators: [{
3181
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXButtonComponent, decorators: [{
2945
3182
  type: Optional
2946
3183
  }] }]; }, propDecorators: { _contentButtons: [{
2947
3184
  type: ContentChildren,
@@ -2951,46 +3188,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2951
3188
  args: [AXButtonItemComponent]
2952
3189
  }], onItemClick: [{
2953
3190
  type: Output
2954
- }], target: [{
2955
- type: Input
3191
+ }], popover: [{
3192
+ type: ViewChild,
3193
+ args: [AXPopoverComponent]
2956
3194
  }], items: [{
2957
3195
  type: Input
2958
- }], _baseTemplate: [{
2959
- type: ViewChild,
2960
- args: ['baseTemplate']
2961
- }], _handleKeydownHandler: [{
2962
- type: HostListener,
2963
- args: ['keydown', ['$event']]
2964
3196
  }] } });
2965
3197
 
2966
3198
  class AXDropdownModule {
2967
3199
  }
2968
3200
  AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2969
- AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, declarations: [AXDropdownComponent, AXDropdownPanelComponent], imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule], exports: [AXDropdownComponent, AXDropdownPanelComponent] });
2970
- AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule]] });
3201
+ AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, declarations: [AXDropdownComponent, AXDropdownPanelComponent], imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule], exports: [AXDropdownComponent, AXDropdownPanelComponent] });
3202
+ AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule]] });
2971
3203
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, decorators: [{
2972
3204
  type: NgModule,
2973
3205
  args: [{
2974
- imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule],
3206
+ imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
2975
3207
  exports: [AXDropdownComponent, AXDropdownPanelComponent],
2976
3208
  declarations: [AXDropdownComponent, AXDropdownPanelComponent],
2977
3209
  providers: [],
2978
3210
  }]
2979
3211
  }] });
2980
3212
 
2981
- const COMPONENT$c = [AXDatepickerComponent];
2982
- const MODULES$c = [CommonModule, AXCalendarModule, AXDropdownModule];
3213
+ const COMPONENT$e = [AXDatepickerComponent];
3214
+ const MODULES$e = [CommonModule, AXCalendarModule, AXDropdownModule];
2983
3215
  class AXDatepickerModule {
2984
3216
  }
2985
3217
  AXDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2986
3218
  AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, declarations: [AXDatepickerComponent], imports: [CommonModule, AXCalendarModule, AXDropdownModule], exports: [AXDatepickerComponent] });
2987
- AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$c]] });
3219
+ AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
2988
3220
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, decorators: [{
2989
3221
  type: NgModule,
2990
3222
  args: [{
2991
- declarations: [...COMPONENT$c],
2992
- imports: [...MODULES$c],
2993
- exports: [...COMPONENT$c],
3223
+ declarations: [...COMPONENT$e],
3224
+ imports: [...MODULES$e],
3225
+ exports: [...COMPONENT$e],
2994
3226
  providers: [],
2995
3227
  }]
2996
3228
  }] });
@@ -3022,7 +3254,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
3022
3254
  }
3023
3255
  }
3024
3256
  AXDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3025
- AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [cssClass]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3257
+ AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3026
3258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogComponent, decorators: [{
3027
3259
  type: Component,
3028
3260
  args: [{
@@ -3033,11 +3265,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
3033
3265
  }]
3034
3266
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
3035
3267
 
3268
+ /**
3269
+ * The Button is a component which detects user interaction and triggers a corresponding event
3270
+ *
3271
+ * @category Components
3272
+ */
3036
3273
  class AXDialogService {
3037
- constructor(overlayService, parentInjector) {
3274
+ /**
3275
+ * @ignore
3276
+ */
3277
+ constructor(overlayService, parentInjector, sso) {
3038
3278
  this.overlayService = overlayService;
3039
3279
  this.parentInjector = parentInjector;
3280
+ this.sso = sso;
3040
3281
  }
3282
+ /**
3283
+ * Show an alert box with 'Okay' button.
3284
+ */
3041
3285
  alert(title, content, type = 'primary') {
3042
3286
  return new Promise((resolve) => {
3043
3287
  const popup = this.open({
@@ -3061,6 +3305,9 @@ class AXDialogService {
3061
3305
  });
3062
3306
  });
3063
3307
  }
3308
+ /**
3309
+ * Show a confirm box with 'Okay' & 'Cancel' buttons.
3310
+ */
3064
3311
  confirm(title, content, type = 'primary') {
3065
3312
  return new Promise((resolve, reject) => {
3066
3313
  const popup = this.open({
@@ -3098,6 +3345,9 @@ class AXDialogService {
3098
3345
  });
3099
3346
  });
3100
3347
  }
3348
+ /**
3349
+ * Show a custom dialog box.
3350
+ */
3101
3351
  show(options) {
3102
3352
  return new Promise((resolve) => {
3103
3353
  var _a;
@@ -3125,7 +3375,8 @@ class AXDialogService {
3125
3375
  const overlayRef = this.overlayService.create({
3126
3376
  positionStrategy,
3127
3377
  hasBackdrop: true,
3128
- panelClass: ['animate__animated', 'animate__fadeIn', 'animate__faster'],
3378
+ scrollStrategy: this.sso.block(),
3379
+ panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
3129
3380
  });
3130
3381
  const dialogPortal = new ComponentPortal(AXDialogComponent, null, this.parentInjector);
3131
3382
  const host = overlayRef.attach(dialogPortal);
@@ -3147,12 +3398,12 @@ class AXDialogService {
3147
3398
  };
3148
3399
  }
3149
3400
  }
3150
- AXDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3401
+ AXDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, deps: [{ token: i1.Overlay }, { token: i0.Injector }, { token: i1.ScrollStrategyOptions }], target: i0.ɵɵFactoryTarget.Injectable });
3151
3402
  AXDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, providedIn: 'root' });
3152
3403
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, decorators: [{
3153
3404
  type: Injectable,
3154
3405
  args: [{ providedIn: 'root' }]
3155
- }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }]; } });
3406
+ }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }, { type: i1.ScrollStrategyOptions }]; } });
3156
3407
 
3157
3408
  class AXLoadingComponent extends AXBaseComponentMixin {
3158
3409
  /**
@@ -3182,7 +3433,7 @@ class AXLoadingComponent extends AXBaseComponentMixin {
3182
3433
  AXLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3183
3434
  AXLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0, template: `
3184
3435
  <ng-template [cdkPortalOutlet]="_selectedPortal" ></ng-template>
3185
- `, isInline: true, directives: [{ type: i1$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3436
+ `, isInline: true, directives: [{ type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3186
3437
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, decorators: [{
3187
3438
  type: Component,
3188
3439
  args: [{
@@ -3296,8 +3547,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
3296
3547
  args: ['axIsLoading']
3297
3548
  }] } });
3298
3549
 
3299
- const COMPONENT$b = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3300
- const MODULES$b = [CommonModule, OverlayModule, PortalModule];
3550
+ const COMPONENT$d = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3551
+ const MODULES$d = [CommonModule, OverlayModule, PortalModule];
3301
3552
  class AXLoadingModule {
3302
3553
  constructor() {
3303
3554
  AXConfig.set({
@@ -3311,13 +3562,13 @@ class AXLoadingModule {
3311
3562
  }
3312
3563
  AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3313
3564
  AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
3314
- AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$b]] });
3565
+ AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$d]] });
3315
3566
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, decorators: [{
3316
- type: NgModule,
3317
- args: [{
3318
- declarations: [...COMPONENT$b],
3319
- imports: [...MODULES$b],
3320
- exports: [...COMPONENT$b],
3567
+ type: NgModule,
3568
+ args: [{
3569
+ declarations: [...COMPONENT$d],
3570
+ imports: [...MODULES$d],
3571
+ exports: [...COMPONENT$d],
3321
3572
  providers: [],
3322
3573
  }]
3323
3574
  }], ctorParameters: function () { return []; } });
@@ -3350,17 +3601,17 @@ class DynamicOverlay extends Overlay {
3350
3601
  return super.create(config);
3351
3602
  }
3352
3603
  }
3353
- DynamicOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicOverlay, deps: [{ token: i1$1.ScrollStrategyOptions }, { token: DynamicOverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i1$1.OverlayPositionBuilder }, { token: i1$1.OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i2$2.Directionality }, { token: i0.RendererFactory2 }, { token: i1.Location }, { token: i1$1.OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable });
3604
+ DynamicOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicOverlay, deps: [{ token: i1.ScrollStrategyOptions }, { token: DynamicOverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i1.OverlayPositionBuilder }, { token: i1.OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i2$2.Directionality }, { token: i0.RendererFactory2 }, { token: i4.Location }, { token: i1.OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable });
3354
3605
  DynamicOverlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicOverlay, providedIn: 'root' });
3355
3606
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicOverlay, decorators: [{
3356
3607
  type: Injectable,
3357
3608
  args: [{
3358
3609
  providedIn: 'root'
3359
3610
  }]
3360
- }], ctorParameters: function () { return [{ type: i1$1.ScrollStrategyOptions }, { type: DynamicOverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: i1$1.OverlayPositionBuilder }, { type: i1$1.OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
3611
+ }], ctorParameters: function () { return [{ type: i1.ScrollStrategyOptions }, { type: DynamicOverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: i1.OverlayPositionBuilder }, { type: i1.OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
3361
3612
  type: Inject,
3362
3613
  args: [DOCUMENT]
3363
- }] }, { type: i2$2.Directionality }, { type: i0.RendererFactory2 }, { type: i1.Location }, { type: i1$1.OverlayOutsideClickDispatcher }]; } });
3614
+ }] }, { type: i2$2.Directionality }, { type: i0.RendererFactory2 }, { type: i4.Location }, { type: i1.OverlayOutsideClickDispatcher }]; } });
3364
3615
 
3365
3616
  class AXOverlayService {
3366
3617
  constructor(overlayService, overlayService2, appRef) {
@@ -3440,12 +3691,12 @@ class AXOverlayService {
3440
3691
  };
3441
3692
  }
3442
3693
  }
3443
- AXOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$1.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
3694
+ AXOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
3444
3695
  AXOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXOverlayService, providedIn: 'root' });
3445
3696
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXOverlayService, decorators: [{
3446
3697
  type: Injectable,
3447
3698
  args: [{ providedIn: 'root' }]
3448
- }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$1.Overlay }, { type: i0.ApplicationRef }]; } });
3699
+ }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1.Overlay }, { type: i0.ApplicationRef }]; } });
3449
3700
 
3450
3701
  const DEFAULT_LOADER_ID = '_DEFAULT';
3451
3702
  /**
@@ -3731,19 +3982,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
3731
3982
  }]
3732
3983
  }] });
3733
3984
 
3734
- const COMPONENT$a = [AXDialogComponent];
3735
- const MODULES$a = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
3985
+ const COMPONENT$c = [AXDialogComponent];
3986
+ const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
3736
3987
  class AXDialogModule {
3737
3988
  }
3738
3989
  AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3739
3990
  AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule], exports: [AXDialogComponent] });
3740
- AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$a]] });
3991
+ AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
3741
3992
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, decorators: [{
3742
3993
  type: NgModule,
3743
3994
  args: [{
3744
- declarations: [...COMPONENT$a],
3745
- imports: [...MODULES$a],
3746
- exports: [...COMPONENT$a],
3995
+ declarations: [...COMPONENT$c],
3996
+ imports: [...MODULES$c],
3997
+ exports: [...COMPONENT$c],
3747
3998
  providers: [],
3748
3999
  }]
3749
4000
  }] });
@@ -3983,19 +4234,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
3983
4234
  }]
3984
4235
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
3985
4236
 
3986
- const COMPONENT$9 = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
3987
- const MODULES$9 = [CommonModule];
4237
+ const COMPONENT$b = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
4238
+ const MODULES$b = [CommonModule];
3988
4239
  class AXDrawerModule {
3989
4240
  }
3990
4241
  AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3991
4242
  AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent] });
3992
- AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$9]] });
4243
+ AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$b]] });
3993
4244
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, decorators: [{
3994
4245
  type: NgModule,
3995
4246
  args: [{
3996
- declarations: [...COMPONENT$9],
3997
- imports: [...MODULES$9],
3998
- exports: [...COMPONENT$9],
4247
+ declarations: [...COMPONENT$b],
4248
+ imports: [...MODULES$b],
4249
+ exports: [...COMPONENT$b],
3999
4250
  providers: [],
4000
4251
  }]
4001
4252
  }] });
@@ -4137,19 +4388,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4137
4388
  type: Input
4138
4389
  }] } });
4139
4390
 
4140
- const COMPONENT$8 = [AXInputMaskComponent];
4141
- const MODULES$8 = [CommonModule, NgxMaskModule.forRoot()];
4391
+ const COMPONENT$a = [AXInputMaskComponent];
4392
+ const MODULES$a = [CommonModule, NgxMaskModule.forRoot()];
4142
4393
  class AXInputMaskModule {
4143
4394
  }
4144
4395
  AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4145
- AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$3.NgxMaskModule], exports: [AXInputMaskComponent] });
4146
- AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$8]] });
4396
+ AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$2.NgxMaskModule], exports: [AXInputMaskComponent] });
4397
+ AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$a]] });
4147
4398
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, decorators: [{
4148
4399
  type: NgModule,
4149
4400
  args: [{
4150
- declarations: [...COMPONENT$8],
4151
- imports: [...MODULES$8],
4152
- exports: [...COMPONENT$8],
4401
+ declarations: [...COMPONENT$a],
4402
+ imports: [...MODULES$a],
4403
+ exports: [...COMPONENT$a],
4153
4404
  providers: [],
4154
4405
  }]
4155
4406
  }] });
@@ -4171,19 +4422,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4171
4422
  }]
4172
4423
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4173
4424
 
4174
- const COMPONENT$7 = [AXLabelComponent];
4175
- const MODULES$7 = [CommonModule];
4425
+ const COMPONENT$9 = [AXLabelComponent];
4426
+ const MODULES$9 = [CommonModule];
4176
4427
  class AXLabelModule {
4177
4428
  }
4178
4429
  AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4179
4430
  AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
4180
- AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$7]] });
4431
+ AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$9]] });
4181
4432
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, decorators: [{
4182
4433
  type: NgModule,
4183
4434
  args: [{
4184
- declarations: [...COMPONENT$7],
4185
- imports: [...MODULES$7],
4186
- exports: [...COMPONENT$7],
4435
+ declarations: [...COMPONENT$9],
4436
+ imports: [...MODULES$9],
4437
+ exports: [...COMPONENT$9],
4187
4438
  providers: [],
4188
4439
  }]
4189
4440
  }] });
@@ -4229,7 +4480,7 @@ class AXNumberBoxComponent extends AXBaseTextBoxMixin {
4229
4480
  this._maxValue = Number.MAX_VALUE;
4230
4481
  this.displayTextChange = new EventEmitter();
4231
4482
  }
4232
- get hostClass() {
4483
+ get __hostClass() {
4233
4484
  return `${this.cssClass} ax-${this.size}`;
4234
4485
  }
4235
4486
  /**
@@ -4418,8 +4669,8 @@ class AXNumberBoxComponent extends AXBaseTextBoxMixin {
4418
4669
  this._emitOnFocusEvent(e);
4419
4670
  }
4420
4671
  }
4421
- AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.MaskApplierService }], target: i0.ɵɵFactoryTarget.Component });
4422
- AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", name: "name", separator: "separator", thousandSeparator: "thousandSeparator", step: "step", scale: "scale", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", displayTextChange: "displayTextChange" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-number-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" [attr.pattern]=\"'[\\d\\.]*'\" [attr.placeholder]=\"placeholder\" [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_handleOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\"\r\n autocomplete=\"off\">\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <i class=\"ax-icon-x icon\"></i>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4672
+ AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.MaskApplierService }], target: i0.ɵɵFactoryTarget.Component });
4673
+ AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", name: "name", separator: "separator", thousandSeparator: "thousandSeparator", step: "step", scale: "scale", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", displayTextChange: "displayTextChange" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-number-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" [attr.pattern]=\"'[\\d\\.]*'\" [attr.placeholder]=\"placeholder\" [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_handleOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\"\r\n autocomplete=\"off\">\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <i class=\"ax-icon-x icon\"></i>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4423
4674
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
4424
4675
  type: Component,
4425
4676
  args: [{
@@ -4444,7 +4695,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4444
4695
  encapsulation: ViewEncapsulation.None,
4445
4696
  host: { class: 'ax-number-box ax-editor-container' },
4446
4697
  }]
4447
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.MaskApplierService }]; }, propDecorators: { hostClass: [{
4698
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$2.MaskApplierService }]; }, propDecorators: { __hostClass: [{
4448
4699
  type: HostBinding,
4449
4700
  args: ['class']
4450
4701
  }], separator: [{
@@ -4469,8 +4720,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4469
4720
  type: Input
4470
4721
  }] } });
4471
4722
 
4472
- const COMPONENT$6 = [AXNumberBoxComponent];
4473
- const MODULES$6 = [
4723
+ const COMPONENT$8 = [AXNumberBoxComponent];
4724
+ const MODULES$8 = [
4474
4725
  CommonModule,
4475
4726
  FormsModule,
4476
4727
  AXButtonModule,
@@ -4481,146 +4732,107 @@ class AXNumberBoxModule {
4481
4732
  AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4482
4733
  AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
4483
4734
  FormsModule,
4484
- AXButtonModule, i1$3.NgxMaskModule], exports: [AXNumberBoxComponent] });
4485
- AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$6]] });
4735
+ AXButtonModule, i1$2.NgxMaskModule], exports: [AXNumberBoxComponent] });
4736
+ AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$8]] });
4486
4737
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, decorators: [{
4487
4738
  type: NgModule,
4488
4739
  args: [{
4489
- declarations: [...COMPONENT$6],
4490
- imports: [...MODULES$6],
4491
- exports: [...COMPONENT$6],
4740
+ declarations: [...COMPONENT$8],
4741
+ imports: [...MODULES$8],
4742
+ exports: [...COMPONENT$8],
4492
4743
  providers: [],
4493
4744
  }]
4494
4745
  }] });
4495
4746
 
4496
- class AXPopoverComponent {
4497
- constructor(overlayService, zone, cdr) {
4498
- this.overlayService = overlayService;
4499
- this.zone = zone;
4500
- this.cdr = cdr;
4501
- //
4502
- this.openMode = 'manual';
4503
- //
4504
- this.closeMode = 'clickout';
4505
- //
4506
- this._visible = false;
4507
- }
4508
- get visible() {
4509
- return this._visible;
4510
- }
4511
- set visible(v) {
4512
- if (v !== this._visible) {
4513
- if (v) {
4514
- this.internalShow();
4515
- }
4516
- else {
4517
- this.internalHide();
4518
- }
4519
- this._visible = v;
4520
- this.cdr.detectChanges();
4521
- }
4522
- }
4523
- //
4524
- toggle() {
4525
- this.visible = !this.visible;
4526
- }
4527
- close() {
4528
- this.zone.run(() => {
4529
- this.visible = false;
4530
- });
4531
- }
4532
- open() {
4533
- this.zone.run(() => {
4534
- this.visible = true;
4535
- });
4747
+ /**
4748
+ * The Textbox is a component which detects user interaction and triggers a corresponding event
4749
+ *
4750
+ * @category Components
4751
+ */
4752
+ class AXPasswordBoxComponent extends AXBaseTextBoxMixin {
4753
+ /**
4754
+ * @ignore
4755
+ */
4756
+ constructor(elementRef, cdr) {
4757
+ super(elementRef, cdr);
4758
+ this._type = 'password';
4759
+ this._icon = 'ax-ic-eye';
4760
+ /**
4761
+ * A flag for showing or hiding password button.
4762
+ */
4763
+ this.showToggleButton = true;
4536
4764
  }
4537
- internalShow() {
4538
- if (this.isOpen) {
4539
- return;
4540
- }
4541
- this.overlay = this.overlayService.show(this.template, {}, {
4542
- closeOnClickOutside: this.closeMode === 'clickout',
4543
- targetElement: this.targetEl,
4544
- hasBackdrop: this.closeMode === 'clickout',
4545
- position: this.position,
4546
- onBackdropClick: () => {
4547
- this._visible = false;
4548
- }
4549
- });
4765
+ get hostClass() {
4766
+ return `${this.cssClass} ax-${this.size}`;
4550
4767
  }
4551
- internalHide() {
4552
- if (this.overlay) {
4553
- this.overlay.dispose();
4768
+ toggleType() {
4769
+ if (this._type === 'password') {
4770
+ this._type = 'text';
4771
+ this._icon = 'ax-ic-eye-off';
4554
4772
  }
4555
- }
4556
- ngAfterViewInit() {
4557
- setTimeout(() => {
4558
- this.targetEl = typeof this.target === 'string' ? document.querySelector(this.target) : this.target;
4559
- //
4560
- if (this.closeMode === 'mouseout') {
4561
- this.targetEl.addEventListener('mouseout', this.close.bind(this));
4562
- }
4563
- if (this.openMode === 'hover' && this.targetEl) {
4564
- this.targetEl.addEventListener('mouseover', this.open.bind(this));
4565
- }
4566
- //
4567
- if (this.openMode === 'click' && this.targetEl) {
4568
- this.targetEl.addEventListener('click', this.open.bind(this));
4569
- }
4570
- }, 100);
4571
- }
4572
- ngOnDestroy() {
4573
- if (this.openMode === 'click' && this.targetEl) {
4574
- this.targetEl.removeEventListener('mouseover', this.open.bind(this));
4575
- this.targetEl.removeEventListener('click', this.open.bind(this));
4576
- this.targetEl.removeEventListener('mouseout', this.open.bind(this));
4773
+ else {
4774
+ this._type = 'password';
4775
+ this._icon = 'ax-ic-eye';
4577
4776
  }
4578
4777
  }
4579
- get isOpen() {
4580
- return this.visible;
4581
- }
4582
4778
  }
4583
- AXPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverComponent, deps: [{ token: AXOverlayService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4584
- AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPopoverComponent, selector: "ax-popover", inputs: { target: "target", position: "position", openMode: "openMode", closeMode: "closeMode", visible: "visible" }, viewQueries: [{ propertyName: "template", first: true, predicate: ["tpl"], descendants: true }], ngImport: i0, template: "<ng-template #tpl>\r\n <div class=\"ax-popover-container ax-animate-fade-in-down\">\r\n <ng-content></ng-content>\r\n </div>\r\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4585
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverComponent, decorators: [{
4779
+ AXPasswordBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4780
+ AXPasswordBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPasswordBoxComponent, selector: "ax-password-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", value: "value", name: "name", showToggleButton: "showToggleButton" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-password-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [type]=\"_type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" [attr.autocomplete]=\"autoComplete ? 'on': 'off'\">\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"clear()\" [tabIndex]=\"-1\" *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n </ax-prefix>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"toggleType()\" [tabIndex]=\"-1\" *ngIf=\"showToggleButton\">\r\n <ax-icon [icon]=\"_icon\"></ax-icon>\r\n</ax-button>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4781
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxComponent, decorators: [{
4586
4782
  type: Component,
4587
4783
  args: [{
4588
- selector: 'ax-popover',
4589
- templateUrl: './popover.component.html',
4784
+ selector: 'ax-password-box',
4785
+ templateUrl: 'password-box.component.html',
4786
+ inputs: [
4787
+ 'disabled',
4788
+ 'readonly',
4789
+ 'tabIndex',
4790
+ 'cssClass',
4791
+ 'size',
4792
+ ...TEXTBOX_INPUTS,
4793
+ ],
4794
+ outputs: [
4795
+ 'valueChange',
4796
+ 'onValueChanged',
4797
+ 'onBlur',
4798
+ 'onFocus',
4799
+ ...TEXTBOX_OUTPUT,
4800
+ ],
4590
4801
  encapsulation: ViewEncapsulation.None,
4591
4802
  changeDetection: ChangeDetectionStrategy.OnPush,
4803
+ host: { class: 'ax-password-box ax-editor-container' },
4592
4804
  }]
4593
- }], ctorParameters: function () { return [{ type: AXOverlayService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { template: [{
4594
- type: ViewChild,
4595
- args: ['tpl']
4596
- }], target: [{
4597
- type: Input,
4598
- args: ['target']
4599
- }], position: [{
4600
- type: Input,
4601
- args: ['position']
4602
- }], openMode: [{
4603
- type: Input,
4604
- args: ['openMode']
4605
- }], closeMode: [{
4606
- type: Input,
4607
- args: ['closeMode']
4608
- }], visible: [{
4805
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
4806
+ type: HostBinding,
4807
+ args: ['class']
4808
+ }], showToggleButton: [{
4609
4809
  type: Input
4610
4810
  }] } });
4611
4811
 
4612
- class AXPopoverModule {
4812
+ const COMPONENT$7 = [AXPasswordBoxComponent];
4813
+ const MODULES$7 = [
4814
+ CommonModule,
4815
+ FormsModule,
4816
+ AXButtonModule,
4817
+ AXEditorDecoratorModule,
4818
+ AXIconModule
4819
+ ];
4820
+ class AXPasswordBoxModule {
4613
4821
  }
4614
- AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4615
- AXPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
4616
- AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
4617
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, decorators: [{
4822
+ AXPasswordBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4823
+ AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, declarations: [AXPasswordBoxComponent], imports: [CommonModule,
4824
+ FormsModule,
4825
+ AXButtonModule,
4826
+ AXEditorDecoratorModule,
4827
+ AXIconModule], exports: [AXPasswordBoxComponent] });
4828
+ AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
4829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
4618
4830
  type: NgModule,
4619
4831
  args: [{
4620
- declarations: [AXPopoverComponent],
4621
- imports: [CommonModule],
4622
- exports: [AXPopoverComponent],
4623
- providers: []
4832
+ declarations: [...COMPONENT$7],
4833
+ imports: [...MODULES$7],
4834
+ exports: [...COMPONENT$7],
4835
+ providers: [],
4624
4836
  }]
4625
4837
  }] });
4626
4838
 
@@ -4697,7 +4909,7 @@ class AXPopupComponent extends AXBaseComponentMixin {
4697
4909
  onFullScreen() { }
4698
4910
  }
4699
4911
  AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Component });
4700
- AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-popup ax-{{size}}\" tabindex=\"0\" cdkDrag>\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n <footer *ngIf=\"_footerPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_footerPortal\"></ng-template>\r\n </footer>\r\n </div>\r\n</div>", directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4912
+ AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-popup ax-{{size}}\" tabindex=\"0\" cdkDrag>\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n <footer *ngIf=\"_footerPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_footerPortal\"></ng-template>\r\n </footer>\r\n </div>\r\n</div>", directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4701
4913
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupComponent, decorators: [{
4702
4914
  type: Component,
4703
4915
  args: [{
@@ -4800,20 +5012,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4800
5012
  type: Injectable
4801
5013
  }], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
4802
5014
 
4803
- const COMPONENT$5 = [AXPopupComponent];
4804
- const MODULES$5 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule];
5015
+ const COMPONENT$6 = [AXPopupComponent];
5016
+ const MODULES$6 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule];
4805
5017
  class AXPopupModule {
4806
5018
  }
4807
5019
  AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4808
5020
  AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule], exports: [AXPopupComponent] });
4809
- AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, providers: [AXPopupService], imports: [[...MODULES$5]] });
5021
+ AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, providers: [AXPopupService], imports: [[...MODULES$6]] });
4810
5022
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, decorators: [{
5023
+ type: NgModule,
5024
+ args: [{
5025
+ declarations: [...COMPONENT$6],
5026
+ imports: [...MODULES$6],
5027
+ exports: [...COMPONENT$6],
5028
+ providers: [AXPopupService],
5029
+ }]
5030
+ }] });
5031
+
5032
+ class AXRangeSliderComponent extends AXBaseComponentMixin {
5033
+ constructor(elementRef, cdr) {
5034
+ super(elementRef, cdr);
5035
+ //TODO: ax-range-slider
5036
+ }
5037
+ }
5038
+ AXRangeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRangeSliderComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5039
+ AXRangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXRangeSliderComponent, selector: "ax-range-slider", host: { classAttribute: "ax-range-slider" }, usesInheritance: true, ngImport: i0, template: "<input type=\"range\" min=\"1\" max=\"100\" value=\"50\" class=\"ax-range-slider-input\">", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRangeSliderComponent, decorators: [{
5041
+ type: Component,
5042
+ args: [{
5043
+ selector: 'ax-range-slider',
5044
+ templateUrl: './range-slider.component.html',
5045
+ changeDetection: ChangeDetectionStrategy.OnPush,
5046
+ encapsulation: ViewEncapsulation.None,
5047
+ host: { class: 'ax-range-slider' }
5048
+ }]
5049
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
5050
+
5051
+ const COMPONENT$5 = [AXRangeSliderComponent];
5052
+ const MODULES$5 = [CommonModule];
5053
+ class AXRangeSliderModule {
5054
+ }
5055
+ AXRangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5056
+ AXRangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRangeSliderModule, declarations: [AXRangeSliderComponent], imports: [CommonModule], exports: [AXRangeSliderComponent] });
5057
+ AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$5]] });
5058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRangeSliderModule, decorators: [{
4811
5059
  type: NgModule,
4812
5060
  args: [{
4813
5061
  declarations: [...COMPONENT$5],
4814
5062
  imports: [...MODULES$5],
4815
5063
  exports: [...COMPONENT$5],
4816
- providers: [AXPopupService],
5064
+ providers: [],
4817
5065
  }]
4818
5066
  }] });
4819
5067
 
@@ -4866,6 +5114,10 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
4866
5114
  this.unselectItems(item);
4867
5115
  e.stopPropagation();
4868
5116
  }
5117
+ _handleBadgeRemove(e, item) {
5118
+ this.unselectItems(item);
5119
+ e.stopPropagation();
5120
+ }
4869
5121
  _handleKeydown(e) {
4870
5122
  if (!(this._getHostElement() == document.activeElement ||
4871
5123
  this._getHostElement().contains(document.activeElement) ||
@@ -4981,7 +5233,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
4981
5233
  }
4982
5234
  }
4983
5235
  AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
4984
- AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", fitParent: "fitParent", value: "value", items: "items", multiple: "multiple", allowNull: "allowNull", valueField: "valueField", textField: "textField" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { listeners: { "document:keydown": "_handleKeydown($event)" }, classAttribute: "ax-select-box" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: AXDropdownComponent, descendants: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-drop-down (onOpened)=\"_emitOnOpenedEvent()\" (onClosed)=\"_emitOnClosedEvent()\">\r\n <ng-container input>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <div class=\"ax-dropdown-chips\">\r\n <div *ngFor=\"let item of selectedItems\" [ngClass]=\"{'ax-badge ax-primary ax-m-1': multiple,'ax-badge':!multiple}\" [title]=\"_getItemDisplayTextTemplte(item)\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <i class=\"ax-ic ax-ic-close ax-text-base\" (click)=\"_handleOnRemoveItemClick($event,item)\" *ngIf=\" (readonly!=true) && multiple && disabled!=true && (allowNull==true || (selectedItems.length> 1))\">\r\n </i>\r\n\r\n </div>\r\n </div>\r\n <!-- <div class=\"ax-selectbox-input\">\r\n <input type=\"text\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleKeydown($event)\">\r\n </div> -->\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"ax-list ax-list-container\">\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</ax-drop-down>", components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["disabled", "readonly", "tabIndex", "size", "fitParent"], outputs: ["onOpened", "onClosed"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5236
+ AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", fitParent: "fitParent", value: "value", items: "items", multiple: "multiple", allowNull: "allowNull", valueField: "valueField", textField: "textField" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { listeners: { "document:keydown": "_handleKeydown($event)" }, classAttribute: "ax-select-box" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: AXDropdownComponent, descendants: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-drop-down (onOpened)=\"_emitOnOpenedEvent()\" (onClosed)=\"_emitOnClosedEvent()\">\r\n <ng-container input>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\" (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n <!-- <div class=\"ax-selectbox-input\">\r\n <input type=\"text\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleKeydown($event)\">\r\n </div> -->\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </div>\r\n </ng-container>\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"!multiple; then singleTemplate; else multipleTemplate\"></ng-container>\r\n <ng-template #singleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ax-check-box [value]=\"isItemSelected(item)\">\r\n </ax-check-box>\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ax-drop-down>", components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["disabled", "tabIndex", "size", "fitParent"] }, { type: AXBadgeComponent, selector: "ax-badge", inputs: ["text", "color"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "readonly", "tabIndex", "size", "value", "indeterminate"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4985
5237
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
4986
5238
  type: Component,
4987
5239
  args: [{
@@ -5007,12 +5259,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5007
5259
  class AXSelectBoxModule {
5008
5260
  }
5009
5261
  AXSelectBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5010
- AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule, AXDropdownModule, FormsModule], exports: [AXSelectBoxComponent] });
5011
- AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxModule, providers: [], imports: [[CommonModule, AXDropdownModule, FormsModule]] });
5262
+ AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule, AXDropdownModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule], exports: [AXSelectBoxComponent] });
5263
+ AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxModule, providers: [], imports: [[CommonModule, AXDropdownModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule]] });
5012
5264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxModule, decorators: [{
5013
5265
  type: NgModule,
5014
5266
  args: [{
5015
- imports: [CommonModule, AXDropdownModule, FormsModule],
5267
+ imports: [CommonModule, AXDropdownModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule],
5016
5268
  exports: [AXSelectBoxComponent],
5017
5269
  declarations: [AXSelectBoxComponent],
5018
5270
  providers: [],
@@ -5035,7 +5287,7 @@ class AXSelectionListComponent extends AXBaseSelectionValueMixin {
5035
5287
  }
5036
5288
  }
5037
5289
  AXSelectionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectionListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5038
- AXSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", valueField: "valueField", textField: "textField", multiple: "multiple", items: "items", selectionMode: "selectionMode", direction: "direction" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-selection-list ax-{{direction}}\">\r\n <ng-container *ngIf=\"multiple; then checkboxList; else radioButtonList\"></ng-container>\r\n <ng-template #checkboxList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-checkbox-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"'ax-checkbox'+i\" class=\"ax-checkbox\" type=\"checkbox\"\r\n (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"'ax-checkbox'+i\" class=\"ax-font-medium ax-text-gray-700\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-gray-500\"> {{item.hint}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #radioButtonList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-radio-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"'ax-radio-'+i\" class=\"ax-radio\" type=\"radio\" [attr.name]=\"'g'+id\"\r\n (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"'ax-radio-'+i\" class=\"ax-font-medium ax-text-gray-700\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-gray-500\"> {{item.hint}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-content select=\"ax-validation-rule\">\r\n </ng-content>\r\n</div>", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5290
+ AXSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", valueField: "valueField", textField: "textField", multiple: "multiple", items: "items", selectionMode: "selectionMode", cssClass: "cssClass", direction: "direction" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-selection-list ax-{{direction}}\">\r\n <ng-container *ngIf=\"multiple; then checkboxList; else radioButtonList\"></ng-container>\r\n <ng-template #checkboxList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-checkbox-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id+'-'+i\" class=\"ax-checkbox\" type=\"checkbox\" (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"id+'-'+i\" class=\"ax-font-medium ax-text-light-700\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-light-500\"> {{item.hint ? item.hint : item[hintField]}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #radioButtonList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-radio-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id+'-'+i\" class=\"ax-radio\" type=\"radio\" [attr.name]=\"id\" (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"id+'-'+i\" class=\"ax-font-medium ax-text-light-700\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-light-500\"> {{item.hint ? item.hint : item[hintField]}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-content select=\"ax-validation-rule\">\r\n </ng-content>\r\n</div>", directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5039
5291
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectionListComponent, decorators: [{
5040
5292
  type: Component,
5041
5293
  args: [{
@@ -5052,6 +5304,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5052
5304
  'multiple',
5053
5305
  'items',
5054
5306
  'selectionMode',
5307
+ 'cssClass'
5055
5308
  ],
5056
5309
  outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'],
5057
5310
  encapsulation: ViewEncapsulation.None,
@@ -5123,7 +5376,7 @@ class AXSwitchComponent extends AXBaseValueComponentMixin {
5123
5376
  }
5124
5377
  }
5125
5378
  AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5126
- AXSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSwitchComponent, selector: "ax-switch", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", cssClass: "cssClass", cssStyle: "cssStyle", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax-switch {{cssClass}}\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [attr.style]=\"cssStyle\" (click)=\"handleOnClickEvent($event)\">\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <span class=\"ax-switch-slider\"></span>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", directives: [{ type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5379
+ AXSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSwitchComponent, selector: "ax-switch", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", cssClass: "cssClass", cssStyle: "cssStyle", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax-switch {{cssClass}} ax-{{size}}\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [attr.style]=\"cssStyle\" (click)=\"handleOnClickEvent($event)\">\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <span class=\"ax-switch-slider\"></span>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", directives: [{ type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5127
5380
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSwitchComponent, decorators: [{
5128
5381
  type: Component,
5129
5382
  args: [{
@@ -5156,7 +5409,8 @@ class AXTabStripComponent extends AXSizableComponentMixin {
5156
5409
  constructor(elementRef, cdr) {
5157
5410
  super(elementRef, cdr);
5158
5411
  this.mode = 'default';
5159
- this.fullWidth = false;
5412
+ this.direction = "horizontal";
5413
+ this.fitParent = false;
5160
5414
  this.minWidth = false;
5161
5415
  this.onSelectionChanged = new EventEmitter();
5162
5416
  }
@@ -5184,9 +5438,12 @@ class AXTabStripComponent extends AXSizableComponentMixin {
5184
5438
  htmlElement: this._getHostElement(),
5185
5439
  });
5186
5440
  }
5441
+ get __hostClass() {
5442
+ return [`ax-tabs`, `ax-tabs-${this.mode ? this.mode : 'default'}`, `ax-tabs-${this.direction}`, `${this.fitParent ? 'ax-tabs-fit' : ''}`].join(' ');
5443
+ }
5187
5444
  }
5188
5445
  AXTabStripComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabStripComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5189
- AXTabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabStripComponent, selector: "ax-tab-strip", inputs: { size: "size", cssClass: "cssClass", items: "items", mode: "mode", fullWidth: "fullWidth", minWidth: "minWidth" }, outputs: { onSelectionChanged: "onSelectionChanged" }, host: { classAttribute: "ax-tab-strip" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-tabs ax-tabs-{{mode}} {{cssClass}}\" [class.ax-tabs-full]=\"fullWidth\"\r\n [class.ax-tabs-min-width]=\"minWidth\">\r\n <div class=\"ax-tab-item-container\">\r\n <ng-container *ngFor=\"let item of items;let i = index\">\r\n <div class=\"ax-tab-item\" [class.ax-state-active]=\"item.active\" [class.ax-state-disabled]=\"item.disabled\"\r\n *ngIf=\"item.visible!=false\" (click)=\"_handleClick(item,i)\">\r\n\r\n <span *ngIf=\"item.iconClassBefore || item.iconClass\"><i\r\n class=\"ax-icon {{item.iconClassBefore || item.iconClass}}\"></i>\r\n <ng-container *ngIf=\"item.text\">&nbsp;&nbsp;</ng-container>\r\n </span>\r\n <span *ngIf=\"item.text\">{{item.text}}</span>\r\n <span *ngIf=\"item.iconClassAfter\">\r\n <ng-container *ngIf=\"item.text\">&nbsp;&nbsp;</ng-container><i\r\n class=\"ax-icon {{item.iconClassAfter}}\"></i>\r\n </span>\r\n <!-- <span *ngIf=\"badge\" class=\"ax-badge\">\r\n <ng-container *ngIf=\"text\">&nbsp;&nbsp;</ng-container>{{badge}}\r\n </span> -->\r\n </div>\r\n </ng-container>\r\n </div>\r\n</div>", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5446
+ AXTabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabStripComponent, selector: "ax-tab-strip", inputs: { size: "size", items: "items", mode: "mode", direction: "direction", fitParent: "fitParent", minWidth: "minWidth" }, outputs: { onSelectionChanged: "onSelectionChanged" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-tab-strip" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngFor=\"let item of items;let i = index\">\r\n <div class=\"ax-tab-item\" [class.ax-state-active]=\"item.active\" [class.ax-state-disabled]=\"item.disabled\" *ngIf=\"item.visible!=false\" (click)=\"_handleClick(item,i)\">\r\n <ng-content select=\"ax-prefix\"></ng-content>\r\n <span *ngIf=\"item.text\">{{item.text}}</span>\r\n <ng-content select=\"ax-suffix\"></ng-content>\r\n </div>\r\n</ng-container>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5190
5447
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabStripComponent, decorators: [{
5191
5448
  type: Component,
5192
5449
  args: [{
@@ -5194,19 +5451,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5194
5451
  templateUrl: './tab-strip.component.html',
5195
5452
  changeDetection: ChangeDetectionStrategy.OnPush,
5196
5453
  encapsulation: ViewEncapsulation.None,
5197
- inputs: ['size', 'cssClass'],
5454
+ inputs: ['size'],
5198
5455
  host: { class: 'ax-tab-strip' },
5199
5456
  }]
5200
5457
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { items: [{
5201
5458
  type: Input
5202
5459
  }], mode: [{
5203
5460
  type: Input
5204
- }], fullWidth: [{
5461
+ }], direction: [{
5462
+ type: Input
5463
+ }], fitParent: [{
5205
5464
  type: Input
5206
5465
  }], minWidth: [{
5207
5466
  type: Input
5208
5467
  }], onSelectionChanged: [{
5209
5468
  type: Output
5469
+ }], __hostClass: [{
5470
+ type: HostBinding,
5471
+ args: ['class']
5210
5472
  }] } });
5211
5473
 
5212
5474
  class AXTabComponent extends AXBaseComponentMixin {
@@ -5233,7 +5495,7 @@ AXTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
5233
5495
  <ng-content>
5234
5496
  </ng-content>
5235
5497
  </div>
5236
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5498
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5237
5499
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabComponent, decorators: [{
5238
5500
  type: Component,
5239
5501
  args: [{
@@ -5264,7 +5526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5264
5526
  type: Input
5265
5527
  }] } });
5266
5528
 
5267
- class AXTabViewComponent extends AXTabStripComponent {
5529
+ class AXTabViewComponent extends AXBaseComponent {
5268
5530
  constructor(elementRef, cdr) {
5269
5531
  super(elementRef, cdr);
5270
5532
  this._tabs = [];
@@ -5289,7 +5551,7 @@ class AXTabViewComponent extends AXTabStripComponent {
5289
5551
  }
5290
5552
  }
5291
5553
  AXTabViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabViewComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5292
- AXTabViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabViewComponent, selector: "ax-tab-view", inputs: { size: "size" }, host: { classAttribute: "ax-tab-view" }, queries: [{ propertyName: "_contentTabs", predicate: AXTabComponent }], usesInheritance: true, ngImport: i0, template: "<ax-tab-strip [items]=\"_tabs\" [fullWidth]=\"fullWidth\" [mode]=\"mode\" [minWidth]=\"minWidth\" [size]=\"size\"\r\n (onSelectionChanged)=\"_handleSelectionChanged($event)\">\r\n\r\n</ax-tab-strip>\r\n<div class=\"ax-tab-view-container\">\r\n <ng-content select=\"ax-tab\">\r\n </ng-content>\r\n</div>", components: [{ type: AXTabStripComponent, selector: "ax-tab-strip", inputs: ["size", "cssClass", "items", "mode", "fullWidth", "minWidth"], outputs: ["onSelectionChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5554
+ AXTabViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabViewComponent, selector: "ax-tab-view", inputs: { size: "size" }, host: { classAttribute: "ax-tab-view" }, queries: [{ propertyName: "_contentTabs", predicate: AXTabComponent }], usesInheritance: true, ngImport: i0, template: "<!-- <ax-tab-strip [items]=\"_tabs\" (onSelectionChanged)=\"_handleSelectionChanged($event)\">\r\n\r\n</ax-tab-strip> -->\r\n<div class=\"ax-tab-view-container\">\r\n <ng-content select=\"ax-tab\">\r\n </ng-content>\r\n</div>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5293
5555
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabViewComponent, decorators: [{
5294
5556
  type: Component,
5295
5557
  args: [{
@@ -5305,15 +5567,183 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5305
5567
  args: [AXTabComponent]
5306
5568
  }] } });
5307
5569
 
5570
+ class AXTabItemComponent extends AXBaseClickableMixin {
5571
+ constructor(elementRef, cdr) {
5572
+ super(elementRef, cdr);
5573
+ this.width = false;
5574
+ this.activeChange = new EventEmitter();
5575
+ this._active = false;
5576
+ }
5577
+ get active() {
5578
+ return this._active;
5579
+ }
5580
+ set active(v) {
5581
+ this._active = v;
5582
+ this.activeChange.emit(v);
5583
+ v ? this._getHostElement().classList.add('ax-state-active') : this._getHostElement().classList.remove('ax-state-active');
5584
+ }
5585
+ // @HostBinding('class')
5586
+ // private get __hostClass(): string {
5587
+ // debugger;
5588
+ // const classes: any = {
5589
+ // 'ax-state-active': this.active
5590
+ // }
5591
+ // return Object.entries(classes).filter(c => c[1]).map(c => c[0]).join(' ');
5592
+ // }
5593
+ __hostClick(e) {
5594
+ this.onClick.emit({
5595
+ component: this,
5596
+ htmlElement: this._getHostElement(),
5597
+ nativeEvent: e
5598
+ });
5599
+ }
5600
+ }
5601
+ AXTabItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5602
+ AXTabItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabItemComponent, selector: "ax-tab-item", inputs: { text: "text", width: "width", active: "active" }, outputs: { activeChange: "activeChange" }, host: { listeners: { "click": "__hostClick($event)" } }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: `
5603
+ <ng-content select="ax-prefix"></ng-content>
5604
+ <span>{{text}}</span>
5605
+ <ng-content select="ax-suffix"></ng-content>
5606
+ <ng-template>
5607
+ <ng-content>
5608
+ </ng-content>
5609
+ </ng-template>
5610
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5611
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabItemComponent, decorators: [{
5612
+ type: Component,
5613
+ args: [{
5614
+ selector: 'ax-tab-item',
5615
+ template: `
5616
+ <ng-content select="ax-prefix"></ng-content>
5617
+ <span>{{text}}</span>
5618
+ <ng-content select="ax-suffix"></ng-content>
5619
+ <ng-template>
5620
+ <ng-content>
5621
+ </ng-content>
5622
+ </ng-template>
5623
+ `,
5624
+ changeDetection: ChangeDetectionStrategy.OnPush,
5625
+ encapsulation: ViewEncapsulation.None,
5626
+ }]
5627
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
5628
+ type: Input
5629
+ }], width: [{
5630
+ type: Input
5631
+ }], template: [{
5632
+ type: ViewChild,
5633
+ args: [TemplateRef]
5634
+ }], activeChange: [{
5635
+ type: Output
5636
+ }], active: [{
5637
+ type: Input
5638
+ }], __hostClick: [{
5639
+ type: HostListener,
5640
+ args: ['click', ['$event']]
5641
+ }] } });
5642
+
5643
+ class AXTabsComponent extends AXBaseComponent {
5644
+ constructor(elementRef, cdr) {
5645
+ super(elementRef, cdr);
5646
+ this.mode = 'default';
5647
+ this.direction = "horizontal";
5648
+ this.fitParent = false;
5649
+ this.minWidth = false;
5650
+ }
5651
+ onViewInit() {
5652
+ this._handleSelectionChanged(this._contentTabs.get(0));
5653
+ this._contentTabs.forEach(c => {
5654
+ c.onClick.subscribe(t => {
5655
+ this._handleSelectionChanged(c);
5656
+ });
5657
+ });
5658
+ }
5659
+ _handleSelectionChanged(e) {
5660
+ this._contentTabs.filter(c => c != e).forEach(c => { c.active = false; });
5661
+ e.active = true;
5662
+ this.content.portal = e.template;
5663
+ this._cdr.markForCheck();
5664
+ }
5665
+ get __hostClass() {
5666
+ return [`ax-tabs-${this.mode ? this.mode : 'default'}`, `ax-tabs-${this.direction}`, `${this.fitParent ? 'ax-tabs-fit' : ''}`].join(' ');
5667
+ }
5668
+ }
5669
+ AXTabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5670
+ AXTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabsComponent, selector: "ax-tabs", inputs: { mode: "mode", direction: "direction", fitParent: "fitParent", minWidth: "minWidth", content: "content" }, host: { properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "_contentTabs", predicate: AXTabItemComponent }], usesInheritance: true, ngImport: i0, template: `
5671
+ <div class="ax-items-wrapper">
5672
+ <ng-content select="ax-tab-item">
5673
+ </ng-content>
5674
+ </div>
5675
+ <!-- <div [axTabOutlet]="_activeTabView">
5676
+
5677
+ </div> -->
5678
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5679
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsComponent, decorators: [{
5680
+ type: Component,
5681
+ args: [{
5682
+ selector: 'ax-tabs',
5683
+ template: `
5684
+ <div class="ax-items-wrapper">
5685
+ <ng-content select="ax-tab-item">
5686
+ </ng-content>
5687
+ </div>
5688
+ <!-- <div [axTabOutlet]="_activeTabView">
5689
+
5690
+ </div> -->
5691
+ `,
5692
+ changeDetection: ChangeDetectionStrategy.OnPush,
5693
+ encapsulation: ViewEncapsulation.None,
5694
+ }]
5695
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentTabs: [{
5696
+ type: ContentChildren,
5697
+ args: [AXTabItemComponent]
5698
+ }], mode: [{
5699
+ type: Input
5700
+ }], direction: [{
5701
+ type: Input
5702
+ }], fitParent: [{
5703
+ type: Input
5704
+ }], minWidth: [{
5705
+ type: Input
5706
+ }], content: [{
5707
+ type: Input
5708
+ }], __hostClass: [{
5709
+ type: HostBinding,
5710
+ args: ['class']
5711
+ }] } });
5712
+
5308
5713
  class AXTabStripChangedEvent extends AXEvent {
5309
5714
  }
5310
5715
 
5311
- const COMPONENT$3 = [AXTabViewComponent, AXTabStripComponent, AXTabComponent];
5312
- const MODULES$3 = [CommonModule];
5716
+ class AXTabContentDirective {
5717
+ constructor(_viewContainerRef) {
5718
+ this._viewContainerRef = _viewContainerRef;
5719
+ }
5720
+ get portal() {
5721
+ return this._portal;
5722
+ }
5723
+ set portal(v) {
5724
+ //debugger;
5725
+ this._portal = v;
5726
+ this._viewContainerRef.clear();
5727
+ const viewRef = this._viewContainerRef.createEmbeddedView(v, null, 0);
5728
+ }
5729
+ }
5730
+ AXTabContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabContentDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
5731
+ AXTabContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AXTabContentDirective, selector: "[axTabContent]", inputs: { portal: ["axTabContent", "portal"] }, exportAs: ["axTabContent"], ngImport: i0 });
5732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabContentDirective, decorators: [{
5733
+ type: Directive,
5734
+ args: [{
5735
+ selector: '[axTabContent]',
5736
+ exportAs: 'axTabContent',
5737
+ inputs: ['portal: axTabContent'],
5738
+ }]
5739
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
5740
+
5741
+ const COMPONENT$3 = [AXTabsComponent, AXTabItemComponent, AXTabContentDirective];
5742
+ const MODULES$3 = [CommonModule, PortalModule, AXEditorDecoratorModule];
5313
5743
  class AXTabsModule {
5314
5744
  }
5315
5745
  AXTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5316
- AXTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsModule, declarations: [AXTabViewComponent, AXTabStripComponent, AXTabComponent], imports: [CommonModule], exports: [AXTabViewComponent, AXTabStripComponent, AXTabComponent] });
5746
+ AXTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsModule, declarations: [AXTabsComponent, AXTabItemComponent, AXTabContentDirective], imports: [CommonModule, PortalModule, AXEditorDecoratorModule], exports: [AXTabsComponent, AXTabItemComponent, AXTabContentDirective] });
5317
5747
  AXTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsModule, providers: [], imports: [[...MODULES$3]] });
5318
5748
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsModule, decorators: [{
5319
5749
  type: NgModule,
@@ -5422,8 +5852,8 @@ class AXTimeBoxComponent extends AXBaseTextBoxMixin {
5422
5852
  this._emitOnFocusEvent(e);
5423
5853
  }
5424
5854
  }
5425
- AXTimeBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.MaskApplierService }], target: i0.ɵɵFactoryTarget.Component });
5426
- AXTimeBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTimeBoxComponent, selector: "ax-time-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", name: "name", minValue: "minValue", maxValue: "maxValue", format: "format", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", displayTextChange: "displayTextChange" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-time-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" [attr.pattern]=\"'[\\d\\.]*'\" [attr.placeholder]=\"placeholder\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <i class=\"ax-icon-x icon\"></i>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5855
+ AXTimeBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.MaskApplierService }], target: i0.ɵɵFactoryTarget.Component });
5856
+ AXTimeBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTimeBoxComponent, selector: "ax-time-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", name: "name", minValue: "minValue", maxValue: "maxValue", format: "format", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", displayTextChange: "displayTextChange" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-time-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" [attr.pattern]=\"'[\\d\\.]*'\" [attr.placeholder]=\"placeholder\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <i class=\"ax-icon-x icon\"></i>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5427
5857
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxComponent, decorators: [{
5428
5858
  type: Component,
5429
5859
  args: [{
@@ -5435,7 +5865,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5435
5865
  encapsulation: ViewEncapsulation.None,
5436
5866
  host: { class: 'ax-time-box ax-editor-container' },
5437
5867
  }]
5438
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.MaskApplierService }]; }, propDecorators: { hostClass: [{
5868
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$2.MaskApplierService }]; }, propDecorators: { hostClass: [{
5439
5869
  type: HostBinding,
5440
5870
  args: ['class']
5441
5871
  }], minValue: [{
@@ -5462,7 +5892,7 @@ class AXTimeBoxModule {
5462
5892
  AXTimeBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5463
5893
  AXTimeBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxModule, declarations: [AXTimeBoxComponent], imports: [CommonModule,
5464
5894
  FormsModule,
5465
- AXButtonModule, i1$3.NgxMaskModule], exports: [AXTimeBoxComponent] });
5895
+ AXButtonModule, i1$2.NgxMaskModule], exports: [AXTimeBoxComponent] });
5466
5896
  AXTimeBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxModule, providers: [], imports: [[...MODULES$2]] });
5467
5897
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxModule, decorators: [{
5468
5898
  type: NgModule,
@@ -5508,7 +5938,7 @@ class AXToastComponent extends AXBaseComponentMixin {
5508
5938
  }
5509
5939
  }
5510
5940
  AXToastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5511
- AXToastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXToastComponent, selector: "ax-toast", host: { classAttribute: "ax-toast" }, usesInheritance: true, ngImport: i0, template: "<!-- <div class=\"ax-toast-header\">\r\n <div class=\"ax-flex ax-items-center\">\r\n <i class=\"{{_icon}} ax-mr-2 ax-icon\"></i>\r\n <div>{{options.title || options.content}}</div>\r\n </div>\r\n <div class=\"ax-flex ax-items-center\" (click)=\"close()\" *ngIf=\"options.closeButton\">\r\n <i class=\"ax-ic ax-ic-clear ax-text-gray-300 ax-cursor-pointer\"></i>\r\n </div>\r\n</div>\r\n<div class=\"ax-ml-8 ax-text-md ax-text-gray-600\" *ngIf=\"options.title && options.content\">\r\n {{options.content}}\r\n</div>\r\n<div class=\"ax-flex ax-mt-4 ax-justify-end\" *ngIf=\"options.buttons && options.buttons.length\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [iconClassBefore]=\"button.iconClass\" (onClick)=\"_handleButtonClick(button)\" [cssClass]=\"button.class\"></ax-button>\r\n <ax-button [text]=\"button.text\" (onClick)=\"_handleButtonClick(button)\"\r\n [cssClass]=\"button.class\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n</div>\r\n<div class=\"ax-toast-progress ax-{{options.type}}\" [style.width.%]='_toastWidth' *ngIf=\"options.timeOut\">\r\n</div> -->\r\n\r\n<div class=\"ax-toast-icon-side\">\r\n <i class=\"ax-toast-icon {{_icon}}\"></i>\r\n</div>\r\n<div class=\"ax-toast-content-side\">\r\n <div class=\"ax-toast-title\">{{options.title}}</div>\r\n <div class=\"ax-toast-content\" *ngIf=\"options.content\">{{options.content}}</div>\r\n</div>\r\n<div class=\"ax-toast-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.closeable\" (click)=\"close()\"></i>\r\n</div>\r\n<div class=\"ax-toast-progress ax-{{options.type}}\" [style.animation-duration.ms]=\"options.timeOut\" *ngIf=\"options.timeOut\">\r\n</div>\r\n\r\n<!-- <div class=\"ax-toast-buttons\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" (onClick)=\"_handleButtonClick(button)\" [cssClass]=\"button.class\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n</div> -->", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5941
+ AXToastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXToastComponent, selector: "ax-toast", host: { classAttribute: "ax-toast" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-toast-icon-side\">\r\n <i class=\"ax-toast-icon {{_icon}}\"></i>\r\n</div>\r\n<div class=\"ax-toast-content-side\">\r\n <div class=\"ax-toast-title\">{{options.title}}</div>\r\n <div class=\"ax-toast-content\" *ngIf=\"options.content\">{{options.content}}</div>\r\n</div>\r\n<div class=\"ax-toast-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.closeable\" (click)=\"close()\"></i>\r\n</div>\r\n<div class=\"ax-toast-progress ax-{{options.type}}\" [style.animation-duration.ms]=\"options.timeOut\" *ngIf=\"options.timeOut\">\r\n</div>", directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5512
5942
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastComponent, decorators: [{
5513
5943
  type: Component,
5514
5944
  args: [{
@@ -5639,12 +6069,12 @@ class AXToastService {
5639
6069
  }
5640
6070
  }
5641
6071
  }
5642
- AXToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
6072
+ AXToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastService, deps: [{ token: i1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
5643
6073
  AXToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastService, providedIn: 'root' });
5644
6074
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastService, decorators: [{
5645
6075
  type: Injectable,
5646
6076
  args: [{ providedIn: 'root' }]
5647
- }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }]; } });
6077
+ }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }]; } });
5648
6078
 
5649
6079
  class AXTooltipComponent extends AXBaseComponentMixin {
5650
6080
  constructor(elementRef, cdr) {
@@ -5749,12 +6179,12 @@ class AXTooltipDirective {
5749
6179
  this.overlayRef.detach();
5750
6180
  }
5751
6181
  }
5752
- AXTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTooltipDirective, deps: [{ token: i1$1.Overlay }, { token: i1$1.OverlayPositionBuilder }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
6182
+ AXTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTooltipDirective, deps: [{ token: i1.Overlay }, { token: i1.OverlayPositionBuilder }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
5753
6183
  AXTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AXTooltipDirective, selector: "[axTooltip]", inputs: { text: ["axTooltip", "text"], position: ["axTooltipPositon", "position"] }, host: { listeners: { "mouseenter": "show()", "mouseout": "hide()" } }, ngImport: i0 });
5754
6184
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTooltipDirective, decorators: [{
5755
6185
  type: Directive,
5756
6186
  args: [{ selector: '[axTooltip]' }]
5757
- }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: i0.ElementRef }]; }, propDecorators: { text: [{
6187
+ }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i1.OverlayPositionBuilder }, { type: i0.ElementRef }]; }, propDecorators: { text: [{
5758
6188
  type: Input,
5759
6189
  args: ['axTooltip']
5760
6190
  }], position: [{
@@ -5803,7 +6233,7 @@ class AXTextBoxComponent extends AXBaseTextBoxMixin {
5803
6233
  }
5804
6234
  }
5805
6235
  AXTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5806
- AXTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTextBoxComponent, selector: "ax-text-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", value: "value", name: "name" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-text-box" }, queries: [{ propertyName: "_contentMask", first: true, predicate: AXInputMaskComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-editor-container\">\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <input class=\"ax-input\" [attr.name]=\"name\" type=\"text\" [mask]=\"_contentMask?.mask\" [prefix]=\"_contentMask?.prefix\" [suffix]=\"_contentMask?.suffix\" [showMaskTyped]=\"_contentMask?.showMaskTyped\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" [attr.autocomplete]=\"autoComplete ? 'on': 'off'\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\" *ngIf=\"value && allowNull && !(disabled || readonly)\" iconClass=\"ax-ic ax-ic-clear\">\r\n </ax-button>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-content select=\"ax-validation-rule\">\r\n </ng-content>\r\n <ng-content select=\"ax-input-mask\">\r\n </ng-content>\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "cssClass", "cssStyle", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i1$3.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6236
+ AXTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTextBoxComponent, selector: "ax-text-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", value: "value", name: "name" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-text-box ax-editor-container" }, queries: [{ propertyName: "_contentMask", first: true, predicate: AXInputMaskComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" type=\"text\" [mask]=\"_contentMask?.mask\" [prefix]=\"_contentMask?.prefix\"\r\n [suffix]=\"_contentMask?.suffix\" [showMaskTyped]=\"_contentMask?.showMaskTyped\" [attr.placeholder]=\"placeholder\"\r\n [attr.maxlength]=\"maxLength\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete ? 'on': 'off'\">\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n </ax-prefix>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$2.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5807
6237
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxComponent, decorators: [{
5808
6238
  type: Component,
5809
6239
  args: [{
@@ -5826,7 +6256,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5826
6256
  ],
5827
6257
  encapsulation: ViewEncapsulation.None,
5828
6258
  changeDetection: ChangeDetectionStrategy.OnPush,
5829
- host: { class: 'ax-text-box' },
6259
+ host: { class: 'ax-text-box ax-editor-container' },
5830
6260
  }]
5831
6261
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentMask: [{
5832
6262
  type: ContentChild,
@@ -5842,12 +6272,14 @@ AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version:
5842
6272
  AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
5843
6273
  FormsModule,
5844
6274
  AXButtonModule,
5845
- AXEditorDecoratorModule, i1$3.NgxMaskModule], exports: [AXTextBoxComponent] });
6275
+ AXEditorDecoratorModule,
6276
+ AXIconModule, i1$2.NgxMaskModule], exports: [AXTextBoxComponent] });
5846
6277
  AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
5847
6278
  CommonModule,
5848
6279
  FormsModule,
5849
6280
  AXButtonModule,
5850
6281
  AXEditorDecoratorModule,
6282
+ AXIconModule,
5851
6283
  NgxMaskModule.forChild()
5852
6284
  ]] });
5853
6285
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, decorators: [{
@@ -5858,6 +6290,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5858
6290
  FormsModule,
5859
6291
  AXButtonModule,
5860
6292
  AXEditorDecoratorModule,
6293
+ AXIconModule,
5861
6294
  NgxMaskModule.forChild()
5862
6295
  ],
5863
6296
  exports: [AXTextBoxComponent],
@@ -6011,5 +6444,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
6011
6444
  * Generated bundle index. Do not edit.
6012
6445
  */
6013
6446
 
6014
- export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDropdownButtonMixin, AXBaseDropdownMenuMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatepickerComponent, AXDatepickerModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownButtonComponent, AXDropdownComponent, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageModule, AXPageResult, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXResponsiveDirective, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSideMenuComponent, AXSideMenuModule, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabComponent, AXTabStripChangedEvent, AXTabStripComponent, AXTabViewComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
6447
+ export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatepickerComponent, AXDatepickerModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownComponent, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXRangeSliderComponent, AXRangeSliderModule, AXResponsiveDirective, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSideMenuComponent, AXSideMenuModule, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabStripComponent, AXTabViewComponent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
6015
6448
  //# sourceMappingURL=acorex-components.js.map