ngx-ode-ui 3.12.0-dev.16 → 3.12.0-dev.17
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 +10 -2
- 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 +6 -2
- package/esm2015/lib/components/search-input/search-input.component.js +6 -2
- package/esm5/lib/components/list/list.component.js +6 -2
- package/esm5/lib/components/search-input/search-input.component.js +6 -2
- package/fesm2015/ngx-ode-ui.js +10 -2
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +10 -2
- package/fesm5/ngx-ode-ui.js.map +1 -1
- package/lib/components/list/list.component.d.ts +1 -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,7 +1428,7 @@ 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)\"></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 <ul *ngIf=\"!model\">\n <li class=\"placeholder\">{{ placeholder | translate }}</li>\n </ul>\n</div>\n",
|
|
1431
|
+
template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [isSearchButtonDisabled]=\"isSearchButtonDisabled\"\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 <ul *ngIf=\"!model\">\n <li class=\"placeholder\">{{ placeholder | translate }}</li>\n </ul>\n</div>\n",
|
|
1431
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
|
];
|
|
@@ -1445,6 +1446,7 @@ 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 }],
|
|
1449
1451
|
searchSubmit: [{ type: Input }],
|
|
1450
1452
|
inputChange: [{ type: Output }],
|
|
@@ -1482,6 +1484,8 @@ if (false) {
|
|
|
1482
1484
|
/** @type {?} */
|
|
1483
1485
|
ListComponent.prototype.isSearchActive;
|
|
1484
1486
|
/** @type {?} */
|
|
1487
|
+
ListComponent.prototype.isSearchButtonDisabled;
|
|
1488
|
+
/** @type {?} */
|
|
1485
1489
|
ListComponent.prototype.searchInput;
|
|
1486
1490
|
/** @type {?} */
|
|
1487
1491
|
ListComponent.prototype.searchSubmit;
|
|
@@ -2951,6 +2955,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
2951
2955
|
_this._renderer = _renderer;
|
|
2952
2956
|
/* Inputs / Outputs / View */
|
|
2953
2957
|
_this.isSearchActive = false;
|
|
2958
|
+
_this.isSearchButtonDisabled = false;
|
|
2954
2959
|
_this.searchInput = false;
|
|
2955
2960
|
_this._delay = 200;
|
|
2956
2961
|
_this.onChange = new EventEmitter();
|
|
@@ -3055,7 +3060,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3055
3060
|
SearchInputComponent.decorators = [
|
|
3056
3061
|
{ type: Component, args: [{
|
|
3057
3062
|
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)\"/> -->",
|
|
3063
|
+
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
3064
|
styles: [":host .search-container{margin:0;display:flex}:host .search-icon{padding-left:0}:host .search-button{margin:0;background:#ff8352;color:#fff}"]
|
|
3060
3065
|
}] }
|
|
3061
3066
|
];
|
|
@@ -3067,6 +3072,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3067
3072
|
]; };
|
|
3068
3073
|
SearchInputComponent.propDecorators = {
|
|
3069
3074
|
isSearchActive: [{ type: Input }],
|
|
3075
|
+
isSearchButtonDisabled: [{ type: Input }],
|
|
3070
3076
|
searchInput: [{ type: Input }],
|
|
3071
3077
|
searchSubmit: [{ type: Input }],
|
|
3072
3078
|
delay: [{ type: Input }],
|
|
@@ -3079,6 +3085,8 @@ if (false) {
|
|
|
3079
3085
|
/** @type {?} */
|
|
3080
3086
|
SearchInputComponent.prototype.isSearchActive;
|
|
3081
3087
|
/** @type {?} */
|
|
3088
|
+
SearchInputComponent.prototype.isSearchButtonDisabled;
|
|
3089
|
+
/** @type {?} */
|
|
3082
3090
|
SearchInputComponent.prototype.searchInput;
|
|
3083
3091
|
/** @type {?} */
|
|
3084
3092
|
SearchInputComponent.prototype.searchSubmit;
|