@acorex/components 5.0.55 → 5.0.56
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.
- package/esm2020/lib/action-sheet/action-sheet-item.component.mjs +37 -0
- package/esm2020/lib/action-sheet/action-sheet.component.mjs +90 -0
- package/esm2020/lib/action-sheet/action-sheet.module.mjs +23 -0
- package/esm2020/lib/action-sheet/index.mjs +4 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/acorex-components.mjs +1267 -1133
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +1267 -1133
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/action-sheet/action-sheet-item.component.d.ts +15 -0
- package/lib/action-sheet/action-sheet.component.d.ts +20 -0
- package/lib/action-sheet/action-sheet.module.d.ts +12 -0
- package/lib/action-sheet/index.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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';
|
|
@@ -9,6 +10,7 @@ import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubjec
|
|
|
9
10
|
import { debounceTime, distinctUntilChanged, map, pairwise, filter, startWith, exhaustMap, observeOn, finalize, throttleTime } from 'rxjs/operators';
|
|
10
11
|
import * as i1 from '@angular/common';
|
|
11
12
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
13
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
12
14
|
import * as i1$1 from '@angular/forms';
|
|
13
15
|
import { FormsModule } from '@angular/forms';
|
|
14
16
|
import * as i1$2 from '@angular/cdk/portal';
|
|
@@ -25,7 +27,6 @@ import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
|
25
27
|
import IMask from 'imask';
|
|
26
28
|
import * as i5 from 'angular-imask';
|
|
27
29
|
import { IMaskModule, IMaskDirective } from 'angular-imask';
|
|
28
|
-
import { trigger, transition, style, animate } from '@angular/animations';
|
|
29
30
|
|
|
30
31
|
var _AXBaseComponent_elementRef;
|
|
31
32
|
class AXBaseComponent {
|
|
@@ -1220,855 +1221,1151 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
1220
1221
|
}]
|
|
1221
1222
|
}] });
|
|
1222
1223
|
|
|
1223
|
-
|
|
1224
|
-
|
|
1224
|
+
class AXActionSheetComponent extends AXBaseComponent {
|
|
1225
|
+
/**
|
|
1226
|
+
* @ignore
|
|
1227
|
+
*/
|
|
1228
|
+
constructor(_elementRef, _cdr) {
|
|
1229
|
+
super(_elementRef, _cdr);
|
|
1230
|
+
this.caption = '';
|
|
1231
|
+
this.closeOnBackdrop = true;
|
|
1232
|
+
this.isOpen = false;
|
|
1233
|
+
}
|
|
1234
|
+
_handleBackdropClick() {
|
|
1235
|
+
if (!this.closeOnBackdrop)
|
|
1236
|
+
return;
|
|
1237
|
+
this.close();
|
|
1238
|
+
}
|
|
1239
|
+
ngAfterViewInit() {
|
|
1240
|
+
}
|
|
1241
|
+
open() {
|
|
1242
|
+
this.isOpen = true;
|
|
1243
|
+
}
|
|
1244
|
+
close() {
|
|
1245
|
+
this.isOpen = false;
|
|
1246
|
+
}
|
|
1247
|
+
toggle() {
|
|
1248
|
+
debugger;
|
|
1249
|
+
this.isOpen = !this.isOpen;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
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 });
|
|
1253
|
+
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: [
|
|
1254
|
+
trigger('backdrop', [
|
|
1255
|
+
state('show', style({
|
|
1256
|
+
opacity: 1,
|
|
1257
|
+
visibility: 'visible'
|
|
1258
|
+
})),
|
|
1259
|
+
state('hide', style({
|
|
1260
|
+
visibility: 'hidden',
|
|
1261
|
+
opacity: 0
|
|
1262
|
+
})),
|
|
1263
|
+
transition('show <=> hide', [animate('0.2s')]),
|
|
1264
|
+
]),
|
|
1265
|
+
trigger('openClose', [
|
|
1266
|
+
state('open', style({
|
|
1267
|
+
bottom: '0',
|
|
1268
|
+
opacity: 1
|
|
1269
|
+
})),
|
|
1270
|
+
state('closed', style({
|
|
1271
|
+
bottom: '-100%',
|
|
1272
|
+
opacity: 0.5
|
|
1273
|
+
})),
|
|
1274
|
+
transition('open <=> closed', [animate('0.2s')])
|
|
1275
|
+
]),
|
|
1276
|
+
] });
|
|
1277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetComponent, decorators: [{
|
|
1278
|
+
type: Component,
|
|
1279
|
+
args: [{ selector: 'ax-action-sheet', animations: [
|
|
1280
|
+
trigger('backdrop', [
|
|
1281
|
+
state('show', style({
|
|
1282
|
+
opacity: 1,
|
|
1283
|
+
visibility: 'visible'
|
|
1284
|
+
})),
|
|
1285
|
+
state('hide', style({
|
|
1286
|
+
visibility: 'hidden',
|
|
1287
|
+
opacity: 0
|
|
1288
|
+
})),
|
|
1289
|
+
transition('show <=> hide', [animate('0.2s')]),
|
|
1290
|
+
]),
|
|
1291
|
+
trigger('openClose', [
|
|
1292
|
+
state('open', style({
|
|
1293
|
+
bottom: '0',
|
|
1294
|
+
opacity: 1
|
|
1295
|
+
})),
|
|
1296
|
+
state('closed', style({
|
|
1297
|
+
bottom: '-100%',
|
|
1298
|
+
opacity: 0.5
|
|
1299
|
+
})),
|
|
1300
|
+
transition('open <=> closed', [animate('0.2s')])
|
|
1301
|
+
]),
|
|
1302
|
+
], 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>" }]
|
|
1303
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { caption: [{
|
|
1304
|
+
type: Input
|
|
1305
|
+
}], closeOnBackdrop: [{
|
|
1306
|
+
type: Input
|
|
1307
|
+
}] } });
|
|
1308
|
+
|
|
1225
1309
|
/**
|
|
1226
|
-
*
|
|
1310
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
1227
1311
|
*
|
|
1228
1312
|
* @category Components
|
|
1229
1313
|
*/
|
|
1230
|
-
class
|
|
1314
|
+
class AXButtonComponent extends AXBaseButtonMixin {
|
|
1231
1315
|
/**
|
|
1232
1316
|
* @ignore
|
|
1233
1317
|
*/
|
|
1234
1318
|
constructor(elementRef, cdr) {
|
|
1235
1319
|
super(elementRef, cdr);
|
|
1236
|
-
this.showIcon = true;
|
|
1237
|
-
_AXAlertComponent_visible.set(this, void 0);
|
|
1238
|
-
}
|
|
1239
|
-
_onOptionChanged(option) {
|
|
1240
|
-
if (option.name == 'color') {
|
|
1241
|
-
switch (this.color) {
|
|
1242
|
-
case 'success':
|
|
1243
|
-
this.icon = 'ax-ic ax-ic-check-filled';
|
|
1244
|
-
break;
|
|
1245
|
-
case 'warning':
|
|
1246
|
-
this.icon = 'ax-ic-warning-filled';
|
|
1247
|
-
break;
|
|
1248
|
-
case 'danger':
|
|
1249
|
-
this.icon = 'ax-ic-error-filled';
|
|
1250
|
-
break;
|
|
1251
|
-
default:
|
|
1252
|
-
this.icon = 'ax-ic ax-ic-info-filled';
|
|
1253
|
-
break;
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
/**
|
|
1258
|
-
* @ignore
|
|
1259
|
-
*/
|
|
1260
|
-
get __hostClass() {
|
|
1261
|
-
// return ` ax-alert ax-none ax-${this.color}-default ax-${this.look}-default`;
|
|
1262
|
-
const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
|
|
1263
|
-
return `ax-alert ax-none ${_class}`;
|
|
1264
|
-
}
|
|
1265
|
-
/**
|
|
1266
|
-
* set the visibility of the Alert
|
|
1267
|
-
*/
|
|
1268
|
-
get visible() {
|
|
1269
|
-
return __classPrivateFieldGet(this, _AXAlertComponent_visible, "f");
|
|
1270
|
-
}
|
|
1271
|
-
set visible(v) {
|
|
1272
|
-
if (__classPrivateFieldGet(this, _AXAlertComponent_visible, "f") != v) {
|
|
1273
|
-
__classPrivateFieldSet(this, _AXAlertComponent_visible, v, "f");
|
|
1274
|
-
const host = this._getHostElement();
|
|
1275
|
-
if (v) {
|
|
1276
|
-
host.classList.remove('ax-state-hidden');
|
|
1277
|
-
host.classList.add('ax-state-visible');
|
|
1278
|
-
}
|
|
1279
|
-
else {
|
|
1280
|
-
host.classList.add('ax-state-hidden');
|
|
1281
|
-
host.classList.toggle('ax-state-visible');
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
1320
|
}
|
|
1285
|
-
|
|
1286
|
-
if (
|
|
1287
|
-
|
|
1288
|
-
this.dismiss();
|
|
1289
|
-
}, this.timeOut);
|
|
1321
|
+
onKeydownHandler(e) {
|
|
1322
|
+
if (e.code === 'Enter') {
|
|
1323
|
+
this._getHostElement().click();
|
|
1290
1324
|
}
|
|
1291
1325
|
}
|
|
1292
|
-
|
|
1293
|
-
if (this.
|
|
1294
|
-
|
|
1326
|
+
_emitOnClickEvent(e) {
|
|
1327
|
+
if (this.disabled)
|
|
1328
|
+
return;
|
|
1329
|
+
if (this.toggleable) {
|
|
1330
|
+
this.selected = !this.selected;
|
|
1295
1331
|
}
|
|
1332
|
+
super._emitOnClickEvent(e);
|
|
1296
1333
|
}
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
*/
|
|
1300
|
-
dismiss() {
|
|
1301
|
-
const host = this._getHostElement();
|
|
1302
|
-
this.visible = false;
|
|
1303
|
-
const func = () => {
|
|
1304
|
-
host.parentElement.removeChild(host);
|
|
1305
|
-
};
|
|
1306
|
-
host.addEventListener('transitionend', func);
|
|
1334
|
+
_emitOnFocusEvent(e) {
|
|
1335
|
+
super._emitOnFocusEvent(e);
|
|
1307
1336
|
}
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
*/
|
|
1311
|
-
hide() {
|
|
1312
|
-
this.visible = false;
|
|
1337
|
+
_emitOnBlurEvent(e) {
|
|
1338
|
+
super._emitOnBlurEvent(e);
|
|
1313
1339
|
}
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
*/
|
|
1317
|
-
show() {
|
|
1318
|
-
this.visible = true;
|
|
1340
|
+
get __hostClass() {
|
|
1341
|
+
return Object.entries(this._classes).filter(c => c[1]).map(c => c[0]).join(' ');
|
|
1319
1342
|
}
|
|
1320
1343
|
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
|
|
1344
|
+
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 });
|
|
1345
|
+
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 });
|
|
1346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, decorators: [{
|
|
1325
1347
|
type: Component,
|
|
1326
|
-
args: [{ selector: 'ax-
|
|
1327
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
1328
|
-
type:
|
|
1329
|
-
|
|
1330
|
-
|
|
1348
|
+
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> -->" }]
|
|
1349
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
|
|
1350
|
+
type: HostListener,
|
|
1351
|
+
args: ['keyup', ['$event']]
|
|
1352
|
+
}], _emitOnClickEvent: [{
|
|
1353
|
+
type: HostListener,
|
|
1354
|
+
args: ['click', ['$event']]
|
|
1355
|
+
}], _emitOnFocusEvent: [{
|
|
1356
|
+
type: HostListener,
|
|
1357
|
+
args: ['focus', ['$event']]
|
|
1358
|
+
}], _emitOnBlurEvent: [{
|
|
1359
|
+
type: HostListener,
|
|
1360
|
+
args: ['blur', ['$event']]
|
|
1331
1361
|
}], __hostClass: [{
|
|
1332
1362
|
type: HostBinding,
|
|
1333
1363
|
args: ['class']
|
|
1334
|
-
}], timeOut: [{
|
|
1335
|
-
type: Input
|
|
1336
|
-
}], visible: [{
|
|
1337
|
-
type: Input
|
|
1338
1364
|
}] } });
|
|
1339
1365
|
|
|
1340
|
-
class
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
type: Component,
|
|
1349
|
-
args: [{
|
|
1350
|
-
selector: 'ax-alert-title',
|
|
1351
|
-
template: `
|
|
1352
|
-
<ng-content>
|
|
1353
|
-
</ng-content>
|
|
1354
|
-
`,
|
|
1355
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1356
|
-
encapsulation: ViewEncapsulation.None,
|
|
1357
|
-
host: { class: 'ax-alert-title' }
|
|
1358
|
-
}]
|
|
1359
|
-
}] });
|
|
1360
|
-
|
|
1361
|
-
class AXAlertButtonComponent extends AXBaseClickableMixin {
|
|
1362
|
-
constructor(elementRef, cdr) {
|
|
1363
|
-
super(elementRef, cdr);
|
|
1364
|
-
}
|
|
1365
|
-
_handleOnClick(e) {
|
|
1366
|
-
this._emitOnClickEvent(e);
|
|
1367
|
-
}
|
|
1368
|
-
_handleOnFocus(e) {
|
|
1369
|
-
this._emitOnFocusEvent(e);
|
|
1366
|
+
class AXActionSheetItemComponent extends AXBaseComponent {
|
|
1367
|
+
/**
|
|
1368
|
+
* @ignore
|
|
1369
|
+
*/
|
|
1370
|
+
constructor(_elementRef, _cdr) {
|
|
1371
|
+
super(_elementRef, _cdr);
|
|
1372
|
+
this.color = 'light';
|
|
1373
|
+
this.onClick = new EventEmitter();
|
|
1370
1374
|
}
|
|
1371
|
-
|
|
1372
|
-
this.
|
|
1375
|
+
handleOnClick(e) {
|
|
1376
|
+
this.onClick.emit(e);
|
|
1373
1377
|
}
|
|
1374
1378
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
|
|
1379
|
+
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 });
|
|
1380
|
+
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: `
|
|
1381
|
+
<ax-button [color]="color" look="blank" [text]="text" (onClick)="handleOnClick($event)"></ax-button>
|
|
1382
|
+
`, 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"] }] });
|
|
1383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetItemComponent, decorators: [{
|
|
1381
1384
|
type: Component,
|
|
1382
1385
|
args: [{
|
|
1383
|
-
selector: 'ax-
|
|
1386
|
+
selector: 'ax-action-sheet-item',
|
|
1384
1387
|
template: `
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
`,
|
|
1388
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1389
|
-
encapsulation: ViewEncapsulation.None,
|
|
1390
|
-
outputs: [...BUTTON_OUTPUT],
|
|
1391
|
-
host: { class: 'ax-alert-button' }
|
|
1388
|
+
<ax-button [color]="color" look="blank" [text]="text" (onClick)="handleOnClick($event)"></ax-button>
|
|
1389
|
+
`
|
|
1392
1390
|
}]
|
|
1393
1391
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
1394
1392
|
type: Input
|
|
1395
|
-
}],
|
|
1393
|
+
}], color: [{
|
|
1396
1394
|
type: Input
|
|
1397
|
-
}],
|
|
1398
|
-
type:
|
|
1399
|
-
args: ['click', ['$event']]
|
|
1400
|
-
}], _handleOnFocus: [{
|
|
1401
|
-
type: HostListener,
|
|
1402
|
-
args: ['focus', ['$event']]
|
|
1403
|
-
}], _handleOnBlur: [{
|
|
1404
|
-
type: HostListener,
|
|
1405
|
-
args: ['blur', ['$event']]
|
|
1395
|
+
}], onClick: [{
|
|
1396
|
+
type: Output
|
|
1406
1397
|
}] } });
|
|
1407
1398
|
|
|
1408
|
-
class
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1399
|
+
class AXDrawerComponent extends AXBaseComponentMixin {
|
|
1400
|
+
constructor(elementRef, cdr, zone) {
|
|
1401
|
+
super(elementRef, cdr);
|
|
1402
|
+
this.elementRef = elementRef;
|
|
1403
|
+
this.zone = zone;
|
|
1404
|
+
this.onChanged = new EventEmitter();
|
|
1405
|
+
this.mode = 'push';
|
|
1406
|
+
this.location = 'start';
|
|
1407
|
+
this._collapsed = false;
|
|
1408
|
+
}
|
|
1409
|
+
get collapsed() {
|
|
1410
|
+
return this._collapsed;
|
|
1411
|
+
}
|
|
1412
|
+
set collapsed(v) {
|
|
1413
|
+
if (v != this._collapsed) {
|
|
1414
|
+
this._collapsed = v;
|
|
1415
|
+
this._updateClass();
|
|
1416
|
+
this._emitChange();
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
onInit() {
|
|
1420
|
+
// this._getHostElement().classList.add(this.location == 'start' ? 'ax-drawer-start' : 'ax-drawer-end');
|
|
1421
|
+
this._setLocation();
|
|
1422
|
+
this._currentMode = this.mode;
|
|
1423
|
+
}
|
|
1424
|
+
_setLocation() {
|
|
1425
|
+
const hostElementClassList = this._getHostElement().classList;
|
|
1426
|
+
switch (this.location) {
|
|
1427
|
+
case 'start':
|
|
1428
|
+
hostElementClassList.add('ax-drawer-start');
|
|
1429
|
+
break;
|
|
1430
|
+
case 'end':
|
|
1431
|
+
hostElementClassList.add('ax-drawer-end');
|
|
1432
|
+
break;
|
|
1433
|
+
case 'top':
|
|
1434
|
+
hostElementClassList.add('ax-drawer-top');
|
|
1435
|
+
break;
|
|
1436
|
+
case 'bottom':
|
|
1437
|
+
hostElementClassList.add('ax-drawer-bottom');
|
|
1438
|
+
break;
|
|
1439
|
+
default:
|
|
1440
|
+
hostElementClassList.add('ax-drawer-start');
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
_updateClass() {
|
|
1445
|
+
this.zone.runOutsideAngular(() => {
|
|
1446
|
+
const elm = this._getHostElement();
|
|
1447
|
+
//
|
|
1448
|
+
this._currentMode == 'overlay' ? this._setOverlayMode() : this._setPushMode();
|
|
1449
|
+
//
|
|
1450
|
+
if (this.collapsed) {
|
|
1451
|
+
elm.classList.remove('ax-expanded');
|
|
1452
|
+
elm.classList.add('ax-collapsed');
|
|
1453
|
+
if (this._currentMode == 'overlay') {
|
|
1454
|
+
this._removeBackdrop();
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
else {
|
|
1458
|
+
elm.classList.add('ax-expanded');
|
|
1459
|
+
elm.classList.remove('ax-collapsed');
|
|
1460
|
+
if (this._currentMode == 'overlay') {
|
|
1461
|
+
this._addBackdrop();
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
onViewInit() {
|
|
1467
|
+
this._detectSize();
|
|
1468
|
+
}
|
|
1469
|
+
toggle() {
|
|
1470
|
+
this.collapsed = !this.collapsed;
|
|
1471
|
+
}
|
|
1472
|
+
close() {
|
|
1473
|
+
this.collapsed = true;
|
|
1474
|
+
}
|
|
1475
|
+
open() {
|
|
1476
|
+
this.collapsed = false;
|
|
1477
|
+
}
|
|
1478
|
+
_handleWindowsResize(e) {
|
|
1479
|
+
this._detectSize();
|
|
1480
|
+
}
|
|
1481
|
+
_detectSize() {
|
|
1482
|
+
//TODO detect break size
|
|
1483
|
+
const bound = this._getHostElement().parentElement.getBoundingClientRect();
|
|
1484
|
+
if (bound.width == 0) {
|
|
1485
|
+
console.log('Drawer invalid size', bound);
|
|
1486
|
+
setTimeout(() => {
|
|
1487
|
+
this._detectSize();
|
|
1488
|
+
}, 1);
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
if (bound.width < 400) {
|
|
1492
|
+
this._currentMode = 'overlay';
|
|
1493
|
+
this.collapsed = true;
|
|
1494
|
+
}
|
|
1495
|
+
else {
|
|
1496
|
+
this._currentMode = this.mode;
|
|
1497
|
+
}
|
|
1498
|
+
this._updateClass();
|
|
1499
|
+
this._emitChange();
|
|
1500
|
+
}
|
|
1501
|
+
_emitChange() {
|
|
1502
|
+
this.onChanged.emit({
|
|
1503
|
+
component: this,
|
|
1504
|
+
htmlElement: this.elementRef.nativeElement
|
|
1505
|
+
});
|
|
1506
|
+
}
|
|
1507
|
+
_setOverlayMode() {
|
|
1508
|
+
this._currentMode = 'overlay';
|
|
1509
|
+
this._getHostElement().classList.remove('ax-drawer-push');
|
|
1510
|
+
this._getHostElement().classList.add('ax-drawer-overlay');
|
|
1511
|
+
}
|
|
1512
|
+
_setPushMode() {
|
|
1513
|
+
this._currentMode = 'push';
|
|
1514
|
+
this._getHostElement().classList.remove('ax-drawer-overlay');
|
|
1515
|
+
this._getHostElement().classList.add('ax-drawer-push');
|
|
1516
|
+
this._removeBackdrop();
|
|
1517
|
+
}
|
|
1518
|
+
_addBackdrop() {
|
|
1519
|
+
if (!this._backdrop) {
|
|
1520
|
+
this._backdrop = document.createElement('div');
|
|
1521
|
+
this._backdrop.classList.add('ax-drawer-backdrop');
|
|
1522
|
+
this._getHostElement().parentElement.prepend(this._backdrop);
|
|
1523
|
+
this._backdrop.addEventListener('click', this._handleBackfropClick.bind(this));
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
_removeBackdrop() {
|
|
1527
|
+
if (this._backdrop) {
|
|
1528
|
+
this._backdrop.removeEventListener('click', this._handleBackfropClick.bind(this));
|
|
1529
|
+
this._getHostElement().parentElement.removeChild(this._backdrop);
|
|
1530
|
+
this._backdrop = null;
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
_handleBackfropClick(e) {
|
|
1534
|
+
this._removeBackdrop();
|
|
1535
|
+
this.collapsed = true;
|
|
1536
|
+
}
|
|
1453
1537
|
}
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
<
|
|
1457
|
-
|
|
1458
|
-
</ng-content>
|
|
1459
|
-
</div>
|
|
1538
|
+
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 });
|
|
1539
|
+
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: `
|
|
1540
|
+
<ng-content>
|
|
1541
|
+
</ng-content>
|
|
1460
1542
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
1543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, decorators: [{
|
|
1462
1544
|
type: Component,
|
|
1463
1545
|
args: [{
|
|
1464
|
-
selector: 'ax-
|
|
1546
|
+
selector: 'ax-drawer',
|
|
1465
1547
|
template: `
|
|
1466
|
-
<
|
|
1467
|
-
|
|
1468
|
-
</ng-content>
|
|
1469
|
-
</div>
|
|
1548
|
+
<ng-content>
|
|
1549
|
+
</ng-content>
|
|
1470
1550
|
`,
|
|
1471
1551
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1472
1552
|
encapsulation: ViewEncapsulation.None,
|
|
1473
|
-
host: { class: 'ax-
|
|
1553
|
+
host: { class: 'ax-drawer ax-transition-all' }
|
|
1474
1554
|
}]
|
|
1475
|
-
}] }
|
|
1555
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { onChanged: [{
|
|
1556
|
+
type: Output
|
|
1557
|
+
}], mode: [{
|
|
1558
|
+
type: Input
|
|
1559
|
+
}], location: [{
|
|
1560
|
+
type: Input
|
|
1561
|
+
}], collapsed: [{
|
|
1562
|
+
type: Input
|
|
1563
|
+
}], _handleWindowsResize: [{
|
|
1564
|
+
type: HostListener,
|
|
1565
|
+
args: ['window:resize', ['$event']]
|
|
1566
|
+
}] } });
|
|
1476
1567
|
|
|
1477
|
-
class
|
|
1478
|
-
constructor(elementRef, cdr) {
|
|
1568
|
+
class AXDrawerContainerComponent extends AXBaseComponentMixin {
|
|
1569
|
+
constructor(elementRef, cdr, zone) {
|
|
1479
1570
|
super(elementRef, cdr);
|
|
1571
|
+
this.zone = zone;
|
|
1480
1572
|
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1573
|
+
onViewInit() {
|
|
1574
|
+
this._updateWidth();
|
|
1575
|
+
// add animation
|
|
1576
|
+
// setTimeout(() => {
|
|
1577
|
+
// this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
|
|
1578
|
+
// c.classList.add('ax-animated');
|
|
1579
|
+
// });
|
|
1580
|
+
// }, 100);
|
|
1581
|
+
this.drawers.forEach(c => {
|
|
1582
|
+
c.onChanged.subscribe(c => {
|
|
1583
|
+
this._updateWidth();
|
|
1584
|
+
});
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
_updateWidth() {
|
|
1588
|
+
this.zone.runOutsideAngular(() => {
|
|
1589
|
+
const container = this._getHostElement().closest('ax-drawer-container');
|
|
1590
|
+
const parentWidth = this._getHostElement().getBoundingClientRect().width;
|
|
1591
|
+
let w = 0;
|
|
1592
|
+
this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
|
|
1593
|
+
const elm = c;
|
|
1594
|
+
const width = elm.getBoundingClientRect().width;
|
|
1595
|
+
const height = elm.getBoundingClientRect().height;
|
|
1596
|
+
const overflow = parentWidth < width;
|
|
1597
|
+
const diff = width - parentWidth;
|
|
1598
|
+
w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
|
|
1599
|
+
elm.style.setProperty('--attr-width', `${width}px`);
|
|
1600
|
+
elm.style.setProperty('--attr-height', `${height}px`);
|
|
1601
|
+
//TODO check overflow
|
|
1602
|
+
elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
|
|
1603
|
+
});
|
|
1604
|
+
container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
|
|
1605
|
+
});
|
|
1483
1606
|
}
|
|
1484
1607
|
}
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1608
|
+
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 });
|
|
1609
|
+
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: `
|
|
1610
|
+
<ng-content select="ax-drawer[location='top']">
|
|
1611
|
+
</ng-content>
|
|
1612
|
+
<ng-content select="ax-drawer[location='start']">
|
|
1613
|
+
</ng-content>
|
|
1614
|
+
<ng-content select="ax-drawer-content">
|
|
1615
|
+
</ng-content>
|
|
1616
|
+
<ng-content select="ax-drawer[location='end']">
|
|
1617
|
+
</ng-content>
|
|
1618
|
+
<ng-content select="ax-drawer[location='bottom']">
|
|
1619
|
+
</ng-content>
|
|
1620
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
|
|
1488
1622
|
type: Component,
|
|
1489
1623
|
args: [{
|
|
1490
|
-
selector: 'ax-
|
|
1491
|
-
template:
|
|
1624
|
+
selector: 'ax-drawer-container',
|
|
1625
|
+
template: `
|
|
1626
|
+
<ng-content select="ax-drawer[location='top']">
|
|
1627
|
+
</ng-content>
|
|
1628
|
+
<ng-content select="ax-drawer[location='start']">
|
|
1629
|
+
</ng-content>
|
|
1630
|
+
<ng-content select="ax-drawer-content">
|
|
1631
|
+
</ng-content>
|
|
1632
|
+
<ng-content select="ax-drawer[location='end']">
|
|
1633
|
+
</ng-content>
|
|
1634
|
+
<ng-content select="ax-drawer[location='bottom']">
|
|
1635
|
+
</ng-content>
|
|
1636
|
+
`,
|
|
1637
|
+
inputs: ['rtl'],
|
|
1492
1638
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1493
1639
|
encapsulation: ViewEncapsulation.None,
|
|
1640
|
+
host: { class: 'ax-drawer-container' }
|
|
1494
1641
|
}]
|
|
1495
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
1496
|
-
type:
|
|
1497
|
-
|
|
1498
|
-
type: HostBinding,
|
|
1499
|
-
args: ['class']
|
|
1642
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { drawers: [{
|
|
1643
|
+
type: ContentChildren,
|
|
1644
|
+
args: [AXDrawerComponent]
|
|
1500
1645
|
}] } });
|
|
1501
1646
|
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1647
|
+
class AXDrawerContentComponent extends AXBaseComponentMixin {
|
|
1648
|
+
constructor(elementRef, cdr) {
|
|
1649
|
+
super(elementRef, cdr);
|
|
1650
|
+
}
|
|
1505
1651
|
}
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1652
|
+
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 });
|
|
1653
|
+
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: `
|
|
1654
|
+
<ng-content>
|
|
1655
|
+
</ng-content>
|
|
1656
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
|
|
1658
|
+
type: Component,
|
|
1511
1659
|
args: [{
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1660
|
+
selector: 'ax-drawer-content',
|
|
1661
|
+
template: `
|
|
1662
|
+
<ng-content>
|
|
1663
|
+
</ng-content>
|
|
1664
|
+
`,
|
|
1665
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1666
|
+
encapsulation: ViewEncapsulation.None,
|
|
1667
|
+
host: { class: 'ax-drawer-content' }
|
|
1516
1668
|
}]
|
|
1517
|
-
}] });
|
|
1669
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1518
1670
|
|
|
1519
|
-
const COMPONENT$
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
AXAlertTitleComponent,
|
|
1523
|
-
AXAlertButtonComponent,
|
|
1524
|
-
AXAlertFooterComponent,
|
|
1525
|
-
AXAlertSuffixComponent
|
|
1526
|
-
];
|
|
1527
|
-
const MODULES$n = [CommonModule, AXIconModule];
|
|
1528
|
-
class AXAlertModule {
|
|
1671
|
+
const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
|
|
1672
|
+
const MODULES$o = [CommonModule];
|
|
1673
|
+
class AXDrawerModule {
|
|
1529
1674
|
}
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
AXAlertButtonComponent,
|
|
1535
|
-
AXAlertFooterComponent,
|
|
1536
|
-
AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
|
|
1537
|
-
AXAlertContentComponent,
|
|
1538
|
-
AXAlertTitleComponent,
|
|
1539
|
-
AXAlertButtonComponent,
|
|
1540
|
-
AXAlertFooterComponent,
|
|
1541
|
-
AXAlertSuffixComponent] });
|
|
1542
|
-
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$n]] });
|
|
1543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
|
|
1675
|
+
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1676
|
+
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] });
|
|
1677
|
+
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$o]] });
|
|
1678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
1544
1679
|
type: NgModule,
|
|
1545
1680
|
args: [{
|
|
1546
|
-
declarations: [...COMPONENT$
|
|
1547
|
-
imports: [...MODULES$
|
|
1548
|
-
exports: [...COMPONENT$
|
|
1681
|
+
declarations: [...COMPONENT$o],
|
|
1682
|
+
imports: [...MODULES$o],
|
|
1683
|
+
exports: [...COMPONENT$o],
|
|
1549
1684
|
providers: [],
|
|
1550
1685
|
}]
|
|
1551
1686
|
}] });
|
|
1552
1687
|
|
|
1553
|
-
class
|
|
1554
|
-
constructor() {
|
|
1555
|
-
|
|
1688
|
+
class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
|
|
1689
|
+
constructor(elementRef, zone, cdr) {
|
|
1690
|
+
super(elementRef, cdr);
|
|
1691
|
+
this.zone = zone;
|
|
1692
|
+
this.selectionChange = new EventEmitter();
|
|
1693
|
+
this.colorChange = new EventEmitter();
|
|
1694
|
+
this._color = 'primary';
|
|
1695
|
+
this.lookChange = new EventEmitter();
|
|
1696
|
+
this._look = null;
|
|
1697
|
+
this.onItemClick = new EventEmitter();
|
|
1698
|
+
this.onValueChanged = new EventEmitter();
|
|
1699
|
+
}
|
|
1700
|
+
get selection() {
|
|
1701
|
+
return this._selection;
|
|
1702
|
+
}
|
|
1703
|
+
set selection(value) {
|
|
1704
|
+
value = this._onOptionChanging({ name: 'selection', value: value });
|
|
1705
|
+
const oldValue = this.selection;
|
|
1706
|
+
if (value != oldValue) {
|
|
1707
|
+
this._selection = value;
|
|
1708
|
+
this.selectionChange.emit(value);
|
|
1709
|
+
this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Predefined color schemes
|
|
1714
|
+
*/
|
|
1715
|
+
get color() {
|
|
1716
|
+
return this._color;
|
|
1717
|
+
}
|
|
1718
|
+
set color(value) {
|
|
1719
|
+
value = this._onOptionChanging({ name: 'color', value: value });
|
|
1720
|
+
const oldValue = this.color;
|
|
1721
|
+
if (value != oldValue) {
|
|
1722
|
+
this._color = value;
|
|
1723
|
+
this.colorChange.emit(value);
|
|
1724
|
+
this.onOptionChanged({ name: 'value', oldValue, newValue: value });
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* Predefined look schemes
|
|
1729
|
+
*/
|
|
1730
|
+
get look() {
|
|
1731
|
+
return this._look;
|
|
1732
|
+
}
|
|
1733
|
+
set look(value) {
|
|
1734
|
+
value = this._onOptionChanging({ name: 'look', value: value });
|
|
1735
|
+
const oldValue = this.look;
|
|
1736
|
+
if (value != oldValue) {
|
|
1737
|
+
this._look = value;
|
|
1738
|
+
this.lookChange.emit(value);
|
|
1739
|
+
this.onOptionChanged({ name: 'look', oldValue, newValue: value });
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
ngAfterContentInit() {
|
|
1743
|
+
this._bindEvents();
|
|
1744
|
+
this._bindProps();
|
|
1745
|
+
}
|
|
1746
|
+
_bindEvents() {
|
|
1747
|
+
(this._contentButtons || []).forEach(b => {
|
|
1748
|
+
b.onClick.subscribe(c => {
|
|
1749
|
+
this._handleClickEvent(c, b);
|
|
1750
|
+
});
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
_bindProps() {
|
|
1754
|
+
(this._contentButtons || []).forEach(b => {
|
|
1755
|
+
b.look = this.look;
|
|
1756
|
+
b.color = this.color;
|
|
1757
|
+
b.disabled = this.disabled;
|
|
1758
|
+
b.toggleable = false;
|
|
1759
|
+
});
|
|
1760
|
+
}
|
|
1761
|
+
onOptionChanged(options) {
|
|
1762
|
+
this._bindProps();
|
|
1763
|
+
}
|
|
1764
|
+
_handleClickEvent(e, button) {
|
|
1765
|
+
if (this.selection == 'multiple') {
|
|
1766
|
+
button.selected = !button.selected;
|
|
1767
|
+
}
|
|
1768
|
+
else if (this.selection == 'single') {
|
|
1769
|
+
this._contentButtons.forEach(c => {
|
|
1770
|
+
c.selected = false;
|
|
1771
|
+
});
|
|
1772
|
+
button.selected = true;
|
|
1773
|
+
}
|
|
1774
|
+
else {
|
|
1775
|
+
button.selected = false;
|
|
1776
|
+
}
|
|
1777
|
+
this.onItemClick.emit({
|
|
1778
|
+
component: this,
|
|
1779
|
+
htmlElement: e.htmlElement,
|
|
1780
|
+
item: button
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1556
1783
|
}
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
1784
|
+
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 });
|
|
1785
|
+
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 });
|
|
1786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonGroupComponent, decorators: [{
|
|
1560
1787
|
type: Component,
|
|
1561
|
-
args: [{
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1788
|
+
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>" }]
|
|
1789
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionChange: [{
|
|
1790
|
+
type: Output
|
|
1791
|
+
}], selection: [{
|
|
1792
|
+
type: Input
|
|
1793
|
+
}], colorChange: [{
|
|
1794
|
+
type: Output
|
|
1795
|
+
}], color: [{
|
|
1796
|
+
type: Input
|
|
1797
|
+
}], lookChange: [{
|
|
1798
|
+
type: Output
|
|
1799
|
+
}], look: [{
|
|
1800
|
+
type: Input
|
|
1801
|
+
}], onItemClick: [{
|
|
1802
|
+
type: Output
|
|
1803
|
+
}], _contentButtons: [{
|
|
1804
|
+
type: ContentChildren,
|
|
1805
|
+
args: [AXButtonComponent, { descendants: true }]
|
|
1806
|
+
}] } });
|
|
1567
1807
|
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
*
|
|
1571
|
-
* @category Components
|
|
1572
|
-
*/
|
|
1573
|
-
class AXAvatarComponent extends AXAvatarMixin {
|
|
1808
|
+
const AXBaseItemButtonMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
|
|
1809
|
+
class AXButtonItemComponent extends AXBaseItemButtonMixin {
|
|
1574
1810
|
/**
|
|
1575
1811
|
* @ignore
|
|
1576
1812
|
*/
|
|
1577
1813
|
constructor(elementRef, cdr) {
|
|
1578
1814
|
super(elementRef, cdr);
|
|
1579
|
-
this.
|
|
1815
|
+
this.text = null;
|
|
1816
|
+
this.tooltip = null;
|
|
1817
|
+
this.selected = false;
|
|
1818
|
+
this.seperated = false;
|
|
1819
|
+
this.color = 'light';
|
|
1820
|
+
}
|
|
1821
|
+
__hostClick(e) {
|
|
1822
|
+
this._emitOnClickEvent(e);
|
|
1580
1823
|
}
|
|
1581
1824
|
get __hostClass() {
|
|
1582
|
-
|
|
1825
|
+
const cssClasses = {
|
|
1826
|
+
'ax-button-icon': !this.text,
|
|
1827
|
+
'ax-state-disabled': this.disabled,
|
|
1828
|
+
'ax-state-selected': this.selected,
|
|
1829
|
+
};
|
|
1830
|
+
cssClasses[`ax-${this.color || 'primary'}-default`] = true;
|
|
1831
|
+
return Object.entries(cssClasses).filter(c => c[1]).map(c => c[0]).join(' ');
|
|
1583
1832
|
}
|
|
1584
1833
|
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1834
|
+
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 });
|
|
1835
|
+
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: `
|
|
1836
|
+
<ng-content select="ax-prefix">
|
|
1837
|
+
</ng-content>
|
|
1838
|
+
<ng-content select="ax-icon">
|
|
1839
|
+
</ng-content>
|
|
1840
|
+
<span *ngIf="text">{{text}}</span>
|
|
1841
|
+
<ng-content select="ax-suffix">
|
|
1842
|
+
</ng-content>
|
|
1843
|
+
`, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonItemComponent, decorators: [{
|
|
1588
1845
|
type: Component,
|
|
1589
|
-
args: [{
|
|
1846
|
+
args: [{
|
|
1847
|
+
selector: 'ax-button-item',
|
|
1848
|
+
template: `
|
|
1849
|
+
<ng-content select="ax-prefix">
|
|
1850
|
+
</ng-content>
|
|
1851
|
+
<ng-content select="ax-icon">
|
|
1852
|
+
</ng-content>
|
|
1853
|
+
<span *ngIf="text">{{text}}</span>
|
|
1854
|
+
<ng-content select="ax-suffix">
|
|
1855
|
+
</ng-content>
|
|
1856
|
+
`,
|
|
1857
|
+
encapsulation: ViewEncapsulation.None,
|
|
1858
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1859
|
+
}]
|
|
1590
1860
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
1591
1861
|
type: Input
|
|
1592
|
-
}],
|
|
1862
|
+
}], tooltip: [{
|
|
1593
1863
|
type: Input
|
|
1594
|
-
}],
|
|
1864
|
+
}], selected: [{
|
|
1595
1865
|
type: Input
|
|
1596
|
-
}],
|
|
1866
|
+
}], seperated: [{
|
|
1597
1867
|
type: Input
|
|
1598
|
-
}],
|
|
1868
|
+
}], name: [{
|
|
1869
|
+
type: Input
|
|
1870
|
+
}], data: [{
|
|
1871
|
+
type: Input
|
|
1872
|
+
}], color: [{
|
|
1599
1873
|
type: Input
|
|
1874
|
+
}], __hostClick: [{
|
|
1875
|
+
type: HostListener,
|
|
1876
|
+
args: ['click', ['$event']]
|
|
1600
1877
|
}], __hostClass: [{
|
|
1601
1878
|
type: HostBinding,
|
|
1602
1879
|
args: ['class']
|
|
1603
1880
|
}] } });
|
|
1604
1881
|
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1882
|
+
class AXDecoratorContentComponent extends AXBaseComponentMixin {
|
|
1883
|
+
constructor(elementRef, cdr) {
|
|
1884
|
+
super(elementRef, cdr);
|
|
1885
|
+
}
|
|
1608
1886
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1887
|
+
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 });
|
|
1888
|
+
AXDecoratorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorContentComponent, selector: "ax-content", usesInheritance: true, ngImport: i0, template: `
|
|
1889
|
+
<ng-content>
|
|
1890
|
+
</ng-content>
|
|
1891
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorContentComponent, decorators: [{
|
|
1893
|
+
type: Component,
|
|
1894
|
+
args: [{
|
|
1895
|
+
selector: 'ax-content',
|
|
1896
|
+
template: `
|
|
1897
|
+
<ng-content>
|
|
1898
|
+
</ng-content>
|
|
1899
|
+
`,
|
|
1900
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1901
|
+
encapsulation: ViewEncapsulation.None,
|
|
1902
|
+
}]
|
|
1903
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1904
|
+
|
|
1905
|
+
class AXDecoratorAddOnComponent extends AXBaseComponentMixin {
|
|
1906
|
+
constructor(_elementRef, _cdr) {
|
|
1907
|
+
super(_elementRef, _cdr);
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
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 });
|
|
1911
|
+
AXDecoratorAddOnComponent.ɵcmp = 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 });
|
|
1912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorAddOnComponent, decorators: [{
|
|
1913
|
+
type: Component,
|
|
1914
|
+
args: [{
|
|
1915
|
+
selector: 'ax-addon',
|
|
1916
|
+
template: `<ng-content></ng-content>`,
|
|
1917
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1918
|
+
encapsulation: ViewEncapsulation.None
|
|
1919
|
+
}]
|
|
1920
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1921
|
+
|
|
1922
|
+
class AXDecoratorHeaderComponent extends AXBaseComponentMixin {
|
|
1923
|
+
constructor(elementRef, cdr) {
|
|
1924
|
+
super(elementRef, cdr);
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
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 });
|
|
1928
|
+
AXDecoratorHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorHeaderComponent, selector: "ax-header", usesInheritance: true, ngImport: i0, template: `
|
|
1929
|
+
<ng-content>
|
|
1930
|
+
</ng-content>
|
|
1931
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, decorators: [{
|
|
1933
|
+
type: Component,
|
|
1934
|
+
args: [{
|
|
1935
|
+
selector: 'ax-header',
|
|
1936
|
+
template: `
|
|
1937
|
+
<ng-content>
|
|
1938
|
+
</ng-content>
|
|
1939
|
+
`,
|
|
1940
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1941
|
+
encapsulation: ViewEncapsulation.None,
|
|
1942
|
+
}]
|
|
1943
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1944
|
+
|
|
1945
|
+
class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
|
|
1946
|
+
constructor(elementRef, cdr) {
|
|
1947
|
+
super(elementRef, cdr);
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
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 });
|
|
1951
|
+
AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
|
|
1952
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
1953
|
+
</ng-content>
|
|
1954
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
|
|
1956
|
+
type: Component,
|
|
1957
|
+
args: [{
|
|
1958
|
+
selector: 'ax-prefix',
|
|
1959
|
+
template: `
|
|
1960
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
1961
|
+
</ng-content>
|
|
1962
|
+
`,
|
|
1963
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1964
|
+
encapsulation: ViewEncapsulation.None
|
|
1965
|
+
}]
|
|
1966
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1967
|
+
|
|
1968
|
+
class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
|
|
1969
|
+
constructor(elementRef, cdr) {
|
|
1970
|
+
super(elementRef, cdr);
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
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 });
|
|
1974
|
+
AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
|
|
1975
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
1976
|
+
</ng-content>
|
|
1977
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
|
|
1979
|
+
type: Component,
|
|
1980
|
+
args: [{
|
|
1981
|
+
selector: 'ax-suffix',
|
|
1982
|
+
template: `
|
|
1983
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
1984
|
+
</ng-content>
|
|
1985
|
+
`,
|
|
1986
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1987
|
+
encapsulation: ViewEncapsulation.None
|
|
1988
|
+
}]
|
|
1989
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1990
|
+
|
|
1991
|
+
const COMPONENT$n = [AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorAddOnComponent];
|
|
1992
|
+
const MODULES$n = [CommonModule];
|
|
1993
|
+
class AXEditorDecoratorModule {
|
|
1994
|
+
}
|
|
1995
|
+
AXEditorDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1996
|
+
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] });
|
|
1997
|
+
AXEditorDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, providers: [], imports: [[...MODULES$n]] });
|
|
1998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXEditorDecoratorModule, decorators: [{
|
|
1613
1999
|
type: NgModule,
|
|
1614
2000
|
args: [{
|
|
1615
|
-
declarations: [...COMPONENT$
|
|
1616
|
-
imports: [...MODULES$
|
|
1617
|
-
exports: [...COMPONENT$
|
|
2001
|
+
declarations: [...COMPONENT$n],
|
|
2002
|
+
imports: [...MODULES$n],
|
|
2003
|
+
exports: [...COMPONENT$n],
|
|
1618
2004
|
providers: [],
|
|
1619
2005
|
}]
|
|
1620
2006
|
}] });
|
|
1621
2007
|
|
|
1622
|
-
|
|
1623
|
-
class AXBadgeComponent extends AXBaseBadgeMixin {
|
|
2008
|
+
class AXIconComponent extends AXSizableComponentMixin {
|
|
1624
2009
|
constructor(elementRef, cdr) {
|
|
1625
2010
|
super(elementRef, cdr);
|
|
1626
|
-
this.text = '';
|
|
1627
|
-
//TODO: ax-badge
|
|
1628
2011
|
}
|
|
1629
|
-
get
|
|
1630
|
-
|
|
1631
|
-
return ['ax-badge', _class, !this.text ? 'ax-badge-icon' : ''].join(' ');
|
|
2012
|
+
get __iconClass() {
|
|
2013
|
+
return `ax-ic ${this.icon}`;
|
|
1632
2014
|
}
|
|
1633
2015
|
}
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2016
|
+
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 });
|
|
2017
|
+
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 });
|
|
2018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconComponent, decorators: [{
|
|
1637
2019
|
type: Component,
|
|
1638
|
-
args: [{
|
|
1639
|
-
|
|
2020
|
+
args: [{
|
|
2021
|
+
selector: 'ax-icon',
|
|
2022
|
+
template: '<ng-content select="i,svg,img"></ng-content>',
|
|
2023
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2024
|
+
encapsulation: ViewEncapsulation.None,
|
|
2025
|
+
}]
|
|
2026
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
|
|
1640
2027
|
type: Input
|
|
1641
|
-
}],
|
|
2028
|
+
}], __iconClass: [{
|
|
1642
2029
|
type: HostBinding,
|
|
1643
2030
|
args: ['class']
|
|
1644
2031
|
}] } });
|
|
1645
2032
|
|
|
1646
|
-
const COMPONENT$
|
|
1647
|
-
const MODULES$
|
|
1648
|
-
class
|
|
2033
|
+
const COMPONENT$m = [AXIconComponent];
|
|
2034
|
+
const MODULES$m = [CommonModule];
|
|
2035
|
+
class AXIconModule {
|
|
1649
2036
|
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2037
|
+
AXIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2038
|
+
AXIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, declarations: [AXIconComponent], imports: [CommonModule], exports: [AXIconComponent] });
|
|
2039
|
+
AXIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, providers: [], imports: [[...MODULES$m]] });
|
|
2040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXIconModule, decorators: [{
|
|
1654
2041
|
type: NgModule,
|
|
1655
2042
|
args: [{
|
|
1656
|
-
declarations: [...COMPONENT$
|
|
1657
|
-
imports: [...MODULES$
|
|
1658
|
-
exports: [...COMPONENT$
|
|
2043
|
+
declarations: [...COMPONENT$m],
|
|
2044
|
+
imports: [...MODULES$m],
|
|
2045
|
+
exports: [...COMPONENT$m],
|
|
1659
2046
|
providers: [],
|
|
1660
2047
|
}]
|
|
1661
2048
|
}] });
|
|
1662
2049
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, decorators: [{
|
|
1671
|
-
type: Component,
|
|
1672
|
-
args: [{ selector: 'ax-breadcrumbs', host: { class: 'ax-breadcrumbs' }, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" }]
|
|
1673
|
-
}], ctorParameters: function () { return []; } });
|
|
1674
|
-
|
|
1675
|
-
class AXBreadCrumbsItemComponent extends AXBaseComponent {
|
|
1676
|
-
constructor() {
|
|
1677
|
-
super();
|
|
1678
|
-
}
|
|
2050
|
+
const COMPONENT$l = [
|
|
2051
|
+
AXButtonComponent,
|
|
2052
|
+
AXButtonItemComponent,
|
|
2053
|
+
AXButtonGroupComponent,
|
|
2054
|
+
];
|
|
2055
|
+
const MODULES$l = [CommonModule, AXIconModule, AXEditorDecoratorModule];
|
|
2056
|
+
class AXButtonModule {
|
|
1679
2057
|
}
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
2058
|
+
AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2059
|
+
AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
|
|
2060
|
+
AXButtonItemComponent,
|
|
2061
|
+
AXButtonGroupComponent], imports: [CommonModule, AXIconModule, AXEditorDecoratorModule], exports: [AXButtonComponent,
|
|
2062
|
+
AXButtonItemComponent,
|
|
2063
|
+
AXButtonGroupComponent] });
|
|
2064
|
+
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$l]] });
|
|
2065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, decorators: [{
|
|
2066
|
+
type: NgModule,
|
|
2067
|
+
args: [{
|
|
2068
|
+
imports: [MODULES$l],
|
|
2069
|
+
exports: [COMPONENT$l],
|
|
2070
|
+
declarations: [COMPONENT$l],
|
|
2071
|
+
providers: [],
|
|
2072
|
+
}]
|
|
2073
|
+
}] });
|
|
1688
2074
|
|
|
1689
|
-
class
|
|
2075
|
+
class AXActionSheetModule {
|
|
1690
2076
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2077
|
+
AXActionSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2078
|
+
AXActionSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, declarations: [AXActionSheetComponent, AXActionSheetItemComponent], imports: [CommonModule, AXDrawerModule, AXButtonModule, BrowserAnimationsModule], exports: [AXActionSheetComponent, AXActionSheetItemComponent] });
|
|
2079
|
+
AXActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, providers: [], imports: [[CommonModule, AXDrawerModule, AXButtonModule, BrowserAnimationsModule]] });
|
|
2080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXActionSheetModule, decorators: [{
|
|
1695
2081
|
type: NgModule,
|
|
1696
2082
|
args: [{
|
|
1697
|
-
declarations: [
|
|
1698
|
-
imports: [CommonModule],
|
|
1699
|
-
exports: [
|
|
2083
|
+
declarations: [AXActionSheetComponent, AXActionSheetItemComponent],
|
|
2084
|
+
imports: [CommonModule, AXDrawerModule, AXButtonModule, BrowserAnimationsModule],
|
|
2085
|
+
exports: [AXActionSheetComponent, AXActionSheetItemComponent],
|
|
1700
2086
|
providers: [],
|
|
1701
2087
|
}]
|
|
1702
2088
|
}] });
|
|
1703
2089
|
|
|
2090
|
+
var _AXAlertComponent_visible;
|
|
2091
|
+
const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);
|
|
1704
2092
|
/**
|
|
1705
|
-
*
|
|
2093
|
+
* Regular description
|
|
1706
2094
|
*
|
|
1707
2095
|
* @category Components
|
|
1708
2096
|
*/
|
|
1709
|
-
class
|
|
2097
|
+
class AXAlertComponent extends AXBaseAlertMixin {
|
|
1710
2098
|
/**
|
|
1711
2099
|
* @ignore
|
|
1712
2100
|
*/
|
|
1713
2101
|
constructor(elementRef, cdr) {
|
|
1714
2102
|
super(elementRef, cdr);
|
|
2103
|
+
this.showIcon = true;
|
|
2104
|
+
_AXAlertComponent_visible.set(this, void 0);
|
|
1715
2105
|
}
|
|
1716
|
-
|
|
1717
|
-
if (
|
|
1718
|
-
this.
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
2106
|
+
_onOptionChanged(option) {
|
|
2107
|
+
if (option.name == 'color') {
|
|
2108
|
+
switch (this.color) {
|
|
2109
|
+
case 'success':
|
|
2110
|
+
this.icon = 'ax-ic ax-ic-check-filled';
|
|
2111
|
+
break;
|
|
2112
|
+
case 'warning':
|
|
2113
|
+
this.icon = 'ax-ic-warning-filled';
|
|
2114
|
+
break;
|
|
2115
|
+
case 'danger':
|
|
2116
|
+
this.icon = 'ax-ic-error-filled';
|
|
2117
|
+
break;
|
|
2118
|
+
default:
|
|
2119
|
+
this.icon = 'ax-ic ax-ic-info-filled';
|
|
2120
|
+
break;
|
|
2121
|
+
}
|
|
1726
2122
|
}
|
|
1727
|
-
super._emitOnClickEvent(e);
|
|
1728
|
-
}
|
|
1729
|
-
_emitOnFocusEvent(e) {
|
|
1730
|
-
super._emitOnFocusEvent(e);
|
|
1731
|
-
}
|
|
1732
|
-
_emitOnBlurEvent(e) {
|
|
1733
|
-
super._emitOnBlurEvent(e);
|
|
1734
2123
|
}
|
|
2124
|
+
/**
|
|
2125
|
+
* @ignore
|
|
2126
|
+
*/
|
|
1735
2127
|
get __hostClass() {
|
|
1736
|
-
return
|
|
1737
|
-
|
|
1738
|
-
}
|
|
1739
|
-
AXButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1740
|
-
AXButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXButtonComponent, selector: "ax-button", inputs: { disabled: "disabled", tabIndex: "tabIndex", size: "size", color: "color", look: "look", text: "text", submitBehavior: "submitBehavior", cancelBehavior: "cancelBehavior", toggleable: "toggleable", selected: "selected" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { attributes: { "role": "button" }, listeners: { "keyup": "onKeydownHandler($event)", "click": "_emitOnClickEvent($event)", "focus": "_emitOnFocusEvent($event)", "blur": "_emitOnBlurEvent($event)" }, properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<!-- <button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n </ng-content>\r\n <span *ngIf=\"text\">{{text}}</span>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-content select=\"ax-dropdown-panel\">\r\n </ng-content>\r\n</button> -->\r\n<!-- <button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"> -->\r\n<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<span *ngIf=\"text\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-dropdown-panel\">\r\n</ng-content>\r\n<!-- </button> -->", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonComponent, decorators: [{
|
|
1742
|
-
type: Component,
|
|
1743
|
-
args: [{ selector: 'ax-button', inputs: ['disabled', 'tabIndex', 'size', ...COLOR_LOOK_INPUTS, ...BUTTON_INPUTS], outputs: [...BUTTON_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { role: 'button' }, template: "<!-- <button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n </ng-content>\r\n <span *ngIf=\"text\">{{text}}</span>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n <ng-content select=\"ax-dropdown-panel\">\r\n </ng-content>\r\n</button> -->\r\n<!-- <button [ngClass]=\"_classes\" class=\"{{cssClass}} ax-{{size}}\" [disabled]=\"disabled\" [tabindex]=\"tabIndex\" [attr.style]=\"cssStyle\" (click)=\"_emitOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"> -->\r\n<ng-content select=\"ax-prefix,ax-loading,ax-icon\">\r\n</ng-content>\r\n<span *ngIf=\"text\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-dropdown-panel\">\r\n</ng-content>\r\n<!-- </button> -->" }]
|
|
1744
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onKeydownHandler: [{
|
|
1745
|
-
type: HostListener,
|
|
1746
|
-
args: ['keyup', ['$event']]
|
|
1747
|
-
}], _emitOnClickEvent: [{
|
|
1748
|
-
type: HostListener,
|
|
1749
|
-
args: ['click', ['$event']]
|
|
1750
|
-
}], _emitOnFocusEvent: [{
|
|
1751
|
-
type: HostListener,
|
|
1752
|
-
args: ['focus', ['$event']]
|
|
1753
|
-
}], _emitOnBlurEvent: [{
|
|
1754
|
-
type: HostListener,
|
|
1755
|
-
args: ['blur', ['$event']]
|
|
1756
|
-
}], __hostClass: [{
|
|
1757
|
-
type: HostBinding,
|
|
1758
|
-
args: ['class']
|
|
1759
|
-
}] } });
|
|
1760
|
-
|
|
1761
|
-
class AXButtonGroupComponent extends AXInteractiveComponenetMixin {
|
|
1762
|
-
constructor(elementRef, zone, cdr) {
|
|
1763
|
-
super(elementRef, cdr);
|
|
1764
|
-
this.zone = zone;
|
|
1765
|
-
this.selectionChange = new EventEmitter();
|
|
1766
|
-
this.colorChange = new EventEmitter();
|
|
1767
|
-
this._color = 'primary';
|
|
1768
|
-
this.lookChange = new EventEmitter();
|
|
1769
|
-
this._look = null;
|
|
1770
|
-
this.onItemClick = new EventEmitter();
|
|
1771
|
-
this.onValueChanged = new EventEmitter();
|
|
1772
|
-
}
|
|
1773
|
-
get selection() {
|
|
1774
|
-
return this._selection;
|
|
1775
|
-
}
|
|
1776
|
-
set selection(value) {
|
|
1777
|
-
value = this._onOptionChanging({ name: 'selection', value: value });
|
|
1778
|
-
const oldValue = this.selection;
|
|
1779
|
-
if (value != oldValue) {
|
|
1780
|
-
this._selection = value;
|
|
1781
|
-
this.selectionChange.emit(value);
|
|
1782
|
-
this.onOptionChanged({ name: 'selection', oldValue, newValue: value });
|
|
1783
|
-
}
|
|
2128
|
+
// return ` ax-alert ax-none ax-${this.color}-default ax-${this.look}-default`;
|
|
2129
|
+
const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
|
|
2130
|
+
return `ax-alert ax-none ${_class}`;
|
|
1784
2131
|
}
|
|
1785
2132
|
/**
|
|
1786
|
-
*
|
|
2133
|
+
* set the visibility of the Alert
|
|
1787
2134
|
*/
|
|
1788
|
-
get
|
|
1789
|
-
return this
|
|
2135
|
+
get visible() {
|
|
2136
|
+
return __classPrivateFieldGet(this, _AXAlertComponent_visible, "f");
|
|
1790
2137
|
}
|
|
1791
|
-
set
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
2138
|
+
set visible(v) {
|
|
2139
|
+
if (__classPrivateFieldGet(this, _AXAlertComponent_visible, "f") != v) {
|
|
2140
|
+
__classPrivateFieldSet(this, _AXAlertComponent_visible, v, "f");
|
|
2141
|
+
const host = this._getHostElement();
|
|
2142
|
+
if (v) {
|
|
2143
|
+
host.classList.remove('ax-state-hidden');
|
|
2144
|
+
host.classList.add('ax-state-visible');
|
|
2145
|
+
}
|
|
2146
|
+
else {
|
|
2147
|
+
host.classList.add('ax-state-hidden');
|
|
2148
|
+
host.classList.toggle('ax-state-visible');
|
|
2149
|
+
}
|
|
1798
2150
|
}
|
|
1799
2151
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1806
|
-
set look(value) {
|
|
1807
|
-
value = this._onOptionChanging({ name: 'look', value: value });
|
|
1808
|
-
const oldValue = this.look;
|
|
1809
|
-
if (value != oldValue) {
|
|
1810
|
-
this._look = value;
|
|
1811
|
-
this.lookChange.emit(value);
|
|
1812
|
-
this.onOptionChanged({ name: 'look', oldValue, newValue: value });
|
|
2152
|
+
onInit() {
|
|
2153
|
+
if (this.timeOut) {
|
|
2154
|
+
setTimeout(() => {
|
|
2155
|
+
this.dismiss();
|
|
2156
|
+
}, this.timeOut);
|
|
1813
2157
|
}
|
|
1814
2158
|
}
|
|
1815
|
-
|
|
1816
|
-
this.
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
_bindEvents() {
|
|
1820
|
-
(this._contentButtons || []).forEach(b => {
|
|
1821
|
-
b.onClick.subscribe(c => {
|
|
1822
|
-
this._handleClickEvent(c, b);
|
|
1823
|
-
});
|
|
1824
|
-
});
|
|
2159
|
+
onViewInit() {
|
|
2160
|
+
if (this.visible == undefined) {
|
|
2161
|
+
this.visible = true;
|
|
2162
|
+
}
|
|
1825
2163
|
}
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
2164
|
+
/**
|
|
2165
|
+
* Remove the alert from the container
|
|
2166
|
+
*/
|
|
2167
|
+
dismiss() {
|
|
2168
|
+
const host = this._getHostElement();
|
|
2169
|
+
this.visible = false;
|
|
2170
|
+
const func = () => {
|
|
2171
|
+
host.parentElement.removeChild(host);
|
|
2172
|
+
};
|
|
2173
|
+
host.addEventListener('transitionend', func);
|
|
1833
2174
|
}
|
|
1834
|
-
|
|
1835
|
-
|
|
2175
|
+
/**
|
|
2176
|
+
* Hide the alert
|
|
2177
|
+
*/
|
|
2178
|
+
hide() {
|
|
2179
|
+
this.visible = false;
|
|
1836
2180
|
}
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
this._contentButtons.forEach(c => {
|
|
1843
|
-
c.selected = false;
|
|
1844
|
-
});
|
|
1845
|
-
button.selected = true;
|
|
1846
|
-
}
|
|
1847
|
-
else {
|
|
1848
|
-
button.selected = false;
|
|
1849
|
-
}
|
|
1850
|
-
this.onItemClick.emit({
|
|
1851
|
-
component: this,
|
|
1852
|
-
htmlElement: e.htmlElement,
|
|
1853
|
-
item: button
|
|
1854
|
-
});
|
|
2181
|
+
/**
|
|
2182
|
+
* Show the alert
|
|
2183
|
+
*/
|
|
2184
|
+
show() {
|
|
2185
|
+
this.visible = true;
|
|
1855
2186
|
}
|
|
1856
2187
|
}
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
i0.ɵɵ
|
|
2188
|
+
_AXAlertComponent_visible = new WeakMap();
|
|
2189
|
+
AXAlertComponent.ɵfac = 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 });
|
|
2190
|
+
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 });
|
|
2191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
|
|
1860
2192
|
type: Component,
|
|
1861
|
-
args: [{ selector: 'ax-
|
|
1862
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.
|
|
1863
|
-
type: Output
|
|
1864
|
-
}], selection: [{
|
|
2193
|
+
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>" }]
|
|
2194
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
|
|
1865
2195
|
type: Input
|
|
1866
|
-
}],
|
|
1867
|
-
type: Output
|
|
1868
|
-
}], color: [{
|
|
2196
|
+
}], showIcon: [{
|
|
1869
2197
|
type: Input
|
|
1870
|
-
}],
|
|
1871
|
-
type:
|
|
1872
|
-
|
|
2198
|
+
}], __hostClass: [{
|
|
2199
|
+
type: HostBinding,
|
|
2200
|
+
args: ['class']
|
|
2201
|
+
}], timeOut: [{
|
|
2202
|
+
type: Input
|
|
2203
|
+
}], visible: [{
|
|
1873
2204
|
type: Input
|
|
1874
|
-
}], onItemClick: [{
|
|
1875
|
-
type: Output
|
|
1876
|
-
}], _contentButtons: [{
|
|
1877
|
-
type: ContentChildren,
|
|
1878
|
-
args: [AXButtonComponent, { descendants: true }]
|
|
1879
2205
|
}] } });
|
|
1880
2206
|
|
|
1881
|
-
|
|
1882
|
-
class AXButtonItemComponent extends AXBaseItemButtonMixin {
|
|
1883
|
-
/**
|
|
1884
|
-
* @ignore
|
|
1885
|
-
*/
|
|
1886
|
-
constructor(elementRef, cdr) {
|
|
1887
|
-
super(elementRef, cdr);
|
|
1888
|
-
this.text = null;
|
|
1889
|
-
this.tooltip = null;
|
|
1890
|
-
this.selected = false;
|
|
1891
|
-
this.seperated = false;
|
|
1892
|
-
this.color = 'light';
|
|
1893
|
-
}
|
|
1894
|
-
__hostClick(e) {
|
|
1895
|
-
this._emitOnClickEvent(e);
|
|
1896
|
-
}
|
|
1897
|
-
get __hostClass() {
|
|
1898
|
-
const cssClasses = {
|
|
1899
|
-
'ax-button-icon': !this.text,
|
|
1900
|
-
'ax-state-disabled': this.disabled,
|
|
1901
|
-
'ax-state-selected': this.selected,
|
|
1902
|
-
};
|
|
1903
|
-
cssClasses[`ax-${this.color || 'primary'}-default`] = true;
|
|
1904
|
-
return Object.entries(cssClasses).filter(c => c[1]).map(c => c[0]).join(' ');
|
|
1905
|
-
}
|
|
2207
|
+
class AXAlertTitleComponent {
|
|
1906
2208
|
}
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
<ng-content
|
|
1910
|
-
</ng-content>
|
|
1911
|
-
<ng-content select="ax-icon">
|
|
1912
|
-
</ng-content>
|
|
1913
|
-
<span *ngIf="text">{{text}}</span>
|
|
1914
|
-
<ng-content select="ax-suffix">
|
|
2209
|
+
AXAlertTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2210
|
+
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: `
|
|
2211
|
+
<ng-content>
|
|
1915
2212
|
</ng-content>
|
|
1916
|
-
`, isInline: true,
|
|
1917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2213
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, decorators: [{
|
|
1918
2215
|
type: Component,
|
|
1919
2216
|
args: [{
|
|
1920
|
-
selector: 'ax-
|
|
2217
|
+
selector: 'ax-alert-title',
|
|
1921
2218
|
template: `
|
|
1922
|
-
<ng-content
|
|
1923
|
-
</ng-content>
|
|
1924
|
-
<ng-content select="ax-icon">
|
|
1925
|
-
</ng-content>
|
|
1926
|
-
<span *ngIf="text">{{text}}</span>
|
|
1927
|
-
<ng-content select="ax-suffix">
|
|
2219
|
+
<ng-content>
|
|
1928
2220
|
</ng-content>
|
|
1929
2221
|
`,
|
|
1930
|
-
encapsulation: ViewEncapsulation.None,
|
|
1931
2222
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2223
|
+
encapsulation: ViewEncapsulation.None,
|
|
2224
|
+
host: { class: 'ax-alert-title' }
|
|
1932
2225
|
}]
|
|
1933
|
-
}]
|
|
1934
|
-
type: Input
|
|
1935
|
-
}], tooltip: [{
|
|
1936
|
-
type: Input
|
|
1937
|
-
}], selected: [{
|
|
1938
|
-
type: Input
|
|
1939
|
-
}], seperated: [{
|
|
1940
|
-
type: Input
|
|
1941
|
-
}], name: [{
|
|
1942
|
-
type: Input
|
|
1943
|
-
}], data: [{
|
|
1944
|
-
type: Input
|
|
1945
|
-
}], color: [{
|
|
1946
|
-
type: Input
|
|
1947
|
-
}], __hostClick: [{
|
|
1948
|
-
type: HostListener,
|
|
1949
|
-
args: ['click', ['$event']]
|
|
1950
|
-
}], __hostClass: [{
|
|
1951
|
-
type: HostBinding,
|
|
1952
|
-
args: ['class']
|
|
1953
|
-
}] } });
|
|
2226
|
+
}] });
|
|
1954
2227
|
|
|
1955
|
-
class
|
|
2228
|
+
class AXAlertButtonComponent extends AXBaseClickableMixin {
|
|
1956
2229
|
constructor(elementRef, cdr) {
|
|
1957
2230
|
super(elementRef, cdr);
|
|
1958
2231
|
}
|
|
2232
|
+
_handleOnClick(e) {
|
|
2233
|
+
this._emitOnClickEvent(e);
|
|
2234
|
+
}
|
|
2235
|
+
_handleOnFocus(e) {
|
|
2236
|
+
this._emitOnFocusEvent(e);
|
|
2237
|
+
}
|
|
2238
|
+
_handleOnBlur(e) {
|
|
2239
|
+
this._emitOnBlurEvent(e);
|
|
2240
|
+
}
|
|
1959
2241
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
2242
|
+
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 });
|
|
2243
|
+
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: `
|
|
2244
|
+
{{text}}
|
|
2245
|
+
<ng-content select="ax-icon"></ng-content>
|
|
1964
2246
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, decorators: [{
|
|
1966
2248
|
type: Component,
|
|
1967
2249
|
args: [{
|
|
1968
|
-
selector: 'ax-
|
|
2250
|
+
selector: 'ax-alert-button',
|
|
1969
2251
|
template: `
|
|
1970
|
-
|
|
1971
|
-
|
|
2252
|
+
{{text}}
|
|
2253
|
+
<ng-content select="ax-icon"></ng-content>
|
|
1972
2254
|
`,
|
|
1973
2255
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1974
2256
|
encapsulation: ViewEncapsulation.None,
|
|
2257
|
+
outputs: [...BUTTON_OUTPUT],
|
|
2258
|
+
host: { class: 'ax-alert-button' }
|
|
1975
2259
|
}]
|
|
1976
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1991
|
-
encapsulation: ViewEncapsulation.None
|
|
1992
|
-
}]
|
|
1993
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2260
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
2261
|
+
type: Input
|
|
2262
|
+
}], icon: [{
|
|
2263
|
+
type: Input
|
|
2264
|
+
}], _handleOnClick: [{
|
|
2265
|
+
type: HostListener,
|
|
2266
|
+
args: ['click', ['$event']]
|
|
2267
|
+
}], _handleOnFocus: [{
|
|
2268
|
+
type: HostListener,
|
|
2269
|
+
args: ['focus', ['$event']]
|
|
2270
|
+
}], _handleOnBlur: [{
|
|
2271
|
+
type: HostListener,
|
|
2272
|
+
args: ['blur', ['$event']]
|
|
2273
|
+
}] } });
|
|
1994
2274
|
|
|
1995
|
-
class
|
|
1996
|
-
constructor(elementRef, cdr) {
|
|
1997
|
-
super(elementRef, cdr);
|
|
1998
|
-
}
|
|
2275
|
+
class AXAlertContentComponent {
|
|
1999
2276
|
}
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
<ng-content>
|
|
2277
|
+
AXAlertContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2278
|
+
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>
|
|
2003
2279
|
</ng-content>
|
|
2004
2280
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, decorators: [{
|
|
2006
2282
|
type: Component,
|
|
2007
2283
|
args: [{
|
|
2008
|
-
selector: 'ax-
|
|
2009
|
-
template:
|
|
2010
|
-
<ng-content>
|
|
2284
|
+
selector: 'ax-alert-content',
|
|
2285
|
+
template: `<ng-content>
|
|
2011
2286
|
</ng-content>
|
|
2012
2287
|
`,
|
|
2013
2288
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2014
2289
|
encapsulation: ViewEncapsulation.None,
|
|
2290
|
+
host: { class: 'ax-alert-content' }
|
|
2015
2291
|
}]
|
|
2016
|
-
}]
|
|
2292
|
+
}] });
|
|
2017
2293
|
|
|
2018
|
-
class
|
|
2019
|
-
constructor(elementRef, cdr) {
|
|
2020
|
-
super(elementRef, cdr);
|
|
2021
|
-
}
|
|
2294
|
+
class AXAlertSuffixComponent {
|
|
2022
2295
|
}
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
<
|
|
2026
|
-
|
|
2296
|
+
AXAlertSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2297
|
+
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: `
|
|
2298
|
+
<div class="ax-alert-buttons">
|
|
2299
|
+
<ng-content select="ax-alert-button">
|
|
2300
|
+
</ng-content>
|
|
2301
|
+
</div>
|
|
2027
2302
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2028
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, decorators: [{
|
|
2029
2304
|
type: Component,
|
|
2030
2305
|
args: [{
|
|
2031
|
-
selector: 'ax-
|
|
2306
|
+
selector: 'ax-alert-suffix',
|
|
2032
2307
|
template: `
|
|
2033
|
-
<
|
|
2034
|
-
|
|
2308
|
+
<div class="ax-alert-buttons">
|
|
2309
|
+
<ng-content select="ax-alert-button">
|
|
2310
|
+
</ng-content>
|
|
2311
|
+
</div>
|
|
2035
2312
|
`,
|
|
2036
2313
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2037
|
-
encapsulation: ViewEncapsulation.None
|
|
2314
|
+
encapsulation: ViewEncapsulation.None,
|
|
2315
|
+
host: { class: 'ax-alert-suffix' }
|
|
2038
2316
|
}]
|
|
2039
|
-
}]
|
|
2317
|
+
}] });
|
|
2040
2318
|
|
|
2041
|
-
class
|
|
2042
|
-
constructor(elementRef, cdr) {
|
|
2043
|
-
super(elementRef, cdr);
|
|
2044
|
-
}
|
|
2319
|
+
class AXAlertFooterComponent {
|
|
2045
2320
|
}
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
<
|
|
2049
|
-
|
|
2321
|
+
AXAlertFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2322
|
+
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: `
|
|
2323
|
+
<div class="ax-alert-buttons">
|
|
2324
|
+
<ng-content select="ax-alert-button">
|
|
2325
|
+
</ng-content>
|
|
2326
|
+
</div>
|
|
2050
2327
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, decorators: [{
|
|
2052
2329
|
type: Component,
|
|
2053
2330
|
args: [{
|
|
2054
|
-
selector: 'ax-
|
|
2331
|
+
selector: 'ax-alert-footer',
|
|
2055
2332
|
template: `
|
|
2056
|
-
<
|
|
2057
|
-
|
|
2333
|
+
<div class="ax-alert-buttons">
|
|
2334
|
+
<ng-content select="ax-alert-button">
|
|
2335
|
+
</ng-content>
|
|
2336
|
+
</div>
|
|
2058
2337
|
`,
|
|
2059
2338
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2060
|
-
encapsulation: ViewEncapsulation.None
|
|
2339
|
+
encapsulation: ViewEncapsulation.None,
|
|
2340
|
+
host: { class: 'ax-alert-footer' }
|
|
2061
2341
|
}]
|
|
2062
|
-
}]
|
|
2342
|
+
}] });
|
|
2063
2343
|
|
|
2064
|
-
const COMPONENT$k = [
|
|
2065
|
-
|
|
2066
|
-
|
|
2344
|
+
const COMPONENT$k = [
|
|
2345
|
+
AXAlertComponent,
|
|
2346
|
+
AXAlertContentComponent,
|
|
2347
|
+
AXAlertTitleComponent,
|
|
2348
|
+
AXAlertButtonComponent,
|
|
2349
|
+
AXAlertFooterComponent,
|
|
2350
|
+
AXAlertSuffixComponent
|
|
2351
|
+
];
|
|
2352
|
+
const MODULES$k = [CommonModule, AXIconModule];
|
|
2353
|
+
class AXAlertModule {
|
|
2067
2354
|
}
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2355
|
+
AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2356
|
+
AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
|
|
2357
|
+
AXAlertContentComponent,
|
|
2358
|
+
AXAlertTitleComponent,
|
|
2359
|
+
AXAlertButtonComponent,
|
|
2360
|
+
AXAlertFooterComponent,
|
|
2361
|
+
AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
|
|
2362
|
+
AXAlertContentComponent,
|
|
2363
|
+
AXAlertTitleComponent,
|
|
2364
|
+
AXAlertButtonComponent,
|
|
2365
|
+
AXAlertFooterComponent,
|
|
2366
|
+
AXAlertSuffixComponent] });
|
|
2367
|
+
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$k]] });
|
|
2368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
|
|
2072
2369
|
type: NgModule,
|
|
2073
2370
|
args: [{
|
|
2074
2371
|
declarations: [...COMPONENT$k],
|
|
@@ -2078,40 +2375,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2078
2375
|
}]
|
|
2079
2376
|
}] });
|
|
2080
2377
|
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
AXButtonGroupComponent,
|
|
2085
|
-
];
|
|
2086
|
-
const MODULES$j = [CommonModule, AXIconModule, AXEditorDecoratorModule];
|
|
2087
|
-
class AXButtonModule {
|
|
2378
|
+
class AXAvatarGroup {
|
|
2379
|
+
constructor() { }
|
|
2380
|
+
ngOnInit() { }
|
|
2088
2381
|
}
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2382
|
+
AXAvatarGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2383
|
+
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 });
|
|
2384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarGroup, decorators: [{
|
|
2385
|
+
type: Component,
|
|
2386
|
+
args: [{
|
|
2387
|
+
selector: 'ax-avatar-group',
|
|
2388
|
+
template: `<ng-content select='ax-avatar'></ng-content>`,
|
|
2389
|
+
host: { class: 'ax-avatar-group' }
|
|
2390
|
+
}]
|
|
2391
|
+
}], ctorParameters: function () { return []; } });
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
2395
|
+
*
|
|
2396
|
+
* @category Components
|
|
2397
|
+
*/
|
|
2398
|
+
class AXAvatarComponent extends AXAvatarMixin {
|
|
2399
|
+
/**
|
|
2400
|
+
* @ignore
|
|
2401
|
+
*/
|
|
2402
|
+
constructor(elementRef, cdr) {
|
|
2403
|
+
super(elementRef, cdr);
|
|
2404
|
+
this.type = 'default';
|
|
2405
|
+
}
|
|
2406
|
+
get __hostClass() {
|
|
2407
|
+
return `ax-${this.color}-default`;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
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 });
|
|
2411
|
+
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 });
|
|
2412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarComponent, decorators: [{
|
|
2413
|
+
type: Component,
|
|
2414
|
+
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>" }]
|
|
2415
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
2416
|
+
type: Input
|
|
2417
|
+
}], icon: [{
|
|
2418
|
+
type: Input
|
|
2419
|
+
}], src: [{
|
|
2420
|
+
type: Input
|
|
2421
|
+
}], class: [{
|
|
2422
|
+
type: Input
|
|
2423
|
+
}], type: [{
|
|
2424
|
+
type: Input
|
|
2425
|
+
}], __hostClass: [{
|
|
2426
|
+
type: HostBinding,
|
|
2427
|
+
args: ['class']
|
|
2428
|
+
}] } });
|
|
2429
|
+
|
|
2430
|
+
const COMPONENT$j = [AXAvatarComponent, AXAvatarGroup];
|
|
2431
|
+
const MODULES$j = [CommonModule];
|
|
2432
|
+
class AXAvatarModule {
|
|
2433
|
+
}
|
|
2434
|
+
AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2435
|
+
AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
|
|
2436
|
+
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$j]] });
|
|
2437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, decorators: [{
|
|
2097
2438
|
type: NgModule,
|
|
2098
2439
|
args: [{
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2440
|
+
declarations: [...COMPONENT$j],
|
|
2441
|
+
imports: [...MODULES$j],
|
|
2442
|
+
exports: [...COMPONENT$j],
|
|
2102
2443
|
providers: [],
|
|
2103
2444
|
}]
|
|
2104
2445
|
}] });
|
|
2105
2446
|
|
|
2106
|
-
|
|
2447
|
+
const AXBaseBadgeMixin = _ColorLookComponentMixin(AXBaseComponent);
|
|
2448
|
+
class AXBadgeComponent extends AXBaseBadgeMixin {
|
|
2107
2449
|
constructor(elementRef, cdr) {
|
|
2108
2450
|
super(elementRef, cdr);
|
|
2109
|
-
this.
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2451
|
+
this.text = '';
|
|
2452
|
+
//TODO: ax-badge
|
|
2453
|
+
}
|
|
2454
|
+
get __hostClass() {
|
|
2455
|
+
const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
|
|
2456
|
+
return ['ax-badge', _class, !this.text ? 'ax-badge-icon' : ''].join(' ');
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
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 });
|
|
2460
|
+
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 });
|
|
2461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeComponent, decorators: [{
|
|
2462
|
+
type: Component,
|
|
2463
|
+
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>" }]
|
|
2464
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
2465
|
+
type: Input
|
|
2466
|
+
}], __hostClass: [{
|
|
2467
|
+
type: HostBinding,
|
|
2468
|
+
args: ['class']
|
|
2469
|
+
}] } });
|
|
2470
|
+
|
|
2471
|
+
const COMPONENT$i = [AXBadgeComponent];
|
|
2472
|
+
const MODULES$i = [CommonModule];
|
|
2473
|
+
class AXBadgeModule {
|
|
2474
|
+
}
|
|
2475
|
+
AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2476
|
+
AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
|
|
2477
|
+
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$i]] });
|
|
2478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, decorators: [{
|
|
2479
|
+
type: NgModule,
|
|
2480
|
+
args: [{
|
|
2481
|
+
declarations: [...COMPONENT$i],
|
|
2482
|
+
imports: [...MODULES$i],
|
|
2483
|
+
exports: [...COMPONENT$i],
|
|
2484
|
+
providers: [],
|
|
2485
|
+
}]
|
|
2486
|
+
}] });
|
|
2487
|
+
|
|
2488
|
+
class AXBreadCrumbsComponent extends AXBaseComponent {
|
|
2489
|
+
constructor() {
|
|
2490
|
+
super();
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
AXBreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2494
|
+
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>" });
|
|
2495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsComponent, decorators: [{
|
|
2496
|
+
type: Component,
|
|
2497
|
+
args: [{ selector: 'ax-breadcrumbs', host: { class: 'ax-breadcrumbs' }, template: "<ng-content select=\"ax-breadcrumbs-item\"></ng-content>" }]
|
|
2498
|
+
}], ctorParameters: function () { return []; } });
|
|
2499
|
+
|
|
2500
|
+
class AXBreadCrumbsItemComponent extends AXBaseComponent {
|
|
2501
|
+
constructor() {
|
|
2502
|
+
super();
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
AXBreadCrumbsItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2506
|
+
AXBreadCrumbsItemComponent.ɵcmp = 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>" });
|
|
2507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadCrumbsItemComponent, decorators: [{
|
|
2508
|
+
type: Component,
|
|
2509
|
+
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>" }]
|
|
2510
|
+
}], ctorParameters: function () { return []; }, propDecorators: { text: [{
|
|
2511
|
+
type: Input
|
|
2512
|
+
}] } });
|
|
2513
|
+
|
|
2514
|
+
class AXBreadcrumbsModule {
|
|
2515
|
+
}
|
|
2516
|
+
AXBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2517
|
+
AXBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent], imports: [CommonModule], exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent] });
|
|
2518
|
+
AXBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, providers: [], imports: [[CommonModule]] });
|
|
2519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBreadcrumbsModule, decorators: [{
|
|
2520
|
+
type: NgModule,
|
|
2521
|
+
args: [{
|
|
2522
|
+
declarations: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
|
|
2523
|
+
imports: [CommonModule],
|
|
2524
|
+
exports: [AXBreadCrumbsComponent, AXBreadCrumbsItemComponent],
|
|
2525
|
+
providers: [],
|
|
2526
|
+
}]
|
|
2527
|
+
}] });
|
|
2528
|
+
|
|
2529
|
+
class AXCalendarBaseComponent extends AXBaseComponent {
|
|
2530
|
+
constructor(elementRef, cdr) {
|
|
2531
|
+
super(elementRef, cdr);
|
|
2532
|
+
this.activeViewChange = new EventEmitter();
|
|
2533
|
+
this._activeView = 'days';
|
|
2534
|
+
this.typeChange = new EventEmitter();
|
|
2535
|
+
this._type = AXConfig.get(`dateTime.calendar`);
|
|
2536
|
+
this.depthChange = new EventEmitter();
|
|
2537
|
+
this._depth = 'days';
|
|
2115
2538
|
this.minChange = new EventEmitter();
|
|
2116
2539
|
this.maxChange = new EventEmitter();
|
|
2117
2540
|
this.disabledDatesChange = new EventEmitter();
|
|
@@ -2462,19 +2885,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2462
2885
|
args: ['class']
|
|
2463
2886
|
}] } });
|
|
2464
2887
|
|
|
2465
|
-
const COMPONENT$
|
|
2466
|
-
const MODULES$
|
|
2888
|
+
const COMPONENT$h = [AXCalendarComponent];
|
|
2889
|
+
const MODULES$h = [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule];
|
|
2467
2890
|
class AXCalendarModule {
|
|
2468
2891
|
}
|
|
2469
2892
|
AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2470
2893
|
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXIconModule, AXEditorDecoratorModule, AXDateTimeModule], exports: [AXCalendarComponent] });
|
|
2471
|
-
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$
|
|
2894
|
+
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
|
|
2472
2895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, decorators: [{
|
|
2473
2896
|
type: NgModule,
|
|
2474
2897
|
args: [{
|
|
2475
|
-
declarations: [...COMPONENT$
|
|
2476
|
-
imports: [...MODULES$
|
|
2477
|
-
exports: [...COMPONENT$
|
|
2898
|
+
declarations: [...COMPONENT$h],
|
|
2899
|
+
imports: [...MODULES$h],
|
|
2900
|
+
exports: [...COMPONENT$h],
|
|
2478
2901
|
providers: [],
|
|
2479
2902
|
}]
|
|
2480
2903
|
}] });
|
|
@@ -2936,19 +3359,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2936
3359
|
}]
|
|
2937
3360
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
|
|
2938
3361
|
|
|
2939
|
-
const COMPONENT$
|
|
2940
|
-
const MODULES$
|
|
3362
|
+
const COMPONENT$g = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
|
|
3363
|
+
const MODULES$g = [CommonModule];
|
|
2941
3364
|
class AXCarouselModule {
|
|
2942
3365
|
}
|
|
2943
3366
|
AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2944
3367
|
AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
|
|
2945
|
-
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$
|
|
3368
|
+
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$g]] });
|
|
2946
3369
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, decorators: [{
|
|
2947
3370
|
type: NgModule,
|
|
2948
3371
|
args: [{
|
|
2949
|
-
declarations: [...COMPONENT$
|
|
2950
|
-
imports: [...MODULES$
|
|
2951
|
-
exports: [...COMPONENT$
|
|
3372
|
+
declarations: [...COMPONENT$g],
|
|
3373
|
+
imports: [...MODULES$g],
|
|
3374
|
+
exports: [...COMPONENT$g],
|
|
2952
3375
|
providers: [],
|
|
2953
3376
|
}]
|
|
2954
3377
|
}] });
|
|
@@ -3325,8 +3748,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3325
3748
|
args: ['axIsLoading']
|
|
3326
3749
|
}] } });
|
|
3327
3750
|
|
|
3328
|
-
const COMPONENT$
|
|
3329
|
-
const MODULES$
|
|
3751
|
+
const COMPONENT$f = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
3752
|
+
const MODULES$f = [CommonModule, OverlayModule, PortalModule];
|
|
3330
3753
|
class AXLoadingModule {
|
|
3331
3754
|
constructor() {
|
|
3332
3755
|
AXConfig.set({
|
|
@@ -3340,13 +3763,13 @@ class AXLoadingModule {
|
|
|
3340
3763
|
}
|
|
3341
3764
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3342
3765
|
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
3343
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$
|
|
3766
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$f]] });
|
|
3344
3767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
3345
3768
|
type: NgModule,
|
|
3346
3769
|
args: [{
|
|
3347
|
-
declarations: [...COMPONENT$
|
|
3348
|
-
imports: [...MODULES$
|
|
3349
|
-
exports: [...COMPONENT$
|
|
3770
|
+
declarations: [...COMPONENT$f],
|
|
3771
|
+
imports: [...MODULES$f],
|
|
3772
|
+
exports: [...COMPONENT$f],
|
|
3350
3773
|
providers: [],
|
|
3351
3774
|
}]
|
|
3352
3775
|
}], ctorParameters: function () { return []; } });
|
|
@@ -3624,19 +4047,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3624
4047
|
}]
|
|
3625
4048
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: AXOverlayService }]; } });
|
|
3626
4049
|
|
|
3627
|
-
const COMPONENT$
|
|
3628
|
-
const MODULES$
|
|
4050
|
+
const COMPONENT$e = [AXDataListComponent];
|
|
4051
|
+
const MODULES$e = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
|
|
3629
4052
|
class AXDataListModule {
|
|
3630
4053
|
}
|
|
3631
4054
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3632
4055
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule], exports: [AXDataListComponent] });
|
|
3633
|
-
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$
|
|
4056
|
+
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$e]] });
|
|
3634
4057
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
3635
4058
|
type: NgModule,
|
|
3636
4059
|
args: [{
|
|
3637
|
-
declarations: [...COMPONENT$
|
|
3638
|
-
imports: [...MODULES$
|
|
3639
|
-
exports: [...COMPONENT$
|
|
4060
|
+
declarations: [...COMPONENT$e],
|
|
4061
|
+
imports: [...MODULES$e],
|
|
4062
|
+
exports: [...COMPONENT$e],
|
|
3640
4063
|
providers: [],
|
|
3641
4064
|
}]
|
|
3642
4065
|
}] });
|
|
@@ -4080,8 +4503,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4080
4503
|
}]
|
|
4081
4504
|
}] });
|
|
4082
4505
|
|
|
4083
|
-
const COMPONENT$
|
|
4084
|
-
const MODULES$
|
|
4506
|
+
const COMPONENT$d = [AXDatePickerComponent];
|
|
4507
|
+
const MODULES$d = [
|
|
4085
4508
|
CommonModule,
|
|
4086
4509
|
AXCalendarModule,
|
|
4087
4510
|
AXTextBoxModule,
|
|
@@ -4104,13 +4527,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
4104
4527
|
AXIconModule,
|
|
4105
4528
|
AXDateTimeModule,
|
|
4106
4529
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
4107
|
-
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$
|
|
4530
|
+
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$d]] });
|
|
4108
4531
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
4109
4532
|
type: NgModule,
|
|
4110
4533
|
args: [{
|
|
4111
|
-
declarations: [...COMPONENT$
|
|
4112
|
-
imports: [...MODULES$
|
|
4113
|
-
exports: [...COMPONENT$
|
|
4534
|
+
declarations: [...COMPONENT$d],
|
|
4535
|
+
imports: [...MODULES$d],
|
|
4536
|
+
exports: [...COMPONENT$d],
|
|
4114
4537
|
providers: [],
|
|
4115
4538
|
}]
|
|
4116
4539
|
}] });
|
|
@@ -4320,470 +4743,181 @@ class AXPageComponent extends AXBaseComponentMixin {
|
|
|
4320
4743
|
this._loadingId = null;
|
|
4321
4744
|
}
|
|
4322
4745
|
if (v) {
|
|
4323
|
-
this._loadingId = this._loadingService.show(this._getHostElement());
|
|
4324
|
-
}
|
|
4325
|
-
this._cdr.markForCheck();
|
|
4326
|
-
}
|
|
4327
|
-
});
|
|
4328
|
-
}
|
|
4329
|
-
}
|
|
4330
|
-
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 });
|
|
4331
|
-
AXPageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageComponent });
|
|
4332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageComponent, decorators: [{
|
|
4333
|
-
type: Injectable
|
|
4334
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4335
|
-
type: Inject,
|
|
4336
|
-
args: [AXLoadingService]
|
|
4337
|
-
}] }]; }, propDecorators: { isLoadingChange: [{
|
|
4338
|
-
type: Output
|
|
4339
|
-
}], isLoading: [{
|
|
4340
|
-
type: Input
|
|
4341
|
-
}] } });
|
|
4342
|
-
|
|
4343
|
-
class AXPageFooterComponent {
|
|
4344
|
-
}
|
|
4345
|
-
AXPageFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4346
|
-
AXPageFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPageFooterComponent, selector: "ax-page-footer", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
|
|
4347
|
-
<ng-content select="ax-prefix">
|
|
4348
|
-
</ng-content>
|
|
4349
|
-
<ng-content select="ax-suffix">
|
|
4350
|
-
</ng-content>
|
|
4351
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageFooterComponent, decorators: [{
|
|
4353
|
-
type: Component,
|
|
4354
|
-
args: [{
|
|
4355
|
-
selector: 'ax-page-footer',
|
|
4356
|
-
template: `
|
|
4357
|
-
<ng-content select="ax-prefix">
|
|
4358
|
-
</ng-content>
|
|
4359
|
-
<ng-content select="ax-suffix">
|
|
4360
|
-
</ng-content>
|
|
4361
|
-
`,
|
|
4362
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4363
|
-
}]
|
|
4364
|
-
}], propDecorators: { template: [{
|
|
4365
|
-
type: ViewChild,
|
|
4366
|
-
args: [TemplateRef, { static: true }]
|
|
4367
|
-
}] } });
|
|
4368
|
-
|
|
4369
|
-
const TAB_META_KEY = '__meta__';
|
|
4370
|
-
class AXPageCloseEvent extends AXEvent {
|
|
4371
|
-
}
|
|
4372
|
-
class AXPageClosing {
|
|
4373
|
-
constructor() {
|
|
4374
|
-
this.cancel = false;
|
|
4375
|
-
}
|
|
4376
|
-
}
|
|
4377
|
-
class AXPageResult {
|
|
4378
|
-
}
|
|
4379
|
-
/**
|
|
4380
|
-
* Defines a CSS class—or multiple classes separated by spaces— which are applied to a span element inside the Button. Allows the usage of custom icons after the primary text.
|
|
4381
|
-
*/
|
|
4382
|
-
class AXPageClosedPromise extends Promise {
|
|
4383
|
-
constructor(executor) {
|
|
4384
|
-
super(executor);
|
|
4385
|
-
}
|
|
4386
|
-
close() {
|
|
4387
|
-
if (this.closeMethod) {
|
|
4388
|
-
this.closeMethod();
|
|
4389
|
-
}
|
|
4390
|
-
}
|
|
4391
|
-
}
|
|
4392
|
-
class AXBasePageComponent extends AXBaseComponentMixin {
|
|
4393
|
-
/**
|
|
4394
|
-
* @ignore
|
|
4395
|
-
*/
|
|
4396
|
-
constructor(elementRef, cdr) {
|
|
4397
|
-
super(elementRef, cdr);
|
|
4398
|
-
this.isLoadingChange = new EventEmitter();
|
|
4399
|
-
this._isLoading = false;
|
|
4400
|
-
this._isPopup = false;
|
|
4401
|
-
this.onClosed = new EventEmitter();
|
|
4402
|
-
}
|
|
4403
|
-
get isLoading() {
|
|
4404
|
-
return this._isLoading;
|
|
4405
|
-
}
|
|
4406
|
-
set isLoading(v) {
|
|
4407
|
-
this._setOption({
|
|
4408
|
-
name: 'isLoading',
|
|
4409
|
-
value: v,
|
|
4410
|
-
afterCallback: () => {
|
|
4411
|
-
if (this.pageContainer) {
|
|
4412
|
-
this.pageContainer.isLoading = this.isLoading;
|
|
4413
|
-
}
|
|
4414
|
-
this._cdr.markForCheck();
|
|
4415
|
-
}
|
|
4416
|
-
});
|
|
4417
|
-
}
|
|
4418
|
-
get isPopup() {
|
|
4419
|
-
return this._isPopup;
|
|
4420
|
-
}
|
|
4421
|
-
close(data) {
|
|
4422
|
-
this.onClosed.emit({
|
|
4423
|
-
component: this,
|
|
4424
|
-
data: data
|
|
4425
|
-
});
|
|
4426
|
-
}
|
|
4427
|
-
onClosing(e) {
|
|
4428
|
-
}
|
|
4429
|
-
ngOnDestroy() {
|
|
4430
|
-
this.onClosed.unsubscribe();
|
|
4431
|
-
}
|
|
4432
|
-
}
|
|
4433
|
-
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 });
|
|
4434
|
-
AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent });
|
|
4435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, decorators: [{
|
|
4436
|
-
type: Injectable
|
|
4437
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { pageContainer: [{
|
|
4438
|
-
type: ViewChild,
|
|
4439
|
-
args: [AXPageComponent, { static: true }]
|
|
4440
|
-
}], footer: [{
|
|
4441
|
-
type: ViewChild,
|
|
4442
|
-
args: [AXPageFooterComponent, { static: true }]
|
|
4443
|
-
}], isLoadingChange: [{
|
|
4444
|
-
type: Output
|
|
4445
|
-
}], isLoading: [{
|
|
4446
|
-
type: Input
|
|
4447
|
-
}] } });
|
|
4448
|
-
|
|
4449
|
-
class AXPageHeaderComponent {
|
|
4450
|
-
}
|
|
4451
|
-
AXPageHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4452
|
-
AXPageHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPageHeaderComponent, selector: "ax-page-header", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
|
|
4453
|
-
<ng-content select="ax-prefix">
|
|
4454
|
-
</ng-content>
|
|
4455
|
-
<ng-content select="ax-suffix">
|
|
4456
|
-
</ng-content>
|
|
4457
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageHeaderComponent, decorators: [{
|
|
4459
|
-
type: Component,
|
|
4460
|
-
args: [{
|
|
4461
|
-
selector: 'ax-page-header',
|
|
4462
|
-
template: `
|
|
4463
|
-
<ng-content select="ax-prefix">
|
|
4464
|
-
</ng-content>
|
|
4465
|
-
<ng-content select="ax-suffix">
|
|
4466
|
-
</ng-content>
|
|
4467
|
-
`,
|
|
4468
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4469
|
-
}]
|
|
4470
|
-
}], propDecorators: { template: [{
|
|
4471
|
-
type: ViewChild,
|
|
4472
|
-
args: [TemplateRef, { static: true }]
|
|
4473
|
-
}] } });
|
|
4474
|
-
|
|
4475
|
-
class AXPageModule {
|
|
4476
|
-
}
|
|
4477
|
-
AXPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4478
|
-
AXPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, declarations: [AXPageFooterComponent, AXPageHeaderComponent], exports: [AXPageFooterComponent, AXPageHeaderComponent] });
|
|
4479
|
-
AXPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, providers: [], imports: [[]] });
|
|
4480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, decorators: [{
|
|
4481
|
-
type: NgModule,
|
|
4482
|
-
args: [{
|
|
4483
|
-
imports: [],
|
|
4484
|
-
exports: [AXPageFooterComponent, AXPageHeaderComponent],
|
|
4485
|
-
declarations: [AXPageFooterComponent, AXPageHeaderComponent],
|
|
4486
|
-
providers: [],
|
|
4487
|
-
}]
|
|
4488
|
-
}] });
|
|
4489
|
-
|
|
4490
|
-
const COMPONENT$d = [AXDialogComponent];
|
|
4491
|
-
const MODULES$d = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
|
|
4492
|
-
class AXDialogModule {
|
|
4493
|
-
}
|
|
4494
|
-
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4495
|
-
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] });
|
|
4496
|
-
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$d]] });
|
|
4497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
4498
|
-
type: NgModule,
|
|
4499
|
-
args: [{
|
|
4500
|
-
declarations: [...COMPONENT$d],
|
|
4501
|
-
imports: [...MODULES$d],
|
|
4502
|
-
exports: [...COMPONENT$d],
|
|
4503
|
-
providers: [],
|
|
4504
|
-
}]
|
|
4505
|
-
}] });
|
|
4506
|
-
|
|
4507
|
-
class AXDrawerComponent extends AXBaseComponentMixin {
|
|
4508
|
-
constructor(elementRef, cdr, zone) {
|
|
4509
|
-
super(elementRef, cdr);
|
|
4510
|
-
this.elementRef = elementRef;
|
|
4511
|
-
this.zone = zone;
|
|
4512
|
-
this.onChanged = new EventEmitter();
|
|
4513
|
-
this.mode = 'push';
|
|
4514
|
-
this.location = 'start';
|
|
4515
|
-
this._collapsed = false;
|
|
4516
|
-
}
|
|
4517
|
-
get collapsed() {
|
|
4518
|
-
return this._collapsed;
|
|
4519
|
-
}
|
|
4520
|
-
set collapsed(v) {
|
|
4521
|
-
if (v != this._collapsed) {
|
|
4522
|
-
this._collapsed = v;
|
|
4523
|
-
this._updateClass();
|
|
4524
|
-
this._emitChange();
|
|
4525
|
-
}
|
|
4526
|
-
}
|
|
4527
|
-
onInit() {
|
|
4528
|
-
// this._getHostElement().classList.add(this.location == 'start' ? 'ax-drawer-start' : 'ax-drawer-end');
|
|
4529
|
-
this._setLocation();
|
|
4530
|
-
this._currentMode = this.mode;
|
|
4531
|
-
}
|
|
4532
|
-
_setLocation() {
|
|
4533
|
-
const hostElementClassList = this._getHostElement().classList;
|
|
4534
|
-
switch (this.location) {
|
|
4535
|
-
case 'start':
|
|
4536
|
-
hostElementClassList.add('ax-drawer-start');
|
|
4537
|
-
break;
|
|
4538
|
-
case 'end':
|
|
4539
|
-
hostElementClassList.add('ax-drawer-end');
|
|
4540
|
-
break;
|
|
4541
|
-
case 'top':
|
|
4542
|
-
hostElementClassList.add('ax-drawer-top');
|
|
4543
|
-
break;
|
|
4544
|
-
case 'bottom':
|
|
4545
|
-
hostElementClassList.add('ax-drawer-bottom');
|
|
4546
|
-
break;
|
|
4547
|
-
default:
|
|
4548
|
-
hostElementClassList.add('ax-drawer-start');
|
|
4549
|
-
break;
|
|
4550
|
-
}
|
|
4551
|
-
}
|
|
4552
|
-
_updateClass() {
|
|
4553
|
-
this.zone.runOutsideAngular(() => {
|
|
4554
|
-
const elm = this._getHostElement();
|
|
4555
|
-
//
|
|
4556
|
-
this._currentMode == 'overlay' ? this._setOverlayMode() : this._setPushMode();
|
|
4557
|
-
//
|
|
4558
|
-
if (this.collapsed) {
|
|
4559
|
-
elm.classList.remove('ax-expanded');
|
|
4560
|
-
elm.classList.add('ax-collapsed');
|
|
4561
|
-
if (this._currentMode == 'overlay') {
|
|
4562
|
-
this._removeBackdrop();
|
|
4563
|
-
}
|
|
4564
|
-
}
|
|
4565
|
-
else {
|
|
4566
|
-
elm.classList.add('ax-expanded');
|
|
4567
|
-
elm.classList.remove('ax-collapsed');
|
|
4568
|
-
if (this._currentMode == 'overlay') {
|
|
4569
|
-
this._addBackdrop();
|
|
4570
|
-
}
|
|
4571
|
-
}
|
|
4572
|
-
});
|
|
4573
|
-
}
|
|
4574
|
-
onViewInit() {
|
|
4575
|
-
this._detectSize();
|
|
4576
|
-
}
|
|
4577
|
-
toggle() {
|
|
4578
|
-
this.collapsed = !this.collapsed;
|
|
4579
|
-
}
|
|
4580
|
-
close() {
|
|
4581
|
-
this.collapsed = true;
|
|
4582
|
-
}
|
|
4583
|
-
open() {
|
|
4584
|
-
this.collapsed = false;
|
|
4585
|
-
}
|
|
4586
|
-
_handleWindowsResize(e) {
|
|
4587
|
-
this._detectSize();
|
|
4588
|
-
}
|
|
4589
|
-
_detectSize() {
|
|
4590
|
-
//TODO detect break size
|
|
4591
|
-
const bound = this._getHostElement().parentElement.getBoundingClientRect();
|
|
4592
|
-
if (bound.width == 0) {
|
|
4593
|
-
console.log('Drawer invalid size', bound);
|
|
4594
|
-
setTimeout(() => {
|
|
4595
|
-
this._detectSize();
|
|
4596
|
-
}, 1);
|
|
4597
|
-
return;
|
|
4598
|
-
}
|
|
4599
|
-
if (bound.width < 400) {
|
|
4600
|
-
this._currentMode = 'overlay';
|
|
4601
|
-
this.collapsed = true;
|
|
4602
|
-
}
|
|
4603
|
-
else {
|
|
4604
|
-
this._currentMode = this.mode;
|
|
4605
|
-
}
|
|
4606
|
-
this._updateClass();
|
|
4607
|
-
this._emitChange();
|
|
4608
|
-
}
|
|
4609
|
-
_emitChange() {
|
|
4610
|
-
this.onChanged.emit({
|
|
4611
|
-
component: this,
|
|
4612
|
-
htmlElement: this.elementRef.nativeElement
|
|
4613
|
-
});
|
|
4614
|
-
}
|
|
4615
|
-
_setOverlayMode() {
|
|
4616
|
-
this._currentMode = 'overlay';
|
|
4617
|
-
this._getHostElement().classList.remove('ax-drawer-push');
|
|
4618
|
-
this._getHostElement().classList.add('ax-drawer-overlay');
|
|
4619
|
-
}
|
|
4620
|
-
_setPushMode() {
|
|
4621
|
-
this._currentMode = 'push';
|
|
4622
|
-
this._getHostElement().classList.remove('ax-drawer-overlay');
|
|
4623
|
-
this._getHostElement().classList.add('ax-drawer-push');
|
|
4624
|
-
this._removeBackdrop();
|
|
4625
|
-
}
|
|
4626
|
-
_addBackdrop() {
|
|
4627
|
-
if (!this._backdrop) {
|
|
4628
|
-
this._backdrop = document.createElement('div');
|
|
4629
|
-
this._backdrop.classList.add('ax-drawer-backdrop');
|
|
4630
|
-
this._getHostElement().parentElement.prepend(this._backdrop);
|
|
4631
|
-
this._backdrop.addEventListener('click', this._handleBackfropClick.bind(this));
|
|
4632
|
-
}
|
|
4633
|
-
}
|
|
4634
|
-
_removeBackdrop() {
|
|
4635
|
-
if (this._backdrop) {
|
|
4636
|
-
this._backdrop.removeEventListener('click', this._handleBackfropClick.bind(this));
|
|
4637
|
-
this._getHostElement().parentElement.removeChild(this._backdrop);
|
|
4638
|
-
this._backdrop = null;
|
|
4639
|
-
}
|
|
4640
|
-
}
|
|
4641
|
-
_handleBackfropClick(e) {
|
|
4642
|
-
this._removeBackdrop();
|
|
4643
|
-
this.collapsed = true;
|
|
4746
|
+
this._loadingId = this._loadingService.show(this._getHostElement());
|
|
4747
|
+
}
|
|
4748
|
+
this._cdr.markForCheck();
|
|
4749
|
+
}
|
|
4750
|
+
});
|
|
4644
4751
|
}
|
|
4645
4752
|
}
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4753
|
+
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 });
|
|
4754
|
+
AXPageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageComponent });
|
|
4755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageComponent, decorators: [{
|
|
4756
|
+
type: Injectable
|
|
4757
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4758
|
+
type: Inject,
|
|
4759
|
+
args: [AXLoadingService]
|
|
4760
|
+
}] }]; }, propDecorators: { isLoadingChange: [{
|
|
4761
|
+
type: Output
|
|
4762
|
+
}], isLoading: [{
|
|
4763
|
+
type: Input
|
|
4764
|
+
}] } });
|
|
4765
|
+
|
|
4766
|
+
class AXPageFooterComponent {
|
|
4767
|
+
}
|
|
4768
|
+
AXPageFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4769
|
+
AXPageFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPageFooterComponent, selector: "ax-page-footer", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
|
|
4770
|
+
<ng-content select="ax-prefix">
|
|
4771
|
+
</ng-content>
|
|
4772
|
+
<ng-content select="ax-suffix">
|
|
4773
|
+
</ng-content>
|
|
4774
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageFooterComponent, decorators: [{
|
|
4652
4776
|
type: Component,
|
|
4653
4777
|
args: [{
|
|
4654
|
-
selector: 'ax-
|
|
4778
|
+
selector: 'ax-page-footer',
|
|
4655
4779
|
template: `
|
|
4656
|
-
|
|
4657
|
-
|
|
4780
|
+
<ng-content select="ax-prefix">
|
|
4781
|
+
</ng-content>
|
|
4782
|
+
<ng-content select="ax-suffix">
|
|
4783
|
+
</ng-content>
|
|
4658
4784
|
`,
|
|
4659
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4660
|
-
encapsulation: ViewEncapsulation.None,
|
|
4661
|
-
host: { class: 'ax-drawer ax-transition-all' }
|
|
4785
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4662
4786
|
}]
|
|
4663
|
-
}],
|
|
4664
|
-
type:
|
|
4665
|
-
|
|
4666
|
-
type: Input
|
|
4667
|
-
}], location: [{
|
|
4668
|
-
type: Input
|
|
4669
|
-
}], collapsed: [{
|
|
4670
|
-
type: Input
|
|
4671
|
-
}], _handleWindowsResize: [{
|
|
4672
|
-
type: HostListener,
|
|
4673
|
-
args: ['window:resize', ['$event']]
|
|
4787
|
+
}], propDecorators: { template: [{
|
|
4788
|
+
type: ViewChild,
|
|
4789
|
+
args: [TemplateRef, { static: true }]
|
|
4674
4790
|
}] } });
|
|
4675
4791
|
|
|
4676
|
-
|
|
4677
|
-
|
|
4792
|
+
const TAB_META_KEY = '__meta__';
|
|
4793
|
+
class AXPageCloseEvent extends AXEvent {
|
|
4794
|
+
}
|
|
4795
|
+
class AXPageClosing {
|
|
4796
|
+
constructor() {
|
|
4797
|
+
this.cancel = false;
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
class AXPageResult {
|
|
4801
|
+
}
|
|
4802
|
+
/**
|
|
4803
|
+
* Defines a CSS class—or multiple classes separated by spaces— which are applied to a span element inside the Button. Allows the usage of custom icons after the primary text.
|
|
4804
|
+
*/
|
|
4805
|
+
class AXPageClosedPromise extends Promise {
|
|
4806
|
+
constructor(executor) {
|
|
4807
|
+
super(executor);
|
|
4808
|
+
}
|
|
4809
|
+
close() {
|
|
4810
|
+
if (this.closeMethod) {
|
|
4811
|
+
this.closeMethod();
|
|
4812
|
+
}
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4815
|
+
class AXBasePageComponent extends AXBaseComponentMixin {
|
|
4816
|
+
/**
|
|
4817
|
+
* @ignore
|
|
4818
|
+
*/
|
|
4819
|
+
constructor(elementRef, cdr) {
|
|
4678
4820
|
super(elementRef, cdr);
|
|
4679
|
-
this.
|
|
4821
|
+
this.isLoadingChange = new EventEmitter();
|
|
4822
|
+
this._isLoading = false;
|
|
4823
|
+
this._isPopup = false;
|
|
4824
|
+
this.onClosed = new EventEmitter();
|
|
4680
4825
|
}
|
|
4681
|
-
|
|
4682
|
-
this.
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4826
|
+
get isLoading() {
|
|
4827
|
+
return this._isLoading;
|
|
4828
|
+
}
|
|
4829
|
+
set isLoading(v) {
|
|
4830
|
+
this._setOption({
|
|
4831
|
+
name: 'isLoading',
|
|
4832
|
+
value: v,
|
|
4833
|
+
afterCallback: () => {
|
|
4834
|
+
if (this.pageContainer) {
|
|
4835
|
+
this.pageContainer.isLoading = this.isLoading;
|
|
4836
|
+
}
|
|
4837
|
+
this._cdr.markForCheck();
|
|
4838
|
+
}
|
|
4693
4839
|
});
|
|
4694
4840
|
}
|
|
4695
|
-
|
|
4696
|
-
this.
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
this
|
|
4701
|
-
|
|
4702
|
-
const width = elm.getBoundingClientRect().width;
|
|
4703
|
-
const height = elm.getBoundingClientRect().height;
|
|
4704
|
-
const overflow = parentWidth < width;
|
|
4705
|
-
const diff = width - parentWidth;
|
|
4706
|
-
w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
|
|
4707
|
-
elm.style.setProperty('--attr-width', `${width}px`);
|
|
4708
|
-
elm.style.setProperty('--attr-height', `${height}px`);
|
|
4709
|
-
//TODO check overflow
|
|
4710
|
-
elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
|
|
4711
|
-
});
|
|
4712
|
-
container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
|
|
4841
|
+
get isPopup() {
|
|
4842
|
+
return this._isPopup;
|
|
4843
|
+
}
|
|
4844
|
+
close(data) {
|
|
4845
|
+
this.onClosed.emit({
|
|
4846
|
+
component: this,
|
|
4847
|
+
data: data
|
|
4713
4848
|
});
|
|
4714
4849
|
}
|
|
4850
|
+
onClosing(e) {
|
|
4851
|
+
}
|
|
4852
|
+
ngOnDestroy() {
|
|
4853
|
+
this.onClosed.unsubscribe();
|
|
4854
|
+
}
|
|
4715
4855
|
}
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4856
|
+
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 });
|
|
4857
|
+
AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent });
|
|
4858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBasePageComponent, decorators: [{
|
|
4859
|
+
type: Injectable
|
|
4860
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { pageContainer: [{
|
|
4861
|
+
type: ViewChild,
|
|
4862
|
+
args: [AXPageComponent, { static: true }]
|
|
4863
|
+
}], footer: [{
|
|
4864
|
+
type: ViewChild,
|
|
4865
|
+
args: [AXPageFooterComponent, { static: true }]
|
|
4866
|
+
}], isLoadingChange: [{
|
|
4867
|
+
type: Output
|
|
4868
|
+
}], isLoading: [{
|
|
4869
|
+
type: Input
|
|
4870
|
+
}] } });
|
|
4871
|
+
|
|
4872
|
+
class AXPageHeaderComponent {
|
|
4873
|
+
}
|
|
4874
|
+
AXPageHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4875
|
+
AXPageHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPageHeaderComponent, selector: "ax-page-header", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
|
|
4876
|
+
<ng-content select="ax-prefix">
|
|
4877
|
+
</ng-content>
|
|
4878
|
+
<ng-content select="ax-suffix">
|
|
4879
|
+
</ng-content>
|
|
4880
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageHeaderComponent, decorators: [{
|
|
4730
4882
|
type: Component,
|
|
4731
4883
|
args: [{
|
|
4732
|
-
selector: 'ax-
|
|
4884
|
+
selector: 'ax-page-header',
|
|
4733
4885
|
template: `
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
<ng-content select="ax-drawer-content">
|
|
4739
|
-
</ng-content>
|
|
4740
|
-
<ng-content select="ax-drawer[location='end']">
|
|
4741
|
-
</ng-content>
|
|
4742
|
-
<ng-content select="ax-drawer[location='bottom']">
|
|
4743
|
-
</ng-content>
|
|
4886
|
+
<ng-content select="ax-prefix">
|
|
4887
|
+
</ng-content>
|
|
4888
|
+
<ng-content select="ax-suffix">
|
|
4889
|
+
</ng-content>
|
|
4744
4890
|
`,
|
|
4745
|
-
|
|
4746
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4747
|
-
encapsulation: ViewEncapsulation.None,
|
|
4748
|
-
host: { class: 'ax-drawer-container' }
|
|
4891
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4749
4892
|
}]
|
|
4750
|
-
}],
|
|
4751
|
-
type:
|
|
4752
|
-
args: [
|
|
4893
|
+
}], propDecorators: { template: [{
|
|
4894
|
+
type: ViewChild,
|
|
4895
|
+
args: [TemplateRef, { static: true }]
|
|
4753
4896
|
}] } });
|
|
4754
4897
|
|
|
4755
|
-
class
|
|
4756
|
-
constructor(elementRef, cdr) {
|
|
4757
|
-
super(elementRef, cdr);
|
|
4758
|
-
}
|
|
4898
|
+
class AXPageModule {
|
|
4759
4899
|
}
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
|
|
4766
|
-
type: Component,
|
|
4900
|
+
AXPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4901
|
+
AXPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, declarations: [AXPageFooterComponent, AXPageHeaderComponent], exports: [AXPageFooterComponent, AXPageHeaderComponent] });
|
|
4902
|
+
AXPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, providers: [], imports: [[]] });
|
|
4903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, decorators: [{
|
|
4904
|
+
type: NgModule,
|
|
4767
4905
|
args: [{
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
`,
|
|
4773
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4774
|
-
encapsulation: ViewEncapsulation.None,
|
|
4775
|
-
host: { class: 'ax-drawer-content' }
|
|
4906
|
+
imports: [],
|
|
4907
|
+
exports: [AXPageFooterComponent, AXPageHeaderComponent],
|
|
4908
|
+
declarations: [AXPageFooterComponent, AXPageHeaderComponent],
|
|
4909
|
+
providers: [],
|
|
4776
4910
|
}]
|
|
4777
|
-
}]
|
|
4911
|
+
}] });
|
|
4778
4912
|
|
|
4779
|
-
const COMPONENT$c = [
|
|
4780
|
-
const MODULES$c = [CommonModule];
|
|
4781
|
-
class
|
|
4913
|
+
const COMPONENT$c = [AXDialogComponent];
|
|
4914
|
+
const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
|
|
4915
|
+
class AXDialogModule {
|
|
4782
4916
|
}
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
4917
|
+
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4918
|
+
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] });
|
|
4919
|
+
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
|
|
4920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
4787
4921
|
type: NgModule,
|
|
4788
4922
|
args: [{
|
|
4789
4923
|
declarations: [...COMPONENT$c],
|
|
@@ -7495,5 +7629,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
7495
7629
|
* Generated bundle index. Do not edit.
|
|
7496
7630
|
*/
|
|
7497
7631
|
|
|
7498
|
-
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 };
|
|
7632
|
+
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 };
|
|
7499
7633
|
//# sourceMappingURL=acorex-components.mjs.map
|