@porscheinformatik/material-addons 10.1.7 → 10.2.1
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/bundles/porscheinformatik-material-addons.umd.js +395 -51
- package/bundles/porscheinformatik-material-addons.umd.js.map +1 -1
- package/bundles/porscheinformatik-material-addons.umd.min.js +2 -2
- package/bundles/porscheinformatik-material-addons.umd.min.js.map +1 -1
- package/esm2015/lib/card/card.component.js +19 -5
- package/esm2015/lib/material-addons.module.js +3 -3
- package/esm2015/lib/numeric-field/numeric-field.directive.js +4 -2
- package/esm2015/lib/quick-list/base-quick-list.component.js +89 -0
- package/esm2015/lib/quick-list/quick-list-compact/quick-list-compact.component.js +18 -0
- package/esm2015/lib/quick-list/quick-list.component.js +6 -77
- package/esm2015/lib/quick-list/quick-list.module.js +6 -4
- package/esm2015/lib/stepper/mad-stepper-animation.js +13 -0
- package/esm2015/lib/stepper/step-header/step-header.component.js +75 -0
- package/esm2015/lib/stepper/stepper.component.js +167 -0
- package/esm2015/lib/stepper/stepper.module.js +18 -0
- package/esm2015/porscheinformatik-material-addons.js +4 -2
- package/esm2015/public-api.js +5 -1
- package/fesm2015/porscheinformatik-material-addons.js +329 -24
- package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
- package/lib/card/card.component.d.ts +4 -0
- package/lib/quick-list/base-quick-list.component.d.ts +29 -0
- package/lib/quick-list/quick-list-compact/quick-list-compact.component.d.ts +6 -0
- package/lib/quick-list/quick-list.component.d.ts +4 -27
- package/lib/stepper/mad-stepper-animation.d.ts +7 -0
- package/lib/stepper/step-header/step-header.component.d.ts +23 -0
- package/lib/stepper/stepper.component.d.ts +47 -0
- package/lib/stepper/stepper.module.d.ts +2 -0
- package/package.json +6 -6
- package/porscheinformatik-material-addons.d.ts +3 -1
- package/porscheinformatik-material-addons.metadata.json +1 -1
- package/public-api.d.ts +4 -0
- package/themes/common/styles.scss +17 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/forms'), require('@angular/platform-browser'), require('@ngx-translate/core'), require('rxjs'), require('@angular/cdk/layout'), require('rxjs/operators'), require('@angular/material/menu'), require('@angular/material/toolbar'), require('@angular/material/badge'), require('@angular/material/card'), require('@angular/animations'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@porscheinformatik/material-addons', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/material/button', '@angular/material/icon', '@angular/material/tooltip', '@angular/material/form-field', '@angular/material/input', '@angular/forms', '@angular/platform-browser', '@ngx-translate/core', 'rxjs', '@angular/cdk/layout', 'rxjs/operators', '@angular/material/menu', '@angular/material/toolbar', '@angular/material/badge', '@angular/material/card', '@angular/animations', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.porscheinformatik = global.porscheinformatik || {}, global.porscheinformatik['material-addons'] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.material.button, global.ng.material.icon, global.ng.material.tooltip, global.ng.material.formField, global.ng.material.input, global.ng.forms, global.ng.platformBrowser, global.i2, global.rxjs, global.ng.cdk.layout, global.rxjs.operators, global.ng.material.menu, global.ng.material.toolbar, global.ng.material.badge, global.ng.material.card, global.ng.animations, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator));
|
|
5
|
-
}(this, (function (exports, i0, common, i1, button, icon, tooltip, formField, input, forms, platformBrowser, i2, rxjs, layout, operators, menu, toolbar, badge, card, animations, table, sort, paginator) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/forms'), require('@angular/platform-browser'), require('@ngx-translate/core'), require('rxjs'), require('@angular/cdk/layout'), require('rxjs/operators'), require('@angular/material/menu'), require('@angular/material/toolbar'), require('@angular/material/badge'), require('@angular/material/card'), require('@angular/animations'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/cdk/bidi'), require('@angular/cdk/stepper'), require('@angular/cdk/a11y'), require('@angular/flex-layout')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@porscheinformatik/material-addons', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/material/button', '@angular/material/icon', '@angular/material/tooltip', '@angular/material/form-field', '@angular/material/input', '@angular/forms', '@angular/platform-browser', '@ngx-translate/core', 'rxjs', '@angular/cdk/layout', 'rxjs/operators', '@angular/material/menu', '@angular/material/toolbar', '@angular/material/badge', '@angular/material/card', '@angular/animations', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/cdk/bidi', '@angular/cdk/stepper', '@angular/cdk/a11y', '@angular/flex-layout'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.porscheinformatik = global.porscheinformatik || {}, global.porscheinformatik['material-addons'] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.material.button, global.ng.material.icon, global.ng.material.tooltip, global.ng.material.formField, global.ng.material.input, global.ng.forms, global.ng.platformBrowser, global.i2, global.rxjs, global.ng.cdk.layout, global.rxjs.operators, global.ng.material.menu, global.ng.material.toolbar, global.ng.material.badge, global.ng.material.card, global.ng.animations, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.cdk.bidi, global.ng.cdk.stepper, global.ng.cdk.a11y, global.ng.flexLayout));
|
|
5
|
+
}(this, (function (exports, i0, common, i1, button, icon, tooltip, formField, input, forms, platformBrowser, i2, rxjs, layout, operators, menu, toolbar, badge, card, animations, table, sort, paginator, bidi, stepper, a11y, flexLayout) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var MaterialActionButtonComponent = /** @class */ (function () {
|
|
8
8
|
function MaterialActionButtonComponent() {
|
|
@@ -61,11 +61,13 @@
|
|
|
61
61
|
extendStatics = Object.setPrototypeOf ||
|
|
62
62
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
63
63
|
function (d, b) { for (var p in b)
|
|
64
|
-
if (
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
65
65
|
d[p] = b[p]; };
|
|
66
66
|
return extendStatics(d, b);
|
|
67
67
|
};
|
|
68
68
|
function __extends(d, b) {
|
|
69
|
+
if (typeof b !== "function" && b !== null)
|
|
70
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
69
71
|
extendStatics(d, b);
|
|
70
72
|
function __() { this.constructor = d; }
|
|
71
73
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -208,10 +210,10 @@
|
|
|
208
210
|
k2 = k;
|
|
209
211
|
o[k2] = m[k];
|
|
210
212
|
});
|
|
211
|
-
function __exportStar(m,
|
|
213
|
+
function __exportStar(m, o) {
|
|
212
214
|
for (var p in m)
|
|
213
|
-
if (p !== "default" && !
|
|
214
|
-
__createBinding(
|
|
215
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
216
|
+
__createBinding(o, m, p);
|
|
215
217
|
}
|
|
216
218
|
function __values(o) {
|
|
217
219
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
@@ -251,11 +253,13 @@
|
|
|
251
253
|
}
|
|
252
254
|
return ar;
|
|
253
255
|
}
|
|
256
|
+
/** @deprecated */
|
|
254
257
|
function __spread() {
|
|
255
258
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
256
259
|
ar = ar.concat(__read(arguments[i]));
|
|
257
260
|
return ar;
|
|
258
261
|
}
|
|
262
|
+
/** @deprecated */
|
|
259
263
|
function __spreadArrays() {
|
|
260
264
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
261
265
|
s += arguments[i].length;
|
|
@@ -264,7 +268,17 @@
|
|
|
264
268
|
r[k] = a[j];
|
|
265
269
|
return r;
|
|
266
270
|
}
|
|
267
|
-
|
|
271
|
+
function __spreadArray(to, from, pack) {
|
|
272
|
+
if (pack || arguments.length === 2)
|
|
273
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
274
|
+
if (ar || !(i in from)) {
|
|
275
|
+
if (!ar)
|
|
276
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
277
|
+
ar[i] = from[i];
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
281
|
+
}
|
|
268
282
|
function __await(v) {
|
|
269
283
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
270
284
|
}
|
|
@@ -321,7 +335,7 @@
|
|
|
321
335
|
var result = {};
|
|
322
336
|
if (mod != null)
|
|
323
337
|
for (var k in mod)
|
|
324
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
338
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
325
339
|
__createBinding(result, mod, k);
|
|
326
340
|
__setModuleDefault(result, mod);
|
|
327
341
|
return result;
|
|
@@ -329,18 +343,21 @@
|
|
|
329
343
|
function __importDefault(mod) {
|
|
330
344
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
331
345
|
}
|
|
332
|
-
function __classPrivateFieldGet(receiver,
|
|
333
|
-
if (!
|
|
334
|
-
throw new TypeError("
|
|
335
|
-
|
|
336
|
-
|
|
346
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
347
|
+
if (kind === "a" && !f)
|
|
348
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
349
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
350
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
351
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
337
352
|
}
|
|
338
|
-
function __classPrivateFieldSet(receiver,
|
|
339
|
-
if (
|
|
340
|
-
throw new TypeError("
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
353
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
354
|
+
if (kind === "m")
|
|
355
|
+
throw new TypeError("Private method is not writable");
|
|
356
|
+
if (kind === "a" && !f)
|
|
357
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
358
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
359
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
360
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
344
361
|
}
|
|
345
362
|
|
|
346
363
|
var MadBasicButton = /** @class */ (function () {
|
|
@@ -1205,7 +1222,9 @@
|
|
|
1205
1222
|
set: function (value) {
|
|
1206
1223
|
if (this._numericValue !== value && !(isNaN(this._numericValue) && (isNaN(value) || value === null))) {
|
|
1207
1224
|
this.originalValue = value;
|
|
1208
|
-
|
|
1225
|
+
// Don't roundOrTruncate if value was set to empty otherwise input value will be set to 0 instead of empty
|
|
1226
|
+
// which happens when an input is being reset
|
|
1227
|
+
this._numericValue = value === null || value === undefined ? value : this.roundOrTruncate(value); // eslint-disable-line
|
|
1209
1228
|
this.handleInputChanged();
|
|
1210
1229
|
}
|
|
1211
1230
|
},
|
|
@@ -1478,9 +1497,11 @@
|
|
|
1478
1497
|
this.saveDisabled = false;
|
|
1479
1498
|
this.saveText = 'NOT SET';
|
|
1480
1499
|
this.editMode = false;
|
|
1500
|
+
this.additionalActionText = '';
|
|
1481
1501
|
this.edit = new i0.EventEmitter();
|
|
1482
1502
|
this.cancel = new i0.EventEmitter();
|
|
1483
1503
|
this.save = new i0.EventEmitter();
|
|
1504
|
+
this.additionalAction = new i0.EventEmitter();
|
|
1484
1505
|
}
|
|
1485
1506
|
CardComponent.prototype.onCancel = function () {
|
|
1486
1507
|
this.cancel.emit(undefined);
|
|
@@ -1495,16 +1516,25 @@
|
|
|
1495
1516
|
CardComponent.prototype.toggleCollapse = function () {
|
|
1496
1517
|
this.expanded = !this.expanded;
|
|
1497
1518
|
};
|
|
1519
|
+
CardComponent.prototype.additionalActionClicked = function () {
|
|
1520
|
+
this.additionalAction.emit(undefined);
|
|
1521
|
+
};
|
|
1498
1522
|
return CardComponent;
|
|
1499
1523
|
}());
|
|
1500
1524
|
CardComponent.decorators = [
|
|
1501
1525
|
{ type: i0.Component, args: [{
|
|
1502
1526
|
selector: 'mad-card',
|
|
1503
|
-
template: "<mat-card>\n <mat-card-header>\n <mat-card-title>\n {{ title }}\n <mad-icon-button (click)=\"toggleCollapse()\" *ngIf=\"expandable && !editMode\">\n <mat-icon [@rotateIcon]=\"!expanded\">keyboard_arrow_down</mat-icon>\n </mad-icon-button>\n </mat-card-title>\n <mad-icon-button [title]=\"editText\" (click)=\"onEdit()\" *ngIf=\"!readonly && !editMode\">\n
|
|
1527
|
+
template: "<mat-card>\n <mat-card-header>\n <mat-card-title>\n {{ title }}\n <mad-icon-button (click)=\"toggleCollapse()\" *ngIf=\"expandable && !editMode\">\n <mat-icon [@rotateIcon]=\"!expanded\">keyboard_arrow_down</mat-icon>\n </mad-icon-button>\n </mat-card-title>\n <span>\n <mad-icon-button (click)=\"additionalActionClicked()\" *ngIf=\"additionalActionIcon\" [title]=\"additionalActionText\" type=\"button\">\n <mat-icon>{{additionalActionIcon}}</mat-icon>\n </mad-icon-button>\n <mad-icon-button [title]=\"editText\" (click)=\"onEdit()\" *ngIf=\"!readonly && !editMode\">\n <mat-icon>create</mat-icon>\n </mad-icon-button>\n </span>\n </mat-card-header>\n <mat-card-content [@collapseExpandAnimation] *ngIf=\"expanded\">\n <ng-content></ng-content>\n </mat-card-content>\n <mat-card-actions *ngIf=\"!readonly && editMode\">\n <mad-primary-button [title]=\"saveText\" [disabled]=\"saveDisabled\" (throttleClick)=\"onSave()\" madThrottleClick>\n {{ saveText }}\n </mad-primary-button>\n <mad-outline-button [title]=\"cancelText\" [disabled]=\"cancelDisabled\" (click)=\"onCancel()\">\n {{ cancelText }}\n </mad-outline-button>\n </mat-card-actions>\n</mat-card>\n",
|
|
1504
1528
|
animations: [
|
|
1505
1529
|
animations.trigger('collapseExpandAnimation', [
|
|
1506
|
-
animations.transition(':enter', [animations.style({ opacity: 0, height: 0, overflow: 'hidden' }), animations.animate('100ms', animations.style({
|
|
1507
|
-
|
|
1530
|
+
animations.transition(':enter', [animations.style({ opacity: 0, height: 0, overflow: 'hidden' }), animations.animate('100ms', animations.style({
|
|
1531
|
+
opacity: 1,
|
|
1532
|
+
height: '*'
|
|
1533
|
+
}))]),
|
|
1534
|
+
animations.transition(':leave', [animations.style({ opacity: 1, height: '*', overflow: 'hidden' }), animations.animate('100ms', animations.style({
|
|
1535
|
+
opacity: 0,
|
|
1536
|
+
height: 0
|
|
1537
|
+
}))]),
|
|
1508
1538
|
]),
|
|
1509
1539
|
animations.trigger('rotateIcon', [
|
|
1510
1540
|
animations.state('true', animations.style({ transform: 'rotate(0)' })),
|
|
@@ -1527,9 +1557,12 @@
|
|
|
1527
1557
|
saveText: [{ type: i0.Input }],
|
|
1528
1558
|
title: [{ type: i0.Input }],
|
|
1529
1559
|
editMode: [{ type: i0.Input }],
|
|
1560
|
+
additionalActionIcon: [{ type: i0.Input }],
|
|
1561
|
+
additionalActionText: [{ type: i0.Input }],
|
|
1530
1562
|
edit: [{ type: i0.Output }],
|
|
1531
1563
|
cancel: [{ type: i0.Output }],
|
|
1532
|
-
save: [{ type: i0.Output }]
|
|
1564
|
+
save: [{ type: i0.Output }],
|
|
1565
|
+
additionalAction: [{ type: i0.Output }]
|
|
1533
1566
|
};
|
|
1534
1567
|
|
|
1535
1568
|
var ThrottleClickDirective = /** @class */ (function () {
|
|
@@ -1590,9 +1623,8 @@
|
|
|
1590
1623
|
},] }
|
|
1591
1624
|
];
|
|
1592
1625
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
function QuickListComponent(changeDetectorRef) {
|
|
1626
|
+
var BaseQuickListComponent = /** @class */ (function () {
|
|
1627
|
+
function BaseQuickListComponent(changeDetectorRef) {
|
|
1596
1628
|
this.changeDetectorRef = changeDetectorRef;
|
|
1597
1629
|
this.allItems = [];
|
|
1598
1630
|
this.addLabel = 'NOT SET';
|
|
@@ -1601,31 +1633,31 @@
|
|
|
1601
1633
|
this.added = new i0.EventEmitter();
|
|
1602
1634
|
this.removed = new i0.EventEmitter();
|
|
1603
1635
|
}
|
|
1604
|
-
|
|
1636
|
+
BaseQuickListComponent.prototype.ngOnInit = function () {
|
|
1605
1637
|
this.addEventFunction = this.addItem.bind(this);
|
|
1606
|
-
if (
|
|
1638
|
+
if (this.minItems) {
|
|
1607
1639
|
for (var n = this.allItems.length; n < this.minItems; n++) {
|
|
1608
1640
|
this.interalAddItem();
|
|
1609
1641
|
}
|
|
1610
1642
|
}
|
|
1611
1643
|
};
|
|
1612
|
-
|
|
1644
|
+
BaseQuickListComponent.prototype.ngAfterViewInit = function () {
|
|
1613
1645
|
var _this = this;
|
|
1614
1646
|
setTimeout(function () { return _this.setFocusOnAdd(); }, 1);
|
|
1615
1647
|
};
|
|
1616
|
-
|
|
1648
|
+
BaseQuickListComponent.prototype.addItem = function () {
|
|
1617
1649
|
var newItem = this.interalAddItem();
|
|
1618
1650
|
if (!!newItem) {
|
|
1619
1651
|
this.added.emit(newItem);
|
|
1620
1652
|
}
|
|
1621
1653
|
};
|
|
1622
|
-
|
|
1654
|
+
BaseQuickListComponent.prototype.removeItem = function (item) {
|
|
1623
1655
|
if (this.isDeleteAllowed()) {
|
|
1624
1656
|
this.allItems.splice(this.allItems.indexOf(item), 1);
|
|
1625
1657
|
this.removed.emit(item);
|
|
1626
1658
|
}
|
|
1627
1659
|
};
|
|
1628
|
-
|
|
1660
|
+
BaseQuickListComponent.prototype.setFocusOnAdd = function () {
|
|
1629
1661
|
var _this = this;
|
|
1630
1662
|
this.rowCountFocus = this.itemRows.length;
|
|
1631
1663
|
this.itemRows.changes.subscribe(function (els) {
|
|
@@ -1638,13 +1670,13 @@
|
|
|
1638
1670
|
_this.rowCountFocus = els.length;
|
|
1639
1671
|
});
|
|
1640
1672
|
};
|
|
1641
|
-
|
|
1642
|
-
return
|
|
1673
|
+
BaseQuickListComponent.prototype.isAddAllowed = function () {
|
|
1674
|
+
return this.addPossible && (!this.maxItems || this.allItems.length < this.maxItems);
|
|
1643
1675
|
};
|
|
1644
|
-
|
|
1645
|
-
return
|
|
1676
|
+
BaseQuickListComponent.prototype.isDeleteAllowed = function () {
|
|
1677
|
+
return !this.minItems || this.allItems.length > this.minItems;
|
|
1646
1678
|
};
|
|
1647
|
-
|
|
1679
|
+
BaseQuickListComponent.prototype.interalAddItem = function () {
|
|
1648
1680
|
if (this.isAddAllowed()) {
|
|
1649
1681
|
var newItem = Object.assign({}, this.blankItem);
|
|
1650
1682
|
// creates ids in the form of "n5kdz1pljl8"
|
|
@@ -1657,18 +1689,18 @@
|
|
|
1657
1689
|
}
|
|
1658
1690
|
return null;
|
|
1659
1691
|
};
|
|
1660
|
-
return
|
|
1692
|
+
return BaseQuickListComponent;
|
|
1661
1693
|
}());
|
|
1662
|
-
|
|
1694
|
+
BaseQuickListComponent.decorators = [
|
|
1663
1695
|
{ type: i0.Component, args: [{
|
|
1664
|
-
selector: 'mad-quick-list',
|
|
1665
|
-
template:
|
|
1696
|
+
selector: 'mad-base-quick-list',
|
|
1697
|
+
template: ''
|
|
1666
1698
|
},] }
|
|
1667
1699
|
];
|
|
1668
|
-
|
|
1700
|
+
BaseQuickListComponent.ctorParameters = function () { return [
|
|
1669
1701
|
{ type: i0.ChangeDetectorRef }
|
|
1670
1702
|
]; };
|
|
1671
|
-
|
|
1703
|
+
BaseQuickListComponent.propDecorators = {
|
|
1672
1704
|
allItems: [{ type: i0.Input }],
|
|
1673
1705
|
addLabel: [{ type: i0.Input }],
|
|
1674
1706
|
addPossible: [{ type: i0.Input }],
|
|
@@ -1682,6 +1714,44 @@
|
|
|
1682
1714
|
itemRows: [{ type: i0.ViewChildren, args: ['row',] }]
|
|
1683
1715
|
};
|
|
1684
1716
|
|
|
1717
|
+
var QuickListComponent = /** @class */ (function (_super) {
|
|
1718
|
+
__extends(QuickListComponent, _super);
|
|
1719
|
+
function QuickListComponent(changeDetectorRef) {
|
|
1720
|
+
var _this = _super.call(this, changeDetectorRef) || this;
|
|
1721
|
+
_this.changeDetectorRef = changeDetectorRef;
|
|
1722
|
+
return _this;
|
|
1723
|
+
}
|
|
1724
|
+
return QuickListComponent;
|
|
1725
|
+
}(BaseQuickListComponent));
|
|
1726
|
+
QuickListComponent.decorators = [
|
|
1727
|
+
{ type: i0.Component, args: [{
|
|
1728
|
+
selector: 'mad-quick-list',
|
|
1729
|
+
template: "<h3>\n <ng-content select=\"label\"></ng-content>\n</h3>\n<ng-container *ngFor=\"let item of allItems\">\n <div *ngIf=\"itemTemplate\" #row>\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\n <mad-icon-button *ngIf=\"!readonly && isDeleteAllowed()\" (click)=\"removeItem(item)\">\n <mat-icon>delete</mat-icon>\n </mad-icon-button>\n </div>\n</ng-container>\n<mad-link-button *ngIf=\"!readonly\" (click)=\"addItem()\"\n [disabled]=\"!addPossible || !isAddAllowed()\">\n {{ addLabel }}\n</mad-link-button>\n"
|
|
1730
|
+
},] }
|
|
1731
|
+
];
|
|
1732
|
+
QuickListComponent.ctorParameters = function () { return [
|
|
1733
|
+
{ type: i0.ChangeDetectorRef }
|
|
1734
|
+
]; };
|
|
1735
|
+
|
|
1736
|
+
var QuickListCompactComponent = /** @class */ (function (_super) {
|
|
1737
|
+
__extends(QuickListCompactComponent, _super);
|
|
1738
|
+
function QuickListCompactComponent(changeDetectorRef) {
|
|
1739
|
+
var _this = _super.call(this, changeDetectorRef) || this;
|
|
1740
|
+
_this.changeDetectorRef = changeDetectorRef;
|
|
1741
|
+
return _this;
|
|
1742
|
+
}
|
|
1743
|
+
return QuickListCompactComponent;
|
|
1744
|
+
}(BaseQuickListComponent));
|
|
1745
|
+
QuickListCompactComponent.decorators = [
|
|
1746
|
+
{ type: i0.Component, args: [{
|
|
1747
|
+
selector: 'mad-quick-list-compact',
|
|
1748
|
+
template: "<h3>\n <ng-content select=\"label\"></ng-content>\n</h3>\n<ng-container *ngFor=\"let item of allItems; let isLast = last;\">\n <div class=\"flex-container\" *ngIf=\"itemTemplate\" #row>\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\n <mad-icon-button *ngIf=\"!readonly && isDeleteAllowed()\" (click)=\"removeItem(item)\">\n <mat-icon>delete</mat-icon>\n </mad-icon-button>\n <mad-icon-button *ngIf=\"!readonly && isLast\" [disabled]=\"!isAddAllowed()\" (click)=\"addItem()\">\n <mat-icon>add_circle_outline</mat-icon>\n </mad-icon-button>\n </div>\n</ng-container>\n<mad-link-button *ngIf=\"!readonly && !this.allItems.length\"\n (click)=\"addItem()\"\n [disabled]=\"!isAddAllowed()\">\n {{ addLabel }}\n</mad-link-button>\n"
|
|
1749
|
+
},] }
|
|
1750
|
+
];
|
|
1751
|
+
QuickListCompactComponent.ctorParameters = function () { return [
|
|
1752
|
+
{ type: i0.ChangeDetectorRef }
|
|
1753
|
+
]; };
|
|
1754
|
+
|
|
1685
1755
|
var QuickListModule = /** @class */ (function () {
|
|
1686
1756
|
function QuickListModule() {
|
|
1687
1757
|
}
|
|
@@ -1689,9 +1759,9 @@
|
|
|
1689
1759
|
}());
|
|
1690
1760
|
QuickListModule.decorators = [
|
|
1691
1761
|
{ type: i0.NgModule, args: [{
|
|
1692
|
-
declarations: [QuickListComponent],
|
|
1762
|
+
declarations: [QuickListComponent, BaseQuickListComponent, QuickListCompactComponent],
|
|
1693
1763
|
imports: [common.CommonModule, button.MatButtonModule, icon.MatIconModule, ButtonModule],
|
|
1694
|
-
exports: [QuickListComponent],
|
|
1764
|
+
exports: [QuickListComponent, QuickListCompactComponent, BaseQuickListComponent],
|
|
1695
1765
|
},] }
|
|
1696
1766
|
];
|
|
1697
1767
|
|
|
@@ -1835,6 +1905,273 @@
|
|
|
1835
1905
|
},] }
|
|
1836
1906
|
];
|
|
1837
1907
|
|
|
1908
|
+
var StepHeaderComponent = /** @class */ (function (_super) {
|
|
1909
|
+
__extends(StepHeaderComponent, _super);
|
|
1910
|
+
function StepHeaderComponent(_focusMonitor, _elementRef) {
|
|
1911
|
+
var _this = _super.call(this, _elementRef) || this;
|
|
1912
|
+
_this._focusMonitor = _focusMonitor;
|
|
1913
|
+
return _this;
|
|
1914
|
+
}
|
|
1915
|
+
StepHeaderComponent.prototype.ngAfterViewInit = function () {
|
|
1916
|
+
this._focusMonitor.monitor(this._elementRef, true);
|
|
1917
|
+
};
|
|
1918
|
+
StepHeaderComponent.prototype.ngOnDestroy = function () {
|
|
1919
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
1920
|
+
};
|
|
1921
|
+
/** Focuses the step header. */
|
|
1922
|
+
StepHeaderComponent.prototype.focus = function (origin, options) {
|
|
1923
|
+
if (origin) {
|
|
1924
|
+
this._focusMonitor.focusVia(this._elementRef, origin, options);
|
|
1925
|
+
}
|
|
1926
|
+
else {
|
|
1927
|
+
this._elementRef.nativeElement.focus(options);
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1930
|
+
StepHeaderComponent.prototype.getCssForState = function () {
|
|
1931
|
+
if (this.state === stepper.STEP_STATE.NUMBER && !this.completed && !this.hasError) {
|
|
1932
|
+
return 'step-state-neutral'; //initiale state is 'number'
|
|
1933
|
+
}
|
|
1934
|
+
else if (this.completed) {
|
|
1935
|
+
return 'step-state-complete';
|
|
1936
|
+
}
|
|
1937
|
+
else if (this.hasError) {
|
|
1938
|
+
return 'step-state-error';
|
|
1939
|
+
}
|
|
1940
|
+
};
|
|
1941
|
+
StepHeaderComponent.prototype.getIcon = function () {
|
|
1942
|
+
if (this.completed) {
|
|
1943
|
+
return 'check_circle_outline';
|
|
1944
|
+
}
|
|
1945
|
+
else if (this.hasError) {
|
|
1946
|
+
return 'error_outline';
|
|
1947
|
+
}
|
|
1948
|
+
return '';
|
|
1949
|
+
};
|
|
1950
|
+
return StepHeaderComponent;
|
|
1951
|
+
}(stepper.CdkStepHeader));
|
|
1952
|
+
StepHeaderComponent.decorators = [
|
|
1953
|
+
{ type: i0.Component, args: [{
|
|
1954
|
+
selector: 'mad-step-header',
|
|
1955
|
+
template: "<div class=\"header\" fxLayout=\"row\" fxLayoutGap=\"1em\"\n [style.background]=\"this.selected && !this.closed ? '#d8e2e9' : '#ffffff'\"\n [style.border-color]=\"this.hasError ? '#f44336' : '#d3d3d3'\">\n <div [ngClass]=\"this.getCssForState()\"></div>\n <div class=\"header-label\">\n <mat-icon class=\"material-icons-outlined\">\n {{this.selected && !this.closed ? 'keyboard_arrow_down' : 'keyboard_arrow_right'}}\n </mat-icon>\n </div>\n <div *ngIf=\"this.completed || this.hasError\" class=\"header-label\">\n <mat-icon [ngClass]=\"this.completed ? 'green-check' : 'red-error'\">\n {{getIcon()}}\n </mat-icon>\n </div>\n <span *ngIf=\"!this.hasError && !this.completed\" class=\"header-label\">{{(this.index + 1) + '.'}}</span>\n <div class=\"header-label\"> {{this.label}}</div>\n</div>\n",
|
|
1956
|
+
inputs: ['color'],
|
|
1957
|
+
host: {
|
|
1958
|
+
'class': 'mad-step-header',
|
|
1959
|
+
'role': 'tab',
|
|
1960
|
+
},
|
|
1961
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1962
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1963
|
+
styles: [".header{-webkit-tap-highlight-color:transparent;border:1px solid #d3d3d3;box-sizing:content-box;cursor:pointer;height:62px;outline:#f44336;overflow:hidden;width:100%}.header-label{align-items:center;display:flex}.step-state-complete{background:green;width:5px}.step-state-error{background:#f44336;width:5px}.step-state-neutral{background:#d3d3d3;width:5px}.green-check{color:green}.red-error{color:#f44336}"]
|
|
1964
|
+
},] }
|
|
1965
|
+
];
|
|
1966
|
+
StepHeaderComponent.ctorParameters = function () { return [
|
|
1967
|
+
{ type: a11y.FocusMonitor },
|
|
1968
|
+
{ type: i0.ElementRef }
|
|
1969
|
+
]; };
|
|
1970
|
+
StepHeaderComponent.propDecorators = {
|
|
1971
|
+
index: [{ type: i0.Input }],
|
|
1972
|
+
label: [{ type: i0.Input }],
|
|
1973
|
+
state: [{ type: i0.Input }],
|
|
1974
|
+
errorMessage: [{ type: i0.Input }],
|
|
1975
|
+
selected: [{ type: i0.Input }],
|
|
1976
|
+
active: [{ type: i0.Input }],
|
|
1977
|
+
optional: [{ type: i0.Input }],
|
|
1978
|
+
hasError: [{ type: i0.Input }],
|
|
1979
|
+
completed: [{ type: i0.Input }],
|
|
1980
|
+
closed: [{ type: i0.Input }]
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* Animations used by the MAD stepper.
|
|
1985
|
+
*/
|
|
1986
|
+
var madStepperAnimations = {
|
|
1987
|
+
verticalStepTransition: animations.trigger('stepTransition', [
|
|
1988
|
+
animations.state('previous', animations.style({ height: '0px', visibility: 'hidden' })),
|
|
1989
|
+
animations.state('next', animations.style({ height: '0px', visibility: 'hidden' })),
|
|
1990
|
+
animations.state('current', animations.style({ height: '*', visibility: 'visible' })),
|
|
1991
|
+
animations.transition('* <=> current', animations.animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1992
|
+
]),
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
var StepComponent = /** @class */ (function (_super) {
|
|
1996
|
+
__extends(StepComponent, _super);
|
|
1997
|
+
function StepComponent(stepper, _viewContainerRef) {
|
|
1998
|
+
var _this = _super.call(this, stepper) || this;
|
|
1999
|
+
_this.stepper = stepper;
|
|
2000
|
+
_this._viewContainerRef = _viewContainerRef;
|
|
2001
|
+
/** Action event for the next button. If not set the StepComponent will handle the step navigation */
|
|
2002
|
+
_this.onNext = new i0.EventEmitter();
|
|
2003
|
+
/** Action event for the done button. If not set the StepComponent will handle the step navigation */
|
|
2004
|
+
_this.onDone = new i0.EventEmitter();
|
|
2005
|
+
/*** Action event when the header is clicked. If not set the StepComponent will handle the step navigation*/
|
|
2006
|
+
_this.onHeaderClick = new i0.EventEmitter();
|
|
2007
|
+
_this.stepClosed = false;
|
|
2008
|
+
_this._isSelected = rxjs.Subscription.EMPTY;
|
|
2009
|
+
return _this;
|
|
2010
|
+
}
|
|
2011
|
+
StepComponent.prototype.ngAfterContentInit = function () {
|
|
2012
|
+
var _this = this;
|
|
2013
|
+
this._isSelected = this._stepper.steps.changes
|
|
2014
|
+
.pipe(operators.switchMap(function () { return _this._stepper.selectionChange.pipe(operators.map(function (event) { return event.selectedStep === _this; }), operators.tap(function () { return (_this.stepClosed = false); }), operators.startWith(_this._stepper.selected === _this)); }))
|
|
2015
|
+
.subscribe();
|
|
2016
|
+
};
|
|
2017
|
+
StepComponent.prototype.ngOnDestroy = function () {
|
|
2018
|
+
this._isSelected.unsubscribe();
|
|
2019
|
+
};
|
|
2020
|
+
StepComponent.prototype.next = function () {
|
|
2021
|
+
this.stepValidation();
|
|
2022
|
+
if (this.onNext.observers.length <= 0) {
|
|
2023
|
+
this.stepper.next();
|
|
2024
|
+
}
|
|
2025
|
+
this.onNext.emit();
|
|
2026
|
+
};
|
|
2027
|
+
StepComponent.prototype.selectAndMarkAsTouched = function (index) {
|
|
2028
|
+
var _a, _b;
|
|
2029
|
+
//Mark current selected step as touched before selecting to display errors in the from
|
|
2030
|
+
(_b = (_a = this._stepper.selected) === null || _a === void 0 ? void 0 : _a.stepControl) === null || _b === void 0 ? void 0 : _b.markAllAsTouched();
|
|
2031
|
+
this.stepClosed = false;
|
|
2032
|
+
if (this.onHeaderClick.observers.length <= 0) {
|
|
2033
|
+
this.select();
|
|
2034
|
+
}
|
|
2035
|
+
this.onHeaderClick.emit(index);
|
|
2036
|
+
};
|
|
2037
|
+
StepComponent.prototype.completeLast = function () {
|
|
2038
|
+
this.stepValidation();
|
|
2039
|
+
this.stepClosed = true;
|
|
2040
|
+
if (this.onDone.observers.length <= 0) {
|
|
2041
|
+
this.stepper.next();
|
|
2042
|
+
}
|
|
2043
|
+
this.onDone.emit();
|
|
2044
|
+
};
|
|
2045
|
+
StepComponent.prototype.resetValidations = function () {
|
|
2046
|
+
this.hasError = false;
|
|
2047
|
+
this.completed = true;
|
|
2048
|
+
this.state = stepper.STEP_STATE.DONE;
|
|
2049
|
+
};
|
|
2050
|
+
StepComponent.prototype.stepValidation = function () {
|
|
2051
|
+
var _a, _b;
|
|
2052
|
+
(_a = this.stepControl) === null || _a === void 0 ? void 0 : _a.markAllAsTouched();
|
|
2053
|
+
if ((_b = this.stepControl) === null || _b === void 0 ? void 0 : _b.valid) {
|
|
2054
|
+
this.hasError = false;
|
|
2055
|
+
this.completed = true;
|
|
2056
|
+
this.state = stepper.STEP_STATE.DONE;
|
|
2057
|
+
}
|
|
2058
|
+
else {
|
|
2059
|
+
this.completed = false;
|
|
2060
|
+
this.hasError = true;
|
|
2061
|
+
this.state = stepper.STEP_STATE.ERROR;
|
|
2062
|
+
}
|
|
2063
|
+
};
|
|
2064
|
+
return StepComponent;
|
|
2065
|
+
}(stepper.CdkStep));
|
|
2066
|
+
StepComponent.decorators = [
|
|
2067
|
+
{ type: i0.Component, args: [{
|
|
2068
|
+
selector: 'mad-step',
|
|
2069
|
+
template: "<ng-template let-last=\"last\" let-nextBtnLbl=\"nextBtnLbl\" let-doneBtnLbl=\"doneBtnLbl\">\n <div class=\"step-container\" fxLayout=\"column\">\n <div class=\"step-content\">\n <ng-content></ng-content>\n </div>\n <div class=\"step-buttons\">\n <div *ngIf=\"!last\">\n <button mat-stroked-button color=\"primary\" (click)=\"next()\">{{nextBtnLbl}}</button>\n </div>\n <div *ngIf=\"last\">\n <button mat-stroked-button color=\"primary\" (click)=\"completeLast()\">{{doneBtnLbl}}</button>\n </div>\n </div>\n </div>\n</ng-template>\n",
|
|
2070
|
+
providers: [{ provide: stepper.CdkStep, useExisting: StepComponent }],
|
|
2071
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
2072
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2073
|
+
styles: [".stepper-vertical{display:block}.mat-vertical-stepper-header{align-items:center;border:none!important;display:flex;height:10px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}.vertical-content-container{border:none}[dir=rtl] .vertical-content-container{margin-left:0;margin-right:36px}.vertical-stepper-content{outline:0;overflow:hidden}.vertical-content{padding:0 24px}.step-container{border-bottom:1px solid #d3d3d3;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3}.step-buttons,.step-content{padding:2em}"]
|
|
2074
|
+
},] }
|
|
2075
|
+
];
|
|
2076
|
+
StepComponent.ctorParameters = function () { return [
|
|
2077
|
+
{ type: StepperComponent, decorators: [{ type: i0.Inject, args: [i0.forwardRef(function () { return StepperComponent; }),] }] },
|
|
2078
|
+
{ type: i0.ViewContainerRef }
|
|
2079
|
+
]; };
|
|
2080
|
+
StepComponent.propDecorators = {
|
|
2081
|
+
onNext: [{ type: i0.Output }],
|
|
2082
|
+
onDone: [{ type: i0.Output }],
|
|
2083
|
+
onHeaderClick: [{ type: i0.Output }]
|
|
2084
|
+
};
|
|
2085
|
+
var StepperComponent = /** @class */ (function (_super) {
|
|
2086
|
+
__extends(StepperComponent, _super);
|
|
2087
|
+
function StepperComponent(dir, changeDetectorRef, elementRef, _document) {
|
|
2088
|
+
var _this = _super.call(this, dir, changeDetectorRef, elementRef, _document) || this;
|
|
2089
|
+
/** Event emitted when the current step is done transitioning in. */
|
|
2090
|
+
_this.animationDone = new i0.EventEmitter();
|
|
2091
|
+
/** Steps that belong to the current stepper, excluding ones from nested steppers. */
|
|
2092
|
+
_this.steps = new i0.QueryList();
|
|
2093
|
+
_this._animationDone = new rxjs.Subject();
|
|
2094
|
+
_this._orientation = 'vertical';
|
|
2095
|
+
return _this;
|
|
2096
|
+
}
|
|
2097
|
+
StepperComponent.prototype.ngOnInit = function () {
|
|
2098
|
+
// Only linear stepper implementation is supported
|
|
2099
|
+
_super.prototype.linear = true;
|
|
2100
|
+
};
|
|
2101
|
+
StepperComponent.prototype.ngAfterContentInit = function () {
|
|
2102
|
+
var _this = this;
|
|
2103
|
+
_super.prototype.ngAfterContentInit.call(this);
|
|
2104
|
+
this.steps.changes.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {
|
|
2105
|
+
_this._stateChanged();
|
|
2106
|
+
});
|
|
2107
|
+
this._animationDone
|
|
2108
|
+
.pipe(operators.distinctUntilChanged(function (x, y) { return x.fromState === y.fromState && x.toState === y.toState; }), operators.takeUntil(this._destroyed))
|
|
2109
|
+
.subscribe(function (event) {
|
|
2110
|
+
if (event.toState === 'current') {
|
|
2111
|
+
_this.animationDone.emit();
|
|
2112
|
+
}
|
|
2113
|
+
});
|
|
2114
|
+
};
|
|
2115
|
+
/**
|
|
2116
|
+
* Method patched to enable the closing of the last step.
|
|
2117
|
+
*/
|
|
2118
|
+
StepperComponent.prototype._getAnimationDirection = function (index) {
|
|
2119
|
+
var _a, _b;
|
|
2120
|
+
var closeLastStep = this.selectedIndex === this.steps.length - 1 && ((_a = this._steps.last) === null || _a === void 0 ? void 0 : _a.completed) && ((_b = this._steps.last) === null || _b === void 0 ? void 0 : _b.stepClosed);
|
|
2121
|
+
if (closeLastStep) {
|
|
2122
|
+
return 'next';
|
|
2123
|
+
}
|
|
2124
|
+
return _super.prototype._getAnimationDirection.call(this, index);
|
|
2125
|
+
};
|
|
2126
|
+
StepperComponent.prototype._stepIsNavigable = function (index, step) {
|
|
2127
|
+
return step.completed || this.selectedIndex === index || !this.linear;
|
|
2128
|
+
};
|
|
2129
|
+
return StepperComponent;
|
|
2130
|
+
}(stepper.CdkStepper));
|
|
2131
|
+
StepperComponent.decorators = [
|
|
2132
|
+
{ type: i0.Component, args: [{
|
|
2133
|
+
selector: 'mad-stepper',
|
|
2134
|
+
template: "<!-- Vertical stepper -->\n<ng-container>\n <div *ngFor=\"let step of steps; let i = index; let isLast = last; let isFirst = first\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step: step, i: i}\"></ng-container>\n <div class=\"vertical-content-container\" [class.mat-stepper-vertical-line]=\"!isLast\">\n <div class=\"vertical-stepper-content\" role=\"tabpanel\"\n [@stepTransition]=\"_getAnimationDirection(i)\"\n (@stepTransition.done)=\"_animationDone.next($event)\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [attr.aria-expanded]=\"selectedIndex === i\">\n <div class=\"vertical-content\">\n <ng-container [ngTemplateOutlet]=\"step.content\"\n [ngTemplateOutletContext]=\"{step: step, i: i, last: isLast, first: isFirst, nextBtnLbl: this.nextButtonLabel, doneBtnLbl: this.doneButtonLabel}\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template let-step=\"step\" let-i=\"i\" #stepTemplate>\n <mad-step-header\n class=\"mat-vertical-stepper-header\"\n (click)=\"step.selectAndMarkAsTouched(i)\"\n (keydown)=\"_onKeydown($event)\"\n [tabIndex]=\"_getFocusIndex() === i ? 0 : -1\"\n [id]=\"_getStepLabelId(i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"steps.length\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\"\n [attr.aria-disabled]=\"_stepIsNavigable(i, step) ? null : true\"\n [index]=\"i\"\n [completed]=\"step.completed\"\n [hasError]=\"step.hasError\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.stepLabel || step.label\"\n [selected]=\"selectedIndex === i\"\n [active]=\"_stepIsNavigable(i, step)\"\n [optional]=\"step.optional\"\n [closed]=\"step.stepClosed\"\n [errorMessage]=\"step.errorMessage\"></mad-step-header>\n</ng-template>\n",
|
|
2135
|
+
host: {
|
|
2136
|
+
'[class.stepper-vertical]': 'true',
|
|
2137
|
+
'[attr.aria-orientation]': '"vertical"',
|
|
2138
|
+
'role': 'tablist',
|
|
2139
|
+
},
|
|
2140
|
+
animations: [madStepperAnimations.verticalStepTransition],
|
|
2141
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
2142
|
+
providers: [{ provide: stepper.CdkStepper, useExisting: StepperComponent }],
|
|
2143
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
2144
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2145
|
+
styles: [".stepper-vertical{display:block}.mat-vertical-stepper-header{align-items:center;border:none!important;display:flex;height:10px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}.vertical-content-container{border:none}[dir=rtl] .vertical-content-container{margin-left:0;margin-right:36px}.vertical-stepper-content{outline:0;overflow:hidden}.vertical-content{padding:0 24px}.step-container{border-bottom:1px solid #d3d3d3;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3}.step-buttons,.step-content{padding:2em}"]
|
|
2146
|
+
},] }
|
|
2147
|
+
];
|
|
2148
|
+
StepperComponent.ctorParameters = function () { return [
|
|
2149
|
+
{ type: bidi.Directionality, decorators: [{ type: i0.Optional }] },
|
|
2150
|
+
{ type: i0.ChangeDetectorRef },
|
|
2151
|
+
{ type: i0.ElementRef },
|
|
2152
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
2153
|
+
]; };
|
|
2154
|
+
StepperComponent.propDecorators = {
|
|
2155
|
+
animationDone: [{ type: i0.Output }],
|
|
2156
|
+
nextButtonLabel: [{ type: i0.Input }],
|
|
2157
|
+
doneButtonLabel: [{ type: i0.Input }],
|
|
2158
|
+
_stepHeader: [{ type: i0.ViewChildren, args: [StepHeaderComponent,] }],
|
|
2159
|
+
_steps: [{ type: i0.ContentChildren, args: [StepComponent, { descendants: true },] }]
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
var StepperModule = /** @class */ (function () {
|
|
2163
|
+
function StepperModule() {
|
|
2164
|
+
}
|
|
2165
|
+
return StepperModule;
|
|
2166
|
+
}());
|
|
2167
|
+
StepperModule.decorators = [
|
|
2168
|
+
{ type: i0.NgModule, args: [{
|
|
2169
|
+
declarations: [StepperComponent, StepHeaderComponent, StepComponent],
|
|
2170
|
+
imports: [common.CommonModule, button.MatButtonModule, icon.MatIconModule, stepper.CdkStepperModule, flexLayout.FlexModule],
|
|
2171
|
+
exports: [StepperComponent, StepHeaderComponent, StepComponent],
|
|
2172
|
+
},] }
|
|
2173
|
+
];
|
|
2174
|
+
|
|
1838
2175
|
var MaterialAddonsModule = /** @class */ (function () {
|
|
1839
2176
|
function MaterialAddonsModule() {
|
|
1840
2177
|
}
|
|
@@ -1850,8 +2187,8 @@
|
|
|
1850
2187
|
NumericFieldModule,
|
|
1851
2188
|
CardModule,
|
|
1852
2189
|
QuickListModule,
|
|
1853
|
-
ThrottleClickModule
|
|
1854
|
-
]
|
|
2190
|
+
ThrottleClickModule,
|
|
2191
|
+
],
|
|
1855
2192
|
},] }
|
|
1856
2193
|
];
|
|
1857
2194
|
|
|
@@ -1874,12 +2211,17 @@
|
|
|
1874
2211
|
exports.ReadOnlyFormFieldComponent = ReadOnlyFormFieldComponent;
|
|
1875
2212
|
exports.ReadOnlyFormFieldModule = ReadOnlyFormFieldModule;
|
|
1876
2213
|
exports.ReadOnlyFormFieldWrapperComponent = ReadOnlyFormFieldWrapperComponent;
|
|
2214
|
+
exports.StepComponent = StepComponent;
|
|
2215
|
+
exports.StepHeaderComponent = StepHeaderComponent;
|
|
2216
|
+
exports.StepperComponent = StepperComponent;
|
|
2217
|
+
exports.StepperModule = StepperModule;
|
|
1877
2218
|
exports.TableModule = TableModule;
|
|
1878
2219
|
exports.ThrottleClickDirective = ThrottleClickDirective;
|
|
1879
2220
|
exports.ThrottleClickModule = ThrottleClickModule;
|
|
1880
2221
|
exports.ToolbarComponent = ToolbarComponent;
|
|
1881
2222
|
exports.ToolbarModule = ToolbarModule;
|
|
1882
2223
|
exports.ToolbarService = ToolbarService;
|
|
2224
|
+
exports.madStepperAnimations = madStepperAnimations;
|
|
1883
2225
|
exports.ɵa = PrimaryButtonComponent;
|
|
1884
2226
|
exports.ɵb = MadBasicButton;
|
|
1885
2227
|
exports.ɵc = OutlineButtonComponent;
|
|
@@ -1889,7 +2231,9 @@
|
|
|
1889
2231
|
exports.ɵg = NumericFieldDirective;
|
|
1890
2232
|
exports.ɵh = CardComponent;
|
|
1891
2233
|
exports.ɵi = QuickListComponent;
|
|
1892
|
-
exports.ɵj =
|
|
2234
|
+
exports.ɵj = BaseQuickListComponent;
|
|
2235
|
+
exports.ɵk = QuickListCompactComponent;
|
|
2236
|
+
exports.ɵl = TableComponent;
|
|
1893
2237
|
|
|
1894
2238
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1895
2239
|
|