@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 {
@@ -1223,885 +1223,1307 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
1223
1223
  }]
1224
1224
  }] });
1225
1225
 
1226
- var _AXAlertComponent_visible;
1227
- const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);
1226
+ class AXActionSheetComponent extends AXBaseComponent {
1227
+ /**
1228
+ * @ignore
1229
+ */
1230
+ constructor(_elementRef, _cdr) {
1231
+ super(_elementRef, _cdr);
1232
+ this.caption = '';
1233
+ this.closeOnBackdrop = true;
1234
+ this.isOpen = false;
1235
+ }
1236
+ _handleBackdropClick() {
1237
+ if (!this.closeOnBackdrop)
1238
+ return;
1239
+ this.close();
1240
+ }
1241
+ ngAfterViewInit() {
1242
+ }
1243
+ open() {
1244
+ this.isOpen = true;
1245
+ }
1246
+ close() {
1247
+ this.isOpen = false;
1248
+ }
1249
+ toggle() {
1250
+ debugger;
1251
+ this.isOpen = !this.isOpen;
1252
+ }
1253
+ }
1254
+ 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 });
1255
+ 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: [
1256
+ trigger('backdrop', [
1257
+ state('show', style({
1258
+ opacity: 1,
1259
+ visibility: 'visible'
1260
+ })),
1261
+ state('hide', style({
1262
+ visibility: 'hidden',
1263
+ opacity: 0
1264
+ })),
1265
+ transition('show <=> hide', [animate('0.2s')]),
1266
+ ]),
1267
+ trigger('openClose', [
1268
+ state('open', style({
1269
+ bottom: '0',
1270
+ opacity: 1
1271
+ })),
1272
+ state('closed', style({
1273
+ bottom: '-100%',
1274
+ opacity: 0.5
1275
+ })),
1276
+ transition('open <=> closed', [animate('0.2s')])
1277
+ ]),
1278
+ ] });
1279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetComponent, decorators: [{
1280
+ type: Component,
1281
+ args: [{ selector: 'ax-action-sheet', animations: [
1282
+ trigger('backdrop', [
1283
+ state('show', style({
1284
+ opacity: 1,
1285
+ visibility: 'visible'
1286
+ })),
1287
+ state('hide', style({
1288
+ visibility: 'hidden',
1289
+ opacity: 0
1290
+ })),
1291
+ transition('show <=> hide', [animate('0.2s')]),
1292
+ ]),
1293
+ trigger('openClose', [
1294
+ state('open', style({
1295
+ bottom: '0',
1296
+ opacity: 1
1297
+ })),
1298
+ state('closed', style({
1299
+ bottom: '-100%',
1300
+ opacity: 0.5
1301
+ })),
1302
+ transition('open <=> closed', [animate('0.2s')])
1303
+ ]),
1304
+ ], 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>" }]
1305
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { caption: [{
1306
+ type: Input
1307
+ }], closeOnBackdrop: [{
1308
+ type: Input
1309
+ }] } });
1310
+
1228
1311
  /**
1229
- * Regular description
1312
+ * The Button is a component which detects user interaction and triggers a corresponding event
1230
1313
  *
1231
1314
  * @category Components
1232
1315
  */
1233
- class AXAlertComponent extends AXBaseAlertMixin {
1316
+ class AXButtonComponent extends AXBaseButtonMixin {
1234
1317
  /**
1235
1318
  * @ignore
1236
1319
  */
1237
1320
  constructor(elementRef, cdr) {
1238
1321
  super(elementRef, cdr);
1239
- this.showIcon = true;
1240
- _AXAlertComponent_visible.set(this, void 0);
1241
- }
1242
- _onOptionChanged(option) {
1243
- if (option.name == 'color') {
1244
- switch (this.color) {
1245
- case 'success':
1246
- this.icon = 'ax-ic ax-ic-check-filled';
1247
- break;
1248
- case 'warning':
1249
- this.icon = 'ax-ic-warning-filled';
1250
- break;
1251
- case 'danger':
1252
- this.icon = 'ax-ic-error-filled';
1253
- break;
1254
- default:
1255
- this.icon = 'ax-ic ax-ic-info-filled';
1256
- break;
1257
- }
1258
- }
1259
- }
1260
- /**
1261
- * @ignore
1262
- */
1263
- get __hostClass() {
1264
- // return ` ax-alert ax-none ax-${this.color}-default ax-${this.look}-default`;
1265
- const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
1266
- return `ax-alert ax-none ${_class}`;
1267
- }
1268
- /**
1269
- * set the visibility of the Alert
1270
- */
1271
- get visible() {
1272
- return __classPrivateFieldGet(this, _AXAlertComponent_visible, "f");
1273
- }
1274
- set visible(v) {
1275
- if (__classPrivateFieldGet(this, _AXAlertComponent_visible, "f") != v) {
1276
- __classPrivateFieldSet(this, _AXAlertComponent_visible, v, "f");
1277
- const host = this._getHostElement();
1278
- if (v) {
1279
- host.classList.remove('ax-state-hidden');
1280
- host.classList.add('ax-state-visible');
1281
- }
1282
- else {
1283
- host.classList.add('ax-state-hidden');
1284
- host.classList.toggle('ax-state-visible');
1285
- }
1286
- }
1287
1322
  }
1288
- onInit() {
1289
- if (this.timeOut) {
1290
- setTimeout(() => {
1291
- this.dismiss();
1292
- }, this.timeOut);
1323
+ onKeydownHandler(e) {
1324
+ if (e.code === 'Enter') {
1325
+ this._getHostElement().click();
1293
1326
  }
1294
1327
  }
1295
- onViewInit() {
1296
- if (this.visible == undefined) {
1297
- this.visible = true;
1328
+ _emitOnClickEvent(e) {
1329
+ if (this.disabled)
1330
+ return;
1331
+ if (this.toggleable) {
1332
+ this.selected = !this.selected;
1298
1333
  }
1334
+ super._emitOnClickEvent(e);
1299
1335
  }
1300
- /**
1301
- * Remove the alert from the container
1302
- */
1303
- dismiss() {
1304
- const host = this._getHostElement();
1305
- this.visible = false;
1306
- const func = () => {
1307
- host.parentElement.removeChild(host);
1308
- };
1309
- host.addEventListener('transitionend', func);
1336
+ _emitOnFocusEvent(e) {
1337
+ super._emitOnFocusEvent(e);
1310
1338
  }
1311
- /**
1312
- * Hide the alert
1313
- */
1314
- hide() {
1315
- this.visible = false;
1339
+ _emitOnBlurEvent(e) {
1340
+ super._emitOnBlurEvent(e);
1316
1341
  }
1317
- /**
1318
- * Show the alert
1319
- */
1320
- show() {
1321
- this.visible = true;
1342
+ get __hostClass() {
1343
+ return Object.entries(this._classes).filter(c => c[1]).map(c => c[0]).join(' ');
1322
1344
  }
1323
1345
  }
1324
- _AXAlertComponent_visible = new WeakMap();
1325
- 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 });
1326
- 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 });
1327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
1346
+ 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 });
1347
+ 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 });
1348
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, decorators: [{
1328
1349
  type: Component,
1329
- 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>" }]
1330
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1331
- type: Input
1332
- }], showIcon: [{
1333
- type: Input
1350
+ 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> -->" }]
1351
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
1352
+ type: HostListener,
1353
+ args: ['keyup', ['$event']]
1354
+ }], _emitOnClickEvent: [{
1355
+ type: HostListener,
1356
+ args: ['click', ['$event']]
1357
+ }], _emitOnFocusEvent: [{
1358
+ type: HostListener,
1359
+ args: ['focus', ['$event']]
1360
+ }], _emitOnBlurEvent: [{
1361
+ type: HostListener,
1362
+ args: ['blur', ['$event']]
1334
1363
  }], __hostClass: [{
1335
1364
  type: HostBinding,
1336
1365
  args: ['class']
1337
- }], timeOut: [{
1338
- type: Input
1339
- }], visible: [{
1340
- type: Input
1341
1366
  }] } });
1342
1367
 
1343
- class AXAlertTitleComponent {
1344
- }
1345
- AXAlertTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1346
- 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: `
1347
- <ng-content>
1348
- </ng-content>
1349
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, decorators: [{
1351
- type: Component,
1352
- args: [{
1353
- selector: 'ax-alert-title',
1354
- template: `
1355
- <ng-content>
1356
- </ng-content>
1357
- `,
1358
- changeDetection: ChangeDetectionStrategy.OnPush,
1359
- encapsulation: ViewEncapsulation.None,
1360
- host: { class: 'ax-alert-title' }
1361
- }]
1362
- }] });
1363
-
1364
- class AXAlertButtonComponent extends AXBaseClickableMixin {
1365
- constructor(elementRef, cdr) {
1366
- super(elementRef, cdr);
1367
- }
1368
- _handleOnClick(e) {
1369
- this._emitOnClickEvent(e);
1370
- }
1371
- _handleOnFocus(e) {
1372
- this._emitOnFocusEvent(e);
1368
+ class AXActionSheetItemComponent extends AXBaseComponent {
1369
+ /**
1370
+ * @ignore
1371
+ */
1372
+ constructor(_elementRef, _cdr) {
1373
+ super(_elementRef, _cdr);
1374
+ this.color = 'light';
1375
+ this.onClick = new EventEmitter();
1373
1376
  }
1374
- _handleOnBlur(e) {
1375
- this._emitOnBlurEvent(e);
1377
+ handleOnClick(e) {
1378
+ this.onClick.emit(e);
1376
1379
  }
1377
1380
  }
1378
- 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 });
1379
- 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: `
1380
- {{text}}
1381
- <ng-content select="ax-icon"></ng-content>
1382
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
1381
+ 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 });
1382
+ 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: `
1383
+ <ax-button [color]="color" look="blank" [text]="text" (onClick)="handleOnClick($event)"></ax-button>
1384
+ `, 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"] }] });
1385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetItemComponent, decorators: [{
1384
1386
  type: Component,
1385
1387
  args: [{
1386
- selector: 'ax-alert-button',
1388
+ selector: 'ax-action-sheet-item',
1387
1389
  template: `
1388
- {{text}}
1389
- <ng-content select="ax-icon"></ng-content>
1390
- `,
1391
- changeDetection: ChangeDetectionStrategy.OnPush,
1392
- encapsulation: ViewEncapsulation.None,
1393
- outputs: [...BUTTON_OUTPUT],
1394
- host: { class: 'ax-alert-button' }
1390
+ <ax-button [color]="color" look="blank" [text]="text" (onClick)="handleOnClick($event)"></ax-button>
1391
+ `
1395
1392
  }]
1396
1393
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1397
1394
  type: Input
1398
- }], icon: [{
1395
+ }], color: [{
1399
1396
  type: Input
1400
- }], _handleOnClick: [{
1401
- type: HostListener,
1402
- args: ['click', ['$event']]
1403
- }], _handleOnFocus: [{
1404
- type: HostListener,
1405
- args: ['focus', ['$event']]
1406
- }], _handleOnBlur: [{
1407
- type: HostListener,
1408
- args: ['blur', ['$event']]
1397
+ }], onClick: [{
1398
+ type: Output
1409
1399
  }] } });
1410
1400
 
1411
- class AXAlertContentComponent {
1412
- }
1413
- AXAlertContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1414
- 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>
1415
- </ng-content>
1416
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1417
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, decorators: [{
1418
- type: Component,
1419
- args: [{
1420
- selector: 'ax-alert-content',
1421
- template: `<ng-content>
1422
- </ng-content>
1423
- `,
1424
- changeDetection: ChangeDetectionStrategy.OnPush,
1425
- encapsulation: ViewEncapsulation.None,
1426
- host: { class: 'ax-alert-content' }
1427
- }]
1428
- }] });
1429
-
1430
- class AXAlertSuffixComponent {
1431
- }
1432
- AXAlertSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1433
- 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: `
1434
- <div class="ax-alert-buttons">
1435
- <ng-content select="ax-alert-button">
1436
- </ng-content>
1437
- </div>
1438
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, decorators: [{
1440
- type: Component,
1441
- args: [{
1442
- selector: 'ax-alert-suffix',
1443
- template: `
1444
- <div class="ax-alert-buttons">
1445
- <ng-content select="ax-alert-button">
1446
- </ng-content>
1447
- </div>
1448
- `,
1449
- changeDetection: ChangeDetectionStrategy.OnPush,
1450
- encapsulation: ViewEncapsulation.None,
1451
- host: { class: 'ax-alert-suffix' }
1401
+ class AXDrawerComponent extends AXBaseComponentMixin {
1402
+ constructor(elementRef, cdr, zone) {
1403
+ super(elementRef, cdr);
1404
+ this.elementRef = elementRef;
1405
+ this.zone = zone;
1406
+ this.onChanged = new EventEmitter();
1407
+ this.mode = 'push';
1408
+ this.location = 'start';
1409
+ this._collapsed = false;
1410
+ }
1411
+ get collapsed() {
1412
+ return this._collapsed;
1413
+ }
1414
+ set collapsed(v) {
1415
+ if (v != this._collapsed) {
1416
+ this._collapsed = v;
1417
+ this._updateClass();
1418
+ this._emitChange();
1419
+ }
1420
+ }
1421
+ onInit() {
1422
+ // this._getHostElement().classList.add(this.location == 'start' ? 'ax-drawer-start' : 'ax-drawer-end');
1423
+ this._setLocation();
1424
+ this._currentMode = this.mode;
1425
+ }
1426
+ _setLocation() {
1427
+ const hostElementClassList = this._getHostElement().classList;
1428
+ switch (this.location) {
1429
+ case 'start':
1430
+ hostElementClassList.add('ax-drawer-start');
1431
+ break;
1432
+ case 'end':
1433
+ hostElementClassList.add('ax-drawer-end');
1434
+ break;
1435
+ case 'top':
1436
+ hostElementClassList.add('ax-drawer-top');
1437
+ break;
1438
+ case 'bottom':
1439
+ hostElementClassList.add('ax-drawer-bottom');
1440
+ break;
1441
+ default:
1442
+ hostElementClassList.add('ax-drawer-start');
1443
+ break;
1444
+ }
1445
+ }
1446
+ _updateClass() {
1447
+ this.zone.runOutsideAngular(() => {
1448
+ const elm = this._getHostElement();
1449
+ //
1450
+ this._currentMode == 'overlay' ? this._setOverlayMode() : this._setPushMode();
1451
+ //
1452
+ if (this.collapsed) {
1453
+ elm.classList.remove('ax-expanded');
1454
+ elm.classList.add('ax-collapsed');
1455
+ if (this._currentMode == 'overlay') {
1456
+ this._removeBackdrop();
1457
+ }
1458
+ }
1459
+ else {
1460
+ elm.classList.add('ax-expanded');
1461
+ elm.classList.remove('ax-collapsed');
1462
+ if (this._currentMode == 'overlay') {
1463
+ this._addBackdrop();
1464
+ }
1465
+ }
1466
+ });
1467
+ }
1468
+ onViewInit() {
1469
+ this._detectSize();
1470
+ }
1471
+ toggle() {
1472
+ this.collapsed = !this.collapsed;
1473
+ }
1474
+ close() {
1475
+ this.collapsed = true;
1476
+ }
1477
+ open() {
1478
+ this.collapsed = false;
1479
+ }
1480
+ _handleWindowsResize(e) {
1481
+ this._detectSize();
1482
+ }
1483
+ _detectSize() {
1484
+ //TODO detect break size
1485
+ const bound = this._getHostElement().parentElement.getBoundingClientRect();
1486
+ if (bound.width == 0) {
1487
+ console.log('Drawer invalid size', bound);
1488
+ setTimeout(() => {
1489
+ this._detectSize();
1490
+ }, 1);
1491
+ return;
1492
+ }
1493
+ if (bound.width < 400) {
1494
+ this._currentMode = 'overlay';
1495
+ this.collapsed = true;
1496
+ }
1497
+ else {
1498
+ this._currentMode = this.mode;
1499
+ }
1500
+ this._updateClass();
1501
+ this._emitChange();
1502
+ }
1503
+ _emitChange() {
1504
+ this.onChanged.emit({
1505
+ component: this,
1506
+ htmlElement: this.elementRef.nativeElement
1507
+ });
1508
+ }
1509
+ _setOverlayMode() {
1510
+ this._currentMode = 'overlay';
1511
+ this._getHostElement().classList.remove('ax-drawer-push');
1512
+ this._getHostElement().classList.add('ax-drawer-overlay');
1513
+ }
1514
+ _setPushMode() {
1515
+ this._currentMode = 'push';
1516
+ this._getHostElement().classList.remove('ax-drawer-overlay');
1517
+ this._getHostElement().classList.add('ax-drawer-push');
1518
+ this._removeBackdrop();
1519
+ }
1520
+ _addBackdrop() {
1521
+ if (!this._backdrop) {
1522
+ this._backdrop = document.createElement('div');
1523
+ this._backdrop.classList.add('ax-drawer-backdrop');
1524
+ this._getHostElement().parentElement.prepend(this._backdrop);
1525
+ this._backdrop.addEventListener('click', this._handleBackfropClick.bind(this));
1526
+ }
1527
+ }
1528
+ _removeBackdrop() {
1529
+ if (this._backdrop) {
1530
+ this._backdrop.removeEventListener('click', this._handleBackfropClick.bind(this));
1531
+ this._getHostElement().parentElement.removeChild(this._backdrop);
1532
+ this._backdrop = null;
1533
+ }
1534
+ }
1535
+ _handleBackfropClick(e) {
1536
+ this._removeBackdrop();
1537
+ this.collapsed = true;
1538
+ }
1539
+ }
1540
+ 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 });
1541
+ 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: `
1542
+ <ng-content>
1543
+ </ng-content>
1544
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, decorators: [{
1546
+ type: Component,
1547
+ args: [{
1548
+ selector: 'ax-drawer',
1549
+ template: `
1550
+ <ng-content>
1551
+ </ng-content>
1552
+ `,
1553
+ changeDetection: ChangeDetectionStrategy.OnPush,
1554
+ encapsulation: ViewEncapsulation.None,
1555
+ host: { class: 'ax-drawer ax-transition-all' }
1452
1556
  }]
1453
- }] });
1557
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { onChanged: [{
1558
+ type: Output
1559
+ }], mode: [{
1560
+ type: Input
1561
+ }], location: [{
1562
+ type: Input
1563
+ }], collapsed: [{
1564
+ type: Input
1565
+ }], _handleWindowsResize: [{
1566
+ type: HostListener,
1567
+ args: ['window:resize', ['$event']]
1568
+ }] } });
1454
1569
 
1455
- class AXAlertFooterComponent {
1570
+ class AXDrawerContainerComponent extends AXBaseComponentMixin {
1571
+ constructor(elementRef, cdr, zone) {
1572
+ super(elementRef, cdr);
1573
+ this.zone = zone;
1574
+ }
1575
+ onViewInit() {
1576
+ this._updateWidth();
1577
+ // add animation
1578
+ // setTimeout(() => {
1579
+ // this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
1580
+ // c.classList.add('ax-animated');
1581
+ // });
1582
+ // }, 100);
1583
+ this.drawers.forEach(c => {
1584
+ c.onChanged.subscribe(c => {
1585
+ this._updateWidth();
1586
+ });
1587
+ });
1588
+ }
1589
+ _updateWidth() {
1590
+ this.zone.runOutsideAngular(() => {
1591
+ const container = this._getHostElement().closest('ax-drawer-container');
1592
+ const parentWidth = this._getHostElement().getBoundingClientRect().width;
1593
+ let w = 0;
1594
+ this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
1595
+ const elm = c;
1596
+ const width = elm.getBoundingClientRect().width;
1597
+ const height = elm.getBoundingClientRect().height;
1598
+ const overflow = parentWidth < width;
1599
+ const diff = width - parentWidth;
1600
+ w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
1601
+ elm.style.setProperty('--attr-width', `${width}px`);
1602
+ elm.style.setProperty('--attr-height', `${height}px`);
1603
+ //TODO check overflow
1604
+ elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
1605
+ });
1606
+ container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
1607
+ });
1608
+ }
1456
1609
  }
1457
- AXAlertFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1458
- 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: `
1459
- <div class="ax-alert-buttons">
1460
- <ng-content select="ax-alert-button">
1461
- </ng-content>
1462
- </div>
1610
+ 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 });
1611
+ 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: `
1612
+ <ng-content select="ax-drawer[location='top']">
1613
+ </ng-content>
1614
+ <ng-content select="ax-drawer[location='start']">
1615
+ </ng-content>
1616
+ <ng-content select="ax-drawer-content">
1617
+ </ng-content>
1618
+ <ng-content select="ax-drawer[location='end']">
1619
+ </ng-content>
1620
+ <ng-content select="ax-drawer[location='bottom']">
1621
+ </ng-content>
1463
1622
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1464
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, decorators: [{
1623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
1624
+ type: Component,
1625
+ args: [{
1626
+ selector: 'ax-drawer-container',
1627
+ template: `
1628
+ <ng-content select="ax-drawer[location='top']">
1629
+ </ng-content>
1630
+ <ng-content select="ax-drawer[location='start']">
1631
+ </ng-content>
1632
+ <ng-content select="ax-drawer-content">
1633
+ </ng-content>
1634
+ <ng-content select="ax-drawer[location='end']">
1635
+ </ng-content>
1636
+ <ng-content select="ax-drawer[location='bottom']">
1637
+ </ng-content>
1638
+ `,
1639
+ inputs: ['rtl'],
1640
+ changeDetection: ChangeDetectionStrategy.OnPush,
1641
+ encapsulation: ViewEncapsulation.None,
1642
+ host: { class: 'ax-drawer-container' }
1643
+ }]
1644
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { drawers: [{
1645
+ type: ContentChildren,
1646
+ args: [AXDrawerComponent]
1647
+ }] } });
1648
+
1649
+ class AXDrawerContentComponent extends AXBaseComponentMixin {
1650
+ constructor(elementRef, cdr) {
1651
+ super(elementRef, cdr);
1652
+ }
1653
+ }
1654
+ 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 });
1655
+ 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: `
1656
+ <ng-content>
1657
+ </ng-content>
1658
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
1660
+ type: Component,
1661
+ args: [{
1662
+ selector: 'ax-drawer-content',
1663
+ template: `
1664
+ <ng-content>
1665
+ </ng-content>
1666
+ `,
1667
+ changeDetection: ChangeDetectionStrategy.OnPush,
1668
+ encapsulation: ViewEncapsulation.None,
1669
+ host: { class: 'ax-drawer-content' }
1670
+ }]
1671
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1672
+
1673
+ const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
1674
+ const MODULES$o = [CommonModule];
1675
+ class AXDrawerModule {
1676
+ }
1677
+ AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1678
+ 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] });
1679
+ AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$o]] });
1680
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, decorators: [{
1681
+ type: NgModule,
1682
+ args: [{
1683
+ declarations: [...COMPONENT$o],
1684
+ imports: [...MODULES$o],
1685
+ exports: [...COMPONENT$o],
1686
+ providers: [],
1687
+ }]
1688
+ }] });
1689
+
1690
+ class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1691
+ constructor(elementRef, zone, cdr) {
1692
+ super(elementRef, cdr);
1693
+ this.zone = zone;
1694
+ this.selectionChange = new EventEmitter();
1695
+ this.colorChange = new EventEmitter();
1696
+ this._color = 'primary';
1697
+ this.lookChange = new EventEmitter();
1698
+ this._look = null;
1699
+ this.onItemClick = new EventEmitter();
1700
+ this.onValueChanged = new EventEmitter();
1701
+ }
1702
+ get selection() {
1703
+ return this._selection;
1704
+ }
1705
+ set selection(value) {
1706
+ value = this._onOptionChanging({ name: 'selection', value: value });
1707
+ const oldValue = this.selection;
1708
+ if (value != oldValue) {
1709
+ this._selection = value;
1710
+ this.selectionChange.emit(value);
1711
+ this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
1712
+ }
1713
+ }
1714
+ /**
1715
+ * Predefined color schemes
1716
+ */
1717
+ get color() {
1718
+ return this._color;
1719
+ }
1720
+ set color(value) {
1721
+ value = this._onOptionChanging({ name: 'color', value: value });
1722
+ const oldValue = this.color;
1723
+ if (value != oldValue) {
1724
+ this._color = value;
1725
+ this.colorChange.emit(value);
1726
+ this.onOptionChanged({ name: 'value', oldValue, newValue: value });
1727
+ }
1728
+ }
1729
+ /**
1730
+ * Predefined look schemes
1731
+ */
1732
+ get look() {
1733
+ return this._look;
1734
+ }
1735
+ set look(value) {
1736
+ value = this._onOptionChanging({ name: 'look', value: value });
1737
+ const oldValue = this.look;
1738
+ if (value != oldValue) {
1739
+ this._look = value;
1740
+ this.lookChange.emit(value);
1741
+ this.onOptionChanged({ name: 'look', oldValue, newValue: value });
1742
+ }
1743
+ }
1744
+ ngAfterContentInit() {
1745
+ this._bindEvents();
1746
+ this._bindProps();
1747
+ }
1748
+ _bindEvents() {
1749
+ (this._contentButtons || []).forEach(b => {
1750
+ b.onClick.subscribe(c => {
1751
+ this._handleClickEvent(c, b);
1752
+ });
1753
+ });
1754
+ }
1755
+ _bindProps() {
1756
+ (this._contentButtons || []).forEach(b => {
1757
+ b.look = this.look;
1758
+ b.color = this.color;
1759
+ b.disabled = this.disabled;
1760
+ b.toggleable = false;
1761
+ });
1762
+ }
1763
+ onOptionChanged(options) {
1764
+ this._bindProps();
1765
+ }
1766
+ _handleClickEvent(e, button) {
1767
+ if (this.selection == 'multiple') {
1768
+ button.selected = !button.selected;
1769
+ }
1770
+ else if (this.selection == 'single') {
1771
+ this._contentButtons.forEach(c => {
1772
+ c.selected = false;
1773
+ });
1774
+ button.selected = true;
1775
+ }
1776
+ else {
1777
+ button.selected = false;
1778
+ }
1779
+ this.onItemClick.emit({
1780
+ component: this,
1781
+ htmlElement: e.htmlElement,
1782
+ item: button
1783
+ });
1784
+ }
1785
+ }
1786
+ 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 });
1787
+ 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 });
1788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
1789
+ type: Component,
1790
+ 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>" }]
1791
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
1792
+ type: Output
1793
+ }], selection: [{
1794
+ type: Input
1795
+ }], colorChange: [{
1796
+ type: Output
1797
+ }], color: [{
1798
+ type: Input
1799
+ }], lookChange: [{
1800
+ type: Output
1801
+ }], look: [{
1802
+ type: Input
1803
+ }], onItemClick: [{
1804
+ type: Output
1805
+ }], _contentButtons: [{
1806
+ type: ContentChildren,
1807
+ args: [AXButtonComponent, { descendants: true }]
1808
+ }] } });
1809
+
1810
+ const AXBaseItemButtonMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
1811
+ class AXButtonItemComponent extends AXBaseItemButtonMixin {
1812
+ /**
1813
+ * @ignore
1814
+ */
1815
+ constructor(elementRef, cdr) {
1816
+ super(elementRef, cdr);
1817
+ this.text = null;
1818
+ this.tooltip = null;
1819
+ this.selected = false;
1820
+ this.seperated = false;
1821
+ this.color = 'light';
1822
+ }
1823
+ __hostClick(e) {
1824
+ this._emitOnClickEvent(e);
1825
+ }
1826
+ get __hostClass() {
1827
+ const cssClasses = {
1828
+ 'ax-button-icon': !this.text,
1829
+ 'ax-state-disabled': this.disabled,
1830
+ 'ax-state-selected': this.selected,
1831
+ };
1832
+ cssClasses[`ax-${this.color || 'primary'}-default`] = true;
1833
+ return Object.entries(cssClasses).filter(c => c[1]).map(c => c[0]).join(' ');
1834
+ }
1835
+ }
1836
+ 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 });
1837
+ 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: `
1838
+ <ng-content select="ax-prefix">
1839
+ </ng-content>
1840
+ <ng-content select="ax-icon">
1841
+ </ng-content>
1842
+ <span *ngIf="text">{{text}}</span>
1843
+ <ng-content select="ax-suffix">
1844
+ </ng-content>
1845
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1846
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, decorators: [{
1465
1847
  type: Component,
1466
1848
  args: [{
1467
- selector: 'ax-alert-footer',
1849
+ selector: 'ax-button-item',
1468
1850
  template: `
1469
- <div class="ax-alert-buttons">
1470
- <ng-content select="ax-alert-button">
1471
- </ng-content>
1472
- </div>
1851
+ <ng-content select="ax-prefix">
1852
+ </ng-content>
1853
+ <ng-content select="ax-icon">
1854
+ </ng-content>
1855
+ <span *ngIf="text">{{text}}</span>
1856
+ <ng-content select="ax-suffix">
1857
+ </ng-content>
1473
1858
  `,
1474
- changeDetection: ChangeDetectionStrategy.OnPush,
1475
1859
  encapsulation: ViewEncapsulation.None,
1476
- host: { class: 'ax-alert-footer' }
1860
+ changeDetection: ChangeDetectionStrategy.OnPush,
1477
1861
  }]
1478
- }] });
1862
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1863
+ type: Input
1864
+ }], tooltip: [{
1865
+ type: Input
1866
+ }], selected: [{
1867
+ type: Input
1868
+ }], seperated: [{
1869
+ type: Input
1870
+ }], name: [{
1871
+ type: Input
1872
+ }], data: [{
1873
+ type: Input
1874
+ }], color: [{
1875
+ type: Input
1876
+ }], __hostClick: [{
1877
+ type: HostListener,
1878
+ args: ['click', ['$event']]
1879
+ }], __hostClass: [{
1880
+ type: HostBinding,
1881
+ args: ['class']
1882
+ }] } });
1479
1883
 
1480
- class AXIconComponent extends AXSizableComponentMixin {
1884
+ class AXDecoratorContentComponent extends AXBaseComponentMixin {
1481
1885
  constructor(elementRef, cdr) {
1482
1886
  super(elementRef, cdr);
1483
1887
  }
1484
- get __iconClass() {
1485
- return `ax-ic ${this.icon}`;
1486
- }
1487
1888
  }
1488
- 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 });
1489
- 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 });
1490
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, decorators: [{
1889
+ 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 });
1890
+ AXDecoratorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorContentComponent, selector: "ax-content", usesInheritance: true, ngImport: i0, template: `
1891
+ <ng-content>
1892
+ </ng-content>
1893
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1894
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, decorators: [{
1491
1895
  type: Component,
1492
1896
  args: [{
1493
- selector: 'ax-icon',
1494
- template: '<ng-content select="i,svg,img"></ng-content>',
1897
+ selector: 'ax-content',
1898
+ template: `
1899
+ <ng-content>
1900
+ </ng-content>
1901
+ `,
1495
1902
  changeDetection: ChangeDetectionStrategy.OnPush,
1496
1903
  encapsulation: ViewEncapsulation.None,
1497
1904
  }]
1498
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1499
- type: Input
1500
- }], __iconClass: [{
1501
- type: HostBinding,
1502
- args: ['class']
1503
- }] } });
1905
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1504
1906
 
1505
- const COMPONENT$o = [AXIconComponent];
1506
- const MODULES$o = [CommonModule];
1507
- class AXIconModule {
1907
+ class AXDecoratorAddOnComponent extends AXBaseComponentMixin {
1908
+ constructor(_elementRef, _cdr) {
1909
+ super(_elementRef, _cdr);
1910
+ }
1508
1911
  }
1509
- AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1510
- AXIconModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
1511
- AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$o]] });
1512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, decorators: [{
1513
- type: NgModule,
1912
+ 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 });
1913
+ 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 });
1914
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, decorators: [{
1915
+ type: Component,
1514
1916
  args: [{
1515
- declarations: [...COMPONENT$o],
1516
- imports: [...MODULES$o],
1517
- exports: [...COMPONENT$o],
1518
- providers: [],
1917
+ selector: 'ax-addon',
1918
+ template: `<ng-content></ng-content>`,
1919
+ changeDetection: ChangeDetectionStrategy.OnPush,
1920
+ encapsulation: ViewEncapsulation.None
1519
1921
  }]
1520
- }] });
1922
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1521
1923
 
1522
- const COMPONENT$n = [
1523
- AXAlertComponent,
1524
- AXAlertContentComponent,
1525
- AXAlertTitleComponent,
1526
- AXAlertButtonComponent,
1527
- AXAlertFooterComponent,
1528
- AXAlertSuffixComponent
1529
- ];
1530
- const MODULES$n = [CommonModule, AXIconModule];
1531
- class AXAlertModule {
1924
+ class AXDecoratorHeaderComponent extends AXBaseComponentMixin {
1925
+ constructor(elementRef, cdr) {
1926
+ super(elementRef, cdr);
1927
+ }
1532
1928
  }
1533
- AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1534
- AXAlertModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
1535
- AXAlertContentComponent,
1536
- AXAlertTitleComponent,
1537
- AXAlertButtonComponent,
1538
- AXAlertFooterComponent,
1539
- AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
1540
- AXAlertContentComponent,
1541
- AXAlertTitleComponent,
1542
- AXAlertButtonComponent,
1543
- AXAlertFooterComponent,
1544
- AXAlertSuffixComponent] });
1545
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$n]] });
1546
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
1547
- type: NgModule,
1929
+ 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 });
1930
+ AXDecoratorHeaderComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorHeaderComponent, selector: "ax-header", usesInheritance: true, ngImport: i0, template: `
1931
+ <ng-content>
1932
+ </ng-content>
1933
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, decorators: [{
1935
+ type: Component,
1548
1936
  args: [{
1549
- declarations: [...COMPONENT$n],
1550
- imports: [...MODULES$n],
1551
- exports: [...COMPONENT$n],
1552
- providers: [],
1937
+ selector: 'ax-header',
1938
+ template: `
1939
+ <ng-content>
1940
+ </ng-content>
1941
+ `,
1942
+ changeDetection: ChangeDetectionStrategy.OnPush,
1943
+ encapsulation: ViewEncapsulation.None,
1553
1944
  }]
1554
- }] });
1945
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1555
1946
 
1556
- class AXAvatarGroup {
1557
- constructor() { }
1558
- ngOnInit() { }
1947
+ class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
1948
+ constructor(elementRef, cdr) {
1949
+ super(elementRef, cdr);
1950
+ }
1559
1951
  }
1560
- AXAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
1561
- 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 });
1562
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, decorators: [{
1952
+ 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 });
1953
+ AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
1954
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1955
+ </ng-content>
1956
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1957
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
1563
1958
  type: Component,
1564
1959
  args: [{
1565
- selector: 'ax-avatar-group',
1566
- template: `<ng-content select='ax-avatar'></ng-content>`,
1567
- host: { class: 'ax-avatar-group' }
1960
+ selector: 'ax-prefix',
1961
+ template: `
1962
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1963
+ </ng-content>
1964
+ `,
1965
+ changeDetection: ChangeDetectionStrategy.OnPush,
1966
+ encapsulation: ViewEncapsulation.None
1568
1967
  }]
1569
- }], ctorParameters: function () { return []; } });
1968
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1570
1969
 
1571
- /**
1572
- * The Button is a component which detects user interaction and triggers a corresponding event
1573
- *
1574
- * @category Components
1575
- */
1576
- class AXAvatarComponent extends AXAvatarMixin {
1577
- /**
1578
- * @ignore
1579
- */
1970
+ class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
1580
1971
  constructor(elementRef, cdr) {
1581
1972
  super(elementRef, cdr);
1582
- this.type = 'default';
1583
- }
1584
- get __hostClass() {
1585
- return `ax-${this.color}-default`;
1586
1973
  }
1587
1974
  }
1588
- 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 });
1589
- 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 });
1590
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, decorators: [{
1975
+ 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 });
1976
+ AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
1977
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1978
+ </ng-content>
1979
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
1591
1981
  type: Component,
1592
- 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>" }]
1593
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1594
- type: Input
1595
- }], icon: [{
1596
- type: Input
1597
- }], src: [{
1598
- type: Input
1599
- }], class: [{
1600
- type: Input
1601
- }], type: [{
1602
- type: Input
1603
- }], __hostClass: [{
1604
- type: HostBinding,
1605
- args: ['class']
1606
- }] } });
1982
+ args: [{
1983
+ selector: 'ax-suffix',
1984
+ template: `
1985
+ <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
1986
+ </ng-content>
1987
+ `,
1988
+ changeDetection: ChangeDetectionStrategy.OnPush,
1989
+ encapsulation: ViewEncapsulation.None
1990
+ }]
1991
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1607
1992
 
1608
- const COMPONENT$m = [AXAvatarComponent, AXAvatarGroup];
1609
- const MODULES$m = [CommonModule];
1610
- class AXAvatarModule {
1993
+ const COMPONENT$n = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent];
1994
+ const MODULES$n = [CommonModule];
1995
+ class AXEditorDecoratorModule {
1611
1996
  }
1612
- AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1613
- AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
1614
- AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$m]] });
1615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, decorators: [{
1997
+ AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1998
+ 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] });
1999
+ AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$n]] });
2000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
1616
2001
  type: NgModule,
1617
2002
  args: [{
1618
- declarations: [...COMPONENT$m],
1619
- imports: [...MODULES$m],
1620
- exports: [...COMPONENT$m],
2003
+ declarations: [...COMPONENT$n],
2004
+ imports: [...MODULES$n],
2005
+ exports: [...COMPONENT$n],
1621
2006
  providers: [],
1622
2007
  }]
1623
2008
  }] });
1624
2009
 
1625
- const AXBaseBadgeMixin = _ColorLookComponentMixin(AXBaseComponent);
1626
- class AXBadgeComponent extends AXBaseBadgeMixin {
2010
+ class AXIconComponent extends AXSizableComponentMixin {
1627
2011
  constructor(elementRef, cdr) {
1628
2012
  super(elementRef, cdr);
1629
- this.text = '';
1630
- //TODO: ax-badge
1631
2013
  }
1632
- get __hostClass() {
1633
- const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
1634
- return ['ax-badge', _class, !this.text ? 'ax-badge-icon' : ''].join(' ');
2014
+ get __iconClass() {
2015
+ return `ax-ic ${this.icon}`;
1635
2016
  }
1636
2017
  }
1637
- 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 });
1638
- 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 });
1639
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, decorators: [{
2018
+ 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 });
2019
+ 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 });
2020
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, decorators: [{
1640
2021
  type: Component,
1641
- 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>" }]
1642
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
2022
+ args: [{
2023
+ selector: 'ax-icon',
2024
+ template: '<ng-content select="i,svg,img"></ng-content>',
2025
+ changeDetection: ChangeDetectionStrategy.OnPush,
2026
+ encapsulation: ViewEncapsulation.None,
2027
+ }]
2028
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1643
2029
  type: Input
1644
- }], __hostClass: [{
2030
+ }], __iconClass: [{
1645
2031
  type: HostBinding,
1646
2032
  args: ['class']
1647
2033
  }] } });
1648
2034
 
1649
- const COMPONENT$l = [AXBadgeComponent];
1650
- const MODULES$l = [CommonModule];
1651
- class AXBadgeModule {
2035
+ const COMPONENT$m = [AXIconComponent];
2036
+ const MODULES$m = [CommonModule];
2037
+ class AXIconModule {
1652
2038
  }
1653
- AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1654
- AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
1655
- AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$l]] });
1656
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, decorators: [{
2039
+ AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2040
+ AXIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
2041
+ AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$m]] });
2042
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, decorators: [{
1657
2043
  type: NgModule,
1658
2044
  args: [{
1659
- declarations: [...COMPONENT$l],
1660
- imports: [...MODULES$l],
1661
- exports: [...COMPONENT$l],
2045
+ declarations: [...COMPONENT$m],
2046
+ imports: [...MODULES$m],
2047
+ exports: [...COMPONENT$m],
1662
2048
  providers: [],
1663
2049
  }]
1664
2050
  }] });
1665
2051
 
1666
- class AXBreadCrumbsComponent extends AXBaseComponent {
1667
- constructor() {
1668
- super();
1669
- }
1670
- }
1671
- AXBreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1672
- 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>" });
1673
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, decorators: [{
1674
- type: Component,
1675
- args: [{ selector: 'ax-breadcrumbs', host: { class: 'ax-breadcrumbs' }, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" }]
1676
- }], ctorParameters: function () { return []; } });
1677
-
1678
- class AXBreadCrumbsItemComponent extends AXBaseComponent {
1679
- constructor() {
1680
- super();
1681
- }
2052
+ const COMPONENT$l = [
2053
+ AXButtonComponent,
2054
+ AXButtonItemComponent,
2055
+ AXButtonGroupComponent,
2056
+ ];
2057
+ const MODULES$l = [CommonModule, AXIconModule, AXEditorDecoratorModule];
2058
+ class AXButtonModule {
1682
2059
  }
1683
- AXBreadCrumbsItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1684
- 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>" });
1685
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, decorators: [{
1686
- type: Component,
1687
- 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>" }]
1688
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
1689
- type: Input
1690
- }] } });
2060
+ AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2061
+ AXButtonModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
2062
+ AXButtonItemComponent,
2063
+ AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
2064
+ AXButtonItemComponent,
2065
+ AXButtonGroupComponent] });
2066
+ AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$l]] });
2067
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, decorators: [{
2068
+ type: NgModule,
2069
+ args: [{
2070
+ imports: [MODULES$l],
2071
+ exports: [COMPONENT$l],
2072
+ declarations: [COMPONENT$l],
2073
+ providers: [],
2074
+ }]
2075
+ }] });
1691
2076
 
1692
- class AXBreadcrumbsModule {
2077
+ class AXActionSheetModule {
1693
2078
  }
1694
- AXBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1695
- AXBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent], imports: [CommonModule], exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent] });
1696
- AXBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, providers: [], imports: [[CommonModule]] });
1697
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, decorators: [{
2079
+ AXActionSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2080
+ 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] });
2081
+ AXActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, providers: [], imports: [[CommonModule, AXDrawerModule, AXButtonModule]] });
2082
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, decorators: [{
1698
2083
  type: NgModule,
1699
2084
  args: [{
1700
- declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
1701
- imports: [CommonModule],
1702
- exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
2085
+ declarations: [AXActionSheetComponent, AXActionSheetItemComponent],
2086
+ imports: [CommonModule, AXDrawerModule, AXButtonModule],
2087
+ exports: [AXActionSheetComponent, AXActionSheetItemComponent],
1703
2088
  providers: [],
1704
2089
  }]
1705
2090
  }] });
1706
2091
 
2092
+ var _AXAlertComponent_visible;
2093
+ const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);
1707
2094
  /**
1708
- * The Button is a component which detects user interaction and triggers a corresponding event
2095
+ * Regular description
1709
2096
  *
1710
2097
  * @category Components
1711
2098
  */
1712
- class AXButtonComponent extends AXBaseButtonMixin {
2099
+ class AXAlertComponent extends AXBaseAlertMixin {
1713
2100
  /**
1714
2101
  * @ignore
1715
2102
  */
1716
2103
  constructor(elementRef, cdr) {
1717
2104
  super(elementRef, cdr);
2105
+ this.showIcon = true;
2106
+ _AXAlertComponent_visible.set(this, void 0);
1718
2107
  }
1719
- onKeydownHandler(e) {
1720
- if (e.code === 'Enter') {
1721
- this._getHostElement().click();
1722
- }
1723
- }
1724
- _emitOnClickEvent(e) {
1725
- if (this.disabled)
1726
- return;
1727
- if (this.toggleable) {
1728
- this.selected = !this.selected;
2108
+ _onOptionChanged(option) {
2109
+ if (option.name == 'color') {
2110
+ switch (this.color) {
2111
+ case 'success':
2112
+ this.icon = 'ax-ic ax-ic-check-filled';
2113
+ break;
2114
+ case 'warning':
2115
+ this.icon = 'ax-ic-warning-filled';
2116
+ break;
2117
+ case 'danger':
2118
+ this.icon = 'ax-ic-error-filled';
2119
+ break;
2120
+ default:
2121
+ this.icon = 'ax-ic ax-ic-info-filled';
2122
+ break;
2123
+ }
1729
2124
  }
1730
- super._emitOnClickEvent(e);
1731
- }
1732
- _emitOnFocusEvent(e) {
1733
- super._emitOnFocusEvent(e);
1734
- }
1735
- _emitOnBlurEvent(e) {
1736
- super._emitOnBlurEvent(e);
1737
2125
  }
2126
+ /**
2127
+ * @ignore
2128
+ */
1738
2129
  get __hostClass() {
1739
- return Object.entries(this._classes).filter(c => c[1]).map(c => c[0]).join(' ');
1740
- }
1741
- }
1742
- 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 });
1743
- 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 });
1744
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, decorators: [{
1745
- type: Component,
1746
- 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> -->" }]
1747
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
1748
- type: HostListener,
1749
- args: ['keyup', ['$event']]
1750
- }], _emitOnClickEvent: [{
1751
- type: HostListener,
1752
- args: ['click', ['$event']]
1753
- }], _emitOnFocusEvent: [{
1754
- type: HostListener,
1755
- args: ['focus', ['$event']]
1756
- }], _emitOnBlurEvent: [{
1757
- type: HostListener,
1758
- args: ['blur', ['$event']]
1759
- }], __hostClass: [{
1760
- type: HostBinding,
1761
- args: ['class']
1762
- }] } });
1763
-
1764
- class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
1765
- constructor(elementRef, zone, cdr) {
1766
- super(elementRef, cdr);
1767
- this.zone = zone;
1768
- this.selectionChange = new EventEmitter();
1769
- this.colorChange = new EventEmitter();
1770
- this._color = 'primary';
1771
- this.lookChange = new EventEmitter();
1772
- this._look = null;
1773
- this.onItemClick = new EventEmitter();
1774
- this.onValueChanged = new EventEmitter();
1775
- }
1776
- get selection() {
1777
- return this._selection;
1778
- }
1779
- set selection(value) {
1780
- value = this._onOptionChanging({ name: 'selection', value: value });
1781
- const oldValue = this.selection;
1782
- if (value != oldValue) {
1783
- this._selection = value;
1784
- this.selectionChange.emit(value);
1785
- this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
1786
- }
2130
+ // return ` ax-alert ax-none ax-${this.color}-default ax-${this.look}-default`;
2131
+ const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
2132
+ return `ax-alert ax-none ${_class}`;
1787
2133
  }
1788
2134
  /**
1789
- * Predefined color schemes
2135
+ * set the visibility of the Alert
1790
2136
  */
1791
- get color() {
1792
- return this._color;
2137
+ get visible() {
2138
+ return __classPrivateFieldGet(this, _AXAlertComponent_visible, "f");
1793
2139
  }
1794
- set color(value) {
1795
- value = this._onOptionChanging({ name: 'color', value: value });
1796
- const oldValue = this.color;
1797
- if (value != oldValue) {
1798
- this._color = value;
1799
- this.colorChange.emit(value);
1800
- this.onOptionChanged({ name: 'value', oldValue, newValue: value });
2140
+ set visible(v) {
2141
+ if (__classPrivateFieldGet(this, _AXAlertComponent_visible, "f") != v) {
2142
+ __classPrivateFieldSet(this, _AXAlertComponent_visible, v, "f");
2143
+ const host = this._getHostElement();
2144
+ if (v) {
2145
+ host.classList.remove('ax-state-hidden');
2146
+ host.classList.add('ax-state-visible');
2147
+ }
2148
+ else {
2149
+ host.classList.add('ax-state-hidden');
2150
+ host.classList.toggle('ax-state-visible');
2151
+ }
1801
2152
  }
1802
2153
  }
1803
- /**
1804
- * Predefined look schemes
1805
- */
1806
- get look() {
1807
- return this._look;
1808
- }
1809
- set look(value) {
1810
- value = this._onOptionChanging({ name: 'look', value: value });
1811
- const oldValue = this.look;
1812
- if (value != oldValue) {
1813
- this._look = value;
1814
- this.lookChange.emit(value);
1815
- this.onOptionChanged({ name: 'look', oldValue, newValue: value });
2154
+ onInit() {
2155
+ if (this.timeOut) {
2156
+ setTimeout(() => {
2157
+ this.dismiss();
2158
+ }, this.timeOut);
1816
2159
  }
1817
2160
  }
1818
- ngAfterContentInit() {
1819
- this._bindEvents();
1820
- this._bindProps();
1821
- }
1822
- _bindEvents() {
1823
- (this._contentButtons || []).forEach(b => {
1824
- b.onClick.subscribe(c => {
1825
- this._handleClickEvent(c, b);
1826
- });
1827
- });
1828
- }
1829
- _bindProps() {
1830
- (this._contentButtons || []).forEach(b => {
1831
- b.look = this.look;
1832
- b.color = this.color;
1833
- b.disabled = this.disabled;
1834
- b.toggleable = false;
1835
- });
2161
+ onViewInit() {
2162
+ if (this.visible == undefined) {
2163
+ this.visible = true;
2164
+ }
1836
2165
  }
1837
- onOptionChanged(options) {
1838
- this._bindProps();
2166
+ /**
2167
+ * Remove the alert from the container
2168
+ */
2169
+ dismiss() {
2170
+ const host = this._getHostElement();
2171
+ this.visible = false;
2172
+ const func = () => {
2173
+ host.parentElement.removeChild(host);
2174
+ };
2175
+ host.addEventListener('transitionend', func);
1839
2176
  }
1840
- _handleClickEvent(e, button) {
1841
- if (this.selection == 'multiple') {
1842
- button.selected = !button.selected;
1843
- }
1844
- else if (this.selection == 'single') {
1845
- this._contentButtons.forEach(c => {
1846
- c.selected = false;
1847
- });
1848
- button.selected = true;
1849
- }
1850
- else {
1851
- button.selected = false;
1852
- }
1853
- this.onItemClick.emit({
1854
- component: this,
1855
- htmlElement: e.htmlElement,
1856
- item: button
1857
- });
2177
+ /**
2178
+ * Hide the alert
2179
+ */
2180
+ hide() {
2181
+ this.visible = false;
2182
+ }
2183
+ /**
2184
+ * Show the alert
2185
+ */
2186
+ show() {
2187
+ this.visible = true;
1858
2188
  }
1859
2189
  }
1860
- 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 });
1861
- 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 });
1862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
2190
+ _AXAlertComponent_visible = new WeakMap();
2191
+ 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 });
2192
+ 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 });
2193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
1863
2194
  type: Component,
1864
- 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>" }]
1865
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
1866
- type: Output
1867
- }], selection: [{
2195
+ 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>" }]
2196
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
1868
2197
  type: Input
1869
- }], colorChange: [{
1870
- type: Output
1871
- }], color: [{
2198
+ }], showIcon: [{
1872
2199
  type: Input
1873
- }], lookChange: [{
1874
- type: Output
1875
- }], look: [{
2200
+ }], __hostClass: [{
2201
+ type: HostBinding,
2202
+ args: ['class']
2203
+ }], timeOut: [{
2204
+ type: Input
2205
+ }], visible: [{
1876
2206
  type: Input
1877
- }], onItemClick: [{
1878
- type: Output
1879
- }], _contentButtons: [{
1880
- type: ContentChildren,
1881
- args: [AXButtonComponent, { descendants: true }]
1882
2207
  }] } });
1883
2208
 
1884
- const AXBaseItemButtonMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
1885
- class AXButtonItemComponent extends AXBaseItemButtonMixin {
1886
- /**
1887
- * @ignore
1888
- */
2209
+ class AXAlertTitleComponent {
2210
+ }
2211
+ AXAlertTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2212
+ 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: `
2213
+ <ng-content>
2214
+ </ng-content>
2215
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, decorators: [{
2217
+ type: Component,
2218
+ args: [{
2219
+ selector: 'ax-alert-title',
2220
+ template: `
2221
+ <ng-content>
2222
+ </ng-content>
2223
+ `,
2224
+ changeDetection: ChangeDetectionStrategy.OnPush,
2225
+ encapsulation: ViewEncapsulation.None,
2226
+ host: { class: 'ax-alert-title' }
2227
+ }]
2228
+ }] });
2229
+
2230
+ class AXAlertButtonComponent extends AXBaseClickableMixin {
1889
2231
  constructor(elementRef, cdr) {
1890
2232
  super(elementRef, cdr);
1891
- this.text = null;
1892
- this.tooltip = null;
1893
- this.selected = false;
1894
- this.seperated = false;
1895
- this.color = 'light';
1896
2233
  }
1897
- __hostClick(e) {
2234
+ _handleOnClick(e) {
1898
2235
  this._emitOnClickEvent(e);
1899
2236
  }
1900
- get __hostClass() {
1901
- const cssClasses = {
1902
- 'ax-button-icon': !this.text,
1903
- 'ax-state-disabled': this.disabled,
1904
- 'ax-state-selected': this.selected,
1905
- };
1906
- cssClasses[`ax-${this.color || 'primary'}-default`] = true;
1907
- return Object.entries(cssClasses).filter(c => c[1]).map(c => c[0]).join(' ');
2237
+ _handleOnFocus(e) {
2238
+ this._emitOnFocusEvent(e);
2239
+ }
2240
+ _handleOnBlur(e) {
2241
+ this._emitOnBlurEvent(e);
1908
2242
  }
1909
2243
  }
1910
- 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 });
1911
- 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: `
1912
- <ng-content select="ax-prefix">
1913
- </ng-content>
1914
- <ng-content select="ax-icon">
1915
- </ng-content>
1916
- <span *ngIf="text">{{text}}</span>
1917
- <ng-content select="ax-suffix">
1918
- </ng-content>
1919
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1920
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, decorators: [{
2244
+ 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 });
2245
+ 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: `
2246
+ {{text}}
2247
+ <ng-content select="ax-icon"></ng-content>
2248
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
1921
2250
  type: Component,
1922
2251
  args: [{
1923
- selector: 'ax-button-item',
2252
+ selector: 'ax-alert-button',
1924
2253
  template: `
1925
- <ng-content select="ax-prefix">
1926
- </ng-content>
1927
- <ng-content select="ax-icon">
2254
+ {{text}}
2255
+ <ng-content select="ax-icon"></ng-content>
2256
+ `,
2257
+ changeDetection: ChangeDetectionStrategy.OnPush,
2258
+ encapsulation: ViewEncapsulation.None,
2259
+ outputs: [...BUTTON_OUTPUT],
2260
+ host: { class: 'ax-alert-button' }
2261
+ }]
2262
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
2263
+ type: Input
2264
+ }], icon: [{
2265
+ type: Input
2266
+ }], _handleOnClick: [{
2267
+ type: HostListener,
2268
+ args: ['click', ['$event']]
2269
+ }], _handleOnFocus: [{
2270
+ type: HostListener,
2271
+ args: ['focus', ['$event']]
2272
+ }], _handleOnBlur: [{
2273
+ type: HostListener,
2274
+ args: ['blur', ['$event']]
2275
+ }] } });
2276
+
2277
+ class AXAlertContentComponent {
2278
+ }
2279
+ AXAlertContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2280
+ 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>
1928
2281
  </ng-content>
1929
- <span *ngIf="text">{{text}}</span>
1930
- <ng-content select="ax-suffix">
2282
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, decorators: [{
2284
+ type: Component,
2285
+ args: [{
2286
+ selector: 'ax-alert-content',
2287
+ template: `<ng-content>
1931
2288
  </ng-content>
1932
2289
  `,
2290
+ changeDetection: ChangeDetectionStrategy.OnPush,
2291
+ encapsulation: ViewEncapsulation.None,
2292
+ host: { class: 'ax-alert-content' }
2293
+ }]
2294
+ }] });
2295
+
2296
+ class AXAlertSuffixComponent {
2297
+ }
2298
+ AXAlertSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2299
+ 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: `
2300
+ <div class="ax-alert-buttons">
2301
+ <ng-content select="ax-alert-button">
2302
+ </ng-content>
2303
+ </div>
2304
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, decorators: [{
2306
+ type: Component,
2307
+ args: [{
2308
+ selector: 'ax-alert-suffix',
2309
+ template: `
2310
+ <div class="ax-alert-buttons">
2311
+ <ng-content select="ax-alert-button">
2312
+ </ng-content>
2313
+ </div>
2314
+ `,
2315
+ changeDetection: ChangeDetectionStrategy.OnPush,
1933
2316
  encapsulation: ViewEncapsulation.None,
2317
+ host: { class: 'ax-alert-suffix' }
2318
+ }]
2319
+ }] });
2320
+
2321
+ class AXAlertFooterComponent {
2322
+ }
2323
+ AXAlertFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2324
+ 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: `
2325
+ <div class="ax-alert-buttons">
2326
+ <ng-content select="ax-alert-button">
2327
+ </ng-content>
2328
+ </div>
2329
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, decorators: [{
2331
+ type: Component,
2332
+ args: [{
2333
+ selector: 'ax-alert-footer',
2334
+ template: `
2335
+ <div class="ax-alert-buttons">
2336
+ <ng-content select="ax-alert-button">
2337
+ </ng-content>
2338
+ </div>
2339
+ `,
1934
2340
  changeDetection: ChangeDetectionStrategy.OnPush,
2341
+ encapsulation: ViewEncapsulation.None,
2342
+ host: { class: 'ax-alert-footer' }
2343
+ }]
2344
+ }] });
2345
+
2346
+ const COMPONENT$k = [
2347
+ AXAlertComponent,
2348
+ AXAlertContentComponent,
2349
+ AXAlertTitleComponent,
2350
+ AXAlertButtonComponent,
2351
+ AXAlertFooterComponent,
2352
+ AXAlertSuffixComponent
2353
+ ];
2354
+ const MODULES$k = [CommonModule, AXIconModule];
2355
+ class AXAlertModule {
2356
+ }
2357
+ AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2358
+ AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
2359
+ AXAlertContentComponent,
2360
+ AXAlertTitleComponent,
2361
+ AXAlertButtonComponent,
2362
+ AXAlertFooterComponent,
2363
+ AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
2364
+ AXAlertContentComponent,
2365
+ AXAlertTitleComponent,
2366
+ AXAlertButtonComponent,
2367
+ AXAlertFooterComponent,
2368
+ AXAlertSuffixComponent] });
2369
+ AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$k]] });
2370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
2371
+ type: NgModule,
2372
+ args: [{
2373
+ declarations: [...COMPONENT$k],
2374
+ imports: [...MODULES$k],
2375
+ exports: [...COMPONENT$k],
2376
+ providers: [],
2377
+ }]
2378
+ }] });
2379
+
2380
+ class AXAvatarGroup {
2381
+ constructor() { }
2382
+ ngOnInit() { }
2383
+ }
2384
+ AXAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
2385
+ 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 });
2386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, decorators: [{
2387
+ type: Component,
2388
+ args: [{
2389
+ selector: 'ax-avatar-group',
2390
+ template: `<ng-content select='ax-avatar'></ng-content>`,
2391
+ host: { class: 'ax-avatar-group' }
1935
2392
  }]
2393
+ }], ctorParameters: function () { return []; } });
2394
+
2395
+ /**
2396
+ * The Button is a component which detects user interaction and triggers a corresponding event
2397
+ *
2398
+ * @category Components
2399
+ */
2400
+ class AXAvatarComponent extends AXAvatarMixin {
2401
+ /**
2402
+ * @ignore
2403
+ */
2404
+ constructor(elementRef, cdr) {
2405
+ super(elementRef, cdr);
2406
+ this.type = 'default';
2407
+ }
2408
+ get __hostClass() {
2409
+ return `ax-${this.color}-default`;
2410
+ }
2411
+ }
2412
+ 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 });
2413
+ 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 });
2414
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, decorators: [{
2415
+ type: Component,
2416
+ 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>" }]
1936
2417
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
1937
2418
  type: Input
1938
- }], tooltip: [{
1939
- type: Input
1940
- }], selected: [{
1941
- type: Input
1942
- }], seperated: [{
2419
+ }], icon: [{
1943
2420
  type: Input
1944
- }], name: [{
2421
+ }], src: [{
1945
2422
  type: Input
1946
- }], data: [{
2423
+ }], class: [{
1947
2424
  type: Input
1948
- }], color: [{
2425
+ }], type: [{
1949
2426
  type: Input
1950
- }], __hostClick: [{
1951
- type: HostListener,
1952
- args: ['click', ['$event']]
1953
2427
  }], __hostClass: [{
1954
2428
  type: HostBinding,
1955
2429
  args: ['class']
1956
2430
  }] } });
1957
2431
 
1958
- class AXDecoratorContentComponent extends AXBaseComponentMixin {
1959
- constructor(elementRef, cdr) {
1960
- super(elementRef, cdr);
1961
- }
1962
- }
1963
- 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 });
1964
- AXDecoratorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorContentComponent, selector: "ax-content", usesInheritance: true, ngImport: i0, template: `
1965
- <ng-content>
1966
- </ng-content>
1967
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, decorators: [{
1969
- type: Component,
1970
- args: [{
1971
- selector: 'ax-content',
1972
- template: `
1973
- <ng-content>
1974
- </ng-content>
1975
- `,
1976
- changeDetection: ChangeDetectionStrategy.OnPush,
1977
- encapsulation: ViewEncapsulation.None,
1978
- }]
1979
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
1980
-
1981
- class AXDecoratorAddOnComponent extends AXBaseComponentMixin {
1982
- constructor(_elementRef, _cdr) {
1983
- super(_elementRef, _cdr);
1984
- }
2432
+ const COMPONENT$j = [AXAvatarComponent, AXAvatarGroup];
2433
+ const MODULES$j = [CommonModule];
2434
+ class AXAvatarModule {
1985
2435
  }
1986
- 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 });
1987
- 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 });
1988
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, decorators: [{
1989
- type: Component,
2436
+ AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2437
+ AXAvatarModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
2438
+ AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$j]] });
2439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, decorators: [{
2440
+ type: NgModule,
1990
2441
  args: [{
1991
- selector: 'ax-addon',
1992
- template: `<ng-content></ng-content>`,
1993
- changeDetection: ChangeDetectionStrategy.OnPush,
1994
- encapsulation: ViewEncapsulation.None
2442
+ declarations: [...COMPONENT$j],
2443
+ imports: [...MODULES$j],
2444
+ exports: [...COMPONENT$j],
2445
+ providers: [],
1995
2446
  }]
1996
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2447
+ }] });
1997
2448
 
1998
- class AXDecoratorHeaderComponent extends AXBaseComponentMixin {
2449
+ const AXBaseBadgeMixin = _ColorLookComponentMixin(AXBaseComponent);
2450
+ class AXBadgeComponent extends AXBaseBadgeMixin {
1999
2451
  constructor(elementRef, cdr) {
2000
2452
  super(elementRef, cdr);
2453
+ this.text = '';
2454
+ //TODO: ax-badge
2455
+ }
2456
+ get __hostClass() {
2457
+ const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
2458
+ return ['ax-badge', _class, !this.text ? 'ax-badge-icon' : ''].join(' ');
2001
2459
  }
2002
2460
  }
2003
- 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 });
2004
- AXDecoratorHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorHeaderComponent, selector: "ax-header", usesInheritance: true, ngImport: i0, template: `
2005
- <ng-content>
2006
- </ng-content>
2007
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2008
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, decorators: [{
2461
+ 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 });
2462
+ 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 });
2463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, decorators: [{
2009
2464
  type: Component,
2010
- args: [{
2011
- selector: 'ax-header',
2012
- template: `
2013
- <ng-content>
2014
- </ng-content>
2015
- `,
2016
- changeDetection: ChangeDetectionStrategy.OnPush,
2017
- encapsulation: ViewEncapsulation.None,
2018
- }]
2019
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2465
+ 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>" }]
2466
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
2467
+ type: Input
2468
+ }], __hostClass: [{
2469
+ type: HostBinding,
2470
+ args: ['class']
2471
+ }] } });
2020
2472
 
2021
- class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
2022
- constructor(elementRef, cdr) {
2023
- super(elementRef, cdr);
2024
- }
2473
+ const COMPONENT$i = [AXBadgeComponent];
2474
+ const MODULES$i = [CommonModule];
2475
+ class AXBadgeModule {
2025
2476
  }
2026
- 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 });
2027
- AXDecoratorPrefixComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
2028
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2029
- </ng-content>
2030
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2031
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
2032
- type: Component,
2477
+ AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2478
+ AXBadgeModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
2479
+ AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$i]] });
2480
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, decorators: [{
2481
+ type: NgModule,
2033
2482
  args: [{
2034
- selector: 'ax-prefix',
2035
- template: `
2036
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2037
- </ng-content>
2038
- `,
2039
- changeDetection: ChangeDetectionStrategy.OnPush,
2040
- encapsulation: ViewEncapsulation.None
2483
+ declarations: [...COMPONENT$i],
2484
+ imports: [...MODULES$i],
2485
+ exports: [...COMPONENT$i],
2486
+ providers: [],
2041
2487
  }]
2042
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2488
+ }] });
2043
2489
 
2044
- class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
2045
- constructor(elementRef, cdr) {
2046
- super(elementRef, cdr);
2490
+ class AXBreadCrumbsComponent extends AXBaseComponent {
2491
+ constructor() {
2492
+ super();
2047
2493
  }
2048
2494
  }
2049
- 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 });
2050
- AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
2051
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2052
- </ng-content>
2053
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2054
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
2495
+ AXBreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2496
+ 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>" });
2497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, decorators: [{
2055
2498
  type: Component,
2056
- args: [{
2057
- selector: 'ax-suffix',
2058
- template: `
2059
- <ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
2060
- </ng-content>
2061
- `,
2062
- changeDetection: ChangeDetectionStrategy.OnPush,
2063
- encapsulation: ViewEncapsulation.None
2064
- }]
2065
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
2499
+ args: [{ selector: 'ax-breadcrumbs', host: { class: 'ax-breadcrumbs' }, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" }]
2500
+ }], ctorParameters: function () { return []; } });
2066
2501
 
2067
- const COMPONENT$k = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent];
2068
- const MODULES$k = [CommonModule];
2069
- class AXEditorDecoratorModule {
2502
+ class AXBreadCrumbsItemComponent extends AXBaseComponent {
2503
+ constructor() {
2504
+ super();
2505
+ }
2070
2506
  }
2071
- AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2072
- 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] });
2073
- AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$k]] });
2074
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
2075
- type: NgModule,
2076
- args: [{
2077
- declarations: [...COMPONENT$k],
2078
- imports: [...MODULES$k],
2079
- exports: [...COMPONENT$k],
2080
- providers: [],
2081
- }]
2082
- }] });
2507
+ AXBreadCrumbsItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2508
+ 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>" });
2509
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, decorators: [{
2510
+ type: Component,
2511
+ 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>" }]
2512
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
2513
+ type: Input
2514
+ }] } });
2083
2515
 
2084
- const COMPONENT$j = [
2085
- AXButtonComponent,
2086
- AXButtonItemComponent,
2087
- AXButtonGroupComponent,
2088
- ];
2089
- const MODULES$j = [CommonModule, AXIconModule, AXEditorDecoratorModule];
2090
- class AXButtonModule {
2516
+ class AXBreadcrumbsModule {
2091
2517
  }
2092
- AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2093
- AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
2094
- AXButtonItemComponent,
2095
- AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
2096
- AXButtonItemComponent,
2097
- AXButtonGroupComponent] });
2098
- AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$j]] });
2099
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, decorators: [{
2518
+ AXBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2519
+ AXBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent], imports: [CommonModule], exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent] });
2520
+ AXBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, providers: [], imports: [[CommonModule]] });
2521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, decorators: [{
2100
2522
  type: NgModule,
2101
2523
  args: [{
2102
- imports: [MODULES$j],
2103
- exports: [COMPONENT$j],
2104
- declarations: [COMPONENT$j],
2524
+ declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
2525
+ imports: [CommonModule],
2526
+ exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
2105
2527
  providers: [],
2106
2528
  }]
2107
2529
  }] });
@@ -2466,19 +2888,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2466
2888
  args: ['class']
2467
2889
  }] } });
2468
2890
 
2469
- const COMPONENT$i = [AXCalendarComponent];
2470
- const MODULES$i = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
2891
+ const COMPONENT$h = [AXCalendarComponent];
2892
+ const MODULES$h = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
2471
2893
  class AXCalendarModule {
2472
2894
  }
2473
2895
  AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2474
2896
  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] });
2475
- AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
2897
+ AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
2476
2898
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, decorators: [{
2477
2899
  type: NgModule,
2478
2900
  args: [{
2479
- declarations: [...COMPONENT$i],
2480
- imports: [...MODULES$i],
2481
- exports: [...COMPONENT$i],
2901
+ declarations: [...COMPONENT$h],
2902
+ imports: [...MODULES$h],
2903
+ exports: [...COMPONENT$h],
2482
2904
  providers: [],
2483
2905
  }]
2484
2906
  }] });
@@ -2943,19 +3365,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2943
3365
  }]
2944
3366
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
2945
3367
 
2946
- const COMPONENT$h = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
2947
- const MODULES$h = [CommonModule];
3368
+ const COMPONENT$g = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
3369
+ const MODULES$g = [CommonModule];
2948
3370
  class AXCarouselModule {
2949
3371
  }
2950
3372
  AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2951
3373
  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] });
2952
- AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$h]] });
3374
+ AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$g]] });
2953
3375
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, decorators: [{
2954
3376
  type: NgModule,
2955
3377
  args: [{
2956
- declarations: [...COMPONENT$h],
2957
- imports: [...MODULES$h],
2958
- exports: [...COMPONENT$h],
3378
+ declarations: [...COMPONENT$g],
3379
+ imports: [...MODULES$g],
3380
+ exports: [...COMPONENT$g],
2959
3381
  providers: [],
2960
3382
  }]
2961
3383
  }] });
@@ -3332,8 +3754,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3332
3754
  args: ['axIsLoading']
3333
3755
  }] } });
3334
3756
 
3335
- const COMPONENT$g = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3336
- const MODULES$g = [CommonModule, OverlayModule, PortalModule];
3757
+ const COMPONENT$f = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
3758
+ const MODULES$f = [CommonModule, OverlayModule, PortalModule];
3337
3759
  class AXLoadingModule {
3338
3760
  constructor() {
3339
3761
  AXConfig.set({
@@ -3347,13 +3769,13 @@ class AXLoadingModule {
3347
3769
  }
3348
3770
  AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3349
3771
  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] });
3350
- AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$g]] });
3772
+ AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$f]] });
3351
3773
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, decorators: [{
3352
3774
  type: NgModule,
3353
3775
  args: [{
3354
- declarations: [...COMPONENT$g],
3355
- imports: [...MODULES$g],
3356
- exports: [...COMPONENT$g],
3776
+ declarations: [...COMPONENT$f],
3777
+ imports: [...MODULES$f],
3778
+ exports: [...COMPONENT$f],
3357
3779
  providers: [],
3358
3780
  }]
3359
3781
  }], ctorParameters: function () { return []; } });
@@ -3634,19 +4056,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3634
4056
  }]
3635
4057
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: AXOverlayService }]; } });
3636
4058
 
3637
- const COMPONENT$f = [AXDataListComponent];
3638
- const MODULES$f = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
4059
+ const COMPONENT$e = [AXDataListComponent];
4060
+ const MODULES$e = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
3639
4061
  class AXDataListModule {
3640
4062
  }
3641
4063
  AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3642
4064
  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] });
3643
- AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$f]] });
4065
+ AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$e]] });
3644
4066
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, decorators: [{
3645
4067
  type: NgModule,
3646
4068
  args: [{
3647
- declarations: [...COMPONENT$f],
3648
- imports: [...MODULES$f],
3649
- exports: [...COMPONENT$f],
4069
+ declarations: [...COMPONENT$e],
4070
+ imports: [...MODULES$e],
4071
+ exports: [...COMPONENT$e],
3650
4072
  providers: [],
3651
4073
  }]
3652
4074
  }] });
@@ -4094,8 +4516,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4094
4516
  }]
4095
4517
  }] });
4096
4518
 
4097
- const COMPONENT$e = [AXDatePickerComponent];
4098
- const MODULES$e = [
4519
+ const COMPONENT$d = [AXDatePickerComponent];
4520
+ const MODULES$d = [
4099
4521
  CommonModule,
4100
4522
  AXCalendarModule,
4101
4523
  AXTextBoxModule,
@@ -4118,13 +4540,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
4118
4540
  AXIconModule,
4119
4541
  AXDateTimeModule,
4120
4542
  FormsModule], exports: [AXDatePickerComponent] });
4121
- AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
4543
+ AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$d]] });
4122
4544
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, decorators: [{
4123
4545
  type: NgModule,
4124
4546
  args: [{
4125
- declarations: [...COMPONENT$e],
4126
- imports: [...MODULES$e],
4127
- exports: [...COMPONENT$e],
4547
+ declarations: [...COMPONENT$d],
4548
+ imports: [...MODULES$d],
4549
+ exports: [...COMPONENT$d],
4128
4550
  providers: [],
4129
4551
  }]
4130
4552
  }] });
@@ -4305,20 +4727,41 @@ class AXPageComponent extends AXBaseComponentMixin {
4305
4727
  constructor(elementRef, cdr, _loadingService) {
4306
4728
  super(elementRef, cdr);
4307
4729
  this._loadingService = _loadingService;
4730
+ // private _isLoading: boolean = false;
4731
+ // public get isLoading(): boolean {
4732
+ // return this._isLoading;
4733
+ // }
4734
+ // public set isLoading(v: boolean) {
4735
+ // this._isLoading = v;
4736
+ // if (this._loadingId && !v) {
4737
+ // this._loadingService.hide(this._loadingId);
4738
+ // this._loadingId = null;
4739
+ // }
4740
+ // if (v) {
4741
+ // this._loadingId = this._loadingService.show(this._getHostElement());
4742
+ // }
4743
+ // }
4744
+ this.isLoadingChange = new EventEmitter();
4308
4745
  this._isLoading = false;
4309
4746
  }
4310
4747
  get isLoading() {
4311
4748
  return this._isLoading;
4312
4749
  }
4313
4750
  set isLoading(v) {
4314
- this._isLoading = v;
4315
- if (this._loadingId && !v) {
4316
- this._loadingService.hide(this._loadingId);
4317
- this._loadingId = null;
4318
- }
4319
- if (v) {
4320
- this._loadingId = this._loadingService.show(this._getHostElement());
4321
- }
4751
+ this._setOption({
4752
+ name: 'isLoading',
4753
+ value: v,
4754
+ afterCallback: () => {
4755
+ if (this._loadingId && !v) {
4756
+ this._loadingService.hide(this._loadingId);
4757
+ this._loadingId = null;
4758
+ }
4759
+ if (v) {
4760
+ this._loadingId = this._loadingService.show(this._getHostElement());
4761
+ }
4762
+ this._cdr.markForCheck();
4763
+ }
4764
+ });
4322
4765
  }
4323
4766
  }
4324
4767
  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 });
@@ -4330,7 +4773,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4330
4773
  type: Inject,
4331
4774
  args: [AXLoadingService]
4332
4775
  }] }];
4333
- } });
4776
+ }, propDecorators: { isLoadingChange: [{
4777
+ type: Output
4778
+ }], isLoading: [{
4779
+ type: Input
4780
+ }] } });
4334
4781
 
4335
4782
  class AXPageFooterComponent {
4336
4783
  }
@@ -4381,8 +4828,13 @@ class AXPageClosedPromise extends Promise {
4381
4828
  }
4382
4829
  }
4383
4830
  }
4384
- class AXBasePageComponent {
4385
- constructor() {
4831
+ class AXBasePageComponent extends AXBaseComponentMixin {
4832
+ /**
4833
+ * @ignore
4834
+ */
4835
+ constructor(elementRef, cdr) {
4836
+ super(elementRef, cdr);
4837
+ this.isLoadingChange = new EventEmitter();
4386
4838
  this._isLoading = false;
4387
4839
  this._isPopup = false;
4388
4840
  this.onClosed = new EventEmitter();
@@ -4391,11 +4843,16 @@ class AXBasePageComponent {
4391
4843
  return this._isLoading;
4392
4844
  }
4393
4845
  set isLoading(v) {
4394
- ;
4395
- this._isLoading = v;
4396
- if (this.pageContainer) {
4397
- this.pageContainer.isLoading = this.isLoading;
4398
- }
4846
+ this._setOption({
4847
+ name: 'isLoading',
4848
+ value: v,
4849
+ afterCallback: () => {
4850
+ if (this.pageContainer) {
4851
+ this.pageContainer.isLoading = this.isLoading;
4852
+ }
4853
+ this._cdr.markForCheck();
4854
+ }
4855
+ });
4399
4856
  }
4400
4857
  get isPopup() {
4401
4858
  return this._isPopup;
@@ -4412,16 +4869,20 @@ class AXBasePageComponent {
4412
4869
  this.onClosed.unsubscribe();
4413
4870
  }
4414
4871
  }
4415
- AXBasePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4872
+ 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 });
4416
4873
  AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent });
4417
4874
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, decorators: [{
4418
4875
  type: Injectable
4419
- }], propDecorators: { pageContainer: [{
4876
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { pageContainer: [{
4420
4877
  type: ViewChild,
4421
4878
  args: [AXPageComponent, { static: true }]
4422
4879
  }], footer: [{
4423
4880
  type: ViewChild,
4424
4881
  args: [AXPageFooterComponent, { static: true }]
4882
+ }], isLoadingChange: [{
4883
+ type: Output
4884
+ }], isLoading: [{
4885
+ type: Input
4425
4886
  }] } });
4426
4887
 
4427
4888
  class AXPageHeaderComponent {
@@ -4465,272 +4926,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4465
4926
  }]
4466
4927
  }] });
4467
4928
 
4468
- const COMPONENT$d = [AXDialogComponent];
4469
- const MODULES$d = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
4929
+ const COMPONENT$c = [AXDialogComponent];
4930
+ const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
4470
4931
  class AXDialogModule {
4471
4932
  }
4472
4933
  AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4473
4934
  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] });
4474
- AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$d]] });
4935
+ AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
4475
4936
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, decorators: [{
4476
- type: NgModule,
4477
- args: [{
4478
- declarations: [...COMPONENT$d],
4479
- imports: [...MODULES$d],
4480
- exports: [...COMPONENT$d],
4481
- providers: [],
4482
- }]
4483
- }] });
4484
-
4485
- class AXDrawerComponent extends AXBaseComponentMixin {
4486
- constructor(elementRef, cdr, zone) {
4487
- super(elementRef, cdr);
4488
- this.elementRef = elementRef;
4489
- this.zone = zone;
4490
- this.onChanged = new EventEmitter();
4491
- this.mode = 'push';
4492
- this.location = 'start';
4493
- this._collapsed = false;
4494
- }
4495
- get collapsed() {
4496
- return this._collapsed;
4497
- }
4498
- set collapsed(v) {
4499
- if (v != this._collapsed) {
4500
- this._collapsed = v;
4501
- this._updateClass();
4502
- this._emitChange();
4503
- }
4504
- }
4505
- onInit() {
4506
- this._getHostElement().classList.add(this.location == 'start' ? 'ax-drawer-start' : 'ax-drawer-end');
4507
- this._currentMode = this.mode;
4508
- }
4509
- _updateClass() {
4510
- this.zone.runOutsideAngular(() => {
4511
- const elm = this._getHostElement();
4512
- //
4513
- this._currentMode == 'overlay' ? this._setOverlayMode() : this._setPushMode();
4514
- //
4515
- if (this.collapsed) {
4516
- elm.classList.remove('ax-expanded');
4517
- elm.classList.add('ax-collapsed');
4518
- if (this._currentMode == 'overlay') {
4519
- this._removeBackdrop();
4520
- }
4521
- }
4522
- else {
4523
- elm.classList.add('ax-expanded');
4524
- elm.classList.remove('ax-collapsed');
4525
- if (this._currentMode == 'overlay') {
4526
- this._addBackdrop();
4527
- }
4528
- }
4529
- });
4530
- }
4531
- onViewInit() {
4532
- this._detectSize();
4533
- }
4534
- toggle() {
4535
- this.collapsed = !this.collapsed;
4536
- }
4537
- close() {
4538
- this.collapsed = true;
4539
- }
4540
- open() {
4541
- this.collapsed = false;
4542
- }
4543
- _handleWindowsResize(e) {
4544
- this._detectSize();
4545
- }
4546
- _detectSize() {
4547
- //TODO detect break size
4548
- const bound = this._getHostElement().parentElement.getBoundingClientRect();
4549
- if (bound.width == 0) {
4550
- console.log('Drawe invalid size', bound);
4551
- setTimeout(() => {
4552
- this._detectSize();
4553
- }, 1);
4554
- return;
4555
- }
4556
- if (bound.width < 400) {
4557
- this._currentMode = 'overlay';
4558
- this.collapsed = true;
4559
- }
4560
- else {
4561
- this._currentMode = this.mode;
4562
- }
4563
- this._updateClass();
4564
- this._emitChange();
4565
- }
4566
- _emitChange() {
4567
- this.onChanged.emit({
4568
- component: this,
4569
- htmlElement: this.elementRef.nativeElement
4570
- });
4571
- }
4572
- _setOverlayMode() {
4573
- this._currentMode = 'overlay';
4574
- this._getHostElement().classList.remove('ax-drawer-push');
4575
- this._getHostElement().classList.add('ax-drawer-overlay');
4576
- }
4577
- _setPushMode() {
4578
- this._currentMode = 'push';
4579
- this._getHostElement().classList.remove('ax-drawer-overlay');
4580
- this._getHostElement().classList.add('ax-drawer-push');
4581
- this._removeBackdrop();
4582
- }
4583
- _addBackdrop() {
4584
- if (!this._backdrop) {
4585
- this._backdrop = document.createElement('div');
4586
- this._backdrop.classList.add('ax-drawer-backdrop');
4587
- this._getHostElement().parentElement.prepend(this._backdrop);
4588
- this._backdrop.addEventListener('click', this._handleBackfropClick.bind(this));
4589
- }
4590
- }
4591
- _removeBackdrop() {
4592
- if (this._backdrop) {
4593
- this._backdrop.removeEventListener('click', this._handleBackfropClick.bind(this));
4594
- this._getHostElement().parentElement.removeChild(this._backdrop);
4595
- this._backdrop = null;
4596
- }
4597
- }
4598
- _handleBackfropClick(e) {
4599
- this._removeBackdrop();
4600
- this.collapsed = true;
4601
- }
4602
- }
4603
- 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 });
4604
- 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: `
4605
- <ng-content>
4606
- </ng-content>
4607
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4608
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, decorators: [{
4609
- type: Component,
4610
- args: [{
4611
- selector: 'ax-drawer',
4612
- template: `
4613
- <ng-content>
4614
- </ng-content>
4615
- `,
4616
- changeDetection: ChangeDetectionStrategy.OnPush,
4617
- encapsulation: ViewEncapsulation.None,
4618
- host: { class: 'ax-drawer' }
4619
- }]
4620
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { onChanged: [{
4621
- type: Output
4622
- }], mode: [{
4623
- type: Input
4624
- }], location: [{
4625
- type: Input
4626
- }], collapsed: [{
4627
- type: Input
4628
- }], _handleWindowsResize: [{
4629
- type: HostListener,
4630
- args: ['window:resize', ['$event']]
4631
- }] } });
4632
-
4633
- class AXDrawerContainerComponent extends AXBaseComponentMixin {
4634
- constructor(elementRef, cdr, zone) {
4635
- super(elementRef, cdr);
4636
- this.zone = zone;
4637
- }
4638
- onViewInit() {
4639
- this._updateWidth();
4640
- // add animation
4641
- setTimeout(() => {
4642
- this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
4643
- c.classList.add('ax-animated');
4644
- });
4645
- }, 100);
4646
- this.drawers.forEach(c => {
4647
- c.onChanged.subscribe(c => {
4648
- this._updateWidth();
4649
- });
4650
- });
4651
- }
4652
- _updateWidth() {
4653
- this.zone.runOutsideAngular(() => {
4654
- const container = this._getHostElement().closest('ax-drawer-container');
4655
- const parentWidth = this._getHostElement().getBoundingClientRect().width;
4656
- let w = 0;
4657
- this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
4658
- const elm = c;
4659
- const width = elm.getBoundingClientRect().width;
4660
- const overflow = parentWidth < width;
4661
- const diff = width - parentWidth;
4662
- w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
4663
- elm.style.setProperty('--attr-width', `${width}px`);
4664
- //TODO check overflow
4665
- elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
4666
- });
4667
- container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
4668
- });
4669
- }
4670
- }
4671
- 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 });
4672
- 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: `
4673
- <ng-content select="ax-drawer[location='start']">
4674
- </ng-content>
4675
- <ng-content select="ax-drawer-content">
4676
- </ng-content>
4677
- <ng-content select="ax-drawer[location='end']">
4678
- </ng-content>
4679
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4680
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
4681
- type: Component,
4682
- args: [{
4683
- selector: 'ax-drawer-container',
4684
- template: `
4685
- <ng-content select="ax-drawer[location='start']">
4686
- </ng-content>
4687
- <ng-content select="ax-drawer-content">
4688
- </ng-content>
4689
- <ng-content select="ax-drawer[location='end']">
4690
- </ng-content>
4691
- `,
4692
- inputs: ['rtl'],
4693
- changeDetection: ChangeDetectionStrategy.OnPush,
4694
- encapsulation: ViewEncapsulation.None,
4695
- host: { class: 'ax-drawer-container' }
4696
- }]
4697
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { drawers: [{
4698
- type: ContentChildren,
4699
- args: [AXDrawerComponent]
4700
- }] } });
4701
-
4702
- class AXDrawerContentComponent extends AXBaseComponentMixin {
4703
- constructor(elementRef, cdr) {
4704
- super(elementRef, cdr);
4705
- }
4706
- }
4707
- 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 });
4708
- 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: `
4709
- <ng-content>
4710
- </ng-content>
4711
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4712
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
4713
- type: Component,
4714
- args: [{
4715
- selector: 'ax-drawer-content',
4716
- template: `
4717
- <ng-content>
4718
- </ng-content>
4719
- `,
4720
- changeDetection: ChangeDetectionStrategy.OnPush,
4721
- encapsulation: ViewEncapsulation.None,
4722
- host: { class: 'ax-drawer-content' }
4723
- }]
4724
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4725
-
4726
- const COMPONENT$c = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
4727
- const MODULES$c = [CommonModule];
4728
- class AXDrawerModule {
4729
- }
4730
- AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4731
- 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] });
4732
- AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$c]] });
4733
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, decorators: [{
4734
4937
  type: NgModule,
4735
4938
  args: [{
4736
4939
  declarations: [...COMPONENT$c],
@@ -6239,7 +6442,7 @@ class AXSelectionListComponent extends AXBaseSelectionValueMixin {
6239
6442
  }
6240
6443
  }
6241
6444
  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 });
6242
- 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 });
6445
+ 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 });
6243
6446
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSelectionListComponent, decorators: [{
6244
6447
  type: Component,
6245
6448
  args: [{ selector: 'ax-selection-list', inputs: [
@@ -6253,7 +6456,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
6253
6456
  'multiple',
6254
6457
  'items',
6255
6458
  'selectionMode',
6256
- ], 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> -->" }]
6459
+ ], 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> -->" }]
6257
6460
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { direction: [{
6258
6461
  type: Input
6259
6462
  }] } });
@@ -7457,5 +7660,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
7457
7660
  * Generated bundle index. Do not edit.
7458
7661
  */
7459
7662
 
7460
- 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 };
7663
+ 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 };
7461
7664
  //# sourceMappingURL=acorex-components.mjs.map