slick-components 4.5.3 → 4.5.5
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/css/slick-components.css +7 -0
- package/css/slick-components.min.css +1 -1
- package/css/slick-components.scss +7 -0
- package/esm2020/slick-search-bar/slick-search-bar.component.mjs +9 -9
- package/esm2020/utils/slick-init.service.mjs +2 -2
- package/fesm2015/slick-components.mjs +9 -9
- package/fesm2015/slick-components.mjs.map +1 -1
- package/fesm2020/slick-components.mjs +9 -9
- package/fesm2020/slick-components.mjs.map +1 -1
- package/package.json +1 -1
- package/slick-search-bar/slick-search-bar.component.d.ts +2 -2
|
@@ -53,7 +53,7 @@ class SlickInitService {
|
|
|
53
53
|
SlickInitService.getParams().errorLog = errorLog;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
SlickInitService.version = "4.5.
|
|
56
|
+
SlickInitService.version = "4.5.5";
|
|
57
57
|
/** @nocollapse */ SlickInitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
58
58
|
/** @nocollapse */ SlickInitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickInitService });
|
|
59
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickInitService, decorators: [{
|
|
@@ -7386,16 +7386,16 @@ class SlickSearchBarComponent {
|
|
|
7386
7386
|
this.showEditButton = (this.showEditButton ?? "true").toString().toLowerCase() === "true";
|
|
7387
7387
|
this.disableEditButton = (this.disableEditButton ?? "false").toString().toLowerCase() === "true";
|
|
7388
7388
|
this.autofocus = (this.autofocus ?? "true").toString().toLowerCase() === "true";
|
|
7389
|
-
if (isNaN(this.
|
|
7390
|
-
this.
|
|
7389
|
+
if (isNaN(this.delay))
|
|
7390
|
+
this.delay = 600;
|
|
7391
7391
|
else
|
|
7392
|
-
this.
|
|
7392
|
+
this.delay = parseInt((this.delay ?? '600').toString());
|
|
7393
7393
|
}
|
|
7394
7394
|
onKeyDown() {
|
|
7395
7395
|
clearTimeout(this.searchTimer);
|
|
7396
7396
|
this.searchTimer = setTimeout(() => {
|
|
7397
7397
|
this.propagateChange(this.searchText);
|
|
7398
|
-
}, this.
|
|
7398
|
+
}, this.delay);
|
|
7399
7399
|
}
|
|
7400
7400
|
writeValue(obj) {
|
|
7401
7401
|
this.searchText = obj;
|
|
@@ -7415,13 +7415,13 @@ class SlickSearchBarComponent {
|
|
|
7415
7415
|
}
|
|
7416
7416
|
}
|
|
7417
7417
|
/** @nocollapse */ SlickSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickSearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7418
|
-
/** @nocollapse */ SlickSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: SlickSearchBarComponent, selector: "slick-search-bar", inputs: { showAddButton: "showAddButton", disableAddButton: "disableAddButton", showEditButton: "showEditButton", disableEditButton: "disableEditButton", autofocus: "autofocus",
|
|
7418
|
+
/** @nocollapse */ SlickSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: SlickSearchBarComponent, selector: "slick-search-bar", inputs: { showAddButton: "showAddButton", disableAddButton: "disableAddButton", showEditButton: "showEditButton", disableEditButton: "disableEditButton", autofocus: "autofocus", delay: "delay" }, outputs: { onAddClick: "onAddClick", onEditClick: "onEditClick" }, host: { properties: { "style.flex": "this.flex" } }, providers: [
|
|
7419
7419
|
{
|
|
7420
7420
|
provide: NG_VALUE_ACCESSOR,
|
|
7421
7421
|
useExisting: forwardRef((() => SlickSearchBarComponent)),
|
|
7422
7422
|
multi: true
|
|
7423
7423
|
}
|
|
7424
|
-
], viewQueries: [{ propertyName: "slickSearchTextBoxRef", first: true, predicate: ["slickSearchTextBoxRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"slick-search-bar border d-flex flex-fill\">\r\n\t<button type=\"button\" class=\"btn btn-link px-0 ml-3\" disabled=\"disabled\"><i class=\"far fa-search\" style=\"font-size: .8em;\"></i></button>\r\n\t<input #slickSearchTextBoxRef type=\"text\" class=\"form-control\" [(ngModel)]=\"searchText\" (keydown)=\"onKeyDown()\" />\r\n\t<div *ngIf=\"(showAddButton || showEditButton)\" class=\"d-flex\">\r\n\t\t<div
|
|
7424
|
+
], viewQueries: [{ propertyName: "slickSearchTextBoxRef", first: true, predicate: ["slickSearchTextBoxRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"slick-search-bar border d-flex flex-fill bg-white\">\r\n\t<button type=\"button\" class=\"btn btn-link px-0 ml-3\" disabled=\"disabled\"><i class=\"far fa-search\" style=\"font-size: .8em;\"></i></button>\r\n\t<input #slickSearchTextBoxRef type=\"text\" class=\"form-control\" [(ngModel)]=\"searchText\" (keydown)=\"onKeyDown()\" />\r\n\t<div *ngIf=\"(showAddButton || showEditButton)\" class=\"d-flex\">\r\n\t\t<div class=\"slick-search-bar_add-button ml-2\" *ngIf=\"showAddButton\">\r\n\t\t\t<button type=\"button\" class=\"btn btn-link px-0\" [disabled]=\"disableAddButton\" (click)=\"onAddClicked()\"><i class=\"far fa-plus\"></i></button>\r\n\t\t</div>\r\n\t\t<div class=\"slick-search-bar_edit-button ml-2\" *ngIf=\"showEditButton\">\r\n\t\t\t<button type=\"button\" class=\"btn btn-link px-0\" [disabled]=\"disableEditButton\" (click)=\"onEditClicked()\"><i class=\"far fa-pencil\"></i></button>\r\n\t\t</div>\r\n\t</div>\r\n\t<div style=\"width: 20px\"></div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
7425
7425
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickSearchBarComponent, decorators: [{
|
|
7426
7426
|
type: Component,
|
|
7427
7427
|
args: [{ selector: "slick-search-bar", providers: [
|
|
@@ -7430,7 +7430,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7430
7430
|
useExisting: forwardRef((() => SlickSearchBarComponent)),
|
|
7431
7431
|
multi: true
|
|
7432
7432
|
}
|
|
7433
|
-
], template: "<div class=\"slick-search-bar border d-flex flex-fill\">\r\n\t<button type=\"button\" class=\"btn btn-link px-0 ml-3\" disabled=\"disabled\"><i class=\"far fa-search\" style=\"font-size: .8em;\"></i></button>\r\n\t<input #slickSearchTextBoxRef type=\"text\" class=\"form-control\" [(ngModel)]=\"searchText\" (keydown)=\"onKeyDown()\" />\r\n\t<div *ngIf=\"(showAddButton || showEditButton)\" class=\"d-flex\">\r\n\t\t<div
|
|
7433
|
+
], template: "<div class=\"slick-search-bar border d-flex flex-fill bg-white\">\r\n\t<button type=\"button\" class=\"btn btn-link px-0 ml-3\" disabled=\"disabled\"><i class=\"far fa-search\" style=\"font-size: .8em;\"></i></button>\r\n\t<input #slickSearchTextBoxRef type=\"text\" class=\"form-control\" [(ngModel)]=\"searchText\" (keydown)=\"onKeyDown()\" />\r\n\t<div *ngIf=\"(showAddButton || showEditButton)\" class=\"d-flex\">\r\n\t\t<div class=\"slick-search-bar_add-button ml-2\" *ngIf=\"showAddButton\">\r\n\t\t\t<button type=\"button\" class=\"btn btn-link px-0\" [disabled]=\"disableAddButton\" (click)=\"onAddClicked()\"><i class=\"far fa-plus\"></i></button>\r\n\t\t</div>\r\n\t\t<div class=\"slick-search-bar_edit-button ml-2\" *ngIf=\"showEditButton\">\r\n\t\t\t<button type=\"button\" class=\"btn btn-link px-0\" [disabled]=\"disableEditButton\" (click)=\"onEditClicked()\"><i class=\"far fa-pencil\"></i></button>\r\n\t\t</div>\r\n\t</div>\r\n\t<div style=\"width: 20px\"></div>\r\n</div>\r\n" }]
|
|
7434
7434
|
}], propDecorators: { flex: [{
|
|
7435
7435
|
type: HostBinding,
|
|
7436
7436
|
args: ['style.flex']
|
|
@@ -7444,7 +7444,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7444
7444
|
type: Input
|
|
7445
7445
|
}], autofocus: [{
|
|
7446
7446
|
type: Input
|
|
7447
|
-
}],
|
|
7447
|
+
}], delay: [{
|
|
7448
7448
|
type: Input
|
|
7449
7449
|
}], onAddClick: [{
|
|
7450
7450
|
type: Output
|