ngx-ode-ui 3.12.0-dev.3 → 3.12.0-dev.4
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/ngx-ode-ui.umd.js +147 -0
- package/bundles/ngx-ode-ui.umd.js.map +1 -1
- package/bundles/ngx-ode-ui.umd.min.js +2 -2
- package/bundles/ngx-ode-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/list-checkable/list-checkable.component.js +137 -0
- package/esm2015/lib/ngx-ode-ui.module.js +4 -1
- package/esm2015/ngx-ode-ui.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/esm5/lib/components/list-checkable/list-checkable.component.js +148 -0
- package/esm5/lib/ngx-ode-ui.module.js +4 -1
- package/esm5/ngx-ode-ui.js +2 -2
- package/esm5/public-api.js +2 -1
- package/fesm2015/ngx-ode-ui.js +138 -1
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +147 -1
- package/fesm5/ngx-ode-ui.js.map +1 -1
- package/lib/components/list-checkable/list-checkable.component.d.ts +55 -0
- package/ngx-ode-ui.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1687,6 +1687,150 @@
|
|
|
1687
1687
|
ListComponent.prototype.ngClass;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
+
/**
|
|
1691
|
+
* @fileoverview added by tsickle
|
|
1692
|
+
* Generated from: lib/components/list-checkable/list-checkable.component.ts
|
|
1693
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1694
|
+
*/
|
|
1695
|
+
var ListCheckableComponent = /** @class */ (function (_super) {
|
|
1696
|
+
__extends(ListCheckableComponent, _super);
|
|
1697
|
+
function ListCheckableComponent(injector) {
|
|
1698
|
+
var _this = _super.call(this, injector) || this;
|
|
1699
|
+
_this.model = [];
|
|
1700
|
+
_this.noResultsLabel = 'list.results.no.items';
|
|
1701
|
+
_this.readOnly = false;
|
|
1702
|
+
_this.onCheck = new core.EventEmitter();
|
|
1703
|
+
_this.listChange = new core.EventEmitter();
|
|
1704
|
+
_this.scrolledDown = new core.EventEmitter();
|
|
1705
|
+
_this.areAllChecked = (/**
|
|
1706
|
+
* @return {?}
|
|
1707
|
+
*/
|
|
1708
|
+
function () { return false; });
|
|
1709
|
+
_this.isChecked = (/**
|
|
1710
|
+
* @param {?=} arg
|
|
1711
|
+
* @return {?}
|
|
1712
|
+
*/
|
|
1713
|
+
function (arg) { return false; });
|
|
1714
|
+
_this.isDisabled = (/**
|
|
1715
|
+
* @param {?=} arg
|
|
1716
|
+
* @return {?}
|
|
1717
|
+
*/
|
|
1718
|
+
function (arg) { return false; });
|
|
1719
|
+
_this.ngClass = (/**
|
|
1720
|
+
* @param {?=} arg
|
|
1721
|
+
* @return {?}
|
|
1722
|
+
*/
|
|
1723
|
+
function (arg) { return ({}); });
|
|
1724
|
+
/* Store pipe */
|
|
1725
|
+
_this.self = _this;
|
|
1726
|
+
_this._storedElements = [];
|
|
1727
|
+
return _this;
|
|
1728
|
+
}
|
|
1729
|
+
Object.defineProperty(ListCheckableComponent.prototype, "storedElements", {
|
|
1730
|
+
get: /**
|
|
1731
|
+
* @return {?}
|
|
1732
|
+
*/
|
|
1733
|
+
function () {
|
|
1734
|
+
return this._storedElements;
|
|
1735
|
+
},
|
|
1736
|
+
set: /**
|
|
1737
|
+
* @param {?} list
|
|
1738
|
+
* @return {?}
|
|
1739
|
+
*/
|
|
1740
|
+
function (list) {
|
|
1741
|
+
this._storedElements = list;
|
|
1742
|
+
this.listChange.emit(list);
|
|
1743
|
+
},
|
|
1744
|
+
enumerable: true,
|
|
1745
|
+
configurable: true
|
|
1746
|
+
});
|
|
1747
|
+
/**
|
|
1748
|
+
* @param {?} checkAll
|
|
1749
|
+
* @return {?}
|
|
1750
|
+
*/
|
|
1751
|
+
ListCheckableComponent.prototype.toggleAll = /**
|
|
1752
|
+
* @param {?} checkAll
|
|
1753
|
+
* @return {?}
|
|
1754
|
+
*/
|
|
1755
|
+
function (checkAll) {
|
|
1756
|
+
var _this = this;
|
|
1757
|
+
this.model.forEach((/**
|
|
1758
|
+
* @param {?} item
|
|
1759
|
+
* @return {?}
|
|
1760
|
+
*/
|
|
1761
|
+
function (item) {
|
|
1762
|
+
/** @type {?} */
|
|
1763
|
+
var isChecked = _this.isChecked(item);
|
|
1764
|
+
if (!_this.isDisabled(item)
|
|
1765
|
+
&& ((isChecked && !checkAll) || (!isChecked && checkAll))) {
|
|
1766
|
+
_this.onCheck.emit({ item: item, checked: checkAll });
|
|
1767
|
+
}
|
|
1768
|
+
}));
|
|
1769
|
+
};
|
|
1770
|
+
ListCheckableComponent.decorators = [
|
|
1771
|
+
{ type: core.Component, args: [{
|
|
1772
|
+
selector: 'ode-list-checkable',
|
|
1773
|
+
template: "<div class=\"list-checkable-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\"><span>{{ noResultsLabel | translate }}</span></li>\n </ul>\n \n <ul>\n <li class=\"select-all\" \n [class.checked]=\"areAllChecked()\"\n *ngIf=\"!readOnly\">\n <label>\n <span>{{(areAllChecked() ? 'ux.multiselect.deselect-all' : 'ux.multiselect.select-all') | translate}}</span>\n <input type=\"checkbox\" [checked]=\"areAllChecked()\" (change)=\"toggleAll($event.target.checked)\" />\n </label>\n </li>\n\n <li class=\"lct-list-checkable-item\" \n [class.checked]=\"isChecked(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n *ngFor=\"let item of model | filter: filters | store:self:'storedElements' | orderBy: sort | slice: 0:limit\">\n <label>\n <span>\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\"></ng-template> \n </span>\n <input *ngIf=\"!readOnly\" type=\"checkbox\" \n [disabled]=\"isDisabled(item)\"\n [checked]=\"isChecked(item)\"\n (change)=\"onCheck.emit({item:item, checked:$event.target.checked})\"/>\n </label>\n </li>\n </ul>\n\n</div>\n",
|
|
1774
|
+
styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{border-top:1px solid #ddd;width:-webkit-fill-available;width:-moz-available;display:flex}ul li:not(.checked){color:#939393}ul li.disabled{pointer-events:none}ul li.select-all{background-color:#ff83520a;color:#5b6472}ul li.select-all span{text-align:right}ul li label{cursor:pointer;width:100%;display:flex}ul li label:hover{background-color:#eaedf2}ul li label span{padding:7px 15px;width:100%}ul li label input[type=checkbox]{margin-right:15px;-ms-grid-row-align:center;align-self:center}"]
|
|
1775
|
+
}] }
|
|
1776
|
+
];
|
|
1777
|
+
/** @nocollapse */
|
|
1778
|
+
ListCheckableComponent.ctorParameters = function () { return [
|
|
1779
|
+
{ type: core.Injector }
|
|
1780
|
+
]; };
|
|
1781
|
+
ListCheckableComponent.propDecorators = {
|
|
1782
|
+
model: [{ type: core.Input }],
|
|
1783
|
+
filters: [{ type: core.Input }],
|
|
1784
|
+
sort: [{ type: core.Input }],
|
|
1785
|
+
limit: [{ type: core.Input }],
|
|
1786
|
+
noResultsLabel: [{ type: core.Input }],
|
|
1787
|
+
readOnly: [{ type: core.Input }],
|
|
1788
|
+
onCheck: [{ type: core.Output }],
|
|
1789
|
+
listChange: [{ type: core.Output }],
|
|
1790
|
+
scrolledDown: [{ type: core.Output }],
|
|
1791
|
+
templateRef: [{ type: core.ContentChild, args: [core.TemplateRef, { static: false },] }],
|
|
1792
|
+
areAllChecked: [{ type: core.Input }],
|
|
1793
|
+
isChecked: [{ type: core.Input }],
|
|
1794
|
+
isDisabled: [{ type: core.Input }],
|
|
1795
|
+
ngClass: [{ type: core.Input }]
|
|
1796
|
+
};
|
|
1797
|
+
return ListCheckableComponent;
|
|
1798
|
+
}(ngxOdeCore.OdeComponent));
|
|
1799
|
+
if (false) {
|
|
1800
|
+
/** @type {?} */
|
|
1801
|
+
ListCheckableComponent.prototype.model;
|
|
1802
|
+
/** @type {?} */
|
|
1803
|
+
ListCheckableComponent.prototype.filters;
|
|
1804
|
+
/** @type {?} */
|
|
1805
|
+
ListCheckableComponent.prototype.sort;
|
|
1806
|
+
/** @type {?} */
|
|
1807
|
+
ListCheckableComponent.prototype.limit;
|
|
1808
|
+
/** @type {?} */
|
|
1809
|
+
ListCheckableComponent.prototype.noResultsLabel;
|
|
1810
|
+
/** @type {?} */
|
|
1811
|
+
ListCheckableComponent.prototype.readOnly;
|
|
1812
|
+
/** @type {?} */
|
|
1813
|
+
ListCheckableComponent.prototype.onCheck;
|
|
1814
|
+
/** @type {?} */
|
|
1815
|
+
ListCheckableComponent.prototype.listChange;
|
|
1816
|
+
/** @type {?} */
|
|
1817
|
+
ListCheckableComponent.prototype.scrolledDown;
|
|
1818
|
+
/** @type {?} */
|
|
1819
|
+
ListCheckableComponent.prototype.templateRef;
|
|
1820
|
+
/** @type {?} */
|
|
1821
|
+
ListCheckableComponent.prototype.areAllChecked;
|
|
1822
|
+
/** @type {?} */
|
|
1823
|
+
ListCheckableComponent.prototype.isChecked;
|
|
1824
|
+
/** @type {?} */
|
|
1825
|
+
ListCheckableComponent.prototype.isDisabled;
|
|
1826
|
+
/** @type {?} */
|
|
1827
|
+
ListCheckableComponent.prototype.ngClass;
|
|
1828
|
+
/** @type {?} */
|
|
1829
|
+
ListCheckableComponent.prototype.self;
|
|
1830
|
+
/** @type {?} */
|
|
1831
|
+
ListCheckableComponent.prototype._storedElements;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1690
1834
|
/**
|
|
1691
1835
|
* @fileoverview added by tsickle
|
|
1692
1836
|
* Generated from: lib/components/message-box/message-box.component.ts
|
|
@@ -5243,6 +5387,7 @@
|
|
|
5243
5387
|
LightBoxComponent,
|
|
5244
5388
|
LightboxConfirmComponent,
|
|
5245
5389
|
ListComponent,
|
|
5390
|
+
ListCheckableComponent,
|
|
5246
5391
|
MonoSelectComponent,
|
|
5247
5392
|
MultiSelectComponent,
|
|
5248
5393
|
MultiComboComponent,
|
|
@@ -5294,6 +5439,7 @@
|
|
|
5294
5439
|
LightBoxComponent,
|
|
5295
5440
|
LightboxConfirmComponent,
|
|
5296
5441
|
ListComponent,
|
|
5442
|
+
ListCheckableComponent,
|
|
5297
5443
|
MonoSelectComponent,
|
|
5298
5444
|
MultiSelectComponent,
|
|
5299
5445
|
MultiComboComponent,
|
|
@@ -5359,6 +5505,7 @@
|
|
|
5359
5505
|
exports.LightBoxComponent = LightBoxComponent;
|
|
5360
5506
|
exports.LightboxConfirmComponent = LightboxConfirmComponent;
|
|
5361
5507
|
exports.LimitPipe = LimitPipe;
|
|
5508
|
+
exports.ListCheckableComponent = ListCheckableComponent;
|
|
5362
5509
|
exports.ListComponent = ListComponent;
|
|
5363
5510
|
exports.LocalizedDatePipe = LocalizedDatePipe;
|
|
5364
5511
|
exports.MessageBoxComponent = MessageBoxComponent;
|