@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.
Files changed (69) hide show
  1. package/dist/cjs/dashboard.d.ts +93 -93
  2. package/dist/cjs/dashboard.js +352 -352
  3. package/dist/cjs/helpers/convert-item-to-template.d.ts +46 -46
  4. package/dist/cjs/helpers/convert-item-to-template.js +235 -209
  5. package/dist/cjs/helpers/convert-item-to-template.js.map +1 -1
  6. package/dist/cjs/helpers/create-item-from-template.d.ts +17 -17
  7. package/dist/cjs/helpers/create-item-from-template.js +153 -138
  8. package/dist/cjs/helpers/create-item-from-template.js.map +1 -1
  9. package/dist/cjs/helpers/notebook-helpers.d.ts +19 -19
  10. package/dist/cjs/helpers/notebook-helpers.js +24 -24
  11. package/dist/cjs/helpers/quickcapture-helpers.d.ts +18 -18
  12. package/dist/cjs/helpers/quickcapture-helpers.js +22 -22
  13. package/dist/cjs/helpers/simple-type-helpers.d.ts +18 -18
  14. package/dist/cjs/helpers/simple-type-helpers.js +22 -22
  15. package/dist/cjs/helpers/update-notebook-data.d.ts +17 -17
  16. package/dist/cjs/helpers/update-notebook-data.js +27 -27
  17. package/dist/cjs/index.d.ts +27 -27
  18. package/dist/cjs/index.js +36 -36
  19. package/dist/cjs/notebook.d.ts +66 -66
  20. package/dist/cjs/notebook.js +133 -133
  21. package/dist/cjs/oic.d.ts +53 -53
  22. package/dist/cjs/oic.js +170 -170
  23. package/dist/cjs/quickcapture.d.ts +76 -87
  24. package/dist/cjs/quickcapture.js +143 -192
  25. package/dist/cjs/quickcapture.js.map +1 -1
  26. package/dist/cjs/simple-types.d.ts +57 -57
  27. package/dist/cjs/simple-types.js +94 -94
  28. package/dist/cjs/webmap.d.ts +102 -102
  29. package/dist/cjs/webmap.js +325 -325
  30. package/dist/cjs/webmappingapplication.d.ts +176 -176
  31. package/dist/cjs/webmappingapplication.js +674 -674
  32. package/dist/cjs/webmappingapplication.js.map +1 -1
  33. package/dist/cjs/workforce.d.ts +34 -34
  34. package/dist/cjs/workforce.js +44 -44
  35. package/dist/esm/dashboard.d.ts +93 -93
  36. package/dist/esm/dashboard.js +339 -339
  37. package/dist/esm/helpers/convert-item-to-template.d.ts +46 -46
  38. package/dist/esm/helpers/convert-item-to-template.js +228 -202
  39. package/dist/esm/helpers/convert-item-to-template.js.map +1 -1
  40. package/dist/esm/helpers/create-item-from-template.d.ts +17 -17
  41. package/dist/esm/helpers/create-item-from-template.js +148 -133
  42. package/dist/esm/helpers/create-item-from-template.js.map +1 -1
  43. package/dist/esm/helpers/notebook-helpers.d.ts +19 -19
  44. package/dist/esm/helpers/notebook-helpers.js +20 -20
  45. package/dist/esm/helpers/quickcapture-helpers.d.ts +18 -18
  46. package/dist/esm/helpers/quickcapture-helpers.js +19 -19
  47. package/dist/esm/helpers/simple-type-helpers.d.ts +18 -18
  48. package/dist/esm/helpers/simple-type-helpers.js +19 -19
  49. package/dist/esm/helpers/update-notebook-data.d.ts +17 -17
  50. package/dist/esm/helpers/update-notebook-data.js +23 -23
  51. package/dist/esm/index.d.ts +27 -27
  52. package/dist/esm/index.js +27 -27
  53. package/dist/esm/notebook.d.ts +66 -66
  54. package/dist/esm/notebook.js +123 -123
  55. package/dist/esm/oic.d.ts +53 -53
  56. package/dist/esm/oic.js +162 -162
  57. package/dist/esm/quickcapture.d.ts +76 -87
  58. package/dist/esm/quickcapture.js +131 -179
  59. package/dist/esm/quickcapture.js.map +1 -1
  60. package/dist/esm/simple-types.d.ts +57 -57
  61. package/dist/esm/simple-types.js +86 -86
  62. package/dist/esm/webmap.d.ts +102 -102
  63. package/dist/esm/webmap.js +312 -312
  64. package/dist/esm/webmappingapplication.d.ts +176 -176
  65. package/dist/esm/webmappingapplication.js +648 -648
  66. package/dist/esm/webmappingapplication.js.map +1 -1
  67. package/dist/esm/workforce.d.ts +34 -34
  68. package/dist/esm/workforce.js +38 -38
  69. package/package.json +7 -7
@@ -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;