diff --git a/.github/workflows/github-pages-publish.yml b/.github/workflows/github-pages-publish.yml index 8c2570bf0dc..caf2db83d28 100644 --- a/.github/workflows/github-pages-publish.yml +++ b/.github/workflows/github-pages-publish.yml @@ -1,4 +1,4 @@ -name: GitHub Pages Publish +name: Publishing to GitHub Pages step 3 (to prod) on: workflow_dispatch: diff --git a/.github/workflows/publish-demos.yml b/.github/workflows/publish-demos.yml index 994f45daa8d..f8b03dba80e 100644 --- a/.github/workflows/publish-demos.yml +++ b/.github/workflows/publish-demos.yml @@ -1,210 +1,236 @@ -name: Publish Demos to gh-pages branch +name: Publishing to GitHub Pages step 1 (to branch) on: workflow_dispatch: jobs: - build-devextreme: + build-devextreme-all: runs-on: ubuntu-latest - name: Build DevExtreme + name: Build DevExtreme + wrappers timeout-minutes: 20 steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Restore npm cache - uses: actions/cache@v4 - with: - path: '**/node_modules' - key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: DevExtreme - Install packages - run: npm install --no-audit --no-fund - - - name: DevExtreme - Build-all - env: - BUILD_TEST_INTERNAL_PACKAGE: true - run: npm run all:build - - - name: Move packages - run: | - mv ./packages/devextreme/artifacts/npm/devextreme/*.tgz ./devextreme-installer.tgz - mv ./packages/devextreme/artifacts/npm/devextreme-dist/*.tgz ./devextreme-dist-installer.tgz - mv ./packages/devextreme-angular/npm/dist/*.tgz ./devextreme-angular-installer.tgz - mv ./packages/devextreme-react/npm/*.tgz ./devextreme-react-installer.tgz - mv ./packages/devextreme-vue/npm/*.tgz ./devextreme-vue-installer.tgz - - - name: Copy build artifacts - uses: actions/upload-artifact@v4 - with: - name: devextreme-sources - path: | - devextreme-installer.tgz - devextreme-dist-installer.tgz - devextreme-angular-installer.tgz - devextreme-react-installer.tgz - devextreme-vue-installer.tgz - retention-days: 1 + - name: Get sources + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - uses: pnpm/action-setup@v3 + with: + version: 9 + run_install: false + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: | + ${{ env.STORE_PATH }} + .nx/cache + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store + + - name: Install dependencies + run: | + corepack enable + pnpm install + + - name: DevExtreme - Build-all + env: + BUILD_TEST_INTERNAL_PACKAGE: true + run: pnpm run all:build-dev + + - name: Move packages + run: | + mv ./packages/devextreme/artifacts/npm/devextreme/*.tgz ./devextreme-installer.tgz + mv ./packages/devextreme/artifacts/npm/devextreme-dist/*.tgz ./devextreme-dist-installer.tgz + mv ./packages/devextreme-angular/npm/dist/*.tgz ./devextreme-angular-installer.tgz + mv ./packages/devextreme-react/npm/*.tgz ./devextreme-react-installer.tgz + mv ./packages/devextreme-vue/npm/*.tgz ./devextreme-vue-installer.tgz + + - name: Copy build artifacts + uses: actions/upload-artifact@v4 + with: + name: devextreme-sources + path: | + devextreme-installer.tgz + devextreme-dist-installer.tgz + devextreme-angular-installer.tgz + devextreme-react-installer.tgz + devextreme-vue-installer.tgz + retention-days: 1 publish-ES: runs-on: ubuntu-latest - needs: [build-devextreme] + needs: [build-devextreme-all] steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install Dependencies - run: npm install - - - name: Download devextreme sources - uses: actions/download-artifact@v4 - with: - name: devextreme-sources - - # NOTE: workaround due to wrappers are incorrect NPM packages now - - name: Install wrappers packages - run: | - rm -rf node_modules/devextreme node_modules/devextreme-dist node_modules/devextreme-angular node_modules/devextreme-react node_modules/devextreme-vue - mkdir node_modules/devextreme node_modules/devextreme-dist node_modules/devextreme-angular node_modules/devextreme-react node_modules/devextreme-vue - tar -xzf devextreme-installer.tgz -C node_modules/devextreme - mv node_modules/devextreme/package/* node_modules/devextreme - tar -xzf devextreme-dist-installer.tgz -C node_modules/devextreme-dist - mv node_modules/devextreme-dist/package/* node_modules/devextreme-dist - tar -xzf devextreme-angular-installer.tgz -C node_modules/devextreme-angular - mv node_modules/devextreme-angular/package/* node_modules/devextreme-angular - tar -xzf devextreme-react-installer.tgz -C node_modules/devextreme-react - mv node_modules/devextreme-react/package/* node_modules/devextreme-react - tar -xzf devextreme-vue-installer.tgz -C node_modules/devextreme-vue - mv node_modules/devextreme-vue/package/* node_modules/devextreme-vue - - - name: Prepare configs - working-directory: apps/demos - run: npm run prepare-js - - - name: Copy metadata - working-directory: apps/demos - run: npm run make-demos-bundle -- --copy-metadata - - - name: Prepare React demo bundles - working-directory: apps/demos - run: npm run make-demos-bundle -- --framework React - - - name: Prepare Vue demo bundles - working-directory: apps/demos - run: npm run make-demos-bundle -- --framework Vue - - - name: Save publish-demos directory for ES as an artifact - uses: actions/upload-artifact@v3 - with: - name: publish-demos - path: ./apps/demos/publish-demos + - name: Get sources + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Download devextreme sources + uses: actions/download-artifact@v4 + with: + name: devextreme-sources + + - uses: pnpm/action-setup@v3 + with: + version: 9 + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: | + ${{ env.STORE_PATH }} + .nx/cache + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store + + - name: Install dependencies + run: | + corepack enable + pnpm install + + - name: Install tgz + working-directory: apps/demos + run: pnpm add ../../devextreme-installer.tgz ../../devextreme-dist-installer.tgz ../../devextreme-react-installer.tgz ../../devextreme-vue-installer.tgz ../../devextreme-angular-installer.tgz + + - name: Prepare configs + working-directory: apps/demos + run: pnpm run prepare-js + + - name: Copy metadata + working-directory: apps/demos + run: pnpm run make-demos-bundle --copy-metadata + + - name: Prepare React demo bundles + working-directory: apps/demos + run: pnpm run make-demos-bundle --framework="React" + + - name: Prepare Vue demo bundles + working-directory: apps/demos + run: pnpm run make-demos-bundle --framework="Vue" + + - name: Save publish-demos directory for ES as an artifact + uses: actions/upload-artifact@v3 + with: + name: publish-demos + path: ./apps/demos/publish-demos publish-angular: runs-on: ubuntu-latest - needs: [build-devextreme] + needs: [build-devextreme-all] strategy: fail-fast: false matrix: include: - name: Check generated demos (1/10) - command: CONSTEL=1/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=1/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (2/10) - command: CONSTEL=2/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=2/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (3/10) - command: CONSTEL=3/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=3/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (4/10) - command: CONSTEL=4/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=4/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (5/10) - command: CONSTEL=5/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=5/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (6/10) - command: CONSTEL=6/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=6/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (7/10) - command: CONSTEL=7/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=7/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (8/10) - command: CONSTEL=8/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=8/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (9/10) - command: CONSTEL=9/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=9/10 pnpm run make-demos-bundle --framework="Angular" - name: Check generated demos (10/10) - command: CONSTEL=10/10 npm run make-demos-bundle -- --framework Angular + command: CONSTEL=10/10 pnpm run make-demos-bundle --framework="Angular" steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup Node.js v18 - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Install Dependencies - run: npm install - - - name: Download devextreme sources - uses: actions/download-artifact@v4 - with: - name: devextreme-sources - - # NOTE: workaround due to wrappers are incorrect NPM packages now - - name: Install wrappers packages - run: | - rm -rf node_modules/devextreme node_modules/devextreme-dist node_modules/devextreme-angular node_modules/devextreme-react node_modules/devextreme-vue - mkdir node_modules/devextreme node_modules/devextreme-dist node_modules/devextreme-angular node_modules/devextreme-react node_modules/devextreme-vue - tar -xzf devextreme-installer.tgz -C node_modules/devextreme - mv node_modules/devextreme/package/* node_modules/devextreme - tar -xzf devextreme-dist-installer.tgz -C node_modules/devextreme-dist - mv node_modules/devextreme-dist/package/* node_modules/devextreme-dist - tar -xzf devextreme-angular-installer.tgz -C node_modules/devextreme-angular - mv node_modules/devextreme-angular/package/* node_modules/devextreme-angular - tar -xzf devextreme-react-installer.tgz -C node_modules/devextreme-react - mv node_modules/devextreme-react/package/* node_modules/devextreme-react - tar -xzf devextreme-vue-installer.tgz -C node_modules/devextreme-vue - mv node_modules/devextreme-vue/package/* node_modules/devextreme-vue - - - name: Prepare configs - working-directory: apps/demos - run: npm run prepare-js - - - name: Copy metadata - working-directory: apps/demos - run: npm run make-demos-bundle -- --copy-metadata - - - name: Update angular.json - working-directory: apps/demos - run: npm run update-angular-json - - - name: Create angular entryPoints to compile faster - working-directory: apps/demos - run: npm run launch-ngcc - - - name: Prepare Angular demo bundles - working-directory: apps/demos - run: | - ${{ matrix.command }} - - - name: Angular post process index.html - working-directory: apps/demos - run: npm run post-process-angular - - - name: Save publish-demos directory for Angular as an artifact - uses: actions/upload-artifact@v3 - with: - name: publish-demos - path: ./apps/demos/publish-demos + - name: Get sources + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Download devextreme sources + uses: actions/download-artifact@v4 + with: + name: devextreme-sources + + - uses: pnpm/action-setup@v3 + with: + version: 9 + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: | + ${{ env.STORE_PATH }} + .nx/cache + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store + + - name: Install dependencies + run: | + corepack enable + pnpm install + + - name: Install tgz + working-directory: apps/demos + run: pnpm add ../../devextreme-installer.tgz ../../devextreme-dist-installer.tgz ../../devextreme-react-installer.tgz ../../devextreme-vue-installer.tgz ../../devextreme-angular-installer.tgz + + - name: Prepare configs + working-directory: apps/demos + run: pnpm run prepare-js + + - name: Copy metadata + working-directory: apps/demos + run: pnpm run make-demos-bundle --copy-metadata + + - name: Update angular.json + working-directory: apps/demos + run: pnpm run update-angular-json + + - name: Prepare Angular demo bundles + working-directory: apps/demos + run: | + ${{ matrix.command }} + + - name: Angular post process index.html + working-directory: apps/demos + run: pnpm run post-process-angular + + - name: Save publish-demos directory for Angular as an artifact + uses: actions/upload-artifact@v3 + with: + name: publish-demos + path: ./apps/demos/publish-demos deploy: runs-on: ubuntu-latest - needs: [build-devextreme, publish-ES, publish-angular] + needs: [build-devextreme-all, publish-ES, publish-angular] steps: - name: Download publish-demos artifact uses: actions/download-artifact@v3 diff --git a/.github/workflows/run-testcafe-on-gh-pages.yml b/.github/workflows/run-testcafe-on-gh-pages.yml index 9a73a5b358b..280fccafec2 100644 --- a/.github/workflows/run-testcafe-on-gh-pages.yml +++ b/.github/workflows/run-testcafe-on-gh-pages.yml @@ -1,4 +1,4 @@ -name: Run TestCafe on gh-pages branch +name: Publishing to GitHub Pages step 2 (run tests on branch) on: workflow_dispatch: @@ -52,15 +52,32 @@ jobs: with: chrome-version: '121.0.6167.160' - - name: DevExtreme - Install packages + - uses: pnpm/action-setup@v3 + with: + version: 9 + run_install: false + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: | + ${{ env.STORE_PATH }} + .nx/cache + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store + + - name: Install dependencies working-directory: devextreme - run: npm install --no-audit --no-fund + run: | + corepack enable + pnpm install - name: Run TestCafe tests working-directory: devextreme/apps/demos env: CHANGEDFILEINFOSPATH: changed-files.json - BROWSERS: chrome:headless --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning + BROWSERS: chrome:headless --window-size=1200,800 --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning #DEBUG: hammerhead:*,testcafe:* CONCURRENCY: 4 TCQUARANTINE: true @@ -71,7 +88,7 @@ jobs: # DISABLE_DEMO_TEST_SETTINGS: ignore # Uncomment to ignore the `ignore` field # DISABLE_DEMO_TEST_SETTINGS: comparison-options # Uncomment to ignore the `comparison-options` field CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally - run: npx nx test-testcafe + run: pnpx nx test-testcafe - name: Copy screenshots artifacts if: ${{ failure() }} diff --git a/apps/demos/.gitignore b/apps/demos/.gitignore index 685d92e7c2d..149033c3dfa 100644 --- a/apps/demos/.gitignore +++ b/apps/demos/.gitignore @@ -32,3 +32,6 @@ Demos/**/tsconfig.json .DS_Store publish-demos + +.angular +angular.json diff --git a/apps/demos/.prettierignore b/apps/demos/.prettierignore index 8fae406a600..244b69139b6 100644 --- a/apps/demos/.prettierignore +++ b/apps/demos/.prettierignore @@ -9,3 +9,4 @@ .github publish-demos coverage +utils/**/template.html diff --git a/apps/demos/Demos/Accordion/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Accordion/Overview/Angular/app/app.component.ts index f7492d2678a..01577ae707d 100644 --- a/apps/demos/Demos/Accordion/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Accordion/Overview/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ActionSheet/Basics/Angular/app/app.component.ts b/apps/demos/Demos/ActionSheet/Basics/Angular/app/app.component.ts index b40603f709c..6117e6fff82 100644 --- a/apps/demos/Demos/ActionSheet/Basics/Angular/app/app.component.ts +++ b/apps/demos/Demos/ActionSheet/Basics/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ActionSheet/PopoverMode/Angular/app/app.component.ts b/apps/demos/Demos/ActionSheet/PopoverMode/Angular/app/app.component.ts index 85258feaca2..d4289be11b2 100644 --- a/apps/demos/Demos/ActionSheet/PopoverMode/Angular/app/app.component.ts +++ b/apps/demos/Demos/ActionSheet/PopoverMode/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts index 48ecfccb675..20d62c74f45 100644 --- a/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts @@ -18,7 +18,7 @@ function isNotEmpty(value: unknown): boolean { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Box/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Box/Overview/Angular/app/app.component.ts index 893d7cb3dcb..385d78a7f8b 100644 --- a/apps/demos/Demos/Box/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Box/Overview/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Button/Icons/Angular/app/app.component.ts b/apps/demos/Demos/Button/Icons/Angular/app/app.component.ts index f1db84dcc9c..67dacae1582 100644 --- a/apps/demos/Demos/Button/Icons/Angular/app/app.component.ts +++ b/apps/demos/Demos/Button/Icons/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Button/PredefinedTypes/Angular/app/app.component.ts b/apps/demos/Demos/Button/PredefinedTypes/Angular/app/app.component.ts index 9542f7c83a4..973c8e8c9ba 100644 --- a/apps/demos/Demos/Button/PredefinedTypes/Angular/app/app.component.ts +++ b/apps/demos/Demos/Button/PredefinedTypes/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ButtonGroup/Overview/Angular/app/app.component.ts b/apps/demos/Demos/ButtonGroup/Overview/Angular/app/app.component.ts index ff1de19042e..ee5bce6b826 100644 --- a/apps/demos/Demos/ButtonGroup/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/ButtonGroup/Overview/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Calendar/MultipleSelection/Angular/app/app.component.ts b/apps/demos/Demos/Calendar/MultipleSelection/Angular/app/app.component.ts index 87c017529e6..587cb537fb4 100644 --- a/apps/demos/Demos/Calendar/MultipleSelection/Angular/app/app.component.ts +++ b/apps/demos/Demos/Calendar/MultipleSelection/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Calendar/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Calendar/Overview/Angular/app/app.component.ts index 8dcaf54ca90..0f8b9b38e50 100644 --- a/apps/demos/Demos/Calendar/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Calendar/Overview/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/APIDisplayATooltip/Angular/app/app.component.ts b/apps/demos/Demos/Charts/APIDisplayATooltip/Angular/app/app.component.ts index 162699869d7..13282d65b36 100644 --- a/apps/demos/Demos/Charts/APIDisplayATooltip/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/APIDisplayATooltip/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/APISelectAPoint/Angular/app/app.component.ts b/apps/demos/Demos/Charts/APISelectAPoint/Angular/app/app.component.ts index 68453216458..193ccc9b3bd 100644 --- a/apps/demos/Demos/Charts/APISelectAPoint/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/APISelectAPoint/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/AjaxRequest/Angular/app/app.component.ts b/apps/demos/Demos/Charts/AjaxRequest/Angular/app/app.component.ts index a3152750a92..c74d0af1291 100644 --- a/apps/demos/Demos/Charts/AjaxRequest/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/AjaxRequest/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.ts index 9b8fae6ba2d..5cfa12e2c83 100644 --- a/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Area/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Area/Angular/app/app.component.ts index 86049e49e3b..1ded320e50f 100644 --- a/apps/demos/Demos/Charts/Area/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Area/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.ts b/apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.ts index c1891659a76..b0b42e2c140 100644 --- a/apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/AutoCalculatedBarWidth/Angular/app/app.component.ts b/apps/demos/Demos/Charts/AutoCalculatedBarWidth/Angular/app/app.component.ts index db16dad3ebb..99cd5adf8ab 100644 --- a/apps/demos/Demos/Charts/AutoCalculatedBarWidth/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/AutoCalculatedBarWidth/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/AxisCustomPosition/Angular/app/app.component.ts b/apps/demos/Demos/Charts/AxisCustomPosition/Angular/app/app.component.ts index 72e7ee35d7f..8823bcf8b68 100644 --- a/apps/demos/Demos/Charts/AxisCustomPosition/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/AxisCustomPosition/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/AxisLabelsOverlapping/Angular/app/app.component.ts b/apps/demos/Demos/Charts/AxisLabelsOverlapping/Angular/app/app.component.ts index 9579dedb990..1badcb40e5f 100644 --- a/apps/demos/Demos/Charts/AxisLabelsOverlapping/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/AxisLabelsOverlapping/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/AxisLabelsTemplates/Angular/app/app.component.ts b/apps/demos/Demos/Charts/AxisLabelsTemplates/Angular/app/app.component.ts index 70f8461a60a..42434f41c6f 100644 --- a/apps/demos/Demos/Charts/AxisLabelsTemplates/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/AxisLabelsTemplates/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/BarSparklines/Angular/app/app.component.ts b/apps/demos/Demos/Charts/BarSparklines/Angular/app/app.component.ts index c02ccab218c..b3e26033405 100644 --- a/apps/demos/Demos/Charts/BarSparklines/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/BarSparklines/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/BiDirectionalBarChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/BiDirectionalBarChart/Angular/app/app.component.ts index c6b28c73c16..8f8b7b996ea 100644 --- a/apps/demos/Demos/Charts/BiDirectionalBarChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/BiDirectionalBarChart/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Bubble/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Bubble/Angular/app/app.component.ts index d2953e61e22..0afb3f9f12e 100644 --- a/apps/demos/Demos/Charts/Bubble/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Bubble/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Candlestick/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Candlestick/Angular/app/app.component.ts index f1bd2320a55..53aa9be63c2 100644 --- a/apps/demos/Demos/Charts/Candlestick/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Candlestick/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ChartsDrillDown/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ChartsDrillDown/Angular/app/app.component.ts index 54accc5cd46..ed06f0dddb9 100644 --- a/apps/demos/Demos/Charts/ChartsDrillDown/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ChartsDrillDown/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/app/app.component.ts index 560b4fc30f0..af05114e3fd 100644 --- a/apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/app/app.component.ts @@ -17,7 +17,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ColorEachBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ColorEachBar/Angular/app/app.component.ts index cf1831be903..439069d6021 100644 --- a/apps/demos/Demos/Charts/ColorEachBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ColorEachBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Colorization/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Colorization/Angular/app/app.component.ts index 299ae520cff..8454d8f0611 100644 --- a/apps/demos/Demos/Charts/Colorization/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Colorization/Angular/app/app.component.ts @@ -22,7 +22,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ContinuousData/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ContinuousData/Angular/app/app.component.ts index afd2bdf3ca7..8eca1aa1658 100644 --- a/apps/demos/Demos/Charts/ContinuousData/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ContinuousData/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Crosshair/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Crosshair/Angular/app/app.component.ts index 7787ace5026..36c4cd04b03 100644 --- a/apps/demos/Demos/Charts/Crosshair/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Crosshair/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/CustomAnnotations/Angular/app/app.component.ts b/apps/demos/Demos/Charts/CustomAnnotations/Angular/app/app.component.ts index 1665b4e5ffe..6a78d43796c 100644 --- a/apps/demos/Demos/Charts/CustomAnnotations/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/CustomAnnotations/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/CustomBarWidth/Angular/app/app.component.ts b/apps/demos/Demos/Charts/CustomBarWidth/Angular/app/app.component.ts index 3f92c792583..73468b1c82b 100644 --- a/apps/demos/Demos/Charts/CustomBarWidth/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/CustomBarWidth/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/CustomLegendMarkers/Angular/app/app.component.ts b/apps/demos/Demos/Charts/CustomLegendMarkers/Angular/app/app.component.ts index 2a4fb1c514c..302c6adfbdc 100644 --- a/apps/demos/Demos/Charts/CustomLegendMarkers/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/CustomLegendMarkers/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/CustomizePointsAndLabels/Angular/app/app.component.ts b/apps/demos/Demos/Charts/CustomizePointsAndLabels/Angular/app/app.component.ts index b66d02fdafb..6434cf8ce85 100644 --- a/apps/demos/Demos/Charts/CustomizePointsAndLabels/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/CustomizePointsAndLabels/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DiscreteAggregation/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DiscreteAggregation/Angular/app/app.component.ts index 2b247cd495d..329011f62a0 100644 --- a/apps/demos/Demos/Charts/DiscreteAggregation/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DiscreteAggregation/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DiscreteAxisZoomingAndScrolling/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DiscreteAxisZoomingAndScrolling/Angular/app/app.component.ts index 50ee40a2013..851e1ab3e0a 100644 --- a/apps/demos/Demos/Charts/DiscreteAxisZoomingAndScrolling/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DiscreteAxisZoomingAndScrolling/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DiscreteData/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DiscreteData/Angular/app/app.component.ts index a499e026917..9de9edc61bf 100644 --- a/apps/demos/Demos/Charts/DiscreteData/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DiscreteData/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Doughnut/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Doughnut/Angular/app/app.component.ts index 5062d450a4c..973c3c353be 100644 --- a/apps/demos/Demos/Charts/Doughnut/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Doughnut/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DoughnutSelection/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DoughnutSelection/Angular/app/app.component.ts index b854de29e02..e233d04c0f0 100644 --- a/apps/demos/Demos/Charts/DoughnutSelection/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DoughnutSelection/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DoughnutWithCustomLabelInCenter/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DoughnutWithCustomLabelInCenter/Angular/app/app.component.ts index 5c12ba05b4e..e94f1df2071 100644 --- a/apps/demos/Demos/Charts/DoughnutWithCustomLabelInCenter/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DoughnutWithCustomLabelInCenter/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DoughnutWithTopNSeries/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DoughnutWithTopNSeries/Angular/app/app.component.ts index fa306c7834e..8c104d64a43 100644 --- a/apps/demos/Demos/Charts/DoughnutWithTopNSeries/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DoughnutWithTopNSeries/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/DrillDown/Angular/app/app.component.ts b/apps/demos/Demos/Charts/DrillDown/Angular/app/app.component.ts index e59e11a9445..e9e38241041 100644 --- a/apps/demos/Demos/Charts/DrillDown/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/DrillDown/Angular/app/app.component.ts @@ -15,7 +15,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ErrorBars/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ErrorBars/Angular/app/app.component.ts index ee00257dce0..62cc3da0c24 100644 --- a/apps/demos/Demos/Charts/ErrorBars/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ErrorBars/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ExportAndPrintingAPI/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ExportAndPrintingAPI/Angular/app/app.component.ts index 43d3bced3b7..4109b733df9 100644 --- a/apps/demos/Demos/Charts/ExportAndPrintingAPI/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ExportAndPrintingAPI/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.ts index a30b6fc229c..6eb018822e9 100644 --- a/apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.ts @@ -15,7 +15,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ExportSeveralCharts/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ExportSeveralCharts/Angular/app/app.component.ts index be5d637bb9f..e94d0500d1e 100644 --- a/apps/demos/Demos/Charts/ExportSeveralCharts/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ExportSeveralCharts/Angular/app/app.component.ts @@ -16,7 +16,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/FlatDataStructure/Angular/app/app.component.ts b/apps/demos/Demos/Charts/FlatDataStructure/Angular/app/app.component.ts index d7fa47d2363..f5aa2cd0721 100644 --- a/apps/demos/Demos/Charts/FlatDataStructure/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/FlatDataStructure/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/FullStackedBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/FullStackedBar/Angular/app/app.component.ts index 50e05bdcec1..8d66ff5aa4e 100644 --- a/apps/demos/Demos/Charts/FullStackedBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/FullStackedBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/FunnelChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/FunnelChart/Angular/app/app.component.ts index 6ea8b664253..7c27db547d8 100644 --- a/apps/demos/Demos/Charts/FunnelChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/FunnelChart/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/HierarchicalDataStructure/Angular/app/app.component.ts b/apps/demos/Demos/Charts/HierarchicalDataStructure/Angular/app/app.component.ts index d7fa47d2363..f5aa2cd0721 100644 --- a/apps/demos/Demos/Charts/HierarchicalDataStructure/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/HierarchicalDataStructure/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/HoverMode/Angular/app/app.component.ts b/apps/demos/Demos/Charts/HoverMode/Angular/app/app.component.ts index dd0a97e6805..1fa116bc6fa 100644 --- a/apps/demos/Demos/Charts/HoverMode/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/HoverMode/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/InvertedChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/InvertedChart/Angular/app/app.component.ts index afd2bdf3ca7..8eca1aa1658 100644 --- a/apps/demos/Demos/Charts/InvertedChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/InvertedChart/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Line/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Line/Angular/app/app.component.ts index 0d0df26834f..45b23f1e991 100644 --- a/apps/demos/Demos/Charts/Line/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Line/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/LoadDataOnDemand/Angular/app/app.component.ts b/apps/demos/Demos/Charts/LoadDataOnDemand/Angular/app/app.component.ts index fdb14aba3f9..a92e71c1f01 100644 --- a/apps/demos/Demos/Charts/LoadDataOnDemand/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/LoadDataOnDemand/Angular/app/app.component.ts @@ -15,7 +15,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/LogarithmicAxis/Angular/app/app.component.ts b/apps/demos/Demos/Charts/LogarithmicAxis/Angular/app/app.component.ts index 3b5ce70fc3b..e23c6f14bb0 100644 --- a/apps/demos/Demos/Charts/LogarithmicAxis/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/LogarithmicAxis/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/LogarithmicVsLinearAxes/Angular/app/app.component.ts b/apps/demos/Demos/Charts/LogarithmicVsLinearAxes/Angular/app/app.component.ts index f5fa8de9fe0..1d046970f04 100644 --- a/apps/demos/Demos/Charts/LogarithmicVsLinearAxes/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/LogarithmicVsLinearAxes/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/MultipleAxes/Angular/app/app.component.ts b/apps/demos/Demos/Charts/MultipleAxes/Angular/app/app.component.ts index 942093b2df9..c1e14a2bed1 100644 --- a/apps/demos/Demos/Charts/MultipleAxes/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/MultipleAxes/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/MultiplePanes/Angular/app/app.component.ts b/apps/demos/Demos/Charts/MultiplePanes/Angular/app/app.component.ts index a8ca600a5b1..0500904d37a 100644 --- a/apps/demos/Demos/Charts/MultiplePanes/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/MultiplePanes/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/MultiplePointSelection/Angular/app/app.component.ts b/apps/demos/Demos/Charts/MultiplePointSelection/Angular/app/app.component.ts index d74c3791947..57b618a7bd3 100644 --- a/apps/demos/Demos/Charts/MultiplePointSelection/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/MultiplePointSelection/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/MultipleSeriesSelection/Angular/app/app.component.ts b/apps/demos/Demos/Charts/MultipleSeriesSelection/Angular/app/app.component.ts index e95df63012d..41f1618fd10 100644 --- a/apps/demos/Demos/Charts/MultipleSeriesSelection/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/MultipleSeriesSelection/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/NullPointSupport/Angular/app/app.component.ts b/apps/demos/Demos/Charts/NullPointSupport/Angular/app/app.component.ts index 36c92723fb3..cfa3ec4ec26 100644 --- a/apps/demos/Demos/Charts/NullPointSupport/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/NullPointSupport/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Overview/Angular/app/app.component.ts index c81111c3ff4..32952ea35be 100644 --- a/apps/demos/Demos/Charts/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Overview/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Palette/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Palette/Angular/app/app.component.ts index 1c8643e570c..290aa916140 100644 --- a/apps/demos/Demos/Charts/Palette/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Palette/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ParetoChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ParetoChart/Angular/app/app.component.ts index 507b177515f..bbd88523bc0 100644 --- a/apps/demos/Demos/Charts/ParetoChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ParetoChart/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PeriodicData/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PeriodicData/Angular/app/app.component.ts index afd2bdf3ca7..8eca1aa1658 100644 --- a/apps/demos/Demos/Charts/PeriodicData/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PeriodicData/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Pie/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Pie/Angular/app/app.component.ts index 0f7f197b4a0..3b655f490d0 100644 --- a/apps/demos/Demos/Charts/Pie/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Pie/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PieWithAnnotations/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PieWithAnnotations/Angular/app/app.component.ts index 4c58662e337..bea8e80a677 100644 --- a/apps/demos/Demos/Charts/PieWithAnnotations/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PieWithAnnotations/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PieWithCustomLabels/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PieWithCustomLabels/Angular/app/app.component.ts index 7ec03a7c855..ef448d7b84b 100644 --- a/apps/demos/Demos/Charts/PieWithCustomLabels/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PieWithCustomLabels/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PieWithCustomStyles/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PieWithCustomStyles/Angular/app/app.component.ts index 8acc34370dd..4485ffcc765 100644 --- a/apps/demos/Demos/Charts/PieWithCustomStyles/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PieWithCustomStyles/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PieWithMultipleSeries/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PieWithMultipleSeries/Angular/app/app.component.ts index 77d51e5cc02..c42f4c38e8d 100644 --- a/apps/demos/Demos/Charts/PieWithMultipleSeries/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PieWithMultipleSeries/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PieWithResolvedLabelOverlapping/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PieWithResolvedLabelOverlapping/Angular/app/app.component.ts index b20360a4882..d953631266b 100644 --- a/apps/demos/Demos/Charts/PieWithResolvedLabelOverlapping/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PieWithResolvedLabelOverlapping/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PieWithSmallValuesGrouped/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PieWithSmallValuesGrouped/Angular/app/app.component.ts index fa306c7834e..8c104d64a43 100644 --- a/apps/demos/Demos/Charts/PieWithSmallValuesGrouped/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PieWithSmallValuesGrouped/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PiesWithEqualSize/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PiesWithEqualSize/Angular/app/app.component.ts index 1a9dc5c73c1..5c48ecb161b 100644 --- a/apps/demos/Demos/Charts/PiesWithEqualSize/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PiesWithEqualSize/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PointImage/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PointImage/Angular/app/app.component.ts index 505158fee7d..39cb57a5350 100644 --- a/apps/demos/Demos/Charts/PointImage/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PointImage/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PointsAggregation/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PointsAggregation/Angular/app/app.component.ts index 1a2d5794c97..158ac950350 100644 --- a/apps/demos/Demos/Charts/PointsAggregation/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PointsAggregation/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PointsAggregationFinancialChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PointsAggregationFinancialChart/Angular/app/app.component.ts index d3a8f423474..43512a62b9a 100644 --- a/apps/demos/Demos/Charts/PointsAggregationFinancialChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PointsAggregationFinancialChart/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PolarChartAnnotations/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PolarChartAnnotations/Angular/app/app.component.ts index 4c419492e9d..24cc1b2de1d 100644 --- a/apps/demos/Demos/Charts/PolarChartAnnotations/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PolarChartAnnotations/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PolarChartZoomingAndScrollingAPI/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PolarChartZoomingAndScrollingAPI/Angular/app/app.component.ts index a875fcd84d7..59fdc58a455 100644 --- a/apps/demos/Demos/Charts/PolarChartZoomingAndScrollingAPI/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PolarChartZoomingAndScrollingAPI/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/PyramidChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/PyramidChart/Angular/app/app.component.ts index 86af58a23e8..5b3990a042f 100644 --- a/apps/demos/Demos/Charts/PyramidChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/PyramidChart/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/RangeArea/Angular/app/app.component.ts b/apps/demos/Demos/Charts/RangeArea/Angular/app/app.component.ts index 12b6855100f..53093dd5dc5 100644 --- a/apps/demos/Demos/Charts/RangeArea/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/RangeArea/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/RangeBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/RangeBar/Angular/app/app.component.ts index 74b7aa9b13c..201bd749bb5 100644 --- a/apps/demos/Demos/Charts/RangeBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/RangeBar/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SankeyChart/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SankeyChart/Angular/app/app.component.ts index 87194a531ac..401b820e13f 100644 --- a/apps/demos/Demos/Charts/SankeyChart/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SankeyChart/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ScaleBreaks/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ScaleBreaks/Angular/app/app.component.ts index b2f70395218..ef6f2ac4140 100644 --- a/apps/demos/Demos/Charts/ScaleBreaks/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ScaleBreaks/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Scatter/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Scatter/Angular/app/app.component.ts index a0870eee41c..3517171bd3b 100644 --- a/apps/demos/Demos/Charts/Scatter/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Scatter/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Selection/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Selection/Angular/app/app.component.ts index 5232449a4e0..92140bb284e 100644 --- a/apps/demos/Demos/Charts/Selection/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Selection/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SeriesTemplates/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SeriesTemplates/Angular/app/app.component.ts index 1fcac9986bf..087218189fd 100644 --- a/apps/demos/Demos/Charts/SeriesTemplates/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SeriesTemplates/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ServerSideDataProcessing/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ServerSideDataProcessing/Angular/app/app.component.ts index 45cd817d09f..e23732f0243 100644 --- a/apps/demos/Demos/Charts/ServerSideDataProcessing/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ServerSideDataProcessing/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SideBySideBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SideBySideBar/Angular/app/app.component.ts index 6ee31e60ecc..7b165986b34 100644 --- a/apps/demos/Demos/Charts/SideBySideBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SideBySideBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SideBySideFullStackedBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SideBySideFullStackedBar/Angular/app/app.component.ts index d2e70d234a8..7e7f65b4831 100644 --- a/apps/demos/Demos/Charts/SideBySideFullStackedBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SideBySideFullStackedBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SideBySideStackedBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SideBySideStackedBar/Angular/app/app.component.ts index 267294338d1..abd4aff11ad 100644 --- a/apps/demos/Demos/Charts/SideBySideStackedBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SideBySideStackedBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SignalRService/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SignalRService/Angular/app/app.component.ts index 2a5268afbb0..f1e7c5c7753 100644 --- a/apps/demos/Demos/Charts/SignalRService/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SignalRService/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SimpleArray/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SimpleArray/Angular/app/app.component.ts index 4800f29ce67..47395099b8a 100644 --- a/apps/demos/Demos/Charts/SimpleArray/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SimpleArray/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SimpleBullets/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SimpleBullets/Angular/app/app.component.ts index 57d70563c97..31c486dbcc8 100644 --- a/apps/demos/Demos/Charts/SimpleBullets/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SimpleBullets/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SimpleSparklines/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SimpleSparklines/Angular/app/app.component.ts index 24d83899cf1..8ad419606e3 100644 --- a/apps/demos/Demos/Charts/SimpleSparklines/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SimpleSparklines/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SpiderWeb/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SpiderWeb/Angular/app/app.component.ts index 7cf4bda2837..83c5336dd22 100644 --- a/apps/demos/Demos/Charts/SpiderWeb/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SpiderWeb/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Spline/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Spline/Angular/app/app.component.ts index b4d09459d12..74f38d4a0fa 100644 --- a/apps/demos/Demos/Charts/Spline/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Spline/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/SplineArea/Angular/app/app.component.ts b/apps/demos/Demos/Charts/SplineArea/Angular/app/app.component.ts index 041fa23da0e..d623e3522e3 100644 --- a/apps/demos/Demos/Charts/SplineArea/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/SplineArea/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/StackedBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/StackedBar/Angular/app/app.component.ts index acccef6057d..c56039c8f80 100644 --- a/apps/demos/Demos/Charts/StackedBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/StackedBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/StandardBar/Angular/app/app.component.ts b/apps/demos/Demos/Charts/StandardBar/Angular/app/app.component.ts index f5fa8de9fe0..1d046970f04 100644 --- a/apps/demos/Demos/Charts/StandardBar/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/StandardBar/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/StepArea/Angular/app/app.component.ts b/apps/demos/Demos/Charts/StepArea/Angular/app/app.component.ts index 7ee1e26d8b0..e7cbcf3df04 100644 --- a/apps/demos/Demos/Charts/StepArea/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/StepArea/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/StepLine/Angular/app/app.component.ts b/apps/demos/Demos/Charts/StepLine/Angular/app/app.component.ts index 90cbade74df..0a673c44c2a 100644 --- a/apps/demos/Demos/Charts/StepLine/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/StepLine/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Stock/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Stock/Angular/app/app.component.ts index f1bd2320a55..53aa9be63c2 100644 --- a/apps/demos/Demos/Charts/Stock/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Stock/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Strips/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Strips/Angular/app/app.component.ts index e09b795280f..3468bce7d46 100644 --- a/apps/demos/Demos/Charts/Strips/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Strips/Angular/app/app.component.ts @@ -12,7 +12,7 @@ const customizeText: DxChartTypes.ArgumentAxisLabel['customizeText'] = ({ valueT let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/TilingAlgorithms/Angular/app/app.component.ts b/apps/demos/Demos/Charts/TilingAlgorithms/Angular/app/app.component.ts index d1f97114d36..5bd6c1b0ed7 100644 --- a/apps/demos/Demos/Charts/TilingAlgorithms/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/TilingAlgorithms/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/Timeline/Angular/app/app.component.ts b/apps/demos/Demos/Charts/Timeline/Angular/app/app.component.ts index f5fa8de9fe0..1d046970f04 100644 --- a/apps/demos/Demos/Charts/Timeline/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/Timeline/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/TooltipHTMLSupport/Angular/app/app.component.ts b/apps/demos/Demos/Charts/TooltipHTMLSupport/Angular/app/app.component.ts index f54553e2698..d909aee308e 100644 --- a/apps/demos/Demos/Charts/TooltipHTMLSupport/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/TooltipHTMLSupport/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/WindRose/Angular/app/app.component.ts b/apps/demos/Demos/Charts/WindRose/Angular/app/app.component.ts index 6ec73e1f6d0..a963fe54456 100644 --- a/apps/demos/Demos/Charts/WindRose/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/WindRose/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/WinlossSparklines/Angular/app/app.component.ts b/apps/demos/Demos/Charts/WinlossSparklines/Angular/app/app.component.ts index a0349635d9b..4c319d7a65d 100644 --- a/apps/demos/Demos/Charts/WinlossSparklines/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/WinlossSparklines/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ZoomingAndScrolling/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ZoomingAndScrolling/Angular/app/app.component.ts index 1029e31415e..4dc4b97c479 100644 --- a/apps/demos/Demos/Charts/ZoomingAndScrolling/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ZoomingAndScrolling/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ZoomingAndScrollingAPI/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ZoomingAndScrollingAPI/Angular/app/app.component.ts index 5e5bb112a1c..912c405ce47 100644 --- a/apps/demos/Demos/Charts/ZoomingAndScrollingAPI/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ZoomingAndScrollingAPI/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Charts/ZoomingOnAreaSelection/Angular/app/app.component.ts b/apps/demos/Demos/Charts/ZoomingOnAreaSelection/Angular/app/app.component.ts index 9c5833326af..4d395354605 100644 --- a/apps/demos/Demos/Charts/ZoomingOnAreaSelection/Angular/app/app.component.ts +++ b/apps/demos/Demos/Charts/ZoomingOnAreaSelection/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.ts b/apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.ts index 0431879f254..77541eb6c6f 100644 --- a/apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.ts +++ b/apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.ts @@ -21,7 +21,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Chat/Customization/Angular/app/app.component.ts b/apps/demos/Demos/Chat/Customization/Angular/app/app.component.ts index 4761f32429a..c4f59531e7b 100644 --- a/apps/demos/Demos/Chat/Customization/Angular/app/app.component.ts +++ b/apps/demos/Demos/Chat/Customization/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Chat/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Chat/Overview/Angular/app/app.component.ts index 441a9da8424..df59bead11e 100644 --- a/apps/demos/Demos/Chat/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Chat/Overview/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/CheckBox/Overview/Angular/app/app.component.ts b/apps/demos/Demos/CheckBox/Overview/Angular/app/app.component.ts index b5521fc188b..e20dd3435a3 100644 --- a/apps/demos/Demos/CheckBox/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/CheckBox/Overview/Angular/app/app.component.ts @@ -9,7 +9,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ColorBox/Overview/Angular/app/app.component.ts b/apps/demos/Demos/ColorBox/Overview/Angular/app/app.component.ts index f4ff73e172a..af0ed7fee88 100644 --- a/apps/demos/Demos/ColorBox/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/ColorBox/Overview/Angular/app/app.component.ts @@ -9,7 +9,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/ActionAndListsOverview/Angular/app/app.component.ts b/apps/demos/Demos/Common/ActionAndListsOverview/Angular/app/app.component.ts index 2d413d06f5d..0f24ed2766e 100644 --- a/apps/demos/Demos/Common/ActionAndListsOverview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/ActionAndListsOverview/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/CustomTextEditorButtons/Angular/app/app.component.ts b/apps/demos/Demos/Common/CustomTextEditorButtons/Angular/app/app.component.ts index a19496fc340..56f2e6609e1 100644 --- a/apps/demos/Demos/Common/CustomTextEditorButtons/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/CustomTextEditorButtons/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/DialogsAndNotificationsOverview/Angular/app/app.component.ts b/apps/demos/Demos/Common/DialogsAndNotificationsOverview/Angular/app/app.component.ts index 283dbf3c0da..2db5100a6ea 100644 --- a/apps/demos/Demos/Common/DialogsAndNotificationsOverview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/DialogsAndNotificationsOverview/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/EditorAppearanceVariants/Angular/app/app.component.ts b/apps/demos/Demos/Common/EditorAppearanceVariants/Angular/app/app.component.ts index 5ae29bae6e3..a04575bbbd4 100644 --- a/apps/demos/Demos/Common/EditorAppearanceVariants/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/EditorAppearanceVariants/Angular/app/app.component.ts @@ -21,7 +21,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/EditorsOverview/Angular/app/app.component.ts b/apps/demos/Demos/Common/EditorsOverview/Angular/app/app.component.ts index 23ffb16bdad..1b489040df9 100644 --- a/apps/demos/Demos/Common/EditorsOverview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/EditorsOverview/Angular/app/app.component.ts @@ -15,7 +15,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/EditorsRightToLeftSupport/Angular/app/app.component.ts b/apps/demos/Demos/Common/EditorsRightToLeftSupport/Angular/app/app.component.ts index 9528d325cb5..7ed498028f3 100644 --- a/apps/demos/Demos/Common/EditorsRightToLeftSupport/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/EditorsRightToLeftSupport/Angular/app/app.component.ts @@ -20,7 +20,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/FormsAndMultiPurposeOverview/Angular/app/app.component.ts b/apps/demos/Demos/Common/FormsAndMultiPurposeOverview/Angular/app/app.component.ts index 30cee0b9a6e..a92972febcb 100644 --- a/apps/demos/Demos/Common/FormsAndMultiPurposeOverview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/FormsAndMultiPurposeOverview/Angular/app/app.component.ts @@ -16,7 +16,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/NavigationOverview/Angular/app/app.component.ts b/apps/demos/Demos/Common/NavigationOverview/Angular/app/app.component.ts index c2139898476..64a642decb0 100644 --- a/apps/demos/Demos/Common/NavigationOverview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/NavigationOverview/Angular/app/app.component.ts @@ -18,7 +18,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/Common/NavigationRightToLeftSupport/Angular/app/app.component.ts b/apps/demos/Demos/Common/NavigationRightToLeftSupport/Angular/app/app.component.ts index e0d1eec7704..c01df5fe8cf 100644 --- a/apps/demos/Demos/Common/NavigationRightToLeftSupport/Angular/app/app.component.ts +++ b/apps/demos/Demos/Common/NavigationRightToLeftSupport/Angular/app/app.component.ts @@ -18,7 +18,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ContextMenu/Basics/Angular/app/app.component.ts b/apps/demos/Demos/ContextMenu/Basics/Angular/app/app.component.ts index d98bdc36acf..7e1cc0f2a0b 100644 --- a/apps/demos/Demos/ContextMenu/Basics/Angular/app/app.component.ts +++ b/apps/demos/Demos/ContextMenu/Basics/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!document.location.host.includes('localhost')) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ContextMenu/Scrolling/Angular/app/app.component.ts b/apps/demos/Demos/ContextMenu/Scrolling/Angular/app/app.component.ts index 98d099694f6..16b0d9b6231 100644 --- a/apps/demos/Demos/ContextMenu/Scrolling/Angular/app/app.component.ts +++ b/apps/demos/Demos/ContextMenu/Scrolling/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!document.location.host.includes('localhost')) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/ContextMenu/Templates/Angular/app/app.component.ts b/apps/demos/Demos/ContextMenu/Templates/Angular/app/app.component.ts index 450dec460f3..4370b0d7377 100644 --- a/apps/demos/Demos/ContextMenu/Templates/Angular/app/app.component.ts +++ b/apps/demos/Demos/ContextMenu/Templates/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!document.location.host.includes('localhost')) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/app.component.ts index de863b5af4c..a4955015f26 100644 --- a/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/detail-view/detail-view.component.ts b/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/detail-view/detail-view.component.ts index aa633de9a1d..29336e27c0d 100644 --- a/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/detail-view/detail-view.component.ts +++ b/apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/detail-view/detail-view.component.ts @@ -6,14 +6,14 @@ import { DxSelectBoxTypes } from 'devextreme-angular/ui/select-box'; let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } @Component({ selector: 'detail-view', - templateUrl: `.${modulePrefix}/detail-view/detail-view.component.html`, - styleUrls: [`.${modulePrefix}/detail-view/detail-view.component.css`], + templateUrl: `.${modulePrefix && (modulePrefix + '/detail-view')}/detail-view.component.html`, + styleUrls: [`.${modulePrefix && (modulePrefix + '/detail-view')}/detail-view.component.css`], providers: [], }) export class DetailViewComponent implements AfterViewInit { diff --git a/apps/demos/Demos/DataGrid/AjaxRequest/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/AjaxRequest/Angular/app/app.component.ts index 756f8215065..0c698326ba4 100644 --- a/apps/demos/Demos/DataGrid/AjaxRequest/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/AjaxRequest/Angular/app/app.component.ts @@ -9,7 +9,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/Appearance/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/Appearance/Angular/app/app.component.ts index 2a5e6e74335..9bb566e1fa1 100644 --- a/apps/demos/Demos/DataGrid/Appearance/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/Appearance/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/BatchEditing/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/BatchEditing/Angular/app/app.component.ts index cf36c9e3efc..7c551302278 100644 --- a/apps/demos/Demos/DataGrid/BatchEditing/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/BatchEditing/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts index 6d3e88f1bef..32e74b5e1d1 100644 --- a/apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts @@ -14,7 +14,7 @@ const URL = 'https://js.devexpress.com/Demos/Mvc/api/DataGridBatchUpdateWebApi'; let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CRUDOperations/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CRUDOperations/Angular/app/app.component.ts index 07fbd6084b2..e7ff6391fda 100644 --- a/apps/demos/Demos/DataGrid/CRUDOperations/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CRUDOperations/Angular/app/app.component.ts @@ -15,7 +15,7 @@ const URL = 'https://js.devexpress.com/Demos/Mvc/api/DataGridWebApi'; let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CascadingLookups/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CascadingLookups/Angular/app/app.component.ts index 2639877c60f..fa172a38c46 100644 --- a/apps/demos/Demos/DataGrid/CascadingLookups/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CascadingLookups/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CellCustomization/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CellCustomization/Angular/app/app.component.ts index a482228068d..d9a61780045 100644 --- a/apps/demos/Demos/DataGrid/CellCustomization/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CellCustomization/Angular/app/app.component.ts @@ -16,7 +16,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CellEditingAndEditingAPI/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CellEditingAndEditingAPI/Angular/app/app.component.ts index c9448bd7757..f108554f0ca 100644 --- a/apps/demos/Demos/DataGrid/CellEditingAndEditingAPI/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CellEditingAndEditingAPI/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CollaborativeEditing/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CollaborativeEditing/Angular/app/app.component.ts index f9f7a8a428e..6883adfdd2c 100644 --- a/apps/demos/Demos/DataGrid/CollaborativeEditing/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CollaborativeEditing/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ColumnChooser/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ColumnChooser/Angular/app/app.component.ts index 9bf9047ec0d..b98288700f1 100644 --- a/apps/demos/Demos/DataGrid/ColumnChooser/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ColumnChooser/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ColumnHeaderFilter/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ColumnHeaderFilter/Angular/app/app.component.ts index b623eae0bd9..20a6fcadc71 100644 --- a/apps/demos/Demos/DataGrid/ColumnHeaderFilter/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ColumnHeaderFilter/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ColumnReordering/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ColumnReordering/Angular/app/app.component.ts index 1c4346fe91f..5f5b220be54 100644 --- a/apps/demos/Demos/DataGrid/ColumnReordering/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ColumnReordering/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ColumnResizing/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ColumnResizing/Angular/app/app.component.ts index 25150de529d..ffa5416fb80 100644 --- a/apps/demos/Demos/DataGrid/ColumnResizing/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ColumnResizing/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ColumnTemplate/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ColumnTemplate/Angular/app/app.component.ts index 7ef9d83bb3e..feeffe77c4d 100644 --- a/apps/demos/Demos/DataGrid/ColumnTemplate/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ColumnTemplate/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ColumnsBasedOnADataSource/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ColumnsBasedOnADataSource/Angular/app/app.component.ts index bba80383500..15a066144fd 100644 --- a/apps/demos/Demos/DataGrid/ColumnsBasedOnADataSource/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ColumnsBasedOnADataSource/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CommandColumnCustomization/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CommandColumnCustomization/Angular/app/app.component.ts index 8d2135b3115..e271ebc85c5 100644 --- a/apps/demos/Demos/DataGrid/CommandColumnCustomization/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CommandColumnCustomization/Angular/app/app.component.ts @@ -12,7 +12,7 @@ type FirstArgument = T extends (...args: any) => any ? Parameters[0]: neve let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CustomDataSource/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CustomDataSource/Angular/app/app.component.ts index 3154cdd5500..2fba17a9a06 100644 --- a/apps/demos/Demos/DataGrid/CustomDataSource/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CustomDataSource/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CustomEditors/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CustomEditors/Angular/app/app.component.ts index f1255925573..aea35334cb2 100644 --- a/apps/demos/Demos/DataGrid/CustomEditors/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CustomEditors/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CustomNewRecordPosition/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CustomNewRecordPosition/Angular/app/app.component.ts index 00f6be76b6e..df695cd0385 100644 --- a/apps/demos/Demos/DataGrid/CustomNewRecordPosition/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CustomNewRecordPosition/Angular/app/app.component.ts @@ -15,7 +15,7 @@ type FirstArgument = T extends (...args: any) => any ? Parameters[0]: neve let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CustomSummaries/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CustomSummaries/Angular/app/app.component.ts index 199f936b4b0..5f3d4e372ba 100644 --- a/apps/demos/Demos/DataGrid/CustomSummaries/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CustomSummaries/Angular/app/app.component.ts @@ -10,7 +10,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/CustomizeKeyboardNavigation/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/CustomizeKeyboardNavigation/Angular/app/app.component.ts index 85c23558a86..46ae96e59f9 100644 --- a/apps/demos/Demos/DataGrid/CustomizeKeyboardNavigation/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/CustomizeKeyboardNavigation/Angular/app/app.component.ts @@ -11,7 +11,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/DataValidation/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/DataValidation/Angular/app/app.component.ts index 8b2abfe0c84..245b231cc63 100644 --- a/apps/demos/Demos/DataGrid/DataValidation/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/DataValidation/Angular/app/app.component.ts @@ -13,7 +13,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/DeferredSelection/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/DeferredSelection/Angular/app/app.component.ts index 8279d9dfe62..6fdca3e30fb 100644 --- a/apps/demos/Demos/DataGrid/DeferredSelection/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/DeferredSelection/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/DnDBetweenGrids/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/DnDBetweenGrids/Angular/app/app.component.ts index 61ed32a3fb9..7b3fe84ce81 100644 --- a/apps/demos/Demos/DataGrid/DnDBetweenGrids/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/DnDBetweenGrids/Angular/app/app.component.ts @@ -12,7 +12,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/EditStateManagement/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/EditStateManagement/Angular/app/app.component.ts index b602714ba1a..1d823b82a66 100644 --- a/apps/demos/Demos/DataGrid/EditStateManagement/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/EditStateManagement/Angular/app/app.component.ts @@ -15,7 +15,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ExcelJSCellCustomization/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ExcelJSCellCustomization/Angular/app/app.component.ts index 2cf4dd2cf51..26458563464 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSCellCustomization/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ExcelJSCellCustomization/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ExcelJSExportImages/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ExcelJSExportImages/Angular/app/app.component.ts index fd41ce45333..f2cc5f85294 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSExportImages/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ExcelJSExportImages/Angular/app/app.component.ts @@ -14,7 +14,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ExcelJSExportMultipleGrids/Angular/app/app.component.ts b/apps/demos/Demos/DataGrid/ExcelJSExportMultipleGrids/Angular/app/app.component.ts index 202e2d3336d..2a78e47646c 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSExportMultipleGrids/Angular/app/app.component.ts +++ b/apps/demos/Demos/DataGrid/ExcelJSExportMultipleGrids/Angular/app/app.component.ts @@ -18,7 +18,7 @@ if (!/localhost/.test(document.location.host)) { let modulePrefix = ''; // @ts-ignore -if (window && window.config.packageConfigPaths) { +if (window && window.config?.packageConfigPaths) { modulePrefix = '/app'; } diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.css b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.css index 83672d4146a..6de8c74885b 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.css +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.css @@ -4,7 +4,7 @@ line-height: 0; } -::ng-deep .long-title h3 { +::ng-deep #long-title h3 { font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana; font-weight: 200; font-size: 28px; diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.html b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.html index 14c7c760064..c82812c9752 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.html +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Angular/app/app.component.html @@ -1,4 +1,4 @@ -
+

Country Area, Population, and GDP Structure

{ }; const App = () => ( +<> +
+

Country Area, Population, and GDP Structure

+
+ > @@ -59,12 +63,12 @@ const App = () => ( dataField="Population_Total" caption="Total" format="fixedPoint" - /> + /> + /> ( caption="Total, mln $" format="fixedPoint" sortOrder="desc" - /> + /> + /> + /> + /> + ); export default App; diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/index.html b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/index.html index 56fa18b87e3..ee451f8288f 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/index.html +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/index.html @@ -18,9 +18,6 @@
-
-

Country Area, Population, and GDP Structure

-
diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/styles.css b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/styles.css index a144f7f8959..ef198cf478c 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/styles.css +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/React/styles.css @@ -4,7 +4,7 @@ line-height: 0; } -.long-title h3 { +#long-title h3 { font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana; font-weight: 200; font-size: 28px; diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/App.js b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/App.js index 8a265746fad..37121a49a35 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/App.js +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/App.js @@ -37,56 +37,61 @@ const onExporting = (e) => { }); }; const App = () => ( - - + +
+

Country Area, Population, and GDP Structure

+
+ + - - - - - - - - - + + + + + + + + + + - - +
+ ); export default App; diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/index.html b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/index.html index fd481bea07a..db31b0fd60c 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/index.html +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/index.html @@ -38,9 +38,6 @@
-
-

Country Area, Population, and GDP Structure

-
diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/styles.css b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/styles.css index a144f7f8959..ef198cf478c 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/styles.css +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/ReactJs/styles.css @@ -4,7 +4,7 @@ line-height: 0; } -.long-title h3 { +#long-title h3 { font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana; font-weight: 200; font-size: 28px; diff --git a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Vue/App.vue b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Vue/App.vue index 3faef47dfc9..1b8d0f76e27 100644 --- a/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Vue/App.vue +++ b/apps/demos/Demos/DataGrid/ExcelJSHeaderAndFooter/Vue/App.vue @@ -1,4 +1,7 @@