@esri/solution-creator 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.
- package/dist/cjs/createItemTemplate.d.ts +108 -108
- package/dist/cjs/createItemTemplate.js +438 -435
- package/dist/cjs/createItemTemplate.js.map +1 -1
- package/dist/cjs/creator.d.ts +97 -97
- package/dist/cjs/creator.js +278 -278
- package/dist/cjs/helpers/add-content-to-solution.d.ts +126 -126
- package/dist/cjs/helpers/add-content-to-solution.js +464 -464
- package/dist/cjs/helpers/template.d.ts +30 -30
- package/dist/cjs/helpers/template.js +48 -48
- package/dist/cjs/index.d.ts +23 -23
- package/dist/cjs/index.js +26 -26
- package/dist/cjs/module-map.d.ts +23 -23
- package/dist/cjs/module-map.js +195 -195
- package/dist/esm/createItemTemplate.d.ts +108 -108
- package/dist/esm/createItemTemplate.js +426 -423
- package/dist/esm/createItemTemplate.js.map +1 -1
- package/dist/esm/creator.d.ts +97 -97
- package/dist/esm/creator.js +267 -267
- package/dist/esm/helpers/add-content-to-solution.d.ts +126 -126
- package/dist/esm/helpers/add-content-to-solution.js +448 -448
- package/dist/esm/helpers/template.d.ts +30 -30
- package/dist/esm/helpers/template.js +43 -43
- package/dist/esm/index.d.ts +23 -23
- package/dist/esm/index.js +23 -23
- package/dist/esm/module-map.d.ts +23 -23
- package/dist/esm/module-map.js +191 -191
- package/package.json +12 -12
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2022 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 { IItemTemplate, ISourceFile } from "@esri/solution-common";
|
|
17
|
-
/**
|
|
18
|
-
* Extracts resource data files from templates.
|
|
19
|
-
*
|
|
20
|
-
* @param templates List of templates to examine
|
|
21
|
-
*
|
|
22
|
-
* @return List of resource data files found in supplied templates
|
|
23
|
-
*/
|
|
24
|
-
export declare function getDataFilesFromTemplates(templates: IItemTemplate[]): ISourceFile[];
|
|
25
|
-
/**
|
|
26
|
-
* Removes data files from templates.
|
|
27
|
-
*
|
|
28
|
-
* @param templates List of templates to modify
|
|
29
|
-
*/
|
|
30
|
-
export declare function removeDataFilesFromTemplates(templates: IItemTemplate[]): void;
|
|
1
|
+
/** @license
|
|
2
|
+
* Copyright 2022 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 { IItemTemplate, ISourceFile } from "@esri/solution-common";
|
|
17
|
+
/**
|
|
18
|
+
* Extracts resource data files from templates.
|
|
19
|
+
*
|
|
20
|
+
* @param templates List of templates to examine
|
|
21
|
+
*
|
|
22
|
+
* @return List of resource data files found in supplied templates
|
|
23
|
+
*/
|
|
24
|
+
export declare function getDataFilesFromTemplates(templates: IItemTemplate[]): ISourceFile[];
|
|
25
|
+
/**
|
|
26
|
+
* Removes data files from templates.
|
|
27
|
+
*
|
|
28
|
+
* @param templates List of templates to modify
|
|
29
|
+
*/
|
|
30
|
+
export declare function removeDataFilesFromTemplates(templates: IItemTemplate[]): void;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2022 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
|
-
* Extracts resource data files from templates.
|
|
18
|
-
*
|
|
19
|
-
* @param templates List of templates to examine
|
|
20
|
-
*
|
|
21
|
-
* @return List of resource data files found in supplied templates
|
|
22
|
-
*/
|
|
23
|
-
export function getDataFilesFromTemplates(templates) {
|
|
24
|
-
const resourceItemFiles = [];
|
|
25
|
-
templates.forEach((template) => {
|
|
26
|
-
if (template.dataFile) {
|
|
27
|
-
resourceItemFiles.push(template.dataFile);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return resourceItemFiles;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Removes data files from templates.
|
|
34
|
-
*
|
|
35
|
-
* @param templates List of templates to modify
|
|
36
|
-
*/
|
|
37
|
-
export function removeDataFilesFromTemplates(templates) {
|
|
38
|
-
templates.forEach((template) => {
|
|
39
|
-
if (template.dataFile) {
|
|
40
|
-
delete template.dataFile;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
1
|
+
/** @license
|
|
2
|
+
* Copyright 2022 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
|
+
* Extracts resource data files from templates.
|
|
18
|
+
*
|
|
19
|
+
* @param templates List of templates to examine
|
|
20
|
+
*
|
|
21
|
+
* @return List of resource data files found in supplied templates
|
|
22
|
+
*/
|
|
23
|
+
export function getDataFilesFromTemplates(templates) {
|
|
24
|
+
const resourceItemFiles = [];
|
|
25
|
+
templates.forEach((template) => {
|
|
26
|
+
if (template.dataFile) {
|
|
27
|
+
resourceItemFiles.push(template.dataFile);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return resourceItemFiles;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Removes data files from templates.
|
|
34
|
+
*
|
|
35
|
+
* @param templates List of templates to modify
|
|
36
|
+
*/
|
|
37
|
+
export function removeDataFilesFromTemplates(templates) {
|
|
38
|
+
templates.forEach((template) => {
|
|
39
|
+
if (template.dataFile) {
|
|
40
|
+
delete template.dataFile;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
44
|
//# sourceMappingURL=template.js.map
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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 of a Solution item.
|
|
18
|
-
*
|
|
19
|
-
* @module creator
|
|
20
|
-
*/
|
|
21
|
-
export * from "./creator";
|
|
22
|
-
export * from "./createItemTemplate";
|
|
23
|
-
export * from "./module-map";
|
|
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 of a Solution item.
|
|
18
|
+
*
|
|
19
|
+
* @module creator
|
|
20
|
+
*/
|
|
21
|
+
export * from "./creator";
|
|
22
|
+
export * from "./createItemTemplate";
|
|
23
|
+
export * from "./module-map";
|
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 of a Solution item.
|
|
18
|
-
*
|
|
19
|
-
* @module creator
|
|
20
|
-
*/
|
|
21
|
-
export * from "./creator";
|
|
22
|
-
export * from "./createItemTemplate";
|
|
23
|
-
export * from "./module-map";
|
|
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 of a Solution item.
|
|
18
|
+
*
|
|
19
|
+
* @module creator
|
|
20
|
+
*/
|
|
21
|
+
export * from "./creator";
|
|
22
|
+
export * from "./createItemTemplate";
|
|
23
|
+
export * from "./module-map";
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/module-map.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2020 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 { moduleHandler, IItemTypeModuleMap } from "@esri/solution-common";
|
|
17
|
-
export declare const UNSUPPORTED: moduleHandler;
|
|
18
|
-
/**
|
|
19
|
-
* Mapping from item type to module with type-specific template-handling code.
|
|
20
|
-
* AGO types come from a blend of arcgis-portal-app\src\js\arcgisonline\pages\item\_Info.js and
|
|
21
|
-
* arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
|
|
22
|
-
*/
|
|
23
|
-
export declare const moduleMap: IItemTypeModuleMap;
|
|
1
|
+
/** @license
|
|
2
|
+
* Copyright 2020 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 { moduleHandler, IItemTypeModuleMap } from "@esri/solution-common";
|
|
17
|
+
export declare const UNSUPPORTED: moduleHandler;
|
|
18
|
+
/**
|
|
19
|
+
* Mapping from item type to module with type-specific template-handling code.
|
|
20
|
+
* AGO types come from a blend of arcgis-portal-app\src\js\arcgisonline\pages\item\_Info.js and
|
|
21
|
+
* arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
|
|
22
|
+
*/
|
|
23
|
+
export declare const moduleMap: IItemTypeModuleMap;
|