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
|
@@ -54,7 +54,7 @@ class SlickInitService {
|
|
|
54
54
|
SlickInitService.getParams().errorLog = errorLog;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
SlickInitService.version = "4.5.
|
|
57
|
+
SlickInitService.version = "4.5.7";
|
|
58
58
|
/** @nocollapse */ SlickInitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
59
59
|
/** @nocollapse */ SlickInitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickInitService });
|
|
60
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickInitService, decorators: [{
|
|
@@ -7614,6 +7614,7 @@ class SlickSearchBarComponent {
|
|
|
7614
7614
|
this.flex = '1 1';
|
|
7615
7615
|
this.onAddClick = new EventEmitter();
|
|
7616
7616
|
this.onEditClick = new EventEmitter();
|
|
7617
|
+
this.onSearch = new EventEmitter();
|
|
7617
7618
|
this.propagateChange = (_) => { };
|
|
7618
7619
|
}
|
|
7619
7620
|
ngOnInit() {
|
|
@@ -7623,7 +7624,6 @@ class SlickSearchBarComponent {
|
|
|
7623
7624
|
this.setDefaults();
|
|
7624
7625
|
}
|
|
7625
7626
|
ngAfterViewInit() {
|
|
7626
|
-
console.log(this.autofocus);
|
|
7627
7627
|
if (this.autofocus === true) {
|
|
7628
7628
|
setTimeout(() => {
|
|
7629
7629
|
this.slickSearchTextBoxRef.nativeElement.focus();
|
|
@@ -7643,11 +7643,13 @@ class SlickSearchBarComponent {
|
|
|
7643
7643
|
else
|
|
7644
7644
|
this.delay = parseInt(((_f = this.delay) !== null && _f !== void 0 ? _f : '600').toString());
|
|
7645
7645
|
this.placeholder = this.placeholder || 'Search...';
|
|
7646
|
+
this.icon = this.icon || 'far fa-search';
|
|
7646
7647
|
}
|
|
7647
7648
|
onKeyDown() {
|
|
7648
7649
|
clearTimeout(this.searchTimer);
|
|
7649
7650
|
this.searchTimer = setTimeout(() => {
|
|
7650
7651
|
this.propagateChange(this.searchText);
|
|
7652
|
+
this.onSearch.emit(this.searchText);
|
|
7651
7653
|
}, this.delay);
|
|
7652
7654
|
}
|
|
7653
7655
|
writeValue(obj) {
|
|
@@ -7675,13 +7677,13 @@ class SlickSearchBarComponent {
|
|
|
7675
7677
|
}
|
|
7676
7678
|
}
|
|
7677
7679
|
/** @nocollapse */ SlickSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickSearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7678
|
-
/** @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: [
|
|
7680
|
+
/** @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: [
|
|
7679
7681
|
{
|
|
7680
7682
|
provide: NG_VALUE_ACCESSOR,
|
|
7681
7683
|
useExisting: forwardRef((() => SlickSearchBarComponent)),
|
|
7682
7684
|
multi: true
|
|
7683
7685
|
}
|
|
7684
|
-
], 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
|
|
7686
|
+
], 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"] }] });
|
|
7685
7687
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SlickSearchBarComponent, decorators: [{
|
|
7686
7688
|
type: Component,
|
|
7687
7689
|
args: [{ selector: "slick-search-bar", providers: [
|
|
@@ -7690,7 +7692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7690
7692
|
useExisting: forwardRef((() => SlickSearchBarComponent)),
|
|
7691
7693
|
multi: true
|
|
7692
7694
|
}
|
|
7693
|
-
], 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
|
|
7695
|
+
], 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" }]
|
|
7694
7696
|
}], propDecorators: { flex: [{
|
|
7695
7697
|
type: HostBinding,
|
|
7696
7698
|
args: ['style.flex']
|
|
@@ -7708,10 +7710,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7708
7710
|
type: Input
|
|
7709
7711
|
}], placeholder: [{
|
|
7710
7712
|
type: Input
|
|
7713
|
+
}], icon: [{
|
|
7714
|
+
type: Input
|
|
7711
7715
|
}], onAddClick: [{
|
|
7712
7716
|
type: Output
|
|
7713
7717
|
}], onEditClick: [{
|
|
7714
7718
|
type: Output
|
|
7719
|
+
}], onSearch: [{
|
|
7720
|
+
type: Output
|
|
7715
7721
|
}], slickSearchTextBoxRef: [{
|
|
7716
7722
|
type: ViewChild,
|
|
7717
7723
|
args: ["slickSearchTextBoxRef"]
|