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
package/fesm5/ngx-ode-ui.js
CHANGED
|
@@ -1383,7 +1383,7 @@ var ListComponent = /** @class */ (function (_super) {
|
|
|
1383
1383
|
_this.model = [];
|
|
1384
1384
|
_this.searchPlaceholder = 'search';
|
|
1385
1385
|
_this.noResultsLabel = 'list.results.no.items';
|
|
1386
|
-
_this.searchInput =
|
|
1386
|
+
_this.searchInput = false;
|
|
1387
1387
|
_this.inputChange = new EventEmitter();
|
|
1388
1388
|
_this.onSelect = new EventEmitter();
|
|
1389
1389
|
_this.listChange = new EventEmitter();
|
|
@@ -1426,7 +1426,7 @@ var ListComponent = /** @class */ (function (_super) {
|
|
|
1426
1426
|
ListComponent.decorators = [
|
|
1427
1427
|
{ type: Component, args: [{
|
|
1428
1428
|
selector: 'ode-list',
|
|
1429
|
-
template: "<ode-search-input
|
|
1429
|
+
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",
|
|
1430
1430
|
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}"]
|
|
1431
1431
|
}] }
|
|
1432
1432
|
];
|
|
@@ -1443,6 +1443,7 @@ var ListComponent = /** @class */ (function (_super) {
|
|
|
1443
1443
|
searchPlaceholder: [{ type: Input }],
|
|
1444
1444
|
noResultsLabel: [{ type: Input }],
|
|
1445
1445
|
searchInput: [{ type: Input }],
|
|
1446
|
+
searchSubmit: [{ type: Input }],
|
|
1446
1447
|
inputChange: [{ type: Output }],
|
|
1447
1448
|
onSelect: [{ type: Output }],
|
|
1448
1449
|
listChange: [{ type: Output }],
|
|
@@ -1476,6 +1477,8 @@ if (false) {
|
|
|
1476
1477
|
/** @type {?} */
|
|
1477
1478
|
ListComponent.prototype.searchInput;
|
|
1478
1479
|
/** @type {?} */
|
|
1480
|
+
ListComponent.prototype.searchSubmit;
|
|
1481
|
+
/** @type {?} */
|
|
1479
1482
|
ListComponent.prototype.inputChange;
|
|
1480
1483
|
/** @type {?} */
|
|
1481
1484
|
ListComponent.prototype.onSelect;
|
|
@@ -2939,6 +2942,8 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
2939
2942
|
var _this = _super.call(this, injector) || this;
|
|
2940
2943
|
_this._elRef = _elRef;
|
|
2941
2944
|
_this._renderer = _renderer;
|
|
2945
|
+
/* Inputs / Outputs / View */
|
|
2946
|
+
_this.searchInput = false;
|
|
2942
2947
|
_this._delay = 200;
|
|
2943
2948
|
_this.onChange = new EventEmitter();
|
|
2944
2949
|
/* Internal logic */
|
|
@@ -2952,9 +2957,7 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
2952
2957
|
function () {
|
|
2953
2958
|
return this._delay;
|
|
2954
2959
|
},
|
|
2955
|
-
|
|
2956
|
-
set: /* Inputs / Outputs / View */
|
|
2957
|
-
/**
|
|
2960
|
+
set: /**
|
|
2958
2961
|
* @param {?} d
|
|
2959
2962
|
* @return {?}
|
|
2960
2963
|
*/
|
|
@@ -3044,7 +3047,8 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3044
3047
|
SearchInputComponent.decorators = [
|
|
3045
3048
|
{ type: Component, args: [{
|
|
3046
3049
|
selector: 'ode-search-input',
|
|
3047
|
-
template: "<input type=\"search\" #searchBox (input)=\"search(searchBox.value)\"
|
|
3050
|
+
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)\"/>",
|
|
3051
|
+
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}"]
|
|
3048
3052
|
}] }
|
|
3049
3053
|
];
|
|
3050
3054
|
/** @nocollapse */
|
|
@@ -3054,6 +3058,8 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3054
3058
|
{ type: Renderer2 }
|
|
3055
3059
|
]; };
|
|
3056
3060
|
SearchInputComponent.propDecorators = {
|
|
3061
|
+
searchInput: [{ type: Input }],
|
|
3062
|
+
searchSubmit: [{ type: Input }],
|
|
3057
3063
|
delay: [{ type: Input }],
|
|
3058
3064
|
onChange: [{ type: Output }],
|
|
3059
3065
|
searchBox: [{ type: ViewChild, args: ['searchBox', { static: false },] }]
|
|
@@ -3061,6 +3067,10 @@ var SearchInputComponent = /** @class */ (function (_super) {
|
|
|
3061
3067
|
return SearchInputComponent;
|
|
3062
3068
|
}(OdeComponent));
|
|
3063
3069
|
if (false) {
|
|
3070
|
+
/** @type {?} */
|
|
3071
|
+
SearchInputComponent.prototype.searchInput;
|
|
3072
|
+
/** @type {?} */
|
|
3073
|
+
SearchInputComponent.prototype.searchSubmit;
|
|
3064
3074
|
/**
|
|
3065
3075
|
* @type {?}
|
|
3066
3076
|
* @private
|