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
package/fesm5/ngx-ode-ui.js
CHANGED
|
@@ -1384,6 +1384,7 @@ var ListComponent = /** @class */ (function (_super) {
|
|
|
1384
1384
|
_this.noResultsLabel = 'list.results.no.items';
|
|
1385
1385
|
_this.placeholder = 'list.placeholder';
|
|
1386
1386
|
_this.isSearchActive = true;
|
|
1387
|
+
_this.isSearchButtonDisabled = false;
|
|
1387
1388
|
_this.searchInput = false;
|
|
1388
1389
|
_this.inputChange = new EventEmitter();
|
|
1389
1390
|
_this.onSelect = new EventEmitter();
|
|
@@ -1427,8 +1428,8 @@ var ListComponent = /** @class */ (function (_super) {
|
|
|
1427
1428
|
ListComponent.decorators = [
|
|
1428
1429
|
{ type: Component, args: [{
|
|
1429
1430
|
selector: 'ode-list',
|
|
1430
|
-
template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (onChange)=\"inputChange.emit($event)\"
|
|
1431
|
-
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}
|
|
1431
|
+
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",
|
|
1432
|
+
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}"]
|
|
1432
1433
|
}] }
|
|
1433
1434
|
];
|
|
1434
1435
|
/** @nocollapse */
|
|
@@ -1445,7 +1446,9 @@ var ListComponent = /** @class */ (function (_super) {
|
|
|
1445
1446
|
noResultsLabel: [{ type: Input }],
|
|
1446
1447
|
placeholder: [{ type: Input }],
|
|
1447
1448
|
isSearchActive: [{ type: Input }],
|
|
1449
|
+
isSearchButtonDisabled: [{ type: Input }],
|
|
1448
1450
|
searchInput: [{ type: Input }],
|
|
1451
|
+
searchDelay: [{ type: Input }],
|
|
1449
1452
|
searchSubmit: [{ type: Input }],
|
|
1450
1453
|
inputChange: [{ type: Output }],
|
|
1451
1454
|
onSelect: [{ type: Output }],
|
|
@@ -1482,8 +1485,12 @@ if (false) {
|
|
|
1482
1485
|
/** @type {?} */
|
|
1483
1486
|
ListComponent.prototype.isSearchActive;
|
|
1484
1487
|
/** @type {?} */
|
|
1488
|
+
ListComponent.prototype.isSearchButtonDisabled;
|
|
1489
|
+
/** @type {?} */
|
|
1485
1490
|
ListComponent.prototype.searchInput;
|
|
1486
1491
|
/** @type {?} */
|
|
1492
|
+
ListComponent.prototype.searchDelay;
|
|
1493
|
+
/** @type {?} */
|
|
1487
1494
|
ListComponent.prototype.searchSubmit;
|
|
1488
1495
|
/** @type {?} */
|
|
1489
1496
|
ListComponent.prototype.inputChange;
|
|
@@ -2951,6 +2958,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
2951
2958
|
_this._renderer = _renderer;
|
|
2952
2959
|
/* Inputs / Outputs / View */
|
|
2953
2960
|
_this.isSearchActive = false;
|
|
2961
|
+
_this.isSearchButtonDisabled = false;
|
|
2954
2962
|
_this.searchInput = false;
|
|
2955
2963
|
_this._delay = 200;
|
|
2956
2964
|
_this.onChange = new EventEmitter();
|
|
@@ -3055,7 +3063,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3055
3063
|
SearchInputComponent.decorators = [
|
|
3056
3064
|
{ type: Component, args: [{
|
|
3057
3065
|
selector: 'ode-search-input',
|
|
3058
|
-
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)\"/> -->",
|
|
3066
|
+
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)\"/> -->",
|
|
3059
3067
|
styles: [":host .search-container{margin:0;display:flex}:host .search-icon{padding-left:0}:host .search-button{margin:0;background:#ff8352;color:#fff}"]
|
|
3060
3068
|
}] }
|
|
3061
3069
|
];
|
|
@@ -3067,6 +3075,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3067
3075
|
]; };
|
|
3068
3076
|
SearchInputComponent.propDecorators = {
|
|
3069
3077
|
isSearchActive: [{ type: Input }],
|
|
3078
|
+
isSearchButtonDisabled: [{ type: Input }],
|
|
3070
3079
|
searchInput: [{ type: Input }],
|
|
3071
3080
|
searchSubmit: [{ type: Input }],
|
|
3072
3081
|
delay: [{ type: Input }],
|
|
@@ -3079,6 +3088,8 @@ if (false) {
|
|
|
3079
3088
|
/** @type {?} */
|
|
3080
3089
|
SearchInputComponent.prototype.isSearchActive;
|
|
3081
3090
|
/** @type {?} */
|
|
3091
|
+
SearchInputComponent.prototype.isSearchButtonDisabled;
|
|
3092
|
+
/** @type {?} */
|
|
3082
3093
|
SearchInputComponent.prototype.searchInput;
|
|
3083
3094
|
/** @type {?} */
|
|
3084
3095
|
SearchInputComponent.prototype.searchSubmit;
|