@esri/solution-simple-types 4.1.2 → 5.0.1
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/dist/cjs/dashboard.d.ts +93 -93
- package/dist/cjs/dashboard.js +352 -352
- package/dist/cjs/helpers/convert-item-to-template.d.ts +46 -46
- package/dist/cjs/helpers/convert-item-to-template.js +235 -209
- package/dist/cjs/helpers/convert-item-to-template.js.map +1 -1
- package/dist/cjs/helpers/create-item-from-template.d.ts +17 -17
- package/dist/cjs/helpers/create-item-from-template.js +153 -138
- package/dist/cjs/helpers/create-item-from-template.js.map +1 -1
- package/dist/cjs/helpers/notebook-helpers.d.ts +19 -19
- package/dist/cjs/helpers/notebook-helpers.js +24 -24
- package/dist/cjs/helpers/quickcapture-helpers.d.ts +18 -18
- package/dist/cjs/helpers/quickcapture-helpers.js +22 -22
- package/dist/cjs/helpers/simple-type-helpers.d.ts +18 -18
- package/dist/cjs/helpers/simple-type-helpers.js +22 -22
- package/dist/cjs/helpers/update-notebook-data.d.ts +17 -17
- package/dist/cjs/helpers/update-notebook-data.js +27 -27
- package/dist/cjs/index.d.ts +27 -27
- package/dist/cjs/index.js +36 -36
- package/dist/cjs/notebook.d.ts +66 -66
- package/dist/cjs/notebook.js +133 -133
- package/dist/cjs/oic.d.ts +53 -53
- package/dist/cjs/oic.js +170 -170
- package/dist/cjs/quickcapture.d.ts +76 -87
- package/dist/cjs/quickcapture.js +143 -192
- package/dist/cjs/quickcapture.js.map +1 -1
- package/dist/cjs/simple-types.d.ts +57 -57
- package/dist/cjs/simple-types.js +94 -94
- package/dist/cjs/webmap.d.ts +102 -102
- package/dist/cjs/webmap.js +325 -325
- package/dist/cjs/webmappingapplication.d.ts +176 -176
- package/dist/cjs/webmappingapplication.js +674 -674
- package/dist/cjs/webmappingapplication.js.map +1 -1
- package/dist/cjs/workforce.d.ts +34 -34
- package/dist/cjs/workforce.js +44 -44
- package/dist/esm/dashboard.d.ts +93 -93
- package/dist/esm/dashboard.js +339 -339
- package/dist/esm/helpers/convert-item-to-template.d.ts +46 -46
- package/dist/esm/helpers/convert-item-to-template.js +228 -202
- package/dist/esm/helpers/convert-item-to-template.js.map +1 -1
- package/dist/esm/helpers/create-item-from-template.d.ts +17 -17
- package/dist/esm/helpers/create-item-from-template.js +148 -133
- package/dist/esm/helpers/create-item-from-template.js.map +1 -1
- package/dist/esm/helpers/notebook-helpers.d.ts +19 -19
- package/dist/esm/helpers/notebook-helpers.js +20 -20
- package/dist/esm/helpers/quickcapture-helpers.d.ts +18 -18
- package/dist/esm/helpers/quickcapture-helpers.js +19 -19
- package/dist/esm/helpers/simple-type-helpers.d.ts +18 -18
- package/dist/esm/helpers/simple-type-helpers.js +19 -19
- package/dist/esm/helpers/update-notebook-data.d.ts +17 -17
- package/dist/esm/helpers/update-notebook-data.js +23 -23
- package/dist/esm/index.d.ts +27 -27
- package/dist/esm/index.js +27 -27
- package/dist/esm/notebook.d.ts +66 -66
- package/dist/esm/notebook.js +123 -123
- package/dist/esm/oic.d.ts +53 -53
- package/dist/esm/oic.js +162 -162
- package/dist/esm/quickcapture.d.ts +76 -87
- package/dist/esm/quickcapture.js +131 -179
- package/dist/esm/quickcapture.js.map +1 -1
- package/dist/esm/simple-types.d.ts +57 -57
- package/dist/esm/simple-types.js +86 -86
- package/dist/esm/webmap.d.ts +102 -102
- package/dist/esm/webmap.js +312 -312
- package/dist/esm/webmappingapplication.d.ts +176 -176
- package/dist/esm/webmappingapplication.js +648 -648
- package/dist/esm/webmappingapplication.js.map +1 -1
- package/dist/esm/workforce.d.ts +34 -34
- package/dist/esm/workforce.js +38 -38
- package/package.json +7 -7
package/dist/cjs/dashboard.d.ts
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2018 Esri
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import * as common from "@esri/solution-common";
|
|
17
|
-
/**
|
|
18
|
-
* Converts a dashboard item to a template.
|
|
19
|
-
*
|
|
20
|
-
* @param itemTemplate Template for the dashboard item
|
|
21
|
-
* @param templateDictionary Hash of key details used for variable replacement
|
|
22
|
-
* @returns templatized itemTemplate
|
|
23
|
-
*/
|
|
24
|
-
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, templateDictionary: any): common.IItemTemplate;
|
|
25
|
-
/**
|
|
26
|
-
* Templatizes all itemIds and updates the dependency array
|
|
27
|
-
*
|
|
28
|
-
* @param itemTemplate Template for the dashboard item
|
|
29
|
-
* @param templateDictionary Hash of key details used for variable replacement
|
|
30
|
-
* @returns The updated itemTemplate
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
export declare function _extractDependencies(itemTemplate: common.IItemTemplate, templateDictionary: any): common.IItemTemplate;
|
|
34
|
-
/**
|
|
35
|
-
* Templatize datasource itemIds and update the dependency array
|
|
36
|
-
*
|
|
37
|
-
* @param obj A widget, selector, or urlParameter that contains a datasets collection
|
|
38
|
-
* @param itemTemplate Template for the dashboard item
|
|
39
|
-
* @param templateDictionary Hash of key details used for variable replacement
|
|
40
|
-
* @private
|
|
41
|
-
*/
|
|
42
|
-
export declare function _getDatasourceDependencies(obj: any, itemTemplate: common.IItemTemplate, templateDictionary: any): void;
|
|
43
|
-
/**
|
|
44
|
-
* Templatize field references for datasources and widgets.
|
|
45
|
-
*
|
|
46
|
-
* @param solutionTemplate The solution item template
|
|
47
|
-
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
48
|
-
* @returns The solutionTemplate with templatized field references
|
|
49
|
-
*/
|
|
50
|
-
export declare function postProcessFieldReferences(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[]): common.IItemTemplate;
|
|
51
|
-
/**
|
|
52
|
-
* Add all dataset ids to the appropriate datasource info object so we can navigate any relative references
|
|
53
|
-
*
|
|
54
|
-
* @param objs Thes can be widgets, selectors, or urlParameters
|
|
55
|
-
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
56
|
-
* @private
|
|
57
|
-
*/
|
|
58
|
-
export declare function _updateDatasourceReferences(objs: any, datasourceInfos: common.IDatasourceInfo[]): void;
|
|
59
|
-
/**
|
|
60
|
-
* Templatize all datasets and/or events for the objects at the given path
|
|
61
|
-
*
|
|
62
|
-
* @param itemTemplate Template for the dashboard item
|
|
63
|
-
* @param path A property path to an array of objects that could contain datasets or events
|
|
64
|
-
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
65
|
-
* @private
|
|
66
|
-
*/
|
|
67
|
-
export declare function _templatize(itemTemplate: common.IItemTemplate, path: string, datasourceInfos: common.IDatasourceInfo[]): void;
|
|
68
|
-
/**
|
|
69
|
-
* For any service dataset datasource templatize all field references
|
|
70
|
-
*
|
|
71
|
-
* @param objs A list of objects that can contain field references
|
|
72
|
-
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
73
|
-
* @returns An updated list of objects with templatized field references
|
|
74
|
-
* @private
|
|
75
|
-
*/
|
|
76
|
-
export declare function _templatizeByDatasource(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any;
|
|
77
|
-
/**
|
|
78
|
-
* Find the appropriate datasource info object from the datasourceInfo collection
|
|
79
|
-
*
|
|
80
|
-
* @param obj Can be a Dataset or an event
|
|
81
|
-
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
82
|
-
* @returns The supporting datasource info for the given object
|
|
83
|
-
* @private
|
|
84
|
-
*/
|
|
85
|
-
export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
|
|
86
|
-
/**
|
|
87
|
-
* Verifies if the datasource info contains the given id and adds it if not
|
|
88
|
-
*
|
|
89
|
-
* @param ds The datasource info to add the reference to
|
|
90
|
-
* @param id The id from dashboard object, commonly another widget
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
export declare function _updateReferences(ds: common.IDatasourceInfo, id: string): void;
|
|
1
|
+
/** @license
|
|
2
|
+
* Copyright 2018 Esri
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import * as common from "@esri/solution-common";
|
|
17
|
+
/**
|
|
18
|
+
* Converts a dashboard item to a template.
|
|
19
|
+
*
|
|
20
|
+
* @param itemTemplate Template for the dashboard item
|
|
21
|
+
* @param templateDictionary Hash of key details used for variable replacement
|
|
22
|
+
* @returns templatized itemTemplate
|
|
23
|
+
*/
|
|
24
|
+
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, templateDictionary: any): common.IItemTemplate;
|
|
25
|
+
/**
|
|
26
|
+
* Templatizes all itemIds and updates the dependency array
|
|
27
|
+
*
|
|
28
|
+
* @param itemTemplate Template for the dashboard item
|
|
29
|
+
* @param templateDictionary Hash of key details used for variable replacement
|
|
30
|
+
* @returns The updated itemTemplate
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
export declare function _extractDependencies(itemTemplate: common.IItemTemplate, templateDictionary: any): common.IItemTemplate;
|
|
34
|
+
/**
|
|
35
|
+
* Templatize datasource itemIds and update the dependency array
|
|
36
|
+
*
|
|
37
|
+
* @param obj A widget, selector, or urlParameter that contains a datasets collection
|
|
38
|
+
* @param itemTemplate Template for the dashboard item
|
|
39
|
+
* @param templateDictionary Hash of key details used for variable replacement
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
export declare function _getDatasourceDependencies(obj: any, itemTemplate: common.IItemTemplate, templateDictionary: any): void;
|
|
43
|
+
/**
|
|
44
|
+
* Templatize field references for datasources and widgets.
|
|
45
|
+
*
|
|
46
|
+
* @param solutionTemplate The solution item template
|
|
47
|
+
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
48
|
+
* @returns The solutionTemplate with templatized field references
|
|
49
|
+
*/
|
|
50
|
+
export declare function postProcessFieldReferences(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[]): common.IItemTemplate;
|
|
51
|
+
/**
|
|
52
|
+
* Add all dataset ids to the appropriate datasource info object so we can navigate any relative references
|
|
53
|
+
*
|
|
54
|
+
* @param objs Thes can be widgets, selectors, or urlParameters
|
|
55
|
+
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
export declare function _updateDatasourceReferences(objs: any, datasourceInfos: common.IDatasourceInfo[]): void;
|
|
59
|
+
/**
|
|
60
|
+
* Templatize all datasets and/or events for the objects at the given path
|
|
61
|
+
*
|
|
62
|
+
* @param itemTemplate Template for the dashboard item
|
|
63
|
+
* @param path A property path to an array of objects that could contain datasets or events
|
|
64
|
+
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
export declare function _templatize(itemTemplate: common.IItemTemplate, path: string, datasourceInfos: common.IDatasourceInfo[]): void;
|
|
68
|
+
/**
|
|
69
|
+
* For any service dataset datasource templatize all field references
|
|
70
|
+
*
|
|
71
|
+
* @param objs A list of objects that can contain field references
|
|
72
|
+
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
73
|
+
* @returns An updated list of objects with templatized field references
|
|
74
|
+
* @private
|
|
75
|
+
*/
|
|
76
|
+
export declare function _templatizeByDatasource(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any;
|
|
77
|
+
/**
|
|
78
|
+
* Find the appropriate datasource info object from the datasourceInfo collection
|
|
79
|
+
*
|
|
80
|
+
* @param obj Can be a Dataset or an event
|
|
81
|
+
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
82
|
+
* @returns The supporting datasource info for the given object
|
|
83
|
+
* @private
|
|
84
|
+
*/
|
|
85
|
+
export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
|
|
86
|
+
/**
|
|
87
|
+
* Verifies if the datasource info contains the given id and adds it if not
|
|
88
|
+
*
|
|
89
|
+
* @param ds The datasource info to add the reference to
|
|
90
|
+
* @param id The id from dashboard object, commonly another widget
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
export declare function _updateReferences(ds: common.IDatasourceInfo, id: string): void;
|