@tekus/design-system 0.0.5 → 0.0.71
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/package.json +3 -9
- package/components/search-bar/index.d.ts +0 -5
- package/components/search-bar/public-api.d.ts +0 -1
- package/components/search-bar/search-bar.component.d.ts +0 -21
- package/esm2022/components/search-bar/public-api.mjs +0 -2
- package/esm2022/components/search-bar/search-bar.component.mjs +0 -77
- package/esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs +0 -5
- package/fesm2022/tekus-design-system-components-search-bar.mjs +0 -84
- package/fesm2022/tekus-design-system-components-search-bar.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekus/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/
|
|
6
|
-
"@angular/
|
|
5
|
+
"@angular/core": "^16.2.0",
|
|
6
|
+
"@angular/common": "^16.2.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
@@ -20,12 +20,6 @@
|
|
|
20
20
|
"esm2022": "./esm2022/tekus-design-system.mjs",
|
|
21
21
|
"esm": "./esm2022/tekus-design-system.mjs",
|
|
22
22
|
"default": "./fesm2022/tekus-design-system.mjs"
|
|
23
|
-
},
|
|
24
|
-
"./components/search-bar": {
|
|
25
|
-
"types": "./components/search-bar/index.d.ts",
|
|
26
|
-
"esm2022": "./esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs",
|
|
27
|
-
"esm": "./esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs",
|
|
28
|
-
"default": "./fesm2022/tekus-design-system-components-search-bar.mjs"
|
|
29
23
|
}
|
|
30
24
|
}
|
|
31
25
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './search-bar.component';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SearchBarComponent {
|
|
4
|
-
inputValue: string;
|
|
5
|
-
readonly faXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
6
|
-
readonly faMagnifyingGlass: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
|
-
/**
|
|
8
|
-
* Search bar hint label
|
|
9
|
-
*/
|
|
10
|
-
hintLabel: string;
|
|
11
|
-
/**
|
|
12
|
-
* What background color to use
|
|
13
|
-
*/
|
|
14
|
-
backgroundColor?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Input changes handler
|
|
17
|
-
*/
|
|
18
|
-
inputValueChange: EventEmitter<Event>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "lib-tks-search-bar", never, { "hintLabel": { "alias": "hintLabel"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, { "inputValueChange": "inputValueChange"; }, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './search-bar.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vY29tcG9uZW50cy9zZWFyY2gtYmFyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2VhcmNoLWJhci5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
4
|
-
import { Input, Output, Component, EventEmitter } from '@angular/core';
|
|
5
|
-
import { faMagnifyingGlass, faXmark } from '@fortawesome/pro-solid-svg-icons';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@fortawesome/angular-fontawesome";
|
|
9
|
-
import * as i3 from "@angular/forms";
|
|
10
|
-
export class SearchBarComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.inputValue = '';
|
|
13
|
-
this.faXmark = faXmark;
|
|
14
|
-
this.faMagnifyingGlass = faMagnifyingGlass;
|
|
15
|
-
/**
|
|
16
|
-
* Search bar hint label
|
|
17
|
-
*/
|
|
18
|
-
this.hintLabel = '';
|
|
19
|
-
/**
|
|
20
|
-
* Input changes handler
|
|
21
|
-
*/
|
|
22
|
-
this.inputValueChange = new EventEmitter();
|
|
23
|
-
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SearchBarComponent, isStandalone: true, selector: "lib-tks-search-bar", inputs: { hintLabel: "hintLabel", backgroundColor: "backgroundColor" }, outputs: { inputValueChange: "inputValueChange" }, ngImport: i0, template: `<div
|
|
26
|
-
[ngClass]="
|
|
27
|
-
inputValue === '' ? 'search__bar' : 'search__bar search__bar--opened'
|
|
28
|
-
"
|
|
29
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
30
|
-
>
|
|
31
|
-
<input
|
|
32
|
-
class="search__bar__input"
|
|
33
|
-
type="text"
|
|
34
|
-
[(ngModel)]="inputValue"
|
|
35
|
-
[placeholder]="hintLabel"
|
|
36
|
-
(input)="inputValueChange.emit($event)"
|
|
37
|
-
/>
|
|
38
|
-
<fa-icon
|
|
39
|
-
class="search__bar__clear__mark__icon"
|
|
40
|
-
[icon]="faXmark"
|
|
41
|
-
*ngIf="inputValue !== ''"
|
|
42
|
-
(click)="inputValue = ''"
|
|
43
|
-
></fa-icon>
|
|
44
|
-
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
45
|
-
</div>`, isInline: true, styles: ["*{margin:0;padding:0;box-sizing:border-box}.search__bar{display:flex;cursor:pointer;max-width:15rem;padding:.3rem 0;width:-moz-fit-content;width:fit-content;align-items:center;justify-content:center;background-color:#fff}.search__bar--opened .search__bar__input{width:13rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:13rem}.search__bar__input{width:0;border:none;outline:none;font-weight:500;background:transparent;transition:all ease-in-out .8s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__clear__mark__icon{margin:0 .5rem}.search__bar__clear__mark__icon:hover{scale:1.3;transition:all ease-in-out .1s}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }] }); }
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'lib-tks-search-bar', standalone: true, imports: [CommonModule, FontAwesomeModule, FormsModule, ReactiveFormsModule], template: `<div
|
|
50
|
-
[ngClass]="
|
|
51
|
-
inputValue === '' ? 'search__bar' : 'search__bar search__bar--opened'
|
|
52
|
-
"
|
|
53
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
54
|
-
>
|
|
55
|
-
<input
|
|
56
|
-
class="search__bar__input"
|
|
57
|
-
type="text"
|
|
58
|
-
[(ngModel)]="inputValue"
|
|
59
|
-
[placeholder]="hintLabel"
|
|
60
|
-
(input)="inputValueChange.emit($event)"
|
|
61
|
-
/>
|
|
62
|
-
<fa-icon
|
|
63
|
-
class="search__bar__clear__mark__icon"
|
|
64
|
-
[icon]="faXmark"
|
|
65
|
-
*ngIf="inputValue !== ''"
|
|
66
|
-
(click)="inputValue = ''"
|
|
67
|
-
></fa-icon>
|
|
68
|
-
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
69
|
-
</div>`, styles: ["*{margin:0;padding:0;box-sizing:border-box}.search__bar{display:flex;cursor:pointer;max-width:15rem;padding:.3rem 0;width:-moz-fit-content;width:fit-content;align-items:center;justify-content:center;background-color:#fff}.search__bar--opened .search__bar__input{width:13rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:13rem}.search__bar__input{width:0;border:none;outline:none;font-weight:500;background:transparent;transition:all ease-in-out .8s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__clear__mark__icon{margin:0 .5rem}.search__bar__clear__mark__icon:hover{scale:1.3;transition:all ease-in-out .1s}\n"] }]
|
|
70
|
-
}], propDecorators: { hintLabel: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], backgroundColor: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], inputValueChange: [{
|
|
75
|
-
type: Output
|
|
76
|
-
}] } });
|
|
77
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL2NvbXBvbmVudHMvc2VhcmNoLWJhci9zZWFyY2gtYmFyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE9BQU8sRUFBRSxNQUFNLGtDQUFrQyxDQUFDOzs7OztBQTZCOUUsTUFBTSxPQUFPLGtCQUFrQjtJQTNCL0I7UUE0QlMsZUFBVSxHQUFHLEVBQUUsQ0FBQztRQUNQLFlBQU8sR0FBRyxPQUFPLENBQUM7UUFDbEIsc0JBQWlCLEdBQUcsaUJBQWlCLENBQUM7UUFFdE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LFxyXG4gIHN0eWxlVXJsczogWycuL3NlYXJjaC1iYXIuY29tcG9uZW50LmNzcyddLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgU2VhcmNoQmFyQ29tcG9uZW50IHtcclxuICBwdWJsaWMgaW5wdXRWYWx1ZSA9ICcnO1xyXG4gIHB1YmxpYyByZWFkb25seSBmYVhtYXJrID0gZmFYbWFyaztcclxuICBwdWJsaWMgcmVhZG9ubHkgZmFNYWduaWZ5aW5nR2xhc3MgPSBmYU1hZ25pZnlpbmdHbGFzcztcclxuXHJcbiAgLyoqXHJcbiAgICogU2VhcmNoIGJhciBoaW50IGxhYmVsXHJcbiAgICovXHJcbiAgQElucHV0KClcclxuICBoaW50TGFiZWwgPSAnJztcclxuXHJcbiAgLyoqXHJcbiAgICogV2hhdCBiYWNrZ3JvdW5kIGNvbG9yIHRvIHVzZVxyXG4gICAqL1xyXG4gIEBJbnB1dCgpXHJcbiAgYmFja2dyb3VuZENvbG9yPzogc3RyaW5nO1xyXG5cclxuICAvKipcclxuICAgKiBJbnB1dCBjaGFuZ2VzIGhhbmRsZXJcclxuICAgKi9cclxuICBAT3V0cHV0KClcclxuICBpbnB1dFZhbHVlQ2hhbmdlID0gbmV3IEV2ZW50RW1pdHRlcjxFdmVudD4oKTtcclxufVxyXG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVrdXMtZGVzaWduLXN5c3RlbS1jb21wb25lbnRzLXNlYXJjaC1iYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL2NvbXBvbmVudHMvc2VhcmNoLWJhci90ZWt1cy1kZXNpZ24tc3lzdGVtLWNvbXBvbmVudHMtc2VhcmNoLWJhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i3 from '@angular/forms';
|
|
4
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import * as i2 from '@fortawesome/angular-fontawesome';
|
|
6
|
-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import { EventEmitter, Component, Input, Output } from '@angular/core';
|
|
9
|
-
import { faXmark, faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
|
|
10
|
-
|
|
11
|
-
class SearchBarComponent {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.inputValue = '';
|
|
14
|
-
this.faXmark = faXmark;
|
|
15
|
-
this.faMagnifyingGlass = faMagnifyingGlass;
|
|
16
|
-
/**
|
|
17
|
-
* Search bar hint label
|
|
18
|
-
*/
|
|
19
|
-
this.hintLabel = '';
|
|
20
|
-
/**
|
|
21
|
-
* Input changes handler
|
|
22
|
-
*/
|
|
23
|
-
this.inputValueChange = new EventEmitter();
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SearchBarComponent, isStandalone: true, selector: "lib-tks-search-bar", inputs: { hintLabel: "hintLabel", backgroundColor: "backgroundColor" }, outputs: { inputValueChange: "inputValueChange" }, ngImport: i0, template: `<div
|
|
27
|
-
[ngClass]="
|
|
28
|
-
inputValue === '' ? 'search__bar' : 'search__bar search__bar--opened'
|
|
29
|
-
"
|
|
30
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
31
|
-
>
|
|
32
|
-
<input
|
|
33
|
-
class="search__bar__input"
|
|
34
|
-
type="text"
|
|
35
|
-
[(ngModel)]="inputValue"
|
|
36
|
-
[placeholder]="hintLabel"
|
|
37
|
-
(input)="inputValueChange.emit($event)"
|
|
38
|
-
/>
|
|
39
|
-
<fa-icon
|
|
40
|
-
class="search__bar__clear__mark__icon"
|
|
41
|
-
[icon]="faXmark"
|
|
42
|
-
*ngIf="inputValue !== ''"
|
|
43
|
-
(click)="inputValue = ''"
|
|
44
|
-
></fa-icon>
|
|
45
|
-
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
46
|
-
</div>`, isInline: true, styles: ["*{margin:0;padding:0;box-sizing:border-box}.search__bar{display:flex;cursor:pointer;max-width:15rem;padding:.3rem 0;width:-moz-fit-content;width:fit-content;align-items:center;justify-content:center;background-color:#fff}.search__bar--opened .search__bar__input{width:13rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:13rem}.search__bar__input{width:0;border:none;outline:none;font-weight:500;background:transparent;transition:all ease-in-out .8s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__clear__mark__icon{margin:0 .5rem}.search__bar__clear__mark__icon:hover{scale:1.3;transition:all ease-in-out .1s}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }] }); }
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{ selector: 'lib-tks-search-bar', standalone: true, imports: [CommonModule, FontAwesomeModule, FormsModule, ReactiveFormsModule], template: `<div
|
|
51
|
-
[ngClass]="
|
|
52
|
-
inputValue === '' ? 'search__bar' : 'search__bar search__bar--opened'
|
|
53
|
-
"
|
|
54
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
55
|
-
>
|
|
56
|
-
<input
|
|
57
|
-
class="search__bar__input"
|
|
58
|
-
type="text"
|
|
59
|
-
[(ngModel)]="inputValue"
|
|
60
|
-
[placeholder]="hintLabel"
|
|
61
|
-
(input)="inputValueChange.emit($event)"
|
|
62
|
-
/>
|
|
63
|
-
<fa-icon
|
|
64
|
-
class="search__bar__clear__mark__icon"
|
|
65
|
-
[icon]="faXmark"
|
|
66
|
-
*ngIf="inputValue !== ''"
|
|
67
|
-
(click)="inputValue = ''"
|
|
68
|
-
></fa-icon>
|
|
69
|
-
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
70
|
-
</div>`, styles: ["*{margin:0;padding:0;box-sizing:border-box}.search__bar{display:flex;cursor:pointer;max-width:15rem;padding:.3rem 0;width:-moz-fit-content;width:fit-content;align-items:center;justify-content:center;background-color:#fff}.search__bar--opened .search__bar__input{width:13rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:13rem}.search__bar__input{width:0;border:none;outline:none;font-weight:500;background:transparent;transition:all ease-in-out .8s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__clear__mark__icon{margin:0 .5rem}.search__bar__clear__mark__icon:hover{scale:1.3;transition:all ease-in-out .1s}\n"] }]
|
|
71
|
-
}], propDecorators: { hintLabel: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], backgroundColor: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], inputValueChange: [{
|
|
76
|
-
type: Output
|
|
77
|
-
}] } });
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Generated bundle index. Do not edit.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
export { SearchBarComponent };
|
|
84
|
-
//# sourceMappingURL=tekus-design-system-components-search-bar.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tekus-design-system-components-search-bar.mjs","sources":["../../../projects/design-system/components/search-bar/search-bar.component.ts","../../../projects/design-system/components/search-bar/tekus-design-system-components-search-bar.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { Input, Output, Component, EventEmitter } from '@angular/core';\r\nimport { faMagnifyingGlass, faXmark } from '@fortawesome/pro-solid-svg-icons';\r\n\r\n@Component({\r\n selector: 'lib-tks-search-bar',\r\n standalone: true,\r\n imports: [CommonModule, FontAwesomeModule, FormsModule, ReactiveFormsModule],\r\n template: `<div\r\n [ngClass]=\"\r\n inputValue === '' ? 'search__bar' : 'search__bar search__bar--opened'\r\n \"\r\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\r\n >\r\n <input\r\n class=\"search__bar__input\"\r\n type=\"text\"\r\n [(ngModel)]=\"inputValue\"\r\n [placeholder]=\"hintLabel\"\r\n (input)=\"inputValueChange.emit($event)\"\r\n />\r\n <fa-icon\r\n class=\"search__bar__clear__mark__icon\"\r\n [icon]=\"faXmark\"\r\n *ngIf=\"inputValue !== ''\"\r\n (click)=\"inputValue = ''\"\r\n ></fa-icon>\r\n <fa-icon [icon]=\"faMagnifyingGlass\"></fa-icon>\r\n </div>`,\r\n styleUrls: ['./search-bar.component.css'],\r\n})\r\nexport class SearchBarComponent {\r\n public inputValue = '';\r\n public readonly faXmark = faXmark;\r\n public readonly faMagnifyingGlass = faMagnifyingGlass;\r\n\r\n /**\r\n * Search bar hint label\r\n */\r\n @Input()\r\n hintLabel = '';\r\n\r\n /**\r\n * What background color to use\r\n */\r\n @Input()\r\n backgroundColor?: string;\r\n\r\n /**\r\n * Input changes handler\r\n */\r\n @Output()\r\n inputValueChange = new EventEmitter<Event>();\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAiCa,kBAAkB,CAAA;AA3B/B,IAAA,WAAA,GAAA;QA4BS,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;QACP,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;QAClB,IAAiB,CAAA,iBAAA,GAAG,iBAAiB,CAAC;AAEtD;;AAEG;QAEH,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAQf;;AAEG;AAEH,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,YAAY,EAAS,CAAC;AAC9C,KAAA;+GAtBY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA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