@hmscodes/honey-core 1.0.18 → 1.0.20

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.
Files changed (52) hide show
  1. package/.editorconfig +17 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +20 -0
  4. package/.vscode/tasks.json +42 -0
  5. package/README.md +14 -18
  6. package/angular.json +64 -0
  7. package/package.json +45 -24
  8. package/projects/honey-core/.storybook/main.ts +18 -0
  9. package/projects/honey-core/.storybook/preview.ts +14 -0
  10. package/projects/honey-core/.storybook/tsconfig.json +11 -0
  11. package/projects/honey-core/.storybook/typings.d.ts +4 -0
  12. package/projects/honey-core/README.md +63 -0
  13. package/projects/honey-core/ng-package.json +8 -0
  14. package/projects/honey-core/package.json +20 -0
  15. package/projects/honey-core/src/lib/components/button/button.component.html +11 -0
  16. package/projects/honey-core/src/lib/components/button/button.component.scss +25 -0
  17. package/projects/honey-core/src/lib/components/button/button.component.spec.ts +23 -0
  18. package/projects/honey-core/src/lib/components/button/button.component.ts +38 -0
  19. package/projects/honey-core/src/lib/components/input/input-floating-label.component.html +10 -0
  20. package/projects/honey-core/src/lib/components/input/input-floating-label.component.scss +37 -0
  21. package/projects/honey-core/src/lib/components/input/input-floating-label.component.spec.ts +22 -0
  22. package/projects/honey-core/src/lib/components/input/input-floating-label.component.ts +18 -0
  23. package/projects/honey-core/src/lib/components/input-dropdown/hc-input-dropdown.component.html +23 -0
  24. package/projects/honey-core/src/lib/components/input-dropdown/hc-input-dropdown.component.scss +67 -0
  25. package/projects/honey-core/src/lib/components/input-dropdown/hc-input-dropdown.component.ts +44 -0
  26. package/projects/honey-core/src/lib/honey-core.component.spec.ts +23 -0
  27. package/projects/honey-core/src/lib/honey-core.component.ts +15 -0
  28. package/projects/honey-core/src/lib/honey-core.service.spec.ts +16 -0
  29. package/projects/honey-core/src/lib/honey-core.service.ts +9 -0
  30. package/{public-api.d.ts → projects/honey-core/src/public-api.ts} +5 -0
  31. package/projects/honey-core/src/stories/.eslintrc.json +5 -0
  32. package/projects/honey-core/src/stories/Colors.mdx +40 -0
  33. package/projects/honey-core/src/stories/Presentation.mdx +7 -0
  34. package/projects/honey-core/src/stories/button.component.stories.ts +80 -0
  35. package/projects/honey-core/src/stories/button.css +30 -0
  36. package/projects/honey-core/src/stories/hc-input-dropdown.stories.ts +36 -0
  37. package/projects/honey-core/src/stories/input-floating-label.component.stories.ts +25 -0
  38. package/projects/honey-core/src/stories/user.ts +3 -0
  39. package/projects/honey-core/styles/hc-button.scss +174 -0
  40. package/projects/honey-core/styles/variables.css +43 -0
  41. package/projects/honey-core/tsconfig.lib.json +15 -0
  42. package/projects/honey-core/tsconfig.lib.prod.json +11 -0
  43. package/projects/honey-core/tsconfig.spec.json +15 -0
  44. package/tsconfig.json +32 -0
  45. package/fesm2022/hmscodes-honey-core.mjs +0 -104
  46. package/fesm2022/hmscodes-honey-core.mjs.map +0 -1
  47. package/index.d.ts +0 -5
  48. package/lib/components/button/button.component.d.ts +0 -19
  49. package/lib/components/input/input-floating-label.component.d.ts +0 -11
  50. package/lib/honey-core.component.d.ts +0 -5
  51. package/lib/honey-core.service.d.ts +0 -6
  52. package/styles/variables.css +0 -24
package/.editorconfig ADDED
@@ -0,0 +1,17 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.ts]
12
+ quote_type = single
13
+ ij_typescript_use_double_quotes = false
14
+
15
+ [*.md]
16
+ max_line_length = off
17
+ trim_trailing_whitespace = false
@@ -0,0 +1,4 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
+ "recommendations": ["angular.ng-template"]
4
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
+ "version": "0.2.0",
4
+ "configurations": [
5
+ {
6
+ "name": "ng serve",
7
+ "type": "chrome",
8
+ "request": "launch",
9
+ "preLaunchTask": "npm: start",
10
+ "url": "http://localhost:4200/"
11
+ },
12
+ {
13
+ "name": "ng test",
14
+ "type": "chrome",
15
+ "request": "launch",
16
+ "preLaunchTask": "npm: test",
17
+ "url": "http://localhost:9876/debug.html"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
+ "version": "2.0.0",
4
+ "tasks": [
5
+ {
6
+ "type": "npm",
7
+ "script": "start",
8
+ "isBackground": true,
9
+ "problemMatcher": {
10
+ "owner": "typescript",
11
+ "pattern": "$tsc",
12
+ "background": {
13
+ "activeOnStart": true,
14
+ "beginsPattern": {
15
+ "regexp": "(.*?)"
16
+ },
17
+ "endsPattern": {
18
+ "regexp": "bundle generation complete"
19
+ }
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "type": "npm",
25
+ "script": "test",
26
+ "isBackground": true,
27
+ "problemMatcher": {
28
+ "owner": "typescript",
29
+ "pattern": "$tsc",
30
+ "background": {
31
+ "activeOnStart": true,
32
+ "beginsPattern": {
33
+ "regexp": "(.*?)"
34
+ },
35
+ "endsPattern": {
36
+ "regexp": "bundle generation complete"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }
package/README.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # HoneyCore
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.4.
4
+
5
+ ## Development server
6
+
7
+ To start a local development server, run:
8
+
9
+ ```bash
10
+ ng serve
11
+ ```
12
+
13
+ Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
4
14
 
5
15
  ## Code scaffolding
6
16
 
@@ -18,27 +28,13 @@ ng generate --help
18
28
 
19
29
  ## Building
20
30
 
21
- To build the library, run:
31
+ To build the project run:
22
32
 
23
33
  ```bash
24
- ng build honey-core
34
+ ng build
25
35
  ```
26
36
 
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
-
29
- ### Publishing the Library
30
-
31
- Once the project is built, you can publish your library by following these steps:
32
-
33
- 1. Navigate to the `dist` directory:
34
- ```bash
35
- cd dist/honey-core
36
- ```
37
-
38
- 2. Run the `npm publish` command to publish your library to the npm registry:
39
- ```bash
40
- npm publish
41
- ```
37
+ This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
42
38
 
43
39
  ## Running unit tests
44
40
 
package/angular.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "honey-core": {
7
+ "projectType": "library",
8
+ "root": "projects/honey-core",
9
+ "sourceRoot": "projects/honey-core/src",
10
+ "prefix": "lib",
11
+ "architect": {
12
+ "build": {
13
+ "builder": "@angular-devkit/build-angular:ng-packagr",
14
+ "options": {
15
+ "project": "projects/honey-core/ng-package.json"
16
+ },
17
+ "configurations": {
18
+ "production": {
19
+ "tsConfig": "projects/honey-core/tsconfig.lib.prod.json"
20
+ },
21
+ "development": {
22
+ "tsConfig": "projects/honey-core/tsconfig.lib.json"
23
+ }
24
+ },
25
+ "defaultConfiguration": "production"
26
+ },
27
+ "test": {
28
+ "builder": "@angular-devkit/build-angular:karma",
29
+ "options": {
30
+ "tsConfig": "projects/honey-core/tsconfig.spec.json",
31
+ "polyfills": [
32
+ "zone.js",
33
+ "zone.js/testing"
34
+ ]
35
+ }
36
+ },
37
+ "storybook": {
38
+ "builder": "@storybook/angular:start-storybook",
39
+ "options": {
40
+ "configDir": "projects/honey-core/.storybook",
41
+ "browserTarget": "honey-core:build",
42
+ "compodoc": false,
43
+ "port": 6006,
44
+ "styles": [
45
+ "projects/honey-core/styles/variables.css"
46
+ ]
47
+ }
48
+ },
49
+ "build-storybook": {
50
+ "builder": "@storybook/angular:build-storybook",
51
+ "options": {
52
+ "configDir": "projects/honey-core/.storybook",
53
+ "browserTarget": "honey-core:build",
54
+ "compodoc": false,
55
+ "outputDir": "storybook-static"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ },
61
+ "cli": {
62
+ "analytics": false
63
+ }
64
+ }
package/package.json CHANGED
@@ -1,29 +1,50 @@
1
1
  {
2
2
  "name": "@hmscodes/honey-core",
3
- "version": "1.0.18",
4
- "exports": {
5
- "./styles/variables.css": {
6
- "default": "./styles/variables.css"
7
- },
8
- "./": {
9
- "default": "./"
10
- },
11
- "./package.json": {
12
- "default": "./package.json"
13
- },
14
- ".": {
15
- "types": "./index.d.ts",
16
- "default": "./fesm2022/hmscodes-honey-core.mjs"
17
- }
18
- },
19
- "peerDependencies": {
20
- "@angular/common": "^19.2.0",
21
- "@angular/core": "^19.2.0"
3
+ "version": "1.0.20",
4
+ "scripts": {
5
+ "ng": "ng",
6
+ "start": "ng serve",
7
+ "build": "ng build",
8
+ "build:lib": "ng build honey-core",
9
+ "publish:lib": "npm run build:lib && cd dist/honey-core && npm publish --access public",
10
+ "watch": "ng build --watch --configuration development",
11
+ "test": "ng test",
12
+ "storybook": "ng run honey-core:storybook",
13
+ "build-storybook": "ng run honey-core:build-storybook"
22
14
  },
15
+ "private": false,
23
16
  "dependencies": {
24
- "tslib": "^2.3.0"
17
+ "@angular/common": "^19.2.0",
18
+ "@angular/compiler": "^19.2.0",
19
+ "@angular/core": "^19.2.0",
20
+ "@angular/forms": "^19.2.0",
21
+ "@angular/platform-browser": "^19.2.0",
22
+ "@angular/platform-browser-dynamic": "^19.2.0",
23
+ "@angular/router": "^19.2.0",
24
+ "rxjs": "~7.8.0",
25
+ "tslib": "^2.3.0",
26
+ "zone.js": "~0.15.0"
25
27
  },
26
- "sideEffects": false,
27
- "module": "fesm2022/hmscodes-honey-core.mjs",
28
- "typings": "index.d.ts"
29
- }
28
+ "devDependencies": {
29
+ "@angular-devkit/build-angular": "^19.2.8",
30
+ "@angular/cli": "^19.2.4",
31
+ "@angular/compiler-cli": "^19.2.0",
32
+ "@storybook/addon-essentials": "^8.6.12",
33
+ "@storybook/addon-interactions": "^8.6.12",
34
+ "@storybook/addon-onboarding": "^8.6.12",
35
+ "@storybook/angular": "^8.6.12",
36
+ "@storybook/blocks": "^8.6.12",
37
+ "@storybook/test": "^8.6.12",
38
+ "@types/jasmine": "~5.1.0",
39
+ "jasmine-core": "~5.6.0",
40
+ "karma": "~6.4.0",
41
+ "karma-chrome-launcher": "~3.2.0",
42
+ "karma-coverage": "~2.2.0",
43
+ "karma-jasmine": "~5.1.0",
44
+ "karma-jasmine-html-reporter": "~2.1.0",
45
+ "ng-packagr": "^19.2.0",
46
+ "sass": "^1.87.0",
47
+ "storybook": "^8.6.12",
48
+ "typescript": "~5.7.2"
49
+ }
50
+ }
@@ -0,0 +1,18 @@
1
+ import type { StorybookConfig } from '@storybook/angular';
2
+
3
+ const config: StorybookConfig = {
4
+ "stories": [
5
+ "../src/**/*.mdx",
6
+ "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
7
+ ],
8
+ "addons": [
9
+ "@storybook/addon-essentials",
10
+ "@storybook/addon-onboarding",
11
+ "@storybook/addon-interactions"
12
+ ],
13
+ "framework": {
14
+ "name": "@storybook/angular",
15
+ "options": {}
16
+ }
17
+ };
18
+ export default config;
@@ -0,0 +1,14 @@
1
+ import type { Preview } from '@storybook/angular'
2
+
3
+ const preview: Preview = {
4
+ parameters: {
5
+ controls: {
6
+ matchers: {
7
+ color: /(background|color)$/i,
8
+ date: /Date$/i,
9
+ },
10
+ },
11
+ },
12
+ };
13
+
14
+ export default preview;
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../tsconfig.lib.json",
3
+ "compilerOptions": {
4
+ "types": ["node"],
5
+ "allowSyntheticDefaultImports": true,
6
+ "resolveJsonModule": true
7
+ },
8
+ "exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
9
+ "include": ["../src/**/*.stories.*", "./preview.ts"],
10
+ "files": ["./typings.d.ts"]
11
+ }
@@ -0,0 +1,4 @@
1
+ declare module '*.md' {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,63 @@
1
+ # HoneyCore
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build honey-core
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+ ```bash
35
+ cd dist/honey-core
36
+ ```
37
+
38
+ 2. Run the `npm publish` command to publish your library to the npm registry:
39
+ ```bash
40
+ npm publish
41
+ ```
42
+
43
+ ## Running unit tests
44
+
45
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
46
+
47
+ ```bash
48
+ ng test
49
+ ```
50
+
51
+ ## Running end-to-end tests
52
+
53
+ For end-to-end (e2e) testing, run:
54
+
55
+ ```bash
56
+ ng e2e
57
+ ```
58
+
59
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
60
+
61
+ ## Additional Resources
62
+
63
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/honey-core",
4
+ "assets": ["styles/variables.css"],
5
+ "lib": {
6
+ "entryFile": "src/public-api.ts"
7
+ }
8
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@hmscodes/honey-core",
3
+ "version": "1.0.20",
4
+ "exports": {
5
+ "./styles/variables.css": {
6
+ "default": "./styles/variables.css"
7
+ },
8
+ "./": {
9
+ "default": "./"
10
+ }
11
+ },
12
+ "peerDependencies": {
13
+ "@angular/common": "^19.2.0",
14
+ "@angular/core": "^19.2.0"
15
+ },
16
+ "dependencies": {
17
+ "tslib": "^2.3.0"
18
+ },
19
+ "sideEffects": false
20
+ }
@@ -0,0 +1,11 @@
1
+ <button
2
+ type="button"
3
+ [class]="classes"
4
+ [class.loading]="loading"
5
+ [disabled]="loading ? true : disabled"
6
+ (click)="onClick.emit($event)"
7
+ >
8
+ @if (!loading) {
9
+ <ng-content />
10
+ }
11
+ </button>
@@ -0,0 +1,25 @@
1
+ @use '../../../../styles/hc-button.scss' as *;
2
+
3
+ button {
4
+ font-size : 50px;
5
+
6
+ &.loading {
7
+ position : relative;
8
+
9
+ &::before {
10
+ content : "...";
11
+ position : absolute;
12
+ top : -10px;
13
+ color : var(--hc-text-white, var(--shc-text-white));
14
+ font-size : 32px;
15
+ animation : dotAnimation 1.5s infinite steps(4);
16
+ }
17
+ }
18
+ }
19
+
20
+ @keyframes dotAnimation {
21
+ 0% { content: ""; }
22
+ 25% { content: "."; }
23
+ 50% { content: ".."; }
24
+ 75% { content: "..."; }
25
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { HcButtonComponent } from './button.component';
4
+
5
+ describe('HcButtonComponent', () => {
6
+ let component: HcButtonComponent;
7
+ let fixture: ComponentFixture<HcButtonComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ imports: [HcButtonComponent]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(HcButtonComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,38 @@
1
+ import { Component, Input, Output, EventEmitter } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'hc-button',
5
+ templateUrl: './button.component.html',
6
+ styleUrl: './button.component.scss',
7
+ imports: [],
8
+ standalone: true,
9
+ })
10
+ export class HcButtonComponent {
11
+ /** Style of the button */
12
+ @Input()
13
+ style: 's-solid' | 's-hollow' | 's-plain' = 's-solid';
14
+
15
+ /** What color to use for the button */
16
+ @Input()
17
+ color?: string = 'c-primary';
18
+
19
+ /** Size of the button */
20
+ @Input()
21
+ size?: 'h-small' | 'w-stretch' | null = null;
22
+
23
+ /** Disabled state of the button */
24
+ @Input()
25
+ disabled = false;
26
+
27
+ /** Whether the button is in a loading state */
28
+ @Input()
29
+ loading = false;
30
+
31
+ /** Optional click handler */
32
+ @Output()
33
+ onClick = new EventEmitter<Event>();
34
+
35
+ public get classes(): string[] {
36
+ return ['hc-button', `${this.size}`, `${this.style}`, `${this.color}`];
37
+ }
38
+ }
@@ -0,0 +1,10 @@
1
+ <fieldset class="hc-input">
2
+ <input
3
+ [id]="id"
4
+ [type]="type"
5
+ [required]="required"
6
+ [formControl]="control"
7
+ placeholder=" "
8
+ />
9
+ <label [for]="id">{{ label }}</label>
10
+ </fieldset>
@@ -0,0 +1,37 @@
1
+ .hc-input {
2
+ position: relative;
3
+ border: none;
4
+ padding: 0;
5
+ margin: 1rem 0;
6
+
7
+ input {
8
+ width: 100%;
9
+ padding: 1.2rem 0.8rem 0.4rem;
10
+ font-size: 1rem;
11
+ border: 1px solid #ccc;
12
+ border-radius: 4px;
13
+
14
+ &:focus {
15
+ outline: none;
16
+ border-color: var(--hc-primary-500, var(--shc-primary-500));
17
+ }
18
+
19
+ &:focus + label,
20
+ &:not(:placeholder-shown) + label {
21
+ transform: translateY(-1rem);
22
+ font-size: 0.75rem;
23
+ color: var(--hc-primary-500, var(--shc-primary-500));
24
+ }
25
+ }
26
+
27
+ label {
28
+ position: absolute;
29
+ left: 0.8rem;
30
+ top: 1rem;
31
+ transition: all 0.2s ease;
32
+ pointer-events: none;
33
+ color: #666;
34
+ background-color: white;
35
+ padding: 0 0.2rem;
36
+ }
37
+ }
@@ -0,0 +1,22 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { InputFloatingLabelComponent } from './input-floating-label.component';
3
+
4
+ describe('InputFloatingLabelComponent', () => {
5
+ let component: InputFloatingLabelComponent;
6
+ let fixture: ComponentFixture<InputFloatingLabelComponent>;
7
+
8
+ beforeEach(async () => {
9
+ await TestBed.configureTestingModule({
10
+ imports: [InputFloatingLabelComponent]
11
+ })
12
+ .compileComponents();
13
+
14
+ fixture = TestBed.createComponent(InputFloatingLabelComponent);
15
+ component = fixture.componentInstance;
16
+ fixture.detectChanges();
17
+ });
18
+
19
+ it('should create', () => {
20
+ expect(component).toBeTruthy();
21
+ });
22
+ });
@@ -0,0 +1,18 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { FormControl, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
3
+
4
+ @Component({
5
+ selector: 'hc-input-floating-label',
6
+ templateUrl: './input-floating-label.component.html',
7
+ styleUrls: ['./input-floating-label.component.scss'],
8
+ imports: [ReactiveFormsModule],
9
+ standalone: true,
10
+ })
11
+ export class InputFloatingLabelComponent {
12
+ @Input() id = 'hc-input';
13
+ @Input() label = 'Label';
14
+ @Input() type = 'text';
15
+ @Input() required = false;
16
+ @Input() control: FormControl = new UntypedFormControl('');
17
+ }
18
+
@@ -0,0 +1,23 @@
1
+ <fieldset class="hc-input hc-input-dropdown">
2
+ <input
3
+ type="text"
4
+ placeholder=" "
5
+ autocomplete="off"
6
+ [id]="id"
7
+ [formControl]="control"
8
+ (focus)="filterOptions()"
9
+ (input)="filterOptions()"
10
+ />
11
+ <label [for]="id">{{ label }}</label>
12
+
13
+ @if (showOptions && filteredOptions.length) {
14
+ <ul class="dropdown-options">
15
+ @for (option of filteredOptions; track $index) {
16
+ <li (click)="selectOption(option)">
17
+ {{ option }}
18
+ </li>
19
+ }
20
+ </ul>
21
+ }
22
+ </fieldset>
23
+