@gen3/core 0.12.53 → 0.12.55
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.
|
@@ -1,21 +1,88 @@
|
|
|
1
1
|
import { IndexAndField } from '../guppy/types';
|
|
2
|
+
/**
|
|
3
|
+
* The type of facet
|
|
4
|
+
* Drives which facet UI control is rendered and how values are formatted.
|
|
5
|
+
*
|
|
6
|
+
* @category Facets
|
|
7
|
+
*/
|
|
2
8
|
export type FacetType = 'enum' | 'exact' | 'range' | 'age' | 'age_in_years' | 'year' | 'years' | 'days' | 'percent' | 'numeric_range' | 'datetime' | 'toggle' | 'multiselect' | 'upload';
|
|
9
|
+
/**
|
|
10
|
+
* The inclusive numeric bounds a range facet may filter within.
|
|
11
|
+
*
|
|
12
|
+
* @category Facets
|
|
13
|
+
*/
|
|
3
14
|
export interface AllowableRange {
|
|
15
|
+
/** Lowest selectable value. */
|
|
4
16
|
readonly minimum: number;
|
|
17
|
+
/** Highest selectable value. */
|
|
5
18
|
readonly maximum: number;
|
|
19
|
+
/**
|
|
20
|
+
* Increment between selectable values on the range control.
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue `1`
|
|
23
|
+
*/
|
|
6
24
|
readonly step?: number;
|
|
7
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Describes a single facet: the field it filters, its classified type, and the
|
|
28
|
+
* options that control how it is displayed and which values are shown.
|
|
29
|
+
*
|
|
30
|
+
* @category Facets
|
|
31
|
+
*/
|
|
8
32
|
export interface FacetDefinition {
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable description sourced from the Elasticsearch `_mapping`.
|
|
35
|
+
*/
|
|
9
36
|
readonly description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Fully-qualified name of the field this facet filters.
|
|
39
|
+
*/
|
|
10
40
|
readonly field: string;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Use {@link FacetDefinition.field} instead.
|
|
43
|
+
*/
|
|
11
44
|
readonly dataField?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Index (data type) this facet belongs to.
|
|
47
|
+
*/
|
|
12
48
|
readonly index: string;
|
|
49
|
+
/**
|
|
50
|
+
* Classified facet type used to pick the rendering control.
|
|
51
|
+
*
|
|
52
|
+
* @remarks Derived from the field's data type and name — e.g. `age`,
|
|
53
|
+
* `year`, `enum`.
|
|
54
|
+
*/
|
|
13
55
|
readonly type: FacetType;
|
|
56
|
+
/**
|
|
57
|
+
* Allowed bounds for range-style facets.
|
|
58
|
+
*
|
|
59
|
+
* @remarks Only meaningful when {@link FacetDefinition.type} is a range kind.
|
|
60
|
+
*/
|
|
14
61
|
readonly range?: AllowableRange;
|
|
62
|
+
/**
|
|
63
|
+
* Whether this facet currently has any data to display.
|
|
64
|
+
*/
|
|
15
65
|
readonly hasData?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Display label shown in the UI; falls back to the field name when unset.
|
|
68
|
+
*/
|
|
16
69
|
readonly label?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Other indices this filter is denormalized across, so a selection applies
|
|
72
|
+
* consistently everywhere the field appears.
|
|
73
|
+
*/
|
|
17
74
|
readonly sharedWithIndices?: Array<IndexAndField>;
|
|
75
|
+
/**
|
|
76
|
+
* Values pinned to the bottom of the facet's value list.
|
|
77
|
+
*/
|
|
18
78
|
readonly moveValuesToBottom?: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Values omitted from the facet entirely.
|
|
81
|
+
*/
|
|
19
82
|
readonly excludeValues?: Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Overrides the per-value label rendered for this facet when set.
|
|
85
|
+
*/
|
|
86
|
+
readonly valueLabel?: string;
|
|
20
87
|
}
|
|
21
88
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/facets/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAA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261
19261
|
declare const drsHostnamesReducer: redux.Reducer<Record<string, string>>;
|
|
19262
19262
|
declare const setDRSHostnames: _reduxjs_toolkit.ActionCreatorWithPayload<DRSHostnameMap, "drsResolver/setDRSHostnames">;
|
|
19263
19263
|
|
|
19264
|
+
/**
|
|
19265
|
+
* The type of facet
|
|
19266
|
+
* Drives which facet UI control is rendered and how values are formatted.
|
|
19267
|
+
*
|
|
19268
|
+
* @category Facets
|
|
19269
|
+
*/
|
|
19264
19270
|
type FacetType = 'enum' | 'exact' | 'range' | 'age' | 'age_in_years' | 'year' | 'years' | 'days' | 'percent' | 'numeric_range' | 'datetime' | 'toggle' | 'multiselect' | 'upload';
|
|
19271
|
+
/**
|
|
19272
|
+
* The inclusive numeric bounds a range facet may filter within.
|
|
19273
|
+
*
|
|
19274
|
+
* @category Facets
|
|
19275
|
+
*/
|
|
19265
19276
|
interface AllowableRange {
|
|
19277
|
+
/** Lowest selectable value. */
|
|
19266
19278
|
readonly minimum: number;
|
|
19279
|
+
/** Highest selectable value. */
|
|
19267
19280
|
readonly maximum: number;
|
|
19281
|
+
/**
|
|
19282
|
+
* Increment between selectable values on the range control.
|
|
19283
|
+
*
|
|
19284
|
+
* @defaultValue `1`
|
|
19285
|
+
*/
|
|
19268
19286
|
readonly step?: number;
|
|
19269
19287
|
}
|
|
19288
|
+
/**
|
|
19289
|
+
* Describes a single facet: the field it filters, its classified type, and the
|
|
19290
|
+
* options that control how it is displayed and which values are shown.
|
|
19291
|
+
*
|
|
19292
|
+
* @category Facets
|
|
19293
|
+
*/
|
|
19270
19294
|
interface FacetDefinition {
|
|
19295
|
+
/**
|
|
19296
|
+
* Human-readable description sourced from the Elasticsearch `_mapping`.
|
|
19297
|
+
*/
|
|
19271
19298
|
readonly description?: string;
|
|
19299
|
+
/**
|
|
19300
|
+
* Fully-qualified name of the field this facet filters.
|
|
19301
|
+
*/
|
|
19272
19302
|
readonly field: string;
|
|
19303
|
+
/**
|
|
19304
|
+
* @deprecated Use {@link FacetDefinition.field} instead.
|
|
19305
|
+
*/
|
|
19273
19306
|
readonly dataField?: string;
|
|
19307
|
+
/**
|
|
19308
|
+
* Index (data type) this facet belongs to.
|
|
19309
|
+
*/
|
|
19274
19310
|
readonly index: string;
|
|
19311
|
+
/**
|
|
19312
|
+
* Classified facet type used to pick the rendering control.
|
|
19313
|
+
*
|
|
19314
|
+
* @remarks Derived from the field's data type and name — e.g. `age`,
|
|
19315
|
+
* `year`, `enum`.
|
|
19316
|
+
*/
|
|
19275
19317
|
readonly type: FacetType;
|
|
19318
|
+
/**
|
|
19319
|
+
* Allowed bounds for range-style facets.
|
|
19320
|
+
*
|
|
19321
|
+
* @remarks Only meaningful when {@link FacetDefinition.type} is a range kind.
|
|
19322
|
+
*/
|
|
19276
19323
|
readonly range?: AllowableRange;
|
|
19324
|
+
/**
|
|
19325
|
+
* Whether this facet currently has any data to display.
|
|
19326
|
+
*/
|
|
19277
19327
|
readonly hasData?: boolean;
|
|
19328
|
+
/**
|
|
19329
|
+
* Display label shown in the UI; falls back to the field name when unset.
|
|
19330
|
+
*/
|
|
19278
19331
|
readonly label?: string;
|
|
19332
|
+
/**
|
|
19333
|
+
* Other indices this filter is denormalized across, so a selection applies
|
|
19334
|
+
* consistently everywhere the field appears.
|
|
19335
|
+
*/
|
|
19279
19336
|
readonly sharedWithIndices?: Array<IndexAndField>;
|
|
19337
|
+
/**
|
|
19338
|
+
* Values pinned to the bottom of the facet's value list.
|
|
19339
|
+
*/
|
|
19280
19340
|
readonly moveValuesToBottom?: Array<string>;
|
|
19341
|
+
/**
|
|
19342
|
+
* Values omitted from the facet entirely.
|
|
19343
|
+
*/
|
|
19281
19344
|
readonly excludeValues?: Array<string>;
|
|
19345
|
+
/**
|
|
19346
|
+
* Overrides the per-value label rendered for this facet when set.
|
|
19347
|
+
*/
|
|
19348
|
+
readonly valueLabel?: string;
|
|
19282
19349
|
}
|
|
19283
19350
|
|
|
19284
19351
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gen3/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.55",
|
|
4
4
|
"author": "CTDS",
|
|
5
5
|
"description": "Core module for Gen3.2. Packages provides an interface for interacting with the gen3 API, various types, and a redux store for managing state.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"files": [
|
|
80
80
|
"dist"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "5937ccf08cb698195cf86916f1835cc2cd2f8ebe"
|
|
83
83
|
}
|