@esri/solution-form 4.1.2 → 5.0.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.
Files changed (41) hide show
  1. package/dist/cjs/convert-item-to-template.d.ts +32 -32
  2. package/dist/cjs/convert-item-to-template.js +34 -34
  3. package/dist/cjs/create-item-from-template.d.ts +31 -31
  4. package/dist/cjs/create-item-from-template.js +39 -39
  5. package/dist/cjs/helpers/build-create-params.d.ts +30 -30
  6. package/dist/cjs/helpers/build-create-params.js +77 -77
  7. package/dist/cjs/helpers/create-item-from-hub-template.d.ts +32 -32
  8. package/dist/cjs/helpers/create-item-from-hub-template.js +79 -79
  9. package/dist/cjs/helpers/create-survey.d.ts +30 -30
  10. package/dist/cjs/helpers/create-survey.js +59 -59
  11. package/dist/cjs/helpers/encode-survey-form.d.ts +28 -28
  12. package/dist/cjs/helpers/encode-survey-form.js +58 -58
  13. package/dist/cjs/helpers/is-hub-form-template.d.ts +24 -24
  14. package/dist/cjs/helpers/is-hub-form-template.js +32 -32
  15. package/dist/cjs/helpers/post-process-survey.d.ts +33 -33
  16. package/dist/cjs/helpers/post-process-survey.js +81 -81
  17. package/dist/cjs/index.d.ts +23 -23
  18. package/dist/cjs/index.js +26 -26
  19. package/dist/cjs/post-process.d.ts +32 -32
  20. package/dist/cjs/post-process.js +43 -43
  21. package/dist/esm/convert-item-to-template.d.ts +32 -32
  22. package/dist/esm/convert-item-to-template.js +30 -30
  23. package/dist/esm/create-item-from-template.d.ts +31 -31
  24. package/dist/esm/create-item-from-template.js +35 -35
  25. package/dist/esm/helpers/build-create-params.d.ts +30 -30
  26. package/dist/esm/helpers/build-create-params.js +73 -73
  27. package/dist/esm/helpers/create-item-from-hub-template.d.ts +32 -32
  28. package/dist/esm/helpers/create-item-from-hub-template.js +75 -75
  29. package/dist/esm/helpers/create-survey.d.ts +30 -30
  30. package/dist/esm/helpers/create-survey.js +55 -55
  31. package/dist/esm/helpers/encode-survey-form.d.ts +28 -28
  32. package/dist/esm/helpers/encode-survey-form.js +54 -54
  33. package/dist/esm/helpers/is-hub-form-template.d.ts +24 -24
  34. package/dist/esm/helpers/is-hub-form-template.js +27 -27
  35. package/dist/esm/helpers/post-process-survey.d.ts +33 -33
  36. package/dist/esm/helpers/post-process-survey.js +77 -77
  37. package/dist/esm/index.d.ts +23 -23
  38. package/dist/esm/index.js +23 -23
  39. package/dist/esm/post-process.d.ts +32 -32
  40. package/dist/esm/post-process.js +39 -39
  41. package/package.json +8 -8
package/dist/esm/index.js CHANGED
@@ -1,24 +1,24 @@
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
- /**
17
- * Manages the creation and deployment of form item types.
18
- *
19
- * @module solution-form
20
- */
21
- export * from "./convert-item-to-template";
22
- export * from "./create-item-from-template";
23
- export * from "./post-process";
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
+ /**
17
+ * Manages the creation and deployment of form item types.
18
+ *
19
+ * @module solution-form
20
+ */
21
+ export * from "./convert-item-to-template";
22
+ export * from "./create-item-from-template";
23
+ export * from "./post-process";
24
24
  //# sourceMappingURL=index.js.map
@@ -1,32 +1,32 @@
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
- /**
17
- * Manages the creation and deployment of form item types.
18
- *
19
- * @module post-process
20
- */
21
- import { UserSession, IItemTemplate } from "@esri/solution-common";
22
- /**
23
- * Form post-processing actions
24
- *
25
- * @param {string} itemId The item ID
26
- * @param {string} type The template type
27
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
28
- * @param {any} templateDictionary The template dictionary
29
- * @param {UserSession} authentication The destination session info
30
- * @returns Promise resolving to successfulness of update
31
- */
32
- export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: IItemTemplate, templates: IItemTemplate[], templateDictionary: any, authentication: UserSession): Promise<any>;
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
+ /**
17
+ * Manages the creation and deployment of form item types.
18
+ *
19
+ * @module post-process
20
+ */
21
+ import { UserSession, IItemTemplate } from "@esri/solution-common";
22
+ /**
23
+ * Form post-processing actions
24
+ *
25
+ * @param {string} itemId The item ID
26
+ * @param {string} type The template type
27
+ * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
28
+ * @param {any} templateDictionary The template dictionary
29
+ * @param {UserSession} authentication The destination session info
30
+ * @returns Promise resolving to successfulness of update
31
+ */
32
+ export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: IItemTemplate, templates: IItemTemplate[], templateDictionary: any, authentication: UserSession): Promise<any>;
@@ -1,40 +1,40 @@
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
- /**
17
- * Manages the creation and deployment of form item types.
18
- *
19
- * @module post-process
20
- */
21
- import { updateItemTemplateFromDictionary } from "@esri/solution-common";
22
- import { isHubFormTemplate } from "./helpers/is-hub-form-template";
23
- import { postProcessHubSurvey } from "./helpers/post-process-survey";
24
- /**
25
- * Form post-processing actions
26
- *
27
- * @param {string} itemId The item ID
28
- * @param {string} type The template type
29
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
30
- * @param {any} templateDictionary The template dictionary
31
- * @param {UserSession} authentication The destination session info
32
- * @returns Promise resolving to successfulness of update
33
- */
34
- export function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
35
- if (isHubFormTemplate(template)) {
36
- return postProcessHubSurvey(itemId, type, itemInfos, template, templates, templateDictionary, authentication);
37
- }
38
- return updateItemTemplateFromDictionary(itemId, templateDictionary, authentication);
39
- }
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
+ /**
17
+ * Manages the creation and deployment of form item types.
18
+ *
19
+ * @module post-process
20
+ */
21
+ import { updateItemTemplateFromDictionary } from "@esri/solution-common";
22
+ import { isHubFormTemplate } from "./helpers/is-hub-form-template";
23
+ import { postProcessHubSurvey } from "./helpers/post-process-survey";
24
+ /**
25
+ * Form post-processing actions
26
+ *
27
+ * @param {string} itemId The item ID
28
+ * @param {string} type The template type
29
+ * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
30
+ * @param {any} templateDictionary The template dictionary
31
+ * @param {UserSession} authentication The destination session info
32
+ * @returns Promise resolving to successfulness of update
33
+ */
34
+ export function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
35
+ if (isHubFormTemplate(template)) {
36
+ return postProcessHubSurvey(itemId, type, itemInfos, template, templates, templateDictionary, authentication);
37
+ }
38
+ return updateItemTemplateFromDictionary(itemId, templateDictionary, authentication);
39
+ }
40
40
  //# sourceMappingURL=post-process.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-form",
3
- "version": "4.1.2",
3
+ "version": "5.0.0",
4
4
  "description": "Manages the creation and deployment of form item types for @esri/solution.js.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -27,12 +27,12 @@
27
27
  "@esri/hub-initiatives": "^13.0.0",
28
28
  "@esri/hub-sites": "^13.0.1",
29
29
  "@esri/hub-teams": "^13.0.0",
30
- "@esri/solution-common": "^4.1.2",
31
- "@esri/solution-feature-layer": "^4.1.2",
32
- "@esri/solution-file": "^4.1.2",
33
- "@esri/solution-group": "^4.1.2",
34
- "@esri/solution-simple-types": "^4.1.2",
35
- "@esri/solution-storymap": "^4.1.2",
30
+ "@esri/solution-common": "^5.0.0",
31
+ "@esri/solution-feature-layer": "^5.0.0",
32
+ "@esri/solution-file": "^5.0.0",
33
+ "@esri/solution-group": "^5.0.0",
34
+ "@esri/solution-simple-types": "^5.0.0",
35
+ "@esri/solution-storymap": "^5.0.0",
36
36
  "rollup": "2.79.1"
37
37
  },
38
38
  "dependencies": {
@@ -75,5 +75,5 @@
75
75
  "esri",
76
76
  "ES6"
77
77
  ],
78
- "gitHead": "13ea49fdd2fc75cabe55a19c3620580c4c47643d"
78
+ "gitHead": "a6cbcc049fb712d19e98b7d59a94734aad4dd17f"
79
79
  }