ngx-ode-ui 3.12.0-dev.15 → 3.12.0-dev.18
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 +14 -3
- package/bundles/ngx-ode-ui.umd.js.map +1 -1
- package/bundles/ngx-ode-ui.umd.min.js +1 -1
- package/bundles/ngx-ode-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/list/list.component.js +10 -3
- package/esm2015/lib/components/search-input/search-input.component.js +6 -2
- package/esm5/lib/components/list/list.component.js +10 -3
- package/esm5/lib/components/search-input/search-input.component.js +6 -2
- package/fesm2015/ngx-ode-ui.js +14 -3
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +14 -3
- package/fesm5/ngx-ode-ui.js.map +1 -1
- package/lib/components/list/list.component.d.ts +2 -0
- package/lib/components/search-input/search-input.component.d.ts +1 -0
- package/ngx-ode-ui.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1578,6 +1578,7 @@
|
|
|
1578
1578
|
_this.noResultsLabel = 'list.results.no.items';
|
|
1579
1579
|
_this.placeholder = 'list.placeholder';
|
|
1580
1580
|
_this.isSearchActive = true;
|
|
1581
|
+
_this.isSearchButtonDisabled = false;
|
|
1581
1582
|
_this.searchInput = false;
|
|
1582
1583
|
_this.inputChange = new core.EventEmitter();
|
|
1583
1584
|
_this.onSelect = new core.EventEmitter();
|
|
@@ -1621,8 +1622,8 @@
|
|
|
1621
1622
|
ListComponent.decorators = [
|
|
1622
1623
|
{ type: core.Component, args: [{
|
|
1623
1624
|
selector: 'ode-list',
|
|
1624
|
-
template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (onChange)=\"inputChange.emit($event)\"
|
|
1625
|
-
styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{cursor:pointer;border-top:1px solid #ddd;padding:10px}ul li.no-results{padding:50px;text-align:center;font-style:italic}ul li.no-results:hover{cursor:default!important;background-color:inherit!important}ul li.placeholder{color:#aaa;padding:2rem;text-align:left}ul li.placeholder:hover{cursor:default!important;background-color:inherit!important}ul li.disabled{pointer-events:none}
|
|
1625
|
+
template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [isSearchButtonDisabled]=\"isSearchButtonDisabled\"\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [delay]=\"searchDelay\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (onChange)=\"inputChange.emit($event)\"\n>\n</ode-search-input>\n\n<div class=\"toolbar\">\n <ng-content select=\"[toolbar]\"></ng-content>\n</div>\n\n<div\n class=\"list-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\"\n>\n <ul>\n <li\n *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 >\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\">\n </ng-template>\n </li>\n </ul>\n\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\">{{ noResultsLabel | translate }}</li>\n </ul>\n\n <ul *ngIf=\"!model\">\n <li class=\"placeholder\">{{ placeholder | translate }}</li>\n </ul>\n</div>\n",
|
|
1626
|
+
styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{cursor:pointer;border-top:1px solid #ddd;padding:10px}ul li.no-results{padding:50px;text-align:center;font-style:italic}ul li.no-results:hover{cursor:default!important;background-color:inherit!important}ul li.placeholder{color:#aaa;padding:2rem;text-align:left}ul li.placeholder:hover{cursor:default!important;background-color:inherit!important}ul li.disabled{pointer-events:none}"]
|
|
1626
1627
|
}] }
|
|
1627
1628
|
];
|
|
1628
1629
|
/** @nocollapse */
|
|
@@ -1639,7 +1640,9 @@
|
|
|
1639
1640
|
noResultsLabel: [{ type: core.Input }],
|
|
1640
1641
|
placeholder: [{ type: core.Input }],
|
|
1641
1642
|
isSearchActive: [{ type: core.Input }],
|
|
1643
|
+
isSearchButtonDisabled: [{ type: core.Input }],
|
|
1642
1644
|
searchInput: [{ type: core.Input }],
|
|
1645
|
+
searchDelay: [{ type: core.Input }],
|
|
1643
1646
|
searchSubmit: [{ type: core.Input }],
|
|
1644
1647
|
inputChange: [{ type: core.Output }],
|
|
1645
1648
|
onSelect: [{ type: core.Output }],
|
|
@@ -1676,8 +1679,12 @@
|
|
|
1676
1679
|
/** @type {?} */
|
|
1677
1680
|
ListComponent.prototype.isSearchActive;
|
|
1678
1681
|
/** @type {?} */
|
|
1682
|
+
ListComponent.prototype.isSearchButtonDisabled;
|
|
1683
|
+
/** @type {?} */
|
|
1679
1684
|
ListComponent.prototype.searchInput;
|
|
1680
1685
|
/** @type {?} */
|
|
1686
|
+
ListComponent.prototype.searchDelay;
|
|
1687
|
+
/** @type {?} */
|
|
1681
1688
|
ListComponent.prototype.searchSubmit;
|
|
1682
1689
|
/** @type {?} */
|
|
1683
1690
|
ListComponent.prototype.inputChange;
|
|
@@ -3145,6 +3152,7 @@
|
|
|
3145
3152
|
_this._renderer = _renderer;
|
|
3146
3153
|
/* Inputs / Outputs / View */
|
|
3147
3154
|
_this.isSearchActive = false;
|
|
3155
|
+
_this.isSearchButtonDisabled = false;
|
|
3148
3156
|
_this.searchInput = false;
|
|
3149
3157
|
_this._delay = 200;
|
|
3150
3158
|
_this.onChange = new core.EventEmitter();
|
|
@@ -3249,7 +3257,7 @@
|
|
|
3249
3257
|
SearchInputComponent.decorators = [
|
|
3250
3258
|
{ type: core.Component, args: [{
|
|
3251
3259
|
selector: 'ode-search-input',
|
|
3252
|
-
template: "<form\n class=\"search-container\"\n (ngSubmit)=\"searchInput && 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\" *ngIf=\"searchInput\">\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)\"/> -->",
|
|
3260
|
+
template: "<form\n class=\"search-container\"\n (ngSubmit)=\"searchInput && 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\" *ngIf=\"searchInput\" [attr.disabled]=\"isSearchButtonDisabled ? true : null\">\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)\"/> -->",
|
|
3253
3261
|
styles: [":host .search-container{margin:0;display:flex}:host .search-icon{padding-left:0}:host .search-button{margin:0;background:#ff8352;color:#fff}"]
|
|
3254
3262
|
}] }
|
|
3255
3263
|
];
|
|
@@ -3261,6 +3269,7 @@
|
|
|
3261
3269
|
]; };
|
|
3262
3270
|
SearchInputComponent.propDecorators = {
|
|
3263
3271
|
isSearchActive: [{ type: core.Input }],
|
|
3272
|
+
isSearchButtonDisabled: [{ type: core.Input }],
|
|
3264
3273
|
searchInput: [{ type: core.Input }],
|
|
3265
3274
|
searchSubmit: [{ type: core.Input }],
|
|
3266
3275
|
delay: [{ type: core.Input }],
|
|
@@ -3273,6 +3282,8 @@
|
|
|
3273
3282
|
/** @type {?} */
|
|
3274
3283
|
SearchInputComponent.prototype.isSearchActive;
|
|
3275
3284
|
/** @type {?} */
|
|
3285
|
+
SearchInputComponent.prototype.isSearchButtonDisabled;
|
|
3286
|
+
/** @type {?} */
|
|
3276
3287
|
SearchInputComponent.prototype.searchInput;
|
|
3277
3288
|
/** @type {?} */
|
|
3278
3289
|
SearchInputComponent.prototype.searchSubmit;
|