ngx-ode-ui 3.12.0-dev.1 → 3.12.0-dev.6
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 +166 -5
- 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/list.component.js +9 -2
- package/esm2015/lib/components/list-checkable/list-checkable.component.js +137 -0
- package/esm2015/lib/components/search-input/search-input.component.js +11 -3
- 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/list.component.js +9 -2
- package/esm5/lib/components/list-checkable/list-checkable.component.js +148 -0
- package/esm5/lib/components/search-input/search-input.component.js +12 -5
- 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 +156 -4
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +166 -6
- package/fesm5/ngx-ode-ui.js.map +1 -1
- package/lib/components/list/list.component.d.ts +2 -0
- package/lib/components/list-checkable/list-checkable.component.d.ts +55 -0
- package/lib/components/search-input/search-input.component.d.ts +2 -0
- package/ngx-ode-ui.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1577,6 +1577,7 @@
|
|
|
1577
1577
|
_this.model = [];
|
|
1578
1578
|
_this.searchPlaceholder = 'search';
|
|
1579
1579
|
_this.noResultsLabel = 'list.results.no.items';
|
|
1580
|
+
_this.searchInput = false;
|
|
1580
1581
|
_this.inputChange = new core.EventEmitter();
|
|
1581
1582
|
_this.onSelect = new core.EventEmitter();
|
|
1582
1583
|
_this.listChange = new core.EventEmitter();
|
|
@@ -1619,7 +1620,7 @@
|
|
|
1619
1620
|
ListComponent.decorators = [
|
|
1620
1621
|
{ type: core.Component, args: [{
|
|
1621
1622
|
selector: 'ode-list',
|
|
1622
|
-
template: "<ode-search-input
|
|
1623
|
+
template: "<ode-search-input\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (onChange)=\"inputChange.emit($event)\"></ode-search-input>\n<div class=\"toolbar\">\n <ng-content select=\"[toolbar]\"></ng-content>\n</div>\n<div class=\"list-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n <ul>\n <li *ngFor=\"let item of model | filter: filters | filter: inputFilter | store:self:'storedElements' | orderBy: sort | slice: 0:limit\"\n (click)=\"onSelect.emit(item)\"\n [class.selected]=\"isSelected(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n class=\"lct-list-item\">\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\">\n </ng-template>\n </li>\n </ul>\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\">{{ noResultsLabel | translate }}</li>\n </ul>\n</div>\n",
|
|
1623
1624
|
styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{cursor:pointer;border-top:1px solid #ddd;padding:10px}ul li.disabled{pointer-events:none}"]
|
|
1624
1625
|
}] }
|
|
1625
1626
|
];
|
|
@@ -1635,6 +1636,8 @@
|
|
|
1635
1636
|
limit: [{ type: core.Input }],
|
|
1636
1637
|
searchPlaceholder: [{ type: core.Input }],
|
|
1637
1638
|
noResultsLabel: [{ type: core.Input }],
|
|
1639
|
+
searchInput: [{ type: core.Input }],
|
|
1640
|
+
searchSubmit: [{ type: core.Input }],
|
|
1638
1641
|
inputChange: [{ type: core.Output }],
|
|
1639
1642
|
onSelect: [{ type: core.Output }],
|
|
1640
1643
|
listChange: [{ type: core.Output }],
|
|
@@ -1666,6 +1669,10 @@
|
|
|
1666
1669
|
/** @type {?} */
|
|
1667
1670
|
ListComponent.prototype.noResultsLabel;
|
|
1668
1671
|
/** @type {?} */
|
|
1672
|
+
ListComponent.prototype.searchInput;
|
|
1673
|
+
/** @type {?} */
|
|
1674
|
+
ListComponent.prototype.searchSubmit;
|
|
1675
|
+
/** @type {?} */
|
|
1669
1676
|
ListComponent.prototype.inputChange;
|
|
1670
1677
|
/** @type {?} */
|
|
1671
1678
|
ListComponent.prototype.onSelect;
|
|
@@ -1683,6 +1690,150 @@
|
|
|
1683
1690
|
ListComponent.prototype.ngClass;
|
|
1684
1691
|
}
|
|
1685
1692
|
|
|
1693
|
+
/**
|
|
1694
|
+
* @fileoverview added by tsickle
|
|
1695
|
+
* Generated from: lib/components/list-checkable/list-checkable.component.ts
|
|
1696
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1697
|
+
*/
|
|
1698
|
+
var ListCheckableComponent = /** @class */ (function (_super) {
|
|
1699
|
+
__extends(ListCheckableComponent, _super);
|
|
1700
|
+
function ListCheckableComponent(injector) {
|
|
1701
|
+
var _this = _super.call(this, injector) || this;
|
|
1702
|
+
_this.model = [];
|
|
1703
|
+
_this.noResultsLabel = 'list.results.no.items';
|
|
1704
|
+
_this.readOnly = false;
|
|
1705
|
+
_this.onCheck = new core.EventEmitter();
|
|
1706
|
+
_this.listChange = new core.EventEmitter();
|
|
1707
|
+
_this.scrolledDown = new core.EventEmitter();
|
|
1708
|
+
_this.areAllChecked = (/**
|
|
1709
|
+
* @return {?}
|
|
1710
|
+
*/
|
|
1711
|
+
function () { return false; });
|
|
1712
|
+
_this.isChecked = (/**
|
|
1713
|
+
* @param {?=} arg
|
|
1714
|
+
* @return {?}
|
|
1715
|
+
*/
|
|
1716
|
+
function (arg) { return false; });
|
|
1717
|
+
_this.isDisabled = (/**
|
|
1718
|
+
* @param {?=} arg
|
|
1719
|
+
* @return {?}
|
|
1720
|
+
*/
|
|
1721
|
+
function (arg) { return false; });
|
|
1722
|
+
_this.ngClass = (/**
|
|
1723
|
+
* @param {?=} arg
|
|
1724
|
+
* @return {?}
|
|
1725
|
+
*/
|
|
1726
|
+
function (arg) { return ({}); });
|
|
1727
|
+
/* Store pipe */
|
|
1728
|
+
_this.self = _this;
|
|
1729
|
+
_this._storedElements = [];
|
|
1730
|
+
return _this;
|
|
1731
|
+
}
|
|
1732
|
+
Object.defineProperty(ListCheckableComponent.prototype, "storedElements", {
|
|
1733
|
+
get: /**
|
|
1734
|
+
* @return {?}
|
|
1735
|
+
*/
|
|
1736
|
+
function () {
|
|
1737
|
+
return this._storedElements;
|
|
1738
|
+
},
|
|
1739
|
+
set: /**
|
|
1740
|
+
* @param {?} list
|
|
1741
|
+
* @return {?}
|
|
1742
|
+
*/
|
|
1743
|
+
function (list) {
|
|
1744
|
+
this._storedElements = list;
|
|
1745
|
+
this.listChange.emit(list);
|
|
1746
|
+
},
|
|
1747
|
+
enumerable: true,
|
|
1748
|
+
configurable: true
|
|
1749
|
+
});
|
|
1750
|
+
/**
|
|
1751
|
+
* @param {?} checkAll
|
|
1752
|
+
* @return {?}
|
|
1753
|
+
*/
|
|
1754
|
+
ListCheckableComponent.prototype.toggleAll = /**
|
|
1755
|
+
* @param {?} checkAll
|
|
1756
|
+
* @return {?}
|
|
1757
|
+
*/
|
|
1758
|
+
function (checkAll) {
|
|
1759
|
+
var _this = this;
|
|
1760
|
+
this.model.forEach((/**
|
|
1761
|
+
* @param {?} item
|
|
1762
|
+
* @return {?}
|
|
1763
|
+
*/
|
|
1764
|
+
function (item) {
|
|
1765
|
+
/** @type {?} */
|
|
1766
|
+
var isChecked = _this.isChecked(item);
|
|
1767
|
+
if (!_this.isDisabled(item)
|
|
1768
|
+
&& ((isChecked && !checkAll) || (!isChecked && checkAll))) {
|
|
1769
|
+
_this.onCheck.emit({ item: item, checked: checkAll });
|
|
1770
|
+
}
|
|
1771
|
+
}));
|
|
1772
|
+
};
|
|
1773
|
+
ListCheckableComponent.decorators = [
|
|
1774
|
+
{ type: core.Component, args: [{
|
|
1775
|
+
selector: 'ode-list-checkable',
|
|
1776
|
+
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",
|
|
1777
|
+
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}"]
|
|
1778
|
+
}] }
|
|
1779
|
+
];
|
|
1780
|
+
/** @nocollapse */
|
|
1781
|
+
ListCheckableComponent.ctorParameters = function () { return [
|
|
1782
|
+
{ type: core.Injector }
|
|
1783
|
+
]; };
|
|
1784
|
+
ListCheckableComponent.propDecorators = {
|
|
1785
|
+
model: [{ type: core.Input }],
|
|
1786
|
+
filters: [{ type: core.Input }],
|
|
1787
|
+
sort: [{ type: core.Input }],
|
|
1788
|
+
limit: [{ type: core.Input }],
|
|
1789
|
+
noResultsLabel: [{ type: core.Input }],
|
|
1790
|
+
readOnly: [{ type: core.Input }],
|
|
1791
|
+
onCheck: [{ type: core.Output }],
|
|
1792
|
+
listChange: [{ type: core.Output }],
|
|
1793
|
+
scrolledDown: [{ type: core.Output }],
|
|
1794
|
+
templateRef: [{ type: core.ContentChild, args: [core.TemplateRef, { static: false },] }],
|
|
1795
|
+
areAllChecked: [{ type: core.Input }],
|
|
1796
|
+
isChecked: [{ type: core.Input }],
|
|
1797
|
+
isDisabled: [{ type: core.Input }],
|
|
1798
|
+
ngClass: [{ type: core.Input }]
|
|
1799
|
+
};
|
|
1800
|
+
return ListCheckableComponent;
|
|
1801
|
+
}(ngxOdeCore.OdeComponent));
|
|
1802
|
+
if (false) {
|
|
1803
|
+
/** @type {?} */
|
|
1804
|
+
ListCheckableComponent.prototype.model;
|
|
1805
|
+
/** @type {?} */
|
|
1806
|
+
ListCheckableComponent.prototype.filters;
|
|
1807
|
+
/** @type {?} */
|
|
1808
|
+
ListCheckableComponent.prototype.sort;
|
|
1809
|
+
/** @type {?} */
|
|
1810
|
+
ListCheckableComponent.prototype.limit;
|
|
1811
|
+
/** @type {?} */
|
|
1812
|
+
ListCheckableComponent.prototype.noResultsLabel;
|
|
1813
|
+
/** @type {?} */
|
|
1814
|
+
ListCheckableComponent.prototype.readOnly;
|
|
1815
|
+
/** @type {?} */
|
|
1816
|
+
ListCheckableComponent.prototype.onCheck;
|
|
1817
|
+
/** @type {?} */
|
|
1818
|
+
ListCheckableComponent.prototype.listChange;
|
|
1819
|
+
/** @type {?} */
|
|
1820
|
+
ListCheckableComponent.prototype.scrolledDown;
|
|
1821
|
+
/** @type {?} */
|
|
1822
|
+
ListCheckableComponent.prototype.templateRef;
|
|
1823
|
+
/** @type {?} */
|
|
1824
|
+
ListCheckableComponent.prototype.areAllChecked;
|
|
1825
|
+
/** @type {?} */
|
|
1826
|
+
ListCheckableComponent.prototype.isChecked;
|
|
1827
|
+
/** @type {?} */
|
|
1828
|
+
ListCheckableComponent.prototype.isDisabled;
|
|
1829
|
+
/** @type {?} */
|
|
1830
|
+
ListCheckableComponent.prototype.ngClass;
|
|
1831
|
+
/** @type {?} */
|
|
1832
|
+
ListCheckableComponent.prototype.self;
|
|
1833
|
+
/** @type {?} */
|
|
1834
|
+
ListCheckableComponent.prototype._storedElements;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1686
1837
|
/**
|
|
1687
1838
|
* @fileoverview added by tsickle
|
|
1688
1839
|
* Generated from: lib/components/message-box/message-box.component.ts
|
|
@@ -2985,6 +3136,8 @@
|
|
|
2985
3136
|
var _this = _super.call(this, injector) || this;
|
|
2986
3137
|
_this._elRef = _elRef;
|
|
2987
3138
|
_this._renderer = _renderer;
|
|
3139
|
+
/* Inputs / Outputs / View */
|
|
3140
|
+
_this.searchInput = false;
|
|
2988
3141
|
_this._delay = 200;
|
|
2989
3142
|
_this.onChange = new core.EventEmitter();
|
|
2990
3143
|
/* Internal logic */
|
|
@@ -2998,9 +3151,7 @@
|
|
|
2998
3151
|
function () {
|
|
2999
3152
|
return this._delay;
|
|
3000
3153
|
},
|
|
3001
|
-
|
|
3002
|
-
set: /* Inputs / Outputs / View */
|
|
3003
|
-
/**
|
|
3154
|
+
set: /**
|
|
3004
3155
|
* @param {?} d
|
|
3005
3156
|
* @return {?}
|
|
3006
3157
|
*/
|
|
@@ -3090,7 +3241,8 @@
|
|
|
3090
3241
|
SearchInputComponent.decorators = [
|
|
3091
3242
|
{ type: core.Component, args: [{
|
|
3092
3243
|
selector: 'ode-search-input',
|
|
3093
|
-
template: "<input type=\"search\" #searchBox (input)=\"search(searchBox.value)\"
|
|
3244
|
+
template: "<form\n *ngIf=\"searchInput\"\n class=\"search-container\"\n (ngSubmit)=\"searchSubmit()\">\n <input\n #searchBox\n class=\"search-input\"\n name=\"searchTerm\"\n type=\"search\"\n (input)=\"search(searchBox.value)\" />\n <button class=\"search-button\">\n <i class=\"fa fa-search is-size-4 search-icon\"></i>\n </button>\n</form>\n\n<input *ngIf=\"!searchInput\" type=\"search\" #searchBox (input)=\"search(searchBox.value)\"/>",
|
|
3245
|
+
styles: [":host .search-container{margin:0;display:flex}:host .search-input{border:1px solid rgba(0,0,0,.1)}:host .search-icon{padding-left:0}:host .search-button{margin:0;background:#ff8352;color:#fff}"]
|
|
3094
3246
|
}] }
|
|
3095
3247
|
];
|
|
3096
3248
|
/** @nocollapse */
|
|
@@ -3100,6 +3252,8 @@
|
|
|
3100
3252
|
{ type: core.Renderer2 }
|
|
3101
3253
|
]; };
|
|
3102
3254
|
SearchInputComponent.propDecorators = {
|
|
3255
|
+
searchInput: [{ type: core.Input }],
|
|
3256
|
+
searchSubmit: [{ type: core.Input }],
|
|
3103
3257
|
delay: [{ type: core.Input }],
|
|
3104
3258
|
onChange: [{ type: core.Output }],
|
|
3105
3259
|
searchBox: [{ type: core.ViewChild, args: ['searchBox', { static: false },] }]
|
|
@@ -3107,6 +3261,10 @@
|
|
|
3107
3261
|
return SearchInputComponent;
|
|
3108
3262
|
}(ngxOdeCore.OdeComponent));
|
|
3109
3263
|
if (false) {
|
|
3264
|
+
/** @type {?} */
|
|
3265
|
+
SearchInputComponent.prototype.searchInput;
|
|
3266
|
+
/** @type {?} */
|
|
3267
|
+
SearchInputComponent.prototype.searchSubmit;
|
|
3110
3268
|
/**
|
|
3111
3269
|
* @type {?}
|
|
3112
3270
|
* @private
|
|
@@ -5239,6 +5397,7 @@
|
|
|
5239
5397
|
LightBoxComponent,
|
|
5240
5398
|
LightboxConfirmComponent,
|
|
5241
5399
|
ListComponent,
|
|
5400
|
+
ListCheckableComponent,
|
|
5242
5401
|
MonoSelectComponent,
|
|
5243
5402
|
MultiSelectComponent,
|
|
5244
5403
|
MultiComboComponent,
|
|
@@ -5290,6 +5449,7 @@
|
|
|
5290
5449
|
LightBoxComponent,
|
|
5291
5450
|
LightboxConfirmComponent,
|
|
5292
5451
|
ListComponent,
|
|
5452
|
+
ListCheckableComponent,
|
|
5293
5453
|
MonoSelectComponent,
|
|
5294
5454
|
MultiSelectComponent,
|
|
5295
5455
|
MultiComboComponent,
|
|
@@ -5355,6 +5515,7 @@
|
|
|
5355
5515
|
exports.LightBoxComponent = LightBoxComponent;
|
|
5356
5516
|
exports.LightboxConfirmComponent = LightboxConfirmComponent;
|
|
5357
5517
|
exports.LimitPipe = LimitPipe;
|
|
5518
|
+
exports.ListCheckableComponent = ListCheckableComponent;
|
|
5358
5519
|
exports.ListComponent = ListComponent;
|
|
5359
5520
|
exports.LocalizedDatePipe = LocalizedDatePipe;
|
|
5360
5521
|
exports.MessageBoxComponent = MessageBoxComponent;
|