@byuhbll/components 0.0.14 → 0.0.15

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.
@@ -28,7 +28,7 @@ export declare class AdvancedSearchComponent implements OnDestroy {
28
28
  queries: import("@angular/forms").FormArray<FormGroup<QueryRow>>;
29
29
  types: FormControl<string[]>;
30
30
  collections: FormControl<string[]>;
31
- languages: FormControl<("eng" | "ara" | "chi" | "ces" | "dan" | "dut" | "fin" | "fre" | "ger" | "gre" | "heb" | "hin" | "hun" | "ice" | "ita" | "jpn" | "kor" | "lat" | "nor" | "pol" | "por" | "pan" | "rum" | "rus" | "spa" | "swe" | "wel" | "yid")[]>;
31
+ languages: FormControl<string[]>;
32
32
  datePublished: FormGroup<{
33
33
  from: FormControl<string>;
34
34
  to: FormControl<string>;
@@ -62,7 +62,36 @@ export declare class AdvancedSearchComponent implements OnDestroy {
62
62
  };
63
63
  readonly resultsPerPage: readonly ["10", "20", "50", "100"];
64
64
  readonly period: readonly ["", "1", "2", "5", "10", "custom"];
65
- readonly languages: readonly ["eng", "ara", "chi", "ces", "dan", "dut", "fin", "fre", "ger", "gre", "heb", "hin", "hun", "ice", "ita", "jpn", "kor", "lat", "nor", "pol", "por", "pan", "rum", "rus", "spa", "swe", "wel", "yid"];
65
+ readonly languages: {
66
+ readonly eng: "English";
67
+ readonly ara: "Arabic";
68
+ readonly chi: "Chinese";
69
+ readonly ces: "Czech";
70
+ readonly dan: "Danish";
71
+ readonly dut: "Dutch";
72
+ readonly fin: "Finnish";
73
+ readonly fre: "French";
74
+ readonly ger: "German";
75
+ readonly gre: "Greek, Modern";
76
+ readonly heb: "Hebrew";
77
+ readonly hin: "Hindi";
78
+ readonly hun: "Hungarian";
79
+ readonly ice: "Icelandic";
80
+ readonly ita: "Italian";
81
+ readonly jpn: "Japanese";
82
+ readonly kor: "Korean";
83
+ readonly lat: "Latin";
84
+ readonly nor: "Norwegian";
85
+ readonly pol: "Polish";
86
+ readonly por: "Portuguese";
87
+ readonly pan: "Punjabi";
88
+ readonly rum: "Romanian";
89
+ readonly rus: "Russian";
90
+ readonly spa: "Spanish";
91
+ readonly swe: "Swedish";
92
+ readonly wel: "Welsh";
93
+ readonly yid: "Yiddish";
94
+ };
66
95
  };
67
96
  protected advancedSearchFieldMap: {
68
97
  abstract: string;
@@ -89,7 +118,7 @@ export declare class AdvancedSearchComponent implements OnDestroy {
89
118
  get queries(): import("@angular/forms").FormArray<FormGroup<QueryRow>>;
90
119
  get types(): FormControl<string[]>;
91
120
  get collections(): FormControl<string[]>;
92
- get languages(): FormControl<("eng" | "ara" | "chi" | "ces" | "dan" | "dut" | "fin" | "fre" | "ger" | "gre" | "heb" | "hin" | "hun" | "ice" | "ita" | "jpn" | "kor" | "lat" | "nor" | "pol" | "por" | "pan" | "rum" | "rus" | "spa" | "swe" | "wel" | "yid")[]>;
121
+ get languages(): FormControl<string[]>;
93
122
  get from(): FormControl<string>;
94
123
  get to(): FormControl<string>;
95
124
  get peerReviewed(): FormControl<boolean>;
@@ -41,7 +41,36 @@ export declare const ADVANCED_SEARCH_OPTIONS: {
41
41
  };
42
42
  readonly resultsPerPage: readonly ["10", "20", "50", "100"];
43
43
  readonly period: readonly ["", "1", "2", "5", "10", "custom"];
44
- readonly languages: readonly ["eng", "ara", "chi", "ces", "dan", "dut", "fin", "fre", "ger", "gre", "heb", "hin", "hun", "ice", "ita", "jpn", "kor", "lat", "nor", "pol", "por", "pan", "rum", "rus", "spa", "swe", "wel", "yid"];
44
+ readonly languages: {
45
+ readonly eng: "English";
46
+ readonly ara: "Arabic";
47
+ readonly chi: "Chinese";
48
+ readonly ces: "Czech";
49
+ readonly dan: "Danish";
50
+ readonly dut: "Dutch";
51
+ readonly fin: "Finnish";
52
+ readonly fre: "French";
53
+ readonly ger: "German";
54
+ readonly gre: "Greek, Modern";
55
+ readonly heb: "Hebrew";
56
+ readonly hin: "Hindi";
57
+ readonly hun: "Hungarian";
58
+ readonly ice: "Icelandic";
59
+ readonly ita: "Italian";
60
+ readonly jpn: "Japanese";
61
+ readonly kor: "Korean";
62
+ readonly lat: "Latin";
63
+ readonly nor: "Norwegian";
64
+ readonly pol: "Polish";
65
+ readonly por: "Portuguese";
66
+ readonly pan: "Punjabi";
67
+ readonly rum: "Romanian";
68
+ readonly rus: "Russian";
69
+ readonly spa: "Spanish";
70
+ readonly swe: "Swedish";
71
+ readonly wel: "Welsh";
72
+ readonly yid: "Yiddish";
73
+ };
45
74
  };
46
75
  export declare const PRIMARY_BLUE = "rgba(63, 112, 176, 1)";
47
76
  export declare const PRIMARY_BLUE_HOVER = "hsl(214, 48%, 60%, 1)";
@@ -8,7 +8,7 @@ export type AdvancedSearchExternalFieldOption = (typeof ADVANCED_SEARCH_OPTIONS.
8
8
  export declare const isAdvancedSearchExternalFieldOption: (field: string) => field is "source" | "abstract";
9
9
  export type AdvancedSearchQualifierOption = (typeof ADVANCED_SEARCH_OPTIONS.qualifiers)[keyof typeof ADVANCED_SEARCH_OPTIONS.qualifiers][number];
10
10
  export type AdvancedSearchResultsPerPageOption = (typeof ADVANCED_SEARCH_OPTIONS.resultsPerPage)[number];
11
- export type AdvancedSearchLanguageOption = (typeof ADVANCED_SEARCH_OPTIONS.languages)[number];
11
+ export type AdvancedSearchLanguageOption = (keyof typeof ADVANCED_SEARCH_OPTIONS.languages)[number];
12
12
  export type AdvancedSearchQualifier = keyof typeof ADVANCED_SEARCH_OPTIONS.qualifiers;
13
13
  export interface AdvancedSearchQueryRow {
14
14
  boolean?: AdvancedSearchBooleanOption;
@@ -21,7 +21,6 @@ export interface SearchConfig {
21
21
  to: string;
22
22
  };
23
23
  selectedLanguages: string[];
24
- availableLanguages: Record<string, string>;
25
24
  limitResults: {
26
25
  peerReviewed: boolean;
27
26
  };
@@ -52,7 +51,6 @@ export interface SearchConfig {
52
51
  externalAdvancedSearch: {
53
52
  datePublished: { from: string; to: string };
54
53
  selectedLanguages: string[];
55
- availableLanguages: Record<string, string>;
56
54
  limitResults: {
57
55
  peerReviewed: boolean;
58
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byuhbll/components",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0"