@acorex/components 5.0.54 → 5.0.57

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.
@@ -1,6 +1,7 @@
1
- import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
1
+ import { trigger, state, style, transition, animate } from '@angular/animations';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, Inject, EventEmitter, Directive, Input, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, HostListener, Output, ContentChildren, Optional, ContentChild, ViewChild, TemplateRef, ElementRef, ViewChildren } from '@angular/core';
3
+ import { Injectable, Inject, EventEmitter, Directive, Input, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, HostListener, HostBinding, Output, ContentChildren, Optional, ContentChild, ViewChild, TemplateRef, ElementRef, ViewChildren } from '@angular/core';
4
+ import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
4
5
  import _ from 'lodash';
5
6
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
6
7
  import * as i1$3 from '@acorex/core';
@@ -25,7 +26,6 @@ import { DragDropModule } from '@angular/cdk/drag-drop';
25
26
  import IMask from 'imask';
26
27
  import * as i5 from 'angular-imask';
27
28
  import { IMaskModule, IMaskDirective } from 'angular-imask';
28
- import { trigger, transition, style, animate } from '@angular/animations';
29
29
 
30
30
  var _AXBaseComponent_elementRef;
31
31
  class AXBaseComponent {
@@ -1220,885 +1220,1307 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
1220
1220
  }]
1221
1221
  }] });
1222
1222
 
1223
- var _AXAlertComponent_visible;
1224
- const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);
1223
+ class AXActionSheetComponent extends AXBaseComponent {
1224
+ /**
1225
+ * @ignore
1226
+ */
1227
+ constructor(_elementRef, _cdr) {
1228
+ super(_elementRef, _cdr);
1229
+ this.caption = '';
1230
+ this.closeOnBackdrop = true;
1231
+ this.isOpen = false;
1232
+ }
1233
+ _handleBackdropClick() {
1234
+ if (!this.closeOnBackdrop)
1235
+ return;
1236
+ this.close();
1237
+ }
1238
+ ngAfterViewInit() {
1239
+ }
1240
+ open() {
1241
+ this.isOpen = true;
1242
+ }
1243
+ close() {
1244
+ this.isOpen = false;
1245
+ }
1246
+ toggle() {
1247
+ debugger;
1248
+ this.isOpen = !this.isOpen;
1249
+ }
1250
+ }
1251
+ AXActionSheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1252
+ AXActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXActionSheetComponent, selector: "ax-action-sheet", inputs: { caption: "caption", closeOnBackdrop: "closeOnBackdrop" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-action-sheet-backdrop\" [@backdrop]=\"isOpen ? 'show' : 'hide'\" (click)=\"_handleBackdropClick()\"></div>\r\n<div class=\"ax-action-sheet-container\" [@openClose]=\"isOpen ? 'open' : 'closed'\">\r\n <div class=\"ax-bg-white ax-h-full dark:ax-bg-dark-700\">\r\n <div class=\"ax-action-sheet-caption\" *ngIf=\"caption\">\r\n {{caption}}\r\n </div>\r\n <ng-content select=\"ax-content\"></ng-content>\r\n <div class=\"ax-action-sheet-items\">\r\n <ng-content select=\"ax-action-sheet-item\"></ng-content>\r\n </div>\r\n \r\n </div>\r\n</div>", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
1253
+ trigger('backdrop', [
1254
+ state('show', style({
1255
+ opacity: 1,
1256
+ visibility: 'visible'
1257
+ })),
1258
+ state('hide', style({
1259
+ visibility: 'hidden',
1260
+ opacity: 0
1261
+ })),
1262
+ transition('show <=> hide', [animate('0.2s')]),
1263
+ ]),
1264
+ trigger('openClose', [
1265
+ state('open', style({
1266
+ bottom: '0',
1267
+ opacity: 1
1268
+ })),
1269
+ state('closed', style({
1270
+ bottom: '-100%',
1271
+ opacity: 0.5
1272
+ })),
1273
+ transition('open <=> closed', [animate('0.2s')])
1274
+ ]),
1275
+ ] });
1276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetComponent, decorators: [{
1277
+ type: Component,
1278
+ args: [{ selector: 'ax-action-sheet', animations: [
1279
+ trigger('backdrop', [
1280
+ state('show', style({
1281
+ opacity: 1,
1282
+ visibility: 'visible'
1283
+ })),
1284
+ state('hide', style({
1285
+ visibility: 'hidden',
1286
+ opacity: 0
1287
+ })),
1288
+ transition('show <=> hide', [animate('0.2s')]),
1289
+ ]),
1290
+ trigger('openClose', [
1291
+ state('open', style({
1292
+ bottom: '0',
1293
+ opacity: 1
1294
+ })),
1295
+ state('closed', style({
1296
+ bottom: '-100%',
1297
+ opacity: 0.5
1298
+ })),
1299
+ transition('open <=> closed', [animate('0.2s')])
1300
+ ]),
1301
+ ], template: "<div class=\"ax-action-sheet-backdrop\" [@backdrop]=\"isOpen ? 'show' : 'hide'\" (click)=\"_handleBackdropClick()\"></div>\r\n<div class=\"ax-action-sheet-container\" [@openClose]=\"isOpen ? 'open' : 'closed'\">\r\n <div class=\"ax-bg-white ax-h-full dark:ax-bg-dark-700\">\r\n <div class=\"ax-action-sheet-caption\" *ngIf=\"caption\">\r\n {{caption}}\r\n </div>\r\n <ng-content select=\"ax-content\"></ng-content>\r\n <div class=\"ax-action-sheet-items\">\r\n <ng-content select=\"ax-action-sheet-item\"></ng-content>\r\n </div>\r\n \r\n </div>\r\n</div>" }]
1302
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { caption: [{
1303
+ type: Input
1304
+ }], closeOnBackdrop: [{
1305
+ type: Input
1306
+ }] } });
1307
+
1225
1308
  /**
1226
- * Regular description
1309
+ * The Button is a component which detects user interaction and triggers a corresponding event
1227
1310
  *
1228
1311
  * @category Components
1229
1312
  */
1230
- class AXAlertComponent extends AXBaseAlertMixin {
1313
+ class AXButtonComponent extends AXBaseButtonMixin {
1231
1314
  /**
1232
1315
  * @ignore
1233
1316
  */
1234
1317
  constructor(elementRef, cdr) {
1235
1318
  super(elementRef, cdr);
1236
- this.showIcon = true;
1237
- _AXAlertComponent_visible.set(this, void 0);
1238
- }
1239
- _onOptionChanged(option) {
1240
- if (option.name == 'color') {
1241
- switch (this.color) {
1242
- case 'success':
1243
- this.icon = 'ax-ic ax-ic-check-filled';
1244
- break;
1245
- case 'warning':
1246
- this.icon = 'ax-ic-warning-filled';
1247
- break;
1248
- case 'danger':
1249
- this.icon = 'ax-ic-error-filled';
1250
- break;
1251
- default:
1252
- this.icon = 'ax-ic ax-ic-info-filled';
1253
- break;
1254
- }
1255
- }
1256
- }
1257
- /**
1258
- * @ignore
1259
- */
1260
- get __hostClass() {
1261
- // return ` ax-alert ax-none ax-${this.color}-default ax-${this.look}-default`;
1262
- const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
1263
- return `ax-alert ax-none ${_class}`;
1264
- }
1265
- /**
1266
- * set the visibility of the Alert
1267
- */
1268
- get visible() {
1269
- return __classPrivateFieldGet(this, _AXAlertComponent_visible, "f");
1270
- }
1271
- set visible(v) {
1272
- if (__classPrivateFieldGet(this, _AXAlertComponent_visible, "f") != v) {
1273
- __classPrivateFieldSet(this, _AXAlertComponent_visible, v, "f");
1274
- const host = this._getHostElement();
1275
- if (v) {
1276
- host.classList.remove('ax-state-hidden');
1277
- host.classList.add('ax-state-visible');
1278
- }
1279
- else {
1280
- host.classList.add('ax-state-hidden');
1281
- host.classList.toggle('ax-state-visible');
1282
- }
1283
- }
1284
1319
  }
1285
- onInit() {
1286
- if (this.timeOut) {
1287
- setTimeout(() => {
1288
- this.dismiss();
1289
- }, this.timeOut);
1320
+ onKeydownHandler(e) {
1321
+ if (e.code === 'Enter') {
1322
+ this._getHostElement().click();
1290
1323
  }
1291
1324
  }
1292
- onViewInit() {
1293
- if (this.visible == undefined) {
1294
- this.visible = true;
1325
+ _emitOnClickEvent(e) {
1326
+ if (this.disabled)
1327
+ return;
1328
+ if (this.toggleable) {
1329
+ this.selected = !this.selected;
1295
1330
  }
1331
+ super._emitOnClickEvent(e);
1296
1332
  }
1297
- /**
1298
- * Remove the alert from the container
1299
- */
1300
- dismiss() {
1301
- const host = this._getHostElement();
1302
- this.visible = false;
1303
- const func = () => {
1304
- host.parentElement.removeChild(host);
1305
- };
1306
- host.addEventListener('transitionend', func);
1333
+ _emitOnFocusEvent(e) {
1334
+ super._emitOnFocusEvent(e);
1307
1335
  }
1308
- /**
1309
- * Hide the alert
1310
- */
1311
- hide() {
1312
- this.visible = false;
1336
+ _emitOnBlurEvent(e) {
1337
+ super._emitOnBlurEvent(e);
1313
1338
  }
1314
- /**
1315
- * Show the alert
1316
- */
1317
- show() {
1318
- this.visible = true;
1339
+ get __hostClass() {
1340
+ return Object.entries(this._classes).filter(c => c[1]).map(c => c[0]).join(' ');
1319
1341
  }
1320
1342
  }
1321
- _AXAlertComponent_visible = new WeakMap();
1322
- AXAlertComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1323
- AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertComponent, selector: "ax-alert", inputs: { color: "color", look: "look", icon: "icon", showIcon: "showIcon", timeOut: "timeOut", visible: "visible" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-alert-icon\" *ngIf=\"icon && showIcon\">\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 });
1324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
1343
+ AXButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1344
+ AXButtonComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonComponent, selector: "ax-button", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", color: "color", look: "look", text: "text", submitBehavior: "submitBehavior", cancelBehavior: "cancelBehavior", toggleable: "toggleable", selected: "selected" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { attributes: { "role": "button" }, listeners: { "keyup": "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 });
1345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, decorators: [{
1325
1346
  type: Component,
1326
- args: [{ selector: 'ax-alert', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...COLOR_LOOK_INPUTS], encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-alert-icon\" *ngIf=\"icon && showIcon\">\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>" }]
1327
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1328
- type: Input
1329
- }], showIcon: [{
1330
- type: Input
1347
+ args: [{ selector: 'ax-button', inputs: ['disabled', 'tabIndex', 'size', ...COLOR_LOOK_INPUTS, ...BUTTON_INPUTS], outputs: [...BUTTON_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { role: 'button' }, 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> -->" }]
1348
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
1349
+ type: HostListener,
1350
+ args: ['keyup', ['$event']]
1351
+ }], _emitOnClickEvent: [{
1352
+ type: HostListener,
1353
+ args: ['click', ['$event']]
1354
+ }], _emitOnFocusEvent: [{
1355
+ type: HostListener,
1356
+ args: ['focus', ['$event']]
1357
+ }], _emitOnBlurEvent: [{
1358
+ type: HostListener,
1359
+ args: ['blur', ['$event']]
1331
1360
  }], __hostClass: [{
1332
1361
  type: HostBinding,
1333
1362
  args: ['class']
1334
- }], timeOut: [{
1335
- type: Input
1336
- }], visible: [{
1337
- type: Input
1338
1363
  }] } });
1339
1364
 
1340
- class AXAlertTitleComponent {
1341
- }
1342
- AXAlertTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1343
- AXAlertTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertTitleComponent, selector: "ax-alert-title", host: { classAttribute: "ax-alert-title" }, ngImport: i0, template: `
1344
- <ng-content>
1345
- </ng-content>
1346
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, decorators: [{
1348
- type: Component,
1349
- args: [{
1350
- selector: 'ax-alert-title',
1351
- template: `
1352
- <ng-content>
1353
- </ng-content>
1354
- `,
1355
- changeDetection: ChangeDetectionStrategy.OnPush,
1356
- encapsulation: ViewEncapsulation.None,
1357
- host: { class: 'ax-alert-title' }
1358
- }]
1359
- }] });
1360
-
1361
- class AXAlertButtonComponent extends AXBaseClickableMixin {
1362
- constructor(elementRef, cdr) {
1363
- super(elementRef, cdr);
1364
- }
1365
- _handleOnClick(e) {
1366
- this._emitOnClickEvent(e);
1367
- }
1368
- _handleOnFocus(e) {
1369
- this._emitOnFocusEvent(e);
1365
+ class AXActionSheetItemComponent extends AXBaseComponent {
1366
+ /**
1367
+ * @ignore
1368
+ */
1369
+ constructor(_elementRef, _cdr) {
1370
+ super(_elementRef, _cdr);
1371
+ this.color = 'light';
1372
+ this.onClick = new EventEmitter();
1370
1373
  }
1371
- _handleOnBlur(e) {
1372
- this._emitOnBlurEvent(e);
1374
+ handleOnClick(e) {
1375
+ this.onClick.emit(e);
1373
1376
  }
1374
1377
  }
1375
- AXAlertButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1376
- AXAlertButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertButtonComponent, selector: "ax-alert-button", inputs: { text: "text", 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: `
1377
- {{text}}
1378
- <ng-content select="ax-icon"></ng-content>
1379
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
1378
+ AXActionSheetItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1379
+ AXActionSheetItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXActionSheetItemComponent, selector: "ax-action-sheet-item", inputs: { text: "text", color: "color" }, outputs: { onClick: "onClick" }, usesInheritance: true, ngImport: i0, template: `
1380
+ <ax-button [color]="color" look="blank" [text]="text" (onClick)="handleOnClick($event)"></ax-button>
1381
+ `, isInline: true, components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }] });
1382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetItemComponent, decorators: [{
1381
1383
  type: Component,
1382
1384
  args: [{
1383
- selector: 'ax-alert-button',
1385
+ selector: 'ax-action-sheet-item',
1384
1386
  template: `
1385
- {{text}}
1386
- <ng-content select="ax-icon"></ng-content>
1387
- `,
1388
- changeDetection: ChangeDetectionStrategy.OnPush,
1389
- encapsulation: ViewEncapsulation.None,
1390
- outputs: [...BUTTON_OUTPUT],
1391
- host: { class: 'ax-alert-button' }
1387
+ <ax-button [color]="color" look="blank" [text]="text" (onClick)="handleOnClick($event)"></ax-button>
1388
+ `
1392
1389
  }]
1393
1390
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1394
1391
  type: Input
1395
- }], icon: [{
1392
+ }], color: [{
1396
1393
  type: Input
1397
- }], _handleOnClick: [{
1398
- type: HostListener,
1399
- args: ['click', ['$event']]
1400
- }], _handleOnFocus: [{
1401
- type: HostListener,
1402
- args: ['focus', ['$event']]
1403
- }], _handleOnBlur: [{
1404
- type: HostListener,
1405
- args: ['blur', ['$event']]
1394
+ }], onClick: [{
1395
+ type: Output
1406
1396
  }] } });
1407
1397
 
1408
- class AXAlertContentComponent {
1409
- }
1410
- AXAlertContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1411
- AXAlertContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertContentComponent, selector: "ax-alert-content", host: { classAttribute: "ax-alert-content" }, ngImport: i0, template: `<ng-content>
1412
- </ng-content>
1413
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, decorators: [{
1415
- type: Component,
1416
- args: [{
1417
- selector: 'ax-alert-content',
1418
- template: `<ng-content>
1419
- </ng-content>
1420
- `,
1421
- changeDetection: ChangeDetectionStrategy.OnPush,
1422
- encapsulation: ViewEncapsulation.None,
1423
- host: { class: 'ax-alert-content' }
1424
- }]
1425
- }] });
1426
-
1427
- class AXAlertSuffixComponent {
1428
- }
1429
- AXAlertSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1430
- AXAlertSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertSuffixComponent, selector: "ax-alert-suffix", host: { classAttribute: "ax-alert-suffix" }, ngImport: i0, template: `
1431
- <div class="ax-alert-buttons">
1432
- <ng-content select="ax-alert-button">
1433
- </ng-content>
1434
- </div>
1435
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, decorators: [{
1437
- type: Component,
1438
- args: [{
1439
- selector: 'ax-alert-suffix',
1440
- template: `
1441
- <div class="ax-alert-buttons">
1442
- <ng-content select="ax-alert-button">
1443
- </ng-content>
1444
- </div>
1445
- `,
1446
- changeDetection: ChangeDetectionStrategy.OnPush,
1447
- encapsulation: ViewEncapsulation.None,
1448
- host: { class: 'ax-alert-suffix' }
1398
+ class AXDrawerComponent extends AXBaseComponentMixin {
1399
+ constructor(elementRef, cdr, zone) {
1400
+ super(elementRef, cdr);
1401
+ this.elementRef = elementRef;
1402
+ this.zone = zone;
1403
+ this.onChanged = new EventEmitter();
1404
+ this.mode = 'push';
1405
+ this.location = 'start';
1406
+ this._collapsed = false;
1407
+ }
1408
+ get collapsed() {
1409
+ return this._collapsed;
1410
+ }
1411
+ set collapsed(v) {
1412
+ if (v != this._collapsed) {
1413
+ this._collapsed = v;
1414
+ this._updateClass();
1415
+ this._emitChange();
1416
+ }
1417
+ }
1418
+ onInit() {
1419
+ // this._getHostElement().classList.add(this.location == 'start' ? 'ax-drawer-start' : 'ax-drawer-end');
1420
+ this._setLocation();
1421
+ this._currentMode = this.mode;
1422
+ }
1423
+ _setLocation() {
1424
+ const hostElementClassList = this._getHostElement().classList;
1425
+ switch (this.location) {
1426
+ case 'start':
1427
+ hostElementClassList.add('ax-drawer-start');
1428
+ break;
1429
+ case 'end':
1430
+ hostElementClassList.add('ax-drawer-end');
1431
+ break;
1432
+ case 'top':
1433
+ hostElementClassList.add('ax-drawer-top');
1434
+ break;
1435
+ case 'bottom':
1436
+ hostElementClassList.add('ax-drawer-bottom');
1437
+ break;
1438
+ default:
1439
+ hostElementClassList.add('ax-drawer-start');
1440
+ break;
1441
+ }
1442
+ }
1443
+ _updateClass() {
1444
+ this.zone.runOutsideAngular(() => {
1445
+ const elm = this._getHostElement();
1446
+ //
1447
+ this._currentMode == 'overlay' ? this._setOverlayMode() : this._setPushMode();
1448
+ //
1449
+ if (this.collapsed) {
1450
+ elm.classList.remove('ax-expanded');
1451
+ elm.classList.add('ax-collapsed');
1452
+ if (this._currentMode == 'overlay') {
1453
+ this._removeBackdrop();
1454
+ }
1455
+ }
1456
+ else {
1457
+ elm.classList.add('ax-expanded');
1458
+ elm.classList.remove('ax-collapsed');
1459
+ if (this._currentMode == 'overlay') {
1460
+ this._addBackdrop();
1461
+ }
1462
+ }
1463
+ });
1464
+ }
1465
+ onViewInit() {
1466
+ this._detectSize();
1467
+ }
1468
+ toggle() {
1469
+ this.collapsed = !this.collapsed;
1470
+ }
1471
+ close() {
1472
+ this.collapsed = true;
1473
+ }
1474
+ open() {
1475
+ this.collapsed = false;
1476
+ }
1477
+ _handleWindowsResize(e) {
1478
+ this._detectSize();
1479
+ }
1480
+ _detectSize() {
1481
+ //TODO detect break size
1482
+ const bound = this._getHostElement().parentElement.getBoundingClientRect();
1483
+ if (bound.width == 0) {
1484
+ console.log('Drawer invalid size', bound);
1485
+ setTimeout(() => {
1486
+ this._detectSize();
1487
+ }, 1);
1488
+ return;
1489
+ }
1490
+ if (bound.width < 400) {
1491
+ this._currentMode = 'overlay';
1492
+ this.collapsed = true;
1493
+ }
1494
+ else {
1495
+ this._currentMode = this.mode;
1496
+ }
1497
+ this._updateClass();
1498
+ this._emitChange();
1499
+ }
1500
+ _emitChange() {
1501
+ this.onChanged.emit({
1502
+ component: this,
1503
+ htmlElement: this.elementRef.nativeElement
1504
+ });
1505
+ }
1506
+ _setOverlayMode() {
1507
+ this._currentMode = 'overlay';
1508
+ this._getHostElement().classList.remove('ax-drawer-push');
1509
+ this._getHostElement().classList.add('ax-drawer-overlay');
1510
+ }
1511
+ _setPushMode() {
1512
+ this._currentMode = 'push';
1513
+ this._getHostElement().classList.remove('ax-drawer-overlay');
1514
+ this._getHostElement().classList.add('ax-drawer-push');
1515
+ this._removeBackdrop();
1516
+ }
1517
+ _addBackdrop() {
1518
+ if (!this._backdrop) {
1519
+ this._backdrop = document.createElement('div');
1520
+ this._backdrop.classList.add('ax-drawer-backdrop');
1521
+ this._getHostElement().parentElement.prepend(this._backdrop);
1522
+ this._backdrop.addEventListener('click', this._handleBackfropClick.bind(this));
1523
+ }
1524
+ }
1525
+ _removeBackdrop() {
1526
+ if (this._backdrop) {
1527
+ this._backdrop.removeEventListener('click', this._handleBackfropClick.bind(this));
1528
+ this._getHostElement().parentElement.removeChild(this._backdrop);
1529
+ this._backdrop = null;
1530
+ }
1531
+ }
1532
+ _handleBackfropClick(e) {
1533
+ this._removeBackdrop();
1534
+ this.collapsed = true;
1535
+ }
1536
+ }
1537
+ AXDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1538
+ AXDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerComponent, selector: "ax-drawer", inputs: { mode: "mode", location: "location", collapsed: "collapsed" }, outputs: { onChanged: "onChanged" }, host: { listeners: { "window:resize": "_handleWindowsResize($event)" }, classAttribute: "ax-drawer ax-transition-all" }, usesInheritance: true, ngImport: i0, template: `
1539
+ <ng-content>
1540
+ </ng-content>
1541
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, decorators: [{
1543
+ type: Component,
1544
+ args: [{
1545
+ selector: 'ax-drawer',
1546
+ template: `
1547
+ <ng-content>
1548
+ </ng-content>
1549
+ `,
1550
+ changeDetection: ChangeDetectionStrategy.OnPush,
1551
+ encapsulation: ViewEncapsulation.None,
1552
+ host: { class: 'ax-drawer ax-transition-all' }
1449
1553
  }]
1450
- }] });
1554
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { onChanged: [{
1555
+ type: Output
1556
+ }], mode: [{
1557
+ type: Input
1558
+ }], location: [{
1559
+ type: Input
1560
+ }], collapsed: [{
1561
+ type: Input
1562
+ }], _handleWindowsResize: [{
1563
+ type: HostListener,
1564
+ args: ['window:resize', ['$event']]
1565
+ }] } });
1451
1566
 
1452
- class AXAlertFooterComponent {
1567
+ class AXDrawerContainerComponent extends AXBaseComponentMixin {
1568
+ constructor(elementRef, cdr, zone) {
1569
+ super(elementRef, cdr);
1570
+ this.zone = zone;
1571
+ }
1572
+ onViewInit() {
1573
+ this._updateWidth();
1574
+ // add animation
1575
+ // setTimeout(() => {
1576
+ // this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
1577
+ // c.classList.add('ax-animated');
1578
+ // });
1579
+ // }, 100);
1580
+ this.drawers.forEach(c => {
1581
+ c.onChanged.subscribe(c => {
1582
+ this._updateWidth();
1583
+ });
1584
+ });
1585
+ }
1586
+ _updateWidth() {
1587
+ this.zone.runOutsideAngular(() => {
1588
+ const container = this._getHostElement().closest('ax-drawer-container');
1589
+ const parentWidth = this._getHostElement().getBoundingClientRect().width;
1590
+ let w = 0;
1591
+ this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
1592
+ const elm = c;
1593
+ const width = elm.getBoundingClientRect().width;
1594
+ const height = elm.getBoundingClientRect().height;
1595
+ const overflow = parentWidth < width;
1596
+ const diff = width - parentWidth;
1597
+ w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
1598
+ elm.style.setProperty('--attr-width', `${width}px`);
1599
+ elm.style.setProperty('--attr-height', `${height}px`);
1600
+ //TODO check overflow
1601
+ elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
1602
+ });
1603
+ container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
1604
+ });
1605
+ }
1453
1606
  }
1454
- AXAlertFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1455
- AXAlertFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertFooterComponent, selector: "ax-alert-footer", host: { classAttribute: "ax-alert-footer" }, ngImport: i0, template: `
1456
- <div class="ax-alert-buttons">
1457
- <ng-content select="ax-alert-button">
1458
- </ng-content>
1459
- </div>
1607
+ AXDrawerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1608
+ AXDrawerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContainerComponent, selector: "ax-drawer-container", inputs: { rtl: "rtl" }, host: { classAttribute: "ax-drawer-container" }, queries: [{ propertyName: "drawers", predicate: AXDrawerComponent }], usesInheritance: true, ngImport: i0, template: `
1609
+ <ng-content select="ax-drawer[location='top']">
1610
+ </ng-content>
1611
+ <ng-content select="ax-drawer[location='start']">
1612
+ </ng-content>
1613
+ <ng-content select="ax-drawer-content">
1614
+ </ng-content>
1615
+ <ng-content select="ax-drawer[location='end']">
1616
+ </ng-content>
1617
+ <ng-content select="ax-drawer[location='bottom']">
1618
+ </ng-content>
1460
1619
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, decorators: [{
1620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
1621
+ type: Component,
1622
+ args: [{
1623
+ selector: 'ax-drawer-container',
1624
+ template: `
1625
+ <ng-content select="ax-drawer[location='top']">
1626
+ </ng-content>
1627
+ <ng-content select="ax-drawer[location='start']">
1628
+ </ng-content>
1629
+ <ng-content select="ax-drawer-content">
1630
+ </ng-content>
1631
+ <ng-content select="ax-drawer[location='end']">
1632
+ </ng-content>
1633
+ <ng-content select="ax-drawer[location='bottom']">
1634
+ </ng-content>
1635
+ `,
1636
+ inputs: ['rtl'],
1637
+ changeDetection: ChangeDetectionStrategy.OnPush,
1638
+ encapsulation: ViewEncapsulation.None,
1639
+ host: { class: 'ax-drawer-container' }
1640
+ }]
1641
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { drawers: [{
1642
+ type: ContentChildren,
1643
+ args: [AXDrawerComponent]
1644
+ }] } });
1645
+
1646
+ class AXDrawerContentComponent extends AXBaseComponentMixin {
1647
+ constructor(elementRef, cdr) {
1648
+ super(elementRef, cdr);
1649
+ }
1650
+ }
1651
+ AXDrawerContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1652
+ AXDrawerContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContentComponent, selector: "ax-drawer-content", host: { classAttribute: "ax-drawer-content" }, usesInheritance: true, ngImport: i0, template: `
1653
+ <ng-content>
1654
+ </ng-content>
1655
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
1657
+ type: Component,
1658
+ args: [{
1659
+ selector: 'ax-drawer-content',
1660
+ template: `
1661
+ <ng-content>
1662
+ </ng-content>
1663
+ `,
1664
+ changeDetection: ChangeDetectionStrategy.OnPush,
1665
+ encapsulation: ViewEncapsulation.None,
1666
+ host: { class: 'ax-drawer-content' }
1667
+ }]
1668
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1669
+
1670
+ const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
1671
+ const MODULES$o = [CommonModule];
1672
+ class AXDrawerModule {
1673
+ }
1674
+ AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1675
+ AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent] });
1676
+ AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$o]] });
1677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, decorators: [{
1678
+ type: NgModule,
1679
+ args: [{
1680
+ declarations: [...COMPONENT$o],
1681
+ imports: [...MODULES$o],
1682
+ exports: [...COMPONENT$o],
1683
+ providers: [],
1684
+ }]
1685
+ }] });
1686
+
1687
+ class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1688
+ constructor(elementRef, zone, cdr) {
1689
+ super(elementRef, cdr);
1690
+ this.zone = zone;
1691
+ this.selectionChange = new EventEmitter();
1692
+ this.colorChange = new EventEmitter();
1693
+ this._color = 'primary';
1694
+ this.lookChange = new EventEmitter();
1695
+ this._look = null;
1696
+ this.onItemClick = new EventEmitter();
1697
+ this.onValueChanged = new EventEmitter();
1698
+ }
1699
+ get selection() {
1700
+ return this._selection;
1701
+ }
1702
+ set selection(value) {
1703
+ value = this._onOptionChanging({ name: 'selection', value: value });
1704
+ const oldValue = this.selection;
1705
+ if (value != oldValue) {
1706
+ this._selection = value;
1707
+ this.selectionChange.emit(value);
1708
+ this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
1709
+ }
1710
+ }
1711
+ /**
1712
+ * Predefined color schemes
1713
+ */
1714
+ get color() {
1715
+ return this._color;
1716
+ }
1717
+ set color(value) {
1718
+ value = this._onOptionChanging({ name: 'color', value: value });
1719
+ const oldValue = this.color;
1720
+ if (value != oldValue) {
1721
+ this._color = value;
1722
+ this.colorChange.emit(value);
1723
+ this.onOptionChanged({ name: 'value', oldValue, newValue: value });
1724
+ }
1725
+ }
1726
+ /**
1727
+ * Predefined look schemes
1728
+ */
1729
+ get look() {
1730
+ return this._look;
1731
+ }
1732
+ set look(value) {
1733
+ value = this._onOptionChanging({ name: 'look', value: value });
1734
+ const oldValue = this.look;
1735
+ if (value != oldValue) {
1736
+ this._look = value;
1737
+ this.lookChange.emit(value);
1738
+ this.onOptionChanged({ name: 'look', oldValue, newValue: value });
1739
+ }
1740
+ }
1741
+ ngAfterContentInit() {
1742
+ this._bindEvents();
1743
+ this._bindProps();
1744
+ }
1745
+ _bindEvents() {
1746
+ (this._contentButtons || []).forEach(b => {
1747
+ b.onClick.subscribe(c => {
1748
+ this._handleClickEvent(c, b);
1749
+ });
1750
+ });
1751
+ }
1752
+ _bindProps() {
1753
+ (this._contentButtons || []).forEach(b => {
1754
+ b.look = this.look;
1755
+ b.color = this.color;
1756
+ b.disabled = this.disabled;
1757
+ b.toggleable = false;
1758
+ });
1759
+ }
1760
+ onOptionChanged(options) {
1761
+ this._bindProps();
1762
+ }
1763
+ _handleClickEvent(e, button) {
1764
+ if (this.selection == 'multiple') {
1765
+ button.selected = !button.selected;
1766
+ }
1767
+ else if (this.selection == 'single') {
1768
+ this._contentButtons.forEach(c => {
1769
+ c.selected = false;
1770
+ });
1771
+ button.selected = true;
1772
+ }
1773
+ else {
1774
+ button.selected = false;
1775
+ }
1776
+ this.onItemClick.emit({
1777
+ component: this,
1778
+ htmlElement: e.htmlElement,
1779
+ item: button
1780
+ });
1781
+ }
1782
+ }
1783
+ AXButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1784
+ AXButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonGroupComponent, selector: "ax-button-group", inputs: { cssClass: "cssClass", size: "size", cssStyle: "cssStyle", rtl: "rtl", disabled: "disabled", selection: "selection", color: "color", look: "look" }, outputs: { selectionChange: "selectionChange", colorChange: "colorChange", lookChange: "lookChange", onItemClick: "onItemClick" }, host: { attributes: { "role": "group" }, classAttribute: "ax-button-group" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-button\">\r\n</ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1785
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
1786
+ type: Component,
1787
+ args: [{ selector: 'ax-button-group', inputs: ['cssClass', 'size', 'cssStyle', 'rtl', 'disabled'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'ax-button-group', role: 'group' }, template: "<ng-content select=\"ax-button\">\r\n</ng-content>" }]
1788
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
1789
+ type: Output
1790
+ }], selection: [{
1791
+ type: Input
1792
+ }], colorChange: [{
1793
+ type: Output
1794
+ }], color: [{
1795
+ type: Input
1796
+ }], lookChange: [{
1797
+ type: Output
1798
+ }], look: [{
1799
+ type: Input
1800
+ }], onItemClick: [{
1801
+ type: Output
1802
+ }], _contentButtons: [{
1803
+ type: ContentChildren,
1804
+ args: [AXButtonComponent, { descendants: true }]
1805
+ }] } });
1806
+
1807
+ const AXBaseItemButtonMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
1808
+ class AXButtonItemComponent extends AXBaseItemButtonMixin {
1809
+ /**
1810
+ * @ignore
1811
+ */
1812
+ constructor(elementRef, cdr) {
1813
+ super(elementRef, cdr);
1814
+ this.text = null;
1815
+ this.tooltip = null;
1816
+ this.selected = false;
1817
+ this.seperated = false;
1818
+ this.color = 'light';
1819
+ }
1820
+ __hostClick(e) {
1821
+ this._emitOnClickEvent(e);
1822
+ }
1823
+ get __hostClass() {
1824
+ const cssClasses = {
1825
+ 'ax-button-icon': !this.text,
1826
+ 'ax-state-disabled': this.disabled,
1827
+ 'ax-state-selected': this.selected,
1828
+ };
1829
+ cssClasses[`ax-${this.color || 'primary'}-default`] = true;
1830
+ return Object.entries(cssClasses).filter(c => c[1]).map(c => c[0]).join(' ');
1831
+ }
1832
+ }
1833
+ AXButtonItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1834
+ AXButtonItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonItemComponent, selector: "ax-button-item", inputs: { text: "text", tooltip: "tooltip", selected: "selected", seperated: "seperated", name: "name", data: "data", color: "color" }, host: { listeners: { "click": "__hostClick($event)" }, properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: `
1835
+ <ng-content select="ax-prefix">
1836
+ </ng-content>
1837
+ <ng-content select="ax-icon">
1838
+ </ng-content>
1839
+ <span *ngIf="text">{{text}}</span>
1840
+ <ng-content select="ax-suffix">
1841
+ </ng-content>
1842
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1843
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, decorators: [{
1462
1844
  type: Component,
1463
1845
  args: [{
1464
- selector: 'ax-alert-footer',
1846
+ selector: 'ax-button-item',
1465
1847
  template: `
1466
- <div class="ax-alert-buttons">
1467
- <ng-content select="ax-alert-button">
1468
- </ng-content>
1469
- </div>
1848
+ <ng-content select="ax-prefix">
1849
+ </ng-content>
1850
+ <ng-content select="ax-icon">
1851
+ </ng-content>
1852
+ <span *ngIf="text">{{text}}</span>
1853
+ <ng-content select="ax-suffix">
1854
+ </ng-content>
1470
1855
  `,
1471
- changeDetection: ChangeDetectionStrategy.OnPush,
1472
1856
  encapsulation: ViewEncapsulation.None,
1473
- host: { class: 'ax-alert-footer' }
1857
+ changeDetection: ChangeDetectionStrategy.OnPush,
1474
1858
  }]
1475
- }] });
1859
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1860
+ type: Input
1861
+ }], tooltip: [{
1862
+ type: Input
1863
+ }], selected: [{
1864
+ type: Input
1865
+ }], seperated: [{
1866
+ type: Input
1867
+ }], name: [{
1868
+ type: Input
1869
+ }], data: [{
1870
+ type: Input
1871
+ }], color: [{
1872
+ type: Input
1873
+ }], __hostClick: [{
1874
+ type: HostListener,
1875
+ args: ['click', ['$event']]
1876
+ }], __hostClass: [{
1877
+ type: HostBinding,
1878
+ args: ['class']
1879
+ }] } });
1476
1880
 
1477
- class AXIconComponent extends AXSizableComponentMixin {
1881
+ class AXDecoratorContentComponent extends AXBaseComponentMixin {
1478
1882
  constructor(elementRef, cdr) {
1479
1883
  super(elementRef, cdr);
1480
1884
  }
1481
- get __iconClass() {
1482
- return `ax-ic ${this.icon}`;
1483
- }
1484
1885
  }
1485
- AXIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1486
- AXIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.__iconClass" } }, usesInheritance: true, ngImport: i0, template: '<ng-content select="i,svg,img"></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1487
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, decorators: [{
1886
+ AXDecoratorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1887
+ AXDecoratorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorContentComponent, selector: "ax-content", usesInheritance: true, ngImport: i0, template: `
1888
+ <ng-content>
1889
+ </ng-content>
1890
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1891
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, decorators: [{
1488
1892
  type: Component,
1489
1893
  args: [{
1490
- selector: 'ax-icon',
1491
- template: '<ng-content select="i,svg,img"></ng-content>',
1894
+ selector: 'ax-content',
1895
+ template: `
1896
+ <ng-content>
1897
+ </ng-content>
1898
+ `,
1492
1899
  changeDetection: ChangeDetectionStrategy.OnPush,
1493
1900
  encapsulation: ViewEncapsulation.None,
1494
1901
  }]
1495
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1496
- type: Input
1497
- }], __iconClass: [{
1498
- type: HostBinding,
1499
- args: ['class']
1500
- }] } });
1902
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1501
1903
 
1502
- const COMPONENT$o = [AXIconComponent];
1503
- const MODULES$o = [CommonModule];
1504
- class AXIconModule {
1904
+ class AXDecoratorAddOnComponent extends AXBaseComponentMixin {
1905
+ constructor(_elementRef, _cdr) {
1906
+ super(_elementRef, _cdr);
1907
+ }
1505
1908
  }
1506
- AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1507
- AXIconModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
1508
- AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$o]] });
1509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, decorators: [{
1510
- type: NgModule,
1909
+ AXDecoratorAddOnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1910
+ AXDecoratorAddOnComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorAddOnComponent, selector: "ax-addon", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1911
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, decorators: [{
1912
+ type: Component,
1511
1913
  args: [{
1512
- declarations: [...COMPONENT$o],
1513
- imports: [...MODULES$o],
1514
- exports: [...COMPONENT$o],
1515
- providers: [],
1914
+ selector: 'ax-addon',
1915
+ template: `<ng-content></ng-content>`,
1916
+ changeDetection: ChangeDetectionStrategy.OnPush,
1917
+ encapsulation: ViewEncapsulation.None
1516
1918
  }]
1517
- }] });
1919
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1518
1920
 
1519
- const COMPONENT$n = [
1520
- AXAlertComponent,
1521
- AXAlertContentComponent,
1522
- AXAlertTitleComponent,
1523
- AXAlertButtonComponent,
1524
- AXAlertFooterComponent,
1525
- AXAlertSuffixComponent
1526
- ];
1527
- const MODULES$n = [CommonModule, AXIconModule];
1528
- class AXAlertModule {
1921
+ class AXDecoratorHeaderComponent extends AXBaseComponentMixin {
1922
+ constructor(elementRef, cdr) {
1923
+ super(elementRef, cdr);
1924
+ }
1529
1925
  }
1530
- AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1531
- AXAlertModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
1532
- AXAlertContentComponent,
1533
- AXAlertTitleComponent,
1534
- AXAlertButtonComponent,
1535
- AXAlertFooterComponent,
1536
- AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
1537
- AXAlertContentComponent,
1538
- AXAlertTitleComponent,
1539
- AXAlertButtonComponent,
1540
- AXAlertFooterComponent,
1541
- AXAlertSuffixComponent] });
1542
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$n]] });
1543
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
1544
- type: NgModule,
1926
+ AXDecoratorHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1927
+ AXDecoratorHeaderComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorHeaderComponent, selector: "ax-header", usesInheritance: true, ngImport: i0, template: `
1928
+ <ng-content>
1929
+ </ng-content>
1930
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, decorators: [{
1932
+ type: Component,
1545
1933
  args: [{
1546
- declarations: [...COMPONENT$n],
1547
- imports: [...MODULES$n],
1548
- exports: [...COMPONENT$n],
1549
- providers: [],
1934
+ selector: 'ax-header',
1935
+ template: `
1936
+ <ng-content>
1937
+ </ng-content>
1938
+ `,
1939
+ changeDetection: ChangeDetectionStrategy.OnPush,
1940
+ encapsulation: ViewEncapsulation.None,
1550
1941
  }]
1551
- }] });
1942
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1552
1943
 
1553
- class AXAvatarGroup {
1554
- constructor() { }
1555
- ngOnInit() { }
1944
+ class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
1945
+ constructor(elementRef, cdr) {
1946
+ super(elementRef, cdr);
1947
+ }
1556
1948
  }
1557
- AXAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
1558
- AXAvatarGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAvatarGroup, selector: "ax-avatar-group", host: { classAttribute: "ax-avatar-group" }, ngImport: i0, template: `<ng-content select='ax-avatar'></ng-content>`, isInline: true });
1559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, decorators: [{
1949
+ AXDecoratorPrefixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1950
+ AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
1951
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1952
+ </ng-content>
1953
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
1560
1955
  type: Component,
1561
1956
  args: [{
1562
- selector: 'ax-avatar-group',
1563
- template: `<ng-content select='ax-avatar'></ng-content>`,
1564
- host: { class: 'ax-avatar-group' }
1957
+ selector: 'ax-prefix',
1958
+ template: `
1959
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1960
+ </ng-content>
1961
+ `,
1962
+ changeDetection: ChangeDetectionStrategy.OnPush,
1963
+ encapsulation: ViewEncapsulation.None
1565
1964
  }]
1566
- }], ctorParameters: function () { return []; } });
1965
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1567
1966
 
1568
- /**
1569
- * The Button is a component which detects user interaction and triggers a corresponding event
1570
- *
1571
- * @category Components
1572
- */
1573
- class AXAvatarComponent extends AXAvatarMixin {
1574
- /**
1575
- * @ignore
1576
- */
1967
+ class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
1577
1968
  constructor(elementRef, cdr) {
1578
1969
  super(elementRef, cdr);
1579
- this.type = 'default';
1580
- }
1581
- get __hostClass() {
1582
- return `ax-${this.color}-default`;
1583
1970
  }
1584
1971
  }
1585
- AXAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1586
- AXAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAvatarComponent, selector: "ax-avatar", inputs: { color: "color", look: "look", text: "text", icon: "icon", src: "src", class: "class", type: "type" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-avatar" }, usesInheritance: true, ngImport: i0, template: "\r\n<div class=\"ax-avatar-container\" [ngSwitch]=\"type\">\r\n <ng-content select=\"ax-badge\"></ng-content>\r\n <div class=\"ax-text-avatar {{class}}\" *ngSwitchCase=\"'text'\">\r\n {{text}}\r\n </div>\r\n <div class=\"ax-icon-avatar {{class}}\" *ngSwitchCase=\"'icon'\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n </div>\r\n <div class=\"ax-image-avatar {{class}}\" *ngSwitchCase=\"'image'\">\r\n <ng-content select=\"img\"></ng-content>\r\n </div>\r\n <div class=\"ax-default-avatar {{class}}\" *ngSwitchCase=\"'default'\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 512 512\">\r\n <g style=\"isolation:isolate\">\r\n <g id=\"Layer_2\" data-name=\"Layer 2\">\r\n <g id=\"Layer_1-2\" data-name=\"Layer 1\">\r\n <rect width=\"512\" height=\"512\" />\r\n <path\r\n d=\"M419.16,511.94s-2.85-154-142.28-176.19a139.93,139.93,0,0,0-22-1.67h0a55.8,55.8,0,0,0-5.93.29C99.25,350.35,96.26,511.94,96.26,511.94\"\r\n style=\"fill:#fff;opacity:0.7\" />\r\n <path\r\n d=\"M256,355.18c-17.29,0-32.22-4.63-46.38-12.41-3.86,1.31-8.15,2.93-11.75,4.46A96.48,96.48,0,0,0,256,366.62a100.29,100.29,0,0,0,60.07-20c-3.6-1.49-6.41-2.55-10.27-3.83C291.48,350.79,273.58,355.18,256,355.18Z\"\r\n style=\"opacity:0.05\" />\r\n <circle cx=\"257.71\" cy=\"255.94\" r=\"99.24\" style=\"fill:#fff\" />\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n </div>\r\n</div>", directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, decorators: [{
1972
+ AXDecoratorSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1973
+ AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
1974
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1975
+ </ng-content>
1976
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
1588
1978
  type: Component,
1589
- args: [{ selector: 'ax-avatar', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: [...COLOR_LOOK_INPUTS], host: { class: 'ax-avatar' }, template: "\r\n<div class=\"ax-avatar-container\" [ngSwitch]=\"type\">\r\n <ng-content select=\"ax-badge\"></ng-content>\r\n <div class=\"ax-text-avatar {{class}}\" *ngSwitchCase=\"'text'\">\r\n {{text}}\r\n </div>\r\n <div class=\"ax-icon-avatar {{class}}\" *ngSwitchCase=\"'icon'\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n </div>\r\n <div class=\"ax-image-avatar {{class}}\" *ngSwitchCase=\"'image'\">\r\n <ng-content select=\"img\"></ng-content>\r\n </div>\r\n <div class=\"ax-default-avatar {{class}}\" *ngSwitchCase=\"'default'\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 512 512\">\r\n <g style=\"isolation:isolate\">\r\n <g id=\"Layer_2\" data-name=\"Layer 2\">\r\n <g id=\"Layer_1-2\" data-name=\"Layer 1\">\r\n <rect width=\"512\" height=\"512\" />\r\n <path\r\n d=\"M419.16,511.94s-2.85-154-142.28-176.19a139.93,139.93,0,0,0-22-1.67h0a55.8,55.8,0,0,0-5.93.29C99.25,350.35,96.26,511.94,96.26,511.94\"\r\n style=\"fill:#fff;opacity:0.7\" />\r\n <path\r\n d=\"M256,355.18c-17.29,0-32.22-4.63-46.38-12.41-3.86,1.31-8.15,2.93-11.75,4.46A96.48,96.48,0,0,0,256,366.62a100.29,100.29,0,0,0,60.07-20c-3.6-1.49-6.41-2.55-10.27-3.83C291.48,350.79,273.58,355.18,256,355.18Z\"\r\n style=\"opacity:0.05\" />\r\n <circle cx=\"257.71\" cy=\"255.94\" r=\"99.24\" style=\"fill:#fff\" />\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n </div>\r\n</div>" }]
1590
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1591
- type: Input
1592
- }], icon: [{
1593
- type: Input
1594
- }], src: [{
1595
- type: Input
1596
- }], class: [{
1597
- type: Input
1598
- }], type: [{
1599
- type: Input
1600
- }], __hostClass: [{
1601
- type: HostBinding,
1602
- args: ['class']
1603
- }] } });
1979
+ args: [{
1980
+ selector: 'ax-suffix',
1981
+ template: `
1982
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1983
+ </ng-content>
1984
+ `,
1985
+ changeDetection: ChangeDetectionStrategy.OnPush,
1986
+ encapsulation: ViewEncapsulation.None
1987
+ }]
1988
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1604
1989
 
1605
- const COMPONENT$m = [AXAvatarComponent, AXAvatarGroup];
1606
- const MODULES$m = [CommonModule];
1607
- class AXAvatarModule {
1990
+ const COMPONENT$n = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent];
1991
+ const MODULES$n = [CommonModule];
1992
+ class AXEditorDecoratorModule {
1608
1993
  }
1609
- AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1610
- AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
1611
- AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$m]] });
1612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, decorators: [{
1994
+ AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1995
+ AXEditorDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, declarations: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent] });
1996
+ AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$n]] });
1997
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
1613
1998
  type: NgModule,
1614
1999
  args: [{
1615
- declarations: [...COMPONENT$m],
1616
- imports: [...MODULES$m],
1617
- exports: [...COMPONENT$m],
2000
+ declarations: [...COMPONENT$n],
2001
+ imports: [...MODULES$n],
2002
+ exports: [...COMPONENT$n],
1618
2003
  providers: [],
1619
2004
  }]
1620
2005
  }] });
1621
2006
 
1622
- const AXBaseBadgeMixin = _ColorLookComponentMixin(AXBaseComponent);
1623
- class AXBadgeComponent extends AXBaseBadgeMixin {
2007
+ class AXIconComponent extends AXSizableComponentMixin {
1624
2008
  constructor(elementRef, cdr) {
1625
2009
  super(elementRef, cdr);
1626
- this.text = '';
1627
- //TODO: ax-badge
1628
2010
  }
1629
- get __hostClass() {
1630
- const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
1631
- return ['ax-badge', _class, !this.text ? 'ax-badge-icon' : ''].join(' ');
2011
+ get __iconClass() {
2012
+ return `ax-ic ${this.icon}`;
1632
2013
  }
1633
2014
  }
1634
- AXBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1635
- AXBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXBadgeComponent, selector: "ax-badge", inputs: { color: "color", look: "look", text: "text" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium ax-truncate\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1636
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, decorators: [{
2015
+ AXIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2016
+ AXIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.__iconClass" } }, usesInheritance: true, ngImport: i0, template: '<ng-content select="i,svg,img"></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2017
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, decorators: [{
1637
2018
  type: Component,
1638
- args: [{ selector: 'ax-badge', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...COLOR_LOOK_INPUTS], encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium ax-truncate\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>" }]
1639
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
2019
+ args: [{
2020
+ selector: 'ax-icon',
2021
+ template: '<ng-content select="i,svg,img"></ng-content>',
2022
+ changeDetection: ChangeDetectionStrategy.OnPush,
2023
+ encapsulation: ViewEncapsulation.None,
2024
+ }]
2025
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1640
2026
  type: Input
1641
- }], __hostClass: [{
2027
+ }], __iconClass: [{
1642
2028
  type: HostBinding,
1643
2029
  args: ['class']
1644
2030
  }] } });
1645
2031
 
1646
- const COMPONENT$l = [AXBadgeComponent];
1647
- const MODULES$l = [CommonModule];
1648
- class AXBadgeModule {
2032
+ const COMPONENT$m = [AXIconComponent];
2033
+ const MODULES$m = [CommonModule];
2034
+ class AXIconModule {
1649
2035
  }
1650
- AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1651
- AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
1652
- AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$l]] });
1653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, decorators: [{
2036
+ AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2037
+ AXIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
2038
+ AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$m]] });
2039
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, decorators: [{
1654
2040
  type: NgModule,
1655
2041
  args: [{
1656
- declarations: [...COMPONENT$l],
1657
- imports: [...MODULES$l],
1658
- exports: [...COMPONENT$l],
2042
+ declarations: [...COMPONENT$m],
2043
+ imports: [...MODULES$m],
2044
+ exports: [...COMPONENT$m],
1659
2045
  providers: [],
1660
2046
  }]
1661
2047
  }] });
1662
2048
 
1663
- class AXBreadCrumbsComponent extends AXBaseComponent {
1664
- constructor() {
1665
- super();
1666
- }
1667
- }
1668
- AXBreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1669
- AXBreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXBreadCrumbsComponent, selector: "ax-breadcrumbs", host: { classAttribute: "ax-breadcrumbs" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" });
1670
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, decorators: [{
1671
- type: Component,
1672
- args: [{ selector: 'ax-breadcrumbs', host: { class: 'ax-breadcrumbs' }, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" }]
1673
- }], ctorParameters: function () { return []; } });
1674
-
1675
- class AXBreadCrumbsItemComponent extends AXBaseComponent {
1676
- constructor() {
1677
- super();
1678
- }
2049
+ const COMPONENT$l = [
2050
+ AXButtonComponent,
2051
+ AXButtonItemComponent,
2052
+ AXButtonGroupComponent,
2053
+ ];
2054
+ const MODULES$l = [CommonModule, AXIconModule, AXEditorDecoratorModule];
2055
+ class AXButtonModule {
1679
2056
  }
1680
- AXBreadCrumbsItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1681
- AXBreadCrumbsItemComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: { text: "text" }, host: { classAttribute: "ax-breadcrumbs-item" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<div>{{text}}</div>\r\n<ng-content select=\"ax-suffix,ax-loading,ax-icon\">\r\n</ng-content>" });
1682
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, decorators: [{
1683
- type: Component,
1684
- args: [{ selector: 'ax-breadcrumbs-item', host: { class: 'ax-breadcrumbs-item' }, template: "<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<div>{{text}}</div>\r\n<ng-content select=\"ax-suffix,ax-loading,ax-icon\">\r\n</ng-content>" }]
1685
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
1686
- type: Input
1687
- }] } });
2057
+ AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2058
+ AXButtonModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
2059
+ AXButtonItemComponent,
2060
+ AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
2061
+ AXButtonItemComponent,
2062
+ AXButtonGroupComponent] });
2063
+ AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$l]] });
2064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, decorators: [{
2065
+ type: NgModule,
2066
+ args: [{
2067
+ imports: [MODULES$l],
2068
+ exports: [COMPONENT$l],
2069
+ declarations: [COMPONENT$l],
2070
+ providers: [],
2071
+ }]
2072
+ }] });
1688
2073
 
1689
- class AXBreadcrumbsModule {
2074
+ class AXActionSheetModule {
1690
2075
  }
1691
- AXBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1692
- AXBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent], imports: [CommonModule], exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent] });
1693
- AXBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, providers: [], imports: [[CommonModule]] });
1694
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, decorators: [{
2076
+ AXActionSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2077
+ AXActionSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, declarations: [AXActionSheetComponent, AXActionSheetItemComponent], imports: [CommonModule, AXDrawerModule, AXButtonModule], exports: [AXActionSheetComponent, AXActionSheetItemComponent] });
2078
+ AXActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, providers: [], imports: [[CommonModule, AXDrawerModule, AXButtonModule]] });
2079
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, decorators: [{
1695
2080
  type: NgModule,
1696
2081
  args: [{
1697
- declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
1698
- imports: [CommonModule],
1699
- exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
2082
+ declarations: [AXActionSheetComponent, AXActionSheetItemComponent],
2083
+ imports: [CommonModule, AXDrawerModule, AXButtonModule],
2084
+ exports: [AXActionSheetComponent, AXActionSheetItemComponent],
1700
2085
  providers: [],
1701
2086
  }]
1702
2087
  }] });
1703
2088
 
2089
+ var _AXAlertComponent_visible;
2090
+ const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);
1704
2091
  /**
1705
- * The Button is a component which detects user interaction and triggers a corresponding event
2092
+ * Regular description
1706
2093
  *
1707
2094
  * @category Components
1708
2095
  */
1709
- class AXButtonComponent extends AXBaseButtonMixin {
2096
+ class AXAlertComponent extends AXBaseAlertMixin {
1710
2097
  /**
1711
2098
  * @ignore
1712
2099
  */
1713
2100
  constructor(elementRef, cdr) {
1714
2101
  super(elementRef, cdr);
2102
+ this.showIcon = true;
2103
+ _AXAlertComponent_visible.set(this, void 0);
1715
2104
  }
1716
- onKeydownHandler(e) {
1717
- if (e.code === 'Enter') {
1718
- this._getHostElement().click();
1719
- }
1720
- }
1721
- _emitOnClickEvent(e) {
1722
- if (this.disabled)
1723
- return;
1724
- if (this.toggleable) {
1725
- this.selected = !this.selected;
2105
+ _onOptionChanged(option) {
2106
+ if (option.name == 'color') {
2107
+ switch (this.color) {
2108
+ case 'success':
2109
+ this.icon = 'ax-ic ax-ic-check-filled';
2110
+ break;
2111
+ case 'warning':
2112
+ this.icon = 'ax-ic-warning-filled';
2113
+ break;
2114
+ case 'danger':
2115
+ this.icon = 'ax-ic-error-filled';
2116
+ break;
2117
+ default:
2118
+ this.icon = 'ax-ic ax-ic-info-filled';
2119
+ break;
2120
+ }
1726
2121
  }
1727
- super._emitOnClickEvent(e);
1728
- }
1729
- _emitOnFocusEvent(e) {
1730
- super._emitOnFocusEvent(e);
1731
- }
1732
- _emitOnBlurEvent(e) {
1733
- super._emitOnBlurEvent(e);
1734
2122
  }
2123
+ /**
2124
+ * @ignore
2125
+ */
1735
2126
  get __hostClass() {
1736
- return Object.entries(this._classes).filter(c => c[1]).map(c => c[0]).join(' ');
1737
- }
1738
- }
1739
- AXButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1740
- AXButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonComponent, selector: "ax-button", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", color: "color", look: "look", text: "text", submitBehavior: "submitBehavior", cancelBehavior: "cancelBehavior", toggleable: "toggleable", selected: "selected" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { attributes: { "role": "button" }, listeners: { "keyup": "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 });
1741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, decorators: [{
1742
- type: Component,
1743
- args: [{ selector: 'ax-button', inputs: ['disabled', 'tabIndex', 'size', ...COLOR_LOOK_INPUTS, ...BUTTON_INPUTS], outputs: [...BUTTON_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { role: 'button' }, 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> -->" }]
1744
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
1745
- type: HostListener,
1746
- args: ['keyup', ['$event']]
1747
- }], _emitOnClickEvent: [{
1748
- type: HostListener,
1749
- args: ['click', ['$event']]
1750
- }], _emitOnFocusEvent: [{
1751
- type: HostListener,
1752
- args: ['focus', ['$event']]
1753
- }], _emitOnBlurEvent: [{
1754
- type: HostListener,
1755
- args: ['blur', ['$event']]
1756
- }], __hostClass: [{
1757
- type: HostBinding,
1758
- args: ['class']
1759
- }] } });
1760
-
1761
- class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1762
- constructor(elementRef, zone, cdr) {
1763
- super(elementRef, cdr);
1764
- this.zone = zone;
1765
- this.selectionChange = new EventEmitter();
1766
- this.colorChange = new EventEmitter();
1767
- this._color = 'primary';
1768
- this.lookChange = new EventEmitter();
1769
- this._look = null;
1770
- this.onItemClick = new EventEmitter();
1771
- this.onValueChanged = new EventEmitter();
1772
- }
1773
- get selection() {
1774
- return this._selection;
1775
- }
1776
- set selection(value) {
1777
- value = this._onOptionChanging({ name: 'selection', value: value });
1778
- const oldValue = this.selection;
1779
- if (value != oldValue) {
1780
- this._selection = value;
1781
- this.selectionChange.emit(value);
1782
- this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
1783
- }
2127
+ // return ` ax-alert ax-none ax-${this.color}-default ax-${this.look}-default`;
2128
+ const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
2129
+ return `ax-alert ax-none ${_class}`;
1784
2130
  }
1785
2131
  /**
1786
- * Predefined color schemes
2132
+ * set the visibility of the Alert
1787
2133
  */
1788
- get color() {
1789
- return this._color;
2134
+ get visible() {
2135
+ return __classPrivateFieldGet(this, _AXAlertComponent_visible, "f");
1790
2136
  }
1791
- set color(value) {
1792
- value = this._onOptionChanging({ name: 'color', value: value });
1793
- const oldValue = this.color;
1794
- if (value != oldValue) {
1795
- this._color = value;
1796
- this.colorChange.emit(value);
1797
- this.onOptionChanged({ name: 'value', oldValue, newValue: value });
2137
+ set visible(v) {
2138
+ if (__classPrivateFieldGet(this, _AXAlertComponent_visible, "f") != v) {
2139
+ __classPrivateFieldSet(this, _AXAlertComponent_visible, v, "f");
2140
+ const host = this._getHostElement();
2141
+ if (v) {
2142
+ host.classList.remove('ax-state-hidden');
2143
+ host.classList.add('ax-state-visible');
2144
+ }
2145
+ else {
2146
+ host.classList.add('ax-state-hidden');
2147
+ host.classList.toggle('ax-state-visible');
2148
+ }
1798
2149
  }
1799
2150
  }
1800
- /**
1801
- * Predefined look schemes
1802
- */
1803
- get look() {
1804
- return this._look;
1805
- }
1806
- set look(value) {
1807
- value = this._onOptionChanging({ name: 'look', value: value });
1808
- const oldValue = this.look;
1809
- if (value != oldValue) {
1810
- this._look = value;
1811
- this.lookChange.emit(value);
1812
- this.onOptionChanged({ name: 'look', oldValue, newValue: value });
2151
+ onInit() {
2152
+ if (this.timeOut) {
2153
+ setTimeout(() => {
2154
+ this.dismiss();
2155
+ }, this.timeOut);
1813
2156
  }
1814
2157
  }
1815
- ngAfterContentInit() {
1816
- this._bindEvents();
1817
- this._bindProps();
1818
- }
1819
- _bindEvents() {
1820
- (this._contentButtons || []).forEach(b => {
1821
- b.onClick.subscribe(c => {
1822
- this._handleClickEvent(c, b);
1823
- });
1824
- });
1825
- }
1826
- _bindProps() {
1827
- (this._contentButtons || []).forEach(b => {
1828
- b.look = this.look;
1829
- b.color = this.color;
1830
- b.disabled = this.disabled;
1831
- b.toggleable = false;
1832
- });
2158
+ onViewInit() {
2159
+ if (this.visible == undefined) {
2160
+ this.visible = true;
2161
+ }
1833
2162
  }
1834
- onOptionChanged(options) {
1835
- this._bindProps();
2163
+ /**
2164
+ * Remove the alert from the container
2165
+ */
2166
+ dismiss() {
2167
+ const host = this._getHostElement();
2168
+ this.visible = false;
2169
+ const func = () => {
2170
+ host.parentElement.removeChild(host);
2171
+ };
2172
+ host.addEventListener('transitionend', func);
1836
2173
  }
1837
- _handleClickEvent(e, button) {
1838
- if (this.selection == 'multiple') {
1839
- button.selected = !button.selected;
1840
- }
1841
- else if (this.selection == 'single') {
1842
- this._contentButtons.forEach(c => {
1843
- c.selected = false;
1844
- });
1845
- button.selected = true;
1846
- }
1847
- else {
1848
- button.selected = false;
1849
- }
1850
- this.onItemClick.emit({
1851
- component: this,
1852
- htmlElement: e.htmlElement,
1853
- item: button
1854
- });
2174
+ /**
2175
+ * Hide the alert
2176
+ */
2177
+ hide() {
2178
+ this.visible = false;
2179
+ }
2180
+ /**
2181
+ * Show the alert
2182
+ */
2183
+ show() {
2184
+ this.visible = true;
1855
2185
  }
1856
2186
  }
1857
- AXButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1858
- AXButtonGroupComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonGroupComponent, selector: "ax-button-group", inputs: { cssClass: "cssClass", size: "size", cssStyle: "cssStyle", rtl: "rtl", disabled: "disabled", selection: "selection", color: "color", look: "look" }, outputs: { selectionChange: "selectionChange", colorChange: "colorChange", lookChange: "lookChange", onItemClick: "onItemClick" }, host: { attributes: { "role": "group" }, classAttribute: "ax-button-group" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-button\">\r\n</ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1859
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
2187
+ _AXAlertComponent_visible = new WeakMap();
2188
+ AXAlertComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2189
+ AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertComponent, selector: "ax-alert", inputs: { color: "color", look: "look", icon: "icon", showIcon: "showIcon", timeOut: "timeOut", visible: "visible" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-alert-icon\" *ngIf=\"icon && showIcon\">\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 });
2190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
1860
2191
  type: Component,
1861
- args: [{ selector: 'ax-button-group', inputs: ['cssClass', 'size', 'cssStyle', 'rtl', 'disabled'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'ax-button-group', role: 'group' }, template: "<ng-content select=\"ax-button\">\r\n</ng-content>" }]
1862
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
1863
- type: Output
1864
- }], selection: [{
2192
+ args: [{ selector: 'ax-alert', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...COLOR_LOOK_INPUTS], encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-alert-icon\" *ngIf=\"icon && showIcon\">\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>" }]
2193
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1865
2194
  type: Input
1866
- }], colorChange: [{
1867
- type: Output
1868
- }], color: [{
2195
+ }], showIcon: [{
1869
2196
  type: Input
1870
- }], lookChange: [{
1871
- type: Output
1872
- }], look: [{
2197
+ }], __hostClass: [{
2198
+ type: HostBinding,
2199
+ args: ['class']
2200
+ }], timeOut: [{
2201
+ type: Input
2202
+ }], visible: [{
1873
2203
  type: Input
1874
- }], onItemClick: [{
1875
- type: Output
1876
- }], _contentButtons: [{
1877
- type: ContentChildren,
1878
- args: [AXButtonComponent, { descendants: true }]
1879
2204
  }] } });
1880
2205
 
1881
- const AXBaseItemButtonMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
1882
- class AXButtonItemComponent extends AXBaseItemButtonMixin {
1883
- /**
1884
- * @ignore
1885
- */
2206
+ class AXAlertTitleComponent {
2207
+ }
2208
+ AXAlertTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2209
+ AXAlertTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertTitleComponent, selector: "ax-alert-title", host: { classAttribute: "ax-alert-title" }, ngImport: i0, template: `
2210
+ <ng-content>
2211
+ </ng-content>
2212
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, decorators: [{
2214
+ type: Component,
2215
+ args: [{
2216
+ selector: 'ax-alert-title',
2217
+ template: `
2218
+ <ng-content>
2219
+ </ng-content>
2220
+ `,
2221
+ changeDetection: ChangeDetectionStrategy.OnPush,
2222
+ encapsulation: ViewEncapsulation.None,
2223
+ host: { class: 'ax-alert-title' }
2224
+ }]
2225
+ }] });
2226
+
2227
+ class AXAlertButtonComponent extends AXBaseClickableMixin {
1886
2228
  constructor(elementRef, cdr) {
1887
2229
  super(elementRef, cdr);
1888
- this.text = null;
1889
- this.tooltip = null;
1890
- this.selected = false;
1891
- this.seperated = false;
1892
- this.color = 'light';
1893
2230
  }
1894
- __hostClick(e) {
2231
+ _handleOnClick(e) {
1895
2232
  this._emitOnClickEvent(e);
1896
2233
  }
1897
- get __hostClass() {
1898
- const cssClasses = {
1899
- 'ax-button-icon': !this.text,
1900
- 'ax-state-disabled': this.disabled,
1901
- 'ax-state-selected': this.selected,
1902
- };
1903
- cssClasses[`ax-${this.color || 'primary'}-default`] = true;
1904
- return Object.entries(cssClasses).filter(c => c[1]).map(c => c[0]).join(' ');
2234
+ _handleOnFocus(e) {
2235
+ this._emitOnFocusEvent(e);
2236
+ }
2237
+ _handleOnBlur(e) {
2238
+ this._emitOnBlurEvent(e);
1905
2239
  }
1906
2240
  }
1907
- AXButtonItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1908
- AXButtonItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonItemComponent, selector: "ax-button-item", inputs: { text: "text", tooltip: "tooltip", selected: "selected", seperated: "seperated", name: "name", data: "data", color: "color" }, host: { listeners: { "click": "__hostClick($event)" }, properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: `
1909
- <ng-content select="ax-prefix">
1910
- </ng-content>
1911
- <ng-content select="ax-icon">
1912
- </ng-content>
1913
- <span *ngIf="text">{{text}}</span>
1914
- <ng-content select="ax-suffix">
1915
- </ng-content>
1916
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, decorators: [{
2241
+ AXAlertButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2242
+ AXAlertButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertButtonComponent, selector: "ax-alert-button", inputs: { text: "text", 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: `
2243
+ {{text}}
2244
+ <ng-content select="ax-icon"></ng-content>
2245
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
1918
2247
  type: Component,
1919
2248
  args: [{
1920
- selector: 'ax-button-item',
2249
+ selector: 'ax-alert-button',
1921
2250
  template: `
1922
- <ng-content select="ax-prefix">
1923
- </ng-content>
1924
- <ng-content select="ax-icon">
2251
+ {{text}}
2252
+ <ng-content select="ax-icon"></ng-content>
2253
+ `,
2254
+ changeDetection: ChangeDetectionStrategy.OnPush,
2255
+ encapsulation: ViewEncapsulation.None,
2256
+ outputs: [...BUTTON_OUTPUT],
2257
+ host: { class: 'ax-alert-button' }
2258
+ }]
2259
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
2260
+ type: Input
2261
+ }], icon: [{
2262
+ type: Input
2263
+ }], _handleOnClick: [{
2264
+ type: HostListener,
2265
+ args: ['click', ['$event']]
2266
+ }], _handleOnFocus: [{
2267
+ type: HostListener,
2268
+ args: ['focus', ['$event']]
2269
+ }], _handleOnBlur: [{
2270
+ type: HostListener,
2271
+ args: ['blur', ['$event']]
2272
+ }] } });
2273
+
2274
+ class AXAlertContentComponent {
2275
+ }
2276
+ AXAlertContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2277
+ AXAlertContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertContentComponent, selector: "ax-alert-content", host: { classAttribute: "ax-alert-content" }, ngImport: i0, template: `<ng-content>
1925
2278
  </ng-content>
1926
- <span *ngIf="text">{{text}}</span>
1927
- <ng-content select="ax-suffix">
2279
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, decorators: [{
2281
+ type: Component,
2282
+ args: [{
2283
+ selector: 'ax-alert-content',
2284
+ template: `<ng-content>
1928
2285
  </ng-content>
1929
2286
  `,
2287
+ changeDetection: ChangeDetectionStrategy.OnPush,
2288
+ encapsulation: ViewEncapsulation.None,
2289
+ host: { class: 'ax-alert-content' }
2290
+ }]
2291
+ }] });
2292
+
2293
+ class AXAlertSuffixComponent {
2294
+ }
2295
+ AXAlertSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2296
+ AXAlertSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertSuffixComponent, selector: "ax-alert-suffix", host: { classAttribute: "ax-alert-suffix" }, ngImport: i0, template: `
2297
+ <div class="ax-alert-buttons">
2298
+ <ng-content select="ax-alert-button">
2299
+ </ng-content>
2300
+ </div>
2301
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, decorators: [{
2303
+ type: Component,
2304
+ args: [{
2305
+ selector: 'ax-alert-suffix',
2306
+ template: `
2307
+ <div class="ax-alert-buttons">
2308
+ <ng-content select="ax-alert-button">
2309
+ </ng-content>
2310
+ </div>
2311
+ `,
2312
+ changeDetection: ChangeDetectionStrategy.OnPush,
1930
2313
  encapsulation: ViewEncapsulation.None,
2314
+ host: { class: 'ax-alert-suffix' }
2315
+ }]
2316
+ }] });
2317
+
2318
+ class AXAlertFooterComponent {
2319
+ }
2320
+ AXAlertFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2321
+ AXAlertFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertFooterComponent, selector: "ax-alert-footer", host: { classAttribute: "ax-alert-footer" }, ngImport: i0, template: `
2322
+ <div class="ax-alert-buttons">
2323
+ <ng-content select="ax-alert-button">
2324
+ </ng-content>
2325
+ </div>
2326
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, decorators: [{
2328
+ type: Component,
2329
+ args: [{
2330
+ selector: 'ax-alert-footer',
2331
+ template: `
2332
+ <div class="ax-alert-buttons">
2333
+ <ng-content select="ax-alert-button">
2334
+ </ng-content>
2335
+ </div>
2336
+ `,
1931
2337
  changeDetection: ChangeDetectionStrategy.OnPush,
2338
+ encapsulation: ViewEncapsulation.None,
2339
+ host: { class: 'ax-alert-footer' }
2340
+ }]
2341
+ }] });
2342
+
2343
+ const COMPONENT$k = [
2344
+ AXAlertComponent,
2345
+ AXAlertContentComponent,
2346
+ AXAlertTitleComponent,
2347
+ AXAlertButtonComponent,
2348
+ AXAlertFooterComponent,
2349
+ AXAlertSuffixComponent
2350
+ ];
2351
+ const MODULES$k = [CommonModule, AXIconModule];
2352
+ class AXAlertModule {
2353
+ }
2354
+ AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2355
+ AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
2356
+ AXAlertContentComponent,
2357
+ AXAlertTitleComponent,
2358
+ AXAlertButtonComponent,
2359
+ AXAlertFooterComponent,
2360
+ AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
2361
+ AXAlertContentComponent,
2362
+ AXAlertTitleComponent,
2363
+ AXAlertButtonComponent,
2364
+ AXAlertFooterComponent,
2365
+ AXAlertSuffixComponent] });
2366
+ AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$k]] });
2367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
2368
+ type: NgModule,
2369
+ args: [{
2370
+ declarations: [...COMPONENT$k],
2371
+ imports: [...MODULES$k],
2372
+ exports: [...COMPONENT$k],
2373
+ providers: [],
2374
+ }]
2375
+ }] });
2376
+
2377
+ class AXAvatarGroup {
2378
+ constructor() { }
2379
+ ngOnInit() { }
2380
+ }
2381
+ AXAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
2382
+ AXAvatarGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAvatarGroup, selector: "ax-avatar-group", host: { classAttribute: "ax-avatar-group" }, ngImport: i0, template: `<ng-content select='ax-avatar'></ng-content>`, isInline: true });
2383
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, decorators: [{
2384
+ type: Component,
2385
+ args: [{
2386
+ selector: 'ax-avatar-group',
2387
+ template: `<ng-content select='ax-avatar'></ng-content>`,
2388
+ host: { class: 'ax-avatar-group' }
1932
2389
  }]
2390
+ }], ctorParameters: function () { return []; } });
2391
+
2392
+ /**
2393
+ * The Button is a component which detects user interaction and triggers a corresponding event
2394
+ *
2395
+ * @category Components
2396
+ */
2397
+ class AXAvatarComponent extends AXAvatarMixin {
2398
+ /**
2399
+ * @ignore
2400
+ */
2401
+ constructor(elementRef, cdr) {
2402
+ super(elementRef, cdr);
2403
+ this.type = 'default';
2404
+ }
2405
+ get __hostClass() {
2406
+ return `ax-${this.color}-default`;
2407
+ }
2408
+ }
2409
+ AXAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2410
+ AXAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAvatarComponent, selector: "ax-avatar", inputs: { color: "color", look: "look", text: "text", icon: "icon", src: "src", class: "class", type: "type" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-avatar" }, usesInheritance: true, ngImport: i0, template: "\r\n<div class=\"ax-avatar-container\" [ngSwitch]=\"type\">\r\n <ng-content select=\"ax-badge\"></ng-content>\r\n <div class=\"ax-text-avatar {{class}}\" *ngSwitchCase=\"'text'\">\r\n {{text}}\r\n </div>\r\n <div class=\"ax-icon-avatar {{class}}\" *ngSwitchCase=\"'icon'\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n </div>\r\n <div class=\"ax-image-avatar {{class}}\" *ngSwitchCase=\"'image'\">\r\n <ng-content select=\"img\"></ng-content>\r\n </div>\r\n <div class=\"ax-default-avatar {{class}}\" *ngSwitchCase=\"'default'\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 512 512\">\r\n <g style=\"isolation:isolate\">\r\n <g id=\"Layer_2\" data-name=\"Layer 2\">\r\n <g id=\"Layer_1-2\" data-name=\"Layer 1\">\r\n <rect width=\"512\" height=\"512\" />\r\n <path\r\n d=\"M419.16,511.94s-2.85-154-142.28-176.19a139.93,139.93,0,0,0-22-1.67h0a55.8,55.8,0,0,0-5.93.29C99.25,350.35,96.26,511.94,96.26,511.94\"\r\n style=\"fill:#fff;opacity:0.7\" />\r\n <path\r\n d=\"M256,355.18c-17.29,0-32.22-4.63-46.38-12.41-3.86,1.31-8.15,2.93-11.75,4.46A96.48,96.48,0,0,0,256,366.62a100.29,100.29,0,0,0,60.07-20c-3.6-1.49-6.41-2.55-10.27-3.83C291.48,350.79,273.58,355.18,256,355.18Z\"\r\n style=\"opacity:0.05\" />\r\n <circle cx=\"257.71\" cy=\"255.94\" r=\"99.24\" style=\"fill:#fff\" />\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n </div>\r\n</div>", directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, decorators: [{
2412
+ type: Component,
2413
+ args: [{ selector: 'ax-avatar', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: [...COLOR_LOOK_INPUTS], host: { class: 'ax-avatar' }, template: "\r\n<div class=\"ax-avatar-container\" [ngSwitch]=\"type\">\r\n <ng-content select=\"ax-badge\"></ng-content>\r\n <div class=\"ax-text-avatar {{class}}\" *ngSwitchCase=\"'text'\">\r\n {{text}}\r\n </div>\r\n <div class=\"ax-icon-avatar {{class}}\" *ngSwitchCase=\"'icon'\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n </div>\r\n <div class=\"ax-image-avatar {{class}}\" *ngSwitchCase=\"'image'\">\r\n <ng-content select=\"img\"></ng-content>\r\n </div>\r\n <div class=\"ax-default-avatar {{class}}\" *ngSwitchCase=\"'default'\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 512 512\">\r\n <g style=\"isolation:isolate\">\r\n <g id=\"Layer_2\" data-name=\"Layer 2\">\r\n <g id=\"Layer_1-2\" data-name=\"Layer 1\">\r\n <rect width=\"512\" height=\"512\" />\r\n <path\r\n d=\"M419.16,511.94s-2.85-154-142.28-176.19a139.93,139.93,0,0,0-22-1.67h0a55.8,55.8,0,0,0-5.93.29C99.25,350.35,96.26,511.94,96.26,511.94\"\r\n style=\"fill:#fff;opacity:0.7\" />\r\n <path\r\n d=\"M256,355.18c-17.29,0-32.22-4.63-46.38-12.41-3.86,1.31-8.15,2.93-11.75,4.46A96.48,96.48,0,0,0,256,366.62a100.29,100.29,0,0,0,60.07-20c-3.6-1.49-6.41-2.55-10.27-3.83C291.48,350.79,273.58,355.18,256,355.18Z\"\r\n style=\"opacity:0.05\" />\r\n <circle cx=\"257.71\" cy=\"255.94\" r=\"99.24\" style=\"fill:#fff\" />\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n </div>\r\n</div>" }]
1933
2414
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1934
2415
  type: Input
1935
- }], tooltip: [{
1936
- type: Input
1937
- }], selected: [{
1938
- type: Input
1939
- }], seperated: [{
2416
+ }], icon: [{
1940
2417
  type: Input
1941
- }], name: [{
2418
+ }], src: [{
1942
2419
  type: Input
1943
- }], data: [{
2420
+ }], class: [{
1944
2421
  type: Input
1945
- }], color: [{
2422
+ }], type: [{
1946
2423
  type: Input
1947
- }], __hostClick: [{
1948
- type: HostListener,
1949
- args: ['click', ['$event']]
1950
2424
  }], __hostClass: [{
1951
2425
  type: HostBinding,
1952
2426
  args: ['class']
1953
2427
  }] } });
1954
2428
 
1955
- class AXDecoratorContentComponent extends AXBaseComponentMixin {
1956
- constructor(elementRef, cdr) {
1957
- super(elementRef, cdr);
1958
- }
1959
- }
1960
- AXDecoratorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1961
- AXDecoratorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorContentComponent, selector: "ax-content", usesInheritance: true, ngImport: i0, template: `
1962
- <ng-content>
1963
- </ng-content>
1964
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1965
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, decorators: [{
1966
- type: Component,
1967
- args: [{
1968
- selector: 'ax-content',
1969
- template: `
1970
- <ng-content>
1971
- </ng-content>
1972
- `,
1973
- changeDetection: ChangeDetectionStrategy.OnPush,
1974
- encapsulation: ViewEncapsulation.None,
1975
- }]
1976
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1977
-
1978
- class AXDecoratorAddOnComponent extends AXBaseComponentMixin {
1979
- constructor(_elementRef, _cdr) {
1980
- super(_elementRef, _cdr);
1981
- }
2429
+ const COMPONENT$j = [AXAvatarComponent, AXAvatarGroup];
2430
+ const MODULES$j = [CommonModule];
2431
+ class AXAvatarModule {
1982
2432
  }
1983
- AXDecoratorAddOnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1984
- AXDecoratorAddOnComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorAddOnComponent, selector: "ax-addon", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, decorators: [{
1986
- type: Component,
2433
+ AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2434
+ AXAvatarModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
2435
+ AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$j]] });
2436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, decorators: [{
2437
+ type: NgModule,
1987
2438
  args: [{
1988
- selector: 'ax-addon',
1989
- template: `<ng-content></ng-content>`,
1990
- changeDetection: ChangeDetectionStrategy.OnPush,
1991
- encapsulation: ViewEncapsulation.None
2439
+ declarations: [...COMPONENT$j],
2440
+ imports: [...MODULES$j],
2441
+ exports: [...COMPONENT$j],
2442
+ providers: [],
1992
2443
  }]
1993
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2444
+ }] });
1994
2445
 
1995
- class AXDecoratorHeaderComponent extends AXBaseComponentMixin {
2446
+ const AXBaseBadgeMixin = _ColorLookComponentMixin(AXBaseComponent);
2447
+ class AXBadgeComponent extends AXBaseBadgeMixin {
1996
2448
  constructor(elementRef, cdr) {
1997
2449
  super(elementRef, cdr);
2450
+ this.text = '';
2451
+ //TODO: ax-badge
2452
+ }
2453
+ get __hostClass() {
2454
+ const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
2455
+ return ['ax-badge', _class, !this.text ? 'ax-badge-icon' : ''].join(' ');
1998
2456
  }
1999
2457
  }
2000
- AXDecoratorHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2001
- AXDecoratorHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorHeaderComponent, selector: "ax-header", usesInheritance: true, ngImport: i0, template: `
2002
- <ng-content>
2003
- </ng-content>
2004
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2005
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, decorators: [{
2458
+ AXBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2459
+ AXBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXBadgeComponent, selector: "ax-badge", inputs: { color: "color", look: "look", text: "text" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium ax-truncate\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, decorators: [{
2006
2461
  type: Component,
2007
- args: [{
2008
- selector: 'ax-header',
2009
- template: `
2010
- <ng-content>
2011
- </ng-content>
2012
- `,
2013
- changeDetection: ChangeDetectionStrategy.OnPush,
2014
- encapsulation: ViewEncapsulation.None,
2015
- }]
2016
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2462
+ args: [{ selector: 'ax-badge', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...COLOR_LOOK_INPUTS], encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium ax-truncate\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>" }]
2463
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
2464
+ type: Input
2465
+ }], __hostClass: [{
2466
+ type: HostBinding,
2467
+ args: ['class']
2468
+ }] } });
2017
2469
 
2018
- class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
2019
- constructor(elementRef, cdr) {
2020
- super(elementRef, cdr);
2021
- }
2470
+ const COMPONENT$i = [AXBadgeComponent];
2471
+ const MODULES$i = [CommonModule];
2472
+ class AXBadgeModule {
2022
2473
  }
2023
- AXDecoratorPrefixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2024
- AXDecoratorPrefixComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
2025
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2026
- </ng-content>
2027
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2028
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
2029
- type: Component,
2474
+ AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2475
+ AXBadgeModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
2476
+ AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$i]] });
2477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, decorators: [{
2478
+ type: NgModule,
2030
2479
  args: [{
2031
- selector: 'ax-prefix',
2032
- template: `
2033
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2034
- </ng-content>
2035
- `,
2036
- changeDetection: ChangeDetectionStrategy.OnPush,
2037
- encapsulation: ViewEncapsulation.None
2480
+ declarations: [...COMPONENT$i],
2481
+ imports: [...MODULES$i],
2482
+ exports: [...COMPONENT$i],
2483
+ providers: [],
2038
2484
  }]
2039
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2485
+ }] });
2040
2486
 
2041
- class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
2042
- constructor(elementRef, cdr) {
2043
- super(elementRef, cdr);
2487
+ class AXBreadCrumbsComponent extends AXBaseComponent {
2488
+ constructor() {
2489
+ super();
2044
2490
  }
2045
2491
  }
2046
- AXDecoratorSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2047
- AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
2048
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2049
- </ng-content>
2050
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2051
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
2492
+ AXBreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2493
+ AXBreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXBreadCrumbsComponent, selector: "ax-breadcrumbs", host: { classAttribute: "ax-breadcrumbs" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" });
2494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, decorators: [{
2052
2495
  type: Component,
2053
- args: [{
2054
- selector: 'ax-suffix',
2055
- template: `
2056
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2057
- </ng-content>
2058
- `,
2059
- changeDetection: ChangeDetectionStrategy.OnPush,
2060
- encapsulation: ViewEncapsulation.None
2061
- }]
2062
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2496
+ args: [{ selector: 'ax-breadcrumbs', host: { class: 'ax-breadcrumbs' }, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" }]
2497
+ }], ctorParameters: function () { return []; } });
2063
2498
 
2064
- const COMPONENT$k = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent];
2065
- const MODULES$k = [CommonModule];
2066
- class AXEditorDecoratorModule {
2499
+ class AXBreadCrumbsItemComponent extends AXBaseComponent {
2500
+ constructor() {
2501
+ super();
2502
+ }
2067
2503
  }
2068
- AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2069
- AXEditorDecoratorModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, declarations: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent] });
2070
- AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$k]] });
2071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
2072
- type: NgModule,
2073
- args: [{
2074
- declarations: [...COMPONENT$k],
2075
- imports: [...MODULES$k],
2076
- exports: [...COMPONENT$k],
2077
- providers: [],
2078
- }]
2079
- }] });
2504
+ AXBreadCrumbsItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2505
+ AXBreadCrumbsItemComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: { text: "text" }, host: { classAttribute: "ax-breadcrumbs-item" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<div>{{text}}</div>\r\n<ng-content select=\"ax-suffix,ax-loading,ax-icon\">\r\n</ng-content>" });
2506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, decorators: [{
2507
+ type: Component,
2508
+ args: [{ selector: 'ax-breadcrumbs-item', host: { class: 'ax-breadcrumbs-item' }, template: "<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<div>{{text}}</div>\r\n<ng-content select=\"ax-suffix,ax-loading,ax-icon\">\r\n</ng-content>" }]
2509
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
2510
+ type: Input
2511
+ }] } });
2080
2512
 
2081
- const COMPONENT$j = [
2082
- AXButtonComponent,
2083
- AXButtonItemComponent,
2084
- AXButtonGroupComponent,
2085
- ];
2086
- const MODULES$j = [CommonModule, AXIconModule, AXEditorDecoratorModule];
2087
- class AXButtonModule {
2513
+ class AXBreadcrumbsModule {
2088
2514
  }
2089
- AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2090
- AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
2091
- AXButtonItemComponent,
2092
- AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
2093
- AXButtonItemComponent,
2094
- AXButtonGroupComponent] });
2095
- AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$j]] });
2096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, decorators: [{
2515
+ AXBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2516
+ AXBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent], imports: [CommonModule], exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent] });
2517
+ AXBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, providers: [], imports: [[CommonModule]] });
2518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, decorators: [{
2097
2519
  type: NgModule,
2098
2520
  args: [{
2099
- imports: [MODULES$j],
2100
- exports: [COMPONENT$j],
2101
- declarations: [COMPONENT$j],
2521
+ declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
2522
+ imports: [CommonModule],
2523
+ exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
2102
2524
  providers: [],
2103
2525
  }]
2104
2526
  }] });
@@ -2462,19 +2884,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2462
2884
  args: ['class']
2463
2885
  }] } });
2464
2886
 
2465
- const COMPONENT$i = [AXCalendarComponent];
2466
- const MODULES$i = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
2887
+ const COMPONENT$h = [AXCalendarComponent];
2888
+ const MODULES$h = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
2467
2889
  class AXCalendarModule {
2468
2890
  }
2469
2891
  AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2470
2892
  AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule], exports: [AXCalendarComponent] });
2471
- AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
2893
+ AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
2472
2894
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, decorators: [{
2473
2895
  type: NgModule,
2474
2896
  args: [{
2475
- declarations: [...COMPONENT$i],
2476
- imports: [...MODULES$i],
2477
- exports: [...COMPONENT$i],
2897
+ declarations: [...COMPONENT$h],
2898
+ imports: [...MODULES$h],
2899
+ exports: [...COMPONENT$h],
2478
2900
  providers: [],
2479
2901
  }]
2480
2902
  }] });
@@ -2936,19 +3358,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2936
3358
  }]
2937
3359
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
2938
3360
 
2939
- const COMPONENT$h = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
2940
- const MODULES$h = [CommonModule];
3361
+ const COMPONENT$g = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
3362
+ const MODULES$g = [CommonModule];
2941
3363
  class AXCarouselModule {
2942
3364
  }
2943
3365
  AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2944
3366
  AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
2945
- AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$h]] });
3367
+ AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$g]] });
2946
3368
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, decorators: [{
2947
3369
  type: NgModule,
2948
3370
  args: [{
2949
- declarations: [...COMPONENT$h],
2950
- imports: [...MODULES$h],
2951
- exports: [...COMPONENT$h],
3371
+ declarations: [...COMPONENT$g],
3372
+ imports: [...MODULES$g],
3373
+ exports: [...COMPONENT$g],
2952
3374
  providers: [],
2953
3375
  }]
2954
3376
  }] });
@@ -3325,8 +3747,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3325
3747
  args: ['axIsLoading']
3326
3748
  }] } });
3327
3749
 
3328
- const COMPONENT$g = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3329
- const MODULES$g = [CommonModule, OverlayModule, PortalModule];
3750
+ const COMPONENT$f = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3751
+ const MODULES$f = [CommonModule, OverlayModule, PortalModule];
3330
3752
  class AXLoadingModule {
3331
3753
  constructor() {
3332
3754
  AXConfig.set({
@@ -3340,13 +3762,13 @@ class AXLoadingModule {
3340
3762
  }
3341
3763
  AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3342
3764
  AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
3343
- AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$g]] });
3765
+ AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$f]] });
3344
3766
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, decorators: [{
3345
3767
  type: NgModule,
3346
3768
  args: [{
3347
- declarations: [...COMPONENT$g],
3348
- imports: [...MODULES$g],
3349
- exports: [...COMPONENT$g],
3769
+ declarations: [...COMPONENT$f],
3770
+ imports: [...MODULES$f],
3771
+ exports: [...COMPONENT$f],
3350
3772
  providers: [],
3351
3773
  }]
3352
3774
  }], ctorParameters: function () { return []; } });
@@ -3624,19 +4046,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3624
4046
  }]
3625
4047
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: AXOverlayService }]; } });
3626
4048
 
3627
- const COMPONENT$f = [AXDataListComponent];
3628
- const MODULES$f = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
4049
+ const COMPONENT$e = [AXDataListComponent];
4050
+ const MODULES$e = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
3629
4051
  class AXDataListModule {
3630
4052
  }
3631
4053
  AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3632
4054
  AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule], exports: [AXDataListComponent] });
3633
- AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$f]] });
4055
+ AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$e]] });
3634
4056
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, decorators: [{
3635
4057
  type: NgModule,
3636
4058
  args: [{
3637
- declarations: [...COMPONENT$f],
3638
- imports: [...MODULES$f],
3639
- exports: [...COMPONENT$f],
4059
+ declarations: [...COMPONENT$e],
4060
+ imports: [...MODULES$e],
4061
+ exports: [...COMPONENT$e],
3640
4062
  providers: [],
3641
4063
  }]
3642
4064
  }] });
@@ -4080,8 +4502,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4080
4502
  }]
4081
4503
  }] });
4082
4504
 
4083
- const COMPONENT$e = [AXDatePickerComponent];
4084
- const MODULES$e = [
4505
+ const COMPONENT$d = [AXDatePickerComponent];
4506
+ const MODULES$d = [
4085
4507
  CommonModule,
4086
4508
  AXCalendarModule,
4087
4509
  AXTextBoxModule,
@@ -4104,13 +4526,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
4104
4526
  AXIconModule,
4105
4527
  AXDateTimeModule,
4106
4528
  FormsModule], exports: [AXDatePickerComponent] });
4107
- AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
4529
+ AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$d]] });
4108
4530
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, decorators: [{
4109
4531
  type: NgModule,
4110
4532
  args: [{
4111
- declarations: [...COMPONENT$e],
4112
- imports: [...MODULES$e],
4113
- exports: [...COMPONENT$e],
4533
+ declarations: [...COMPONENT$d],
4534
+ imports: [...MODULES$d],
4535
+ exports: [...COMPONENT$d],
4114
4536
  providers: [],
4115
4537
  }]
4116
4538
  }] });
@@ -4290,20 +4712,41 @@ class AXPageComponent extends AXBaseComponentMixin {
4290
4712
  constructor(elementRef, cdr, _loadingService) {
4291
4713
  super(elementRef, cdr);
4292
4714
  this._loadingService = _loadingService;
4715
+ // private _isLoading: boolean = false;
4716
+ // public get isLoading(): boolean {
4717
+ // return this._isLoading;
4718
+ // }
4719
+ // public set isLoading(v: boolean) {
4720
+ // this._isLoading = v;
4721
+ // if (this._loadingId && !v) {
4722
+ // this._loadingService.hide(this._loadingId);
4723
+ // this._loadingId = null;
4724
+ // }
4725
+ // if (v) {
4726
+ // this._loadingId = this._loadingService.show(this._getHostElement());
4727
+ // }
4728
+ // }
4729
+ this.isLoadingChange = new EventEmitter();
4293
4730
  this._isLoading = false;
4294
4731
  }
4295
4732
  get isLoading() {
4296
4733
  return this._isLoading;
4297
4734
  }
4298
4735
  set isLoading(v) {
4299
- this._isLoading = v;
4300
- if (this._loadingId && !v) {
4301
- this._loadingService.hide(this._loadingId);
4302
- this._loadingId = null;
4303
- }
4304
- if (v) {
4305
- this._loadingId = this._loadingService.show(this._getHostElement());
4306
- }
4736
+ this._setOption({
4737
+ name: 'isLoading',
4738
+ value: v,
4739
+ afterCallback: () => {
4740
+ if (this._loadingId && !v) {
4741
+ this._loadingService.hide(this._loadingId);
4742
+ this._loadingId = null;
4743
+ }
4744
+ if (v) {
4745
+ this._loadingId = this._loadingService.show(this._getHostElement());
4746
+ }
4747
+ this._cdr.markForCheck();
4748
+ }
4749
+ });
4307
4750
  }
4308
4751
  }
4309
4752
  AXPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -4313,7 +4756,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4313
4756
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
4314
4757
  type: Inject,
4315
4758
  args: [AXLoadingService]
4316
- }] }]; } });
4759
+ }] }]; }, propDecorators: { isLoadingChange: [{
4760
+ type: Output
4761
+ }], isLoading: [{
4762
+ type: Input
4763
+ }] } });
4317
4764
 
4318
4765
  class AXPageFooterComponent {
4319
4766
  }
@@ -4364,8 +4811,13 @@ class AXPageClosedPromise extends Promise {
4364
4811
  }
4365
4812
  }
4366
4813
  }
4367
- class AXBasePageComponent {
4368
- constructor() {
4814
+ class AXBasePageComponent extends AXBaseComponentMixin {
4815
+ /**
4816
+ * @ignore
4817
+ */
4818
+ constructor(elementRef, cdr) {
4819
+ super(elementRef, cdr);
4820
+ this.isLoadingChange = new EventEmitter();
4369
4821
  this._isLoading = false;
4370
4822
  this._isPopup = false;
4371
4823
  this.onClosed = new EventEmitter();
@@ -4374,11 +4826,16 @@ class AXBasePageComponent {
4374
4826
  return this._isLoading;
4375
4827
  }
4376
4828
  set isLoading(v) {
4377
- ;
4378
- this._isLoading = v;
4379
- if (this.pageContainer) {
4380
- this.pageContainer.isLoading = this.isLoading;
4381
- }
4829
+ this._setOption({
4830
+ name: 'isLoading',
4831
+ value: v,
4832
+ afterCallback: () => {
4833
+ if (this.pageContainer) {
4834
+ this.pageContainer.isLoading = this.isLoading;
4835
+ }
4836
+ this._cdr.markForCheck();
4837
+ }
4838
+ });
4382
4839
  }
4383
4840
  get isPopup() {
4384
4841
  return this._isPopup;
@@ -4395,16 +4852,20 @@ class AXBasePageComponent {
4395
4852
  this.onClosed.unsubscribe();
4396
4853
  }
4397
4854
  }
4398
- AXBasePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4855
+ AXBasePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
4399
4856
  AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent });
4400
4857
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, decorators: [{
4401
4858
  type: Injectable
4402
- }], propDecorators: { pageContainer: [{
4859
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { pageContainer: [{
4403
4860
  type: ViewChild,
4404
4861
  args: [AXPageComponent, { static: true }]
4405
4862
  }], footer: [{
4406
4863
  type: ViewChild,
4407
4864
  args: [AXPageFooterComponent, { static: true }]
4865
+ }], isLoadingChange: [{
4866
+ type: Output
4867
+ }], isLoading: [{
4868
+ type: Input
4408
4869
  }] } });
4409
4870
 
4410
4871
  class AXPageHeaderComponent {
@@ -4448,272 +4909,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4448
4909
  }]
4449
4910
  }] });
4450
4911
 
4451
- const COMPONENT$d = [AXDialogComponent];
4452
- const MODULES$d = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
4912
+ const COMPONENT$c = [AXDialogComponent];
4913
+ const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
4453
4914
  class AXDialogModule {
4454
4915
  }
4455
4916
  AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4456
4917
  AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule], exports: [AXDialogComponent] });
4457
- AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$d]] });
4918
+ AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
4458
4919
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, decorators: [{
4459
- type: NgModule,
4460
- args: [{
4461
- declarations: [...COMPONENT$d],
4462
- imports: [...MODULES$d],
4463
- exports: [...COMPONENT$d],
4464
- providers: [],
4465
- }]
4466
- }] });
4467
-
4468
- class AXDrawerComponent extends AXBaseComponentMixin {
4469
- constructor(elementRef, cdr, zone) {
4470
- super(elementRef, cdr);
4471
- this.elementRef = elementRef;
4472
- this.zone = zone;
4473
- this.onChanged = new EventEmitter();
4474
- this.mode = 'push';
4475
- this.location = 'start';
4476
- this._collapsed = false;
4477
- }
4478
- get collapsed() {
4479
- return this._collapsed;
4480
- }
4481
- set collapsed(v) {
4482
- if (v != this._collapsed) {
4483
- this._collapsed = v;
4484
- this._updateClass();
4485
- this._emitChange();
4486
- }
4487
- }
4488
- onInit() {
4489
- this._getHostElement().classList.add(this.location == 'start' ? 'ax-drawer-start' : 'ax-drawer-end');
4490
- this._currentMode = this.mode;
4491
- }
4492
- _updateClass() {
4493
- this.zone.runOutsideAngular(() => {
4494
- const elm = this._getHostElement();
4495
- //
4496
- this._currentMode == 'overlay' ? this._setOverlayMode() : this._setPushMode();
4497
- //
4498
- if (this.collapsed) {
4499
- elm.classList.remove('ax-expanded');
4500
- elm.classList.add('ax-collapsed');
4501
- if (this._currentMode == 'overlay') {
4502
- this._removeBackdrop();
4503
- }
4504
- }
4505
- else {
4506
- elm.classList.add('ax-expanded');
4507
- elm.classList.remove('ax-collapsed');
4508
- if (this._currentMode == 'overlay') {
4509
- this._addBackdrop();
4510
- }
4511
- }
4512
- });
4513
- }
4514
- onViewInit() {
4515
- this._detectSize();
4516
- }
4517
- toggle() {
4518
- this.collapsed = !this.collapsed;
4519
- }
4520
- close() {
4521
- this.collapsed = true;
4522
- }
4523
- open() {
4524
- this.collapsed = false;
4525
- }
4526
- _handleWindowsResize(e) {
4527
- this._detectSize();
4528
- }
4529
- _detectSize() {
4530
- //TODO detect break size
4531
- const bound = this._getHostElement().parentElement.getBoundingClientRect();
4532
- if (bound.width == 0) {
4533
- console.log('Drawe invalid size', bound);
4534
- setTimeout(() => {
4535
- this._detectSize();
4536
- }, 1);
4537
- return;
4538
- }
4539
- if (bound.width < 400) {
4540
- this._currentMode = 'overlay';
4541
- this.collapsed = true;
4542
- }
4543
- else {
4544
- this._currentMode = this.mode;
4545
- }
4546
- this._updateClass();
4547
- this._emitChange();
4548
- }
4549
- _emitChange() {
4550
- this.onChanged.emit({
4551
- component: this,
4552
- htmlElement: this.elementRef.nativeElement
4553
- });
4554
- }
4555
- _setOverlayMode() {
4556
- this._currentMode = 'overlay';
4557
- this._getHostElement().classList.remove('ax-drawer-push');
4558
- this._getHostElement().classList.add('ax-drawer-overlay');
4559
- }
4560
- _setPushMode() {
4561
- this._currentMode = 'push';
4562
- this._getHostElement().classList.remove('ax-drawer-overlay');
4563
- this._getHostElement().classList.add('ax-drawer-push');
4564
- this._removeBackdrop();
4565
- }
4566
- _addBackdrop() {
4567
- if (!this._backdrop) {
4568
- this._backdrop = document.createElement('div');
4569
- this._backdrop.classList.add('ax-drawer-backdrop');
4570
- this._getHostElement().parentElement.prepend(this._backdrop);
4571
- this._backdrop.addEventListener('click', this._handleBackfropClick.bind(this));
4572
- }
4573
- }
4574
- _removeBackdrop() {
4575
- if (this._backdrop) {
4576
- this._backdrop.removeEventListener('click', this._handleBackfropClick.bind(this));
4577
- this._getHostElement().parentElement.removeChild(this._backdrop);
4578
- this._backdrop = null;
4579
- }
4580
- }
4581
- _handleBackfropClick(e) {
4582
- this._removeBackdrop();
4583
- this.collapsed = true;
4584
- }
4585
- }
4586
- AXDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
4587
- AXDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerComponent, selector: "ax-drawer", inputs: { mode: "mode", location: "location", collapsed: "collapsed" }, outputs: { onChanged: "onChanged" }, host: { listeners: { "window:resize": "_handleWindowsResize($event)" }, classAttribute: "ax-drawer" }, usesInheritance: true, ngImport: i0, template: `
4588
- <ng-content>
4589
- </ng-content>
4590
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, decorators: [{
4592
- type: Component,
4593
- args: [{
4594
- selector: 'ax-drawer',
4595
- template: `
4596
- <ng-content>
4597
- </ng-content>
4598
- `,
4599
- changeDetection: ChangeDetectionStrategy.OnPush,
4600
- encapsulation: ViewEncapsulation.None,
4601
- host: { class: 'ax-drawer' }
4602
- }]
4603
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { onChanged: [{
4604
- type: Output
4605
- }], mode: [{
4606
- type: Input
4607
- }], location: [{
4608
- type: Input
4609
- }], collapsed: [{
4610
- type: Input
4611
- }], _handleWindowsResize: [{
4612
- type: HostListener,
4613
- args: ['window:resize', ['$event']]
4614
- }] } });
4615
-
4616
- class AXDrawerContainerComponent extends AXBaseComponentMixin {
4617
- constructor(elementRef, cdr, zone) {
4618
- super(elementRef, cdr);
4619
- this.zone = zone;
4620
- }
4621
- onViewInit() {
4622
- this._updateWidth();
4623
- // add animation
4624
- setTimeout(() => {
4625
- this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
4626
- c.classList.add('ax-animated');
4627
- });
4628
- }, 100);
4629
- this.drawers.forEach(c => {
4630
- c.onChanged.subscribe(c => {
4631
- this._updateWidth();
4632
- });
4633
- });
4634
- }
4635
- _updateWidth() {
4636
- this.zone.runOutsideAngular(() => {
4637
- const container = this._getHostElement().closest('ax-drawer-container');
4638
- const parentWidth = this._getHostElement().getBoundingClientRect().width;
4639
- let w = 0;
4640
- this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
4641
- const elm = c;
4642
- const width = elm.getBoundingClientRect().width;
4643
- const overflow = parentWidth < width;
4644
- const diff = width - parentWidth;
4645
- w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
4646
- elm.style.setProperty('--attr-width', `${width}px`);
4647
- //TODO check overflow
4648
- elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
4649
- });
4650
- container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
4651
- });
4652
- }
4653
- }
4654
- AXDrawerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
4655
- AXDrawerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContainerComponent, selector: "ax-drawer-container", inputs: { rtl: "rtl" }, host: { classAttribute: "ax-drawer-container" }, queries: [{ propertyName: "drawers", predicate: AXDrawerComponent }], usesInheritance: true, ngImport: i0, template: `
4656
- <ng-content select="ax-drawer[location='start']">
4657
- </ng-content>
4658
- <ng-content select="ax-drawer-content">
4659
- </ng-content>
4660
- <ng-content select="ax-drawer[location='end']">
4661
- </ng-content>
4662
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
4664
- type: Component,
4665
- args: [{
4666
- selector: 'ax-drawer-container',
4667
- template: `
4668
- <ng-content select="ax-drawer[location='start']">
4669
- </ng-content>
4670
- <ng-content select="ax-drawer-content">
4671
- </ng-content>
4672
- <ng-content select="ax-drawer[location='end']">
4673
- </ng-content>
4674
- `,
4675
- inputs: ['rtl'],
4676
- changeDetection: ChangeDetectionStrategy.OnPush,
4677
- encapsulation: ViewEncapsulation.None,
4678
- host: { class: 'ax-drawer-container' }
4679
- }]
4680
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { drawers: [{
4681
- type: ContentChildren,
4682
- args: [AXDrawerComponent]
4683
- }] } });
4684
-
4685
- class AXDrawerContentComponent extends AXBaseComponentMixin {
4686
- constructor(elementRef, cdr) {
4687
- super(elementRef, cdr);
4688
- }
4689
- }
4690
- AXDrawerContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4691
- AXDrawerContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContentComponent, selector: "ax-drawer-content", host: { classAttribute: "ax-drawer-content" }, usesInheritance: true, ngImport: i0, template: `
4692
- <ng-content>
4693
- </ng-content>
4694
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4695
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
4696
- type: Component,
4697
- args: [{
4698
- selector: 'ax-drawer-content',
4699
- template: `
4700
- <ng-content>
4701
- </ng-content>
4702
- `,
4703
- changeDetection: ChangeDetectionStrategy.OnPush,
4704
- encapsulation: ViewEncapsulation.None,
4705
- host: { class: 'ax-drawer-content' }
4706
- }]
4707
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4708
-
4709
- const COMPONENT$c = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
4710
- const MODULES$c = [CommonModule];
4711
- class AXDrawerModule {
4712
- }
4713
- AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4714
- AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent] });
4715
- AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$c]] });
4716
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, decorators: [{
4717
4920
  type: NgModule,
4718
4921
  args: [{
4719
4922
  declarations: [...COMPONENT$c],
@@ -6212,7 +6415,7 @@ class AXSelectionListComponent extends AXBaseSelectionValueMixin {
6212
6415
  }
6213
6416
  }
6214
6417
  AXSelectionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSelectionListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6215
- AXSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", valueField: "valueField", textField: "textField", multiple: "multiple", items: "items", selectionMode: "selectionMode", direction: "direction" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-selection-list ax-{{direction}}\">\r\n <ng-container *ngIf=\"multiple; then checkboxList; else radioButtonList\"></ng-container>\r\n <ng-template #checkboxList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-checkbox-container\" [class.ax-state-selected]=\"isItemSelected(item)\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-check-box\">\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\" [class.ax-state-selected]=\"isItemSelected(item)\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-radio\">\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>\r\n\r\n<!-- <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 <ax-check-box [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n \r\n <ax-label> {{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-check-box>\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 <ax-radio [id]=\"id+'-'+i\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n <ax-label>{{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-radio>\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 });
6418
+ AXSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", valueField: "valueField", textField: "textField", multiple: "multiple", items: "items", selectionMode: "selectionMode", direction: "direction" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-selection-list ax-{{direction}}\">\r\n <ng-container *ngIf=\"multiple; then checkboxList; else radioButtonList\"></ng-container>\r\n <ng-template #checkboxList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-checkbox-container\" [class.ax-state-selected]=\"isItemSelected(item)\" (click)=\"ic.click()\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-check-box\">\r\n <input #ic [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\" [class.ax-state-selected]=\"isItemSelected(item)\" (click)=\"ir.click()\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-radio\">\r\n <input #ir [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>\r\n\r\n<!-- <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 <ax-check-box [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n \r\n <ax-label> {{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-check-box>\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 <ax-radio [id]=\"id+'-'+i\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n <ax-label>{{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-radio>\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 });
6216
6419
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSelectionListComponent, decorators: [{
6217
6420
  type: Component,
6218
6421
  args: [{ selector: 'ax-selection-list', inputs: [
@@ -6226,7 +6429,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
6226
6429
  'multiple',
6227
6430
  'items',
6228
6431
  'selectionMode',
6229
- ], outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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\" [class.ax-state-selected]=\"isItemSelected(item)\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-check-box\">\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\" [class.ax-state-selected]=\"isItemSelected(item)\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-radio\">\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>\r\n\r\n<!-- <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 <ax-check-box [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n \r\n <ax-label> {{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-check-box>\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 <ax-radio [id]=\"id+'-'+i\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n <ax-label>{{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-radio>\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> -->" }]
6432
+ ], outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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\" [class.ax-state-selected]=\"isItemSelected(item)\" (click)=\"ic.click()\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-check-box\">\r\n <input #ic [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\" [class.ax-state-selected]=\"isItemSelected(item)\" (click)=\"ir.click()\">\r\n <div class=\"ax-flex ax-items-center ax-h-5 ax-radio\">\r\n <input #ir [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>\r\n\r\n<!-- <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 <ax-check-box [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n \r\n <ax-label> {{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-check-box>\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 <ax-radio [id]=\"id+'-'+i\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n <ax-label>{{item[textField]}} | {{isItemSelected(item)}}</ax-label>\r\n <ax-form-hint *ngIf=\"item[hintField]\"> {{item[hintField]}} </ax-form-hint>\r\n </ax-radio>\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> -->" }]
6230
6433
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { direction: [{
6231
6434
  type: Input
6232
6435
  }] } });
@@ -7425,5 +7628,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
7425
7628
  * Generated bundle index. Do not edit.
7426
7629
  */
7427
7630
 
7428
- export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseProgressMixin, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageHeaderComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, ResultModule, TAB_META_KEY, _BaseComponenetMixin };
7631
+ export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseProgressMixin, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageHeaderComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, ResultModule, TAB_META_KEY, _BaseComponenetMixin };
7429
7632
  //# sourceMappingURL=acorex-components.mjs.map