24 |
25 |
--------------------------------------------------------------------------------
/packages/map-components/templates/angular/src/main.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
17 | import { AppModule } from './app/app.module';
18 |
19 | platformBrowserDynamic()
20 | .bootstrapModule(AppModule)
21 | .catch((err) => console.error(err));
22 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/angular/src/main.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
17 | import { AppModule } from "./app/app.module";
18 |
19 | platformBrowserDynamic()
20 | .bootstrapModule(AppModule)
21 | .catch((err) => console.error(err));
22 |
--------------------------------------------------------------------------------
/packages/coding-components/templates/angular/src/main.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
17 | import { AppModule } from "./app/app.module";
18 |
19 | platformBrowserDynamic()
20 | .bootstrapModule(AppModule)
21 | .catch((err) => console.error(err));
22 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/react/vite.config.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { defineConfig } from 'vite';
17 | import react from '@vitejs/plugin-react';
18 |
19 | export default defineConfig({
20 | plugins: [react()],
21 | server: {
22 | open: true,
23 | },
24 | build: {
25 | outDir: 'dist',
26 | },
27 | });
28 |
--------------------------------------------------------------------------------
/packages/coding-components/templates/react/vite.config.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { defineConfig } from "vite";
17 | import react from "@vitejs/plugin-react";
18 |
19 | export default defineConfig({
20 | plugins: [react()],
21 | server: {
22 | open: true,
23 | },
24 | build: {
25 | outDir: "dist",
26 | },
27 | });
28 |
--------------------------------------------------------------------------------
/packages/map-components/templates/react/vite.config.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { defineConfig } from "vite";
17 | import react from "@vitejs/plugin-react";
18 |
19 | export default defineConfig({
20 | plugins: [react()],
21 | server: {
22 | open: true,
23 | },
24 | build: {
25 | outDir: "dist",
26 | },
27 | });
28 |
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | module.exports = {
17 | arrowParens: "always",
18 | bracketSpacing: true,
19 | endOfLine: "auto",
20 | bracketSameLine: false,
21 | jsxSingleQuote: false,
22 | printWidth: 120,
23 | quoteProps: "consistent",
24 | semi: true,
25 | singleQuote: false,
26 | tabWidth: 2,
27 | trailingComma: "none",
28 | useTabs: false
29 | };
30 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/vue/vite.config.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { defineConfig } from 'vite';
17 | import vue from '@vitejs/plugin-vue';
18 |
19 | export default defineConfig({
20 | plugins: [
21 | vue({
22 | template: {
23 | compilerOptions: {
24 | isCustomElement: (tag) => tag.includes('arcgis-charts'),
25 | },
26 | },
27 | }),
28 | ],
29 | });
30 |
--------------------------------------------------------------------------------
/packages/map-components/templates/angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "baseUrl": "./",
5 | "outDir": "./dist/out-tsc",
6 | "forceConsistentCasingInFileNames": true,
7 | "strict": true,
8 | "noImplicitOverride": true,
9 | "noPropertyAccessFromIndexSignature": true,
10 | "noImplicitReturns": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "sourceMap": true,
13 | "downlevelIteration": true,
14 | "experimentalDecorators": true,
15 | "moduleResolution": "node",
16 | "importHelpers": true,
17 | "target": "ES2022",
18 | "module": "ES2022",
19 | "useDefineForClassFields": false,
20 | "lib": ["ES2022", "dom"],
21 | "skipLibCheck": true
22 | },
23 | "angularCompilerOptions": {
24 | "enableI18nLegacyMessageIdFormat": false,
25 | "strictInjectionParameters": true,
26 | "strictInputAccessModifiers": true,
27 | "strictTemplates": true,
28 |
29 | "fullTemplateTypeCheck": true,
30 | "enableIvy": false
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/map-components/templates/webpack/src/index.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | // Lazy loading ESM
17 | import { defineCustomElements } from "@arcgis/map-components/dist/loader";
18 | defineCustomElements(window, { resourcesUrl: "https://js.arcgis.com/map-components/4.30/assets" });
19 |
20 | const mapElement = document.querySelector("arcgis-map");
21 | mapElement.addEventListener("arcgisViewReadyChange", (event) => {
22 | console.log("MapView ready", event);
23 | });
24 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/vite/create-feature-layer.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
17 |
18 | /**
19 | * Create a feature layer with a service URL. This will be used to create a chart later.
20 | */
21 | export async function createFeatureLayer(url) {
22 | const featureLayer = new FeatureLayer({
23 | url: url,
24 | });
25 |
26 | await featureLayer.load();
27 |
28 | return featureLayer;
29 | }
30 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/webpack/src/create-feature-layer.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
17 |
18 | /**
19 | * Create a feature layer with a service URL. This will be used to create a chart later.
20 | */
21 | export async function createFeatureLayer(url) {
22 | const featureLayer = new FeatureLayer({
23 | url: url,
24 | });
25 |
26 | await featureLayer.load();
27 |
28 | return featureLayer;
29 | }
30 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "compileOnSave": false,
4 | "compilerOptions": {
5 | "outDir": "./dist/out-tsc",
6 | "forceConsistentCasingInFileNames": true,
7 | "strict": true,
8 | "noImplicitOverride": true,
9 | "noPropertyAccessFromIndexSignature": true,
10 | "noImplicitReturns": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "skipLibCheck": true,
13 | "esModuleInterop": true,
14 | "sourceMap": true,
15 | "declaration": false,
16 | "experimentalDecorators": true,
17 | "moduleResolution": "node",
18 | "importHelpers": true,
19 | "target": "ES2022",
20 | "module": "ES2022",
21 | "useDefineForClassFields": false,
22 | "resolveJsonModule": true,
23 | "lib": ["ES2022", "dom"]
24 | },
25 | "angularCompilerOptions": {
26 | "enableI18nLegacyMessageIdFormat": false,
27 | "strictInjectionParameters": true,
28 | "strictInputAccessModifiers": true,
29 | "strictTemplates": true
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/vue/src/utils/create-feature-layer.js:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
17 |
18 | /**
19 | * Create a feature layer with a service URL. This will be used to create a chart later.
20 | */
21 | export async function createFeatureLayer(url) {
22 | const featureLayer = new FeatureLayer({
23 | url: url,
24 | });
25 |
26 | await featureLayer.load();
27 |
28 | return featureLayer;
29 | }
30 |
--------------------------------------------------------------------------------
/packages/map-components/templates/react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "map-components-react-template",
3 | "private": true,
4 | "type": "module",
5 | "scripts": {
6 | "dev": "vite",
7 | "build": "vite build",
8 | "preview": "vite preview"
9 | },
10 | "dependencies": {
11 | "@arcgis/core": "~4.30.8",
12 | "@arcgis/map-components-react": "~4.30.5",
13 | "@esri/calcite-components-react": "^2.8.5",
14 | "react": "^18.3.0",
15 | "react-dom": "^18.3.0"
16 | },
17 | "devDependencies": {
18 | "@types/react": "^18.3.0",
19 | "@types/react-dom": "^18.3.0",
20 | "@vitejs/plugin-react": "^4.2.1",
21 | "typescript": "~5.4.5",
22 | "vite": "^5.1.3"
23 | },
24 | "browserslist": {
25 | "production": [
26 | "last 4 chrome versions",
27 | "last 4 edge versions",
28 | "last 2 firefox versions",
29 | "last 2 safari versions"
30 | ],
31 | "development": [
32 | "last 4 chrome versions",
33 | "last 4 edge versions",
34 | "last 2 firefox versions",
35 | "last 2 safari versions"
36 | ]
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/packages/coding-components/templates/react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "coding-components-react-template",
3 | "private": true,
4 | "type": "module",
5 | "scripts": {
6 | "dev": "vite",
7 | "build": "vite build",
8 | "preview": "vite preview"
9 | },
10 | "dependencies": {
11 | "@arcgis/coding-components-react": "~4.30.5",
12 | "@arcgis/core": "~4.30.8",
13 | "@esri/calcite-components-react": "^2.8.5",
14 | "react": "^18.3.0",
15 | "react-dom": "^18.3.0"
16 | },
17 | "devDependencies": {
18 | "@types/react": "^18.3.0",
19 | "@types/react-dom": "^18.3.0",
20 | "@vitejs/plugin-react": "^4.2.1",
21 | "typescript": "~5.4.5",
22 | "vite": "^5.1.3"
23 | },
24 | "browserslist": {
25 | "production": [
26 | "last 4 chrome versions",
27 | "last 4 edge versions",
28 | "last 2 firefox versions",
29 | "last 2 safari versions"
30 | ],
31 | "development": [
32 | "last 4 chrome versions",
33 | "last 4 edge versions",
34 | "last 2 firefox versions",
35 | "last 2 safari versions"
36 | ]
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/react/src/functions/create-feature-layer.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import FeatureLayer from "@arcgis/core/layers/FeatureLayer";
17 |
18 | /**
19 | * Create a feature layer with a service URL. This will be used to create a chart later.
20 | */
21 | export async function createFeatureLayer(url: string): Promise {
22 | const featureLayer = new FeatureLayer({
23 | url: url
24 | });
25 |
26 | await featureLayer.load();
27 |
28 | return featureLayer;
29 | }
30 |
--------------------------------------------------------------------------------
/packages/coding-components/templates/angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "baseUrl": "./",
5 | "outDir": "./dist/out-tsc",
6 | "allowSyntheticDefaultImports": true, // For Calcite components
7 | "forceConsistentCasingInFileNames": true,
8 | "strict": true,
9 | "noImplicitOverride": true,
10 | "noPropertyAccessFromIndexSignature": true,
11 | "noImplicitReturns": true,
12 | "noFallthroughCasesInSwitch": true,
13 | "sourceMap": true,
14 | "downlevelIteration": true,
15 | "experimentalDecorators": true,
16 | "moduleResolution": "node",
17 | "importHelpers": true,
18 | "target": "ES2022",
19 | "module": "ES2022",
20 | "useDefineForClassFields": false,
21 | "lib": ["ES2022", "dom"],
22 | "skipLibCheck": true
23 | },
24 | "angularCompilerOptions": {
25 | "enableI18nLegacyMessageIdFormat": false,
26 | "strictInjectionParameters": true,
27 | "strictInputAccessModifiers": true,
28 | "strictTemplates": true,
29 |
30 | "fullTemplateTypeCheck": true,
31 | "enableIvy": false
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/map-components/templates/angular/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { NgModule } from '@angular/core';
17 | import { BrowserModule } from '@angular/platform-browser';
18 | import { ComponentLibraryModule } from '@arcgis/map-components-angular';
19 |
20 | import { AppComponent } from './app.component';
21 |
22 | @NgModule({
23 | declarations: [AppComponent],
24 | imports: [BrowserModule, ComponentLibraryModule],
25 | bootstrap: [AppComponent],
26 | })
27 | export class AppModule {}
28 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/angular/src/functions/create-feature-layer.service.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import FeatureLayer from "@arcgis/core/layers/FeatureLayer";
17 |
18 | /**
19 | * Create a feature layer with a service URL. This will be used to create a chart later.
20 | */
21 | export async function createFeatureLayer(url: string): Promise {
22 | const featureLayer = new FeatureLayer({
23 | url: url
24 | });
25 |
26 | await featureLayer.load();
27 |
28 | return featureLayer;
29 | }
30 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "charts-components-react-template",
3 | "private": true,
4 | "type": "module",
5 | "scripts": {
6 | "dev": "vite",
7 | "build": "vite build",
8 | "preview": "vite preview"
9 | },
10 | "dependencies": {
11 | "@arcgis/charts-components-react": "~4.30.2",
12 | "@arcgis/charts-model": "~4.30.2",
13 | "@arcgis/core": "~4.30.8",
14 | "@esri/calcite-components-react": "^2.8.5",
15 | "react": "^18.3.0",
16 | "react-dom": "^18.3.0"
17 | },
18 | "devDependencies": {
19 | "@types/react": "^18.3.0",
20 | "@types/react-dom": "^18.3.0",
21 | "@vitejs/plugin-react": "^4.2.1",
22 | "typescript": "~5.4.5",
23 | "vite": "^5.1.3"
24 | },
25 | "browserslist": {
26 | "production": [
27 | "last 4 chrome versions",
28 | "last 4 edge versions",
29 | "last 2 firefox versions",
30 | "last 2 safari versions"
31 | ],
32 | "development": [
33 | "last 4 chrome versions",
34 | "last 4 edge versions",
35 | "last 2 firefox versions",
36 | "last 2 safari versions"
37 | ]
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/angular/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | /* Copyright 2024 Esri
2 | *
3 | * Licensed under the Apache License Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | import { NgModule } from '@angular/core';
17 | import { BrowserModule } from '@angular/platform-browser';
18 | import { AppComponent } from './app.component';
19 |
20 | // Angular wrapper for charts components
21 | import { ComponentLibraryModule } from '@arcgis/charts-components-angular';
22 |
23 | @NgModule({
24 | declarations: [AppComponent],
25 | imports: [BrowserModule, ComponentLibraryModule],
26 | bootstrap: [AppComponent],
27 | })
28 | export class AppModule {}
29 |
--------------------------------------------------------------------------------
/packages/charts-components/templates/vue/README.md:
--------------------------------------------------------------------------------
1 | # Vue 3 + Vite
2 |
3 | This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |