@esri/hub-common 14.52.0 → 14.53.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.
|
@@ -10,4 +10,14 @@ export var ExpressionRelationships;
|
|
|
10
10
|
// deprecated and not currently allowed for new use, only used for migrating older stat cards
|
|
11
11
|
ExpressionRelationships["LIKE"] = "like";
|
|
12
12
|
})(ExpressionRelationships || (ExpressionRelationships = {}));
|
|
13
|
+
/**
|
|
14
|
+
* Types of states of visibility a metric can be in
|
|
15
|
+
* featured, visible, or hidden
|
|
16
|
+
*/
|
|
17
|
+
export var MetricVisibility;
|
|
18
|
+
(function (MetricVisibility) {
|
|
19
|
+
MetricVisibility["visible"] = "visible";
|
|
20
|
+
MetricVisibility["hidden"] = "hidden";
|
|
21
|
+
MetricVisibility["featured"] = "featured";
|
|
22
|
+
})(MetricVisibility || (MetricVisibility = {}));
|
|
13
23
|
//# sourceMappingURL=Metrics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metrics.js","sourceRoot":"","sources":["../../../../src/core/types/Metrics.ts"],"names":[],"mappings":"AA4MA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,mDAAwB,CAAA;IAExB,6FAA6F;IAC7F,wCAAa,CAAA;AACf,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC"}
|
|
1
|
+
{"version":3,"file":"Metrics.js","sourceRoot":"","sources":["../../../../src/core/types/Metrics.ts"],"names":[],"mappings":"AA4MA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,mDAAwB,CAAA;IAExB,6FAA6F;IAC7F,wCAAa,CAAA;AACf,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC;AAYD;;;GAGG;AACH,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExpressionRelationships = void 0;
|
|
3
|
+
exports.MetricVisibility = exports.ExpressionRelationships = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Possible relationships for an expression
|
|
6
6
|
* BETWEEN -- used to show between two values, i.e. 7 < x < 10
|
|
@@ -13,4 +13,14 @@ var ExpressionRelationships;
|
|
|
13
13
|
// deprecated and not currently allowed for new use, only used for migrating older stat cards
|
|
14
14
|
ExpressionRelationships["LIKE"] = "like";
|
|
15
15
|
})(ExpressionRelationships = exports.ExpressionRelationships || (exports.ExpressionRelationships = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Types of states of visibility a metric can be in
|
|
18
|
+
* featured, visible, or hidden
|
|
19
|
+
*/
|
|
20
|
+
var MetricVisibility;
|
|
21
|
+
(function (MetricVisibility) {
|
|
22
|
+
MetricVisibility["visible"] = "visible";
|
|
23
|
+
MetricVisibility["hidden"] = "hidden";
|
|
24
|
+
MetricVisibility["featured"] = "featured";
|
|
25
|
+
})(MetricVisibility = exports.MetricVisibility || (exports.MetricVisibility = {}));
|
|
16
26
|
//# sourceMappingURL=Metrics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metrics.js","sourceRoot":"","sources":["../../../../src/core/types/Metrics.ts"],"names":[],"mappings":";;;AA4MA;;;;GAIG;AACH,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,mDAAwB,CAAA;IAExB,6FAA6F;IAC7F,wCAAa,CAAA;AACf,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC"}
|
|
1
|
+
{"version":3,"file":"Metrics.js","sourceRoot":"","sources":["../../../../src/core/types/Metrics.ts"],"names":[],"mappings":";;;AA4MA;;;;GAIG;AACH,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,mDAAwB,CAAA;IAExB,6FAA6F;IAC7F,wCAAa,CAAA;AACf,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC;AAYD;;;GAGG;AACH,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B"}
|
|
@@ -198,21 +198,33 @@ export declare enum ExpressionRelationships {
|
|
|
198
198
|
LIKE = "like"
|
|
199
199
|
}
|
|
200
200
|
/**
|
|
201
|
-
* Configuration for how to show a metric in the ui
|
|
201
|
+
* Configuration for how to show a metric in the ui. These are just values that are important to how to
|
|
202
|
+
* display the metric; values that are configured in the editor should be added to IMetricEditorValues instead.
|
|
202
203
|
*/
|
|
203
|
-
export interface IMetricDisplayConfig {
|
|
204
|
+
export interface IMetricDisplayConfig extends IMetricEditorValues {
|
|
204
205
|
metricId: string;
|
|
205
206
|
displayType: string;
|
|
206
|
-
|
|
207
|
+
visibility?: MetricVisibility;
|
|
207
208
|
}
|
|
208
209
|
/**
|
|
209
|
-
*
|
|
210
|
+
* Types of states of visibility a metric can be in
|
|
211
|
+
* featured, visible, or hidden
|
|
210
212
|
*/
|
|
211
|
-
export
|
|
213
|
+
export declare enum MetricVisibility {
|
|
214
|
+
visible = "visible",
|
|
215
|
+
hidden = "hidden",
|
|
216
|
+
featured = "featured"
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Editor values expected when editing a metric. These are options that are set in the metric editor that
|
|
220
|
+
* help build the IMetricDisplayConfig.
|
|
221
|
+
*/
|
|
222
|
+
export interface IMetricEditorValues {
|
|
212
223
|
/** the main value of the metric */
|
|
213
224
|
value?: string | number;
|
|
214
225
|
/** all values related to constructing a service-query metric */
|
|
215
226
|
dynamicMetric?: IDynamicMetricValues;
|
|
227
|
+
[key: string]: any;
|
|
216
228
|
}
|
|
217
229
|
/**
|
|
218
230
|
* Editor values associated with editing a dynamic metric
|