@tekus/design-system 0.0.2 → 0.0.4
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/components/search-bar/index.d.ts +5 -0
- package/components/search-bar/public-api.d.ts +1 -0
- package/{lib/components → components}/search-bar/search-bar.component.d.ts +2 -4
- package/esm2022/components/search-bar/public-api.mjs +2 -0
- package/esm2022/components/search-bar/search-bar.component.mjs +77 -0
- package/esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs +5 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/tekus-design-system.mjs +2 -2
- package/fesm2022/tekus-design-system-components-search-bar.mjs +84 -0
- package/fesm2022/tekus-design-system-components-search-bar.mjs.map +1 -0
- package/fesm2022/tekus-design-system.mjs +0 -96
- package/fesm2022/tekus-design-system.mjs.map +1 -1
- package/index.d.ts +1 -5
- package/package.json +7 -1
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +0 -75
- package/esm2022/lib/design-system.module.mjs +0 -17
- package/esm2022/public-api.mjs +0 -6
- package/lib/design-system.module.d.ts +0 -7
- package/public-api.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './search-bar.component';
|
|
@@ -6,8 +6,6 @@ export declare class SearchBarComponent {
|
|
|
6
6
|
readonly faMagnifyingGlass: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
7
|
/**
|
|
8
8
|
* Search bar hint label
|
|
9
|
-
*
|
|
10
|
-
* @required
|
|
11
9
|
*/
|
|
12
10
|
hintLabel: string;
|
|
13
11
|
/**
|
|
@@ -17,7 +15,7 @@ export declare class SearchBarComponent {
|
|
|
17
15
|
/**
|
|
18
16
|
* Input changes handler
|
|
19
17
|
*/
|
|
20
|
-
|
|
18
|
+
inputValueChange: EventEmitter<string>;
|
|
21
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "lib-tks-search-bar", never, { "hintLabel": { "alias": "hintLabel"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, { "
|
|
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>;
|
|
23
21
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './search-bar.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vY29tcG9uZW50cy9zZWFyY2gtYmFyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2VhcmNoLWJhci5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
(ngModelChange)="inputValueChange.emit(inputValue)"
|
|
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{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar--opened .search__bar__input{width:100%;max-width:18rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:100%;max-width:18rem}.search__bar__input{width:0;max-width:100%;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
|
+
(ngModelChange)="inputValueChange.emit(inputValue)"
|
|
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{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar--opened .search__bar__input{width:100%;max-width:18rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:100%;max-width:18rem}.search__bar__input{width:0;max-width:100%;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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ij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gICovXHJcbiAgQElucHV0KClcclxuICBoaW50TGFiZWwgPSAnJztcclxuXHJcbiAgLyoqXHJcbiAgICogV2hhdCBiYWNrZ3JvdW5kIGNvbG9yIHRvIHVzZVxyXG4gICAqL1xyXG4gIEBJbnB1dCgpXHJcbiAgYmFja2dyb3VuZENvbG9yPzogc3RyaW5nO1xyXG5cclxuICAvKipcclxuICAgKiBJbnB1dCBjaGFuZ2VzIGhhbmRsZXJcclxuICAgKi9cclxuICBAT3V0cHV0KClcclxuICBpbnB1dFZhbHVlQ2hhbmdlID0gbmV3IEV2ZW50RW1pdHRlcjxzdHJpbmc+KCk7XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVrdXMtZGVzaWduLXN5c3RlbS1jb21wb25lbnRzLXNlYXJjaC1iYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL2NvbXBvbmVudHMvc2VhcmNoLWJhci90ZWt1cy1kZXNpZ24tc3lzdGVtLWNvbXBvbmVudHMtc2VhcmNoLWJhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
-
export * from './
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVrdXMtZGVzaWduLXN5c3RlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vdGVrdXMtZGVzaWduLXN5c3RlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
(ngModelChange)="inputValueChange.emit(inputValue)"
|
|
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{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar--opened .search__bar__input{width:100%;max-width:18rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:100%;max-width:18rem}.search__bar__input{width:0;max-width:100%;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
|
+
(ngModelChange)="inputValueChange.emit(inputValue)"
|
|
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{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar--opened .search__bar__input{width:100%;max-width:18rem}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:100%;max-width:18rem}.search__bar__input{width:0;max-width:100%;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
|
|
@@ -0,0 +1 @@
|
|
|
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 (ngModelChange)=\"inputValueChange.emit(inputValue)\"\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<string>();\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,IAAi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AA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,SAAA,EAAA,QAAA,EAAA,QAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,WAAW,8mBAAE,mBAAmB,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAwBhE,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBA3B9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAClB,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,mBAAmB,CAAC,EAClE,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAoBH,QAAA,CAAA,EAAA,MAAA,EAAA,CAAA,uqBAAA,CAAA,EAAA,CAAA;8BAYP,SAAS,EAAA,CAAA;sBADR,KAAK;gBAON,eAAe,EAAA,CAAA;sBADd,KAAK;gBAON,gBAAgB,EAAA,CAAA;sBADf,MAAM;;;ACrDT;;AAEG;;;;"}
|
|
@@ -1,100 +1,4 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@angular/forms';
|
|
6
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i2 from '@fortawesome/angular-fontawesome';
|
|
8
|
-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
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
|
-
* @required
|
|
20
|
-
*/
|
|
21
|
-
this.hintLabel = '';
|
|
22
|
-
/**
|
|
23
|
-
* Input changes handler
|
|
24
|
-
*/
|
|
25
|
-
this.inputChange = new EventEmitter();
|
|
26
|
-
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
-
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: { inputChange: "inputChange" }, ngImport: i0, template: `<div
|
|
29
|
-
class="search__bar"
|
|
30
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
31
|
-
>
|
|
32
|
-
<input
|
|
33
|
-
class="search__bar__input"
|
|
34
|
-
type="text"
|
|
35
|
-
[(ngModel)]="inputValue"
|
|
36
|
-
[placeholder]="hintLabel"
|
|
37
|
-
(ngModelChange)="inputChange.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{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:18rem}.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.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
|
-
class="search__bar"
|
|
52
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
53
|
-
>
|
|
54
|
-
<input
|
|
55
|
-
class="search__bar__input"
|
|
56
|
-
type="text"
|
|
57
|
-
[(ngModel)]="inputValue"
|
|
58
|
-
[placeholder]="hintLabel"
|
|
59
|
-
(ngModelChange)="inputChange.emit($event)"
|
|
60
|
-
/>
|
|
61
|
-
<fa-icon
|
|
62
|
-
class="search__bar__clear__mark__icon"
|
|
63
|
-
[icon]="faXmark"
|
|
64
|
-
*ngIf="inputValue !== ''"
|
|
65
|
-
(click)="inputValue = ''"
|
|
66
|
-
></fa-icon>
|
|
67
|
-
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
68
|
-
</div>`, styles: ["*{margin:0;padding:0;box-sizing:border-box}.search__bar{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:18rem}.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"] }]
|
|
69
|
-
}], propDecorators: { hintLabel: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], backgroundColor: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], inputChange: [{
|
|
74
|
-
type: Output
|
|
75
|
-
}] } });
|
|
76
|
-
|
|
77
|
-
class DesignSystemModule {
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
79
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, imports: [SearchBarComponent], exports: [SearchBarComponent] }); }
|
|
80
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, imports: [SearchBarComponent] }); }
|
|
81
|
-
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, decorators: [{
|
|
83
|
-
type: NgModule,
|
|
84
|
-
args: [{
|
|
85
|
-
declarations: [],
|
|
86
|
-
imports: [SearchBarComponent],
|
|
87
|
-
exports: [SearchBarComponent],
|
|
88
|
-
}]
|
|
89
|
-
}] });
|
|
90
|
-
|
|
91
|
-
/*
|
|
92
|
-
* Public API Surface of design-system
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
1
|
/**
|
|
96
2
|
* Generated bundle index. Do not edit.
|
|
97
3
|
*/
|
|
98
|
-
|
|
99
|
-
export { DesignSystemModule, SearchBarComponent };
|
|
100
4
|
//# sourceMappingURL=tekus-design-system.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tekus-design-system.mjs","sources":["../../../projects/design-system/
|
|
1
|
+
{"version":3,"file":"tekus-design-system.mjs","sources":["../../../projects/design-system/tekus-design-system.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekus/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.2.0",
|
|
6
6
|
"@angular/core": "^16.2.0"
|
|
@@ -20,6 +20,12 @@
|
|
|
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"
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
}
|
|
@@ -1,75 +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
|
-
* @required
|
|
19
|
-
*/
|
|
20
|
-
this.hintLabel = '';
|
|
21
|
-
/**
|
|
22
|
-
* Input changes handler
|
|
23
|
-
*/
|
|
24
|
-
this.inputChange = new EventEmitter();
|
|
25
|
-
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
-
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: { inputChange: "inputChange" }, ngImport: i0, template: `<div
|
|
28
|
-
class="search__bar"
|
|
29
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
30
|
-
>
|
|
31
|
-
<input
|
|
32
|
-
class="search__bar__input"
|
|
33
|
-
type="text"
|
|
34
|
-
[(ngModel)]="inputValue"
|
|
35
|
-
[placeholder]="hintLabel"
|
|
36
|
-
(ngModelChange)="inputChange.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{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:18rem}.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.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
|
-
class="search__bar"
|
|
51
|
-
[ngStyle]="{ 'background-color': backgroundColor }"
|
|
52
|
-
>
|
|
53
|
-
<input
|
|
54
|
-
class="search__bar__input"
|
|
55
|
-
type="text"
|
|
56
|
-
[(ngModel)]="inputValue"
|
|
57
|
-
[placeholder]="hintLabel"
|
|
58
|
-
(ngModelChange)="inputChange.emit($event)"
|
|
59
|
-
/>
|
|
60
|
-
<fa-icon
|
|
61
|
-
class="search__bar__clear__mark__icon"
|
|
62
|
-
[icon]="faXmark"
|
|
63
|
-
*ngIf="inputValue !== ''"
|
|
64
|
-
(click)="inputValue = ''"
|
|
65
|
-
></fa-icon>
|
|
66
|
-
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
67
|
-
</div>`, styles: ["*{margin:0;padding:0;box-sizing:border-box}.search__bar{width:-moz-fit-content;width:fit-content;height:2.5rem;display:flex;cursor:pointer;align-items:center;background-color:#fff}.search__bar:hover{border-bottom:2px solid black}.search__bar:hover .search__bar__input{width:18rem}.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"] }]
|
|
68
|
-
}], propDecorators: { hintLabel: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}], backgroundColor: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], inputChange: [{
|
|
73
|
-
type: Output
|
|
74
|
-
}] } });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9zZWFyY2gtYmFyL3NlYXJjaC1iYXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDckUsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2RSxPQUFPLEVBQUUsaUJBQWlCLEV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1pY29uPlxyXG4gICAgPGZhLWljb24gW2ljb25dPVwiZmFNYWduaWZ5aW5nR2xhc3NcIj48L2ZhLWljb24+XHJcbiAgPC9kaXY+YCxcclxuICBzdHlsZVVybHM6IFsnLi9zZWFyY2gtYmFyLmNvbXBvbmVudC5jc3MnXSxcclxufSlcclxuZXhwb3J0IGNsYXNzIFNlYXJjaEJhckNvbXBvbmVudCB7XHJcbiAgcHVibGljIGlucHV0VmFsdWUgPSAnJztcclxuICBwdWJsaWMgcmVhZG9ubHkgZmFYbWFyayA9IGZhWG1hcms7XHJcbiAgcHVibGljIHJlYWRvbmx5IGZhTWFnbmlmeWluZ0dsYXNzID0gZmFNYWduaWZ5aW5nR2xhc3M7XHJcblxyXG4gIC8qKlxyXG4gICAqIFNlYXJjaCBiYXIgaGludCBsYWJlbFxyXG4gICAqXHJcbiAgICogQHJlcXVpcmVkXHJcbiAgICovXHJcbiAgQElucHV0KClcclxuICBoaW50TGFiZWwgPSAnJztcclxuXHJcbiAgLyoqXHJcbiAgICogV2hhdCBiYWNrZ3JvdW5kIGNvbG9yIHRvIHVzZVxyXG4gICAqL1xyXG4gIEBJbnB1dCgpXHJcbiAgYmFja2dyb3VuZENvbG9yPzogc3RyaW5nO1xyXG5cclxuICAvKipcclxuICAgKiBJbnB1dCBjaGFuZ2VzIGhhbmRsZXJcclxuICAgKi9cclxuICBAT3V0cHV0KClcclxuICBpbnB1dENoYW5nZSA9IG5ldyBFdmVudEVtaXR0ZXI8RXZlbnQ+KCk7XHJcbn1cclxuIl19
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { SearchBarComponent } from './components/search-bar/search-bar.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class DesignSystemModule {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, imports: [SearchBarComponent], exports: [SearchBarComponent] }); }
|
|
7
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, imports: [SearchBarComponent] }); }
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DesignSystemModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [],
|
|
13
|
-
imports: [SearchBarComponent],
|
|
14
|
-
exports: [SearchBarComponent],
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLXN5c3RlbS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL3NyYy9saWIvZGVzaWduLXN5c3RlbS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQzs7QUFPbEYsTUFBTSxPQUFPLGtCQUFrQjsrR0FBbEIsa0JBQWtCO2dIQUFsQixrQkFBa0IsWUFIbkIsa0JBQWtCLGFBQ2xCLGtCQUFrQjtnSEFFakIsa0JBQWtCLFlBSG5CLGtCQUFrQjs7NEZBR2pCLGtCQUFrQjtrQkFMOUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsRUFBRTtvQkFDaEIsT0FBTyxFQUFFLENBQUMsa0JBQWtCLENBQUM7b0JBQzdCLE9BQU8sRUFBRSxDQUFDLGtCQUFrQixDQUFDO2lCQUM5QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IFNlYXJjaEJhckNvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy9zZWFyY2gtYmFyL3NlYXJjaC1iYXIuY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXSxcclxuICBpbXBvcnRzOiBbU2VhcmNoQmFyQ29tcG9uZW50XSxcclxuICBleHBvcnRzOiBbU2VhcmNoQmFyQ29tcG9uZW50XSxcclxufSlcclxuZXhwb3J0IGNsYXNzIERlc2lnblN5c3RlbU1vZHVsZSB7fVxyXG4iXX0=
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of design-system
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib/design-system.module';
|
|
5
|
-
export * from './lib/components/search-bar/search-bar.component';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDRCQUE0QixDQUFDO0FBQzNDLGNBQWMsa0RBQWtELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgZGVzaWduLXN5c3RlbVxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1zeXN0ZW0ubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9zZWFyY2gtYmFyL3NlYXJjaC1iYXIuY29tcG9uZW50JztcclxuIl19
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/search-bar/search-bar.component";
|
|
3
|
-
export declare class DesignSystemModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DesignSystemModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignSystemModule, never, [typeof i1.SearchBarComponent], [typeof i1.SearchBarComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DesignSystemModule>;
|
|
7
|
-
}
|
package/public-api.d.ts
DELETED