@byuhbll/components 6.0.0-rc.0 → 6.0.0-rc.2
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/fesm2022/byuhbll-components.mjs +214 -127
- package/fesm2022/byuhbll-components.mjs.map +1 -1
- package/index.d.ts +638 -3
- package/package.json +3 -3
- package/lib/animations/animations.d.ts +0 -4
- package/lib/checkbox/checkbox.component.d.ts +0 -6
- package/lib/contact-utils.d.ts +0 -19
- package/lib/copy-tooltip/copy-tooltip.component.d.ts +0 -12
- package/lib/expand-collapse/expand-collapse.component.d.ts +0 -10
- package/lib/hbll-footer/hbll-footer.component.d.ts +0 -33
- package/lib/hbll-header/hbll-header.component.d.ts +0 -38
- package/lib/hbll-header/models/library-hours.d.ts +0 -10
- package/lib/hbll-header/nav-bar/nav-bar.component.d.ts +0 -33
- package/lib/hbll-header/nav-bar-dropdown/nav-bar-dropdown.component.d.ts +0 -18
- package/lib/hbll-header/pipes/library-hours.pipe.d.ts +0 -7
- package/lib/hbll-header/pipes/truncate.pipe.d.ts +0 -7
- package/lib/header-with-impersonation/header-with-impersonation.component.d.ts +0 -22
- package/lib/impersonate-modal/impersonate-modal.component.d.ts +0 -60
- package/lib/impersonation-banner/impersonation-banner.component.d.ts +0 -52
- package/lib/impersonation-banner/models/application-access.d.ts +0 -15
- package/lib/impersonation-banner/models/person-summary.d.ts +0 -33
- package/lib/models/token-payload.d.ts +0 -3
- package/lib/multi-select/multi-select.component.d.ts +0 -52
- package/lib/pipes/hbll-item-type-icon.pipe.d.ts +0 -17
- package/lib/snackbar/snackbar.component.d.ts +0 -67
- package/lib/snackbar/snackbar.service.d.ts +0 -20
- package/lib/ss-search-bar/advanced-search/advanced-search.component.d.ts +0 -216
- package/lib/ss-search-bar/constants.d.ts +0 -153
- package/lib/ss-search-bar/date-range/date-range.component.d.ts +0 -25
- package/lib/ss-search-bar/models/advanced-search.model.d.ts +0 -18
- package/lib/ss-search-bar/models/search-config.model.d.ts +0 -32
- package/lib/ss-search-bar/models/search-scope.model.d.ts +0 -4
- package/lib/ss-search-bar/pipes/advanced-field-warning.pipe.d.ts +0 -9
- package/lib/ss-search-bar/pipes/advanced-queries.pipe.d.ts +0 -12
- package/lib/ss-search-bar/pipes/field-by-scope.pipe.d.ts +0 -12
- package/lib/ss-search-bar/simple-search/simple-search.component.d.ts +0 -28
- package/lib/ss-search-bar/ss-search-bar.component.d.ts +0 -25
- package/lib/ss-search-bar/utils.d.ts +0 -7
- package/lib/status-button/status-button.component.d.ts +0 -47
- package/lib/utils.d.ts +0 -5
- package/public-api.d.ts +0 -15
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { AdvancedSearchBooleanOption, AdvancedSearchLocalFieldOption, AdvancedSearchQualifierOption, AdvancedSearchExternalFieldOption, AdvancedSearchFieldOption } from '../models/advanced-search.model';
|
|
4
|
-
import { SearchConfig } from '../models/search-config.model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
type QueryRow = {
|
|
7
|
-
boolean: FormControl<AdvancedSearchBooleanOption>;
|
|
8
|
-
field: FormControl<AdvancedSearchFieldOption | AdvancedSearchLocalFieldOption | AdvancedSearchExternalFieldOption>;
|
|
9
|
-
qualifier: FormControl<AdvancedSearchQualifierOption>;
|
|
10
|
-
query: FormControl<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare class AdvancedSearchComponent implements OnDestroy {
|
|
13
|
-
private readonly fb;
|
|
14
|
-
private _config;
|
|
15
|
-
set config(config: SearchConfig);
|
|
16
|
-
get config(): SearchConfig;
|
|
17
|
-
advancedSearch: EventEmitter<SearchConfig>;
|
|
18
|
-
private searchInput;
|
|
19
|
-
private inputTooltip;
|
|
20
|
-
private subscription;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Takes a `FormGroup` and syncs up the `field` and `qualifier` values.
|
|
24
|
-
* After syncing, when the `field` value changes, the `qualifier` value will update appropriately.
|
|
25
|
-
*/
|
|
26
|
-
private syncUpFieldAndQualifier;
|
|
27
|
-
protected advancedSearchForm: FormGroup<{
|
|
28
|
-
queries: import("@angular/forms").FormArray<FormGroup<QueryRow>>;
|
|
29
|
-
types: FormControl<string[]>;
|
|
30
|
-
collections: FormControl<string[]>;
|
|
31
|
-
languages: FormControl<string[]>;
|
|
32
|
-
date: FormGroup<{
|
|
33
|
-
from: FormControl<string>;
|
|
34
|
-
to: FormControl<string>;
|
|
35
|
-
}>;
|
|
36
|
-
limitResults: FormGroup<{
|
|
37
|
-
peerReviewed: FormControl<boolean>;
|
|
38
|
-
}>;
|
|
39
|
-
expandResults: FormGroup<{
|
|
40
|
-
applyEquivalentSubjects: FormControl<boolean>;
|
|
41
|
-
fullText: FormControl<boolean>;
|
|
42
|
-
}>;
|
|
43
|
-
}>;
|
|
44
|
-
protected isSubmitted: boolean;
|
|
45
|
-
protected advancedSearchOptions: {
|
|
46
|
-
readonly boolean: readonly ["AND", "OR", "NOT"];
|
|
47
|
-
readonly fields: readonly ["any", "title", "creator", "subject", "issn", "isbn"];
|
|
48
|
-
readonly localFields: readonly ["callNumber", "contributor", "genre", "series"];
|
|
49
|
-
readonly externalFields: readonly ["source", "abstract"];
|
|
50
|
-
readonly qualifiers: {
|
|
51
|
-
readonly any: readonly ["contains"];
|
|
52
|
-
readonly title: readonly ["contains", "exact", "begins_with", "index"];
|
|
53
|
-
readonly callNumber: readonly ["contains", "exact", "begins_with", "index"];
|
|
54
|
-
readonly creator: readonly ["contains", "exact", "begins_with", "index"];
|
|
55
|
-
readonly contributor: readonly ["contains", "exact"];
|
|
56
|
-
readonly isbn: readonly ["contains", "exact"];
|
|
57
|
-
readonly issn: readonly ["contains", "exact"];
|
|
58
|
-
readonly genre: readonly ["contains", "exact"];
|
|
59
|
-
readonly subject: readonly ["contains", "exact", "subject_lc", "subject_expanded"];
|
|
60
|
-
readonly series: readonly ["contains", "exact"];
|
|
61
|
-
};
|
|
62
|
-
readonly resultsPerPage: readonly ["10", "20", "50", "100"];
|
|
63
|
-
readonly types: {
|
|
64
|
-
readonly byu: {
|
|
65
|
-
readonly book: "Books";
|
|
66
|
-
readonly sound_recording: "Sound Recordings";
|
|
67
|
-
readonly image: "Images";
|
|
68
|
-
readonly periodical: "Periodicals";
|
|
69
|
-
readonly map: "Maps";
|
|
70
|
-
readonly score: "Music Scores";
|
|
71
|
-
readonly newspaper: "Newspapers";
|
|
72
|
-
readonly dissertation: "Theses & Dissertations";
|
|
73
|
-
readonly video: "Videos";
|
|
74
|
-
};
|
|
75
|
-
readonly law: {
|
|
76
|
-
readonly book: "Books";
|
|
77
|
-
};
|
|
78
|
-
readonly ensign: {
|
|
79
|
-
readonly book: "Books";
|
|
80
|
-
readonly sound_recording: "Sound Recordings";
|
|
81
|
-
readonly journal: "Periodicals";
|
|
82
|
-
readonly magazine: "Magazines";
|
|
83
|
-
readonly video: "Videos";
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
readonly collections: {
|
|
87
|
-
readonly byu: {
|
|
88
|
-
readonly lee: "BYU Library";
|
|
89
|
-
readonly 'lee -- asian': "Asian";
|
|
90
|
-
readonly 'lee -- general': "General Collection";
|
|
91
|
-
readonly 'lee -- govdocs': "Government Documents";
|
|
92
|
-
readonly 'lee -- humanities': "Humanities";
|
|
93
|
-
readonly 'lee -- juvenile': "Juvenile";
|
|
94
|
-
readonly 'lee -- maps': "Maps";
|
|
95
|
-
readonly 'lee -- media_center': "Media Center";
|
|
96
|
-
readonly 'lee -- music': "Music & Dance";
|
|
97
|
-
readonly 'lee -- periodicals': "Periodicals";
|
|
98
|
-
readonly 'lee -- popular': "Popular Reading";
|
|
99
|
-
readonly 'lee -- religion_famhist': "Religion & Family History";
|
|
100
|
-
readonly 'lee -- science_engineering': "Science & Engineering";
|
|
101
|
-
readonly 'lee -- social_science': "Social Science";
|
|
102
|
-
readonly 'lee -- special_collections': "Special Collections";
|
|
103
|
-
};
|
|
104
|
-
readonly law: {
|
|
105
|
-
readonly 'law -- iclrs': "Law & Religion Studies";
|
|
106
|
-
readonly 'law -- main': "Main Collection";
|
|
107
|
-
readonly 'law -- media': "Media";
|
|
108
|
-
readonly 'law -- reserve': "Reserve";
|
|
109
|
-
readonly 'law -- self_help': "Self Help";
|
|
110
|
-
readonly 'law -- study_guides': "Study Guides";
|
|
111
|
-
};
|
|
112
|
-
readonly ensign: {
|
|
113
|
-
readonly 'ldsbc -- audio_books': "Audio Books";
|
|
114
|
-
readonly 'ldsbc -- display': "Display Shelves";
|
|
115
|
-
readonly 'ldsbc -- fiction': "Fiction";
|
|
116
|
-
readonly 'ldsbc -- films': "Feature Films";
|
|
117
|
-
readonly 'ldsbc -- stacks': "General Collection";
|
|
118
|
-
readonly 'ldsbc -- news_magazines': "News Magazines";
|
|
119
|
-
readonly 'ldsbc -- non_feature_films': "Non Feature Films";
|
|
120
|
-
readonly 'ldsbc -- oversize': "Oversize";
|
|
121
|
-
readonly 'ldsbc -- paralegal': "Paralegal";
|
|
122
|
-
readonly 'ldsbc -- periodicals': "Periodicals";
|
|
123
|
-
readonly 'ldsbc -- reference': "Reference";
|
|
124
|
-
readonly 'ldsbc -- reserve': "Reserve";
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
readonly languages: {
|
|
128
|
-
readonly eng: "English";
|
|
129
|
-
readonly ara: "Arabic";
|
|
130
|
-
readonly chi: "Chinese";
|
|
131
|
-
readonly ces: "Czech";
|
|
132
|
-
readonly dan: "Danish";
|
|
133
|
-
readonly dut: "Dutch";
|
|
134
|
-
readonly fin: "Finnish";
|
|
135
|
-
readonly fre: "French";
|
|
136
|
-
readonly ger: "German";
|
|
137
|
-
readonly gre: "Greek, Modern";
|
|
138
|
-
readonly heb: "Hebrew";
|
|
139
|
-
readonly hin: "Hindi";
|
|
140
|
-
readonly hun: "Hungarian";
|
|
141
|
-
readonly ice: "Icelandic";
|
|
142
|
-
readonly ita: "Italian";
|
|
143
|
-
readonly jpn: "Japanese";
|
|
144
|
-
readonly kor: "Korean";
|
|
145
|
-
readonly lat: "Latin";
|
|
146
|
-
readonly nor: "Norwegian";
|
|
147
|
-
readonly pol: "Polish";
|
|
148
|
-
readonly por: "Portuguese";
|
|
149
|
-
readonly pan: "Punjabi";
|
|
150
|
-
readonly rum: "Romanian";
|
|
151
|
-
readonly rus: "Russian";
|
|
152
|
-
readonly spa: "Spanish";
|
|
153
|
-
readonly swe: "Swedish";
|
|
154
|
-
readonly wel: "Welsh";
|
|
155
|
-
readonly yid: "Yiddish";
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
protected advancedSearchFieldMap: {
|
|
159
|
-
readonly abstract: "Abstract";
|
|
160
|
-
readonly any: "Any Field";
|
|
161
|
-
readonly callNumber: "Call Number";
|
|
162
|
-
readonly contributor: "Contributor";
|
|
163
|
-
readonly creator: "Author/Creator";
|
|
164
|
-
readonly genre: "Genre";
|
|
165
|
-
readonly isbn: "ISBN";
|
|
166
|
-
readonly issn: "ISSN";
|
|
167
|
-
readonly series: "Series";
|
|
168
|
-
readonly source: "Source";
|
|
169
|
-
readonly subject: "Subject";
|
|
170
|
-
readonly title: "Title";
|
|
171
|
-
};
|
|
172
|
-
protected advancedSearchQualifierMap: {
|
|
173
|
-
readonly contains: "contains";
|
|
174
|
-
readonly begins_with: "begins with";
|
|
175
|
-
readonly exact: "is (exact)";
|
|
176
|
-
readonly index: "browse value";
|
|
177
|
-
readonly subject_lc: "LC browse";
|
|
178
|
-
readonly subject_expanded: "expanded browse";
|
|
179
|
-
};
|
|
180
|
-
get queries(): import("@angular/forms").FormArray<FormGroup<QueryRow>>;
|
|
181
|
-
get types(): FormControl<string[]>;
|
|
182
|
-
get collections(): FormControl<string[]>;
|
|
183
|
-
get languages(): FormControl<string[]>;
|
|
184
|
-
get from(): FormControl<string>;
|
|
185
|
-
get to(): FormControl<string>;
|
|
186
|
-
get peerReviewed(): FormControl<boolean>;
|
|
187
|
-
get fullText(): FormControl<boolean>;
|
|
188
|
-
get applyEquivalentSubjects(): FormControl<boolean>;
|
|
189
|
-
/**
|
|
190
|
-
* Add a query to `queries` `FormArray`. This FormGroup has an additional `boolean` control.
|
|
191
|
-
*/
|
|
192
|
-
protected addQuery: () => void;
|
|
193
|
-
protected removeQuery: (i: number) => void;
|
|
194
|
-
/**
|
|
195
|
-
* Prepares appropriate query params before performing a local advanced search.
|
|
196
|
-
*/
|
|
197
|
-
protected doLocalAdvancedSearch: () => void;
|
|
198
|
-
/**
|
|
199
|
-
* Prepares appropriate query params before performing an external advanced search.
|
|
200
|
-
*/
|
|
201
|
-
protected doExternalAdvancedSearch: () => void;
|
|
202
|
-
/**
|
|
203
|
-
* Compares 'from' and 'to' to ensure 'to' is >= to 'from', else swaps them.
|
|
204
|
-
*/
|
|
205
|
-
private gatherToAndFromValues;
|
|
206
|
-
/**
|
|
207
|
-
* Verifies that there is a query to use, gathers all other query parameters needed, then performs an advanced search via `router.navigate()`.
|
|
208
|
-
* @param {Record<string, string>} queryParams base set of query params to navigate with
|
|
209
|
-
*/
|
|
210
|
-
private doAdvancedSearch;
|
|
211
|
-
private showSearchValidationToolTip;
|
|
212
|
-
private setupForm;
|
|
213
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchComponent, never>;
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSearchComponent, "lib-ss-advanced-search", never, { "config": { "alias": "config"; "required": true; }; }, { "advancedSearch": "advancedSearch"; }, never, never, true, never>;
|
|
215
|
-
}
|
|
216
|
-
export {};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
export declare const ADVANCED_SEARCH_QUALIFIER_MAP: {
|
|
2
|
-
readonly contains: "contains";
|
|
3
|
-
readonly begins_with: "begins with";
|
|
4
|
-
readonly exact: "is (exact)";
|
|
5
|
-
readonly index: "browse value";
|
|
6
|
-
readonly subject_lc: "LC browse";
|
|
7
|
-
readonly subject_expanded: "expanded browse";
|
|
8
|
-
};
|
|
9
|
-
export declare const ADVANCED_SEARCH_FIELD_MAP: {
|
|
10
|
-
readonly abstract: "Abstract";
|
|
11
|
-
readonly any: "Any Field";
|
|
12
|
-
readonly callNumber: "Call Number";
|
|
13
|
-
readonly contributor: "Contributor";
|
|
14
|
-
readonly creator: "Author/Creator";
|
|
15
|
-
readonly genre: "Genre";
|
|
16
|
-
readonly isbn: "ISBN";
|
|
17
|
-
readonly issn: "ISSN";
|
|
18
|
-
readonly series: "Series";
|
|
19
|
-
readonly source: "Source";
|
|
20
|
-
readonly subject: "Subject";
|
|
21
|
-
readonly title: "Title";
|
|
22
|
-
};
|
|
23
|
-
export declare const ADVANCED_SEARCH_QUERIES_LIMIT = 12;
|
|
24
|
-
export declare const ADVANCED_SEARCH_OPTIONS: {
|
|
25
|
-
readonly boolean: readonly ["AND", "OR", "NOT"];
|
|
26
|
-
readonly fields: readonly ["any", "title", "creator", "subject", "issn", "isbn"];
|
|
27
|
-
readonly localFields: readonly ["callNumber", "contributor", "genre", "series"];
|
|
28
|
-
readonly externalFields: readonly ["source", "abstract"];
|
|
29
|
-
readonly qualifiers: {
|
|
30
|
-
readonly any: readonly ["contains"];
|
|
31
|
-
readonly title: readonly ["contains", "exact", "begins_with", "index"];
|
|
32
|
-
readonly callNumber: readonly ["contains", "exact", "begins_with", "index"];
|
|
33
|
-
readonly creator: readonly ["contains", "exact", "begins_with", "index"];
|
|
34
|
-
readonly contributor: readonly ["contains", "exact"];
|
|
35
|
-
readonly isbn: readonly ["contains", "exact"];
|
|
36
|
-
readonly issn: readonly ["contains", "exact"];
|
|
37
|
-
readonly genre: readonly ["contains", "exact"];
|
|
38
|
-
readonly subject: readonly ["contains", "exact", "subject_lc", "subject_expanded"];
|
|
39
|
-
readonly series: readonly ["contains", "exact"];
|
|
40
|
-
};
|
|
41
|
-
readonly resultsPerPage: readonly ["10", "20", "50", "100"];
|
|
42
|
-
readonly types: {
|
|
43
|
-
readonly byu: {
|
|
44
|
-
readonly book: "Books";
|
|
45
|
-
readonly sound_recording: "Sound Recordings";
|
|
46
|
-
readonly image: "Images";
|
|
47
|
-
readonly periodical: "Periodicals";
|
|
48
|
-
readonly map: "Maps";
|
|
49
|
-
readonly score: "Music Scores";
|
|
50
|
-
readonly newspaper: "Newspapers";
|
|
51
|
-
readonly dissertation: "Theses & Dissertations";
|
|
52
|
-
readonly video: "Videos";
|
|
53
|
-
};
|
|
54
|
-
readonly law: {
|
|
55
|
-
readonly book: "Books";
|
|
56
|
-
};
|
|
57
|
-
readonly ensign: {
|
|
58
|
-
readonly book: "Books";
|
|
59
|
-
readonly sound_recording: "Sound Recordings";
|
|
60
|
-
readonly journal: "Periodicals";
|
|
61
|
-
readonly magazine: "Magazines";
|
|
62
|
-
readonly video: "Videos";
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
readonly collections: {
|
|
66
|
-
readonly byu: {
|
|
67
|
-
readonly lee: "BYU Library";
|
|
68
|
-
readonly 'lee -- asian': "Asian";
|
|
69
|
-
readonly 'lee -- general': "General Collection";
|
|
70
|
-
readonly 'lee -- govdocs': "Government Documents";
|
|
71
|
-
readonly 'lee -- humanities': "Humanities";
|
|
72
|
-
readonly 'lee -- juvenile': "Juvenile";
|
|
73
|
-
readonly 'lee -- maps': "Maps";
|
|
74
|
-
readonly 'lee -- media_center': "Media Center";
|
|
75
|
-
readonly 'lee -- music': "Music & Dance";
|
|
76
|
-
readonly 'lee -- periodicals': "Periodicals";
|
|
77
|
-
readonly 'lee -- popular': "Popular Reading";
|
|
78
|
-
readonly 'lee -- religion_famhist': "Religion & Family History";
|
|
79
|
-
readonly 'lee -- science_engineering': "Science & Engineering";
|
|
80
|
-
readonly 'lee -- social_science': "Social Science";
|
|
81
|
-
readonly 'lee -- special_collections': "Special Collections";
|
|
82
|
-
};
|
|
83
|
-
readonly law: {
|
|
84
|
-
readonly 'law -- iclrs': "Law & Religion Studies";
|
|
85
|
-
readonly 'law -- main': "Main Collection";
|
|
86
|
-
readonly 'law -- media': "Media";
|
|
87
|
-
readonly 'law -- reserve': "Reserve";
|
|
88
|
-
readonly 'law -- self_help': "Self Help";
|
|
89
|
-
readonly 'law -- study_guides': "Study Guides";
|
|
90
|
-
};
|
|
91
|
-
readonly ensign: {
|
|
92
|
-
readonly 'ldsbc -- audio_books': "Audio Books";
|
|
93
|
-
readonly 'ldsbc -- display': "Display Shelves";
|
|
94
|
-
readonly 'ldsbc -- fiction': "Fiction";
|
|
95
|
-
readonly 'ldsbc -- films': "Feature Films";
|
|
96
|
-
readonly 'ldsbc -- stacks': "General Collection";
|
|
97
|
-
readonly 'ldsbc -- news_magazines': "News Magazines";
|
|
98
|
-
readonly 'ldsbc -- non_feature_films': "Non Feature Films";
|
|
99
|
-
readonly 'ldsbc -- oversize': "Oversize";
|
|
100
|
-
readonly 'ldsbc -- paralegal': "Paralegal";
|
|
101
|
-
readonly 'ldsbc -- periodicals': "Periodicals";
|
|
102
|
-
readonly 'ldsbc -- reference': "Reference";
|
|
103
|
-
readonly 'ldsbc -- reserve': "Reserve";
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
readonly languages: {
|
|
107
|
-
readonly eng: "English";
|
|
108
|
-
readonly ara: "Arabic";
|
|
109
|
-
readonly chi: "Chinese";
|
|
110
|
-
readonly ces: "Czech";
|
|
111
|
-
readonly dan: "Danish";
|
|
112
|
-
readonly dut: "Dutch";
|
|
113
|
-
readonly fin: "Finnish";
|
|
114
|
-
readonly fre: "French";
|
|
115
|
-
readonly ger: "German";
|
|
116
|
-
readonly gre: "Greek, Modern";
|
|
117
|
-
readonly heb: "Hebrew";
|
|
118
|
-
readonly hin: "Hindi";
|
|
119
|
-
readonly hun: "Hungarian";
|
|
120
|
-
readonly ice: "Icelandic";
|
|
121
|
-
readonly ita: "Italian";
|
|
122
|
-
readonly jpn: "Japanese";
|
|
123
|
-
readonly kor: "Korean";
|
|
124
|
-
readonly lat: "Latin";
|
|
125
|
-
readonly nor: "Norwegian";
|
|
126
|
-
readonly pol: "Polish";
|
|
127
|
-
readonly por: "Portuguese";
|
|
128
|
-
readonly pan: "Punjabi";
|
|
129
|
-
readonly rum: "Romanian";
|
|
130
|
-
readonly rus: "Russian";
|
|
131
|
-
readonly spa: "Spanish";
|
|
132
|
-
readonly swe: "Swedish";
|
|
133
|
-
readonly wel: "Welsh";
|
|
134
|
-
readonly yid: "Yiddish";
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
export declare const PRIMARY_BLUE = "rgba(63, 112, 176, 1)";
|
|
138
|
-
export declare const PRIMARY_BLUE_HOVER = "hsl(214, 48%, 60%, 1)";
|
|
139
|
-
export declare const PRIMARY_LIGHT_BLUE = "rgba(223, 233, 247, 1)";
|
|
140
|
-
export declare const PRIMARY_PURPLE = "#8772A6";
|
|
141
|
-
export declare const PRIMARY_PURPLE_HOVER = "#7C659F";
|
|
142
|
-
export declare const DESTRUCTIVE_RED = "hsl(5, 47%, 47%, 1)";
|
|
143
|
-
export declare const DESTRUCTIVE_RED_HOVER = "hsl(5, 47%, 50%, 1)";
|
|
144
|
-
export declare const SECONDARY_TEXT_GRAY = "rgba(112, 112, 112, 1)";
|
|
145
|
-
export declare const LIGHT_GRAY = "rgba(230, 230, 230, 1)";
|
|
146
|
-
export declare const DROP_SHADOW_DARK_BLUE = "rgba(51, 62, 77, 0.16)";
|
|
147
|
-
export declare const TEXT_SEMIBOLD = "600";
|
|
148
|
-
export declare const TEXT_BOLD = "700";
|
|
149
|
-
export declare const ANIMATION_LENGTH_STD = "0.15s";
|
|
150
|
-
export declare const LINE_HEIGHT_STD = "1.4";
|
|
151
|
-
export declare const CONTEXTUAL_SELECTOR_HEIGHT = "4.5rem";
|
|
152
|
-
export declare const CONTENT_MAX_WIDTH = "75rem";
|
|
153
|
-
export declare const CONTENT_PADDING = "5.4rem";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DateRangeComponent {
|
|
4
|
-
private readonly fb;
|
|
5
|
-
/**
|
|
6
|
-
* Emits `{ from: string, to: string }` object if both values are set to a valid or empty state by the user.
|
|
7
|
-
*/
|
|
8
|
-
validDateChange: EventEmitter<{
|
|
9
|
-
from: string;
|
|
10
|
-
to: string;
|
|
11
|
-
}>;
|
|
12
|
-
fromChange: EventEmitter<string>;
|
|
13
|
-
toChange: EventEmitter<string>;
|
|
14
|
-
protected dateForm: import("@angular/forms").FormGroup<{
|
|
15
|
-
from: import("@angular/forms").FormControl<string>;
|
|
16
|
-
to: import("@angular/forms").FormControl<string>;
|
|
17
|
-
}>;
|
|
18
|
-
set from(from: string);
|
|
19
|
-
set to(to: string);
|
|
20
|
-
protected onFromChange: () => void;
|
|
21
|
-
protected onToChange: () => void;
|
|
22
|
-
private onInputChange;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "lib-date-range", never, { "from": { "alias": "from"; "required": false; }; "to": { "alias": "to"; "required": false; }; }, { "validDateChange": "validDateChange"; "fromChange": "fromChange"; "toChange": "toChange"; }, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ADVANCED_SEARCH_OPTIONS } from '../constants';
|
|
2
|
-
export type AdvancedSearchBooleanOption = (typeof ADVANCED_SEARCH_OPTIONS.boolean)[number];
|
|
3
|
-
export type AdvancedSearchFieldOption = (typeof ADVANCED_SEARCH_OPTIONS.fields)[number];
|
|
4
|
-
export declare const isAdvancedSearchFieldOption: (field: string) => field is AdvancedSearchLocalFieldOption;
|
|
5
|
-
export type AdvancedSearchLocalFieldOption = (typeof ADVANCED_SEARCH_OPTIONS.localFields)[number];
|
|
6
|
-
export declare const isAdvancedSearchLocalFieldOption: (field: string) => field is AdvancedSearchLocalFieldOption;
|
|
7
|
-
export type AdvancedSearchExternalFieldOption = (typeof ADVANCED_SEARCH_OPTIONS.externalFields)[number];
|
|
8
|
-
export declare const isAdvancedSearchExternalFieldOption: (field: string) => field is AdvancedSearchExternalFieldOption;
|
|
9
|
-
export type AdvancedSearchQualifierOption = (typeof ADVANCED_SEARCH_OPTIONS.qualifiers)[keyof typeof ADVANCED_SEARCH_OPTIONS.qualifiers][number];
|
|
10
|
-
export type AdvancedSearchResultsPerPageOption = (typeof ADVANCED_SEARCH_OPTIONS.resultsPerPage)[number];
|
|
11
|
-
export type AdvancedSearchLanguageOption = (keyof typeof ADVANCED_SEARCH_OPTIONS.languages)[number];
|
|
12
|
-
export type AdvancedSearchQualifier = keyof typeof ADVANCED_SEARCH_OPTIONS.qualifiers;
|
|
13
|
-
export interface AdvancedSearchQueryRow {
|
|
14
|
-
boolean?: AdvancedSearchBooleanOption;
|
|
15
|
-
field?: AdvancedSearchFieldOption | AdvancedSearchLocalFieldOption | AdvancedSearchExternalFieldOption;
|
|
16
|
-
qualifier?: AdvancedSearchQualifierOption;
|
|
17
|
-
query: string;
|
|
18
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { AdvancedSearchQueryRow } from '../models/advanced-search.model';
|
|
3
|
-
import { SearchScope } from '../models/search-scope.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AdvancedFieldWarningPipe implements PipeTransform {
|
|
6
|
-
transform(queryRows: AdvancedSearchQueryRow[], scope: SearchScope): string;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFieldWarningPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AdvancedFieldWarningPipe, "advancedFieldWarning", true>;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { AdvancedSearchQueryRow } from '../models/advanced-search.model';
|
|
3
|
-
import { SearchScope } from '../models/search-scope.model';
|
|
4
|
-
import { FieldByScopePipe } from './field-by-scope.pipe';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SsAdvancedQueriesPipe implements PipeTransform {
|
|
7
|
-
private fieldByScopePipe;
|
|
8
|
-
constructor(fieldByScopePipe: FieldByScopePipe);
|
|
9
|
-
transform(queryRows: AdvancedSearchQueryRow[], scope: SearchScope): string;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SsAdvancedQueriesPipe, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SsAdvancedQueriesPipe, "ssAdvancedQueries", true>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { AdvancedSearchExternalFieldOption, AdvancedSearchFieldOption, AdvancedSearchLocalFieldOption } from '../models/advanced-search.model';
|
|
3
|
-
import { SearchScope } from '../models/search-scope.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Returns the field value based on the scope. If a field value does not exist in a specific scope, the default is returned.
|
|
7
|
-
*/
|
|
8
|
-
export declare class FieldByScopePipe implements PipeTransform {
|
|
9
|
-
transform(fieldValue: AdvancedSearchFieldOption | AdvancedSearchLocalFieldOption | AdvancedSearchExternalFieldOption, scope: SearchScope): AdvancedSearchFieldOption | AdvancedSearchLocalFieldOption | AdvancedSearchExternalFieldOption;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldByScopePipe, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FieldByScopePipe, "fieldByScope", true>;
|
|
12
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { SearchConfig } from '../models/search-config.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SimpleSearchComponent implements OnInit, OnDestroy {
|
|
6
|
-
private readonly fb;
|
|
7
|
-
private searchInput;
|
|
8
|
-
private inputTooltip;
|
|
9
|
-
private subscription;
|
|
10
|
-
private _config;
|
|
11
|
-
set config(config: SearchConfig);
|
|
12
|
-
get config(): SearchConfig;
|
|
13
|
-
simpleSearch: EventEmitter<SearchConfig>;
|
|
14
|
-
clearSimpleSearch: EventEmitter<void>;
|
|
15
|
-
protected isSubmitted: boolean;
|
|
16
|
-
protected searchForm: import("@angular/forms").FormGroup<{
|
|
17
|
-
simpleQuery: FormControl<string>;
|
|
18
|
-
}>;
|
|
19
|
-
get simpleQuery(): FormControl;
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
protected emitSimpleSearch: () => void;
|
|
23
|
-
protected clearQuery: () => void;
|
|
24
|
-
private setupForm;
|
|
25
|
-
private showSearchValidationToolTip;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleSearchComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSearchComponent, "lib-ss-simple-search", never, { "config": { "alias": "config"; "required": true; }; }, { "simpleSearch": "simpleSearch"; "clearSimpleSearch": "clearSimpleSearch"; }, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { SearchScope } from './models/search-scope.model';
|
|
3
|
-
import { SearchConfig } from './models/search-config.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SsSearchBarComponent {
|
|
6
|
-
private _config;
|
|
7
|
-
set config(config: string);
|
|
8
|
-
get config(): SearchConfig;
|
|
9
|
-
simpleSearch: EventEmitter<SearchConfig>;
|
|
10
|
-
clearSimpleSearch: EventEmitter<SearchConfig>;
|
|
11
|
-
advancedSearch: EventEmitter<SearchConfig>;
|
|
12
|
-
advancedSearchClosed: EventEmitter<SearchConfig>;
|
|
13
|
-
advancedSearchOpen: EventEmitter<SearchConfig>;
|
|
14
|
-
tabChange: EventEmitter<SearchConfig>;
|
|
15
|
-
private barWrapperRef;
|
|
16
|
-
protected heightOfContainer: number;
|
|
17
|
-
protected emitClearSimpleSearch: () => void;
|
|
18
|
-
protected emitSimpleSearch: (updatedProps: Partial<SearchConfig>) => void;
|
|
19
|
-
protected emitAdvancedSearchClosed: () => void;
|
|
20
|
-
protected emitAdvancedSearch: (config: SearchConfig) => void;
|
|
21
|
-
protected emitAdvancedSearchOpen: () => void;
|
|
22
|
-
protected emitTabChange: (newScope: SearchScope) => void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SsSearchBarComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SsSearchBarComponent, "lib-ss-search-bar", never, { "config": { "alias": "config"; "required": true; }; }, { "simpleSearch": "simpleSearch"; "clearSimpleSearch": "clearSimpleSearch"; "advancedSearch": "advancedSearch"; "advancedSearchClosed": "advancedSearchClosed"; "advancedSearchOpen": "advancedSearchOpen"; "tabChange": "tabChange"; }, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* Validator method to check if a `FormGroup<{ from: FormControl<string>; to: FormControl<string> }>` is valid.
|
|
4
|
-
* The FormGroup is considered valid if either both `from` and `to` are set, or both are empty strings.
|
|
5
|
-
* @returns {ValidationErrors | null} validation errors, if any
|
|
6
|
-
*/
|
|
7
|
-
export declare const validateDateRangeFields: () => ValidatorFn;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export type Status = 'success' | 'info' | 'warning' | 'error' | 'disabled';
|
|
3
|
-
export interface StatusButtonInputs {
|
|
4
|
-
label: string;
|
|
5
|
-
status?: Status;
|
|
6
|
-
leftIcon?: string;
|
|
7
|
-
rightIcon?: string;
|
|
8
|
-
hideLeftIcon?: boolean;
|
|
9
|
-
hideRightIcon?: boolean;
|
|
10
|
-
clearVariant?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A button that indicates status with color and icon.
|
|
14
|
-
* Status can be one of: 'success', 'info', 'warning', 'error', or 'disabled'.
|
|
15
|
-
* Each status has a default left icon, but a custom left icon can be provided.
|
|
16
|
-
* A right icon can also be provided, defaulting to 'chevron_right'.
|
|
17
|
-
* The left and right icons can be hidden with the `hideLeftIcon` and `hideRightIcon` boolean inputs.
|
|
18
|
-
* A label input is required.
|
|
19
|
-
*/
|
|
20
|
-
export declare class StatusButtonComponent {
|
|
21
|
-
private _status;
|
|
22
|
-
private _leftIcon;
|
|
23
|
-
private _rightIcon;
|
|
24
|
-
private _hideLeftIcon;
|
|
25
|
-
private _hideRightIcon;
|
|
26
|
-
private _clearVariant;
|
|
27
|
-
label: string;
|
|
28
|
-
set status(value: 'success' | 'info' | 'warning' | 'error' | 'disabled');
|
|
29
|
-
get status(): "success" | "info" | "warning" | "error" | "disabled";
|
|
30
|
-
set leftIcon(value: string);
|
|
31
|
-
get leftIcon(): string;
|
|
32
|
-
set rightIcon(value: string);
|
|
33
|
-
get rightIcon(): string;
|
|
34
|
-
set hideLeftIcon(value: boolean);
|
|
35
|
-
get hideLeftIcon(): boolean;
|
|
36
|
-
set hideRightIcon(value: boolean);
|
|
37
|
-
get hideRightIcon(): boolean;
|
|
38
|
-
set clearVariant(value: boolean);
|
|
39
|
-
get clearVariant(): boolean;
|
|
40
|
-
/** helper for default left icons */
|
|
41
|
-
private getDefaultLeftIcon;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StatusButtonComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StatusButtonComponent, "lib-status-button", never, { "label": { "alias": "label"; "required": true; }; "status": { "alias": "status"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "hideLeftIcon": { "alias": "hideLeftIcon"; "required": false; }; "hideRightIcon": { "alias": "hideRightIcon"; "required": false; }; "clearVariant": { "alias": "clearVariant"; "required": false; }; }, {}, never, never, true, never>;
|
|
44
|
-
static ngAcceptInputType_hideLeftIcon: unknown;
|
|
45
|
-
static ngAcceptInputType_hideRightIcon: unknown;
|
|
46
|
-
static ngAcceptInputType_clearVariant: unknown;
|
|
47
|
-
}
|
package/lib/utils.d.ts
DELETED
package/public-api.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './lib/hbll-header/hbll-header.component';
|
|
2
|
-
export * from './lib/pipes/hbll-item-type-icon.pipe';
|
|
3
|
-
export * from './lib/hbll-footer/hbll-footer.component';
|
|
4
|
-
export * from './lib/header-with-impersonation/header-with-impersonation.component';
|
|
5
|
-
export * from './lib/impersonate-modal/impersonate-modal.component';
|
|
6
|
-
export * from './lib/impersonation-banner/impersonation-banner.component';
|
|
7
|
-
export * from './lib/ss-search-bar/ss-search-bar.component';
|
|
8
|
-
export * from './lib/ss-search-bar/models/advanced-search.model';
|
|
9
|
-
export * from './lib/ss-search-bar/models/search-scope.model';
|
|
10
|
-
export * from './lib/ss-search-bar/models/search-config.model';
|
|
11
|
-
export * from './lib/snackbar/snackbar.service';
|
|
12
|
-
export * from './lib/snackbar/snackbar.component';
|
|
13
|
-
export { getUserStatusFromRoles } from './lib/contact-utils';
|
|
14
|
-
export { ADVANCED_SEARCH_QUALIFIER_MAP, ADVANCED_SEARCH_FIELD_MAP, ADVANCED_SEARCH_OPTIONS, } from './lib/ss-search-bar/constants';
|
|
15
|
-
export * from './lib/status-button/status-button.component';
|