@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.
@@ -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,49 +1,49 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2022 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.removeDataFilesFromTemplates = exports.getDataFilesFromTemplates = void 0;
19
- /**
20
- * Extracts resource data files from templates.
21
- *
22
- * @param templates List of templates to examine
23
- *
24
- * @return List of resource data files found in supplied templates
25
- */
26
- function getDataFilesFromTemplates(templates) {
27
- const resourceItemFiles = [];
28
- templates.forEach((template) => {
29
- if (template.dataFile) {
30
- resourceItemFiles.push(template.dataFile);
31
- }
32
- });
33
- return resourceItemFiles;
34
- }
35
- exports.getDataFilesFromTemplates = getDataFilesFromTemplates;
36
- /**
37
- * Removes data files from templates.
38
- *
39
- * @param templates List of templates to modify
40
- */
41
- function removeDataFilesFromTemplates(templates) {
42
- templates.forEach((template) => {
43
- if (template.dataFile) {
44
- delete template.dataFile;
45
- }
46
- });
47
- }
48
- exports.removeDataFilesFromTemplates = removeDataFilesFromTemplates;
1
+ "use strict";
2
+ /** @license
3
+ * Copyright 2022 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.removeDataFilesFromTemplates = exports.getDataFilesFromTemplates = void 0;
19
+ /**
20
+ * Extracts resource data files from templates.
21
+ *
22
+ * @param templates List of templates to examine
23
+ *
24
+ * @return List of resource data files found in supplied templates
25
+ */
26
+ function getDataFilesFromTemplates(templates) {
27
+ const resourceItemFiles = [];
28
+ templates.forEach((template) => {
29
+ if (template.dataFile) {
30
+ resourceItemFiles.push(template.dataFile);
31
+ }
32
+ });
33
+ return resourceItemFiles;
34
+ }
35
+ exports.getDataFilesFromTemplates = getDataFilesFromTemplates;
36
+ /**
37
+ * Removes data files from templates.
38
+ *
39
+ * @param templates List of templates to modify
40
+ */
41
+ function removeDataFilesFromTemplates(templates) {
42
+ templates.forEach((template) => {
43
+ if (template.dataFile) {
44
+ delete template.dataFile;
45
+ }
46
+ });
47
+ }
48
+ exports.removeDataFilesFromTemplates = removeDataFilesFromTemplates;
49
49
  //# sourceMappingURL=template.js.map
@@ -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/cjs/index.js CHANGED
@@ -1,27 +1,27 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2018 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const tslib_1 = require("tslib");
19
- /**
20
- * Manages the creation of a Solution item.
21
- *
22
- * @module creator
23
- */
24
- tslib_1.__exportStar(require("./creator"), exports);
25
- tslib_1.__exportStar(require("./createItemTemplate"), exports);
26
- tslib_1.__exportStar(require("./module-map"), exports);
1
+ "use strict";
2
+ /** @license
3
+ * Copyright 2018 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ /**
20
+ * Manages the creation of a Solution item.
21
+ *
22
+ * @module creator
23
+ */
24
+ tslib_1.__exportStar(require("./creator"), exports);
25
+ tslib_1.__exportStar(require("./createItemTemplate"), exports);
26
+ tslib_1.__exportStar(require("./module-map"), exports);
27
27
  //# sourceMappingURL=index.js.map
@@ -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;