ngx-ode-ui 3.12.0-dev.4 → 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 +16 -6
- 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 -3
- package/esm2015/lib/components/search-input/search-input.component.js +11 -3
- package/esm5/lib/components/list/list.component.js +6 -3
- package/esm5/lib/components/search-input/search-input.component.js +12 -5
- package/fesm2015/ngx-ode-ui.js +15 -4
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +16 -6
- 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 +2 -0
- package/ngx-ode-ui.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1577,7 +1577,7 @@
|
|
|
1577
1577
|
_this.model = [];
|
|
1578
1578
|
_this.searchPlaceholder = 'search';
|
|
1579
1579
|
_this.noResultsLabel = 'list.results.no.items';
|
|
1580
|
-
_this.searchInput =
|
|
1580
|
+
_this.searchInput = false;
|
|
1581
1581
|
_this.inputChange = new core.EventEmitter();
|
|
1582
1582
|
_this.onSelect = new core.EventEmitter();
|
|
1583
1583
|
_this.listChange = new core.EventEmitter();
|
|
@@ -1620,7 +1620,7 @@
|
|
|
1620
1620
|
ListComponent.decorators = [
|
|
1621
1621
|
{ type: core.Component, args: [{
|
|
1622
1622
|
selector: 'ode-list',
|
|
1623
|
-
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",
|
|
1624
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}"]
|
|
1625
1625
|
}] }
|
|
1626
1626
|
];
|
|
@@ -1637,6 +1637,7 @@
|
|
|
1637
1637
|
searchPlaceholder: [{ type: core.Input }],
|
|
1638
1638
|
noResultsLabel: [{ type: core.Input }],
|
|
1639
1639
|
searchInput: [{ type: core.Input }],
|
|
1640
|
+
searchSubmit: [{ type: core.Input }],
|
|
1640
1641
|
inputChange: [{ type: core.Output }],
|
|
1641
1642
|
onSelect: [{ type: core.Output }],
|
|
1642
1643
|
listChange: [{ type: core.Output }],
|
|
@@ -1670,6 +1671,8 @@
|
|
|
1670
1671
|
/** @type {?} */
|
|
1671
1672
|
ListComponent.prototype.searchInput;
|
|
1672
1673
|
/** @type {?} */
|
|
1674
|
+
ListComponent.prototype.searchSubmit;
|
|
1675
|
+
/** @type {?} */
|
|
1673
1676
|
ListComponent.prototype.inputChange;
|
|
1674
1677
|
/** @type {?} */
|
|
1675
1678
|
ListComponent.prototype.onSelect;
|
|
@@ -3133,6 +3136,8 @@
|
|
|
3133
3136
|
var _this = _super.call(this, injector) || this;
|
|
3134
3137
|
_this._elRef = _elRef;
|
|
3135
3138
|
_this._renderer = _renderer;
|
|
3139
|
+
/* Inputs / Outputs / View */
|
|
3140
|
+
_this.searchInput = false;
|
|
3136
3141
|
_this._delay = 200;
|
|
3137
3142
|
_this.onChange = new core.EventEmitter();
|
|
3138
3143
|
/* Internal logic */
|
|
@@ -3146,9 +3151,7 @@
|
|
|
3146
3151
|
function () {
|
|
3147
3152
|
return this._delay;
|
|
3148
3153
|
},
|
|
3149
|
-
|
|
3150
|
-
set: /* Inputs / Outputs / View */
|
|
3151
|
-
/**
|
|
3154
|
+
set: /**
|
|
3152
3155
|
* @param {?} d
|
|
3153
3156
|
* @return {?}
|
|
3154
3157
|
*/
|
|
@@ -3238,7 +3241,8 @@
|
|
|
3238
3241
|
SearchInputComponent.decorators = [
|
|
3239
3242
|
{ type: core.Component, args: [{
|
|
3240
3243
|
selector: 'ode-search-input',
|
|
3241
|
-
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}"]
|
|
3242
3246
|
}] }
|
|
3243
3247
|
];
|
|
3244
3248
|
/** @nocollapse */
|
|
@@ -3248,6 +3252,8 @@
|
|
|
3248
3252
|
{ type: core.Renderer2 }
|
|
3249
3253
|
]; };
|
|
3250
3254
|
SearchInputComponent.propDecorators = {
|
|
3255
|
+
searchInput: [{ type: core.Input }],
|
|
3256
|
+
searchSubmit: [{ type: core.Input }],
|
|
3251
3257
|
delay: [{ type: core.Input }],
|
|
3252
3258
|
onChange: [{ type: core.Output }],
|
|
3253
3259
|
searchBox: [{ type: core.ViewChild, args: ['searchBox', { static: false },] }]
|
|
@@ -3255,6 +3261,10 @@
|
|
|
3255
3261
|
return SearchInputComponent;
|
|
3256
3262
|
}(ngxOdeCore.OdeComponent));
|
|
3257
3263
|
if (false) {
|
|
3264
|
+
/** @type {?} */
|
|
3265
|
+
SearchInputComponent.prototype.searchInput;
|
|
3266
|
+
/** @type {?} */
|
|
3267
|
+
SearchInputComponent.prototype.searchSubmit;
|
|
3258
3268
|
/**
|
|
3259
3269
|
* @type {?}
|
|
3260
3270
|
* @private
|