@sourceloop/search-element 7.0.0 → 8.1.0
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/CHANGELOG.md +99 -0
- package/{README.md → dist/README.md} +13 -25
- package/dist/package.json +23 -0
- package/dist/search-element.js +3 -0
- package/dist/styles.css +1 -0
- package/package.json +3 -4
- package/LICENSE +0 -21
- package/search-element.js +0 -3
- package/styles.css +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [8.0.1](https://github.com/sourcefuse/arc-ng-components/compare/@sourceloop/search-element@8.0.0...@sourceloop/search-element@8.0.1) (2025-12-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @sourceloop/search-element
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [8.0.0](https://github.com/sourcefuse/arc-ng-components/compare/@sourceloop/search-element@6.1.0...@sourceloop/search-element@8.0.0) (2025-12-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* **search-client:** update readme after upgrading to angular 17 ([#34](https://github.com/sourcefuse/arc-ng-components/issues/34)) ([2471785](https://github.com/sourcefuse/arc-ng-components/commit/247178534a7c5a4561fd54d38f19412e3b58beac)), closes [#30](https://github.com/sourcefuse/arc-ng-components/issues/30) [#30](https://github.com/sourcefuse/arc-ng-components/issues/30)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **deps:** adds support for Angular 19 and migrates the component to a fully standalone structure ([#45](https://github.com/sourcefuse/arc-ng-components/issues/45)) ([8f7f7e3](https://github.com/sourcefuse/arc-ng-components/commit/8f7f7e3f46c3edefd87877bf886db7eb31716435)), closes [#42](https://github.com/sourcefuse/arc-ng-components/issues/42)
|
|
25
|
+
* **sandbox:** add ai-assistant sandbox example in package ([#22](https://github.com/sourcefuse/arc-ng-components/issues/22)) ([cfa4d20](https://github.com/sourcefuse/arc-ng-components/commit/cfa4d20bc9fc4fa93dbaf31b6a68ebe9a9f326ee))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
* **deps:** YES
|
|
31
|
+
|
|
32
|
+
## Description
|
|
33
|
+
|
|
34
|
+
This pull request modernizes the `@sourceloop/search-client` library and
|
|
35
|
+
its example by upgrading to Angular 19, refactoring the search component
|
|
36
|
+
to be standalone, and updating documentation and configuration to
|
|
37
|
+
reflect these changes. The updates simplify integration for consumers
|
|
38
|
+
and leverage Angular's latest features for improved modularity and
|
|
39
|
+
maintainability.
|
|
40
|
+
* **search-client:**
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [7.0.0](https://github.com/sourcefuse/arc-ng-components/compare/@sourceloop/search-element@6.1.0...@sourceloop/search-element@7.0.0) (2025-07-18)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Documentation
|
|
50
|
+
|
|
51
|
+
* **search-client:** update readme after upgrading to angular 17 ([#34](https://github.com/sourcefuse/arc-ng-components/issues/34)) ([2471785](https://github.com/sourcefuse/arc-ng-components/commit/247178534a7c5a4561fd54d38f19412e3b58beac)), closes [#30](https://github.com/sourcefuse/arc-ng-components/issues/30) [#30](https://github.com/sourcefuse/arc-ng-components/issues/30)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* **sandbox:** add ai-assistant sandbox example in package ([#22](https://github.com/sourcefuse/arc-ng-components/issues/22)) ([cfa4d20](https://github.com/sourcefuse/arc-ng-components/commit/cfa4d20bc9fc4fa93dbaf31b6a68ebe9a9f326ee))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### BREAKING CHANGES
|
|
60
|
+
|
|
61
|
+
* **search-client:**
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# [6.1.0](https://github.com/sourcefuse/arc-ng-components/compare/@sourceloop/search-element@6.0.1...@sourceloop/search-element@6.1.0) (2024-04-10)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Features
|
|
71
|
+
|
|
72
|
+
* **search-client:** allow custom allLabel ([#15](https://github.com/sourcefuse/arc-ng-components/issues/15)) ([8b45291](https://github.com/sourcefuse/arc-ng-components/commit/8b4529171ea587ff2fd8c733ccd50a819491fe47)), closes [#14](https://github.com/sourcefuse/arc-ng-components/issues/14)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [6.0.1](https://github.com/sourcefuse/arc-ng-components/compare/@sourceloop/search-element@6.0.0...@sourceloop/search-element@6.0.1) (2024-01-12)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Bug Fixes
|
|
82
|
+
|
|
83
|
+
* **search-client:** refactor the SCSS file in the search component to remove 'important' keyword ([#12](https://github.com/sourcefuse/arc-ng-components/issues/12)) ([1324f19](https://github.com/sourcefuse/arc-ng-components/commit/1324f194f3b3405505137d4a5919547195143175))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# 6.0.0 (2023-11-28)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
* **deps:** add support for angular v14 ([#10](https://github.com/sourcefuse/arc-ng-components/issues/10)) ([acdb006](https://github.com/sourcefuse/arc-ng-components/commit/acdb006dc782f04283d0ce7e4335781e2f5360e3)), closes [#9](https://github.com/sourcefuse/arc-ng-components/issues/9) [#9](https://github.com/sourcefuse/arc-ng-components/issues/9)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### BREAKING CHANGES
|
|
98
|
+
|
|
99
|
+
* **deps:** search library does not support angular v13
|
|
@@ -4,7 +4,7 @@ An Angular module that exports a component that can enable users to search over
|
|
|
4
4
|
|
|
5
5
|
### Deprecation Notice
|
|
6
6
|
|
|
7
|
-
Search-client now supports
|
|
7
|
+
Search-client now supports Angular v19, we will provide support for the older version that is based on Angular v17 till 31st March 2026 .
|
|
8
8
|
|
|
9
9
|
## Angular Module
|
|
10
10
|
|
|
@@ -16,33 +16,21 @@ npm i @sourceloop/search-client
|
|
|
16
16
|
|
|
17
17
|
### Usage
|
|
18
18
|
|
|
19
|
-
Create a new Application using Angular CLI and import the
|
|
20
|
-
Your module will then look something like this
|
|
19
|
+
Create a new Application using Angular CLI and import the `SearchComponent` in your application.SearchComponent is now a standalone component, so no NgModule is required.Also create a new service that implements the ISearchService interface exported by the search library. This service will be used by the exported component to make API calls whenever needed. You will have to update the providers section of your module with { provide: SEARCH_SERVICE_TOKEN, useExisting: Your_Service_Name }
|
|
21
20
|
|
|
22
21
|
```ts
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
import {SearchService} from './search.service';
|
|
34
|
-
@NgModule({
|
|
35
|
-
declarations: [AppComponent, XComponent],
|
|
36
|
-
imports: [
|
|
37
|
-
BrowserModule,
|
|
38
|
-
SearchLibModule, //import SearchLibModule
|
|
39
|
-
HttpClientModule,
|
|
40
|
-
ReactiveFormsModule,
|
|
41
|
-
],
|
|
42
|
-
providers: [{provide: SEARCH_SERVICE_TOKEN, useClass: SearchService}], //Add your service here
|
|
43
|
-
bootstrap: [AppComponent],
|
|
22
|
+
import { Component } from '@angular/core';
|
|
23
|
+
import { SearchComponent, SEARCH_SERVICE_TOKEN } from '@sourceloop/search-client';
|
|
24
|
+
import { SearchService } from './search.service';
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'app-root',
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [SearchComponent],
|
|
30
|
+
templateUrl: './app.component.html',
|
|
31
|
+
providers: [{ provide: SEARCH_SERVICE_TOKEN, useClass: SearchService }],
|
|
44
32
|
})
|
|
45
|
-
export class
|
|
33
|
+
export class AppComponent {}
|
|
46
34
|
```
|
|
47
35
|
|
|
48
36
|
### Search Service
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sourceloop/search-element",
|
|
3
|
+
"version": "8.1.0",
|
|
4
|
+
"description": "A global search element for search microservice. ",
|
|
5
|
+
"main": "./search-element.js",
|
|
6
|
+
"private": false,
|
|
7
|
+
"scripts": {
|
|
8
|
+
"prepublishOnly": "cp package.json dist/package.json"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/sourcefuse/arc-ng-components",
|
|
13
|
+
"directory": "packages/search"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"registry": "https://registry.npmjs.org/",
|
|
17
|
+
"access": "public",
|
|
18
|
+
"directory": "dist"
|
|
19
|
+
},
|
|
20
|
+
"author": "Sourcefuse",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"hash": "046c911416e7350e4b96c2eff7d6bdf4b9c27db569ec74fedd5501c9a890ca86"
|
|
23
|
+
}
|