slick-components 4.5.6 → 4.5.7
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 +11 -8
- package/css/slick-components.min.css +1 -1
- package/css/slick-components.scss +11 -13
- package/esm2020/slick-search-bar/slick-search-bar.component.mjs +11 -5
- package/esm2020/utils/slick-init.service.mjs +2 -2
- package/fesm2015/slick-components.mjs +11 -5
- package/fesm2015/slick-components.mjs.map +1 -1
- package/fesm2020/slick-components.mjs +11 -5
- package/fesm2020/slick-components.mjs.map +1 -1
- package/package.json +1 -1
- package/slick-search-bar/slick-search-bar.component.d.ts +3 -1
|
@@ -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.7";
|
|
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: [{
|
|
@@ -7367,6 +7367,7 @@ class SlickSearchBarComponent {
|
|
|
7367
7367
|
this.flex = '1 1';
|
|
7368
7368
|
this.onAddClick = new EventEmitter();
|
|
7369
7369
|
this.onEditClick = new EventEmitter();
|
|
7370
|
+
this.onSearch = new EventEmitter();
|
|
7370
7371
|
this.propagateChange = (_) => { };
|
|
7371
7372
|
}
|
|
7372
7373
|
ngOnInit() {
|
|
@@ -7376,7 +7377,6 @@ class SlickSearchBarComponent {
|
|
|
7376
7377
|
this.setDefaults();
|
|
7377
7378
|
}
|
|
7378
7379
|
ngAfterViewInit() {
|
|
7379
|
-
console.log(this.autofocus);
|
|
7380
7380
|
if (this.autofocus === true) {
|
|
7381
7381
|
setTimeout(() => {
|
|
7382
7382
|
this.slickSearchTextBoxRef.nativeElement.focus();
|
|
@@ -7395,11 +7395,13 @@ class SlickSearchBarComponent {
|
|
|
7395
7395
|
else
|
|
7396
7396
|
this.delay = parseInt((this.delay ?? '600').toString());
|
|
7397
7397
|
this.placeholder = this.placeholder || 'Search...';
|
|
7398
|
+
this.icon = this.icon || 'far fa-search';
|
|
7398
7399
|
}
|
|
7399
7400
|
onKeyDown() {
|
|
7400
7401
|
clearTimeout(this.searchTimer);
|
|
7401
7402
|
this.searchTimer = setTimeout(() => {
|
|
7402
7403
|
this.propagateChange(this.searchText);
|
|
7404
|
+
this.onSearch.emit(this.searchText);
|
|
7403
7405
|
}, this.delay);
|
|
7404
7406
|
}
|
|
7405
7407
|
async writeValue(obj) {
|
|
@@ -7421,13 +7423,13 @@ class SlickSearchBarComponent {
|
|
|
7421
7423
|
}
|
|
7422
7424
|
}
|
|
7423
7425
|
/** @nocollapse */ SlickSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickSearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7424
|
-
/** @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", placeholder: "placeholder" }, outputs: { onAddClick: "onAddClick", onEditClick: "onEditClick" }, host: { properties: { "style.flex": "this.flex" } }, providers: [
|
|
7426
|
+
/** @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", placeholder: "placeholder", icon: "icon" }, outputs: { onAddClick: "onAddClick", onEditClick: "onEditClick", onSearch: "onSearch" }, host: { properties: { "style.flex": "this.flex" } }, providers: [
|
|
7425
7427
|
{
|
|
7426
7428
|
provide: NG_VALUE_ACCESSOR,
|
|
7427
7429
|
useExisting: forwardRef((() => SlickSearchBarComponent)),
|
|
7428
7430
|
multi: true
|
|
7429
7431
|
}
|
|
7430
|
-
], 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<div class=\"px-0 ml-3 align-self-center\"><i
|
|
7432
|
+
], 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<div class=\"px-0 ml-3 align-self-center form-control\" style=\"width: inherit; font-size: inherit; padding-top: 0.325rem; padding-bottom: 0.325rem;\"><i [ngClass]=\"icon\"></i></div>\r\n\t<input #slickSearchTextBoxRef type=\"text\" class=\"form-control\" [(ngModel)]=\"searchText\" (keydown)=\"onKeyDown()\" [placeholder]=\"placeholder\" />\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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }] });
|
|
7431
7433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickSearchBarComponent, decorators: [{
|
|
7432
7434
|
type: Component,
|
|
7433
7435
|
args: [{ selector: "slick-search-bar", providers: [
|
|
@@ -7436,7 +7438,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7436
7438
|
useExisting: forwardRef((() => SlickSearchBarComponent)),
|
|
7437
7439
|
multi: true
|
|
7438
7440
|
}
|
|
7439
|
-
], template: "<div class=\"slick-search-bar border d-flex flex-fill bg-white\">\r\n\t<div class=\"px-0 ml-3 align-self-center\"><i
|
|
7441
|
+
], template: "<div class=\"slick-search-bar border d-flex flex-fill bg-white\">\r\n\t<div class=\"px-0 ml-3 align-self-center form-control\" style=\"width: inherit; font-size: inherit; padding-top: 0.325rem; padding-bottom: 0.325rem;\"><i [ngClass]=\"icon\"></i></div>\r\n\t<input #slickSearchTextBoxRef type=\"text\" class=\"form-control\" [(ngModel)]=\"searchText\" (keydown)=\"onKeyDown()\" [placeholder]=\"placeholder\" />\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" }]
|
|
7440
7442
|
}], propDecorators: { flex: [{
|
|
7441
7443
|
type: HostBinding,
|
|
7442
7444
|
args: ['style.flex']
|
|
@@ -7454,10 +7456,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7454
7456
|
type: Input
|
|
7455
7457
|
}], placeholder: [{
|
|
7456
7458
|
type: Input
|
|
7459
|
+
}], icon: [{
|
|
7460
|
+
type: Input
|
|
7457
7461
|
}], onAddClick: [{
|
|
7458
7462
|
type: Output
|
|
7459
7463
|
}], onEditClick: [{
|
|
7460
7464
|
type: Output
|
|
7465
|
+
}], onSearch: [{
|
|
7466
|
+
type: Output
|
|
7461
7467
|
}], slickSearchTextBoxRef: [{
|
|
7462
7468
|
type: ViewChild,
|
|
7463
7469
|
args: ["slickSearchTextBoxRef"]
|