@tekus/design-system 1.0.0 → 1.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/README.md +86 -13
- package/components/search-bar/index.d.ts +5 -0
- package/components/search-bar/search-bar.component.d.ts +25 -0
- package/esm2022/components/search-bar/public-api.mjs +2 -0
- package/esm2022/components/search-bar/search-bar.component.mjs +83 -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 +5 -0
- package/fesm2022/tekus-design-system-components-search-bar.mjs +90 -0
- package/fesm2022/tekus-design-system-components-search-bar.mjs.map +1 -0
- package/fesm2022/tekus-design-system.mjs +4 -0
- package/fesm2022/tekus-design-system.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/package.json +24 -14
- package/.eslintrc.json +0 -37
- package/.releaserc.json +0 -70
- package/.storybook/main.ts +0 -19
- package/.storybook/preview.ts +0 -18
- package/.storybook/tsconfig.json +0 -23
- package/.storybook/typings.d.ts +0 -4
- package/components/search-bar/index.ts +0 -1
- package/components/search-bar/ng-package.json +0 -5
- package/components/search-bar/search-bar.component.css +0 -46
- package/components/search-bar/search-bar.component.spec.ts +0 -21
- package/components/search-bar/search-bar.component.stories.ts +0 -28
- package/components/search-bar/search-bar.component.ts +0 -78
- package/documentation.json +0 -353
- package/index.ts +0 -1
- package/karma-ci.conf.js +0 -54
- package/karma.conf.js +0 -33
- package/ng-package.json +0 -7
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/components/search-bar/{public-api.ts → public-api.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,24 +1,97 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Tekus Design System
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Welcome to the Tekus Design System brought to you by Tekus UX/UI team.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Tailored for building Tekus apps: Using the Design System results in UIs that reflect the Tekus look and feel.
|
|
6
|
+
- Continuously updated: As long as you’re using the latest version of the Design System, your pages are always up to date with Tekus UI changes.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
> Note: Don't forget to add `--project design-system` or else it will be added to the default project in your `angular.json` file.
|
|
8
|
+
## Getting Started 🚀
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
### Prerequisites 📝
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
First start by cloning the project into your machine, then you need to run the following command within the source path:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
```
|
|
17
|
+
npm install
|
|
18
|
+
```
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
Finally start the storybook to view and interact with all the available components using the following command:
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
```
|
|
23
|
+
npm run storybook
|
|
24
|
+
```
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
And you will see something like this running in your local machine:
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
<img src="assets/readme-images/storybook-main-page.png" width="821" alt="Storybook main page">
|
|
29
|
+
|
|
30
|
+
## Use a component from the library
|
|
31
|
+
|
|
32
|
+
### Prerequisites 📝
|
|
33
|
+
|
|
34
|
+
First you have to install the library inside the project where you want to use the component, using the following command:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
npm i @tekus/design-system
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Then you have to import the library component inside your component if you are working with standalone components or inside the target module of your project. Here you have an example to correctly import the search bar component from the library:
|
|
41
|
+
|
|
42
|
+
<img src="assets/readme-images/tks-library-import-example.png" width="821" alt="tekus library import example">
|
|
43
|
+
|
|
44
|
+
<br>
|
|
45
|
+
|
|
46
|
+
And do not forget to import inside your module or standalone component:
|
|
47
|
+
|
|
48
|
+
<br>
|
|
49
|
+
|
|
50
|
+
<img src="assets/readme-images/tks-library-module-import.png" width="400" alt="tekus library import example">
|
|
51
|
+
|
|
52
|
+
<br>
|
|
53
|
+
|
|
54
|
+
Once you have selected the component that you want to use and imported to your app, you can go to the storybook docs related with this specific component and click on the "show code" link:
|
|
55
|
+
|
|
56
|
+
<img src="assets/readme-images/storybook-docs-show-code.png" width="821" alt="Storybook show code">
|
|
57
|
+
|
|
58
|
+
<br>
|
|
59
|
+
|
|
60
|
+
Then you will see something like this:
|
|
61
|
+
|
|
62
|
+
<img src="assets/readme-images/storybook-copy-code.png" width="821" alt="Storybook copy code">
|
|
63
|
+
|
|
64
|
+
<br>
|
|
65
|
+
|
|
66
|
+
Now you can copy this code and paste it directly in you html file within the app you want to use the component, as follows:
|
|
67
|
+
|
|
68
|
+
<img src="assets/readme-images/storybook-use-case.png" width="821" alt="Storybook copy code">
|
|
69
|
+
|
|
70
|
+
<br>
|
|
71
|
+
|
|
72
|
+
## Note:
|
|
73
|
+
|
|
74
|
+
You need to ensure that you have installed all the peer dependencies related with the exact component that you want to use.
|
|
75
|
+
|
|
76
|
+
## Built with 🏗️
|
|
77
|
+
|
|
78
|
+
- [NPM](https://www.npmjs.com/)
|
|
79
|
+
- [Angular](https://angular.dev/)
|
|
80
|
+
- [StoryBook](https://storybook.js.org/)
|
|
81
|
+
|
|
82
|
+
## Contributions 🖇️
|
|
83
|
+
|
|
84
|
+
If you want to contribute to Tekus Design System, please follow these guidelines:
|
|
85
|
+
|
|
86
|
+
- Send a pull request from a branch with a meaningful name.
|
|
87
|
+
- Make changes using [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for easy versioning management. You will get an error message if you don't follow this, so you can either do it manually or use a vscode extension like [Conventional Commits](https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits)
|
|
88
|
+
|
|
89
|
+
## Versioning 🔩
|
|
90
|
+
|
|
91
|
+
We use [SemVer](https://semver.org/) for versioning. For the versions available, see the tags on this repository.
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
This library does not have an explicit license attached. All rights are reserved and any use or distribution is prohibited without the explicit permission of the copyright holder.
|
|
96
|
+
|
|
97
|
+
If you are interested in using, modifying, or distributing this library, please contact [Tekus](https://www.tekus.co/contacto/) for more information.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ElementRef, 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
|
+
searchInput: ElementRef;
|
|
8
|
+
/**
|
|
9
|
+
* Search bar hint label
|
|
10
|
+
*/
|
|
11
|
+
hintLabel: string;
|
|
12
|
+
/**
|
|
13
|
+
* What background color to use
|
|
14
|
+
*/
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Input changes handler
|
|
18
|
+
*/
|
|
19
|
+
inputValueChange: EventEmitter<string>;
|
|
20
|
+
onInputChange(): void;
|
|
21
|
+
onMouseEnter(): void;
|
|
22
|
+
onInputClear(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
|
|
24
|
+
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>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './search-bar.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vY29tcG9uZW50cy9zZWFyY2gtYmFyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2VhcmNoLWJhci5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Input, Output, Component, ViewChild, EventEmitter, } from '@angular/core';
|
|
2
|
+
import { FormsModule } from '@angular/forms';
|
|
3
|
+
import { NgClass, NgStyle, NgIf } from '@angular/common';
|
|
4
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
5
|
+
import { faMagnifyingGlass, faXmark } from '@fortawesome/pro-solid-svg-icons';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/forms";
|
|
8
|
+
import * as i2 from "@fortawesome/angular-fontawesome";
|
|
9
|
+
export class SearchBarComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.inputValue = '';
|
|
12
|
+
this.faXmark = faXmark;
|
|
13
|
+
this.faMagnifyingGlass = faMagnifyingGlass;
|
|
14
|
+
/**
|
|
15
|
+
* Search bar hint label
|
|
16
|
+
*/
|
|
17
|
+
this.hintLabel = '';
|
|
18
|
+
/**
|
|
19
|
+
* Input changes handler
|
|
20
|
+
*/
|
|
21
|
+
this.inputValueChange = new EventEmitter();
|
|
22
|
+
}
|
|
23
|
+
onInputChange() {
|
|
24
|
+
this.inputValueChange.emit(this.inputValue);
|
|
25
|
+
}
|
|
26
|
+
onMouseEnter() {
|
|
27
|
+
this.searchInput.nativeElement.focus();
|
|
28
|
+
}
|
|
29
|
+
onInputClear() {
|
|
30
|
+
this.inputValue = '';
|
|
31
|
+
this.inputValueChange.emit('');
|
|
32
|
+
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
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" }, viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }], ngImport: i0, template: `<div
|
|
35
|
+
class="search__bar"
|
|
36
|
+
(mouseenter)="onMouseEnter()"
|
|
37
|
+
[ngStyle]="{ 'background-color': backgroundColor }">
|
|
38
|
+
<input
|
|
39
|
+
class="search__bar__input"
|
|
40
|
+
type="text"
|
|
41
|
+
#searchInput
|
|
42
|
+
[(ngModel)]="inputValue"
|
|
43
|
+
[placeholder]="hintLabel"
|
|
44
|
+
(input)="onInputChange()" />
|
|
45
|
+
<fa-icon
|
|
46
|
+
class="search__bar__clear__mark__icon"
|
|
47
|
+
[icon]="faXmark"
|
|
48
|
+
*ngIf="inputValue !== ''"
|
|
49
|
+
(click)="onInputClear()"></fa-icon>
|
|
50
|
+
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
51
|
+
</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: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 .5s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__input:focus{width:13rem}.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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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"] }] }); }
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{ selector: 'lib-tks-search-bar', standalone: true, imports: [NgIf, NgClass, NgStyle, FormsModule, FontAwesomeModule], template: `<div
|
|
56
|
+
class="search__bar"
|
|
57
|
+
(mouseenter)="onMouseEnter()"
|
|
58
|
+
[ngStyle]="{ 'background-color': backgroundColor }">
|
|
59
|
+
<input
|
|
60
|
+
class="search__bar__input"
|
|
61
|
+
type="text"
|
|
62
|
+
#searchInput
|
|
63
|
+
[(ngModel)]="inputValue"
|
|
64
|
+
[placeholder]="hintLabel"
|
|
65
|
+
(input)="onInputChange()" />
|
|
66
|
+
<fa-icon
|
|
67
|
+
class="search__bar__clear__mark__icon"
|
|
68
|
+
[icon]="faXmark"
|
|
69
|
+
*ngIf="inputValue !== ''"
|
|
70
|
+
(click)="onInputClear()"></fa-icon>
|
|
71
|
+
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
72
|
+
</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: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 .5s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__input:focus{width:13rem}.search__bar__clear__mark__icon{margin:0 .5rem}.search__bar__clear__mark__icon:hover{scale:1.3;transition:all ease-in-out .1s}\n"] }]
|
|
73
|
+
}], propDecorators: { searchInput: [{
|
|
74
|
+
type: ViewChild,
|
|
75
|
+
args: ['searchInput', { static: false }]
|
|
76
|
+
}], hintLabel: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], backgroundColor: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], inputValueChange: [{
|
|
81
|
+
type: Output
|
|
82
|
+
}] } });
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tc3lzdGVtL2NvbXBvbmVudHMvc2VhcmNoLWJhci9zZWFyY2gtYmFyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsS0FBSyxFQUNMLE1BQU0sRUFDTixTQUFTLEVBQ1QsU0FBUyxFQUVULFlBQVksR0FDYixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQ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4gICAqIFNlYXJjaCBiYXIgaGludCBsYWJlbFxuICAgKi9cbiAgQElucHV0KClcbiAgaGludExhYmVsID0gJyc7XG5cbiAgLyoqXG4gICAqIFdoYXQgYmFja2dyb3VuZCBjb2xvciB0byB1c2VcbiAgICovXG4gIEBJbnB1dCgpXG4gIGJhY2tncm91bmRDb2xvcj86IHN0cmluZztcblxuICAvKipcbiAgICogSW5wdXQgY2hhbmdlcyBoYW5kbGVyXG4gICAqL1xuICBAT3V0cHV0KClcbiAgaW5wdXRWYWx1ZUNoYW5nZSA9IG5ldyBFdmVudEVtaXR0ZXI8c3RyaW5nPigpO1xuXG4gIHB1YmxpYyBvbklucHV0Q2hhbmdlKCk6IHZvaWQge1xuICAgIHRoaXMuaW5wdXRWYWx1ZUNoYW5nZS5lbWl0KHRoaXMuaW5wdXRWYWx1ZSk7XG4gIH1cblxuICBwdWJsaWMgb25Nb3VzZUVudGVyKCk6IHZvaWQge1xuICAgIHRoaXMuc2VhcmNoSW5wdXQubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICB9XG5cbiAgcHVibGljIG9uSW5wdXRDbGVhcigpIHtcbiAgICB0aGlzLmlucHV0VmFsdWUgPSAnJztcbiAgICB0aGlzLmlucHV0VmFsdWVDaGFuZ2UuZW1pdCgnJyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -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
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVrdXMtZGVzaWduLXN5c3RlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vdGVrdXMtZGVzaWduLXN5c3RlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, ViewChild, Input, Output } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { NgIf, NgStyle, NgClass } from '@angular/common';
|
|
6
|
+
import * as i2 from '@fortawesome/angular-fontawesome';
|
|
7
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
8
|
+
import { faXmark, faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
|
|
9
|
+
|
|
10
|
+
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
|
+
onInputChange() {
|
|
25
|
+
this.inputValueChange.emit(this.inputValue);
|
|
26
|
+
}
|
|
27
|
+
onMouseEnter() {
|
|
28
|
+
this.searchInput.nativeElement.focus();
|
|
29
|
+
}
|
|
30
|
+
onInputClear() {
|
|
31
|
+
this.inputValue = '';
|
|
32
|
+
this.inputValueChange.emit('');
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
+
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" }, viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }], ngImport: i0, template: `<div
|
|
36
|
+
class="search__bar"
|
|
37
|
+
(mouseenter)="onMouseEnter()"
|
|
38
|
+
[ngStyle]="{ 'background-color': backgroundColor }">
|
|
39
|
+
<input
|
|
40
|
+
class="search__bar__input"
|
|
41
|
+
type="text"
|
|
42
|
+
#searchInput
|
|
43
|
+
[(ngModel)]="inputValue"
|
|
44
|
+
[placeholder]="hintLabel"
|
|
45
|
+
(input)="onInputChange()" />
|
|
46
|
+
<fa-icon
|
|
47
|
+
class="search__bar__clear__mark__icon"
|
|
48
|
+
[icon]="faXmark"
|
|
49
|
+
*ngIf="inputValue !== ''"
|
|
50
|
+
(click)="onInputClear()"></fa-icon>
|
|
51
|
+
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
52
|
+
</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: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 .5s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__input:focus{width:13rem}.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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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"] }] }); }
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{ selector: 'lib-tks-search-bar', standalone: true, imports: [NgIf, NgClass, NgStyle, FormsModule, FontAwesomeModule], template: `<div
|
|
57
|
+
class="search__bar"
|
|
58
|
+
(mouseenter)="onMouseEnter()"
|
|
59
|
+
[ngStyle]="{ 'background-color': backgroundColor }">
|
|
60
|
+
<input
|
|
61
|
+
class="search__bar__input"
|
|
62
|
+
type="text"
|
|
63
|
+
#searchInput
|
|
64
|
+
[(ngModel)]="inputValue"
|
|
65
|
+
[placeholder]="hintLabel"
|
|
66
|
+
(input)="onInputChange()" />
|
|
67
|
+
<fa-icon
|
|
68
|
+
class="search__bar__clear__mark__icon"
|
|
69
|
+
[icon]="faXmark"
|
|
70
|
+
*ngIf="inputValue !== ''"
|
|
71
|
+
(click)="onInputClear()"></fa-icon>
|
|
72
|
+
<fa-icon [icon]="faMagnifyingGlass"></fa-icon>
|
|
73
|
+
</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: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 .5s;font-size:clamp(.8rem,.675rem + .333vw,.975rem)}.search__bar__input:focus{width:13rem}.search__bar__clear__mark__icon{margin:0 .5rem}.search__bar__clear__mark__icon:hover{scale:1.3;transition:all ease-in-out .1s}\n"] }]
|
|
74
|
+
}], propDecorators: { searchInput: [{
|
|
75
|
+
type: ViewChild,
|
|
76
|
+
args: ['searchInput', { static: false }]
|
|
77
|
+
}], hintLabel: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], backgroundColor: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], inputValueChange: [{
|
|
82
|
+
type: Output
|
|
83
|
+
}] } });
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Generated bundle index. Do not edit.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
export { SearchBarComponent };
|
|
90
|
+
//# 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 {\n Input,\n Output,\n Component,\n ViewChild,\n ElementRef,\n EventEmitter,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgClass, NgStyle, NgIf } from '@angular/common';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { faMagnifyingGlass, faXmark } from '@fortawesome/pro-solid-svg-icons';\n\n@Component({\n selector: 'lib-tks-search-bar',\n standalone: true,\n imports: [NgIf, NgClass, NgStyle, FormsModule, FontAwesomeModule],\n template: `<div\n class=\"search__bar\"\n (mouseenter)=\"onMouseEnter()\"\n [ngStyle]=\"{ 'background-color': backgroundColor }\">\n <input\n class=\"search__bar__input\"\n type=\"text\"\n #searchInput\n [(ngModel)]=\"inputValue\"\n [placeholder]=\"hintLabel\"\n (input)=\"onInputChange()\" />\n <fa-icon\n class=\"search__bar__clear__mark__icon\"\n [icon]=\"faXmark\"\n *ngIf=\"inputValue !== ''\"\n (click)=\"onInputClear()\"></fa-icon>\n <fa-icon [icon]=\"faMagnifyingGlass\"></fa-icon>\n </div>`,\n styleUrls: ['./search-bar.component.css'],\n})\nexport class SearchBarComponent {\n public inputValue = '';\n public readonly faXmark = faXmark;\n public readonly faMagnifyingGlass = faMagnifyingGlass;\n\n @ViewChild('searchInput', { static: false }) searchInput!: ElementRef;\n\n /**\n * Search bar hint label\n */\n @Input()\n hintLabel = '';\n\n /**\n * What background color to use\n */\n @Input()\n backgroundColor?: string;\n\n /**\n * Input changes handler\n */\n @Output()\n inputValueChange = new EventEmitter<string>();\n\n public onInputChange(): void {\n this.inputValueChange.emit(this.inputValue);\n }\n\n public onMouseEnter(): void {\n this.searchInput.nativeElement.focus();\n }\n\n public onInputClear() {\n this.inputValue = '';\n this.inputValueChange.emit('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAqCa,kBAAkB,CAAA;AAxB/B,IAAA,WAAA,GAAA;QAyBS,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;QACP,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;QAClB,IAAiB,CAAA,iBAAA,GAAG,iBAAiB,CAAC;AAItD;;AAEG;QAEH,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAQf;;AAEG;AAEH,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,YAAY,EAAU,CAAC;AAc/C,KAAA;IAZQ,aAAa,GAAA;QAClB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAC7C;IAEM,YAAY,GAAA;AACjB,QAAA,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;KACxC;IAEM,YAAY,GAAA;AACjB,QAAA,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAChC;+GApCU,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,EApBnB,YAA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B9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAClB,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,CAAC,EACvD,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;AAiBH,QAAA,CAAA,EAAA,MAAA,EAAA,CAAA,opBAAA,CAAA,EAAA,CAAA;8BAQsC,WAAW,EAAA,CAAA;sBAAvD,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,aAAa,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;gBAM3C,SAAS,EAAA,CAAA;sBADR,KAAK;gBAON,eAAe,EAAA,CAAA;sBADd,KAAK;gBAON,gBAAgB,EAAA,CAAA;sBADf,MAAM;;;AC3DT;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekus/design-system",
|
|
3
3
|
"description": "Tekus design system library",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/core": "^16.2.0",
|
|
@@ -13,19 +13,29 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
16
|
-
"release": {
|
|
17
|
-
"branches": [
|
|
18
|
-
"master",
|
|
19
|
-
"develop"
|
|
20
|
-
],
|
|
21
|
-
"plugins": [
|
|
22
|
-
"@semantic-release/commit-analyzer",
|
|
23
|
-
"@semantic-release/release-notes-generator",
|
|
24
|
-
"@semantic-release/npm"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
16
|
"publishConfig": {
|
|
28
|
-
"
|
|
17
|
+
"tag": "latest",
|
|
18
|
+
"access": "public",
|
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
20
|
},
|
|
30
|
-
"sideEffects": false
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"module": "fesm2022/tekus-design-system.mjs",
|
|
23
|
+
"typings": "index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
"./package.json": {
|
|
26
|
+
"default": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./index.d.ts",
|
|
30
|
+
"esm2022": "./esm2022/tekus-design-system.mjs",
|
|
31
|
+
"esm": "./esm2022/tekus-design-system.mjs",
|
|
32
|
+
"default": "./fesm2022/tekus-design-system.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./components/search-bar": {
|
|
35
|
+
"types": "./components/search-bar/index.d.ts",
|
|
36
|
+
"esm2022": "./esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs",
|
|
37
|
+
"esm": "./esm2022/components/search-bar/tekus-design-system-components-search-bar.mjs",
|
|
38
|
+
"default": "./fesm2022/tekus-design-system-components-search-bar.mjs"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
31
41
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../.eslintrc.json",
|
|
3
|
-
"ignorePatterns": [
|
|
4
|
-
"!**/*"
|
|
5
|
-
],
|
|
6
|
-
"overrides": [
|
|
7
|
-
{
|
|
8
|
-
"files": [
|
|
9
|
-
"*.ts"
|
|
10
|
-
],
|
|
11
|
-
"rules": {
|
|
12
|
-
"@angular-eslint/directive-selector": [
|
|
13
|
-
"error",
|
|
14
|
-
{
|
|
15
|
-
"type": "attribute",
|
|
16
|
-
"prefix": "lib",
|
|
17
|
-
"style": "camelCase"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"@angular-eslint/component-selector": [
|
|
21
|
-
"error",
|
|
22
|
-
{
|
|
23
|
-
"type": "element",
|
|
24
|
-
"prefix": "lib",
|
|
25
|
-
"style": "kebab-case"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"files": [
|
|
32
|
-
"*.html"
|
|
33
|
-
],
|
|
34
|
-
"rules": {}
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
package/.releaserc.json
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"release": {
|
|
3
|
-
"branches": [
|
|
4
|
-
"master",
|
|
5
|
-
"develop"
|
|
6
|
-
],
|
|
7
|
-
"plugins": [
|
|
8
|
-
[
|
|
9
|
-
"@semantic-release/commit-analyzer",
|
|
10
|
-
{
|
|
11
|
-
"preset": "angular",
|
|
12
|
-
"releaseRules": [
|
|
13
|
-
{
|
|
14
|
-
"type": "breaking",
|
|
15
|
-
"release": "major"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "refactor",
|
|
19
|
-
"release": "patch"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"type": "config",
|
|
23
|
-
"release": "patch"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"scope": "no-release",
|
|
27
|
-
"release": false
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"scope": "test",
|
|
31
|
-
"release": false
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"parserOpts": {
|
|
35
|
-
"noteKeywords": [
|
|
36
|
-
"BREAKING CHANGE",
|
|
37
|
-
"BREAKING CHANGES",
|
|
38
|
-
"BREAKING"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
[
|
|
44
|
-
"@semantic-release/release-notes-generator",
|
|
45
|
-
{
|
|
46
|
-
"preset": "angular",
|
|
47
|
-
"parserOpts": {
|
|
48
|
-
"noteKeywords": [
|
|
49
|
-
"BREAKING CHANGE",
|
|
50
|
-
"BREAKING CHANGES",
|
|
51
|
-
"BREAKING"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"writerOpts": {
|
|
55
|
-
"commitsSort": [
|
|
56
|
-
"subject",
|
|
57
|
-
"scope"
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
"@semantic-release/npm",
|
|
64
|
-
{
|
|
65
|
-
"pkgRoot": "dist/design-system"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
}
|
package/.storybook/main.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { StorybookConfig } from '@storybook/angular';
|
|
2
|
-
|
|
3
|
-
const config: StorybookConfig = {
|
|
4
|
-
stories: ['../**/*.mdx', '../**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
5
|
-
addons: [
|
|
6
|
-
'@storybook/addon-a11y',
|
|
7
|
-
'@storybook/addon-links',
|
|
8
|
-
'@storybook/addon-essentials',
|
|
9
|
-
'@storybook/addon-interactions',
|
|
10
|
-
],
|
|
11
|
-
framework: {
|
|
12
|
-
name: '@storybook/angular',
|
|
13
|
-
options: {},
|
|
14
|
-
},
|
|
15
|
-
docs: {
|
|
16
|
-
autodocs: 'tag',
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export default config;
|
package/.storybook/preview.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Preview } from "@storybook/angular";
|
|
2
|
-
import { setCompodocJson } from "@storybook/addon-docs/angular";
|
|
3
|
-
import docJson from "../documentation.json";
|
|
4
|
-
setCompodocJson(docJson);
|
|
5
|
-
|
|
6
|
-
const preview: Preview = {
|
|
7
|
-
parameters: {
|
|
8
|
-
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
9
|
-
controls: {
|
|
10
|
-
matchers: {
|
|
11
|
-
color: /(background|color)$/i,
|
|
12
|
-
date: /Date$/i,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default preview;
|
package/.storybook/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.lib.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"types": [
|
|
5
|
-
"node"
|
|
6
|
-
],
|
|
7
|
-
"allowSyntheticDefaultImports": true,
|
|
8
|
-
"resolveJsonModule": true
|
|
9
|
-
},
|
|
10
|
-
"exclude": [
|
|
11
|
-
"../test.ts",
|
|
12
|
-
"../**/*.spec.ts"
|
|
13
|
-
],
|
|
14
|
-
"include": [
|
|
15
|
-
"../**/*",
|
|
16
|
-
"./preview.ts",
|
|
17
|
-
"../stories/**/*",
|
|
18
|
-
"../projects/**/*"
|
|
19
|
-
],
|
|
20
|
-
"files": [
|
|
21
|
-
"./typings.d.ts"
|
|
22
|
-
]
|
|
23
|
-
}
|
package/.storybook/typings.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './public-api';
|