@porscheinformatik/material-addons 10.4.0 → 10.4.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 +3 -1
- 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/quick-list/base-quick-list.component.js +4 -2
- package/fesm2015/porscheinformatik-material-addons.js +3 -1
- package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
- package/lib/quick-list/base-quick-list.component.d.ts +1 -0
- package/package.json +1 -1
- package/porscheinformatik-material-addons.metadata.json +1 -1
|
@@ -1661,6 +1661,7 @@
|
|
|
1661
1661
|
this.allItems = [];
|
|
1662
1662
|
this.addLabel = 'NOT SET';
|
|
1663
1663
|
this.addPossible = true;
|
|
1664
|
+
this.removePossible = true;
|
|
1664
1665
|
this.blankItem = {};
|
|
1665
1666
|
this.added = new i0.EventEmitter();
|
|
1666
1667
|
this.removed = new i0.EventEmitter();
|
|
@@ -1706,7 +1707,7 @@
|
|
|
1706
1707
|
return this.addPossible && (!this.maxItems || this.allItems.length < this.maxItems);
|
|
1707
1708
|
};
|
|
1708
1709
|
BaseQuickListComponent.prototype.isDeleteAllowed = function () {
|
|
1709
|
-
return !this.minItems || this.allItems.length > this.minItems;
|
|
1710
|
+
return this.removePossible && (!this.minItems || this.allItems.length > this.minItems);
|
|
1710
1711
|
};
|
|
1711
1712
|
BaseQuickListComponent.prototype.interalAddItem = function () {
|
|
1712
1713
|
if (this.isAddAllowed()) {
|
|
@@ -1736,6 +1737,7 @@
|
|
|
1736
1737
|
allItems: [{ type: i0.Input }],
|
|
1737
1738
|
addLabel: [{ type: i0.Input }],
|
|
1738
1739
|
addPossible: [{ type: i0.Input }],
|
|
1740
|
+
removePossible: [{ type: i0.Input }],
|
|
1739
1741
|
blankItem: [{ type: i0.Input }],
|
|
1740
1742
|
readonly: [{ type: i0.Input }],
|
|
1741
1743
|
maxItems: [{ type: i0.Input }],
|