@byuhbll/components 3.0.0 → 3.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/esm2022/lib/hbll-multi-select/hbll-multi-select.component.mjs +3 -3
- package/esm2022/lib/ss-search-bar/advanced-search/advanced-search.component.mjs +31 -22
- package/esm2022/lib/ss-search-bar/models/search-config.model.mjs +2 -0
- package/esm2022/lib/ss-search-bar/simple-search/simple-search.component.mjs +3 -3
- package/esm2022/lib/ss-search-bar/ss-search-bar.component.mjs +3 -30
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/byuhbll-components.mjs +36 -54
- package/fesm2022/byuhbll-components.mjs.map +1 -1
- package/lib/ss-search-bar/advanced-search/advanced-search.component.d.ts +6 -2
- package/lib/ss-search-bar/models/search-config.model.d.ts +32 -0
- package/lib/ss-search-bar/simple-search/simple-search.component.d.ts +1 -1
- package/lib/ss-search-bar/ss-search-bar.component.d.ts +1 -54
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles/scss/_vars.scss +3 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AdvancedSearchQueryRow } from './advanced-search.model';
|
|
2
|
+
import { SearchScope } from './search-scope.model';
|
|
3
|
+
export interface SearchConfig {
|
|
4
|
+
institution: 'byu' | 'law' | 'ensign';
|
|
5
|
+
showAdvancedSearch: boolean;
|
|
6
|
+
showAdvancedSearchAsText: boolean;
|
|
7
|
+
scope: SearchScope;
|
|
8
|
+
q: string;
|
|
9
|
+
advancedSearchQueryRows: AdvancedSearchQueryRow[];
|
|
10
|
+
localAdvancedSearch: {
|
|
11
|
+
creationDate: Date;
|
|
12
|
+
selectedLanguages: string[];
|
|
13
|
+
selectedResourceTypes: string[];
|
|
14
|
+
selectedCollections: string[];
|
|
15
|
+
};
|
|
16
|
+
externalAdvancedSearch: {
|
|
17
|
+
datePublished: Date;
|
|
18
|
+
selectedLanguages: string[];
|
|
19
|
+
limitResults: {
|
|
20
|
+
peerReviewed: boolean;
|
|
21
|
+
};
|
|
22
|
+
expandResults: {
|
|
23
|
+
applyEquivalentSubjects: boolean;
|
|
24
|
+
fullText: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface Date {
|
|
29
|
+
from: string;
|
|
30
|
+
to: string;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { SearchConfig } from '../
|
|
3
|
+
import { SearchConfig } from '../models/search-config.model';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SimpleSearchComponent implements OnInit, OnDestroy {
|
|
6
6
|
private readonly fb;
|
|
@@ -1,60 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AdvancedSearchQueryRow } from './models/advanced-search.model';
|
|
3
2
|
import { SearchScope } from './models/search-scope.model';
|
|
3
|
+
import { SearchConfig } from './models/search-config.model';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export interface SearchConfig {
|
|
6
|
-
institution: 'byu' | 'law' | 'ensign';
|
|
7
|
-
showAdvancedSearch: boolean;
|
|
8
|
-
showAdvancedSearchAsText: boolean;
|
|
9
|
-
scope: SearchScope;
|
|
10
|
-
q: string;
|
|
11
|
-
advancedSearchQueryRows: AdvancedSearchQueryRow[];
|
|
12
|
-
localAdvancedSearch: {
|
|
13
|
-
selectedResourceTypes: string[];
|
|
14
|
-
selectedCollections: string[];
|
|
15
|
-
};
|
|
16
|
-
externalAdvancedSearch: {
|
|
17
|
-
datePublished: {
|
|
18
|
-
from: string;
|
|
19
|
-
to: string;
|
|
20
|
-
};
|
|
21
|
-
selectedLanguages: string[];
|
|
22
|
-
limitResults: {
|
|
23
|
-
peerReviewed: boolean;
|
|
24
|
-
};
|
|
25
|
-
expandResults: {
|
|
26
|
-
applyEquivalentSubjects: boolean;
|
|
27
|
-
fullText: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Accepts as input, and emits as events, SearchConfig objects:
|
|
33
|
-
* ```
|
|
34
|
-
* SearchConfig {
|
|
35
|
-
institution: 'byu' | 'law' | 'ensign';
|
|
36
|
-
showAdvancedSearch: boolean;
|
|
37
|
-
showAdvancedSearchAsText: boolean;
|
|
38
|
-
scope: SearchScope;
|
|
39
|
-
q: string;
|
|
40
|
-
s advancedSearchQueryRows: AdvancedSearchQueryRow[];
|
|
41
|
-
localAdvancedSearch: {
|
|
42
|
-
selectedResourceTypes: string[];
|
|
43
|
-
selectedCollections: string[];
|
|
44
|
-
};
|
|
45
|
-
externalAdvancedSearch: {
|
|
46
|
-
datePublished: { from: string; to: string };
|
|
47
|
-
selectedLanguages: string[];
|
|
48
|
-
limitResults: {
|
|
49
|
-
peerReviewed: boolean;
|
|
50
|
-
};
|
|
51
|
-
expandResults: {
|
|
52
|
-
applyEquivalentSubjects: boolean;
|
|
53
|
-
fullText: boolean;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
5
|
export declare class SsSearchBarComponent {
|
|
59
6
|
private _config;
|
|
60
7
|
set config(config: string);
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from './lib/hbll-header/hbll-header.component';
|
|
|
2
2
|
export * from './lib/ss-search-bar/ss-search-bar.component';
|
|
3
3
|
export * from './lib/ss-search-bar/models/advanced-search.model';
|
|
4
4
|
export * from './lib/ss-search-bar/models/search-scope.model';
|
|
5
|
+
export * from './lib/ss-search-bar/models/search-config.model';
|
|
5
6
|
export { ADVANCED_SEARCH_QUALIFIER_MAP, ADVANCED_SEARCH_FIELD_MAP, ADVANCED_SEARCH_OPTIONS, } from './lib/ss-search-bar/constants';
|