@acorex/components 5.0.7 → 5.0.13

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 (74) hide show
  1. package/bundles/acorex-components.umd.js +1132 -954
  2. package/bundles/acorex-components.umd.js.map +1 -1
  3. package/esm2015/lib/badge/badge.component.js +2 -2
  4. package/esm2015/lib/base/mixin/base-components.class.js +22 -3
  5. package/esm2015/lib/base/mixin/button-mixin.class.js +92 -105
  6. package/esm2015/lib/base/mixin/clickable-mixin.class.js +1 -1
  7. package/esm2015/lib/base/mixin/dropdown-mixin.class.js +63 -9
  8. package/esm2015/lib/base/mixin/interactive-mixin.class.js +4 -4
  9. package/esm2015/lib/base/mixin/mixin.class.js +2 -2
  10. package/esm2015/lib/base/mixin/value-mixin.class.js +9 -4
  11. package/esm2015/lib/button/button-group.component.js +4 -4
  12. package/esm2015/lib/calendar/calendar.class.js +97 -0
  13. package/esm2015/lib/calendar/calendar.component.js +18 -68
  14. package/esm2015/lib/checkbox/checkbox.component.js +29 -11
  15. package/esm2015/lib/datepicker/datepicker.component.js +119 -65
  16. package/esm2015/lib/datepicker/datepicker.module.js +30 -6
  17. package/esm2015/lib/decorators/content.component.js +26 -0
  18. package/esm2015/lib/decorators/decorators.module.js +4 -3
  19. package/esm2015/lib/decorators/index.js +2 -1
  20. package/esm2015/lib/decorators/prefix.component.js +3 -4
  21. package/esm2015/lib/decorators/suffix.component.js +3 -4
  22. package/esm2015/lib/dialog/dialog.component.js +2 -2
  23. package/esm2015/lib/dropdown/dropdown-panel.component.js +7 -4
  24. package/esm2015/lib/dropdown/dropdown.component.js +10 -7
  25. package/esm2015/lib/form/form-hint.component.js +3 -3
  26. package/esm2015/lib/label/label.component.js +4 -4
  27. package/esm2015/lib/page/base-page.class.js +2 -1
  28. package/esm2015/lib/page/page-footer.component.js +3 -7
  29. package/esm2015/lib/popup/popup.component.js +16 -8
  30. package/esm2015/lib/radio/index.js +3 -0
  31. package/esm2015/lib/radio/radio.component.js +22 -0
  32. package/esm2015/lib/radio/radio.module.js +21 -0
  33. package/esm2015/lib/selectbox/selectbox.component.js +2 -2
  34. package/esm2015/lib/selection-list/selection-list.component.js +2 -2
  35. package/esm2015/lib/tabs/tab-content.directive.js +7 -5
  36. package/esm2015/lib/tabs/tab-item.component.js +29 -14
  37. package/esm2015/lib/tabs/tabs.component.js +15 -22
  38. package/esm2015/public-api.js +2 -1
  39. package/fesm2015/acorex-components.js +1051 -881
  40. package/fesm2015/acorex-components.js.map +1 -1
  41. package/lib/base/mixin/base-components.class.d.ts +23 -18
  42. package/lib/base/mixin/button-mixin.class.d.ts +12 -17
  43. package/lib/base/mixin/clickable-mixin.class.d.ts +4 -9
  44. package/lib/base/mixin/datalist-component.class.d.ts +10 -15
  45. package/lib/base/mixin/dropdown-mixin.class.d.ts +17 -12
  46. package/lib/base/mixin/interactive-mixin.class.d.ts +6 -11
  47. package/lib/base/mixin/loading-mixin.class.d.ts +4 -9
  48. package/lib/base/mixin/mixin.class.d.ts +182 -164
  49. package/lib/base/mixin/selection-component.class.d.ts +4 -9
  50. package/lib/base/mixin/sizable-mixin.class.d.ts +4 -9
  51. package/lib/base/mixin/textbox-mixin.class.d.ts +5 -12
  52. package/lib/base/mixin/value-mixin.class.d.ts +16 -20
  53. package/lib/button/button-item.component.d.ts +10 -20
  54. package/lib/calendar/calendar.class.d.ts +38 -0
  55. package/lib/calendar/calendar.component.d.ts +5 -26
  56. package/lib/checkbox/checkbox.component.d.ts +6 -5
  57. package/lib/datepicker/datepicker.component.d.ts +170 -16
  58. package/lib/datepicker/datepicker.module.d.ts +8 -2
  59. package/lib/decorators/content.component.d.ts +8 -0
  60. package/lib/decorators/decorators.module.d.ts +3 -2
  61. package/lib/decorators/index.d.ts +1 -0
  62. package/lib/dropdown/dropdown-panel.component.d.ts +4 -5
  63. package/lib/dropdown/dropdown.component.d.ts +5 -6
  64. package/lib/label/label.component.d.ts +2 -2
  65. package/lib/popup/popup.component.d.ts +3 -2
  66. package/lib/radio/index.d.ts +2 -0
  67. package/lib/radio/radio.component.d.ts +8 -0
  68. package/lib/radio/radio.module.d.ts +8 -0
  69. package/lib/tabs/tab-item.component.d.ts +2 -1
  70. package/lib/tabs/tabs.component.d.ts +2 -4
  71. package/package.json +1 -1
  72. package/public-api.d.ts +1 -0
  73. package/esm2015/lib/dropdown/dropdown-base.class.js +0 -98
  74. package/lib/dropdown/dropdown-base.class.d.ts +0 -92
@@ -1,27 +1,27 @@
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, Optional, ViewChild, ContentChild, ElementRef, ViewChildren, TemplateRef } from '@angular/core';
3
+ import { Injectable, Inject, EventEmitter, Directive, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, HostBinding, HostListener, ContentChildren, Optional, ViewChild, ContentChild, ElementRef, TemplateRef, ViewChildren } from '@angular/core';
4
4
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
5
5
  import * as i2 from '@acorex/core';
6
- import { AXObjectUtil, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXDrawingUtil, AXTranslator, AXConfig } from '@acorex/core';
6
+ import { AXObjectUtil, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXDrawingUtil, AXStringUtil, AXTranslator, AXConfig } from '@acorex/core';
7
7
  import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
8
8
  import { debounceTime, distinctUntilChanged, throttleTime, observeOn, finalize } from 'rxjs/operators';
9
- import * as i4 from '@angular/common';
9
+ import * as i1 from '@angular/common';
10
10
  import { CommonModule, DOCUMENT } from '@angular/common';
11
11
  import * as i3 from '@angular/forms';
12
12
  import { FormsModule } from '@angular/forms';
13
- import * as i1$1 from '@angular/cdk/portal';
13
+ import * as i1$3 from '@angular/cdk/portal';
14
14
  import { TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
15
15
  import _ from 'lodash';
16
- import * as i1 from '@angular/cdk/overlay';
16
+ import * as i1$1 from '@angular/cdk/overlay';
17
17
  import { OverlayModule, OverlayContainer, Overlay } from '@angular/cdk/overlay';
18
+ import * as i1$2 from 'ngx-mask';
19
+ import { NgxMaskModule } from 'ngx-mask';
18
20
  import * as i2$1 from '@angular/cdk/a11y';
19
21
  import { A11yModule } from '@angular/cdk/a11y';
20
22
  import * as i3$1 from '@angular/cdk/drag-drop';
21
23
  import { DragDropModule } from '@angular/cdk/drag-drop';
22
24
  import * as i2$2 from '@angular/cdk/bidi';
23
- import * as i1$2 from 'ngx-mask';
24
- import { NgxMaskModule } from 'ngx-mask';
25
25
  import { trigger, transition, style, animate } from '@angular/animations';
26
26
 
27
27
  var _elementRef;
@@ -62,6 +62,7 @@ class AXBaseComponent {
62
62
  // this._getInnerElement()?.classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
63
63
  // this._getHostElement().setAttribute('data-id', this.id);
64
64
  this.onInit();
65
+ this.onRenderCssClass();
65
66
  }
66
67
  _onInternalViewInit() {
67
68
  this.onViewInit();
@@ -71,14 +72,32 @@ class AXBaseComponent {
71
72
  }
72
73
  onInit() {
73
74
  }
75
+ onRenderCssClass() {
76
+ }
74
77
  onViewInit() {
75
78
  }
76
79
  onDestroy() {
77
80
  }
78
- onOptionChanging(option) {
81
+ _onOptionChanging(option) {
79
82
  return option === null || option === void 0 ? void 0 : option.value;
80
83
  }
81
- onOptionChanged(option) {
84
+ _onOptionChanged(option) {
85
+ }
86
+ _setOption(option) {
87
+ const oldValue = this[option.name];
88
+ const newValue = this._onOptionChanging({ name: option.name, value: option.value });
89
+ //TODO : check real changes
90
+ if (oldValue != newValue) {
91
+ if (option.beforeCallback)
92
+ option.beforeCallback();
93
+ this[`_${option.name}`] = option.value;
94
+ this._onOptionChanged({ name: option.name, newValue, oldValue });
95
+ const emitter = this[`${option.name}Change`];
96
+ if (emitter)
97
+ emitter.emit(newValue);
98
+ if (option.afterCallback)
99
+ option.afterCallback();
100
+ }
82
101
  }
83
102
  }
84
103
  _elementRef = new WeakMap();
@@ -105,120 +124,108 @@ const BASE_INPUTS = [
105
124
  const BASE_OUTPUT = [];
106
125
 
107
126
  function _ButtonComponentMixin(Base) {
108
- var _color, _look, _toggleable, _selected, _a;
109
- return _a = class extends Base {
110
- constructor(...args) {
111
- super(...args);
112
- /**
113
- * Defines the primary text to show inside the button.
114
- */
115
- this.text = '';
116
- /**
117
- * Trigger click event by Enter Key
118
- */
119
- this.submitBehavior = false;
120
- /**
121
- * Trigger click event by Esc Key
122
- */
123
- this.cancelBehavior = false;
124
- this.colorChange = new EventEmitter();
125
- _color.set(this, 'primary');
126
- this.lookChange = new EventEmitter();
127
- _look.set(this, null);
128
- this.toggleableChange = new EventEmitter();
129
- _toggleable.set(this, false);
130
- this.selectedChange = new EventEmitter();
131
- _selected.set(this, false);
132
- }
127
+ return class extends Base {
128
+ constructor(...args) {
129
+ super(...args);
133
130
  /**
134
- * Predefined color schemes
131
+ * Defines the primary text to show inside the button.
135
132
  */
136
- get color() {
137
- return __classPrivateFieldGet(this, _color);
138
- }
139
- set color(value) {
140
- value = this.onOptionChanging({ name: 'color', value: value });
141
- if (value != __classPrivateFieldGet(this, _color)) {
142
- const oldValue = this.color;
143
- __classPrivateFieldSet(this, _color, value);
144
- this.colorChange.emit(value);
145
- this.onOptionChanged({ name: 'color', oldValue, newValue: value });
146
- this._cdr.markForCheck();
147
- }
148
- }
133
+ this.text = '';
149
134
  /**
150
- * Predefined look schemes
135
+ * Trigger click event by Enter Key
151
136
  */
152
- get look() {
153
- return __classPrivateFieldGet(this, _look);
154
- }
155
- set look(value) {
156
- value = this.onOptionChanging({ name: 'look', value: value });
157
- if (value != __classPrivateFieldGet(this, _look)) {
158
- const oldValue = this.color;
159
- __classPrivateFieldSet(this, _look, value);
160
- this.lookChange.emit(value);
161
- this.onOptionChanged({ name: 'look', oldValue, newValue: value });
162
- this._cdr.markForCheck();
163
- }
164
- }
137
+ this.submitBehavior = false;
165
138
  /**
166
- * Provides visual styling that indicates if the Button is active
139
+ * Trigger click event by Esc Key
167
140
  */
168
- get toggleable() {
169
- return __classPrivateFieldGet(this, _toggleable);
170
- }
171
- set toggleable(value) {
172
- value = this.onOptionChanging({ name: 'toggleable', value: value });
173
- if (value != __classPrivateFieldGet(this, _toggleable)) {
174
- const oldValue = this.toggleable;
175
- __classPrivateFieldSet(this, _toggleable, value);
176
- this.toggleableChange.emit(value);
177
- this.onOptionChanged({ name: 'toggleable', oldValue, newValue: value });
141
+ this.cancelBehavior = false;
142
+ this.colorChange = new EventEmitter();
143
+ this._color = 'primary';
144
+ this.lookChange = new EventEmitter();
145
+ this._look = null;
146
+ this.toggleableChange = new EventEmitter();
147
+ this._toggleable = false;
148
+ this.selectedChange = new EventEmitter();
149
+ this._selected = false;
150
+ }
151
+ /**
152
+ * Predefined color schemes
153
+ */
154
+ get color() {
155
+ return this._color;
156
+ }
157
+ set color(value) {
158
+ this._setOption({
159
+ name: 'color',
160
+ value,
161
+ afterCallback: () => {
162
+ this._cdr.markForCheck();
178
163
  }
179
- }
180
- /**
181
- * Indicates if the Button is selected or not
182
- */
183
- get selected() {
184
- return __classPrivateFieldGet(this, _selected);
185
- }
186
- set selected(value) {
187
- value = this.onOptionChanging({ name: 'selected', value: value });
188
- if (value != __classPrivateFieldGet(this, _selected)) {
189
- const oldValue = this.selected;
190
- __classPrivateFieldSet(this, _selected, value);
191
- this.selectedChange.emit(value);
164
+ });
165
+ }
166
+ /**
167
+ * Predefined look schemes
168
+ */
169
+ get look() {
170
+ return this._look;
171
+ }
172
+ set look(value) {
173
+ this._setOption({
174
+ name: 'look',
175
+ value,
176
+ afterCallback: () => {
192
177
  this._cdr.markForCheck();
193
- this.onOptionChanged({ name: 'selected', oldValue, newValue: value });
194
178
  }
195
- }
196
- _onInternalViewInit() {
197
- super._onInternalViewInit();
198
- if (this.submitBehavior) {
199
- setTimeout(() => {
200
- this.focus();
201
- }, 0);
179
+ });
180
+ }
181
+ /**
182
+ * Provides visual styling that indicates if the Button is active
183
+ */
184
+ get toggleable() {
185
+ return this._toggleable;
186
+ }
187
+ set toggleable(value) {
188
+ this._setOption({
189
+ name: 'toggleable',
190
+ value
191
+ });
192
+ }
193
+ /**
194
+ * Indicates if the Button is selected or not
195
+ */
196
+ get selected() {
197
+ return this._selected;
198
+ }
199
+ set selected(value) {
200
+ this._setOption({
201
+ name: 'selected',
202
+ value,
203
+ afterCallback: () => {
204
+ this._cdr.markForCheck();
202
205
  }
206
+ });
207
+ }
208
+ _onInternalViewInit() {
209
+ super._onInternalViewInit();
210
+ if (this.submitBehavior) {
211
+ setTimeout(() => {
212
+ this.focus();
213
+ }, 0);
203
214
  }
204
- _onInternalDestroy() {
205
- super._onInternalDestroy();
206
- }
207
- get _classes() {
208
- const cssClasses = {
209
- 'ax-button-icon': !this.text,
210
- 'ax-state-disabled': this["disabled"],
211
- 'ax-state-selected': this.selected
212
- };
213
- cssClasses[`ax-${this.color || 'primary'}${this.look ? '-' + this.look : ''}`] = true;
214
- return cssClasses;
215
- }
216
- },
217
- _color = new WeakMap(),
218
- _look = new WeakMap(),
219
- _toggleable = new WeakMap(),
220
- _selected = new WeakMap(),
221
- _a;
215
+ }
216
+ _onInternalDestroy() {
217
+ super._onInternalDestroy();
218
+ }
219
+ get _classes() {
220
+ const cssClasses = {
221
+ 'ax-button-icon': !this.text,
222
+ 'ax-state-disabled': this["disabled"],
223
+ 'ax-state-selected': this.selected
224
+ };
225
+ cssClasses[`ax-${this.color || 'primary'}${this.look ? '-' + this.look : ''}`] = true;
226
+ return cssClasses;
227
+ }
228
+ };
222
229
  }
223
230
  const BUTTON_INPUTS = [
224
231
  'text',
@@ -351,17 +358,15 @@ function _DatalistComponenetMixin(Base) {
351
358
  }
352
359
 
353
360
  function _DropdownComponenetMixin(Base) {
354
- var _readonly;
355
361
  class Mixin extends Base {
356
362
  constructor(...args) {
357
363
  super(...args);
358
- _readonly.set(this, false);
359
364
  this.fitParent = true;
365
+ this.readonly = false;
360
366
  this.onOpened = new EventEmitter();
361
367
  this.onClosed = new EventEmitter();
368
+ this.position = [];
362
369
  }
363
- get readonly() { return __classPrivateFieldGet(this, _readonly); }
364
- set readonly(value) { __classPrivateFieldSet(this, _readonly, coerceBooleanProperty(value)); }
365
370
  _emitOnOpenedEvent() {
366
371
  //** call from interactive mixin **//
367
372
  //(this as any).focus();
@@ -372,16 +377,74 @@ function _DropdownComponenetMixin(Base) {
372
377
  });
373
378
  }
374
379
  _emitOnClosedEvent() {
375
- this.focus();
376
380
  this.onClosed.emit({
377
381
  component: this,
378
382
  htmlElement: this._getHostElement()
379
383
  });
380
384
  }
385
+ onViewInit() {
386
+ if (this.dropdownWidth == null) {
387
+ if (this.fitParent === true) {
388
+ this.dropdownWidth = this._getInnerElement().offsetWidth;
389
+ }
390
+ }
391
+ // wait for documentElement
392
+ setTimeout(() => {
393
+ if (this.position.length == 0) {
394
+ const offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
395
+ const list = [
396
+ {
397
+ originX: 'start',
398
+ originY: 'bottom',
399
+ overlayX: 'start',
400
+ overlayY: 'top',
401
+ offsetY: offset
402
+ },
403
+ {
404
+ originX: 'start',
405
+ originY: 'top',
406
+ overlayX: 'start',
407
+ overlayY: 'bottom',
408
+ offsetY: -offset
409
+ }
410
+ ];
411
+ this.position.push(...list);
412
+ }
413
+ }, 500);
414
+ }
415
+ toggle() {
416
+ if (this['disabled'] !== true) {
417
+ this.popover.toggle();
418
+ }
419
+ }
420
+ close() {
421
+ if (!this.isOpen || this['disabled']) {
422
+ return;
423
+ }
424
+ this.popover.close();
425
+ this._emitOnClosedEvent();
426
+ }
427
+ open() {
428
+ if (this.isOpen || this['disabled']) {
429
+ return;
430
+ }
431
+ this.popover.open();
432
+ this._emitOnOpenedEvent();
433
+ }
434
+ get isOpen() {
435
+ var _a;
436
+ return (_a = this.popover) === null || _a === void 0 ? void 0 : _a.isOpen;
437
+ }
381
438
  }
382
- _readonly = new WeakMap();
383
439
  return Mixin;
384
- }
440
+ }
441
+ const DROPDOWN_INPUTS = [
442
+ 'isOpen',
443
+ 'fitParent',
444
+ 'dropdownWidth',
445
+ 'position'
446
+ ];
447
+ const DROPDOWN_OUTPUT = ['onOpened', 'onClosed'];
385
448
 
386
449
  function _InteractiveComponenetMixin(Base) {
387
450
  var _disabled, _tabIndex;
@@ -392,7 +455,7 @@ function _InteractiveComponenetMixin(Base) {
392
455
  constructor(...args) {
393
456
  super(...args);
394
457
  _disabled.set(this, false);
395
- _tabIndex.set(this, 0);
458
+ _tabIndex.set(this, null);
396
459
  /**
397
460
  * Fires each time the component gets focused.
398
461
  * @event
@@ -409,11 +472,11 @@ function _InteractiveComponenetMixin(Base) {
409
472
  */
410
473
  get disabled() { return __classPrivateFieldGet(this, _disabled); }
411
474
  set disabled(value) {
412
- value = this.onOptionChanging({ name: 'disabled', value: value });
475
+ value = this._onOptionChanging({ name: 'disabled', value: value });
413
476
  if (value != this.disabled) {
414
477
  const oldValue = this.disabled;
415
478
  __classPrivateFieldSet(this, _disabled, coerceBooleanProperty(value));
416
- this.onOptionChanged({ name: 'disabled', oldValue, newValue: value });
479
+ this._onOptionChanged({ name: 'disabled', oldValue, newValue: value });
417
480
  this._cdr.markForCheck();
418
481
  }
419
482
  }
@@ -646,7 +709,7 @@ function _ValueComponenetMixin(Base) {
646
709
  this.onValueChanged = new EventEmitter();
647
710
  this.valueChange = new EventEmitter();
648
711
  _readonly.set(this, false);
649
- _allowNull.set(this, true);
712
+ _allowNull.set(this, false);
650
713
  _name.set(this, void 0);
651
714
  _debounceTime.set(this, 0);
652
715
  _valueSubscription.set(this, new Subscription());
@@ -684,7 +747,7 @@ function _ValueComponenetMixin(Base) {
684
747
  return __classPrivateFieldGet(this, _value);
685
748
  }
686
749
  set value(v) {
687
- v = this._onValueChanging(v);
750
+ v = this._onInternalValueChanging(v);
688
751
  if (!this._isInited || this.debounceTime == 0) {
689
752
  this._setValue(v);
690
753
  }
@@ -702,6 +765,11 @@ function _ValueComponenetMixin(Base) {
702
765
  });
703
766
  this._onValueChanged(oldValue, __classPrivateFieldGet(this, _value));
704
767
  }
768
+ _onInternalValueChanging(value) {
769
+ if (this.readonly)
770
+ return this.value;
771
+ return this._onValueChanging(value);
772
+ }
705
773
  _onValueChanging(value) {
706
774
  return value;
707
775
  }
@@ -769,7 +837,7 @@ function _ValueComponenetMixin(Base) {
769
837
  this._getHostElement() :
770
838
  this._getHostElement().querySelector('.ax-editor-container');
771
839
  const formField = container === null || container === void 0 ? void 0 : container.closest('.ax-form-field');
772
- const label = formField === null || formField === void 0 ? void 0 : formField.querySelector('.ax-label');
840
+ const label = formField === null || formField === void 0 ? void 0 : formField.querySelector('ax-label');
773
841
  const target = container || this._getInnerElement();
774
842
  const parent = target.parentElement;
775
843
  switch (state) {
@@ -862,7 +930,7 @@ const AXBaseTextBoxMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_
862
930
  const AXBaseSelectionValueMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
863
931
  const AXBaseValueDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
864
932
  const AXBaseSelectionDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent))))));
865
- const AXCalendarComponentMixin = _ClickableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXBaseComponent)));
933
+ const AXBaseDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(AXBaseComponent)));
866
934
 
867
935
  /**
868
936
  * Contains native event
@@ -1070,7 +1138,7 @@ class AXAlertComponent extends AXBaseComponentMixin {
1070
1138
  }
1071
1139
  _visible = new WeakMap();
1072
1140
  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 });
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 });
1141
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1074
1142
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertComponent, decorators: [{
1075
1143
  type: Component,
1076
1144
  args: [{
@@ -1134,7 +1202,7 @@ AXAlertButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", v
1134
1202
  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: `
1135
1203
  {{title}}
1136
1204
  <i *ngIf="icon" class="{{icon}}"></i>
1137
- `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1205
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1138
1206
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
1139
1207
  type: Component,
1140
1208
  args: [{
@@ -1232,7 +1300,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1232
1300
  }]
1233
1301
  }] });
1234
1302
 
1235
- const COMPONENT$n = [
1303
+ const COMPONENT$o = [
1236
1304
  AXAlertComponent,
1237
1305
  AXAlertContentComponent,
1238
1306
  AXAlertTitleComponent,
@@ -1240,7 +1308,7 @@ const COMPONENT$n = [
1240
1308
  AXAlertFooterComponent,
1241
1309
  AXAlertSuffixComponent
1242
1310
  ];
1243
- const MODULES$n = [CommonModule];
1311
+ const MODULES$o = [CommonModule];
1244
1312
  class AXAlertModule {
1245
1313
  }
1246
1314
  AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1255,13 +1323,13 @@ AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
1255
1323
  AXAlertButtonComponent,
1256
1324
  AXAlertFooterComponent,
1257
1325
  AXAlertSuffixComponent] });
1258
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$n]] });
1326
+ AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$o]] });
1259
1327
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAlertModule, decorators: [{
1260
1328
  type: NgModule,
1261
1329
  args: [{
1262
- declarations: [...COMPONENT$n],
1263
- imports: [...MODULES$n],
1264
- exports: [...COMPONENT$n],
1330
+ declarations: [...COMPONENT$o],
1331
+ imports: [...MODULES$o],
1332
+ exports: [...COMPONENT$o],
1265
1333
  providers: [],
1266
1334
  }]
1267
1335
  }] });
@@ -1317,19 +1385,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1317
1385
  type: Input
1318
1386
  }] } });
1319
1387
 
1320
- const COMPONENT$m = [AXAvatarComponent];
1321
- const MODULES$m = [CommonModule];
1388
+ const COMPONENT$n = [AXAvatarComponent];
1389
+ const MODULES$n = [CommonModule];
1322
1390
  class AXAvatarModule {
1323
1391
  }
1324
1392
  AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1325
1393
  AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent], imports: [CommonModule], exports: [AXAvatarComponent] });
1326
- AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$m]] });
1394
+ AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$n]] });
1327
1395
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXAvatarModule, decorators: [{
1328
1396
  type: NgModule,
1329
1397
  args: [{
1330
- declarations: [...COMPONENT$m],
1331
- imports: [...MODULES$m],
1332
- exports: [...COMPONENT$m],
1398
+ declarations: [...COMPONENT$n],
1399
+ imports: [...MODULES$n],
1400
+ exports: [...COMPONENT$n],
1333
1401
  providers: [],
1334
1402
  }]
1335
1403
  }] });
@@ -1342,7 +1410,7 @@ class AXBadgeComponent extends AXBaseComponentMixin {
1342
1410
  //TODO: ax-badge
1343
1411
  }
1344
1412
  get __hostClass() {
1345
- return [`ax-bg-${this.color}-100`, `ax-text-${this.color}-600`].join(' ');
1413
+ return [`ax-bg-${this.color}-100`, `ax-text-${this.color}-500`].join(' ');
1346
1414
  }
1347
1415
  }
1348
1416
  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 });
@@ -1365,19 +1433,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1365
1433
  args: ['class']
1366
1434
  }] } });
1367
1435
 
1368
- const COMPONENT$l = [AXBadgeComponent];
1369
- const MODULES$l = [CommonModule];
1436
+ const COMPONENT$m = [AXBadgeComponent];
1437
+ const MODULES$m = [CommonModule];
1370
1438
  class AXBadgeModule {
1371
1439
  }
1372
1440
  AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1373
1441
  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]] });
1442
+ AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$m]] });
1375
1443
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXBadgeModule, decorators: [{
1376
1444
  type: NgModule,
1377
1445
  args: [{
1378
- declarations: [...COMPONENT$l],
1379
- imports: [...MODULES$l],
1380
- exports: [...COMPONENT$l],
1446
+ declarations: [...COMPONENT$m],
1447
+ imports: [...MODULES$m],
1448
+ exports: [...COMPONENT$m],
1381
1449
  providers: [],
1382
1450
  }]
1383
1451
  }] });
@@ -1421,7 +1489,7 @@ class AXButtonComponent extends AXBaseButtonMixin {
1421
1489
  }
1422
1490
  }
1423
1491
  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 });
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 });
1492
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1425
1493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonComponent, decorators: [{
1426
1494
  type: Component,
1427
1495
  args: [{
@@ -1466,7 +1534,7 @@ class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1466
1534
  return this._selection;
1467
1535
  }
1468
1536
  set selection(value) {
1469
- value = this.onOptionChanging({ name: 'selection', value: value });
1537
+ value = this._onOptionChanging({ name: 'selection', value: value });
1470
1538
  const oldValue = this.selection;
1471
1539
  if (value != oldValue) {
1472
1540
  this._selection = value;
@@ -1481,7 +1549,7 @@ class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1481
1549
  return this._color;
1482
1550
  }
1483
1551
  set color(value) {
1484
- value = this.onOptionChanging({ name: 'color', value: value });
1552
+ value = this._onOptionChanging({ name: 'color', value: value });
1485
1553
  const oldValue = this.color;
1486
1554
  if (value != oldValue) {
1487
1555
  this._color = value;
@@ -1496,7 +1564,7 @@ class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1496
1564
  return this._look;
1497
1565
  }
1498
1566
  set look(value) {
1499
- value = this.onOptionChanging({ name: 'look', value: value });
1567
+ value = this._onOptionChanging({ name: 'look', value: value });
1500
1568
  const oldValue = this.look;
1501
1569
  if (value != oldValue) {
1502
1570
  this._look = value;
@@ -1612,7 +1680,7 @@ AXButtonItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
1612
1680
  <span *ngIf="text">{{text}}</span>
1613
1681
  <ng-content select="ax-suffix">
1614
1682
  </ng-content>
1615
- `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1683
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1616
1684
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonItemComponent, decorators: [{
1617
1685
  type: Component,
1618
1686
  args: [{
@@ -1658,7 +1726,7 @@ class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
1658
1726
  }
1659
1727
  }
1660
1728
  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: `
1729
+ AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
1662
1730
  <ng-content select="ax-button,ax-loading,ax-icon,ax-badge">
1663
1731
  </ng-content>
1664
1732
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
@@ -1671,8 +1739,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1671
1739
  </ng-content>
1672
1740
  `,
1673
1741
  changeDetection: ChangeDetectionStrategy.OnPush,
1674
- encapsulation: ViewEncapsulation.None,
1675
- host: { class: 'ax-prefix' }
1742
+ encapsulation: ViewEncapsulation.None
1676
1743
  }]
1677
1744
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1678
1745
 
@@ -1682,7 +1749,7 @@ class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
1682
1749
  }
1683
1750
  }
1684
1751
  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: `
1752
+ AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
1686
1753
  <ng-content select="ax-button,ax-icon,ax-badge">
1687
1754
  </ng-content>
1688
1755
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
@@ -1693,26 +1760,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1693
1760
  template: `
1694
1761
  <ng-content select="ax-button,ax-icon,ax-badge">
1695
1762
  </ng-content>
1763
+ `,
1764
+ changeDetection: ChangeDetectionStrategy.OnPush,
1765
+ encapsulation: ViewEncapsulation.None
1766
+ }]
1767
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1768
+
1769
+ class AXDecoratorContentComponent extends AXBaseComponentMixin {
1770
+ constructor(elementRef, cdr) {
1771
+ super(elementRef, cdr);
1772
+ }
1773
+ }
1774
+ AXDecoratorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1775
+ AXDecoratorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDecoratorContentComponent, selector: "ax-content", usesInheritance: true, ngImport: i0, template: `
1776
+ <ng-content>
1777
+ </ng-content>
1778
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDecoratorContentComponent, decorators: [{
1780
+ type: Component,
1781
+ args: [{
1782
+ selector: 'ax-content',
1783
+ template: `
1784
+ <ng-content>
1785
+ </ng-content>
1696
1786
  `,
1697
1787
  changeDetection: ChangeDetectionStrategy.OnPush,
1698
1788
  encapsulation: ViewEncapsulation.None,
1699
- host: { class: 'ax-suffix' }
1700
1789
  }]
1701
1790
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1702
1791
 
1703
- const COMPONENT$k = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent];
1704
- const MODULES$k = [CommonModule];
1792
+ const COMPONENT$l = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent];
1793
+ const MODULES$l = [CommonModule];
1705
1794
  class AXEditorDecoratorModule {
1706
1795
  }
1707
1796
  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]] });
1797
+ AXEditorDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, declarations: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent] });
1798
+ AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$l]] });
1710
1799
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
1711
1800
  type: NgModule,
1712
1801
  args: [{
1713
- declarations: [...COMPONENT$k],
1714
- imports: [...MODULES$k],
1715
- exports: [...COMPONENT$k],
1802
+ declarations: [...COMPONENT$l],
1803
+ imports: [...MODULES$l],
1804
+ exports: [...COMPONENT$l],
1716
1805
  providers: [],
1717
1806
  }]
1718
1807
  }] });
@@ -1742,29 +1831,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1742
1831
  args: ['class']
1743
1832
  }] } });
1744
1833
 
1745
- const COMPONENT$j = [AXIconComponent];
1746
- const MODULES$j = [CommonModule];
1834
+ const COMPONENT$k = [AXIconComponent];
1835
+ const MODULES$k = [CommonModule];
1747
1836
  class AXIconModule {
1748
1837
  }
1749
1838
  AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1750
1839
  AXIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
1751
- AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$j]] });
1840
+ AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$k]] });
1752
1841
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXIconModule, decorators: [{
1753
1842
  type: NgModule,
1754
1843
  args: [{
1755
- declarations: [...COMPONENT$j],
1756
- imports: [...MODULES$j],
1757
- exports: [...COMPONENT$j],
1844
+ declarations: [...COMPONENT$k],
1845
+ imports: [...MODULES$k],
1846
+ exports: [...COMPONENT$k],
1758
1847
  providers: [],
1759
1848
  }]
1760
1849
  }] });
1761
1850
 
1762
- const COMPONENT$i = [
1851
+ const COMPONENT$j = [
1763
1852
  AXButtonComponent,
1764
1853
  AXButtonItemComponent,
1765
1854
  AXButtonGroupComponent,
1766
1855
  ];
1767
- const MODULES$i = [CommonModule, AXIconModule, AXEditorDecoratorModule];
1856
+ const MODULES$j = [CommonModule, AXIconModule, AXEditorDecoratorModule];
1768
1857
  class AXButtonModule {
1769
1858
  }
1770
1859
  AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1773,84 +1862,136 @@ AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
1773
1862
  AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
1774
1863
  AXButtonItemComponent,
1775
1864
  AXButtonGroupComponent] });
1776
- AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$i]] });
1865
+ AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$j]] });
1777
1866
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXButtonModule, decorators: [{
1778
1867
  type: NgModule,
1779
1868
  args: [{
1780
- imports: [MODULES$i],
1781
- exports: [COMPONENT$i],
1782
- declarations: [COMPONENT$i],
1869
+ imports: [MODULES$j],
1870
+ exports: [COMPONENT$j],
1871
+ declarations: [COMPONENT$j],
1783
1872
  providers: [],
1784
1873
  }]
1785
1874
  }] });
1786
1875
 
1787
- class AXCalendarComponent extends AXCalendarComponentMixin {
1876
+ class AXCalendarBaseComponent extends AXBaseComponent {
1788
1877
  constructor(elementRef, cdr) {
1789
1878
  super(elementRef, cdr);
1790
- this.cdr = cdr;
1791
- this._today = new AXDateTime(new Date());
1792
- this._navText = '';
1793
- this._todayText = '';
1794
- this._slots = [];
1879
+ this.activeViewChange = new EventEmitter();
1795
1880
  this._activeView = 'days';
1796
1881
  this.depthChange = new EventEmitter();
1797
1882
  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
- }
1883
+ this.minChange = new EventEmitter();
1884
+ this.maxChange = new EventEmitter();
1885
+ this.disabledDatesChange = new EventEmitter();
1886
+ this.holidayDatesChange = new EventEmitter();
1814
1887
  }
1815
1888
  get activeView() {
1816
1889
  return this._activeView;
1817
1890
  }
1818
1891
  set activeView(v) {
1819
- this._activeView = v;
1820
- this._genearteSlots();
1892
+ this._setOption({ name: 'activeView', value: v });
1821
1893
  }
1822
1894
  get depth() {
1823
1895
  return this._depth;
1824
1896
  }
1825
1897
  set depth(v) {
1826
- this._depth = v;
1827
- this._activeView = v;
1828
- this.depthChange.emit(v);
1829
- this._genearteSlots();
1898
+ this._setOption({
1899
+ name: 'depth',
1900
+ value: v,
1901
+ beforeCallback: () => {
1902
+ this._activeView = v;
1903
+ }
1904
+ });
1830
1905
  }
1831
1906
  get min() {
1832
1907
  return this._min;
1833
1908
  }
1834
1909
  set min(v) {
1835
- this._min = v;
1910
+ this._setOption({ name: 'min', value: v });
1836
1911
  }
1837
1912
  get max() {
1838
1913
  return this._max;
1839
1914
  }
1840
1915
  set max(v) {
1841
- this._max = v;
1916
+ this._setOption({ name: 'max', value: v });
1842
1917
  }
1843
1918
  get disabledDates() {
1844
1919
  return this._disabledDates;
1845
1920
  }
1846
1921
  set disabledDates(v) {
1847
- this._disabledDates = v;
1922
+ this._setOption({ name: 'disabledDates', value: v });
1848
1923
  }
1849
1924
  get holidayDates() {
1850
1925
  return this._holidayDates;
1851
1926
  }
1852
1927
  set holidayDates(v) {
1853
- this._holidayDates = v;
1928
+ this._setOption({ name: 'holidayDates', value: v });
1929
+ }
1930
+ }
1931
+ AXCalendarBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarBaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
1932
+ AXCalendarBaseComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarBaseComponent });
1933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarBaseComponent, decorators: [{
1934
+ type: Injectable
1935
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { activeViewChange: [{
1936
+ type: Output
1937
+ }], activeView: [{
1938
+ type: Input
1939
+ }], depthChange: [{
1940
+ type: Output
1941
+ }], depth: [{
1942
+ type: Input
1943
+ }], minChange: [{
1944
+ type: Output
1945
+ }], min: [{
1946
+ type: Input
1947
+ }], maxChange: [{
1948
+ type: Output
1949
+ }], max: [{
1950
+ type: Input
1951
+ }], disabledDatesChange: [{
1952
+ type: Output
1953
+ }], disabledDates: [{
1954
+ type: Input
1955
+ }], holidayDatesChange: [{
1956
+ type: Output
1957
+ }], holidayDates: [{
1958
+ type: Input
1959
+ }] } });
1960
+ const CALENDAR_INPUTS = [
1961
+ 'depth',
1962
+ 'activeView',
1963
+ 'min',
1964
+ 'max',
1965
+ 'disabledDates',
1966
+ 'holidayDates',
1967
+ ];
1968
+ const CALENDAR_OUTPUTS = ['depthChange'];
1969
+
1970
+ const AXCalendarComponentMixin = _ClickableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent)));
1971
+ class AXCalendarComponent extends AXCalendarComponentMixin {
1972
+ constructor(elementRef, cdr) {
1973
+ super(elementRef, cdr);
1974
+ this.cdr = cdr;
1975
+ this._today = new AXDateTime(new Date());
1976
+ this._navText = '';
1977
+ this._todayText = '';
1978
+ this._slots = [];
1979
+ }
1980
+ get _viewRange() {
1981
+ const current = this._viewStartDate || this._today;
1982
+ switch (this.activeView) {
1983
+ case 'years':
1984
+ let y = current.startOf('year').year;
1985
+ let min = y - (y % 10) - 1;
1986
+ let max = min + 11;
1987
+ return new AXDateTimeRange(AXDateTime.convert(new Date(min, 0), this._today.calendar.name()), AXDateTime.convert(new Date(max, 0), this._today.calendar.name()));
1988
+ case 'months':
1989
+ //TODO: check add month function
1990
+ return new AXDateTimeRange(current.startOf('year'), current.endOf('year').add('day', -1));
1991
+ default:
1992
+ //return new AXDateTimeRange(current.startOf('month').startOf('week'), current.endOf('month').endOf('week'));
1993
+ return new AXDateTimeRange(current.startOf('month'), current.endOf('month'));
1994
+ }
1854
1995
  }
1855
1996
  onInit() {
1856
1997
  this.goToday();
@@ -1972,6 +2113,11 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
1972
2113
  else if (this.activeView == 'months')
1973
2114
  this.activeView = 'years';
1974
2115
  }
2116
+ _onOptionChanged(option) {
2117
+ if (option.name == 'depth' || option.name == 'activeView') {
2118
+ this._genearteSlots();
2119
+ }
2120
+ }
1975
2121
  _onValueChanged(oldValue, newValue) {
1976
2122
  this._genearteSlots();
1977
2123
  }
@@ -2009,7 +2155,7 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
2009
2155
  }
2010
2156
  isDisabled(date) {
2011
2157
  if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {
2012
- debugger;
2158
+ ;
2013
2159
  return this.disabledDates.some(d => date.equal(d, 'day'));
2014
2160
  }
2015
2161
  else if (typeof this.disabledDates == 'function') {
@@ -2031,49 +2177,35 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
2031
2177
  }
2032
2178
  }
2033
2179
  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 });
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 });
2180
+ 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", depth: "depth", activeView: "activeView", 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 class=\"dark:ax-text-danger\" [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: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2035
2181
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarComponent, decorators: [{
2036
2182
  type: Component,
2037
2183
  args: [{
2038
2184
  selector: 'ax-calendar',
2039
2185
  templateUrl: './calendar.component.html',
2040
2186
  changeDetection: ChangeDetectionStrategy.OnPush,
2041
- inputs: [...VALUE_INPUTS, ...INTERACTIVE_INPUTS],
2042
- outputs: [...VALUE_OUTPUT, ...INTERACTIVE_OUTPUT],
2187
+ inputs: [...VALUE_INPUTS, ...INTERACTIVE_INPUTS, ...CALENDAR_INPUTS],
2188
+ outputs: [...VALUE_OUTPUT, ...INTERACTIVE_OUTPUT, ...CALENDAR_OUTPUTS],
2043
2189
  encapsulation: ViewEncapsulation.None,
2044
2190
  }]
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: [{
2052
- type: Input
2053
- }], max: [{
2054
- type: Input
2055
- }], disabledDates: [{
2056
- type: Input
2057
- }], holidayDates: [{
2058
- type: Input
2059
- }], __hostClass: [{
2191
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { __hostClass: [{
2060
2192
  type: HostBinding,
2061
2193
  args: ['class']
2062
2194
  }] } });
2063
2195
 
2064
- const COMPONENT$h = [AXCalendarComponent];
2065
- const MODULES$h = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
2196
+ const COMPONENT$i = [AXCalendarComponent];
2197
+ const MODULES$i = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
2066
2198
  class AXCalendarModule {
2067
2199
  }
2068
2200
  AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2069
2201
  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]] });
2202
+ AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
2071
2203
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCalendarModule, decorators: [{
2072
2204
  type: NgModule,
2073
2205
  args: [{
2074
- declarations: [...COMPONENT$h],
2075
- imports: [...MODULES$h],
2076
- exports: [...COMPONENT$h],
2206
+ declarations: [...COMPONENT$i],
2207
+ imports: [...MODULES$i],
2208
+ exports: [...COMPONENT$i],
2077
2209
  providers: [],
2078
2210
  }]
2079
2211
  }] });
@@ -2528,7 +2660,7 @@ AXCarouselPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0",
2528
2660
  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: `
2529
2661
  <button *ngFor="let d of _dots;let i=index" [class.ax-state-active]="i==_pageIndex" (click)="_handleClick($event,i)">
2530
2662
  </button>
2531
- `, isInline: true, directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2663
+ `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2532
2664
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselPagerComponent, decorators: [{
2533
2665
  type: Component,
2534
2666
  args: [{
@@ -2543,57 +2675,202 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2543
2675
  }]
2544
2676
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
2545
2677
 
2546
- const COMPONENT$g = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
2547
- const MODULES$g = [CommonModule];
2678
+ const COMPONENT$h = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
2679
+ const MODULES$h = [CommonModule];
2548
2680
  class AXCarouselModule {
2549
2681
  }
2550
2682
  AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2551
2683
  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] });
2552
- AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$g]] });
2684
+ AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$h]] });
2553
2685
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCarouselModule, decorators: [{
2554
2686
  type: NgModule,
2555
2687
  args: [{
2556
- declarations: [...COMPONENT$g],
2557
- imports: [...MODULES$g],
2558
- exports: [...COMPONENT$g],
2688
+ declarations: [...COMPONENT$h],
2689
+ imports: [...MODULES$h],
2690
+ exports: [...COMPONENT$h],
2559
2691
  providers: [],
2560
2692
  }]
2561
2693
  }] });
2562
2694
 
2563
- class AXCheckBoxComponent extends AXBaseValueComponentMixin {
2695
+ class AXFormFieldComponent extends AXBaseComponentMixin {
2564
2696
  constructor(elementRef, cdr) {
2565
2697
  super(elementRef, cdr);
2566
- //TODO: apply it
2567
- this.indeterminate = false;
2568
- this._id = `ax-checkbox-${Math.floor(Math.random() * 1000)}`;
2569
- }
2570
- onInit() {
2571
- super.onInit();
2572
- if (!this.indeterminate && this.value == null) {
2573
- this.value = false;
2574
- }
2575
- }
2576
- _handleOnClickEvent(e) {
2577
- if (this.readonly || this.disabled) {
2578
- e.preventDefault();
2579
- e.stopPropagation();
2580
- }
2581
2698
  }
2582
2699
  }
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 });
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 });
2585
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
2700
+ AXFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormFieldComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2701
+ AXFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormFieldComponent, selector: "ax-form-field", usesInheritance: true, ngImport: i0, template: '<div class="ax-form-field"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2702
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormFieldComponent, decorators: [{
2586
2703
  type: Component,
2587
2704
  args: [{
2588
- selector: 'ax-check-box',
2589
- templateUrl: './checkbox.component.html',
2590
- inputs: ['disabled', 'readonly', 'tabIndex', 'size', 'value'],
2591
- outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'],
2705
+ selector: 'ax-form-field',
2706
+ template: '<div class="ax-form-field"><ng-content></ng-content></div>',
2592
2707
  encapsulation: ViewEncapsulation.None,
2593
2708
  changeDetection: ChangeDetectionStrategy.OnPush,
2594
2709
  }]
2595
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { indeterminate: [{
2596
- type: Input
2710
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2711
+
2712
+ class AXFormHintComponent extends AXBaseComponentMixin {
2713
+ constructor(elementRef, cdr) {
2714
+ super(elementRef, cdr);
2715
+ }
2716
+ }
2717
+ AXFormHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormHintComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2718
+ AXFormHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0, template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormHintComponent, decorators: [{
2720
+ type: Component,
2721
+ args: [{
2722
+ selector: 'ax-form-hint',
2723
+ template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
2724
+ encapsulation: ViewEncapsulation.None,
2725
+ changeDetection: ChangeDetectionStrategy.OnPush,
2726
+ }]
2727
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2728
+
2729
+ class AXFormComponent extends AXBaseComponentMixin {
2730
+ constructor(elementRef, cdr) {
2731
+ super(elementRef, cdr);
2732
+ this.cdr = cdr;
2733
+ }
2734
+ _getComponenets() {
2735
+ return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
2736
+ }
2737
+ validate() {
2738
+ const widgets = this._getComponenets();
2739
+ //
2740
+ return new Promise((resolve, reject) => {
2741
+ if (widgets.length === 0) {
2742
+ return Promise.resolve({ result: true });
2743
+ }
2744
+ Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
2745
+ const failed = rules.filter((c) => !c.result);
2746
+ if (failed.length) {
2747
+ reject({
2748
+ result: false,
2749
+ items: failed
2750
+ });
2751
+ }
2752
+ else {
2753
+ resolve({ result: true });
2754
+ }
2755
+ });
2756
+ });
2757
+ }
2758
+ clear() {
2759
+ const widgets = this._getComponenets();
2760
+ widgets.forEach(w => {
2761
+ w.__axContext__.clear();
2762
+ });
2763
+ }
2764
+ }
2765
+ AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2766
+ AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<div class="ax-form"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2767
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormComponent, decorators: [{
2768
+ type: Component,
2769
+ args: [{
2770
+ selector: 'ax-form',
2771
+ template: '<div class="ax-form"><ng-content></ng-content></div>',
2772
+ encapsulation: ViewEncapsulation.None,
2773
+ changeDetection: ChangeDetectionStrategy.OnPush,
2774
+ }]
2775
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2776
+
2777
+ class AXFormModule {
2778
+ }
2779
+ AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2780
+ AXFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent], imports: [CommonModule], exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent] });
2781
+ AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, providers: [], imports: [[CommonModule]] });
2782
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, decorators: [{
2783
+ type: NgModule,
2784
+ args: [{
2785
+ imports: [CommonModule],
2786
+ exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
2787
+ declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
2788
+ providers: [],
2789
+ }]
2790
+ }] });
2791
+
2792
+ class AXLabelComponent extends AXBaseComponentMixin {
2793
+ constructor(elementRef, cdr) {
2794
+ super(elementRef, cdr);
2795
+ }
2796
+ }
2797
+ AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2798
+ AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLabelComponent, selector: "ax-label", usesInheritance: true, ngImport: i0, template: "<label>\r\n <ng-content></ng-content>\r\n</label>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelComponent, decorators: [{
2800
+ type: Component,
2801
+ args: [{
2802
+ selector: 'ax-label',
2803
+ templateUrl: './label.component.html',
2804
+ changeDetection: ChangeDetectionStrategy.OnPush,
2805
+ encapsulation: ViewEncapsulation.None
2806
+ }]
2807
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2808
+
2809
+ const COMPONENT$g = [AXLabelComponent];
2810
+ const MODULES$g = [CommonModule];
2811
+ class AXLabelModule {
2812
+ }
2813
+ AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2814
+ AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
2815
+ AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$g]] });
2816
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, decorators: [{
2817
+ type: NgModule,
2818
+ args: [{
2819
+ declarations: [...COMPONENT$g],
2820
+ imports: [...MODULES$g],
2821
+ exports: [...COMPONENT$g],
2822
+ providers: [],
2823
+ }]
2824
+ }] });
2825
+
2826
+ class AXCheckBoxComponent extends AXBaseValueComponentMixin {
2827
+ constructor(elementRef, cdr) {
2828
+ super(elementRef, cdr);
2829
+ }
2830
+ onInit() {
2831
+ super.onInit();
2832
+ ;
2833
+ if (!this.allowNull && this.value == null) {
2834
+ this.value = false;
2835
+ }
2836
+ }
2837
+ _onValueChanging(value) {
2838
+ if (this.allowNull && value == null) {
2839
+ this._stateIndeterminate = true;
2840
+ }
2841
+ else {
2842
+ this._stateIndeterminate = false;
2843
+ value = value == true ? true : false;
2844
+ }
2845
+ return value;
2846
+ }
2847
+ _handleOnClickEvent(e) {
2848
+ ;
2849
+ if (this.readonly || this.disabled) {
2850
+ e.preventDefault();
2851
+ e.stopPropagation();
2852
+ return false;
2853
+ }
2854
+ }
2855
+ }
2856
+ 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 });
2857
+ AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, queries: [{ propertyName: "_hint", predicate: AXFormHintComponent }, { propertyName: "_label", predicate: AXLabelComponent }], usesInheritance: true, ngImport: i0, template: "<!-- <div class=\"ax-wrapper ax-flex ax-flex-row \" [class.ax-items-center]=\"_hint.length==0\"\r\n [class.ax-items-start]=\"_hint.length>=0\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"disabled\">\r\n <input [id]=\"id\" type=\"checkbox\" [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\" [checked]=\"value\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <div class=\"ax-suffix ax-ms-3\" *ngIf=\"_label.length||_hint.length\">\r\n <div *ngIf=\"_label.length\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n </div>\r\n <div *ngIf=\"_hint.length\">\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n </div>\r\n</div> -->\r\n\r\n<div class=\"ax-flex ax-items-start\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id\" class=\"ax-h-4 ax-w-4\" type=\"checkbox\" [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</div>\r\n\r\n<ng-content select=\"ax-validation-rule\"></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 });
2858
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
2859
+ type: Component,
2860
+ args: [{
2861
+ selector: 'ax-check-box',
2862
+ templateUrl: './checkbox.component.html',
2863
+ inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS],
2864
+ outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT],
2865
+ encapsulation: ViewEncapsulation.None,
2866
+ changeDetection: ChangeDetectionStrategy.OnPush,
2867
+ }]
2868
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _hint: [{
2869
+ type: ContentChildren,
2870
+ args: [AXFormHintComponent]
2871
+ }], _label: [{
2872
+ type: ContentChildren,
2873
+ args: [AXLabelComponent]
2597
2874
  }] } });
2598
2875
 
2599
2876
  class AXCheckBoxModule {
@@ -2656,7 +2933,7 @@ class AXDataListComponent extends AXBaseSelectionValueMixin {
2656
2933
  }
2657
2934
  }
2658
2935
  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 });
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 });
2936
+ 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 });
2660
2937
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDataListComponent, decorators: [{
2661
2938
  type: Component,
2662
2939
  args: [{
@@ -2885,7 +3162,7 @@ class AXPopoverComponent extends AXBaseComponent {
2885
3162
  this._subs.push(sub);
2886
3163
  }
2887
3164
  }
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 });
3165
+ 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$1.Overlay }, { token: i2.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
2889
3166
  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
3167
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverComponent, decorators: [{
2891
3168
  type: Component,
@@ -2895,7 +3172,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2895
3172
  encapsulation: ViewEncapsulation.None,
2896
3173
  changeDetection: ChangeDetectionStrategy.OnPush,
2897
3174
  }]
2898
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i2.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
3175
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$1.Overlay }, { type: i2.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
2899
3176
  type: Input
2900
3177
  }], position: [{
2901
3178
  type: Input
@@ -2915,314 +3192,313 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2915
3192
  args: ['document:keydown', ['$event']]
2916
3193
  }] } });
2917
3194
 
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 = [];
3195
+ const AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXCalendarBaseComponent))));
3196
+ class AXDatePickerComponent extends AXBaseDatePickerMixin {
3197
+ constructor(_elementRef, _cdr) {
3198
+ super(_elementRef, _cdr);
3199
+ this.formatChange = new EventEmitter();
3200
+ this._format = 'YYYY-MM-dd';
3201
+ this._target = this._getHostElement();
2941
3202
  }
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
- });
3203
+ get format() {
3204
+ return this._format;
2950
3205
  }
2951
- _emitOnClosedEvent() {
2952
- this.onClosed.emit({
2953
- component: this,
2954
- htmlElement: this._getHostElement()
3206
+ set format(v) {
3207
+ this._setOption({
3208
+ name: 'format',
3209
+ value: v
2955
3210
  });
2956
3211
  }
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);
3212
+ _handleArrowClickEvent(e) {
3213
+ this.toggle();
2986
3214
  }
2987
- toggle() {
2988
- if (this.disabled !== true) {
2989
- this.popover.toggle();
2990
- }
3215
+ _onValueChanged(oldValue, newValue) {
3216
+ this.displayText = newValue ? AXDateTime.convert(newValue).format(this._format) : null;
3217
+ this.close();
2991
3218
  }
2992
- close() {
2993
- if (!this.isOpen || this.disabled) {
2994
- return;
3219
+ _handleOnKeydownEvent(e) {
3220
+ var _a, _b;
3221
+ const ignore = () => {
3222
+ e.preventDefault();
3223
+ e.stopPropagation();
3224
+ };
3225
+ const nums = Array(10).fill(0).map((v, i) => i.toString());
3226
+ const chars = ['Backspace', 'ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft', 'Tab', 'Enter'];
3227
+ const input = e.target;
3228
+ const key = (e.key);
3229
+ const valStr = input.value;
3230
+ const sStart = input.selectionStart;
3231
+ const sEnd = input.selectionEnd;
3232
+ const dateVal = new AXDateTime(this.value);
3233
+ // //
3234
+ if (![...nums, ...chars].includes(key)) {
3235
+ ignore();
2995
3236
  }
2996
- this.popover.close();
2997
- this._emitOnClosedEvent();
2998
- }
2999
- open() {
3000
- if (this.isOpen || this.disabled) {
3001
- return;
3237
+ if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
3238
+ const re = /[a-zA-Z0-9]+/ig;
3239
+ const next = Array.from(valStr.substr(sEnd).matchAll(re));
3240
+ const prev = Array.from(valStr.substring(0, sStart).matchAll(re));
3241
+ ignore();
3242
+ this._highlightPart(input, (e.key === 'ArrowRight' ? (sEnd + (((_a = next[0]) === null || _a === void 0 ? void 0 : _a.index) || 0)) : ((_b = prev[prev.length - 1]) === null || _b === void 0 ? void 0 : _b.index)));
3243
+ }
3244
+ else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
3245
+ const re = /[a-zA-Z0-9]+/ig;
3246
+ const sign = e.key === 'ArrowUp' ? +1 : -1;
3247
+ const parts = Array.from(this.format.matchAll(re));
3248
+ const word = valStr.substring(sStart, sEnd);
3249
+ const part = parts[Array.from(valStr.matchAll(re)).findIndex(c => c[0] == word)];
3250
+ if (part) {
3251
+ switch (part[0]) {
3252
+ case 'dd':
3253
+ case 'DD':
3254
+ this.value = dateVal.add('day', sign).date;
3255
+ break;
3256
+ case 'mm':
3257
+ case 'MMM':
3258
+ case 'MMMM':
3259
+ this.value = dateVal.add('month', sign).date;
3260
+ break;
3261
+ case 'yy':
3262
+ case 'YYYY':
3263
+ this.value = dateVal.add('year', sign).date;
3264
+ break;
3265
+ }
3266
+ setTimeout(() => {
3267
+ this._highlightPart(input, sEnd - 1);
3268
+ }, Math.max(10, this.debounceTime));
3269
+ }
3270
+ ignore();
3002
3271
  }
3003
- this.popover.open();
3004
- this._emitOnOpenedEvent();
3005
- }
3006
- get isOpen() {
3007
- return this.popover.isOpen;
3272
+ else if (e.key == 'Backspace') {
3273
+ if (this.allowNull) {
3274
+ this.value = null;
3275
+ }
3276
+ ignore();
3277
+ }
3278
+ // else if (nums.includes(key)) {
3279
+ // }
3280
+ // super._emitOnKeydownEvent(e);
3008
3281
  }
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;
3282
+ _handleOnInputClickEvent(e) {
3283
+ const input = e.target;
3284
+ this._highlightPart(input);
3285
+ e.preventDefault();
3286
+ e.stopPropagation();
3030
3287
  }
3031
- _handleArrowClickEvent() {
3032
- this.toggle();
3288
+ _highlightPart(input, pos) {
3289
+ const { start, end } = AXStringUtil.getWordBoundsAtPosition(input.value, pos != null ? pos : input.selectionStart);
3290
+ input.setSelectionRange(start, end);
3033
3291
  }
3034
3292
  }
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: [{
3293
+ 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 });
3294
+ AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", placeholder: "placeholder", maxLength: "maxLength", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [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)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleArrowClickEvent($event)\">\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<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [style.min-width.px]=\"dropdownWidth\">\r\n <ax-calendar \r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [(value)]=\"value\"\r\n (onValueChanged)=\"_emitOnValueChangedEvent($event)\"\r\n [min]=\"min\"\r\n [min]=\"max\"\r\n [disabledDates]=\"disabledDates\"\r\n [holidayDates]=\"holidayDates\"\r\n [depth]=\"depth\"\r\n >\r\n\r\n </ax-calendar>\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"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "holidayDates"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange"] }], 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.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 });
3295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatePickerComponent, decorators: [{
3038
3296
  type: Component,
3039
3297
  args: [{
3040
- selector: 'ax-drop-down',
3041
- templateUrl: 'dropdown.component.html',
3042
- inputs: ['disabled', 'tabIndex', 'size', 'fitParent'],
3298
+ selector: 'ax-date-picker',
3299
+ templateUrl: './datepicker.component.html',
3300
+ inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS],
3301
+ outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS],
3302
+ changeDetection: ChangeDetectionStrategy.OnPush,
3043
3303
  encapsulation: ViewEncapsulation.None,
3044
- changeDetection: ChangeDetectionStrategy.OnPush
3304
+ host: { class: 'ax-editor-container ax-drop-down' }
3045
3305
  }]
3046
3306
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
3047
3307
  type: ViewChild,
3048
3308
  args: [AXPopoverComponent]
3309
+ }], formatChange: [{
3310
+ type: Output
3311
+ }], format: [{
3312
+ type: Input
3049
3313
  }] } });
3050
3314
 
3051
- class AXDatepickerComponent extends AXBaseTextBoxMixin {
3052
- constructor(elementRef, cdr) {
3053
- super(elementRef, cdr);
3054
- this.dayItems = new Array(32);
3055
- this.yearItems = [1990];
3056
- this.monthItems = [
3057
- 'January',
3058
- 'February',
3059
- 'March',
3060
- 'April',
3061
- 'May',
3062
- 'June',
3063
- 'July',
3064
- 'August',
3065
- 'September',
3066
- 'October',
3067
- 'November',
3068
- 'December',
3069
- ];
3070
- this._showDays = true;
3071
- this._showsMonths = false;
3072
- this._showYears = false;
3073
- this.createYears();
3315
+ class AXPopoverModule {
3316
+ }
3317
+ AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3318
+ AXPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
3319
+ AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
3320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopoverModule, decorators: [{
3321
+ type: NgModule,
3322
+ args: [{
3323
+ declarations: [AXPopoverComponent],
3324
+ imports: [CommonModule],
3325
+ exports: [AXPopoverComponent],
3326
+ providers: []
3327
+ }]
3328
+ }] });
3329
+
3330
+ class AXInputMaskComponent {
3331
+ constructor() {
3332
+ this.showMaskTyped = false;
3333
+ this.clearIfNotMatch = false;
3074
3334
  }
3075
- showMonths() {
3076
- this._showDays = false;
3077
- this._showYears = false;
3078
- this._showsMonths = true;
3335
+ get prefix() {
3336
+ return this._prefix || '';
3079
3337
  }
3080
- showYears() {
3081
- this._showsMonths = false;
3082
- this._showDays = false;
3083
- this._showYears = true;
3338
+ set prefix(v) {
3339
+ this._prefix = v;
3084
3340
  }
3085
- showDays() {
3086
- this._showYears = false;
3087
- this._showsMonths = false;
3088
- this._showDays = true;
3341
+ get suffix() {
3342
+ return this._suffix || '';
3089
3343
  }
3090
- createYears() {
3091
- let number = 1990;
3092
- for (let i = 0; i < 40; i++) {
3093
- number = number + 1;
3094
- this.yearItems.push(number);
3095
- }
3344
+ set suffix(v) {
3345
+ this._suffix = v;
3096
3346
  }
3097
3347
  }
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 });
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 });
3100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerComponent, decorators: [{
3348
+ AXInputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3349
+ AXInputMaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXInputMaskComponent, selector: "ax-input-mask", inputs: { prefix: "prefix", suffix: "suffix", showMaskTyped: "showMaskTyped", clearIfNotMatch: "clearIfNotMatch", mask: "mask" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskComponent, decorators: [{
3101
3351
  type: Component,
3102
3352
  args: [{
3103
- selector: 'ax-date-picker',
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
- ],
3353
+ selector: 'ax-input-mask',
3354
+ template: '',
3120
3355
  changeDetection: ChangeDetectionStrategy.OnPush,
3121
3356
  encapsulation: ViewEncapsulation.None,
3122
3357
  }]
3123
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
3358
+ }], propDecorators: { prefix: [{
3359
+ type: Input
3360
+ }], suffix: [{
3361
+ type: Input
3362
+ }], showMaskTyped: [{
3363
+ type: Input
3364
+ }], clearIfNotMatch: [{
3365
+ type: Input
3366
+ }], mask: [{
3367
+ type: Input
3368
+ }] } });
3124
3369
 
3125
- class AXDropdownPanelComponent extends AXBaseDropDownComponent {
3126
- constructor(elementRef, cdr, _parent) {
3370
+ const COMPONENT$e = [AXInputMaskComponent];
3371
+ const MODULES$e = [CommonModule, NgxMaskModule.forRoot()];
3372
+ class AXInputMaskModule {
3373
+ }
3374
+ AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3375
+ 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] });
3376
+ AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$e]] });
3377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, decorators: [{
3378
+ type: NgModule,
3379
+ args: [{
3380
+ declarations: [...COMPONENT$e],
3381
+ imports: [...MODULES$e],
3382
+ exports: [...COMPONENT$e],
3383
+ providers: [],
3384
+ }]
3385
+ }] });
3386
+
3387
+ /**
3388
+ * The Textbox is a component which detects user interaction and triggers a corresponding event
3389
+ *
3390
+ * @category Components
3391
+ */
3392
+ class AXTextBoxComponent extends AXBaseTextBoxMixin {
3393
+ /**
3394
+ * @ignore
3395
+ */
3396
+ constructor(elementRef, cdr) {
3127
3397
  super(elementRef, cdr);
3128
- this._parent = _parent;
3129
- this.onItemClick = new EventEmitter();
3130
- this._needBorder = false;
3131
- this._subs = [];
3132
- this._target = this._parent._getHostElement();
3133
- }
3134
- get items() {
3135
- return this._items || [];
3136
- }
3137
- set items(v) {
3138
- this._items = v;
3139
- this._cdr.markForCheck();
3140
- }
3141
- _getAllButtons() {
3142
- return [...Array.from(this._viewButtons), ...Array.from(this._contentButtons)];
3143
- }
3144
- onViewInit() {
3145
- super.onViewInit();
3146
- this._getAllButtons().forEach(c => {
3147
- this._needBorder = true;
3148
- this._subs.push(c.onClick.subscribe(this._handleOnItemClick.bind(this)));
3149
- this._cdr.markForCheck();
3150
- });
3151
- }
3152
- onDestroy() {
3153
- this._subs.forEach(s => {
3154
- s === null || s === void 0 ? void 0 : s.unsubscribe();
3155
- });
3156
- }
3157
- _emitOnItemClickEvent(e, item) {
3158
- this.onItemClick.emit({
3159
- component: this,
3160
- htmlElement: this._getHostElement(),
3161
- nativeEvent: e.nativeEvent,
3162
- name: item.name,
3163
- data: item.data,
3164
- });
3165
3398
  }
3166
- _handleOnItemClick(e) {
3167
- this.close();
3168
- this._emitOnItemClickEvent(e, e.component);
3399
+ //TODO: prefix suffix text
3400
+ get hostClass() {
3401
+ return `${this.cssClass} ax-${this.size}`;
3169
3402
  }
3170
- }
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 });
3173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
3403
+ }
3404
+ 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 });
3405
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3406
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxComponent, decorators: [{
3174
3407
  type: Component,
3175
3408
  args: [{
3176
- selector: 'ax-dropdown-panel',
3177
- templateUrl: './dropdown-panel.component.html',
3178
- changeDetection: ChangeDetectionStrategy.OnPush,
3409
+ selector: 'ax-text-box',
3410
+ templateUrl: 'textbox.component.html',
3411
+ inputs: [
3412
+ 'disabled',
3413
+ 'readonly',
3414
+ 'tabIndex',
3415
+ 'cssClass',
3416
+ 'size',
3417
+ ...TEXTBOX_INPUTS,
3418
+ ],
3419
+ outputs: [
3420
+ 'valueChange',
3421
+ 'onValueChanged',
3422
+ 'onBlur',
3423
+ 'onFocus',
3424
+ ...TEXTBOX_OUTPUT,
3425
+ ],
3179
3426
  encapsulation: ViewEncapsulation.None,
3427
+ changeDetection: ChangeDetectionStrategy.OnPush,
3428
+ host: { class: 'ax-text-box ax-editor-container' },
3180
3429
  }]
3181
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXButtonComponent, decorators: [{
3182
- type: Optional
3183
- }] }]; }, propDecorators: { _contentButtons: [{
3184
- type: ContentChildren,
3185
- args: [AXButtonItemComponent]
3186
- }], _viewButtons: [{
3187
- type: ViewChildren,
3188
- args: [AXButtonItemComponent]
3189
- }], onItemClick: [{
3190
- type: Output
3191
- }], popover: [{
3192
- type: ViewChild,
3193
- args: [AXPopoverComponent]
3194
- }], items: [{
3195
- type: Input
3430
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentMask: [{
3431
+ type: ContentChild,
3432
+ args: [AXInputMaskComponent]
3433
+ }], hostClass: [{
3434
+ type: HostBinding,
3435
+ args: ['class']
3196
3436
  }] } });
3197
3437
 
3198
- class AXDropdownModule {
3438
+ class AXTextBoxModule {
3199
3439
  }
3200
- AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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]] });
3203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, decorators: [{
3440
+ AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3441
+ AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
3442
+ FormsModule,
3443
+ AXButtonModule,
3444
+ AXEditorDecoratorModule,
3445
+ AXIconModule, i1$2.NgxMaskModule], exports: [AXTextBoxComponent] });
3446
+ AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
3447
+ CommonModule,
3448
+ FormsModule,
3449
+ AXButtonModule,
3450
+ AXEditorDecoratorModule,
3451
+ AXIconModule,
3452
+ NgxMaskModule.forChild()
3453
+ ]] });
3454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, decorators: [{
3204
3455
  type: NgModule,
3205
3456
  args: [{
3206
- imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
3207
- exports: [AXDropdownComponent, AXDropdownPanelComponent],
3208
- declarations: [AXDropdownComponent, AXDropdownPanelComponent],
3457
+ imports: [
3458
+ CommonModule,
3459
+ FormsModule,
3460
+ AXButtonModule,
3461
+ AXEditorDecoratorModule,
3462
+ AXIconModule,
3463
+ NgxMaskModule.forChild()
3464
+ ],
3465
+ exports: [AXTextBoxComponent],
3466
+ declarations: [AXTextBoxComponent],
3209
3467
  providers: [],
3210
3468
  }]
3211
3469
  }] });
3212
3470
 
3213
- const COMPONENT$e = [AXDatepickerComponent];
3214
- const MODULES$e = [CommonModule, AXCalendarModule, AXDropdownModule];
3471
+ const COMPONENT$d = [AXDatePickerComponent];
3472
+ const MODULES$d = [
3473
+ CommonModule,
3474
+ AXCalendarModule,
3475
+ AXTextBoxModule,
3476
+ AXButtonModule,
3477
+ AXPopoverModule,
3478
+ AXEditorDecoratorModule,
3479
+ AXIconModule,
3480
+ AXDateTimeModule,
3481
+ FormsModule
3482
+ ];
3215
3483
  class AXDatepickerModule {
3216
3484
  }
3217
3485
  AXDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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] });
3219
- AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
3486
+ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, declarations: [AXDatePickerComponent], imports: [CommonModule,
3487
+ AXCalendarModule,
3488
+ AXTextBoxModule,
3489
+ AXButtonModule,
3490
+ AXPopoverModule,
3491
+ AXEditorDecoratorModule,
3492
+ AXIconModule,
3493
+ AXDateTimeModule,
3494
+ FormsModule], exports: [AXDatePickerComponent] });
3495
+ AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$d]] });
3220
3496
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDatepickerModule, decorators: [{
3221
3497
  type: NgModule,
3222
3498
  args: [{
3223
- declarations: [...COMPONENT$e],
3224
- imports: [...MODULES$e],
3225
- exports: [...COMPONENT$e],
3499
+ declarations: [...COMPONENT$d],
3500
+ imports: [...MODULES$d],
3501
+ exports: [...COMPONENT$d],
3226
3502
  providers: [],
3227
3503
  }]
3228
3504
  }] });
@@ -3254,7 +3530,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
3254
3530
  }
3255
3531
  }
3256
3532
  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 });
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 });
3533
+ 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 <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: 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 });
3258
3534
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogComponent, decorators: [{
3259
3535
  type: Component,
3260
3536
  args: [{
@@ -3398,12 +3674,12 @@ class AXDialogService {
3398
3674
  };
3399
3675
  }
3400
3676
  }
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 });
3677
+ AXDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i1$1.ScrollStrategyOptions }], target: i0.ɵɵFactoryTarget.Injectable });
3402
3678
  AXDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, providedIn: 'root' });
3403
3679
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogService, decorators: [{
3404
3680
  type: Injectable,
3405
3681
  args: [{ providedIn: 'root' }]
3406
- }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }, { type: i1.ScrollStrategyOptions }]; } });
3682
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i1$1.ScrollStrategyOptions }]; } });
3407
3683
 
3408
3684
  class AXLoadingComponent extends AXBaseComponentMixin {
3409
3685
  /**
@@ -3433,7 +3709,7 @@ class AXLoadingComponent extends AXBaseComponentMixin {
3433
3709
  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 });
3434
3710
  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: `
3435
3711
  <ng-template [cdkPortalOutlet]="_selectedPortal" ></ng-template>
3436
- `, isInline: true, directives: [{ type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3712
+ `, isInline: true, directives: [{ type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3437
3713
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, decorators: [{
3438
3714
  type: Component,
3439
3715
  args: [{
@@ -3547,8 +3823,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
3547
3823
  args: ['axIsLoading']
3548
3824
  }] } });
3549
3825
 
3550
- const COMPONENT$d = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3551
- const MODULES$d = [CommonModule, OverlayModule, PortalModule];
3826
+ const COMPONENT$c = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3827
+ const MODULES$c = [CommonModule, OverlayModule, PortalModule];
3552
3828
  class AXLoadingModule {
3553
3829
  constructor() {
3554
3830
  AXConfig.set({
@@ -3562,13 +3838,13 @@ class AXLoadingModule {
3562
3838
  }
3563
3839
  AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3564
3840
  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] });
3565
- AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$d]] });
3841
+ AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$c]] });
3566
3842
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, decorators: [{
3567
3843
  type: NgModule,
3568
3844
  args: [{
3569
- declarations: [...COMPONENT$d],
3570
- imports: [...MODULES$d],
3571
- exports: [...COMPONENT$d],
3845
+ declarations: [...COMPONENT$c],
3846
+ imports: [...MODULES$c],
3847
+ exports: [...COMPONENT$c],
3572
3848
  providers: [],
3573
3849
  }]
3574
3850
  }], ctorParameters: function () { return []; } });
@@ -3601,17 +3877,17 @@ class DynamicOverlay extends Overlay {
3601
3877
  return super.create(config);
3602
3878
  }
3603
3879
  }
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 });
3880
+ 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 });
3605
3881
  DynamicOverlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicOverlay, providedIn: 'root' });
3606
3882
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicOverlay, decorators: [{
3607
3883
  type: Injectable,
3608
3884
  args: [{
3609
3885
  providedIn: 'root'
3610
3886
  }]
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: [{
3887
+ }], 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: [{
3612
3888
  type: Inject,
3613
3889
  args: [DOCUMENT]
3614
- }] }, { type: i2$2.Directionality }, { type: i0.RendererFactory2 }, { type: i4.Location }, { type: i1.OverlayOutsideClickDispatcher }]; } });
3890
+ }] }, { type: i2$2.Directionality }, { type: i0.RendererFactory2 }, { type: i1.Location }, { type: i1$1.OverlayOutsideClickDispatcher }]; } });
3615
3891
 
3616
3892
  class AXOverlayService {
3617
3893
  constructor(overlayService, overlayService2, appRef) {
@@ -3691,12 +3967,12 @@ class AXOverlayService {
3691
3967
  };
3692
3968
  }
3693
3969
  }
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 });
3970
+ 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 });
3695
3971
  AXOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXOverlayService, providedIn: 'root' });
3696
3972
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXOverlayService, decorators: [{
3697
3973
  type: Injectable,
3698
3974
  args: [{ providedIn: 'root' }]
3699
- }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1.Overlay }, { type: i0.ApplicationRef }]; } });
3975
+ }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$1.Overlay }, { type: i0.ApplicationRef }]; } });
3700
3976
 
3701
3977
  const DEFAULT_LOADER_ID = '_DEFAULT';
3702
3978
  /**
@@ -3880,24 +4156,20 @@ class AXPageFooterComponent {
3880
4156
  }
3881
4157
  AXPageFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3882
4158
  AXPageFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPageFooterComponent, selector: "ax-page-footer", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
3883
- <ng-template>
3884
- <ng-content select="ax-prefix">
4159
+ <ng-content select="ax-prefix">
3885
4160
  </ng-content>
3886
4161
  <ng-content select="ax-suffix">
3887
4162
  </ng-content>
3888
- </ng-template>
3889
4163
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3890
4164
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPageFooterComponent, decorators: [{
3891
4165
  type: Component,
3892
4166
  args: [{
3893
4167
  selector: 'ax-page-footer',
3894
4168
  template: `
3895
- <ng-template>
3896
- <ng-content select="ax-prefix">
4169
+ <ng-content select="ax-prefix">
3897
4170
  </ng-content>
3898
4171
  <ng-content select="ax-suffix">
3899
4172
  </ng-content>
3900
- </ng-template>
3901
4173
  `,
3902
4174
  changeDetection: ChangeDetectionStrategy.OnPush
3903
4175
  }]
@@ -3938,6 +4210,7 @@ class AXBasePageComponent {
3938
4210
  return this._isLoading;
3939
4211
  }
3940
4212
  set isLoading(v) {
4213
+ ;
3941
4214
  this._isLoading = v;
3942
4215
  if (this.pageContainer) {
3943
4216
  this.pageContainer.isLoading = this.isLoading;
@@ -3982,19 +4255,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
3982
4255
  }]
3983
4256
  }] });
3984
4257
 
3985
- const COMPONENT$c = [AXDialogComponent];
3986
- const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
4258
+ const COMPONENT$b = [AXDialogComponent];
4259
+ const MODULES$b = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
3987
4260
  class AXDialogModule {
3988
4261
  }
3989
4262
  AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3990
4263
  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] });
3991
- AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
4264
+ AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$b]] });
3992
4265
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDialogModule, decorators: [{
3993
4266
  type: NgModule,
3994
4267
  args: [{
3995
- declarations: [...COMPONENT$c],
3996
- imports: [...MODULES$c],
3997
- exports: [...COMPONENT$c],
4268
+ declarations: [...COMPONENT$b],
4269
+ imports: [...MODULES$b],
4270
+ exports: [...COMPONENT$b],
3998
4271
  providers: [],
3999
4272
  }]
4000
4273
  }] });
@@ -4234,168 +4507,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4234
4507
  }]
4235
4508
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4236
4509
 
4237
- const COMPONENT$b = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
4238
- const MODULES$b = [CommonModule];
4510
+ const COMPONENT$a = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
4511
+ const MODULES$a = [CommonModule];
4239
4512
  class AXDrawerModule {
4240
4513
  }
4241
- AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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] });
4243
- AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$b]] });
4244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, decorators: [{
4245
- type: NgModule,
4246
- args: [{
4247
- declarations: [...COMPONENT$b],
4248
- imports: [...MODULES$b],
4249
- exports: [...COMPONENT$b],
4250
- providers: [],
4251
- }]
4252
- }] });
4253
-
4254
- class AXFormFieldComponent extends AXBaseComponentMixin {
4255
- constructor(elementRef, cdr) {
4256
- super(elementRef, cdr);
4257
- }
4258
- }
4259
- AXFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormFieldComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4260
- AXFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormFieldComponent, selector: "ax-form-field", usesInheritance: true, ngImport: i0, template: '<div class="ax-form-field"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormFieldComponent, decorators: [{
4262
- type: Component,
4263
- args: [{
4264
- selector: 'ax-form-field',
4265
- template: '<div class="ax-form-field"><ng-content></ng-content></div>',
4266
- encapsulation: ViewEncapsulation.None,
4267
- changeDetection: ChangeDetectionStrategy.OnPush,
4268
- }]
4269
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4270
-
4271
- class AXFormHintComponent extends AXBaseComponentMixin {
4272
- constructor(elementRef, cdr) {
4273
- super(elementRef, cdr);
4274
- }
4275
- }
4276
- AXFormHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormHintComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4277
- AXFormHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0, template: ' <p class="ax-text-gray-400 ax-text-xs ax-py-1"><ng-content></ng-content></p>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormHintComponent, decorators: [{
4279
- type: Component,
4280
- args: [{
4281
- selector: 'ax-form-hint',
4282
- template: ' <p class="ax-text-gray-400 ax-text-xs ax-py-1"><ng-content></ng-content></p>',
4283
- encapsulation: ViewEncapsulation.None,
4284
- changeDetection: ChangeDetectionStrategy.OnPush,
4285
- }]
4286
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4287
-
4288
- class AXFormComponent extends AXBaseComponentMixin {
4289
- constructor(elementRef, cdr) {
4290
- super(elementRef, cdr);
4291
- this.cdr = cdr;
4292
- }
4293
- _getComponenets() {
4294
- return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
4295
- }
4296
- validate() {
4297
- const widgets = this._getComponenets();
4298
- //
4299
- return new Promise((resolve, reject) => {
4300
- if (widgets.length === 0) {
4301
- return Promise.resolve({ result: true });
4302
- }
4303
- Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
4304
- const failed = rules.filter((c) => !c.result);
4305
- if (failed.length) {
4306
- reject({
4307
- result: false,
4308
- items: failed
4309
- });
4310
- }
4311
- else {
4312
- resolve({ result: true });
4313
- }
4314
- });
4315
- });
4316
- }
4317
- clear() {
4318
- const widgets = this._getComponenets();
4319
- widgets.forEach(w => {
4320
- w.__axContext__.clear();
4321
- });
4322
- }
4323
- }
4324
- AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4325
- AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<div class="ax-form"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormComponent, decorators: [{
4327
- type: Component,
4328
- args: [{
4329
- selector: 'ax-form',
4330
- template: '<div class="ax-form"><ng-content></ng-content></div>',
4331
- encapsulation: ViewEncapsulation.None,
4332
- changeDetection: ChangeDetectionStrategy.OnPush,
4333
- }]
4334
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4335
-
4336
- class AXFormModule {
4337
- }
4338
- AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4339
- AXFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent], imports: [CommonModule], exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent] });
4340
- AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, providers: [], imports: [[CommonModule]] });
4341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXFormModule, decorators: [{
4342
- type: NgModule,
4343
- args: [{
4344
- imports: [CommonModule],
4345
- exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
4346
- declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
4347
- providers: [],
4348
- }]
4349
- }] });
4350
-
4351
- class AXInputMaskComponent {
4352
- constructor() {
4353
- this.showMaskTyped = false;
4354
- this.clearIfNotMatch = false;
4355
- }
4356
- get prefix() {
4357
- return this._prefix || '';
4358
- }
4359
- set prefix(v) {
4360
- this._prefix = v;
4361
- }
4362
- get suffix() {
4363
- return this._suffix || '';
4364
- }
4365
- set suffix(v) {
4366
- this._suffix = v;
4367
- }
4368
- }
4369
- AXInputMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4370
- AXInputMaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXInputMaskComponent, selector: "ax-input-mask", inputs: { prefix: "prefix", suffix: "suffix", showMaskTyped: "showMaskTyped", clearIfNotMatch: "clearIfNotMatch", mask: "mask" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4371
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskComponent, decorators: [{
4372
- type: Component,
4373
- args: [{
4374
- selector: 'ax-input-mask',
4375
- template: '',
4376
- changeDetection: ChangeDetectionStrategy.OnPush,
4377
- encapsulation: ViewEncapsulation.None,
4378
- }]
4379
- }], propDecorators: { prefix: [{
4380
- type: Input
4381
- }], suffix: [{
4382
- type: Input
4383
- }], showMaskTyped: [{
4384
- type: Input
4385
- }], clearIfNotMatch: [{
4386
- type: Input
4387
- }], mask: [{
4388
- type: Input
4389
- }] } });
4390
-
4391
- const COMPONENT$a = [AXInputMaskComponent];
4392
- const MODULES$a = [CommonModule, NgxMaskModule.forRoot()];
4393
- class AXInputMaskModule {
4394
- }
4395
- AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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]] });
4398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXInputMaskModule, decorators: [{
4514
+ AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4515
+ 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] });
4516
+ AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$a]] });
4517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDrawerModule, decorators: [{
4399
4518
  type: NgModule,
4400
4519
  args: [{
4401
4520
  declarations: [...COMPONENT$a],
@@ -4405,36 +4524,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4405
4524
  }]
4406
4525
  }] });
4407
4526
 
4408
- class AXLabelComponent extends AXSizableComponentMixin {
4409
- constructor(elementRef, cdr) {
4527
+ class AXDropdownComponent extends AXBaseDropdownMixin {
4528
+ constructor(_elementRef, _cdr) {
4529
+ super(_elementRef, _cdr);
4530
+ this._target = this;
4531
+ }
4532
+ _handleArrowClickEvent() {
4533
+ this.toggle();
4534
+ }
4535
+ }
4536
+ 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 });
4537
+ AXDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownComponent, selector: "ax-drop-down", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus" }, 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 });
4538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownComponent, decorators: [{
4539
+ type: Component,
4540
+ args: [{
4541
+ selector: 'ax-drop-down',
4542
+ templateUrl: './dropdown.component.html',
4543
+ inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS],
4544
+ outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT],
4545
+ encapsulation: ViewEncapsulation.None,
4546
+ changeDetection: ChangeDetectionStrategy.OnPush
4547
+ }]
4548
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
4549
+ type: ViewChild,
4550
+ args: [AXPopoverComponent]
4551
+ }] } });
4552
+
4553
+ class AXDropdownPanelComponent extends AXBaseDropdownMixin {
4554
+ constructor(elementRef, cdr, _parent) {
4410
4555
  super(elementRef, cdr);
4556
+ this._parent = _parent;
4557
+ this.onItemClick = new EventEmitter();
4558
+ this._needBorder = false;
4559
+ this._subs = [];
4560
+ this._target = this._parent._getHostElement();
4561
+ }
4562
+ get items() {
4563
+ return this._items || [];
4564
+ }
4565
+ set items(v) {
4566
+ this._items = v;
4567
+ this._cdr.markForCheck();
4568
+ }
4569
+ _getAllButtons() {
4570
+ return [...Array.from(this._viewButtons), ...Array.from(this._contentButtons)];
4571
+ }
4572
+ onViewInit() {
4573
+ super.onViewInit();
4574
+ this._getAllButtons().forEach(c => {
4575
+ this._needBorder = true;
4576
+ this._subs.push(c.onClick.subscribe(this._handleOnItemClick.bind(this)));
4577
+ this._cdr.markForCheck();
4578
+ });
4579
+ }
4580
+ onDestroy() {
4581
+ this._subs.forEach(s => {
4582
+ s === null || s === void 0 ? void 0 : s.unsubscribe();
4583
+ });
4584
+ }
4585
+ _emitOnItemClickEvent(e, item) {
4586
+ this.onItemClick.emit({
4587
+ component: this,
4588
+ htmlElement: this._getHostElement(),
4589
+ nativeEvent: e.nativeEvent,
4590
+ name: item.name,
4591
+ data: item.data,
4592
+ });
4593
+ }
4594
+ _handleOnItemClick(e) {
4595
+ this.close();
4596
+ this._emitOnItemClickEvent(e, e.component);
4411
4597
  }
4412
4598
  }
4413
- AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4414
- AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLabelComponent, selector: "ax-label", usesInheritance: true, ngImport: i0, template: "<label class=\"ax-label {{size}}\">\r\n <ng-content></ng-content>\r\n</label>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelComponent, decorators: [{
4599
+ 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 });
4600
+ AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", items: "items" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", 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: 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 });
4601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
4416
4602
  type: Component,
4417
4603
  args: [{
4418
- selector: 'ax-label',
4419
- templateUrl: './label.component.html',
4604
+ selector: 'ax-dropdown-panel',
4605
+ templateUrl: './dropdown-panel.component.html',
4420
4606
  changeDetection: ChangeDetectionStrategy.OnPush,
4421
- encapsulation: ViewEncapsulation.None
4607
+ encapsulation: ViewEncapsulation.None,
4608
+ inputs: [...DROPDOWN_INPUTS],
4609
+ outputs: [...DROPDOWN_OUTPUT],
4422
4610
  }]
4423
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4611
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXButtonComponent, decorators: [{
4612
+ type: Optional
4613
+ }] }]; }, propDecorators: { _contentButtons: [{
4614
+ type: ContentChildren,
4615
+ args: [AXButtonItemComponent]
4616
+ }], _viewButtons: [{
4617
+ type: ViewChildren,
4618
+ args: [AXButtonItemComponent]
4619
+ }], onItemClick: [{
4620
+ type: Output
4621
+ }], popover: [{
4622
+ type: ViewChild,
4623
+ args: [AXPopoverComponent]
4624
+ }], items: [{
4625
+ type: Input
4626
+ }] } });
4424
4627
 
4425
- const COMPONENT$9 = [AXLabelComponent];
4426
- const MODULES$9 = [CommonModule];
4427
- class AXLabelModule {
4628
+ class AXDropdownModule {
4428
4629
  }
4429
- AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4430
- AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
4431
- AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$9]] });
4432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLabelModule, decorators: [{
4630
+ AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4631
+ 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] });
4632
+ AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule]] });
4633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXDropdownModule, decorators: [{
4433
4634
  type: NgModule,
4434
4635
  args: [{
4435
- declarations: [...COMPONENT$9],
4436
- imports: [...MODULES$9],
4437
- exports: [...COMPONENT$9],
4636
+ imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
4637
+ exports: [AXDropdownComponent, AXDropdownPanelComponent],
4638
+ declarations: [AXDropdownComponent, AXDropdownPanelComponent],
4438
4639
  providers: [],
4439
4640
  }]
4440
4641
  }] });
@@ -4670,7 +4871,7 @@ class AXNumberBoxComponent extends AXBaseTextBoxMixin {
4670
4871
  }
4671
4872
  }
4672
4873
  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 });
4874
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4674
4875
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
4675
4876
  type: Component,
4676
4877
  args: [{
@@ -4720,8 +4921,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4720
4921
  type: Input
4721
4922
  }] } });
4722
4923
 
4723
- const COMPONENT$8 = [AXNumberBoxComponent];
4724
- const MODULES$8 = [
4924
+ const COMPONENT$9 = [AXNumberBoxComponent];
4925
+ const MODULES$9 = [
4725
4926
  CommonModule,
4726
4927
  FormsModule,
4727
4928
  AXButtonModule,
@@ -4733,13 +4934,13 @@ AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
4733
4934
  AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
4734
4935
  FormsModule,
4735
4936
  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]] });
4937
+ AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$9]] });
4737
4938
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXNumberBoxModule, decorators: [{
4738
4939
  type: NgModule,
4739
4940
  args: [{
4740
- declarations: [...COMPONENT$8],
4741
- imports: [...MODULES$8],
4742
- exports: [...COMPONENT$8],
4941
+ declarations: [...COMPONENT$9],
4942
+ imports: [...MODULES$9],
4943
+ exports: [...COMPONENT$9],
4743
4944
  providers: [],
4744
4945
  }]
4745
4946
  }] });
@@ -4777,7 +4978,7 @@ class AXPasswordBoxComponent extends AXBaseTextBoxMixin {
4777
4978
  }
4778
4979
  }
4779
4980
  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 });
4981
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4781
4982
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxComponent, decorators: [{
4782
4983
  type: Component,
4783
4984
  args: [{
@@ -4809,8 +5010,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4809
5010
  type: Input
4810
5011
  }] } });
4811
5012
 
4812
- const COMPONENT$7 = [AXPasswordBoxComponent];
4813
- const MODULES$7 = [
5013
+ const COMPONENT$8 = [AXPasswordBoxComponent];
5014
+ const MODULES$8 = [
4814
5015
  CommonModule,
4815
5016
  FormsModule,
4816
5017
  AXButtonModule,
@@ -4825,20 +5026,21 @@ AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
4825
5026
  AXButtonModule,
4826
5027
  AXEditorDecoratorModule,
4827
5028
  AXIconModule], exports: [AXPasswordBoxComponent] });
4828
- AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
5029
+ AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$8]] });
4829
5030
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
4830
5031
  type: NgModule,
4831
5032
  args: [{
4832
- declarations: [...COMPONENT$7],
4833
- imports: [...MODULES$7],
4834
- exports: [...COMPONENT$7],
5033
+ declarations: [...COMPONENT$8],
5034
+ imports: [...MODULES$8],
5035
+ exports: [...COMPONENT$8],
4835
5036
  providers: [],
4836
5037
  }]
4837
5038
  }] });
4838
5039
 
4839
5040
  class AXPopupComponent extends AXBaseComponentMixin {
4840
- constructor(elementRef, cdr, _viewContainerRef, loadingService) {
5041
+ constructor(elementRef, cdr, _zone, _viewContainerRef, loadingService) {
4841
5042
  super(elementRef, cdr);
5043
+ this._zone = _zone;
4842
5044
  this._viewContainerRef = _viewContainerRef;
4843
5045
  this.loadingService = loadingService;
4844
5046
  this.isLoading = true;
@@ -4878,9 +5080,16 @@ class AXPopupComponent extends AXBaseComponentMixin {
4878
5080
  });
4879
5081
  }
4880
5082
  }
4881
- if (ref.instance.footer) {
4882
- this._footerPortal = new TemplatePortal(ref.instance.footer.template, this._viewContainerRef, { $implicit: this.data, ref: this });
4883
- }
5083
+ this._zone.runOutsideAngular(() => {
5084
+ const main = this._getHostElement().querySelector('main');
5085
+ const footer = main.querySelector('ax-page-footer');
5086
+ if (footer) {
5087
+ const newFooter = document.createElement('footer');
5088
+ newFooter.append(...Array.from(footer.childNodes));
5089
+ main.after(newFooter);
5090
+ footer.parentNode.removeChild(footer);
5091
+ }
5092
+ });
4884
5093
  this.loadingService.hide(this._loadingId);
4885
5094
  this.focus();
4886
5095
  this._cdr.markForCheck();
@@ -4908,8 +5117,8 @@ class AXPopupComponent extends AXBaseComponentMixin {
4908
5117
  }
4909
5118
  onFullScreen() { }
4910
5119
  }
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 });
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 });
5120
+ 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.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Component });
5121
+ 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 </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$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4913
5122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupComponent, decorators: [{
4914
5123
  type: Component,
4915
5124
  args: [{
@@ -4918,7 +5127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
4918
5127
  changeDetection: ChangeDetectionStrategy.OnPush,
4919
5128
  encapsulation: ViewEncapsulation.None,
4920
5129
  }]
4921
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: AXLoadingService }]; }, propDecorators: { onKeydownHandler: [{
5130
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }]; }, propDecorators: { onKeydownHandler: [{
4922
5131
  type: HostListener,
4923
5132
  args: ['keydown.escape', ['$event']]
4924
5133
  }] } });
@@ -5012,20 +5221,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5012
5221
  type: Injectable
5013
5222
  }], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
5014
5223
 
5015
- const COMPONENT$6 = [AXPopupComponent];
5016
- const MODULES$6 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule];
5224
+ const COMPONENT$7 = [AXPopupComponent];
5225
+ const MODULES$7 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule];
5017
5226
  class AXPopupModule {
5018
5227
  }
5019
5228
  AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5020
5229
  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] });
5021
- AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, providers: [AXPopupService], imports: [[...MODULES$6]] });
5230
+ AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, providers: [AXPopupService], imports: [[...MODULES$7]] });
5022
5231
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXPopupModule, decorators: [{
5232
+ type: NgModule,
5233
+ args: [{
5234
+ declarations: [...COMPONENT$7],
5235
+ imports: [...MODULES$7],
5236
+ exports: [...COMPONENT$7],
5237
+ providers: [AXPopupService],
5238
+ }]
5239
+ }] });
5240
+
5241
+ class AXRadioComponent extends AXBaseComponentMixin {
5242
+ constructor(elementRef, cdr) {
5243
+ super(elementRef, cdr);
5244
+ //TODO: ax-radio
5245
+ }
5246
+ }
5247
+ AXRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRadioComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5248
+ AXRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXRadioComponent, selector: "ax-radio", host: { classAttribute: "ax-radio" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-start\">\n <div class=\"ax-flex ax-items-center ax-h-5\">\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\">\n </div>\n <div class=\"ax-ms-3 ax-text-sm\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRadioComponent, decorators: [{
5250
+ type: Component,
5251
+ args: [{
5252
+ selector: 'ax-radio',
5253
+ templateUrl: './radio.component.html',
5254
+ changeDetection: ChangeDetectionStrategy.OnPush,
5255
+ encapsulation: ViewEncapsulation.None,
5256
+ host: { class: 'ax-radio' }
5257
+ }]
5258
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
5259
+
5260
+ const COMPONENT$6 = [AXRadioComponent];
5261
+ const MODULES$6 = [CommonModule];
5262
+ class AXRadioModule {
5263
+ }
5264
+ AXRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5265
+ AXRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRadioModule, declarations: [AXRadioComponent], imports: [CommonModule], exports: [AXRadioComponent] });
5266
+ AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$6]] });
5267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXRadioModule, decorators: [{
5023
5268
  type: NgModule,
5024
5269
  args: [{
5025
5270
  declarations: [...COMPONENT$6],
5026
5271
  imports: [...MODULES$6],
5027
5272
  exports: [...COMPONENT$6],
5028
- providers: [AXPopupService],
5273
+ providers: [],
5029
5274
  }]
5030
5275
  }] });
5031
5276
 
@@ -5233,7 +5478,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
5233
5478
  }
5234
5479
  }
5235
5480
  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 });
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 });
5481
+ 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: ["isOpen", "fitParent", "dropdownWidth", "position", "disabled", "tabIndex"], outputs: ["onOpened", "onClosed", "onBlur", "onFocus"] }, { 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", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5237
5482
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
5238
5483
  type: Component,
5239
5484
  args: [{
@@ -5287,7 +5532,7 @@ class AXSelectionListComponent extends AXBaseSelectionValueMixin {
5287
5532
  }
5288
5533
  }
5289
5534
  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 });
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 });
5535
+ 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 dark:ax-text-light-100\"> {{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 dark:ax-text-light-100\"> {{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: 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 });
5291
5536
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXSelectionListComponent, decorators: [{
5292
5537
  type: Component,
5293
5538
  args: [{
@@ -5581,10 +5826,11 @@ class AXTabItemComponent extends AXBaseClickableMixin {
5581
5826
  this._active = v;
5582
5827
  this.activeChange.emit(v);
5583
5828
  v ? this._getHostElement().classList.add('ax-state-active') : this._getHostElement().classList.remove('ax-state-active');
5829
+ this._cdr.detectChanges();
5584
5830
  }
5585
5831
  // @HostBinding('class')
5586
5832
  // private get __hostClass(): string {
5587
- // debugger;
5833
+ // ;
5588
5834
  // const classes: any = {
5589
5835
  // 'ax-state-active': this.active
5590
5836
  // }
@@ -5599,27 +5845,37 @@ class AXTabItemComponent extends AXBaseClickableMixin {
5599
5845
  }
5600
5846
  }
5601
5847
  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: `
5848
+ 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)" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
5849
+ <ng-container *ngIf="headerTemplate;else header">
5850
+ <ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ $implicit: {text,active} }"></ng-container>
5851
+ </ng-container>
5852
+ <ng-template #header>
5603
5853
  <ng-content select="ax-prefix"></ng-content>
5604
5854
  <span>{{text}}</span>
5605
5855
  <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 });
5856
+ </ng-template>
5857
+ <ng-template #content>
5858
+ <ng-content select="ax-content">
5859
+ </ng-content>
5860
+ </ng-template>
5861
+ `, isInline: true, directives: [{ 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 });
5611
5862
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabItemComponent, decorators: [{
5612
5863
  type: Component,
5613
5864
  args: [{
5614
5865
  selector: 'ax-tab-item',
5615
5866
  template: `
5867
+ <ng-container *ngIf="headerTemplate;else header">
5868
+ <ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ $implicit: {text,active} }"></ng-container>
5869
+ </ng-container>
5870
+ <ng-template #header>
5616
5871
  <ng-content select="ax-prefix"></ng-content>
5617
5872
  <span>{{text}}</span>
5618
5873
  <ng-content select="ax-suffix"></ng-content>
5619
- <ng-template>
5620
- <ng-content>
5621
- </ng-content>
5622
- </ng-template>
5874
+ </ng-template>
5875
+ <ng-template #content>
5876
+ <ng-content select="ax-content">
5877
+ </ng-content>
5878
+ </ng-template>
5623
5879
  `,
5624
5880
  changeDetection: ChangeDetectionStrategy.OnPush,
5625
5881
  encapsulation: ViewEncapsulation.None,
@@ -5630,7 +5886,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5630
5886
  type: Input
5631
5887
  }], template: [{
5632
5888
  type: ViewChild,
5633
- args: [TemplateRef]
5889
+ args: ['content']
5890
+ }], headerTemplate: [{
5891
+ type: ContentChild,
5892
+ args: [TemplateRef, { static: true }]
5634
5893
  }], activeChange: [{
5635
5894
  type: Output
5636
5895
  }], active: [{
@@ -5643,11 +5902,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5643
5902
  class AXTabsComponent extends AXBaseComponent {
5644
5903
  constructor(elementRef, cdr) {
5645
5904
  super(elementRef, cdr);
5646
- this.mode = 'default';
5647
- this.direction = "horizontal";
5648
5905
  this.fitParent = false;
5649
5906
  this.minWidth = false;
5650
5907
  }
5908
+ onRenderCssClass() {
5909
+ const classList = Array.from(this._getHostElement().classList);
5910
+ if (!classList.some(c => ['ax-vertical', 'ax-horizontal'].includes(c))) {
5911
+ this._getHostElement().classList.add('ax-horizontal');
5912
+ }
5913
+ if (!classList.some(c => c.startsWith('ax-look-'))) {
5914
+ this._getHostElement().classList.add('ax-look-default');
5915
+ }
5916
+ }
5651
5917
  onViewInit() {
5652
5918
  this._handleSelectionChanged(this._contentTabs.get(0));
5653
5919
  this._contentTabs.forEach(c => {
@@ -5659,22 +5925,18 @@ class AXTabsComponent extends AXBaseComponent {
5659
5925
  _handleSelectionChanged(e) {
5660
5926
  this._contentTabs.filter(c => c != e).forEach(c => { c.active = false; });
5661
5927
  e.active = true;
5662
- this.content.portal = e.template;
5928
+ if (this.content) {
5929
+ this.content.portal = e.template;
5930
+ }
5663
5931
  this._cdr.markForCheck();
5664
5932
  }
5665
- get __hostClass() {
5666
- return [`ax-tabs-${this.mode ? this.mode : 'default'}`, `ax-tabs-${this.direction}`, `${this.fitParent ? 'ax-tabs-fit' : ''}`].join(' ');
5667
- }
5668
5933
  }
5669
5934
  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: `
5935
+ AXTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTabsComponent, selector: "ax-tabs", inputs: { fitParent: "fitParent", minWidth: "minWidth", content: "content" }, queries: [{ propertyName: "_contentTabs", predicate: AXTabItemComponent }], usesInheritance: true, ngImport: i0, template: `
5671
5936
  <div class="ax-items-wrapper">
5672
5937
  <ng-content select="ax-tab-item">
5673
5938
  </ng-content>
5674
5939
  </div>
5675
- <!-- <div [axTabOutlet]="_activeTabView">
5676
-
5677
- </div> -->
5678
5940
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5679
5941
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabsComponent, decorators: [{
5680
5942
  type: Component,
@@ -5685,9 +5947,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5685
5947
  <ng-content select="ax-tab-item">
5686
5948
  </ng-content>
5687
5949
  </div>
5688
- <!-- <div [axTabOutlet]="_activeTabView">
5689
-
5690
- </div> -->
5691
5950
  `,
5692
5951
  changeDetection: ChangeDetectionStrategy.OnPush,
5693
5952
  encapsulation: ViewEncapsulation.None,
@@ -5695,19 +5954,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
5695
5954
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentTabs: [{
5696
5955
  type: ContentChildren,
5697
5956
  args: [AXTabItemComponent]
5698
- }], mode: [{
5699
- type: Input
5700
- }], direction: [{
5701
- type: Input
5702
5957
  }], fitParent: [{
5703
5958
  type: Input
5704
5959
  }], minWidth: [{
5705
5960
  type: Input
5706
5961
  }], content: [{
5707
5962
  type: Input
5708
- }], __hostClass: [{
5709
- type: HostBinding,
5710
- args: ['class']
5711
5963
  }] } });
5712
5964
 
5713
5965
  class AXTabStripChangedEvent extends AXEvent {
@@ -5721,10 +5973,12 @@ class AXTabContentDirective {
5721
5973
  return this._portal;
5722
5974
  }
5723
5975
  set portal(v) {
5724
- //debugger;
5725
- this._portal = v;
5726
- this._viewContainerRef.clear();
5727
- const viewRef = this._viewContainerRef.createEmbeddedView(v, null, 0);
5976
+ //;
5977
+ if (v) {
5978
+ this._portal = v;
5979
+ this._viewContainerRef.clear();
5980
+ const viewRef = this._viewContainerRef.createEmbeddedView(v, null, 0);
5981
+ }
5728
5982
  }
5729
5983
  }
5730
5984
  AXTabContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTabContentDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
@@ -5853,7 +6107,7 @@ class AXTimeBoxComponent extends AXBaseTextBoxMixin {
5853
6107
  }
5854
6108
  }
5855
6109
  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 });
6110
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5857
6111
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTimeBoxComponent, decorators: [{
5858
6112
  type: Component,
5859
6113
  args: [{
@@ -5938,7 +6192,7 @@ class AXToastComponent extends AXBaseComponentMixin {
5938
6192
  }
5939
6193
  }
5940
6194
  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 });
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 });
6195
+ 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: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5942
6196
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastComponent, decorators: [{
5943
6197
  type: Component,
5944
6198
  args: [{
@@ -6069,12 +6323,12 @@ class AXToastService {
6069
6323
  }
6070
6324
  }
6071
6325
  }
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 });
6326
+ 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 });
6073
6327
  AXToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastService, providedIn: 'root' });
6074
6328
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXToastService, decorators: [{
6075
6329
  type: Injectable,
6076
6330
  args: [{ providedIn: 'root' }]
6077
- }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }]; } });
6331
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }]; } });
6078
6332
 
6079
6333
  class AXTooltipComponent extends AXBaseComponentMixin {
6080
6334
  constructor(elementRef, cdr) {
@@ -6179,12 +6433,12 @@ class AXTooltipDirective {
6179
6433
  this.overlayRef.detach();
6180
6434
  }
6181
6435
  }
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 });
6436
+ 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 });
6183
6437
  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 });
6184
6438
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTooltipDirective, decorators: [{
6185
6439
  type: Directive,
6186
6440
  args: [{ selector: '[axTooltip]' }]
6187
- }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i1.OverlayPositionBuilder }, { type: i0.ElementRef }]; }, propDecorators: { text: [{
6441
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: i0.ElementRef }]; }, propDecorators: { text: [{
6188
6442
  type: Input,
6189
6443
  args: ['axTooltip']
6190
6444
  }], position: [{
@@ -6215,90 +6469,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
6215
6469
  }]
6216
6470
  }] });
6217
6471
 
6218
- /**
6219
- * The Textbox is a component which detects user interaction and triggers a corresponding event
6220
- *
6221
- * @category Components
6222
- */
6223
- class AXTextBoxComponent extends AXBaseTextBoxMixin {
6224
- /**
6225
- * @ignore
6226
- */
6227
- constructor(elementRef, cdr) {
6228
- super(elementRef, cdr);
6229
- }
6230
- //TODO: prefix suffix text
6231
- get hostClass() {
6232
- return `${this.cssClass} ax-${this.size}`;
6233
- }
6234
- }
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 });
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 });
6237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxComponent, decorators: [{
6238
- type: Component,
6239
- args: [{
6240
- selector: 'ax-text-box',
6241
- templateUrl: 'textbox.component.html',
6242
- inputs: [
6243
- 'disabled',
6244
- 'readonly',
6245
- 'tabIndex',
6246
- 'cssClass',
6247
- 'size',
6248
- ...TEXTBOX_INPUTS,
6249
- ],
6250
- outputs: [
6251
- 'valueChange',
6252
- 'onValueChanged',
6253
- 'onBlur',
6254
- 'onFocus',
6255
- ...TEXTBOX_OUTPUT,
6256
- ],
6257
- encapsulation: ViewEncapsulation.None,
6258
- changeDetection: ChangeDetectionStrategy.OnPush,
6259
- host: { class: 'ax-text-box ax-editor-container' },
6260
- }]
6261
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentMask: [{
6262
- type: ContentChild,
6263
- args: [AXInputMaskComponent]
6264
- }], hostClass: [{
6265
- type: HostBinding,
6266
- args: ['class']
6267
- }] } });
6268
-
6269
- class AXTextBoxModule {
6270
- }
6271
- AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6272
- AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
6273
- FormsModule,
6274
- AXButtonModule,
6275
- AXEditorDecoratorModule,
6276
- AXIconModule, i1$2.NgxMaskModule], exports: [AXTextBoxComponent] });
6277
- AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
6278
- CommonModule,
6279
- FormsModule,
6280
- AXButtonModule,
6281
- AXEditorDecoratorModule,
6282
- AXIconModule,
6283
- NgxMaskModule.forChild()
6284
- ]] });
6285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXTextBoxModule, decorators: [{
6286
- type: NgModule,
6287
- args: [{
6288
- imports: [
6289
- CommonModule,
6290
- FormsModule,
6291
- AXButtonModule,
6292
- AXEditorDecoratorModule,
6293
- AXIconModule,
6294
- NgxMaskModule.forChild()
6295
- ],
6296
- exports: [AXTextBoxComponent],
6297
- declarations: [AXTextBoxComponent],
6298
- providers: [],
6299
- }]
6300
- }] });
6301
-
6302
6472
  // @dynamic
6303
6473
  class AXValidationRules {
6304
6474
  static addRule(name, rule) {
@@ -6444,5 +6614,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
6444
6614
  * Generated bundle index. Do not edit.
6445
6615
  */
6446
6616
 
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 };
6617
+ export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, 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, AXDecoratorContentComponent, 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, AXRadioComponent, AXRadioModule, 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 };
6448
6618
  //# sourceMappingURL=acorex-components.js.map