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
|
@@ -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,7 +1622,7 @@
|
|
|
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)\"></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",
|
|
1625
|
+
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",
|
|
1625
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
|
];
|
|
@@ -1639,6 +1640,7 @@
|
|
|
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 }],
|
|
1643
1645
|
searchSubmit: [{ type: core.Input }],
|
|
1644
1646
|
inputChange: [{ type: core.Output }],
|
|
@@ -1676,6 +1678,8 @@
|
|
|
1676
1678
|
/** @type {?} */
|
|
1677
1679
|
ListComponent.prototype.isSearchActive;
|
|
1678
1680
|
/** @type {?} */
|
|
1681
|
+
ListComponent.prototype.isSearchButtonDisabled;
|
|
1682
|
+
/** @type {?} */
|
|
1679
1683
|
ListComponent.prototype.searchInput;
|
|
1680
1684
|
/** @type {?} */
|
|
1681
1685
|
ListComponent.prototype.searchSubmit;
|
|
@@ -3145,6 +3149,7 @@
|
|
|
3145
3149
|
_this._renderer = _renderer;
|
|
3146
3150
|
/* Inputs / Outputs / View */
|
|
3147
3151
|
_this.isSearchActive = false;
|
|
3152
|
+
_this.isSearchButtonDisabled = false;
|
|
3148
3153
|
_this.searchInput = false;
|
|
3149
3154
|
_this._delay = 200;
|
|
3150
3155
|
_this.onChange = new core.EventEmitter();
|
|
@@ -3249,7 +3254,7 @@
|
|
|
3249
3254
|
SearchInputComponent.decorators = [
|
|
3250
3255
|
{ type: core.Component, args: [{
|
|
3251
3256
|
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)\"/> -->",
|
|
3257
|
+
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
3258
|
styles: [":host .search-container{margin:0;display:flex}:host .search-icon{padding-left:0}:host .search-button{margin:0;background:#ff8352;color:#fff}"]
|
|
3254
3259
|
}] }
|
|
3255
3260
|
];
|
|
@@ -3261,6 +3266,7 @@
|
|
|
3261
3266
|
]; };
|
|
3262
3267
|
SearchInputComponent.propDecorators = {
|
|
3263
3268
|
isSearchActive: [{ type: core.Input }],
|
|
3269
|
+
isSearchButtonDisabled: [{ type: core.Input }],
|
|
3264
3270
|
searchInput: [{ type: core.Input }],
|
|
3265
3271
|
searchSubmit: [{ type: core.Input }],
|
|
3266
3272
|
delay: [{ type: core.Input }],
|
|
@@ -3273,6 +3279,8 @@
|
|
|
3273
3279
|
/** @type {?} */
|
|
3274
3280
|
SearchInputComponent.prototype.isSearchActive;
|
|
3275
3281
|
/** @type {?} */
|
|
3282
|
+
SearchInputComponent.prototype.isSearchButtonDisabled;
|
|
3283
|
+
/** @type {?} */
|
|
3276
3284
|
SearchInputComponent.prototype.searchInput;
|
|
3277
3285
|
/** @type {?} */
|
|
3278
3286
|
SearchInputComponent.prototype.searchSubmit;
|