diff --git a/.github/actions/deploy-to-netlify/action.yaml b/.github/actions/deploy-to-netlify/action.yaml deleted file mode 100644 index 0072f6fbcc..0000000000 --- a/.github/actions/deploy-to-netlify/action.yaml +++ /dev/null @@ -1,51 +0,0 @@ -### -# -# DEPRECATED: This Action can be removed, as soon as we remove deploy-demo.yaml -# -### - -name: Deploy to Netlify -description: Deploys dist folder to Netlify. Make sure you set up node and pnpm before! - -inputs: - id: - description: The build id - required: true - netlify_auth_token: - description: Netlify personal-access-token for use in shell scripts and API access. - required: true - netlify_site_id: - description: Netlify site-id - required: true - netlify_site_url: - description: The netlify base-url (incl. subdomain) - folder: - description: Path to the folder to deploy - required: true - package_name: - description: The package that will be deployed - required: true - -outputs: - preview-url: - description: The deployed preview url. - value: https://${{ steps.netlify_deploy.outputs.url_alias }}--${{ inputs.netlify_site_url }} - -runs: - using: composite - steps: - - name: Install netlify-cli - shell: bash - run: pnpm i -g netlify-cli@16 - - - name: Deploy preview environment to netlify - id: netlify_deploy - shell: bash - env: - NETLIFY_AUTH_TOKEN: ${{ inputs.netlify_auth_token }} - NETLIFY_SITE_ID: ${{ inputs.netlify_site_id }} - # run command taken from https://gist.github.com/oneohthree/f528c7ae1e701ad990e6, shortened to 28 chars, prepended with build-number - run: | - url_alias=`echo "preview-${{ inputs.id }}" | iconv -t ascii//TRANSLIT | sed -E 's/[~\^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+\|-+$//g' | sed -E 's/^-+//g' | sed -E 's/-+$//g' | tr A-Z a-z` - echo "url_alias=$url_alias" >> $GITHUB_OUTPUT - netlify deploy --filter ${{inputs.package_name}} --build false --dir ${{ inputs.folder }} --alias $url_alias diff --git a/.github/workflows/build-demo.yaml b/.github/workflows/build-demo.yaml deleted file mode 100644 index 1d8c7b52be..0000000000 --- a/.github/workflows/build-demo.yaml +++ /dev/null @@ -1,43 +0,0 @@ -### -# -# DEPRECATED: This Action can be removed as soon as we start working on V2/V9 -# -### - -name: Build Demo App -on: - pull_request: - types: [opened, synchronize, edited, reopened] - paths: - - 'packages/intranet-header-workspace/**' - - 'packages/demo/**' - - 'packages/styles/src/**' - - 'packages/styles/*' - - '!packages/styles/jest.*' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Create preview message - uses: ./.github/actions/preview/message/create - with: - access-token: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }} - - - name: Setup - uses: ./.github/actions/setup-pnpm - - - name: Bootstrap & Build Design System - run: | - pnpm --filter design-system-demo... install - pnpm --filter design-system-demo... build - - - name: Upload build artifacts - uses: ./.github/actions/artifact-upload - with: - name: design-system-demo - folder: packages/demo/dist/demo diff --git a/.github/workflows/deploy-demo.yaml b/.github/workflows/deploy-demo.yaml deleted file mode 100644 index c2ae152420..0000000000 --- a/.github/workflows/deploy-demo.yaml +++ /dev/null @@ -1,51 +0,0 @@ -### -# -# DEPRECATED: This Action can be removed as soon as we start working on V2/V9 -# -### - -name: Deploy Demo App Preview to Netlify -on: - workflow_run: - workflows: ['Build Demo App'] - types: - - completed - -jobs: - deploy: - runs-on: ubuntu-latest - if: > - ${{ github.event.workflow_run.event == 'pull_request' && - github.event.workflow_run.conclusion == 'success' }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup-pnpm - - - name: Download build artifacts - uses: ./.github/actions/artifact-download - id: build - with: - name: design-system-demo - folder: build-output - - - name: Deploy demo app to netlify - uses: ./.github/actions/deploy-to-netlify - id: deploy - with: - id: ${{ steps.build.outputs.id }} - netlify_auth_token: ${{ secrets.NETLIFY_AUTH_TOKEN }} - netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }} - netlify_site_url: swisspost-web-frontend.netlify.app - folder: ${{ steps.build.outputs.folder }} - package_name: '@swisspost/design-system-demo' - - - name: Update preview message - uses: ./.github/actions/preview/message/update - with: - access-token: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }} - issue-number: ${{ steps.build.outputs.id }} - preview-url: ${{ steps.deploy.outputs.preview-url }} diff --git a/.github/workflows/release-demo.yaml b/.github/workflows/release-demo.yaml deleted file mode 100644 index 095ab47e5f..0000000000 --- a/.github/workflows/release-demo.yaml +++ /dev/null @@ -1,59 +0,0 @@ -### -# -# DEPRECATED: This Action can be removed as soon as we start working on V2/V9 -# -### - -name: Release Demo App to Netlify - -on: - push: - branches: - - main - paths: - - 'packages/demo/package.json' - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - release: - name: Release demo - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Check if version has changed - id: check # This will be the reference for getting the outputs. - uses: EndBug/version-check@v2 # You can choose the version/branch you prefer. - with: - file-name: ./packages/demo/package.json - diff-search: true - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Setup - if: steps.check.outputs.changed == 'true' - uses: ./.github/actions/setup-pnpm - - # Install changesets locally - - name: Install demo app & dependencies - if: steps.check.outputs.changed == 'true' - run: pnpm --filter "design-system-demo..." install - - # Build the demo app and it's dependencies - - name: Build demo app & dependencies - if: steps.check.outputs.changed == 'true' - run: pnpm --filter "design-system-demo..." build - - - name: Install netlify cli - if: steps.check.outputs.changed == 'true' - run: pnpm -g i netlify-cli@16 - - # Publish demo only if changesets published any packages - - name: Publish demo app to netlify - id: netlify - if: steps.check.outputs.changed == 'true' - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - run: netlify deploy --filter @swisspost/design-system-demo --build false --dir packages/demo/dist/demo --prod diff --git a/package.json b/package.json index 420767e2c7..dd6dc8fb92 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,6 @@ "e2e": "start-server-and-test docs:headless 9001 'pnpm -r --stream e2e'", "e2e:ci": "start-server-and-test docs:headless 9001 'pnpm --filter \"...[origin/main]\" --stream e2e:ci'", "snapshots": "start-server-and-test 'pnpm docs:headless' 9001 'pnpm --filter design-system-documentation snapshots'", - "demo": "pnpm demo:start", - "demo:start": "pnpm --filter design-system-demo... --parallel --stream start", - "demo:build": "pnpm --filter design-system-demo build", - "demo:lint": "pnpm --filter design-system-demo lint", "docs": "pnpm docs:start", "docs:only": "pnpm --filter design-system-documentation start", "docs:start": "pnpm --filter design-system-tokens build && pnpm --filter design-system-documentation... --parallel --stream start", diff --git a/packages/demo/.browserslistrc b/packages/demo/.browserslistrc deleted file mode 100644 index fc36a98c36..0000000000 --- a/packages/demo/.browserslistrc +++ /dev/null @@ -1,17 +0,0 @@ -# Swiss Post Browsersupport - -# https://web.post.ch/postweb/-/media/Corp/Intranet/Service-Portal/Kommunikation/Digital/Onlineredaktion/Dokumente/Browserunterst%C3%BCtzung.PDF - -# This file configures autoprefixer used in the build script - -# Docs: https://github.com/browserslist/browserslist - -last 2 Chrome versions -last 2 Firefox versions -last 2 Edge versions -last 2 Safari versions -last 2 iOS versions -last 2 ChromeAndroid versions -last 2 Samsung versions -> 2% -not dead \ No newline at end of file diff --git a/packages/demo/.editorconfig b/packages/demo/.editorconfig deleted file mode 100644 index 6e87a003da..0000000000 --- a/packages/demo/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/packages/demo/.eslintrc.js b/packages/demo/.eslintrc.js deleted file mode 100644 index 8cdb7af815..0000000000 --- a/packages/demo/.eslintrc.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = { - root: true, - ignorePatterns: ['.eslintrc.js', 'dist', '.angular'], - overrides: [ - { - files: ['*.ts'], - parserOptions: { - project: ['tsconfig.json'], - tsconfigRootDir: __dirname, - createDefaultProgram: true, - }, - extends: [ - 'plugin:@angular-eslint/recommended', - 'plugin:@angular-eslint/template/process-inline-templates', - ], - rules: { - '@angular-eslint/directive-selector': [ - 'error', - { - type: 'attribute', - prefix: 'app', - style: 'camelCase', - }, - ], - '@angular-eslint/component-selector': [ - 'error', - { - type: 'element', - prefix: 'app', - style: 'kebab-case', - }, - ], - }, - }, - { - files: ['*.html'], - extends: ['plugin:@angular-eslint/template/recommended'], - rules: {}, - }, - ], -}; diff --git a/packages/demo/.gitignore b/packages/demo/.gitignore deleted file mode 100644 index 84c8d4f093..0000000000 --- a/packages/demo/.gitignore +++ /dev/null @@ -1,40 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -/dist -/tmp -/out-tsc - -# dependencies -/node_modules - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json - -# misc -/.angular/cache -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -yarn-error.log -testem.log -/typings - -# System Files -.DS_Store -Thumbs.db diff --git a/packages/demo/CHANGELOG.md b/packages/demo/CHANGELOG.md deleted file mode 100644 index 75cae824e0..0000000000 --- a/packages/demo/CHANGELOG.md +++ /dev/null @@ -1,680 +0,0 @@ -# @swisspost/design-system-demo - -## 8.0.3-next.0 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@9.0.0-next.0 - - @swisspost/design-system-intranet-header@9.0.0-next.0 - - @swisspost/design-system-migrations@9.0.0-next.0 - -## 8.0.2 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@8.2.0 - - @swisspost/design-system-intranet-header@8.2.0 - - @swisspost/design-system-migrations@8.2.0 - -## 8.0.1 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@8.1.0 - - @swisspost/design-system-intranet-header@8.1.0 - - @swisspost/design-system-migrations@8.1.0 - -## 8.0.0 - -### Major Changes - -- Upgraded to Angular 18 (by [@gfellerph](https://github.com/gfellerph) with [#3243](https://github.com/swisspost/design-system/pull/3243)) - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@8.0.0 - - @swisspost/design-system-intranet-header@8.0.0 - - @swisspost/design-system-migrations@8.0.0 - -## 7.3.6 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@7.4.0 - - @swisspost/design-system-intranet-header@7.4.0 - - @swisspost/design-system-migrations@7.4.0 - -## 7.3.5 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@7.3.1 - - @swisspost/design-system-intranet-header@7.3.1 - - @swisspost/design-system-migrations@7.3.1 - -## 7.3.4 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@7.3.0 - - @swisspost/design-system-intranet-header@7.3.0 - - @swisspost/design-system-migrations@7.3.0 - -## 7.3.3 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@7.2.1 - - @swisspost/design-system-intranet-header@7.2.1 - - @swisspost/design-system-migrations@7.2.1 - -## 7.3.2 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@7.2.0 - - @swisspost/design-system-intranet-header@7.2.0 - - @swisspost/design-system-migrations@7.2.0 - -## 7.3.1 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@7.1.0 - - @swisspost/design-system-intranet-header@7.1.0 - - @swisspost/design-system-migrations@7.1.0 - -## 7.3.0 - -### Minor Changes - -- Changed mobile navigation trigger to make it more accessible by default using a button element. (by [@imagoiq](https://github.com/imagoiq) with [#2834](https://github.com/swisspost/design-system/pull/2834)) - -### Patch Changes - -- Updated instructions to run the automated migrations from the migration package. (by [@alizedebray](https://github.com/alizedebray) with [#2783](https://github.com/swisspost/design-system/pull/2783)) - -- Fixed display of version switcher with new versions.json file. (by [@imagoiq](https://github.com/imagoiq) with [#2838](https://github.com/swisspost/design-system/pull/2838)) - -- Refactored brand colors. Renamed `$gray-background` SCSS variable to `$gray` and removed `$gray-background-light` variable because it is a duplication of the already existing variable `$light`. - Updated the usage of said variables in dependant packages accordingly. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#2861](https://github.com/swisspost/design-system/pull/2861)) - -- Changed references from https://next.design-system.post.ch to https://design-system.post.ch after the migration of Storybook, which is now our main documentation (by [@gfellerph](https://github.com/gfellerph) with [#2802](https://github.com/swisspost/design-system/pull/2802)) - -- Updated Sass color variables: - Removed variables `$success-green`, `$error-red`, `$warning-orange`, `$success-text`, `$error-text`, `$danger` as well as the Sass map `$contextual-colors`. - Instead use the variables `$success`, `$error`, `$warning` and the Sass map `$signal-colors`. - - - Updated the Sass map `$signal-colors` keys and added a new Sass map `$signal-background-colors`. - - Updated the Sass map `$background-colors` and all the dependant packages accordingly. - - With the exception of the components `notification`, `toast` and `tag`, there is no component providing a `danger` variant anymore. Instead use the `error` variant. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#2861](https://github.com/swisspost/design-system/pull/2861)) - -- Updated Angular to version 17. (by [@alizedebray](https://github.com/alizedebray) with [#2760](https://github.com/swisspost/design-system/pull/2760)) -- Updated dependencies: - - @swisspost/design-system-styles@7.0.0 - - @swisspost/design-system-migrations@7.0.0 - - @swisspost/design-system-intranet-header@7.0.0 - -## 7.2.4 - -### Patch Changes - -- Fixed broken links. (by [@alizedebray](https://github.com/alizedebray) with [#2756](https://github.com/swisspost/design-system/pull/2756)) -- Updated dependencies: - - @swisspost/design-system-styles@6.6.4 - - @swisspost/design-system-intranet-header@5.0.11 - -## 7.2.3 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.6.3 - - @swisspost/design-system-intranet-header@5.0.10 - -## 7.2.2 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.6.2 - - @swisspost/design-system-intranet-header@5.0.9 - -## 7.2.1 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.6.1 - - @swisspost/design-system-intranet-header@5.0.8 - -## 7.2.0 - -### Minor Changes - -- Added internationalization guidelines for the following ng-bootstrap components: alert, carousel, datepicker, pagination, and timepicker. (by [@alizedebray](https://github.com/alizedebray) with [#2517](https://github.com/swisspost/design-system/pull/2517)) - -### Patch Changes - -- Updated copyright year to 2024 in the footer of all documentation. (by [@imagoiq](https://github.com/imagoiq) with [#2491](https://github.com/swisspost/design-system/pull/2491)) - -- Fixed links to new icons documentation. (by [@imagoiq](https://github.com/imagoiq) with [#2402](https://github.com/swisspost/design-system/pull/2402)) -- Updated dependencies: - - @swisspost/design-system-styles@6.6.0 - - @swisspost/design-system-intranet-header@5.0.7 - -## 7.1.2 - -### Patch Changes - -- Documented how to translate specific labels on the ng-bootstrap datepicker. (by [@imagoiq](https://github.com/imagoiq) with [#2315](https://github.com/swisspost/design-system/pull/2315)) -- Updated dependencies: - - @swisspost/design-system-styles@6.5.1 - - @swisspost/design-system-intranet-header@5.0.6 - -## 7.1.1 - -### Patch Changes - -- Updated ng-bootstrap component-based accordion example in favor of the directive-based implementation. (by [@gfellerph](https://github.com/gfellerph) with [#2368](https://github.com/swisspost/design-system/pull/2368)) - -- Deprecated Bootstrap accordions in favor of the post-accordion web component. (by [@alizedebray](https://github.com/alizedebray) with [#2310](https://github.com/swisspost/design-system/pull/2310)) - -- Update the commands to run the Design System migrations. (by [@alizedebray](https://github.com/alizedebray) with [#2270](https://github.com/swisspost/design-system/pull/2270)) -- Updated dependencies: - - @swisspost/design-system-styles@6.5.0 - - @swisspost/design-system-intranet-header@5.0.5 - -## 7.1.0 - -### Minor Changes - -- Added link to new documentation (by [@davidritter-dotcom](https://github.com/davidritter-dotcom) with [#2142](https://github.com/swisspost/design-system/pull/2142)) - -- Deprecated standard HTML alerts with a close button in favor of the `post-alert` component designed to correctly handle the dismissal animation. (by [@b1aserlu](https://github.com/b1aserlu) with [#2239](https://github.com/swisspost/design-system/pull/2239)) - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.4.4 - -## 7.0.4 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.4.4 - - @swisspost/design-system-intranet-header@5.0.4 - -## 7.0.3 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.4.3 - - @swisspost/design-system-intranet-header@5.0.3 - -## 7.0.2 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.4.2 - - @swisspost/design-system-intranet-header@5.0.2 - -## 7.0.1 - -### Patch Changes - -- Updated the installation intructions for the Intranet Header. (by [@alizedebray](https://github.com/alizedebray) with [#1942](https://github.com/swisspost/design-system/pull/1942)) - -- Added deprecation alerts for `.form-control-rg`, `.form-control-md`, `.form-select-rg` and `.form-select-md` form-control variants. (by [@b1aserlu](https://github.com/b1aserlu) with [#1882](https://github.com/swisspost/design-system/pull/1882)) - -- Fixed ngBootstrap documentation links. (by [@imagoiq](https://github.com/imagoiq) with [#1987](https://github.com/swisspost/design-system/pull/1987)) -- Updated dependencies: - - @swisspost/design-system-intranet-header@5.0.1 - - @swisspost/design-system-styles@6.4.1 - -## 7.0.0 - -### Major Changes - -- Upgraded major version of Angular from v15 to v16. (by [@imagoiq](https://github.com/imagoiq) with [#1920](https://github.com/swisspost/design-system/pull/1920)) - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-intranet-header@5.0.0 - - @swisspost/design-system-styles@6.4.0 - -## 6.1.2 - -### Patch Changes - -- Patched the documentation release workflow (by [@gfellerph](https://github.com/gfellerph) with [#1896](https://github.com/swisspost/design-system/pull/1896)) - -## 6.1.1 - -### Patch Changes - -- Added the attribute type="button" to the datepicker to prevent submitting a form on click when the datepicker is directly integrated as shown on the demo page. (by [@b1aserlu](https://github.com/b1aserlu) with [#1856](https://github.com/swisspost/design-system/pull/1856)) - -- Deprecated the `.pi-calendar` class in favor of the `.pi-3203` class to display the calendar icon in the datepicker. (by [@alizedebray](https://github.com/alizedebray) with [#1806](https://github.com/swisspost/design-system/pull/1806)) -- Updated dependencies: - - @swisspost/design-system-styles@6.4.0 - - @swisspost/design-system-intranet-header@4.0.10 - -## 6.1.0 - -### Minor Changes - -- Added a gray notification variant for cookie banners. (by [@alizedebray](https://github.com/alizedebray) with [#1350](https://github.com/swisspost/design-system/pull/1350)) - -### Patch Changes - -- Stepper: Remove interactivity on inactive next steps. (by [@imagoiq](https://github.com/imagoiq) with [#1646](https://github.com/swisspost/design-system/pull/1646)) -- Updated dependencies: - - @swisspost/design-system-styles@6.3.0 - - @swisspost/design-system-intranet-header@4.0.9 - -## 6.0.8 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.2.6 - - @swisspost/design-system-intranet-header@4.0.8 - -## 6.0.7 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.2.5 - - @swisspost/design-system-intranet-header@4.0.7 - -## 6.0.6 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.2.4 - - @swisspost/design-system-intranet-header@4.0.6 - -## 6.0.5 - -### Patch Changes - -- Fixed broken links to the storybook documentation. (by [@alizedebray](https://github.com/alizedebray) with [#1514](https://github.com/swisspost/design-system/pull/1514)) - -- Updated the link in the demo app, to the internet-header documentation. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#1528](https://github.com/swisspost/design-system/pull/1528)) -- Updated dependencies: - - @swisspost/design-system-styles@6.2.3 - - @swisspost/design-system-intranet-header@4.0.5 - -## 6.0.4 - -### Patch Changes - -- Update migration guide with installation instructions for precise major versions. (by [@gfellerph](https://github.com/gfellerph) with [#1473](https://github.com/swisspost/design-system/pull/1473)) - -- Updated the version selector to correctly display the current demo version. (by [@alizedebray](https://github.com/alizedebray) with [#1502](https://github.com/swisspost/design-system/pull/1502)) - -- Fixed a regression for the stepper component. Completed items should be links with a href attribute (or a routerLink in Angular) so users can navigate back to previous steps. (by [@gfellerph](https://github.com/gfellerph) with [#1497](https://github.com/swisspost/design-system/pull/1497)) - -- Added a simple click listener for the stepper. It's now possible to click through the steps for testing purposes. (by [@gfellerph](https://github.com/gfellerph) with [#1317](https://github.com/swisspost/design-system/pull/1317)) -- Updated dependencies: - - @swisspost/design-system-styles@6.2.2 - - @swisspost/design-system-intranet-header@4.0.4 - -## 6.0.3 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.2.1 - - @swisspost/design-system-intranet-header@4.0.3 - -## 6.0.2 - -### Patch Changes - -- Updated the favicon and app-icons in the demo-app and the storybook documentation. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#1351](https://github.com/swisspost/design-system/pull/1351)) -- Updated dependencies: - - @swisspost/design-system-styles@6.2.0 - - @swisspost/design-system-intranet-header@4.0.2 - -## 6.0.1 - -### Patch Changes - -- Updated the documentation for tooltips regarding the "auto" placement option which can be used to place the tooltip where it fits if there is not enough space for the initial placement. (by [@gfellerph](https://github.com/gfellerph) with [#1288](https://github.com/swisspost/design-system/pull/1288)) - -- Added examples of button groups using reactive forms and having an option disabled. (by [@alizedebray](https://github.com/alizedebray) with [#1307](https://github.com/swisspost/design-system/pull/1307)) - -- Fixed the favicon and app-icon setup. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#1296](https://github.com/swisspost/design-system/pull/1296)) -- Updated dependencies: - - @swisspost/design-system-styles@6.1.0 - - @swisspost/design-system-intranet-header@4.0.1 - -## 6.0.0 - -### Major Changes - -- Removed documentation entry for the paragraph as duplicate, it's already documented under Typography (by [@gfellerph](https://github.com/gfellerph) with [#1238](https://github.com/swisspost/design-system/pull/1238)) - -- Updated the markup for the stepper component in order to improve accessibility. Completed items now require the prefix "Complete" and incomplete steps are no longer links. (by [@gfellerph](https://github.com/gfellerph) with [#1232](https://github.com/swisspost/design-system/pull/1232)) - -- Major dependency update. The following versions are now supported: - - Angular 15 - - Bootstrap 5.2.3 - - ng-bootstrap 14 (by [@gfellerph](https://github.com/gfellerph) with [#1210](https://github.com/swisspost/design-system/pull/1210)) - -### Minor Changes - -- Removed deprecated ng-bootstrap Checkbox and Radio buttons and replaced them with Bootstrap button groups. (by [@alizedebray](https://github.com/alizedebray) with [#1199](https://github.com/swisspost/design-system/pull/1199)) - -- Added a version switch to the header to keep documentation for older versions available. (by [@gfellerph](https://github.com/gfellerph) with [#1241](https://github.com/swisspost/design-system/pull/1241)) - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@6.0.0 - - @swisspost/design-system-intranet-header@4.0.0 - -## 5.3.1 - -### Patch Changes - -- Reverted the update to Bootstrap 5.2 and Angular 15. This update should have been a major release and will be re-released as such as soon as possible. (by [@gfellerph](https://github.com/gfellerph) with [#1207](https://github.com/swisspost/design-system/pull/1207)) -- Updated dependencies: - - @swisspost/design-system-intranet-header@3.1.1 - - @swisspost/design-system-styles@5.4.1 - -## 5.3.0 - -### Minor Changes - -- Major dependency update. The following versions are now supported: - - Angular 15 - - Bootstrap 5.2.3 - - ng-bootstrap 14 (by [@oliverschuerch](https://github.com/oliverschuerch) with [#1146](https://github.com/swisspost/design-system/pull/1146)) - -### Patch Changes - -- Updated the angular version in the migration guide. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#1189](https://github.com/swisspost/design-system/pull/1189)) -- Updated dependencies: - - @swisspost/design-system-intranet-header@3.1.0 - - @swisspost/design-system-styles@5.4.0 - -## 5.2.3 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@5.3.2 - - @swisspost/design-system-intranet-header@3.0.8 - -## 5.2.2 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-intranet-header@3.0.7 - - @swisspost/design-system-styles@5.3.1 - -## 5.2.1 - -### Patch Changes - -- Added link to the new internet header documentation (by [@gfellerph](https://github.com/gfellerph) with [#1045](https://github.com/swisspost/design-system/pull/1045)) - -## 5.2.0 - -### Minor Changes - -- Added two new icons number 2307 (roll container) and 2308 (collection container) (by [@gfellerph](https://github.com/gfellerph) with [#977](https://github.com/swisspost/design-system/pull/977)) - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@5.3.0 - - @swisspost/design-system-intranet-header@3.0.6 - -## 5.1.5 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@5.2.0 - - @swisspost/design-system-intranet-header@3.0.5 - -## 5.1.4 - -### Patch Changes - -- Added import instructions to the intranet-header documentation (by [@riscie](https://github.com/riscie) with [#812](https://github.com/swisspost/design-system/pull/812)) -- Updated dependencies: - - @swisspost/design-system-styles@5.1.3 - - @swisspost/design-system-intranet-header@3.0.4 - -## 5.1.3 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@5.1.2 - - @swisspost/design-system-intranet-header@3.0.3 - -## 5.1.2 - -### Patch Changes - -- Updated dependencies: - - @swisspost/design-system-styles@5.1.1 - - @swisspost/design-system-intranet-header@3.0.2 - -## 5.1.1 - -### Patch Changes - -- Updated migration documentation for post topic-teaser component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Update migration documentation for bootstrap button component btn-icon class. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation for bootstrap blockquote component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation for bootstrap blockquote component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Added migration documentation jquery accordion component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated the migration documentation for close-button. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation for post custom-select component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Removed alert-fixed-bottom class requirement from bootstrap alert component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation for bootstrap form-select component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation rtl helper classes. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation for bootstrap form-switch component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Moved form-label class requirement form controls to forms migration documentation. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Fixed and updated general classes bg-opacity migration documentation. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation for ngbootstrap buttons component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Upated migration documentation for bootstrap `form-control`, `form-select` and `textarea` components. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Updated migration documentation post accordion component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) - -- Added migration documentation for general classes sr-only and sr-only-focusable. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#687](https://github.com/swisspost/design-system/pull/687) -- Updated dependencies: - - @swisspost/design-system-styles@5.1.0 - - @swisspost/design-system-intranet-header@3.0.1 - -## 5.1.0 - -### Minor Changes - -- Enabled code copy to clipboard -
by [@alizedebray](https://github.com/alizedebray) with [#714](https://github.com/swisspost/design-system/pull/714) - -## 5.0.1 - -### Patch Changes - -- Added migration instructions for changed sass entry file names. -
by [@gfellerph](https://github.com/gfellerph) with [#696](https://github.com/swisspost/design-system/pull/696) - -- Updated the target Angular version to 14 in the migration instructions. The Intranet Header is not compatible with older versions. -
by [@gfellerph](https://github.com/gfellerph) with [#698](https://github.com/swisspost/design-system/pull/698) - -- Fixed typos in the migration docs and removed a duplicated entry -
by [@gfellerph](https://github.com/gfellerph) with [#688](https://github.com/swisspost/design-system/pull/688) - -- Switched to displaying the styles package version number instead of the demo app version number. The styles version is more important to developers than thenow disconnected demo version number -
by [@gfellerph](https://github.com/gfellerph) with [#689](https://github.com/swisspost/design-system/pull/689) - -## 5.0.0 - -### Major Changes - -- Refactored the stepper component in order to facilitate its use within a project. -
by [@alizedebray](https://github.com/alizedebray) with [#308](https://github.com/swisspost/design-system/pull/308) - -- Refactored colors. Bootstrap overrides are now clearly separated from Design System colors and only Design System colors are used in the components. This change also prepares for a dynamic dark mode by offering CSS variables for background and text contrast colors (see `buttons.scss` for an example). -
by [@gfellerph](https://github.com/gfellerph) with [#96](https://github.com/swisspost/design-system/pull/96) - -- Added and extended grid-cols definition for `.topic-teaser-content` and `.topic-teaser-image-container` containers inside css and removed col classes from html. Improved image `aspect-ratios`, as well as `font-size` and `padding` of `.link-list` elements on smaller devices. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#310](https://github.com/swisspost/design-system/pull/310) - -- Renamed Common Web Frontend to Swiss Post Design System. -
by [@gfellerph](https://github.com/gfellerph) with [#355](https://github.com/swisspost/design-system/pull/355) - -- Upgraded to Angular to version 14. -
by [@gfellerph](https://github.com/gfellerph) with [#406](https://github.com/swisspost/design-system/pull/406) - -- Dropped rounded and colored badges, updated dismissible badges and added checkable badges. -
by [@alizedebray](https://github.com/alizedebray) with [#353](https://github.com/swisspost/design-system/pull/353) - -- Added `font-size` in `.link-list` elements, without a `font-size-curve` and removed the corresponding classes from the html-example. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#310](https://github.com/swisspost/design-system/pull/310) - -### Minor Changes - -- Added searchengine-, og- and twitter-metatags for better previews when sharing links. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#674](https://github.com/swisspost/design-system/pull/674) - -### Patch Changes - -- Added `ng update` command for the styles package to the migration documentation. -
by [@gfellerph](https://github.com/gfellerph) with [#548](https://github.com/swisspost/design-system/pull/548) - -- Added the html property `inputmode="decimal"` to the form-range example with text input control, to improve userexperience. This will open a number-only keyboard on mobile devices, when the user selects the input field. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#309](https://github.com/swisspost/design-system/pull/309) - -- Refactored dynamic attribute bindings. Refactored bindings from `class="class1 class2-{{ angularVariable }}"` to `class="class1" [class]="'class2-' + {{ angularVariable }}"`. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#626](https://github.com/swisspost/design-system/pull/626) - -- Updated entry file names for the styles package. - - ```scss - @use '@swisspost/design-system-styles'; // Default internet styles - @use '@swisspost/design-system-styles/intranet'; // Default intranet styles - @use '@swisspost/design-system-styles/core' as post; // Variables, mixins, functions and placeholders - ``` - - 1. Default import is now as simple as possible. - 2. Intranet styles are clearly named as such. - 3. Core functionality is a clear name, but for consistency with other prefixes, the core module can be namespaced as post. The usage would then be `background-color: post.$yellow;`. -
by [@gfellerph](https://github.com/gfellerph) with [#389](https://github.com/swisspost/design-system/pull/389) - -- Fixed heading styles. This includes the html tags `h1`, `h2`, `h3`, `h4`, `h5` and `h6`, as well as there css-class pendants `.h1`, `h2`... -
by [@gfellerph](https://github.com/gfellerph) with [#115](https://github.com/swisspost/design-system/pull/115) - -- Updated sizes for button components and reduced CSS output size. -
by [@gfellerph](https://github.com/gfellerph) with [#103](https://github.com/swisspost/design-system/pull/103) - -- Refactored tabs component, to get rid of the css-class `text-auto`. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#187](https://github.com/swisspost/design-system/pull/187) - -- Added styles to show floating-label `placeholder` in empty form-select component like a default input placeholder. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#169](https://github.com/swisspost/design-system/pull/169) - -- Updated documentation on toast and alert components for improved accessibility and a better user experience. -
by [@gfellerph](https://github.com/gfellerph) with [#235](https://github.com/swisspost/design-system/pull/235) - -- Fixed floating-label placeholder visibility in textarea component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#390](https://github.com/swisspost/design-system/pull/390) - -- Fixed typo which prevented alert component from being closed properly. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#391](https://github.com/swisspost/design-system/pull/391) - -- Added styles and documentation for ng-datatable component loading indicator. -
by [@Janobob](https://github.com/Janobob) with [#7](https://github.com/swisspost/design-system/pull/7) - -- Moved timepicker validation fix from version 4 to version 5. -
by [@Janobob](https://github.com/Janobob) with [#14](https://github.com/swisspost/design-system/pull/14) - -- Added default timeout-options for the ngbToast component, to close toast properly after mouseenter/mouseleave events. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#436](https://github.com/swisspost/design-system/pull/436) - -- Deprecated the text on image card example and presented it as a no-go. It's very difficult for content editors to always ensure that text is legible on an image for every browser size and all different languages. -
by [@gfellerph](https://github.com/gfellerph) with [#387](https://github.com/swisspost/design-system/pull/387) - -- Included last 2 safari versions in the `.browserslistrc` and aligned `.browserslistrc` files in all projects. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#162](https://github.com/swisspost/design-system/pull/162) - -- Added label "deprecated" to the custom-select component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#416](https://github.com/swisspost/design-system/pull/416) - -- Updated ngb-collapsible demo code from the ng-bootstrap documentation. Improved performance of the demo and prevented margin collapse. -
by [@gfellerph](https://github.com/gfellerph) with [#386](https://github.com/swisspost/design-system/pull/386) - -- Refactored background classes (`.bg-{colorname}`) for the alert and notification component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#357](https://github.com/swisspost/design-system/pull/357) - -- Added `popover` example with markup. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#346](https://github.com/swisspost/design-system/pull/346) - -- Corrected and completed the property documentation for the intranet-header component. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#447](https://github.com/swisspost/design-system/pull/447) - -- Switched to the Apache 2.0 License. -
by [@gfellerph](https://github.com/gfellerph) with [#12](https://github.com/swisspost/design-system/pull/12) - -- Fixed heights on `.form-control-lg` and `.floating-label .form-control` elements. Removed some Design System only scss-variables. -
by [@oliverschuerch](https://github.com/oliverschuerch) with [#450](https://github.com/swisspost/design-system/pull/450) -- Updated dependencies: - - @swisspost/design-system-styles@5.0.0 - - @swisspost/design-system-intranet-header@3.0.0 diff --git a/packages/demo/LICENSE b/packages/demo/LICENSE deleted file mode 100644 index 93eb480e35..0000000000 --- a/packages/demo/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2022 Swiss Post, Ltd. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/demo/README.md b/packages/demo/README.md deleted file mode 100644 index 5fc5f9cfad..0000000000 --- a/packages/demo/README.md +++ /dev/null @@ -1,29 +0,0 @@ -![Swiss Post Design System splash screen](https://github.com/swisspost/design-system/assets/1659006/e84f1fea-e666-4853-8c85-726a6bf22e6c) - -# Demo App - -Pattern documentation, code snippets and implementation guidelines for the Design System Styles. - -## Setup - -These contribution guidelines extend the [general contribution guidelines](../../CONTRIBUTING.md). - -## Starting the development server - -```bash -npm start -``` - -The default URL is [`http://localhost:9010/`](http://localhost:9010/). The app will automatically reload if you change any of the source files. - -## Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - -## Build - -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/packages/demo/angular.json b/packages/demo/angular.json deleted file mode 100644 index 91064f3b67..0000000000 --- a/packages/demo/angular.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "projects", - "projects": { - "design-system-demo": { - "root": "", - "sourceRoot": "src", - "projectType": "application", - "prefix": "app", - "schematics": {}, - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "allowedCommonJsDependencies": ["bootstrap/js/dist/collapse", "prettier"], - "outputPath": "dist/demo", - "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.app.json", - "assets": [ - "src/favicon.ico", - "src/favicon.svg", - "src/apple-touch-icon.png", - "src/android-chrome-192x192.png", - "src/android-chrome-512x512.png", - "src/size.webmanifest", - "src/assets", - "src/netlify.toml" - ], - "styles": ["src/styles.scss", "./node_modules/highlight.js/styles/vs2015.css"], - "stylePreprocessorOptions": { - "includePaths": ["node_modules"] - }, - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true, - "preserveSymlinks": true - }, - "configurations": { - "production": { - "budgets": [ - { - "type": "anyComponentStyle", - "maximumWarning": "6kb" - } - ], - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true - } - }, - "defaultConfiguration": "" - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "buildTarget": "design-system-demo:build" - }, - "configurations": { - "production": { - "buildTarget": "design-system-demo:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "buildTarget": "design-system-demo:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.spec.json", - "karmaConfig": "src/karma.conf.js", - "styles": ["src/styles.scss"], - "scripts": [], - "assets": ["src/favicon.ico", "src/assets"] - } - }, - "lint": { - "builder": "@angular-eslint/builder:lint", - "options": { - "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] - } - } - } - } - }, - "schematics": { - "@angular-eslint/schematics:application": { - "setParserOptionsProject": true - }, - "@angular-eslint/schematics:library": { - "setParserOptionsProject": true - } - }, - "cli": { - "packageManager": "pnpm" - } -} diff --git a/packages/demo/package.json b/packages/demo/package.json deleted file mode 100644 index 6adbfc036c..0000000000 --- a/packages/demo/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "@swisspost/design-system-demo", - "version": "8.0.3-next.0", - "description": "Pattern documentation, code snippets and implementation guidelines for the Design System Styles.", - "author": "Swiss Post ", - "license": "Apache-2.0", - "private": true, - "scripts": { - "clean": "rimraf dist", - "start": "ng serve --port 9010", - "build": "ng build", - "lint": "ng lint" - }, - "dependencies": { - "@angular/animations": "18.1.3", - "@angular/cdk": "18.1.3", - "@angular/common": "18.1.3", - "@angular/compiler": "18.1.3", - "@angular/core": "18.1.3", - "@angular/forms": "18.1.3", - "@angular/localize": "18.1.3", - "@angular/platform-browser": "18.1.3", - "@angular/platform-browser-dynamic": "18.1.3", - "@angular/router": "18.1.3", - "@ng-bootstrap/ng-bootstrap": "17.0.0", - "@popperjs/core": "2.11.8", - "@swimlane/ngx-datatable": "20.1.0", - "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.0", - "@swisspost/design-system-migrations": "workspace:9.0.0-next.0", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", - "bootstrap": "5.3.3", - "core-js": "3.37.1", - "highlight.js": "11.10.0", - "ngx-highlightjs": "10.0.0", - "ngx-toastr": "19.0.0", - "prettier": "2.8.8", - "rxjs": "7.8.1", - "tslib": "2.6.3", - "zone.js": "0.14.8" - }, - "devDependencies": { - "@angular-devkit/build-angular": "18.1.3", - "@angular-eslint/builder": "18.2.0", - "@angular-eslint/eslint-plugin": "18.2.0", - "@angular-eslint/eslint-plugin-template": "18.2.0", - "@angular-eslint/template-parser": "18.2.0", - "@angular/cli": "18.1.3", - "@angular/compiler-cli": "18.1.3", - "@angular/elements": "18.1.3", - "@angular/language-service": "18.1.3", - "@types/jasmine": "5.1.4", - "@types/jasminewd2": "2.0.13", - "@types/node": "20.12.7", - "@typescript-eslint/eslint-plugin": "7.18.0", - "@typescript-eslint/parser": "7.18.0", - "eslint": "8.57.0", - "jasmine-core": "5.2.0", - "jasmine-marbles": "0.9.2", - "jasmine-spec-reporter": "7.0.0", - "karma": "6.4.4", - "karma-chrome-launcher": "3.2.0", - "karma-coverage": "2.2.1", - "karma-coverage-istanbul-reporter": "3.0.3", - "karma-jasmine": "5.1.0", - "karma-jasmine-html-reporter": "2.1.0", - "raw-loader": "4.0.2", - "rimraf": "6.0.1", - "sass": "1.78.0", - "sockjs": "0.3.24", - "ts-node": "10.9.2", - "typescript": "5.5.4", - "undici-types": "6.19.5", - "webpack": "5.94.0" - } -} diff --git a/packages/demo/src/android-chrome-192x192.png b/packages/demo/src/android-chrome-192x192.png deleted file mode 100644 index 26af7c8379..0000000000 Binary files a/packages/demo/src/android-chrome-192x192.png and /dev/null differ diff --git a/packages/demo/src/android-chrome-512x512.png b/packages/demo/src/android-chrome-512x512.png deleted file mode 100644 index 5772ee7087..0000000000 Binary files a/packages/demo/src/android-chrome-512x512.png and /dev/null differ diff --git a/packages/demo/src/app/app-routing.module.ts b/packages/demo/src/app/app-routing.module.ts deleted file mode 100644 index d127b80876..0000000000 --- a/packages/demo/src/app/app-routing.module.ts +++ /dev/null @@ -1,184 +0,0 @@ -/* tslint:disable:max-line-length */ -import { FormSwitchDemoPageComponent } from './bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component'; -import { TopicTeaserDemoPageComponent } from './post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component'; -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { IntranetLayoutComponent } from './intranet-layout/intranet-layout.component'; -import { AccordionDemoPageComponent } from './bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component'; -import { AlertDemoPageComponent } from './bootstrap/components/alert/alert-demo-page/alert-demo-page.component'; -import { BadgeDemoPageComponent } from './bootstrap/components/badge/badge-demo-page/badge-demo-page.component'; -import { ButtonsDemoPageComponent } from './bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component'; -import { ButtonGroupDemoPageComponent } from './bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component'; -import { BlockquotesDemoPageComponent } from './bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component'; -import { TablesDemoPageComponent } from './bootstrap/components/tables/tables-demo-page/tables-demo-page.component'; -import { TypographyDemoPageComponent } from './bootstrap/components/typography/typography-demo-page/typography-demo-page.component'; -import { FormsDemoPageComponent as BootstrapFormDemoPageComponent } from './bootstrap/components/forms/forms-demo-page/forms-demo-page.component'; -import { NgbAlertDemoPageComponent } from './ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component'; -import { NgbAccordionDemoPageComponent } from './ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component'; -import { NgbDatepickerDemoPageComponent } from './ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component'; -import { NgbDropdownDemoPageComponent } from './ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component'; -import { NgbPopoverDemoPageComponent } from './ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component'; -import { NgbRatingDemoPageComponent } from './ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component'; -import { NgbModalDemoPageComponent } from './ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component'; -import { NgbCarouselDemoPageComponent } from './ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component'; -import { NgbTimepickerDemoPageComponent } from './ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component'; -import { NgbPaginationDemoPageComponent } from './ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component'; -import { NgbCollapseDemoPageComponent } from './ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component'; -import { NgbProgressbarDemoPageComponent } from './ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component'; -import { NgbTabsDemoPageComponent } from './ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component'; -import { NgbTooltipDemoPageComponent } from './ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component'; -import { NgbTypeaheadDemoPageComponent } from './ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component'; -import { FormRangeDemoPageComponent } from './bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component'; -import { FormSelectDemoPageComponent } from './bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component'; -import { FormSelectMultipleDemoPageComponent } from './bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component'; -import { FormTextareaDemoPageComponent } from './bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component'; -import { FormControlDemoPageComponent } from './bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component'; -import { FormRadioDemoPageComponent } from './bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component'; -import { FormCheckDemoPageComponent } from './bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component'; -import { FeedbackDemoPageComponent } from './post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component'; -import { IconsDemoPageComponent } from './post-sample/components/icons/icons-demo-page/icons-demo-page.component'; -import { SpinnerDemoPageComponent } from './post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component'; -import { BackgroundDemoPageComponent } from './bootstrap/components/background/background-demo-page/background-demo-page.component'; -import { SizingDemoPageComponent } from './post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component'; -import { NotificationOverlayPageComponent } from './post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component'; -import { SubnavigationDemoPageComponent } from './post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component'; -import { HomeComponent } from './home/home.component'; -import { FormFileDemoPageComponent } from './bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component'; -import { CardDemoPageComponent } from './bootstrap/components/card/card-demo-page/card-demo-page.component'; -import { CustomSelectDemoPageComponent } from './post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component'; -import { StepperDemoPageComponent } from './post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component'; -import { DatatableDemoPageComponent } from './post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component'; -import { FormsDemoPageComponent } from './post-sample/components/forms/forms-demo-page/forms-demo-page.component'; -import { PostCardsDemoPageComponent } from './post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component'; -import { LayoutContainerComponent } from './layout-container/layout-container.component'; -import { IntranetHeaderDemoRegularComponent } from './intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component'; -import { IntranetHeaderDemoBigSidebarComponent } from './intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component'; -import { IntranetHeaderDemoSmallSidebarComponent } from './intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component'; -/* tslint:enable:max-line-length */ - -const routes: Routes = [ - { path: '', redirectTo: 'home', pathMatch: 'full' }, - { - path: 'home', - component: LayoutContainerComponent, - data: { fullWidth: true }, - children: [{ path: '', component: HomeComponent, data: { fullWidth: true } }], - }, - - { - path: 'bootstrap-samples', - component: LayoutContainerComponent, - children: [ - { path: 'accordion', component: AccordionDemoPageComponent }, - { path: 'alerts', component: AlertDemoPageComponent }, - { path: 'background', component: BackgroundDemoPageComponent }, - { path: 'badge', component: BadgeDemoPageComponent }, - { path: 'blockquotes', component: BlockquotesDemoPageComponent }, - { path: 'buttons', component: ButtonsDemoPageComponent }, - { path: 'button-group', component: ButtonGroupDemoPageComponent }, - { path: 'tables', component: TablesDemoPageComponent }, - { path: 'typography', component: TypographyDemoPageComponent }, - { path: 'forms', component: BootstrapFormDemoPageComponent }, - { path: 'form-select', component: FormSelectDemoPageComponent }, - { - path: 'form-multiple-select', - component: FormSelectMultipleDemoPageComponent, - }, - { path: 'form-textarea', component: FormTextareaDemoPageComponent }, - { path: 'form-control', component: FormControlDemoPageComponent }, - { path: 'form-range', component: FormRangeDemoPageComponent }, - { path: 'form-file', component: FormFileDemoPageComponent }, - { path: 'form-radio', component: FormRadioDemoPageComponent }, - { path: 'form-check', component: FormCheckDemoPageComponent }, - { path: 'form-switch', component: FormSwitchDemoPageComponent }, - { - path: 'card', - component: CardDemoPageComponent, - data: { fullWidth: true }, - }, - ], - }, - { - path: 'ng-bootstrap-samples', - component: LayoutContainerComponent, - children: [ - { path: 'accordion', component: NgbAccordionDemoPageComponent }, - { path: 'rating', component: NgbRatingDemoPageComponent }, - { path: 'modal', component: NgbModalDemoPageComponent }, - { path: 'progressbar', component: NgbProgressbarDemoPageComponent }, - { path: 'alert', component: NgbAlertDemoPageComponent }, - { path: 'carousel', component: NgbCarouselDemoPageComponent }, - { path: 'popover', component: NgbPopoverDemoPageComponent }, - { path: 'collapse', component: NgbCollapseDemoPageComponent }, - { path: 'datepicker', component: NgbDatepickerDemoPageComponent }, - { path: 'dropdown', component: NgbDropdownDemoPageComponent }, - { path: 'pagination', component: NgbPaginationDemoPageComponent }, - { - path: 'tabs', - component: NgbTabsDemoPageComponent, - data: { fullWidth: true }, - }, - { path: 'timepicker', component: NgbTimepickerDemoPageComponent }, - { path: 'tooltip', component: NgbTooltipDemoPageComponent }, - { path: 'typeahead', component: NgbTypeaheadDemoPageComponent }, - ], - }, - { - path: 'post-samples', - component: LayoutContainerComponent, - children: [ - { path: 'accordion', component: AccordionDemoPageComponent }, - { path: 'datatable', component: DatatableDemoPageComponent }, - { path: 'icons', component: IconsDemoPageComponent }, - { path: 'feedback', component: FeedbackDemoPageComponent }, - { path: 'spinner', component: SpinnerDemoPageComponent }, - { path: 'sizing', component: SizingDemoPageComponent }, - { path: 'card', component: PostCardsDemoPageComponent }, - { - path: 'notification-overlay', - component: NotificationOverlayPageComponent, - }, - { path: 'subnavigation', component: SubnavigationDemoPageComponent }, - { - path: 'topic-teaser', - component: TopicTeaserDemoPageComponent, - data: { fullWidth: true }, - }, - { path: 'custom-select', component: CustomSelectDemoPageComponent }, - { path: 'stepper', component: StepperDemoPageComponent }, - { path: 'forms', component: FormsDemoPageComponent }, - { path: 'intranet-layout', component: IntranetLayoutComponent, data: { fullWidth: true } }, - ], - }, - - { - path: 'samples', - children: [ - { - path: 'intranet-layout-regular', - component: IntranetHeaderDemoRegularComponent, - }, - { - path: 'intranet-layout-sidebar-big-sidebar', - component: IntranetHeaderDemoBigSidebarComponent, - }, - { - path: 'intranet-layout-sidebar-small-sidebar', - component: IntranetHeaderDemoSmallSidebarComponent, - }, - ], - }, -]; - -@NgModule({ - imports: [ - RouterModule.forRoot(routes, { - useHash: true, - scrollPositionRestoration: 'enabled', - anchorScrolling: 'enabled', - scrollOffset: [0, 150], - }), - ], - exports: [RouterModule], -}) -export class AppRoutingModule {} diff --git a/packages/demo/src/app/app.component.html b/packages/demo/src/app/app.component.html deleted file mode 100644 index 0680b43f9c..0000000000 --- a/packages/demo/src/app/app.component.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/demo/src/app/app.component.spec.ts b/packages/demo/src/app/app.component.spec.ts deleted file mode 100644 index 1ccf158287..0000000000 --- a/packages/demo/src/app/app.component.spec.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { TestBed, waitForAsync } from '@angular/core/testing'; -import { AppComponent } from './app.component'; -import { RouterModule } from '@angular/router'; - -describe('AppComponent', () => { - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [RouterModule.forRoot([])], - declarations: [AppComponent], - }).compileComponents(); - })); - it('should create the app', waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app).toBeTruthy(); - })); - it(`should have as title 'app'`, waitForAsync(() => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('app'); - })); -}); diff --git a/packages/demo/src/app/app.component.ts b/packages/demo/src/app/app.component.ts deleted file mode 100644 index 7c802bdc05..0000000000 --- a/packages/demo/src/app/app.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './app.component.html', -}) -export class AppComponent { - public title = 'app'; -} diff --git a/packages/demo/src/app/app.module.ts b/packages/demo/src/app/app.module.ts deleted file mode 100644 index d008fe3864..0000000000 --- a/packages/demo/src/app/app.module.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { BrowserModule } from '@angular/platform-browser'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { AppComponent } from './app.component'; -import { ToastrModule } from 'ngx-toastr'; -import { AppRoutingModule } from './app-routing.module'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; - -import { registerLocaleData } from '@angular/common'; -import localeDe from '@angular/common/locales/de'; -import localeFr from '@angular/common/locales/fr'; -import localeIt from '@angular/common/locales/it'; -import localeEn from '@angular/common/locales/en'; - -import { HighlightModule } from 'ngx-highlightjs'; -import { CopyToClipboardDirective } from './common/copy-to-clipboard.directive'; -import { HighlightProvider } from './common/highlight.provider'; - -import { IntranetLayoutComponent } from './intranet-layout/intranet-layout.component'; - -import { ErrorService } from './intranet-layout/services/error.service'; -import { BootstrapComponentsModule } from './bootstrap/components/bootstrap-components.module'; -import { NgBootstrapComponentsModule } from './ng-bootstrap/components/ng-bootstrap-components.module'; -import { IntranetComponentsModule } from './intranet-layout/intranet-components.module'; -import { PostSampleComponentsModule } from './post-sample/post-sample-components.module'; -import { SwissPostIntranetHeaderModule } from '@swisspost/design-system-intranet-header'; -import { HomeComponent } from './home/home.component'; -import { PostCommonModule } from './common/post-common.module'; -import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; -import { LayoutContainerComponent } from './layout-container/layout-container.component'; - -registerLocaleData(localeDe); -registerLocaleData(localeFr); -registerLocaleData(localeIt); -registerLocaleData(localeEn); - -@NgModule({ declarations: [ - AppComponent, - IntranetLayoutComponent, - LayoutContainerComponent, - HomeComponent, - CopyToClipboardDirective, - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA], - bootstrap: [AppComponent], imports: [BrowserModule, - AppRoutingModule, - FormsModule, - ReactiveFormsModule, - NgbModule, - BootstrapComponentsModule, - NgBootstrapComponentsModule, - IntranetComponentsModule, - PostCommonModule, - PostSampleComponentsModule, - SwissPostIntranetHeaderModule, - ToastrModule.forRoot({ - extendedTimeOut: 0, - closeButton: true, - toastClass: 'toast', - }), - HighlightModule], providers: [ErrorService, HighlightProvider.Config, provideHttpClient(withInterceptorsFromDi())] }) -export class AppModule {} diff --git a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.html b/packages/demo/src/app/bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.html deleted file mode 100644 index e99d6c7ebc..0000000000 --- a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.html +++ /dev/null @@ -1,41 +0,0 @@ -
-

Accordion

- -
- -
-

Bootstrap accordions are deprecated and will soon be removed.

-

- For a similar behavior, check out our new - - post-accordion component - - . -

-
- -
-

Using JavaScript

-
-

- For the JavaScript accordion to work properly, you need to import collapse.js from Bootstrap - into your component. -

-
- - - - -
diff --git a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.ts deleted file mode 100644 index 53b2accf34..0000000000 --- a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../accordion-demo/accordion-demo.component.html').default; -const codeController = - require('!!raw-loader!../accordion-demo/accordion-demo.component.ts').default; - -@Component({ - selector: 'app-accordion-demo-page', - templateUrl: './accordion-demo-page.component.html', -}) -export class AccordionDemoPageComponent { - codeTemplate = codeTemplate; - codeController = codeController; -} diff --git a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo/accordion-demo.component.html b/packages/demo/src/app/bootstrap/components/accordion/accordion-demo/accordion-demo.component.html deleted file mode 100644 index 3c5f41b1b3..0000000000 --- a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo/accordion-demo.component.html +++ /dev/null @@ -1,107 +0,0 @@ -
-
-

- -

-
-
-

- This is the first item's accordion body. - It is shown by default, until the collapse plugin adds the appropriate classes that we use - to style each element. These classes control the overall appearance, as well as the - showing and hiding via CSS transitions. You can modify any of this with custom CSS or - overriding our default variables. It's also worth noting that just about any HTML can go - within the - .accordion-body - , though the transition does limit overflow. -

-
-
-
-
-

- -

-
-
-

- This is the second item's accordion body. - It is hidden by default, until the collapse plugin adds the appropriate classes that we - use to style each element. These classes control the overall appearance, as well as the - showing and hiding via CSS transitions. You can modify any of this with custom CSS or - overriding our default variables. It's also worth noting that just about any HTML can go - within the - .accordion-body - , though the transition does limit overflow. -

-
-
-
-
-

- -

-
-
-

- This is the third item's accordion body. - It is hidden by default, until the collapse plugin adds the appropriate classes that we - use to style each element. These classes control the overall appearance, as well as the - showing and hiding via CSS transitions. You can modify any of this with custom CSS or - overriding our default variables. It's also worth noting that just about any HTML can go - within the - .accordion-body - , though the transition does limit overflow. -

-
-
-
-
diff --git a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo/accordion-demo.component.ts b/packages/demo/src/app/bootstrap/components/accordion/accordion-demo/accordion-demo.component.ts deleted file mode 100644 index 3d4256b193..0000000000 --- a/packages/demo/src/app/bootstrap/components/accordion/accordion-demo/accordion-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; -import 'bootstrap/js/dist/collapse'; // collapse.js is required for the accordion to work properly - -@Component({ - selector: 'app-accordion-demo', - templateUrl: './accordion-demo.component.html', -}) -export class AccordionDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.html b/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.html deleted file mode 100644 index 1be8e4d59f..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - diff --git a/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.scss b/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.scss deleted file mode 100644 index b85b36a701..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.scss +++ /dev/null @@ -1,6 +0,0 @@ -// Import variables -@use '@swisspost/design-system-styles/core' as post; - -.pi-2063-white { - @include post.pi(2063, 'white'); -} diff --git a/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.ts b/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.ts deleted file mode 100644 index 9927836b28..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/action-alert-demo/action-alert-demo.component.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Component, AfterViewInit, ViewChild, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-action-alert-demo', - templateUrl: './action-alert-demo.component.html', - styleUrls: ['./action-alert-demo.component.scss'], -}) -export class ActionAlertDemoComponent implements AfterViewInit { - @ViewChild('ex1', { static: true }) ex1: ElementRef; - @ViewChild('ex2', { static: true }) ex2: ElementRef; - @ViewChild('ex3', { static: true }) ex3: ElementRef; - @ViewChild('ex1btn', { static: true }) ex1btnTxt: ElementRef; - @ViewChild('ex2btn', { static: true }) ex2btnTxt: ElementRef; - @ViewChild('ex3btn', { static: true }) ex3btnTxt: ElementRef; - - ngAfterViewInit(): void { - this.toggleEx1(); - this.toggleEx2(); - this.toggleEx3(); - } - - toggleEx1() { - if (this.ex1 != undefined) { - const displayStyle = this.ex1.nativeElement.style.display; - if (displayStyle != 'none') { - this.ex1.nativeElement.style.display = 'none'; - this.setButtonText('Show Ex. 1', this.ex1btnTxt); - } else { - this.ex1.nativeElement.style.display = ''; - this.setButtonText('Hide Ex. 1', this.ex1btnTxt); - } - } - } - - toggleEx2() { - if (this.ex2 != undefined) { - const displayStyle = this.ex2.nativeElement.style.display; - if (displayStyle != 'none') { - this.ex2.nativeElement.style.display = 'none'; - this.setButtonText('Show Ex. 2', this.ex2btnTxt); - } else { - this.ex2.nativeElement.style.display = ''; - this.setButtonText('Hide Ex. 2', this.ex2btnTxt); - } - } - } - - toggleEx3() { - if (this.ex3 != undefined) { - const displayStyle = this.ex3.nativeElement.style.display; - if (displayStyle != 'none') { - this.ex3.nativeElement.style.display = 'none'; - this.setButtonText('Show Ex. 3', this.ex3btnTxt); - } else { - this.ex3.nativeElement.style.display = ''; - this.setButtonText('Hide Ex. 3', this.ex3btnTxt); - } - } - } - - setButtonText(newText: string, buttonTxt: ElementRef) { - if (buttonTxt != undefined) { - buttonTxt.nativeElement.innerText = newText; - } - } -} diff --git a/packages/demo/src/app/bootstrap/components/alert/alert-demo-page/alert-demo-page.component.html b/packages/demo/src/app/bootstrap/components/alert/alert-demo-page/alert-demo-page.component.html deleted file mode 100644 index 8ba7ab821f..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/alert-demo-page/alert-demo-page.component.html +++ /dev/null @@ -1,140 +0,0 @@ -
-

Alerts / Notifications

- -
- -
-

- The following two color variants are deprecated and will be removed in the next major version of - the styles package: -

- -
- -
-

Usage

- -
-
Dismissible alerts are deprecated
-

- There already exists a - - web component - - post-alert - that will handle dissmissible alerts. HTML alerts should only be used for static alerts. -

-
- -
-
-

- The markup for alerts differs from the basic bootstrap implementation, to secure - cross-browser compatibility! -

-

- While all bootstrap classes related to alerts are still available and functional, there are - some changes to their HTMs-Markup. -

-
    -
  • The close button for dismissible alerts needs to be the first tag inside the alert.
  • -
  • Alerts have an alert-container around them.
  • -
  • - All alert-content needs to be wrapped in their own tag, for example a <p>-tag. -
  • -
  • - For thematic colors, only the alerts shown on this page are available. (No "alert-light" - or "alert-dark" available.) -
  • -
-

For Toasts, the bootstrap classes are not yet available!

-
-
-
- -

Toast / Small notification bar

-

- These are not meant to be put on a page directly, they should only be used overlaying the site - content. It should always close the toast when you click on it. -

-
- -
- - -

Alert / Notification bar

-

-
- -
- - -

Alert / Notification bar with action

-

-
- -
- - -

Button notification

-

-
- -
- - -

Overlay Notification

-

-
- -
- - -

Notification dot

-

-
- -
- diff --git a/packages/demo/src/app/bootstrap/components/alert/alert-demo-page/alert-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/alert/alert-demo-page/alert-demo-page.component.ts deleted file mode 100644 index e529ddc191..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/alert-demo-page/alert-demo-page.component.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplateToast = require('!!raw-loader!../toast-demo/toast-demo.component.html').default; -const codeTemplateAlert = require('!!raw-loader!../alert-demo/alert-demo.component.html').default; -const codeTemplateAction = - require('!!raw-loader!../action-alert-demo/action-alert-demo.component.html').default; -const codeTemplateButton = - require('!!raw-loader!../button-notification-demo/button-notification-demo.component.html').default; -const codeTemplateOverlay = - require('!!raw-loader!../overlay-notification-demo/overlay-notification-demo.component.html').default; -const codeTemplateDot = - require('!!raw-loader!../dot-notification-demo/dot-notification-demo.component.html').default; - -@Component({ - selector: 'app-alert-demo-page', - templateUrl: './alert-demo-page.component.html', -}) -export class AlertDemoPageComponent { - codeTemplateToast = codeTemplateToast; - codeTemplateAlert = codeTemplateAlert; - codeTemplateAction = codeTemplateAction; - codeTemplateButton = codeTemplateButton; - codeTemplateOverlay = codeTemplateOverlay; - codeTemplateDot = codeTemplateDot; -} diff --git a/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.html b/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.html deleted file mode 100644 index 2965bef9c7..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.html +++ /dev/null @@ -1,96 +0,0 @@ -
- - - - - - - - - - - - -
- -

Fixed alert

- - - diff --git a/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.scss b/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.scss deleted file mode 100644 index 26d483e06f..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; - -.pi-2063-white { - @include post.pi(2063, 'white'); -} diff --git a/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.ts b/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.ts deleted file mode 100644 index d1343a0826..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/alert-demo/alert-demo.component.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Component, AfterViewInit, ViewChild, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-alert-demo', - templateUrl: './alert-demo.component.html', - styleUrls: ['./alert-demo.component.scss'], -}) -export class AlertDemoComponent implements AfterViewInit { - @ViewChild('dismissible', { static: true }) dismissible: ElementRef; - @ViewChild('dismissibleBtn', { static: true }) dismissibleBtn: ElementRef; - - ngAfterViewInit(): void { - this.toggleFixedAlert(); - } - - toggleFixedAlert() { - if (this.dismissible != undefined) { - const displayStyle = this.dismissible.nativeElement.style.display; - if (displayStyle != 'none') { - this.dismissible.nativeElement.style.display = 'none'; - this.setButtonText('Show fixed alert'); - } else { - this.dismissible.nativeElement.style.display = ''; - this.setButtonText('Hide fixed alert'); - } - } - } - - setButtonText(newText: string) { - if (this.dismissibleBtn != undefined) { - this.dismissibleBtn.nativeElement.innerText = newText; - } - } -} diff --git a/packages/demo/src/app/bootstrap/components/alert/button-notification-demo/button-notification-demo.component.html b/packages/demo/src/app/bootstrap/components/alert/button-notification-demo/button-notification-demo.component.html deleted file mode 100644 index bc9a572359..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/button-notification-demo/button-notification-demo.component.html +++ /dev/null @@ -1 +0,0 @@ -Not yet available. diff --git a/packages/demo/src/app/bootstrap/components/alert/button-notification-demo/button-notification-demo.component.ts b/packages/demo/src/app/bootstrap/components/alert/button-notification-demo/button-notification-demo.component.ts deleted file mode 100644 index 4daa90f98f..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/button-notification-demo/button-notification-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-button-notification-demo', - templateUrl: './button-notification-demo.component.html', -}) -export class ButtonNotificationDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.html b/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.html deleted file mode 100644 index bc9a572359..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.html +++ /dev/null @@ -1 +0,0 @@ -Not yet available. diff --git a/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.spec.ts b/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.spec.ts deleted file mode 100644 index afb8a3cccb..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { DotNotificationDemoComponent } from './dot-notification-demo.component'; - -describe('DotNotificationDemoComponent', () => { - let component: DotNotificationDemoComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [DotNotificationDemoComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(DotNotificationDemoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.ts b/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.ts deleted file mode 100644 index 7e580bd002..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/dot-notification-demo/dot-notification-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-dot-notification-demo', - templateUrl: './dot-notification-demo.component.html', -}) -export class DotNotificationDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.html b/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.html deleted file mode 100644 index bc9a572359..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.html +++ /dev/null @@ -1 +0,0 @@ -Not yet available. diff --git a/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.spec.ts b/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.spec.ts deleted file mode 100644 index d02c2ef46d..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { OverlayNotificationDemoComponent } from './overlay-notification-demo.component'; - -describe('OverlayNotificationDemoComponent', () => { - let component: OverlayNotificationDemoComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [OverlayNotificationDemoComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(OverlayNotificationDemoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.ts b/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.ts deleted file mode 100644 index 8fc94f4229..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/overlay-notification-demo/overlay-notification-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-overlay-notification-demo', - templateUrl: './overlay-notification-demo.component.html', -}) -export class OverlayNotificationDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.html b/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.html deleted file mode 100644 index 1e6ba42ddd..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.html +++ /dev/null @@ -1,112 +0,0 @@ -
-
-
-
- -
Primary
-
Notification message.
-
-
- -
Success - You did it!
-
-
-
Warning Message
-
Example without a button to close the toast.
-
-
- -
Danger - Something went wrong...
-
-
- -
Information
-
- Important information with a long text. Lorem ipsum dolor sit amet, consetetur sadipscing - elitr, sed diam nonumy eirmod. -
-
-
-
-
-
-
- -
Special Icons (Black)
-
- Example with custom icon. Only needs the corresponding "pi"-class added to the toast. -
-
-
- -
Special Icons (White)
-
Example with white icon. Icon needs to be extended in sass.
-
-
- -
Example without an icon
-
Add class "no-icon" to the toast.
-
-
-
-
- - -

- Screen reader output is a little better if the close button is disabled (alert messages can still - be closed by clicking on them). Pass the following option to disable the close button: -

- -
- - - - - - - -
diff --git a/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.scss b/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.scss deleted file mode 100644 index 0c0d136038..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.scss +++ /dev/null @@ -1,26 +0,0 @@ -// Import all functions -@use '@swisspost/design-system-styles/core' as post; - -#toast-container-left, -#toast-container-right { - position: relative; - z-index: 0; - left: auto !important; - right: auto !important; -} - -.pi-2063-white { - background-image: url(post.get-colored-svg-url('2063', post.$white)); - border-color: post.$white; -} - -@include post.media-breakpoint-down(sm) { - .btn { - width: 100%; - - & + .btn { - margin-top: post.$spacer; - margin-left: 0 !important; - } - } -} diff --git a/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.ts b/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.ts deleted file mode 100644 index a0d9283eef..0000000000 --- a/packages/demo/src/app/bootstrap/components/alert/toast-demo/toast-demo.component.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Component } from '@angular/core'; -import { ToastrService } from 'ngx-toastr'; - -@Component({ - selector: 'app-toast-demo', - templateUrl: './toast-demo.component.html', - styleUrls: ['./toast-demo.component.scss'], -}) -export class ToastDemoComponent { - toastOptions = { - closeButton: false, - timeOut: 5000, - extendedTimeOut: 1000, - }; - JSON = JSON; - - constructor(private toastr: ToastrService) {} - - showError() { - this.toastr.error(null, 'Error w/o message', this.toastOptions); - } - showInfo() { - this.toastr.info('Information w/o title', '', this.toastOptions); - } - showSuccess() { - this.toastr.success('w/ message', 'Success', this.toastOptions); - } - showWarning() { - this.toastr.warning('w/ message', 'Warning', this.toastOptions); - } -} diff --git a/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.html b/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.html deleted file mode 100644 index 93ca730887..0000000000 --- a/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.html +++ /dev/null @@ -1,162 +0,0 @@ -
-

Background

-

Custom Post Backgrounds

-
- -

Infos

-

- All these background-color classes automatically use the appropriate font color meeting the - accessibility guidelines. When setting opacity, the contrast ratio cannot be guaranteed and should - be checked individually. -

- -

Default backgrounds

-
-

- - -

-
-
-
-
- -
-
-
-
- -
-
-
- - -

Thematic backgrounds

-
-

- - -

-
-
-
-
- -
-
-
-
- -
-
-
- -

Contextual backgrounds (Intranet only)

-
-

- - -

-
-
-
-
- -
-
-
-
- -
-
-
diff --git a/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.scss b/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.scss deleted file mode 100644 index 038c7dd445..0000000000 --- a/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.scss +++ /dev/null @@ -1,4 +0,0 @@ -.form-range { - max-width: 33%; - display: block; -} diff --git a/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.ts deleted file mode 100644 index 6dcb77e0c9..0000000000 --- a/packages/demo/src/app/bootstrap/components/background/background-demo-page/background-demo-page.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../background-demo/background-demo.component.html').default; - -@Component({ - selector: 'app-background-demo-page', - templateUrl: './background-demo-page.component.html', - styleUrls: ['./background-demo-page.component.scss'], -}) -export class BackgroundDemoPageComponent { - codeTemplate = codeTemplate; - dropOpacity1 = false; - dropOpacity2 = false; - dropOpacity3 = false; -} diff --git a/packages/demo/src/app/bootstrap/components/background/background-demo/background-demo.component.html b/packages/demo/src/app/bootstrap/components/background/background-demo/background-demo.component.html deleted file mode 100644 index 41da9c4da1..0000000000 --- a/packages/demo/src/app/bootstrap/components/background/background-demo/background-demo.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
- {{ color }} - - .bg-{{ color }} - -
-
diff --git a/packages/demo/src/app/bootstrap/components/background/background-demo/background-demo.component.ts b/packages/demo/src/app/bootstrap/components/background/background-demo/background-demo.component.ts deleted file mode 100644 index 680c28c533..0000000000 --- a/packages/demo/src/app/bootstrap/components/background/background-demo/background-demo.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component, Input } from '@angular/core'; - -@Component({ - selector: 'app-background-demo', - templateUrl: './background-demo.component.html', -}) -export class BackgroundDemoComponent { - @Input() colorArray: string[]; - @Input() dropOpacity: boolean = false; -} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-demo-page/badge-demo-page.component.html b/packages/demo/src/app/bootstrap/components/badge/badge-demo-page/badge-demo-page.component.html deleted file mode 100644 index bab5cb8eec..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-demo-page/badge-demo-page.component.html +++ /dev/null @@ -1,26 +0,0 @@ -
-

Badge

- -
- -

Default badges

-
- - -
- -

Nested badges

-
- - -
- -

Interactive badges

-
- - -
diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-demo-page/badge-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/badge/badge-demo-page/badge-demo-page.component.ts deleted file mode 100644 index e2b3bb7a40..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-demo-page/badge-demo-page.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component } from '@angular/core'; -const badgeTemplate = require('!!raw-loader!../badge-demo/badge-demo.component.html').default; -const badgeNestedTemplate = - require('!!raw-loader!../badge-nested-demo/badge-nested-demo.component.html').default; -const badgeInteractiveTemplate = - require('!!raw-loader!../badge-interactive-demo/badge-interactive-demo.component.html').default; - -@Component({ - selector: 'app-badge-demo-page', - templateUrl: './badge-demo-page.component.html', -}) -export class BadgeDemoPageComponent { - badgeTemplate = badgeTemplate; - badgeNestedTemplate = badgeNestedTemplate; - badgeInteractiveTemplate = badgeInteractiveTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.html b/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.html deleted file mode 100644 index 5418dbfebb..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.html +++ /dev/null @@ -1,2 +0,0 @@ -Default Badge -Default Badge Small diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.scss b/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.scss deleted file mode 100644 index ba66f1314c..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -:host { - display: flex; - align-items: center; - gap: 16px; -} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.ts b/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.ts deleted file mode 100644 index 0f43f4eee4..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-demo/badge-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-badge-demo', - templateUrl: './badge-demo.component.html', - styleUrls: ['./badge-demo.component.scss'], -}) -export class BadgeDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.html b/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.html deleted file mode 100644 index c205e03b35..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.html +++ /dev/null @@ -1,151 +0,0 @@ -

Links

- - - - -

Buttons

-
- - - - -
- -
- - - - -
- -

Checkable

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -

Dismissable

-
- - Dismissible Badge - - - - Dismissible Badge Small - - -
- -
- - Nested Dismissible Badge - 10 - - - - Nested Dismissible Badge Small - 10 - - -
diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.scss b/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.scss deleted file mode 100644 index 215cde260c..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -:host { - display: flex; - flex-direction: column; - gap: 16px; -} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.ts b/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.ts deleted file mode 100644 index b37d91810e..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-interactive-demo/badge-interactive-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-badge-interactive-demo', - templateUrl: './badge-interactive-demo.component.html', - styleUrls: ['./badge-interactive-demo.component.scss'], -}) -export class BadgeInteractiveDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.html b/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.html deleted file mode 100644 index 91c027e8e2..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.html +++ /dev/null @@ -1,8 +0,0 @@ - - Nested Badge - 10 - - - Nested Badge Small - 10 - diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.scss b/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.scss deleted file mode 100644 index ba66f1314c..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -:host { - display: flex; - align-items: center; - gap: 16px; -} diff --git a/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.ts b/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.ts deleted file mode 100644 index 70d8f59c54..0000000000 --- a/packages/demo/src/app/bootstrap/components/badge/badge-nested-demo/badge-nested-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-badge-nested-demo', - templateUrl: './badge-nested-demo.component.html', - styleUrls: ['./badge-nested-demo.component.scss'], -}) -export class BadgeNestedDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component.html b/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component.html deleted file mode 100644 index 0f65c40657..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component.html +++ /dev/null @@ -1,30 +0,0 @@ -
-

Blockquotes

- -
- -

Basic blockquotes

- - - -

Nested blockquotes

- - - -

Just quotes without any extra styling

-
- -
- diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component.ts deleted file mode 100644 index f67990fb8e..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo-page/blockquotes-demo-page.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplateBasic = - require('!!raw-loader!../blockquotes-demo/blockquotes-demo.component.html').default; -const codeTemplateNested = - require('!!raw-loader!../nested-blockquotes-demo/nested-blockquotes-demo.component.html').default; -const codeTemplateQuotes = - require('!!raw-loader!../quotes-demo/quotes-demo.component.html').default; - -@Component({ - selector: 'app-blockquotes-demo-page', - templateUrl: './blockquotes-demo-page.component.html', -}) -export class BlockquotesDemoPageComponent { - codeTemplateBasic = codeTemplateBasic; - codeTemplateNested = codeTemplateNested; - codeTemplateQuotes = codeTemplateQuotes; -} diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo/blockquotes-demo.component.html b/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo/blockquotes-demo.component.html deleted file mode 100644 index 89878eb29d..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo/blockquotes-demo.component.html +++ /dev/null @@ -1,42 +0,0 @@ -
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

-
- -
- - Simple with q html tag. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere - erat a ante. - -
- -
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

-
- -
- -
-
-

- Blockquote with a longer text. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. - At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea - takimata sanctus est Lorem ipsum dolor sit amet. -

-
- -
- -
-

- Blockquote with a different language. Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Integer posuere erat a ante. -

-
diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo/blockquotes-demo.component.ts b/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo/blockquotes-demo.component.ts deleted file mode 100644 index 82fae132ce..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/blockquotes-demo/blockquotes-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-blockquotes-demo', - templateUrl: './blockquotes-demo.component.html', -}) -export class BlockquotesDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component.html b/packages/demo/src/app/bootstrap/components/blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component.html deleted file mode 100644 index 4aaab069ad..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component.html +++ /dev/null @@ -1,26 +0,0 @@ -
- - Nested quotes, consectetur adipiscing elit. - I'm nested! - Integer posuere erat a ante. - -
- -
- - It also works with a different language! Lorem ipsum dolor sit amet, consectetur adipiscing - elit. - I'm nested! - Integer posuere erat a ante. - -
- -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. -
- -
diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component.ts b/packages/demo/src/app/bootstrap/components/blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component.ts deleted file mode 100644 index a159957503..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-nested-blockquotes-demo', - templateUrl: './nested-blockquotes-demo.component.html', -}) -export class NestedBlockquotesDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/quotes-demo/quotes-demo.component.html b/packages/demo/src/app/bootstrap/components/blockquotes/quotes-demo/quotes-demo.component.html deleted file mode 100644 index 9f703725fb..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/quotes-demo/quotes-demo.component.html +++ /dev/null @@ -1,14 +0,0 @@ -Just quotes - -Just quotes with a different language - - - Long quotes, Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod - tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. - - - - Long quotes with nested inside, Lorem ipsum dolor sit amet, - consetetur sadipscing elitr - , sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, voluptua. - diff --git a/packages/demo/src/app/bootstrap/components/blockquotes/quotes-demo/quotes-demo.component.ts b/packages/demo/src/app/bootstrap/components/blockquotes/quotes-demo/quotes-demo.component.ts deleted file mode 100644 index cfa0fdf64b..0000000000 --- a/packages/demo/src/app/bootstrap/components/blockquotes/quotes-demo/quotes-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-quotes-demo', - templateUrl: './quotes-demo.component.html', -}) -export class QuotesDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/bootstrap-components.module.ts b/packages/demo/src/app/bootstrap/components/bootstrap-components.module.ts deleted file mode 100644 index 5614a0d323..0000000000 --- a/packages/demo/src/app/bootstrap/components/bootstrap-components.module.ts +++ /dev/null @@ -1,175 +0,0 @@ -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; - -import { HighlightModule } from 'ngx-highlightjs'; -import { HighlightProvider } from '../../common/highlight.provider'; - -import { AccordionDemoComponent } from './accordion/accordion-demo/accordion-demo.component'; -import { AccordionDemoPageComponent } from './accordion/accordion-demo-page/accordion-demo-page.component'; -import { AlertDemoComponent } from './alert/alert-demo/alert-demo.component'; -import { AlertDemoPageComponent } from './alert/alert-demo-page/alert-demo-page.component'; -import { BadgeDemoPageComponent } from './badge/badge-demo-page/badge-demo-page.component'; -import { BadgeDemoComponent } from './badge/badge-demo/badge-demo.component'; -import { BadgeNestedDemoComponent } from './badge/badge-nested-demo/badge-nested-demo.component'; -import { BadgeInteractiveDemoComponent } from './badge/badge-interactive-demo/badge-interactive-demo.component'; -import { ButtonGroupCheckboxDemoComponent } from './button-group/button-group-checkbox-demo/button-group-checkbox-demo.component'; -import { ButtonGroupDemoPageComponent } from './button-group/button-group-demo-page/button-group-demo-page.component'; -import { ButtonGroupRadioDemoComponent } from './button-group/button-group-radio-demo/button-group-radio-demo.component'; -import { ButtonGroupReactiveCheckboxDemoComponent } from './button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component'; -import { ButtonGroupReactiveRadioDemoComponent } from './button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component'; -import { ButtonsDemoComponent } from './buttons/buttons-demo/buttons-demo.component'; -import { ButtonsDemoPageComponent } from './buttons/buttons-demo-page/buttons-demo-page.component'; -import { BlockquotesDemoComponent } from './blockquotes/blockquotes-demo/blockquotes-demo.component'; -import { NestedBlockquotesDemoComponent } from './blockquotes/nested-blockquotes-demo/nested-blockquotes-demo.component'; -import { BlockquotesDemoPageComponent } from './blockquotes/blockquotes-demo-page/blockquotes-demo-page.component'; -import { FormSwitchDemoPageComponent } from './form-switch/form-switch-demo-page/form-switch-demo-page.component'; -import { FormSwitchDemoComponent } from './form-switch/form-switch-demo/form-switch-demo.component'; -import { TablesDemoComponent } from './tables/tables-demo/tables-demo.component'; -import { TablesDemoPageComponent } from './tables/tables-demo-page/tables-demo-page.component'; -import { TypographyDemoComponent } from './typography/typography-demo/typography-demo.component'; -import { TypographyDemoPageComponent } from './typography/typography-demo-page/typography-demo-page.component'; -import { FormsDemoComponent } from './forms/forms-demo/forms-demo.component'; -import { FormsDemoPageComponent } from './forms/forms-demo-page/forms-demo-page.component'; -import { FormSelectDemoComponent } from './form-select/form-select-demo/form-select-demo.component'; -import { FormSelectDemoPageComponent } from './form-select/form-select-demo-page/form-select-demo-page.component'; -import { FormSelectMultipleDemoComponent } from './form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component'; -import { FormSelectMultipleDemoPageComponent } from './form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component'; -import { FormTextareaDemoComponent } from './form-textarea/form-textarea-demo/form-textarea-demo.component'; -import { FormTextareaDemoPageComponent } from './form-textarea/form-textarea-demo-page/form-textarea-demo-page.component'; -import { FormControlDemoComponent } from './form-control/form-control-demo/form-control-demo.component'; -import { FormControlDemoPageComponent } from './form-control/form-control-demo-page/form-control-demo-page.component'; -import { FormRangeDemoComponent } from './form-range/form-range-demo/form-range-demo.component'; -import { FormRangeCustomDemoModule } from './form-range/form-range-custom-demo/form-range-custom-demo.module'; -import { FormRangeDemoPageComponent } from './form-range/form-range-demo-page/form-range-demo-page.component'; -import { FormRadioDemoComponent } from './form-radio/form-radio-demo/form-radio-demo.component'; -import { FormRadioDemoPageComponent } from './form-radio/form-radio-demo-page/form-radio-demo-page.component'; -import { FormCheckDemoComponent } from './form-check/form-check-demo/form-check-demo.component'; -import { FormCheckDemoPageComponent } from './form-check/form-check-demo-page/form-check-demo-page.component'; -import { BackgroundDemoPageComponent } from './background/background-demo-page/background-demo-page.component'; -import { BackgroundDemoComponent } from './background/background-demo/background-demo.component'; -import { ToastDemoComponent } from './alert/toast-demo/toast-demo.component'; -import { ActionAlertDemoComponent } from './alert/action-alert-demo/action-alert-demo.component'; -import { OverlayNotificationDemoComponent } from './alert/overlay-notification-demo/overlay-notification-demo.component'; -import { DotNotificationDemoComponent } from './alert/dot-notification-demo/dot-notification-demo.component'; -import { ButtonNotificationDemoComponent } from './alert/button-notification-demo/button-notification-demo.component'; -import { FormFileDemoComponent } from './form-file/form-file-demo/form-file-demo.component'; -import { FormFileDemoPageComponent } from './form-file/form-file-demo-page/form-file-demo-page.component'; -import { CardDemoComponent } from './card/card-demo/card-demo.component'; -import { CardDemoPageComponent } from './card/card-demo-page/card-demo-page.component'; -import { ComplexCardDemoComponent } from './card/complex-card-demo/complex-card-demo.component'; -import { PostCardDemoComponent } from './card/post-card-demo/post-card-demo.component'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { PostCommonModule } from 'src/app/common/post-common.module'; -import { QuotesDemoComponent } from './blockquotes/quotes-demo/quotes-demo.component'; -import { DefaultButtonsComponent } from './buttons/buttons-demo/default-buttons/default-buttons.component'; -import { ButtonTagsComponent } from './buttons/buttons-demo/button-tags/button-tags.component'; -import { ButtonSizesComponent } from './buttons/buttons-demo/button-sizes/button-sizes.component'; -import { IconButtonsComponent } from './buttons/buttons-demo/icon-buttons/icon-buttons.component'; -import { IconButtonsTextComponent } from './buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component'; -import { AnimatedButtonsComponent } from './buttons/buttons-demo/animated-buttons/animated-buttons.component'; -import { AccentButtonsComponent } from './buttons/buttons-demo/accent-buttons/accent-buttons.component'; -import { InvertedButtonsComponent } from './buttons/buttons-demo/inverted-buttons/inverted-buttons.component'; -import { ContextualButtonsComponent } from './buttons/buttons-demo/contextual-buttons/contextual-buttons.component'; -import { ButtonDisabledComponent } from './buttons/buttons-demo/button-disabled/button-disabled.component'; - -@NgModule({ - imports: [ - CommonModule, - RouterModule, - NgbModule, - BrowserAnimationsModule, - FormsModule, - ReactiveFormsModule, - PostCommonModule, - HighlightModule, - FormRangeCustomDemoModule, - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA], - declarations: [ - AccordionDemoComponent, - AccordionDemoPageComponent, - AlertDemoComponent, - AlertDemoPageComponent, - BadgeDemoPageComponent, - BadgeDemoComponent, - BadgeNestedDemoComponent, - BadgeInteractiveDemoComponent, - ButtonsDemoComponent, - ButtonsDemoPageComponent, - ButtonGroupCheckboxDemoComponent, - ButtonGroupReactiveCheckboxDemoComponent, - ButtonGroupRadioDemoComponent, - ButtonGroupReactiveRadioDemoComponent, - ButtonGroupDemoPageComponent, - BlockquotesDemoComponent, - NestedBlockquotesDemoComponent, - BlockquotesDemoPageComponent, - TablesDemoComponent, - TablesDemoPageComponent, - TypographyDemoComponent, - TypographyDemoPageComponent, - FormsDemoComponent, - FormsDemoPageComponent, - FormSelectDemoComponent, - FormSelectDemoPageComponent, - FormSelectMultipleDemoComponent, - FormSelectMultipleDemoPageComponent, - FormTextareaDemoComponent, - FormTextareaDemoPageComponent, - FormControlDemoComponent, - FormControlDemoPageComponent, - FormRangeDemoComponent, - FormRangeDemoPageComponent, - FormFileDemoComponent, - FormFileDemoPageComponent, - FormRadioDemoComponent, - FormRadioDemoPageComponent, - FormCheckDemoComponent, - FormCheckDemoPageComponent, - FormSwitchDemoComponent, - FormSwitchDemoPageComponent, - BackgroundDemoPageComponent, - BackgroundDemoComponent, - ToastDemoComponent, - ActionAlertDemoComponent, - OverlayNotificationDemoComponent, - DotNotificationDemoComponent, - ButtonNotificationDemoComponent, - CardDemoComponent, - CardDemoPageComponent, - ComplexCardDemoComponent, - PostCardDemoComponent, - QuotesDemoComponent, - DefaultButtonsComponent, - ButtonTagsComponent, - ButtonSizesComponent, - IconButtonsComponent, - IconButtonsTextComponent, - AnimatedButtonsComponent, - AccentButtonsComponent, - InvertedButtonsComponent, - ContextualButtonsComponent, - ButtonDisabledComponent, - ], - exports: [ - AlertDemoComponent, - AlertDemoPageComponent, - BadgeDemoPageComponent, - BadgeDemoComponent, - ButtonsDemoComponent, - ButtonsDemoPageComponent, - ButtonGroupDemoPageComponent, - BlockquotesDemoComponent, - BlockquotesDemoPageComponent, - TablesDemoComponent, - TablesDemoPageComponent, - TypographyDemoComponent, - TypographyDemoPageComponent, - CardDemoPageComponent, - ], - providers: [HighlightProvider.Config], -}) -export class BootstrapComponentsModule {} diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-checkbox-demo/button-group-checkbox-demo.component.html b/packages/demo/src/app/bootstrap/components/button-group/button-group-checkbox-demo/button-group-checkbox-demo.component.html deleted file mode 100644 index 4ca3d8bbfa..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-checkbox-demo/button-group-checkbox-demo.component.html +++ /dev/null @@ -1,38 +0,0 @@ -
- - - - - - - - - - - -
diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-checkbox-demo/button-group-checkbox-demo.component.ts b/packages/demo/src/app/bootstrap/components/button-group/button-group-checkbox-demo/button-group-checkbox-demo.component.ts deleted file mode 100644 index 8ae23d5376..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-checkbox-demo/button-group-checkbox-demo.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-button-group-checkbox-demo', - templateUrl: './button-group-checkbox-demo.component.html', -}) -export class ButtonGroupCheckboxDemoComponent { - checkboxes = { - one: true, - two: false, - three: true, - four: false, - }; -} diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component.html b/packages/demo/src/app/bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component.html deleted file mode 100644 index 320f1e97fe..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component.html +++ /dev/null @@ -1,128 +0,0 @@ -
-

Button Group

- -
- -
-

Checkbox buttons

- -
-
- - -
-
-
- - -
-
- - -
-
-
- - - - - - - - - - -
- -
-

Radio buttons

- -
-
- - -
-
-
- - -
-
- - -
-
-
- - - - - - - - - - -
- -
-

Bad example

-

- The only supported button variant for button groups is - .btn-secondary - . -

-
- - - -
-
diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component.ts deleted file mode 100644 index 50c27c3021..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-demo-page/button-group-demo-page.component.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Component } from '@angular/core'; -const checkboxTemplate = - require('!!raw-loader!../button-group-checkbox-demo/button-group-checkbox-demo.component.html').default; -const checkboxController = - require('!!raw-loader!../button-group-checkbox-demo/button-group-checkbox-demo.component.ts').default; -const reactiveCheckboxTemplate = - require('!!raw-loader!../button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.html').default; -const reactiveCheckboxController = - require('!!raw-loader!../button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.ts').default; -const radioTemplate = - require('!!raw-loader!../button-group-radio-demo/button-group-radio-demo.component.html').default; -const radioController = - require('!!raw-loader!../button-group-radio-demo/button-group-radio-demo.component.ts').default; -const reactiveRadioTemplate = - require('!!raw-loader!../button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.html').default; -const reactiveRadioController = - require('!!raw-loader!../button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.ts').default; - -enum FormType { - TemplateDriven, - Reactive, -} - -@Component({ - selector: 'app-button-group-demo-page', - templateUrl: './button-group-demo-page.component.html', -}) -export class ButtonGroupDemoPageComponent { - readonly FormType = FormType; - checkboxType = FormType.TemplateDriven; - radioType = FormType.TemplateDriven; - - checkboxTemplate = checkboxTemplate; - checkboxController = checkboxController; - reactiveCheckboxTemplate = reactiveCheckboxTemplate; - reactiveCheckboxController = reactiveCheckboxController; - radioTemplate = radioTemplate; - radioController = radioController; - reactiveRadioTemplate = reactiveRadioTemplate; - reactiveRadioController = reactiveRadioController; -} diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-radio-demo/button-group-radio-demo.component.html b/packages/demo/src/app/bootstrap/components/button-group/button-group-radio-demo/button-group-radio-demo.component.html deleted file mode 100644 index 3eff37aeac..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-radio-demo/button-group-radio-demo.component.html +++ /dev/null @@ -1,47 +0,0 @@ -
- - - - - - - - - - - -
diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-radio-demo/button-group-radio-demo.component.ts b/packages/demo/src/app/bootstrap/components/button-group/button-group-radio-demo/button-group-radio-demo.component.ts deleted file mode 100644 index b52b7bfc55..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-radio-demo/button-group-radio-demo.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -enum Choice { - One, - Two, - Three, - Four, -} - -@Component({ - selector: 'app-button-group-radio-demo', - templateUrl: './button-group-radio-demo.component.html', -}) -export class ButtonGroupRadioDemoComponent { - readonly Choice = Choice; - radio = Choice.Two; -} diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.html b/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.html deleted file mode 100644 index 2f76f2ed53..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.html +++ /dev/null @@ -1,37 +0,0 @@ -
- - - - - - - - - - - -
diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.ts b/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.ts deleted file mode 100644 index 0636f8d15a..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-checkbox-demo/button-group-reactive-checkbox-demo.component.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Component } from '@angular/core'; -import { FormBuilder, FormGroup } from '@angular/forms'; - -@Component({ - selector: 'app-button-group-reactive-checkbox-demo', - templateUrl: './button-group-reactive-checkbox-demo.component.html', -}) -export class ButtonGroupReactiveCheckboxDemoComponent { - checkboxes: FormGroup; - - constructor(fb: FormBuilder) { - this.checkboxes = fb.group({ - one: true, - two: false, - three: true, - four: { value: false, disabled: true }, - }); - } -} diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.html b/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.html deleted file mode 100644 index b4fa256d4e..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.html +++ /dev/null @@ -1,42 +0,0 @@ -
- - - - - - - - - - - -
diff --git a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.ts b/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.ts deleted file mode 100644 index 8e168b0873..0000000000 --- a/packages/demo/src/app/bootstrap/components/button-group/button-group-reactive-radio-demo/button-group-reactive-radio-demo.component.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Component } from '@angular/core'; -import { FormControl } from '@angular/forms'; - -enum Choice { - One, - Two, - Three, - Four, -} - -@Component({ - selector: 'app-button-group-reactive-radio-demo', - templateUrl: './button-group-reactive-radio-demo.component.html', -}) -export class ButtonGroupReactiveRadioDemoComponent { - readonly Choice = Choice; - radio = new FormControl(Choice.Two); - fourthIsDisabled = true; -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component.html deleted file mode 100644 index fa806f5522..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component.html +++ /dev/null @@ -1,6 +0,0 @@ -
-

Buttons

- -
- - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component.ts deleted file mode 100644 index ac09cc5838..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo-page/buttons-demo-page.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../buttons-demo/buttons-demo.component.html').default; -@Component({ - selector: 'app-buttons-demo-page', - templateUrl: './buttons-demo-page.component.html', -}) -export class ButtonsDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.html deleted file mode 100644 index 3792de311a..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.spec.ts deleted file mode 100644 index 905da8f52b..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AccentButtonsComponent } from './accent-buttons.component'; - -describe('AccentButtonsComponent', () => { - let component: AccentButtonsComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [AccentButtonsComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(AccentButtonsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.ts deleted file mode 100644 index fe9995db44..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/accent-buttons/accent-buttons.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-accent-buttons', - templateUrl: './accent-buttons.component.html', -}) -export class AccentButtonsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.html deleted file mode 100644 index e8ad0bd36c..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.spec.ts deleted file mode 100644 index 34e719ec87..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AnimatedButtonsComponent } from './animated-buttons.component'; - -describe('AnimatedButtonsComponent', () => { - let component: AnimatedButtonsComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [AnimatedButtonsComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(AnimatedButtonsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.ts deleted file mode 100644 index 9bf9a79fd9..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/animated-buttons/animated-buttons.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-animated-buttons', - templateUrl: './animated-buttons.component.html', -}) -export class AnimatedButtonsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-disabled/button-disabled.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-disabled/button-disabled.component.html deleted file mode 100644 index 5ca68c878c..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-disabled/button-disabled.component.html +++ /dev/null @@ -1,11 +0,0 @@ -
- - - -
- -
- - - -
diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-disabled/button-disabled.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-disabled/button-disabled.component.ts deleted file mode 100644 index 4d1d9d396c..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-disabled/button-disabled.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-button-disabled', - templateUrl: './button-disabled.component.html', -}) -export class ButtonDisabledComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } - - get templateString() { - return this.elementRef.nativeElement.innerHTML; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.html deleted file mode 100644 index e4f283a99e..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.spec.ts deleted file mode 100644 index 142f3ec960..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ButtonSizesComponent } from './button-sizes.component'; - -describe('ButtonSizesComponent', () => { - let component: ButtonSizesComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ButtonSizesComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(ButtonSizesComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.ts deleted file mode 100644 index 39357bc439..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-sizes/button-sizes.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-button-sizes', - templateUrl: './button-sizes.component.html', -}) -export class ButtonSizesComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-tags/button-tags.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-tags/button-tags.component.html deleted file mode 100644 index 9d675d4e38..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-tags/button-tags.component.html +++ /dev/null @@ -1,5 +0,0 @@ -Link - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-tags/button-tags.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-tags/button-tags.component.ts deleted file mode 100644 index 9015309b9d..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/button-tags/button-tags.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-button-tags', - templateUrl: './button-tags.component.html', -}) -export class ButtonTagsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.component.html deleted file mode 100644 index d2c65729b9..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.component.html +++ /dev/null @@ -1,155 +0,0 @@ -

Default buttons

-
-

- Use these buttons in most situations. If you don't want the animation, you can leave out the - .btn-animated - class. -

- - - -

Disabled buttons

-
-

Accessibility

-

Disabled controls are an accessibility anti-pattern for various reasons:

-
    -
  1. - They are not focussable, screen reader users or keyboard users cannot focus the button and - might miss information that is hidden e.g. in a tooltip. -
  2. -
  3. The color contrast of disabled button is very low.
  4. -
-

- Try to avoid disabled buttons by displaying an error message for invalid forms or hiding the - control if a user cannot perform a certain action. -

-
- - -
- -

Animated

-
-

The animated buttons need a span around the text!

- - -
- -

Supported button tags

-
- - -
- -

Sizes

-
- - -
- -

Icon buttons

-
- - -
- -

Icon buttons with text

-
-

- Icon buttons with text should not have the class - .btn-icon - , otherwise the horizontal padding is not correct. -

-
-
- - -
- -

Accent colors

-
- - -
- -

Inverted buttons

-

- Inverted buttons don't need special classes anymore, just use any of the - background classes - to set the background and you're done for the day. -

-
-
- -
- -
- -

Contextual Buttons

-
-
-
-

These are only allowed for intranet applications! The link button cannot be animated.

-
-
- - -
diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.component.ts deleted file mode 100644 index 29c98d6984..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-buttons-demo', - templateUrl: './buttons-demo.component.html', -}) -export class ButtonsDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.style.scss b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.style.scss deleted file mode 100644 index 34d274aa81..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/buttons-demo.style.scss +++ /dev/null @@ -1,10 +0,0 @@ -section { - .btn + .btn { - margin-left: 1rem; - } -} - -.pi-3193-white { - background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23FFF' d='M26 1.067l-23.067 23.067-1.6 6.533 6.533-1.6 23.067-23.067-4.933-4.933zM29.067 6l-1.733 1.733-3.067-3.067 1.733-1.733 3.067 3.067zM26.4 8.667l-18.267 18.267-3.067-3.067 18.267-18.267 3.067 3.067zM3.067 28.933l1.067-4 3.067 3.067-4.133 0.933z'%3E%3C/path%3E%3C/svg%3E"); - border-color: #fff; -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.html deleted file mode 100644 index b8cd6667b5..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.spec.ts deleted file mode 100644 index dc1fdfa52e..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ContextualButtonsComponent } from './contextual-buttons.component'; - -describe('ContextualButtonsComponent', () => { - let component: ContextualButtonsComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ContextualButtonsComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(ContextualButtonsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.ts deleted file mode 100644 index 9b1ef94ee5..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/contextual-buttons/contextual-buttons.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-contextual-buttons', - templateUrl: './contextual-buttons.component.html', -}) -export class ContextualButtonsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/default-buttons/default-buttons.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/default-buttons/default-buttons.component.html deleted file mode 100644 index bc138dbcc6..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/default-buttons/default-buttons.component.html +++ /dev/null @@ -1,11 +0,0 @@ -
- - - -
- -
- - - -
diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/default-buttons/default-buttons.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/default-buttons/default-buttons.component.ts deleted file mode 100644 index fed20cc587..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/default-buttons/default-buttons.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-default-buttons', - templateUrl: './default-buttons.component.html', -}) -export class DefaultButtonsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } - - get templateString() { - return this.elementRef.nativeElement.innerHTML; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.html deleted file mode 100644 index bf52fd1ffe..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.html +++ /dev/null @@ -1,36 +0,0 @@ -

- - - - -

-

- - - - -

diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.spec.ts deleted file mode 100644 index b12343ea76..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { IconButtonsTextComponent } from './icon-buttons-text.component'; - -describe('IconButtonsTextComponent', () => { - let component: IconButtonsTextComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [IconButtonsTextComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(IconButtonsTextComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.ts deleted file mode 100644 index 17423616b1..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons-text/icon-buttons-text.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-icon-buttons-text', - templateUrl: './icon-buttons-text.component.html', -}) -export class IconButtonsTextComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.html deleted file mode 100644 index fee171c4d8..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.spec.ts deleted file mode 100644 index a8412327b7..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { IconButtonsComponent } from './icon-buttons.component'; - -describe('IconButtonsComponent', () => { - let component: IconButtonsComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [IconButtonsComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(IconButtonsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.ts deleted file mode 100644 index 4e23f559c1..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/icon-buttons/icon-buttons.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-icon-buttons', - templateUrl: './icon-buttons.component.html', -}) -export class IconButtonsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.html b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.html deleted file mode 100644 index 94817e3b09..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.spec.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.spec.ts deleted file mode 100644 index 869400ba3c..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { InvertedButtonsComponent } from './inverted-buttons.component'; - -describe('InvertedButtonsComponent', () => { - let component: InvertedButtonsComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [InvertedButtonsComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(InvertedButtonsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.ts b/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.ts deleted file mode 100644 index e17efe1392..0000000000 --- a/packages/demo/src/app/bootstrap/components/buttons/buttons-demo/inverted-buttons/inverted-buttons.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef } from '@angular/core'; - -@Component({ - selector: 'app-inverted-buttons', - templateUrl: './inverted-buttons.component.html', -}) -export class InvertedButtonsComponent { - elementRef: ElementRef; - - constructor(elementRef: ElementRef) { - this.elementRef = elementRef; - } -} diff --git a/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.html b/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.html deleted file mode 100644 index 80dc111583..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.html +++ /dev/null @@ -1,36 +0,0 @@ -
-
-

Cards

- -
- -

Basic examples (Adopted from bootstrap website)

-

For more information on those examples, check the bootstrap doc.

- - -

Complex spacing examples (Adopted from bootstrap website)

- - -

Post example (Actual use case)

-

- To use background-color utilities which span the entire viewport, you need to use a container - nested within a container fluid! Make sure you are not setting up a container around the entire - content. -

-
- -
- -
diff --git a/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.spec.ts b/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.spec.ts deleted file mode 100644 index 33045066cc..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { CardDemoPageComponent } from './card-demo-page.component'; - -describe('CardDemoPageComponent', () => { - let component: CardDemoPageComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [CardDemoPageComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(CardDemoPageComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.ts deleted file mode 100644 index 0fc653b08a..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/card-demo-page/card-demo-page.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Component } from '@angular/core'; -const cardDemo = require('!!raw-loader!../card-demo/card-demo.component.html').default; -const complexCardDemo = - require('!!raw-loader!../complex-card-demo/complex-card-demo.component.html').default; -const postCardDemo = - require('!!raw-loader!../post-card-demo/post-card-demo.component.html').default; - -@Component({ - selector: 'app-card-demo-page', - templateUrl: './card-demo-page.component.html', -}) -export class CardDemoPageComponent { - cardDemo = cardDemo; - complexCardDemo = complexCardDemo; - postCardDemo = postCardDemo; - - public imgPath: string = 'assets/images/computer-stuff.jpg'; -} diff --git a/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.html b/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.html deleted file mode 100644 index 933d753372..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.html +++ /dev/null @@ -1,159 +0,0 @@ -
-
-
-
- -
-
Card title
-

- Some quick example text to build on the card title and make up the bulk of the card's - content. -

- Go somewhere -
-
-
-
-
-
This is some text within a card body.
-
-
-
-
-
-
Card title
-
Card subtitle
-

- Some quick example text to build on the card title and make up the bulk of the card's - content. -

- Card link - Another link -
-
-
-
-
- -
-

- Some quick example text to build on the card title and make up the bulk of the card's - content. -

-
-
-
-
-
-
    -
  • Cras justo odio
  • -
  • Dapibus ac facilisis in
  • -
  • Vestibulum at eros
  • -
-
-
-
-
-
Featured
-
    -
  • Cras justo odio
  • -
  • Dapibus ac facilisis in
  • -
  • Vestibulum at eros
  • -
-
-
-
-
- -
-
Card title
-

- Some quick example text to build on the card title and make up the bulk of the card's - content. -

-
-
    -
  • Cras justo odio
  • -
  • Dapibus ac facilisis in
  • -
  • Vestibulum at eros
  • -
- -
-
-
-
-
Featured
-
-
Special title treatment
-

- With supporting text below as a natural lead-in to additional content. -

- Go somewhere -
-
-
-
-
-
Featured
-
-
Special title treatment
-

- With supporting text below as a natural lead-in to additional content. -

- Go somewhere -
-
-
-
-
-
Quote
-
-
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a - ante. -

-
- -
-
-
-
-
-
-
Featured
-
-
Special title treatment
-

- With supporting text below as a natural lead-in to additional content. -

- Go somewhere -
- -
-
-
-
-
-

Post-Example

-
-
-
Special title treatment
-

Example for white cards (set class: card card-white)

- Go somewhere -
- -
-
-
-
diff --git a/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.spec.ts b/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.spec.ts deleted file mode 100644 index 348af8724b..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { CardDemoComponent } from './card-demo.component'; - -describe('CardDemoComponent', () => { - let component: CardDemoComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [CardDemoComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(CardDemoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.ts b/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.ts deleted file mode 100644 index eae91ae6d9..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/card-demo/card-demo.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component, Input } from '@angular/core'; - -@Component({ - selector: 'app-card-demo', - templateUrl: './card-demo.component.html', -}) -export class CardDemoComponent { - @Input() - public imagePath: string; -} diff --git a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html deleted file mode 100644 index 56acd20ed4..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html +++ /dev/null @@ -1,151 +0,0 @@ -

- The bootstrap sizing utilities & contextual classes can be used as shown on the bootstrap - documentation. -

-

The nav's (tabs or pills) can't be used inside the card-header with our implementation.

- -

Images in cards

- -
-
-
- -
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional - content. This content is a little bit longer. -

-

Last updated 3 mins ago

-
-
-
-
-
-
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional - content. This content is a little bit longer. -

-

Last updated 3 mins ago

-
- -
-
-
- -

Bad example

-
- Don't use this in production. It's very difficult for content editors to always ensure that text - is legible on an image for every browser size and all different languages. -
-
-
-
- -
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional - content. This content is a little bit longer. -

-

Last updated 3 mins ago

-
-
-
-
- -

Card groups

-
-
-

Card groups do not work correctly with images in IE.

-
-
- -
-
- -
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional content. - This content is a little bit longer. -

-

Last updated 3 mins ago

-
-
-
- -
-
Card title
-

- This card has supporting text below as a natural lead-in to additional content. -

-

Last updated 3 mins ago

-
-
-
- -
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional content. - This card has even longer content than the first to show that equal height action. -

-

Last updated 3 mins ago

-
-
-
- -
-
- -
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional content. - This content is a little bit longer. -

-
- -
-
- -
-
Card title
-

- This card has supporting text below as a natural lead-in to additional content. -

-
- -
-
- -
-
Card title
-

- This is a wider card with supporting text below as a natural lead-in to additional content. - This card has even longer content than the first to show that equal height action. -

-
- -
-
- -

Card columns

-

Card columns can be checked out in the Swiss Post example below.

- -

- Default - column-count: 2 - , breakpoint md and smaller - column-count: 1 - . This can be adjusted as necessary. -

diff --git a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.spec.ts b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.spec.ts deleted file mode 100644 index ac918c4358..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { ComplexCardDemoComponent } from './complex-card-demo.component'; - -describe('ComplexCardDemoComponent', () => { - let component: ComplexCardDemoComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ComplexCardDemoComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ComplexCardDemoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.ts b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.ts deleted file mode 100644 index 166c9e04c5..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component, Input } from '@angular/core'; - -@Component({ - selector: 'app-complex-card-demo', - templateUrl: './complex-card-demo.component.html', -}) -export class ComplexCardDemoComponent { - @Input() - public imagePath: string; -} diff --git a/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.html b/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.html deleted file mode 100644 index 5dd166e326..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.html +++ /dev/null @@ -1,142 +0,0 @@ -
-
-
-
- -
-
-
-

Benutzerangaben

-
- - - -
-
-
-
-
- Herr -
- Hans Muster -
-
- Musterstrasse 1 -
- 1234 Musterstadt -
-
- -
-
-

- Sprache: - Deutsch -

- -
-
- -
- - -
-
-
-

Telefonnummern

-
-
-
-
-

079 000 00 00

- nicht bestätigt -
-

076 111 11 11

-
-
- -
-
- -
- -
-
-
-

Guthaben & Zahlungsmittel

-
- - - -
-
-
-
-
-

CHF 25.00

-

- Debit Direct - ****** 346 -

-
-
- -
-
-
- -
- - -
-
-
-

Login & Sicherheit

-
- - - -
-
-
-
-

hans.muster@post.ch

- -
-
- -
- - -
-
-
-

Newsletter

-
-
-
-

Newsletter Postshop aboniert

- -
-
- -
-
-
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.spec.ts b/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.spec.ts deleted file mode 100644 index 4e1a9ffe39..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { PostCardDemoComponent } from './post-card-demo.component'; - -describe('PostCardDemoComponent', () => { - let component: PostCardDemoComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [PostCardDemoComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(PostCardDemoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.ts b/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.ts deleted file mode 100644 index 5675cb0e6e..0000000000 --- a/packages/demo/src/app/bootstrap/components/card/post-card-demo/post-card-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-post-card-demo', - templateUrl: './post-card-demo.component.html', -}) -export class PostCardDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component.html deleted file mode 100644 index d2126c0fc5..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Forms checkbox

- -
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component.ts deleted file mode 100644 index 6a6a955152..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo-page/form-check-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-check-demo/form-check-demo.component.html').default; - -@Component({ - selector: 'app-form-check-demo-page', - templateUrl: './form-check-demo-page.component.html', -}) -export class FormCheckDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo/form-check-demo.component.html b/packages/demo/src/app/bootstrap/components/form-check/form-check-demo/form-check-demo.component.html deleted file mode 100644 index f7ede66a7a..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo/form-check-demo.component.html +++ /dev/null @@ -1,152 +0,0 @@ -

Form check examples

-
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- - -
-
- - -
-
-
-
- -

Inline checks

-
- - -
-
- - -
- -

Check without label

- - -

Check with long label

-
-
-
- - -
-
-
- -

Validation

-
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
diff --git a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo/form-check-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-check/form-check-demo/form-check-demo.component.ts deleted file mode 100644 index c7718bb8ef..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-check/form-check-demo/form-check-demo.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, ElementRef, ViewChildren, QueryList, AfterViewInit } from '@angular/core'; - -@Component({ - selector: 'app-form-check-demo', - templateUrl: './form-check-demo.component.html', -}) -export class FormCheckDemoComponent implements AfterViewInit { - @ViewChildren('indeterminate') indeterminateChecks: QueryList; - - ngAfterViewInit(): void { - this.indeterminateChecks.forEach(check => (check.nativeElement.indeterminate = true)); - } -} diff --git a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component.html deleted file mode 100644 index 402c688878..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

Form control

- -
- -
-

- We're deprecating the regular and medium sizes for text input, textarea and select. -

-
- This will make it easier to select the appropriate size variant: small for internal - applications, large for external applications. -
- .form-control-rg - and - .form-control-md - are deprecated and will be removed in the next major version. -
-
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component.ts deleted file mode 100644 index b7d83fa0b6..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo-page/form-control-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-control-demo/form-control-demo.component.html').default; - -@Component({ - selector: 'app-form-control-demo-page', - templateUrl: './form-control-demo-page.component.html', -}) -export class FormControlDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.html b/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.html deleted file mode 100644 index ebca3b67cf..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.html +++ /dev/null @@ -1,56 +0,0 @@ -
- - -
- - - - - - - - - -
- - -

Error message

-
- -
- - -

Success message (optional)

-
diff --git a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.scss b/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.scss deleted file mode 100644 index cdfe2145f2..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.scss +++ /dev/null @@ -1,6 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; - -.form-floating + .form-control, -.form-control + .form-control { - margin-top: post.$size-regular; -} diff --git a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.ts deleted file mode 100644 index b6e0b5c200..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-control/form-control-demo/form-control-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-form-control-demo', - templateUrl: './form-control-demo.component.html', - styleUrls: ['./form-control-demo.component.scss'], -}) -export class FormControlDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component.html deleted file mode 100644 index f51b09c126..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

Form file

- -
- -
-

- We're deprecating the regular and medium sizes for text input, textarea and select. -

-
- This will make it easier to select the appropriate size variant: small for internal - applications, large for external applications. -
- .form-control-rg - and - .form-control-md - are deprecated and will be removed in the next major version. -
-
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component.ts deleted file mode 100644 index 6df0edf652..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo-page/form-file-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-file-demo/form-file-demo.component.html').default; - -@Component({ - selector: 'app-form-file-demo-page', - templateUrl: './form-file-demo-page.component.html', -}) -export class FormFileDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.html b/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.html deleted file mode 100644 index baecac3ac5..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.html +++ /dev/null @@ -1,31 +0,0 @@ -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -

Error message

-
- -
- - -

Success message (optional)

-
diff --git a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.scss b/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.scss deleted file mode 100644 index 4cd9a272da..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.scss +++ /dev/null @@ -1 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; diff --git a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.ts deleted file mode 100644 index 26a50d1ad7..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-file/form-file-demo/form-file-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-form-file-demo', - templateUrl: './form-file-demo.component.html', - styleUrls: ['./form-file-demo.component.scss'], -}) -export class FormFileDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component.html deleted file mode 100644 index fa1096ac54..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Form radio button

- -
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component.ts deleted file mode 100644 index 75ae84775e..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo-page/form-radio-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-radio-demo/form-radio-demo.component.html').default; - -@Component({ - selector: 'app-form-radio-demo-page', - templateUrl: './form-radio-demo-page.component.html', -}) -export class FormRadioDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo/form-radio-demo.component.html b/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo/form-radio-demo.component.html deleted file mode 100644 index 106db587ec..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo/form-radio-demo.component.html +++ /dev/null @@ -1,147 +0,0 @@ -

Form radio examples

-
-
-
- - -
-
- - -
-
- -
-
-
- - -
-
- - -
-
-
-
- -

Inline radios

-
- - -
-
- - -
- -

Radio without label

- - -

Radio with long label

-
-
-
- - -
-
-
- -

Validation

-
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
diff --git a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo/form-radio-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo/form-radio-demo.component.ts deleted file mode 100644 index 2a96c786e5..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-radio/form-radio-demo/form-radio-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-form-radio-demo', - templateUrl: './form-radio-demo.component.html', -}) -export class FormRadioDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.html b/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.html deleted file mode 100644 index ebf4bd1ee9..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - -
{{ displayedValue }}%
- -
-
- - -
-
- - -
-
- - - -

Error message

- - - -

Success message (optional)

diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.scss b/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.scss deleted file mode 100644 index 5c3d8d744b..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; - -label { - margin-top: post.$size-regular; -} diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.ts deleted file mode 100644 index 76ab1411d5..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.component.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component } from '@angular/core'; -import { UntypedFormControl } from '@angular/forms'; - -@Component({ - selector: 'app-form-range-custom', - templateUrl: 'form-range-custom-demo.component.html', - styleUrls: ['form-range-custom-demo.component.scss'], -}) -export class FormRangeCustomDemoComponent { - templateDrivenValue = 67; - displayedValue = 54; - controlledValue = 28; - reactiveValue: UntypedFormControl; - - constructor() { - this.reactiveValue = new UntypedFormControl('31'); - } -} diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.module.ts b/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.module.ts deleted file mode 100644 index 9d86948c6a..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-custom-demo/form-range-custom-demo.module.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { NgModule } from '@angular/core'; -import { FormRangeCustomDemoComponent } from './form-range-custom-demo.component'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; - -@NgModule({ - declarations: [FormRangeCustomDemoComponent], - exports: [FormRangeCustomDemoComponent], - imports: [CommonModule, FormsModule, ReactiveFormsModule], -}) -export class FormRangeCustomDemoModule {} diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component.html deleted file mode 100644 index ce2aec41d9..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component.html +++ /dev/null @@ -1,24 +0,0 @@ -
-

Form range

- -
- -
- - -
- -
-

Basic form range

-

Range inputs can still work without the directive:

- - -
diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component.ts deleted file mode 100644 index dd63c1fd76..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo-page/form-range-demo-page.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -const basicCodeTemplate = - require('!!raw-loader!../form-range-demo/form-range-demo.component.html').default; -const customCodeTemplate = - require('!!raw-loader!../form-range-custom-demo/form-range-custom-demo.component.html').default; - -@Component({ - selector: 'app-form-range-demo-page', - templateUrl: './form-range-demo-page.component.html', -}) -export class FormRangeDemoPageComponent { - basicCodeTemplate = basicCodeTemplate; - customCodeTemplate = customCodeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo/form-range-demo.component.html b/packages/demo/src/app/bootstrap/components/form-range/form-range-demo/form-range-demo.component.html deleted file mode 100644 index 92e1ef1e1f..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo/form-range-demo.component.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo/form-range-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-range/form-range-demo/form-range-demo.component.ts deleted file mode 100644 index 48876be251..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-range/form-range-demo/form-range-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-form-range-demo', - templateUrl: './form-range-demo.component.html', -}) -export class FormRangeDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component.html deleted file mode 100644 index 227b08bbac..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

Form select multiple

- -
- -
-

- We're deprecating the regular and medium sizes for text input, textarea and select. -

-
- This will make it easier to select the appropriate size variant: small for internal - applications, large for external applications. -
- .form-select-rg - and - .form-select-md - are deprecated and will be removed in the next major version. -
-
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component.ts deleted file mode 100644 index e8d2439f52..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo-page/form-select-multiple-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-select-multiple-demo/form-select-multiple-demo.component.html').default; - -@Component({ - selector: 'app-multiple-select-demo-page', - templateUrl: './form-select-multiple-demo-page.component.html', -}) -export class FormSelectMultipleDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component.html b/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component.html deleted file mode 100644 index ef47e708f8..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component.html +++ /dev/null @@ -1,68 +0,0 @@ -

- Using the - multiple - attribute -

- - -

- Using the - size - attribute -

-
-

- In Safari on macOS, the size attribute only works as expected from 4+. This is a - - known issue - - . -

-
- - -
- - -

Error message

-
- -
- - -

Success message (optional)

-
diff --git a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component.ts deleted file mode 100644 index 4d57702e97..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select-multiple/form-select-multiple-demo/form-select-multiple-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-multiple-select-demo', - templateUrl: './form-select-multiple-demo.component.html', -}) -export class FormSelectMultipleDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component.html deleted file mode 100644 index af882378c1..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component.html +++ /dev/null @@ -1,38 +0,0 @@ -
-

Form select

- -
- -
-

- We're deprecating the regular and medium sizes for text input, textarea and select. -

-
- This will make it easier to select the appropriate size variant: small for internal - applications, large for external applications. -
- .form-select-rg - and - .form-select-md - are deprecated and will be removed in the next major version. -
-
- -
- -
- - - - diff --git a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component.ts deleted file mode 100644 index 26b94e6c74..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo-page/form-select-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-select-demo/form-select-demo.component.html').default; - -@Component({ - selector: 'app-select-demo-page', - templateUrl: './form-select-demo-page.component.html', -}) -export class FormSelectDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.html b/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.html deleted file mode 100644 index 6550b70dfd..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.html +++ /dev/null @@ -1,49 +0,0 @@ -
- - -
- - - - - - - -
- - -

Error message

-
- -
- - -

Success message (optional)

-
diff --git a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.scss b/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.scss deleted file mode 100644 index 0b1fac37b4..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.scss +++ /dev/null @@ -1,8 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; - -.form-floating + .form-floating, -.form-floating + .form-select, -.form-select + .form-floating, -.form-select + .form-select { - margin-top: post.$size-regular; -} diff --git a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.ts deleted file mode 100644 index ecc5069b13..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-select/form-select-demo/form-select-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-select-demo', - templateUrl: './form-select-demo.component.html', - styleUrls: ['./form-select-demo.component.scss'], -}) -export class FormSelectDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component.html deleted file mode 100644 index 720fcf4bc2..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Form switch

- -
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component.ts deleted file mode 100644 index d4b2939ba5..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo-page/form-switch-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-switch-demo/form-switch-demo.component.html').default; - -@Component({ - templateUrl: './form-switch-demo-page.component.html', -}) -export class FormSwitchDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo/form-switch-demo.component.html b/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo/form-switch-demo.component.html deleted file mode 100644 index f35a49f7ad..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo/form-switch-demo.component.html +++ /dev/null @@ -1,114 +0,0 @@ -

Form switch examples

-
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -

Inline switches

-
- - -
-
- - -
- -

Switch with two labels

-
- - - -
- -

Switch without label

-
- -
- -

Switch with long label

-
-
-
- - -
-
-
- -

Validation

-
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
diff --git a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo/form-switch-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo/form-switch-demo.component.ts deleted file mode 100644 index dc8fdf0f02..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-switch/form-switch-demo/form-switch-demo.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Copyright 2022 by Swiss Post, Information Technology - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-switch-demo', - templateUrl: './form-switch-demo.component.html', -}) -export class FormSwitchDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component.html b/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component.html deleted file mode 100644 index 82a7fd5026..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

Form textarea

- -
- -
-

- We're deprecating the regular and medium sizes for text input, textarea and select. -

-
- This will make it easier to select the appropriate size variant: small for internal - applications, large for external applications. -
- .form-control-rg - and - .form-control-md - are deprecated and will be removed in the next major version. -
-
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component.ts deleted file mode 100644 index 53b3cb6fec..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo-page/form-textarea-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../form-textarea-demo/form-textarea-demo.component.html').default; - -@Component({ - selector: 'app-form-textarea-demo-page', - templateUrl: './form-textarea-demo-page.component.html', -}) -export class FormTextareaDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo/form-textarea-demo.component.html b/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo/form-textarea-demo.component.html deleted file mode 100644 index caef602d81..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo/form-textarea-demo.component.html +++ /dev/null @@ -1,31 +0,0 @@ -
- - -
- -
- - -

Error message

-
- -
- - -

Success message (optional)

-
diff --git a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo/form-textarea-demo.component.ts b/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo/form-textarea-demo.component.ts deleted file mode 100644 index ca58ff55e6..0000000000 --- a/packages/demo/src/app/bootstrap/components/form-textarea/form-textarea-demo/form-textarea-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-form-textarea-demo', - templateUrl: './form-textarea-demo.component.html', -}) -export class FormTextareaDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/forms/forms-demo-page/forms-demo-page.component.html b/packages/demo/src/app/bootstrap/components/forms/forms-demo-page/forms-demo-page.component.html deleted file mode 100644 index 932fa1cd9a..0000000000 --- a/packages/demo/src/app/bootstrap/components/forms/forms-demo-page/forms-demo-page.component.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

Forms

- -
- -
-

- We're deprecating the regular and medium sizes for text input, textarea and select. -

-
- This will make it easier to select the appropriate size variant: small for internal - applications, large for external applications. -
- .form-control-rg - and - .form-control-md - are deprecated and will be removed in the next major version. -
-
- -
- -
- diff --git a/packages/demo/src/app/bootstrap/components/forms/forms-demo-page/forms-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/forms/forms-demo-page/forms-demo-page.component.ts deleted file mode 100644 index 4172f14051..0000000000 --- a/packages/demo/src/app/bootstrap/components/forms/forms-demo-page/forms-demo-page.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../forms-demo/forms-demo.component.html').default; -@Component({ - selector: 'app-forms-demo-page', - templateUrl: './forms-demo-page.component.html', -}) -export class FormsDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/forms/forms-demo/forms-demo.component.html b/packages/demo/src/app/bootstrap/components/forms/forms-demo/forms-demo.component.html deleted file mode 100644 index 1afa4f2a99..0000000000 --- a/packages/demo/src/app/bootstrap/components/forms/forms-demo/forms-demo.component.html +++ /dev/null @@ -1,31 +0,0 @@ -
-
- - -
We'll never share your email with anyone else.
-
-
- - -
-
- - -
- -
- - -
-
diff --git a/packages/demo/src/app/bootstrap/components/forms/forms-demo/forms-demo.component.ts b/packages/demo/src/app/bootstrap/components/forms/forms-demo/forms-demo.component.ts deleted file mode 100644 index 0dedb74f68..0000000000 --- a/packages/demo/src/app/bootstrap/components/forms/forms-demo/forms-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-forms-demo', - templateUrl: './forms-demo.component.html', -}) -export class FormsDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/tables/tables-demo-page/tables-demo-page.component.html b/packages/demo/src/app/bootstrap/components/tables/tables-demo-page/tables-demo-page.component.html deleted file mode 100644 index 7bf4da0247..0000000000 --- a/packages/demo/src/app/bootstrap/components/tables/tables-demo-page/tables-demo-page.component.html +++ /dev/null @@ -1,11 +0,0 @@ -
-

Tables

- -
- - - diff --git a/packages/demo/src/app/bootstrap/components/tables/tables-demo-page/tables-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/tables/tables-demo-page/tables-demo-page.component.ts deleted file mode 100644 index 3bfa48d4b1..0000000000 --- a/packages/demo/src/app/bootstrap/components/tables/tables-demo-page/tables-demo-page.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; -const templateCode = require('!!raw-loader!../tables-demo/tables-demo.component.html').default; -@Component({ - selector: 'app-tables-demo-page', - templateUrl: './tables-demo-page.component.html', -}) -export class TablesDemoPageComponent { - templateCode = templateCode; -} diff --git a/packages/demo/src/app/bootstrap/components/tables/tables-demo/tables-demo.component.html b/packages/demo/src/app/bootstrap/components/tables/tables-demo/tables-demo.component.html deleted file mode 100644 index c9903f1d72..0000000000 --- a/packages/demo/src/app/bootstrap/components/tables/tables-demo/tables-demo.component.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
diff --git a/packages/demo/src/app/bootstrap/components/tables/tables-demo/tables-demo.component.ts b/packages/demo/src/app/bootstrap/components/tables/tables-demo/tables-demo.component.ts deleted file mode 100644 index b2934292c7..0000000000 --- a/packages/demo/src/app/bootstrap/components/tables/tables-demo/tables-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-tables-demo', - templateUrl: './tables-demo.component.html', -}) -export class TablesDemoComponent {} diff --git a/packages/demo/src/app/bootstrap/components/typography/typography-demo-page/typography-demo-page.component.html b/packages/demo/src/app/bootstrap/components/typography/typography-demo-page/typography-demo-page.component.html deleted file mode 100644 index 38ac0664e2..0000000000 --- a/packages/demo/src/app/bootstrap/components/typography/typography-demo-page/typography-demo-page.component.html +++ /dev/null @@ -1,6 +0,0 @@ -
-

Typography

- -
- - diff --git a/packages/demo/src/app/bootstrap/components/typography/typography-demo-page/typography-demo-page.component.ts b/packages/demo/src/app/bootstrap/components/typography/typography-demo-page/typography-demo-page.component.ts deleted file mode 100644 index 6f36d8b265..0000000000 --- a/packages/demo/src/app/bootstrap/components/typography/typography-demo-page/typography-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../typography-demo/typography-demo.component.html').default; -@Component({ - selector: 'app-typography-demo-page', - templateUrl: './typography-demo-page.component.html', -}) -export class TypographyDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/bootstrap/components/typography/typography-demo/typography-demo.component.html b/packages/demo/src/app/bootstrap/components/typography/typography-demo/typography-demo.component.html deleted file mode 100644 index 230a6f55c5..0000000000 --- a/packages/demo/src/app/bootstrap/components/typography/typography-demo/typography-demo.component.html +++ /dev/null @@ -1,93 +0,0 @@ -
-

Headings

-
-
-

Heading h1

-

Heading h2

-

Heading h3

-

Heading h4

-
Heading h5
-
Heading h6
-
-
-

- Heading h1 -
- Subheading -

-

- Heading h2 -
- Subheading -

-

- Heading h3 -
- Subheading -

-
-
- -

Paragraphs

-
-
-

Copy with lead (user-facing services)

-
-

- Lorem ipsum dolor sit, amet consectetur adipisicing elit. Animi voluptatibus laborum atque - explicabo consequuntur esse, ab debitis facere obcaecati aperiam suscipit officiis ut amet - quasi optio porro odit maxime placeat. -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut iste pariatur laboriosam - possimus suscipit, ullam nemo, laborum minima itaque sed obcaecati. Neque officia, non - similique eius repudiandae sequi totam nihil? -

-
- -
-
-

Default paragraph (internal usage)

-

- Lorem ipsum dolor sit, amet consectetur adipisicing elit. Animi voluptatibus laborum atque - explicabo consequuntur esse, ab debitis facere obcaecati aperiam suscipit officiis ut amet - quasi optio porro odit maxime placeat. -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut iste pariatur laboriosam - possimus suscipit, ullam nemo, laborum minima itaque sed obcaecati. Neque officia, non - similique eius repudiandae sequi totam nihil? -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut iste pariatur laboriosam - possimus suscipit, ullam nemo, laborum minima itaque sed obcaecati. Neque officia, non - similique eius repudiandae sequi totam nihil? -

- -
-
-
-
- -

Lists

-
-
-
    -
  • Lorem ipsum dolor sit amet.
  • -
  • Ipsa accusantium rerum in odio.
  • -
  • Assumenda deleniti maxime atque aperiam.
  • -
  • Voluptatibus consequuntur vitae nulla tempora?
  • -
  • Ea velit voluptatum dignissimos reiciendis?
  • -
-
-
-
    -
  1. Lorem ipsum dolor sit amet.
  2. -
  3. Ipsa accusantium rerum in odio.
  4. -
  5. Assumenda deleniti maxime atque aperiam.
  6. -
  7. Voluptatibus consequuntur vitae nulla tempora?
  8. -
  9. Ea velit voluptatum dignissimos reiciendis?
  10. -
-
-
-
diff --git a/packages/demo/src/app/bootstrap/components/typography/typography-demo/typography-demo.component.ts b/packages/demo/src/app/bootstrap/components/typography/typography-demo/typography-demo.component.ts deleted file mode 100644 index 32c903b91d..0000000000 --- a/packages/demo/src/app/bootstrap/components/typography/typography-demo/typography-demo.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component, Input } from '@angular/core'; - -@Component({ - selector: 'app-typography-demo', - templateUrl: './typography-demo.component.html', -}) -export class TypographyDemoComponent { - @Input() isContinuous: boolean = false; - externalParagraph = `
-

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Animi voluptatibus laborum atque explicabo consequuntur esse, ab debitis facere obcaecati aperiam suscipit officiis ut amet quasi optio porro odit maxime placeat.

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut iste pariatur laboriosam possimus suscipit, ullam nemo, laborum minima itaque sed obcaecati. Neque officia, non similique eius repudiandae sequi totam nihil?

-
`; - internalParagraph = `

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Animi voluptatibus laborum atque explicabo consequuntur esse, ab debitis facere obcaecati aperiam suscipit officiis ut amet quasi optio porro odit maxime placeat.

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut iste pariatur laboriosam possimus suscipit, ullam nemo, laborum minima itaque sed obcaecati. Neque officia, non similique eius repudiandae sequi totam nihil?

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut iste pariatur laboriosam possimus suscipit, ullam nemo, laborum minima itaque sed obcaecati. Neque officia, non similique eius repudiandae sequi totam nihil?

`; -} diff --git a/packages/demo/src/app/common/copy-to-clipboard.directive.ts b/packages/demo/src/app/common/copy-to-clipboard.directive.ts deleted file mode 100644 index 01403abd3f..0000000000 --- a/packages/demo/src/app/common/copy-to-clipboard.directive.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Directive, ElementRef, HostListener } from '@angular/core'; -import { Clipboard } from '@angular/cdk/clipboard'; -import { forkJoin, fromEvent, take, timer } from 'rxjs'; - -@Directive({ - selector: 'code[appCopyToClipboard]', -}) -export class CopyToClipboardDirective { - constructor( - private readonly el: ElementRef, - private readonly clipboard: Clipboard, - ) {} - - @HostListener('click', ['$event']) - private copyToClipboard(event: MouseEvent) { - event.preventDefault(); - - const { nativeElement } = this.el; - this.clipboard.copy(nativeElement.textContent); - - nativeElement.classList.add('copied'); - - forkJoin([timer(1000), fromEvent(nativeElement, 'mouseleave').pipe(take(1))]).subscribe(() => { - nativeElement.classList.remove('copied'); - }); - } -} diff --git a/packages/demo/src/app/common/dependency-link/dependency-link.component.html b/packages/demo/src/app/common/dependency-link/dependency-link.component.html deleted file mode 100644 index 795eb5f9f8..0000000000 --- a/packages/demo/src/app/common/dependency-link/dependency-link.component.html +++ /dev/null @@ -1,31 +0,0 @@ - - -

Using {{ dependency }} v{{ dependencyVersion }}

- - -
- -
-
- - - - - - - - {{ label }} Documentation - - diff --git a/packages/demo/src/app/common/dependency-link/dependency-link.component.ts b/packages/demo/src/app/common/dependency-link/dependency-link.component.ts deleted file mode 100644 index 6e2a13c073..0000000000 --- a/packages/demo/src/app/common/dependency-link/dependency-link.component.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2023 by Swiss Post, Information Technology - */ - -import { Component, Input, OnDestroy } from '@angular/core'; -import { ActivatedRoute } from '@angular/router'; -import { combineLatest, from, Subscription, switchMap } from 'rxjs'; -import { VersionService } from '../version.service'; -import { HttpClient } from '@angular/common/http'; -import { map } from 'rxjs/operators'; -import { Observable } from 'rxjs/internal/Observable'; - -@Component({ - selector: 'app-dependency-link', - templateUrl: 'dependency-link.component.html', -}) -export class DependencyLinkComponent implements OnDestroy { - @Input() documentationPath: string; - @Input() documentationPaths: Record; - dependency: string; - dependencyVersion: string; - documentationBaseUrl: string; - urlChangeSubscription: Subscription; - - constructor( - private route: ActivatedRoute, - private versionService: VersionService, - private http: HttpClient, - ) { - this.urlChangeSubscription = combineLatest([ - this.getLatestVersion('@ng-bootstrap/ng-bootstrap'), - this.route.url, - ]).subscribe(([ngBootStrapLatestVersion, _]) => { - const { dependencies } = this.versionService.localVersion; - const ngBootStrapLatestMajorVersion = ngBootStrapLatestVersion.split('.')[0]; - - if (route.parent.snapshot.url[0].path === 'ng-bootstrap-samples') { - this.dependency = 'ng-bootstrap'; - this.dependencyVersion = dependencies.get('@ng-bootstrap/ng-bootstrap').format('x'); - this.documentationBaseUrl = `https://ng-bootstrap.github.io${ - this.dependencyVersion === ngBootStrapLatestMajorVersion - ? '' - : `/releases/${this.dependencyVersion}.x` - }/#/`; - } else { - this.dependency = 'Bootstrap'; - this.dependencyVersion = dependencies.get('bootstrap').format('x.x'); - this.documentationBaseUrl = `https://getbootstrap.com/docs/${this.dependencyVersion}/`; - } - - if (!this.documentationPath) { - this.documentationPath = `components/${route.snapshot.url[0].path}`; - } - }); - } - - private getLatestVersion(packageName: string): Observable { - const url = `https://registry.npmjs.org/${packageName}/latest`; - - const cachedResponse = caches - .match(url) - .then(response => (response !== undefined ? response : fetch(url))) - .then(response => { - caches.open('npm').then(cache => { - void cache.put(url, response); - }); - return response.clone(); - }); - - return from(cachedResponse).pipe( - switchMap(response => response.json()), - map(packageConfig => packageConfig.version), - ); - } - - ngOnDestroy() { - this.urlChangeSubscription.unsubscribe(); - } -} diff --git a/packages/demo/src/app/common/footer/footer.component.html b/packages/demo/src/app/common/footer/footer.component.html deleted file mode 100644 index 4dfae27465..0000000000 --- a/packages/demo/src/app/common/footer/footer.component.html +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/packages/demo/src/app/common/footer/footer.component.scss b/packages/demo/src/app/common/footer/footer.component.scss deleted file mode 100644 index da1312a332..0000000000 --- a/packages/demo/src/app/common/footer/footer.component.scss +++ /dev/null @@ -1,22 +0,0 @@ -.copyright-footer { - align-items: space-between; -} - -.avatar { - display: flex; - align-items: flex-start; - - p { - margin-bottom: 0.25rem; - } -} - -.profile-picture { - width: 5rem; - border-radius: 50%; - margin-right: 1rem; -} - -.profile-list { - gap: 2rem 4rem; -} diff --git a/packages/demo/src/app/common/footer/footer.component.spec.ts b/packages/demo/src/app/common/footer/footer.component.spec.ts deleted file mode 100644 index 36c31ab3d0..0000000000 --- a/packages/demo/src/app/common/footer/footer.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { FooterComponent } from './footer.component'; - -describe('FooterComponent', () => { - let component: FooterComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [FooterComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(FooterComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/common/footer/footer.component.ts b/packages/demo/src/app/common/footer/footer.component.ts deleted file mode 100644 index 267bf2d52c..0000000000 --- a/packages/demo/src/app/common/footer/footer.component.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-footer', - templateUrl: './footer.component.html', - styleUrls: ['./footer.component.scss'], -}) -export class FooterComponent { - private devs = [ - { - name: 'Philipp Gfeller', - title: 'Lead UI Developer', - avatar: 'https://avatars.githubusercontent.com/u/1659006?v=4', - }, - { - name: 'Alizé Debray', - title: 'UI Developer', - avatar: 'https://avatars.githubusercontent.com/u/33580481?v=4', - }, - { - name: 'Oliver Schürch', - title: 'UI Developer', - avatar: 'https://avatars.githubusercontent.com/u/9716662?v=4', - }, - ]; - - public shuffledDevs; - - constructor() { - this.shuffledDevs = this.shuffleDevs(); - } - - shuffleDevs() { - return this.devs.sort(() => (Math.random() > 0.5 ? 1 : -1)); - } -} diff --git a/packages/demo/src/app/common/format-code.pipe.spec.ts b/packages/demo/src/app/common/format-code.pipe.spec.ts deleted file mode 100644 index fc3397abbd..0000000000 --- a/packages/demo/src/app/common/format-code.pipe.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { FormatCodePipe } from './format-code.pipe'; - -describe('FormatCodePipe', () => { - it('create an instance', () => { - const pipe = new FormatCodePipe(); - expect(pipe).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/common/format-code.pipe.ts b/packages/demo/src/app/common/format-code.pipe.ts deleted file mode 100644 index 6373963ad2..0000000000 --- a/packages/demo/src/app/common/format-code.pipe.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Pipe, PipeTransform } from '@angular/core'; -import prettier from 'prettier'; -import htmlParser from 'prettier/parser-html'; -import babelParser from 'prettier/parser-babel'; - -@Pipe({ - name: 'formatCode', -}) -export class FormatCodePipe implements PipeTransform { - transform( - value: string, - parser: prettier.BuiltInParserName | prettier.CustomParser = 'html', - ): string { - if (!value || !value.length) { - return value; - } - return prettier.format(value, { - parser, - plugins: [htmlParser, babelParser], - htmlWhitespaceSensitivity: 'ignore', - }); - } -} diff --git a/packages/demo/src/app/common/highlight.provider.ts b/packages/demo/src/app/common/highlight.provider.ts deleted file mode 100644 index dac9588f2b..0000000000 --- a/packages/demo/src/app/common/highlight.provider.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Injectable } from '@angular/core'; -import { HIGHLIGHT_OPTIONS } from 'ngx-highlightjs'; - -@Injectable() -export class HighlightProvider { - public static Config = { - provide: HIGHLIGHT_OPTIONS, - useValue: { - fullLibraryLoader: () => - import('highlight.js') - .then(lib => { - return lib; - }) - .catch(e => console.log(e)), - }, - }; -} diff --git a/packages/demo/src/app/common/ngb-localization/ngb-localization.component.html b/packages/demo/src/app/common/ngb-localization/ngb-localization.component.html deleted file mode 100644 index 77a069b4e9..0000000000 --- a/packages/demo/src/app/common/ngb-localization/ngb-localization.component.html +++ /dev/null @@ -1,22 +0,0 @@ -
-

Internationalization

- -

- Some ng-bootstrap components contain static English text that does not appear on screen but is - used in aria attributes needed for accessibility. -

- -

- The internationalization of this content is done using the - @angular/localize - package. To do this, make sure to add - import '@angular/localize/init'; - to your - polyfills.ts - file, then use the implementation below to enable translations: -

- - - - -
diff --git a/packages/demo/src/app/common/ngb-localization/ngb-localization.component.ts b/packages/demo/src/app/common/ngb-localization/ngb-localization.component.ts deleted file mode 100644 index 50eac89680..0000000000 --- a/packages/demo/src/app/common/ngb-localization/ngb-localization.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; - -const ngbLocalizationSample = require('!!raw-loader!./ngb-localization.sample.ts').default; - -@Component({ - selector: 'app-ngb-localization', - templateUrl: './ngb-localization.component.html', -}) -export class NgbLocalizationComponent { - ngbLocalizationSample = ngbLocalizationSample; -} diff --git a/packages/demo/src/app/common/ngb-localization/ngb-localization.sample.ts b/packages/demo/src/app/common/ngb-localization/ngb-localization.sample.ts deleted file mode 100644 index 128f1a1c9c..0000000000 --- a/packages/demo/src/app/common/ngb-localization/ngb-localization.sample.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { loadTranslations } from '@angular/localize'; - -const I18N_VALUES = { - de: { - 'ngb.alert.close': 'Schließen', - 'ngb.carousel.slide-number': ' Folie {$INTERPOLATION} von {$INTERPOLATION_1} ', - 'ngb.carousel.previous': 'Vorherige', - 'ngb.carousel.next': 'Nächste', - 'ngb.datepicker.select-year': 'Jahr auswählen', - 'ngb.datepicker.select-month': 'Monat auswählen', - 'ngb.datepicker.previous-month': 'Vorheriger Monat', - 'ngb.datepicker.next-month': 'Nächster Monat', - 'ngb.pagination.first-aria': 'Erster', - 'ngb.pagination.previous-aria': 'Vorheriger', - 'ngb.pagination.next-aria': 'Nächster', - 'ngb.pagination.last-aria': 'Letzter', - 'ngb.timepicker.hours': 'Stunden', - 'ngb.timepicker.increment-hours': 'Stunden erhöhen', - 'ngb.timepicker.decrement-hours': 'Stunden verringern', - 'ngb.timepicker.minutes': 'Minuten', - 'ngb.timepicker.increment-minutes': 'Minuten erhöhen', - 'ngb.timepicker.decrement-minutes': 'Minuten verringern', - 'ngb.timepicker.seconds': 'Sekunden', - 'ngb.timepicker.increment-seconds': 'Sekunden erhöhen', - 'ngb.timepicker.decrement-seconds': 'Sekunden verringern', - }, - fr: { - 'ngb.alert.close': 'Fermer', - 'ngb.carousel.slide-number': 'Diapositive {$INTERPOLATION} sur {$INTERPOLATION_1}', - 'ngb.carousel.previous': 'Précédente', - 'ngb.carousel.next': 'Suivante', - 'ngb.datepicker.select-year': "Sélectionner l'année", - 'ngb.datepicker.select-month': 'Sélectionner le mois', - 'ngb.datepicker.previous-month': 'Mois précédent', - 'ngb.datepicker.next-month': 'Mois suivant', - 'ngb.pagination.first-aria': 'Premier', - 'ngb.pagination.previous-aria': 'Précédent', - 'ngb.pagination.next-aria': 'Suivant', - 'ngb.pagination.last-aria': 'Dernier', - 'ngb.timepicker.hours': 'Heures', - 'ngb.timepicker.increment-hours': 'Augmenter les heures', - 'ngb.timepicker.decrement-hours': 'Diminuer les heures', - 'ngb.timepicker.minutes': 'Minutes', - 'ngb.timepicker.increment-minutes': 'Augmenter les minutes', - 'ngb.timepicker.decrement-minutes': 'Diminuer les minutes', - 'ngb.timepicker.seconds': 'Secondes', - 'ngb.timepicker.increment-seconds': 'Augmenter les secondes', - 'ngb.timepicker.decrement-seconds': 'Diminuer les secondes', - }, - it: { - 'ngb.alert.close': 'Chiudi', - 'ngb.carousel.slide-number': 'Diapositiva {$INTERPOLATION} di {$INTERPOLATION_1}', - 'ngb.carousel.previous': 'Precedente', - 'ngb.carousel.next': 'Successiva', - 'ngb.datepicker.select-year': "Seleziona l'anno", - 'ngb.datepicker.select-month': 'Seleziona il mese', - 'ngb.datepicker.previous-month': 'Mese precedente', - 'ngb.datepicker.next-month': 'Mese successivo', - 'ngb.pagination.first-aria': 'Primo', - 'ngb.pagination.previous-aria': 'Precedente', - 'ngb.pagination.next-aria': 'Successivo', - 'ngb.pagination.last-aria': 'Ultimo', - 'ngb.timepicker.hours': 'Ore', - 'ngb.timepicker.increment-hours': 'Aumenta le ore', - 'ngb.timepicker.decrement-hours': 'Diminuisci le ore', - 'ngb.timepicker.minutes': 'Minuti', - 'ngb.timepicker.increment-minutes': 'Aumenta i minuti', - 'ngb.timepicker.decrement-minutes': 'Diminuisci i minuti', - 'ngb.timepicker.seconds': 'Secondi', - 'ngb.timepicker.increment-seconds': 'Aumenta i secondi', - 'ngb.timepicker.decrement-seconds': 'Diminuisci i secondi', - }, - en: { - 'ngb.alert.close': 'Close', - 'ngb.carousel.slide-number': 'Slide {$INTERPOLATION} of {$INTERPOLATION_1}', - 'ngb.carousel.previous': 'Previous', - 'ngb.carousel.next': 'Next', - 'ngb.datepicker.select-year': 'Select Year', - 'ngb.datepicker.select-month': 'Select Month', - 'ngb.datepicker.previous-month': 'Previous Month', - 'ngb.datepicker.next-month': 'Next Month', - 'ngb.pagination.first-aria': 'First', - 'ngb.pagination.previous-aria': 'Previous', - 'ngb.pagination.next-aria': 'Next', - 'ngb.pagination.last-aria': 'Last', - 'ngb.timepicker.hours': 'Hours', - 'ngb.timepicker.increment-hours': 'Increment Hours', - 'ngb.timepicker.decrement-hours': 'Decrement Hours', - 'ngb.timepicker.minutes': 'Minutes', - 'ngb.timepicker.increment-minutes': 'Increment Minutes', - 'ngb.timepicker.decrement-minutes': 'Decrement Minutes', - 'ngb.timepicker.seconds': 'Seconds', - 'ngb.timepicker.increment-seconds': 'Increment Seconds', - 'ngb.timepicker.decrement-seconds': 'Decrement Seconds', - }, -}; - -// use this function where your application's locale is initialized -loadTranslations(I18N_VALUES[localeId]); diff --git a/packages/demo/src/app/common/post-common.module.ts b/packages/demo/src/app/common/post-common.module.ts deleted file mode 100644 index 9c3e319084..0000000000 --- a/packages/demo/src/app/common/post-common.module.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { FormsModule } from '@angular/forms'; -import { DependencyLinkComponent } from './dependency-link/dependency-link.component'; - -import { FooterComponent } from './footer/footer.component'; -import { FormatCodePipe } from './format-code.pipe'; -import { NgbLocalizationComponent } from './ngb-localization/ngb-localization.component'; -import { Highlight } from 'ngx-highlightjs'; - -@NgModule({ - imports: [CommonModule, RouterModule, FormsModule, Highlight], - declarations: [ - FooterComponent, - FormatCodePipe, - DependencyLinkComponent, - NgbLocalizationComponent, - ], - exports: [FooterComponent, FormatCodePipe, DependencyLinkComponent, NgbLocalizationComponent], -}) -export class PostCommonModule {} diff --git a/packages/demo/src/app/common/version.service.ts b/packages/demo/src/app/common/version.service.ts deleted file mode 100644 index 35dad3e138..0000000000 --- a/packages/demo/src/app/common/version.service.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2023 by Swiss Post, Information Technology - */ - -import { HttpClient } from '@angular/common/http'; -import { Injectable } from '@angular/core'; -import packageJSON from 'package.json'; -import { map, Observable, shareReplay } from 'rxjs'; - -interface PackageVersionDetails { - title: string; - version: string; - description: string; - url: string; - dependencies?: Record; -} - -class VersionNumber { - full: string; - - constructor(version: string) { - this.full = version; - } - - public format(format: 'x' | 'x.x' | 'x.x.x'): string { - return format - .split('.') - .map((_, i) => this.full.split('.')[i]) - .join('.'); - } -} - -class PackageVersion { - title: string; - version: VersionNumber; - description: string; - url: string; - dependencies?: ReadonlyMap; - - constructor({ title, version, description, url, dependencies }: PackageVersionDetails) { - this.title = title; - this.url = url; - this.description = description; - this.version = new VersionNumber(version); - this.dependencies = dependencies - ? new Map( - Object.entries(dependencies).map(([packageName, version]) => { - return [packageName, new VersionNumber(version)]; - }), - ) - : null; - } - - get isCurrent(): boolean { - return this.version.full === packageJSON.version; - } -} - -@Injectable({ - providedIn: 'root', -}) -export class VersionService { - public get currentVersion(): Observable { - return this.versions.pipe(map(versions => versions[0])); - } - - public get versions(): Observable { - return this.http - .get('https://design-system.post.ch/assets/versions.json') - .pipe( - map(versions => versions.map(v => new PackageVersion(v))), - shareReplay(1), - ); - } - - public get localVersion() { - return new PackageVersion({ ...packageJSON, url: '/', title: 'Local version' }); - } - - constructor(private http: HttpClient) {} -} diff --git a/packages/demo/src/app/home/home.component.html b/packages/demo/src/app/home/home.component.html deleted file mode 100644 index 5ccb5c8488..0000000000 --- a/packages/demo/src/app/home/home.component.html +++ /dev/null @@ -1,2675 +0,0 @@ -
-
-

IE11 not supported

-

- This app uses Angular {{ getVersion(angularVersion, 'M') }} and therefore does not support - IE11. Please update your browser. -

-
-
- -
-
-

Swiss Post

-

Design System

-

- -

-

- The Swiss Post Design System pattern library for a unified and accessible user experience - across the web platform. -

-
-
- - -
-

- @swisspost/design-system-styles: - {{ getVersion(stylesVersion) }} -

-

- @angular/cli: - {{ getVersion(angularVersion) }} -

-

- bootstrap: - {{ getVersion(bootstrapVersion) }} -

-

- @ng-bootstrap/ng-bootstrap: - {{ getVersion(ngBootstrapVersion) }} -

-

- ngx-toastr: - {{ getVersion(ngxToastrVersion) }} -

-
-
- -
-
- - -
-

Compatibility

- -

List of compatible version numbers with external dependencies.

- -
-
-

Styles

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Package @swisspost/design-system-styles -
VersionBootstrapAngularNg-Bootstrap
5.x5.014.x13.x
6.25.215.x14.x
6.45.316.x15.x
-
-
-

Common Web Frontend

- - - - - - - - - - - - - - - - - - - -
- Package @ch-post-common/common-web-frontend -
VersionBootstrapAngularNg-Bootstrap
4.x4.612.x9.x
-
-
-
- -
-

Setup for migration instructions

-
-
-
- What environment is your application for? -
- - -
-
- - -
-
-
-
-
- - What technology is your application built with? - -
- - -
-
- - -
-
-
-
-
- -
-

Migration from v5 to v6

- - - -
    -
  1. -

    Package Update 🩺

    -
      -
    1. -

      - Use - - https://update.angular.io/ - - to update Angular to version 16 -

      -
    2. -
    3. -

      - Update Bootstrap to version - - 5.3.x - - - and ng-bootstrap to version - - 15.x.x - - - : - -

      -
    4. -
    5. -

      - Update Design System style package to version 6: - -

      -
    6. -
    -
  2. -
  3. -

    Automatic Migration ⚙️

    -

    - If you are migrating an Angular application, you can take advantage of our migration - schematics. -

    -
      -
    1. Commit all the changes you have made so far
    2. -
    3. Make sure you are running on a node version >= 16
    4. -
    5. - You should now be able to run the following command to apply all automatic migrations - to your application: - -
    6. -
    -
  4. -
  5. -

    Component Migration 🤓

    -

    - Changes flagged with the ⚙️ symbol should be automatically migrated with our migration - tool. -

    -
    Accessibility
    -
      -
    • -
      - Stepper - breaking -
      -

      - The markup of the - stepper - component has been changed in order to be more accessible. -

      -
        -
      • - ⚙️ - The stepper container no longer has an aria-label attribute but contains a hidden - header instead -
      • -
      • - ⚙️ - The progress bar is hidden and no longer requires a type attribute -
      • -
      • - ⚙️ - The stepper has a list role -
      • -
      • Completed steps require an additional hidden "Completed: " text
      • -
      • Current and incomplete steps should not be links
      • -
      -
    • -
    -
    Deprecations
    -
      -
    • -
      - ngbButton ⚙️ - breaking -
      -

      - The - ngbButton - and - ngbButtonLabel - directives are no longer a part of ng-bootstrap. -
      - The markup and styles have changed and everything now works with CSS Bootstrap - classes only. -

      -

      - See the - documentation - for more detailed information. -

      -
    • -
    • -
      - Removed variables - breaking -
      -

      - The following Sass variables have been removed because they are not being used - anymore. -

      -
        -
      • $table-head-bg
      • -
      -
    • -
    -
  6. -
-
- -
-

Migration from v4 to v5

- -
    -
  1. -

    Clean Start 🧹

    -

    - Create a branch and commit all changes to have a clean, reversible starting point. If - you like to upgrade from a Design System version lower than 4.0.0, it might be necessary - to upgrade to v4 first. -

    -
  2. -
  3. - -

    Old Package Uninstallation 🗑️

    - -

    Uninstall the old styles and the old intranet header packages.

    - -
  4. -
  5. - -

    - New Package Installation 📦 -

    - -
  6. -
  7. -

    Package Update 🩺

    -
      -
    1. - If your Angular version is lower than 13, use - - https://update.angular.io/ - - to update Angular step by step to version 13. -
    2. -
    3. - -
    4. -
    - -

    - -

    - - - Update Bootstrap to version - - 5.1.x - - - and ng-bootstrap to version - - 12.x.x - - - : - - -
  8. -
  9. -

    Automatic Migration ⚙️

    -

    - If you are migrating an Angular application, you can take advantage of our migration - schematics. -

    -
      -
    1. Commit all the changes you have made so far
    2. -
    3. Make sure you are running on a node version >= 16
    4. -
    5. - You should now be able to run the following command to apply all automatic migrations - to your application: - -
    6. -
    -
  10. -
  11. -

    Component Migration 🤓

    -

    - Changes flagged with the ⚙️ symbol should be automatically migrated with our migration - tool. -

    - -
    Deprecations
    -
      -
    • -

      - Dropped jQuery dependency -
      - - Replace all jQuery components with the given one or integrate jQuery by your own - (not recommended). - -

      -
    • -
    • -

      - The - Custom-Select - component has been marked as deprecated. - - For the moment there is only the alternative to use the - Form-Select - component instead. An alternative is being implemented. - -

      -
    • -
    - -
    Migrations list
    -

    - Some changes cannot be migrated automatically. -
    - Check the list of changes below and apply the transformations manually if your - application is affected. -

    - - -
    -
    -

    - -

    -
    -
    - -
    -
    Paths & Files
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -
    - - -
    -
    Variables
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -
    - - -
    -
    Mixins
    -
      -
    • -
      - - - -
      -
    • -
    -
    - - -
    -
    Classes
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -
    -
    -
    -
    - -
    -

    - -

    -
    -
    - -
    -
    Alert / Notification
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Badge
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Background
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Blockquote
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Button
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Button Close
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Card
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Forms
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    From Control
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    From Select
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    From Textarea
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Form File
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    From Checkbox
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    From Radio
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Form Switch
    - -

    - The - switch - component has been moved to the - Bootstrap - section since Bootstrap version 5.x now provides such a component. - - If you import this component manually, you need to update to the new file - path. - -

    - -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    -
    -
    -
    - -
    -

    - -

    -
    -
    - -
    -
    Buttons
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    DatePicker
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Modal
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    -
    -
    -
    - -
    -

    - -

    -
    -
    - -
    -
    Accordion
    -
      -
    • -
      - - - -
      -
    • -
    -
    -
    -
    -
    - -
    -

    - -

    -
    -
    - -
    -
    Accordion
    - -
    - - -
    -
    Custom-Select
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Subnavigation
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    - - -
    -
    Topic Teaser
    -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See the - documentation - for more detailed information. -

    -
    -
    -
    -
    -
    -
  12. -
  13. -

    Treat yourself to a 🍺, you've done a great job! 🚀

    -
  14. -
-
-
-
- -
-
-
-
-
-

- Resources - For a consistent user experience -

- -
-
- Lego -
-
-
-
-
diff --git a/packages/demo/src/app/home/home.component.scss b/packages/demo/src/app/home/home.component.scss deleted file mode 100644 index e723a061f0..0000000000 --- a/packages/demo/src/app/home/home.component.scss +++ /dev/null @@ -1,191 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; - -.heading { - margin-top: 0; - background-color: post.$yellow; - background-image: url('../../assets/images/header.png'); - background-repeat: no-repeat; - background-position: center left 60vw; - background-size: auto 100%; - - .container { - padding-right: 20vw; - } - - @include post.media-breakpoint-up(sm) { - .container { - padding-right: 30vw; - } - } - - @include post.media-breakpoint-up(rg) { - .container { - padding-right: 35vw; - } - } - - @include post.media-breakpoint-up(xl) { - background-position: center right; - } - - @include post.media-breakpoint-up(xxl) { - .container { - padding-right: 20%; - } - } -} - -.version-button { - padding-left: 0; - padding-right: 0; -} - -.versions { - text-align: left; - background: var(--post-gray-80); - color: white; - padding: 0.5rem; - width: fit-content; - - p { - margin-bottom: 0; - - span:first-child { - color: #9cdcfe; - } - - span:last-child { - margin-left: 0.25rem; - text-align: right; - color: #ce9178; - } - } -} - -.change-badge { - display: inline-block; - padding: 0.05rem 0.3rem; - border-radius: 3px; - font-family: post.$font-family-monospace; - font-size: 12px; - vertical-align: text-bottom; -} - -.bubble-tea { - margin-top: 2rem; - padding: 1rem 0 2rem 0; - list-style: none; - counter-reset: bubble-tea; - - h3, - h4 { - margin-bottom: 1rem; - } - - > li { - counter-increment: bubble-tea; - position: relative; - margin-left: 2rem; - padding-bottom: 2rem; - padding-left: 3rem; - border-left: 4px solid white; - min-height: 5rem; - - @include post.media-breakpoint-down(rg) { - margin-left: 1rem; - padding-bottom: 1rem; - padding-left: 2rem; - min-height: 3rem; - } - - &:last-child { - min-height: 0; - padding-bottom: 0; - } - - &:before { - content: counter(bubble-tea); - display: flex; - align-items: center; - justify-content: center; - position: absolute; - border-radius: 50%; - top: -1rem; - left: calc(-2rem - 2px); - width: 4rem; - height: 4rem; - background: white; - text-align: center; - font-weight: bold; - font-size: 1.2em; - - @include post.media-breakpoint-down(rg) { - width: 3rem; - height: 3rem; - font-size: 1em; - left: calc(-1.5rem - 2px); - top: -0.8rem; - } - } - } - - .bg-white { - > *:last-child { - margin-bottom: 0; - } - } - - .form-check-label { - code:not(.block, .d-block) { - @extend .change-badge; - } - - ul { - padding-left: 1.15em; - } - } - - .form-check-input:checked ~ .form-check-label { - opacity: 0.5; - } -} - -.accordion-button { - @include post.font-curve(post.$accordion-heading-font-curve); - - small { - @include post.font-curve('tiny'); - display: inline-block; - padding-left: 1em; - font-weight: post.$font-weight-base; - } -} - -.highlight { - display: inline; - font-family: post.$font-family-monospace; - color: post.$coral-bright; -} - -.info { - display: block; - margin-top: 0.25rem; - margin-bottom: 0.75rem; - font-size: post.$font-size-tiny; - color: post.$gray-40; - - + .info { - margin-top: -1rem; - } -} - -.migration-options { - margin: 2rem 0; - padding: 1.5rem 0; - border-top: 1px solid var(--post-gray-10); - border-bottom: 1px solid var(--post-gray-10); - - > .row { - --bs-gutter-y: 1.5rem; - } -} diff --git a/packages/demo/src/app/home/home.component.ts b/packages/demo/src/app/home/home.component.ts deleted file mode 100644 index 14c1af47db..0000000000 --- a/packages/demo/src/app/home/home.component.ts +++ /dev/null @@ -1,232 +0,0 @@ -import { Component } from '@angular/core'; -import { environment } from './../../environments/environment'; - -interface MigrationAccordionGroupedCheckboxes { - general: { [key: string]: boolean }; - bootstrap: { [key: string]: boolean }; - ngbootstrap: { [key: string]: boolean }; - jquery: { [key: string]: boolean }; - post: { [key: string]: boolean }; -} - -@Component({ - selector: 'app-demo-home', - templateUrl: 'home.component.html', - styleUrls: ['home.component.scss'], -}) -export class HomeComponent { - public static MIGRATION_TYPE_INTRANET_KEY: string = 'post:migration_type_intranet'; - public static MIGRATION_TYPE_ANGULAR_KEY: string = 'post:migration_type_angular'; - public static MIGRATION_ACCORDION_KEY: string = 'post:migration_accordion'; - public static MIGRATION_ACCORDION_GROUPED_CHECKBOXES_KEY: string = - 'post:migration_accordion_grouped_checkboxes'; - public version: string = environment.VERSION; - public stylesVersion: string = environment.STYLES_VERSION; - public angularVersion: string = environment.ANGULAR_VERSION; - public bootstrapVersion: string = environment.BOOTSTRAP_VERSION; - public ngBootstrapVersion: string = environment.NG_BOOTSTRAP_VERSION; - public ngxToastrVersion: string = environment.NGX_TOASTR; - public isIE11 = false; - public isMigratingIntranet = this.getLocaleStorage(this.migrationTypeIntranetKey) ?? false; - public isMigratingAngular = this.getLocaleStorage(this.migrationTypeAngularKey) ?? true; - public migrationAccordionActiveIds: Array = - this.getLocaleStorage(this.migrationAccordionKey) ?? []; - public migrationAccordionGroupedCheckboxes: MigrationAccordionGroupedCheckboxes = { - general: { - naming_cwfpackagename: false, - naming_entryfiles: false, - naming_cwflicense: false, - naming_cwfname: false, - naming_options: false, - variables_isolatecomponents: false, - variables_fontsizemap: false, - variables_lineheightrg: false, - variables_floatinglabel: false, - variables_colorsremoved: false, - variables_colorsrenamed: false, - variables_lineheigts: false, - variables_lineheightlighter: false, - variables_headingfontsizes: false, - mixins_fontsizelineheight: false, - classes_bgopacity: false, - classes_secondary: false, - classes_rtlmode: false, - classes_sronly: false, - }, - bootstrap: { - alerts_closebuttoncontent: false, - alerts_closebuttonclass: false, - badges_classes: false, - backgrounds_textcolor: false, - blockquotes_footerstructure: false, - blockquotes_qclass: false, - buttons_outline: false, - buttons_borderradius: false, - buttons_borderradius2: false, - buttons_invertedclass: false, - buttons_iconclass: false, - buttonclose_content: false, - buttonclose_class: false, - buttonclose_buttonclasses: false, - cards_classes: false, - forms_formlabelclass: false, - forms_formgroup: false, - forms_formtext: false, - formcontrols_formfloatingwrapper: false, - formcontrols_formfloatingcontrollgclass: false, - formselects_formfloatingwrapper: false, - formselects_classes: false, - formselects_formfloatingselectlgclass: false, - formtextareas_formfloatingwrapper: false, - formtextareas_formfloatingcontrollgclass: false, - formfiles_formfloatingwrapper: false, - formfiles_formfloatingcontrollgclass: false, - formcheckboxes_classes: false, - formcheckboxes_validationclasses: false, - formcheckboxes_validationfeedbackclasses: false, - formradios_classes: false, - formradios_validationclasses: false, - formradios_validationfeedbackclasses: false, - formswitches_classes: false, - formswitches_labelclasses: false, - formswitches_validationclasses: false, - formswitches_validationfeedbackclasses: false, - }, - ngbootstrap: { - buttons_labelclass: false, - buttons_inputclass: false, - buttons_grouptoggleclass: false, - datepickers_variables: false, - modals_closebuttoncontent: false, - modals_closebuttonclass: false, - }, - jquery: { - accordions_removed: false, - }, - post: { - accordions_removed: false, - customselects_formfloatingwrapper: false, - customselects_classes: false, - customselects_menuclass: false, - subnavigations_invertedclass: false, - topicteasers_imageattributes: false, - topicteasers_imagecontainergridclasses: false, - topicteasers_contentcontainergridclasses: false, - topicteasers_linklistfontcurve: false, - }, - }; - - constructor() { - // Show deprecation warning if anybody still uses IE11 - this.isIE11 = window.navigator.userAgent.includes('Trident/7.0'); - - const localStorageCheckboxes: Object = - this.getLocaleStorage(this.migrationAccordionGroupedCheckboxesKey) ?? {}; - - for (const groupKey in this.migrationAccordionGroupedCheckboxes) { - const checkboxGroup = this.migrationAccordionGroupedCheckboxes[groupKey]; - const storageGroup = localStorageCheckboxes[groupKey] ?? {}; - - for (const checkboxKey in checkboxGroup) { - if (storageGroup[checkboxKey] !== undefined) - checkboxGroup[checkboxKey] = storageGroup[checkboxKey]; - } - } - } - - get migrationTypeIntranetKey() { - return HomeComponent.MIGRATION_TYPE_INTRANET_KEY; - } - - get migrationTypeAngularKey() { - return HomeComponent.MIGRATION_TYPE_ANGULAR_KEY; - } - - get migrationAccordionKey() { - return HomeComponent.MIGRATION_ACCORDION_KEY; - } - - get migrationAccordionGroupedCheckboxesKey() { - return HomeComponent.MIGRATION_ACCORDION_GROUPED_CHECKBOXES_KEY; - } - - private versionFilterRegexes = { - major: /^(?:(\d+)\.\d+\.\d+)/, - minor: /^(?:\d+\.(\d+)\.\d+)/, - patch: /^(?:\d+\.\d+\.(\d+))/, - pre: /^(?:\d+\.\d+\.\d+[ .:,;!?_~`'"^*+\-=<>#&$%@|\/()[\]{}]?(.*))/, - majorminor: /^(?:(\d+\.\d+)\.\d+)/, - majorminorpatch: /^(\d+\.\d+\.\d+)/, - }; - - private versionFilterMap = { - major: 'major', - M: 'major', - minor: 'minor', - m: 'minor', - pre: 'pre', - majorminor: 'majorminor', - Mm: 'majorminor', - majorminorpatch: 'majorminorpatch', - Mmp: 'majorminorpatch', - }; - - private getCleanVersion(version: string) { - return version.replace(/^[^\d]+/, ''); - } - - public getVersion(version: string, filter: string = '') { - const cleanVersion: string = this.getCleanVersion(version); - - if (filter) { - const filterRegex = this.versionFilterRegexes[this.versionFilterMap[filter]]; - let matchArray: RegExpMatchArray = null; - - if (filterRegex) matchArray = cleanVersion.match(filterRegex); - - return matchArray !== null && matchArray[1] ? matchArray[1] : null; - } else { - return cleanVersion.length > 0 ? cleanVersion : version; - } - } - - // test - - private getLocaleStorage(key: string) { - return JSON.parse(window.localStorage.getItem(key)); - } - - public setLocaleStorage(key: string, value: any) { - window.localStorage.setItem(key, JSON.stringify(value)); - } - - public getMigrationAccordionGroupedCheckboxesChecked(group = '') { - const checkboxValues = Object.values(this.migrationAccordionGroupedCheckboxes[group] ?? {}); - const checkedValues = checkboxValues.filter(v => v === true); - - return `${checkedValues.length} of ${checkboxValues.length} done`; - } - - public migrationAccordionShown(panelId: string) { - this.migrationAccordionActiveIds = Array.from( - new Set(this.migrationAccordionActiveIds.concat(panelId)), - ); - - this.setLocaleStorage(this.migrationAccordionKey, this.migrationAccordionActiveIds); - } - - public migrationAccordionHidden(panelId: string) { - this.migrationAccordionActiveIds = this.migrationAccordionActiveIds.filter( - id => id !== panelId, - ); - - this.setLocaleStorage(this.migrationAccordionKey, this.migrationAccordionActiveIds); - } - - public migrationAccordionGroupedCheckboxesChange() { - this.setLocaleStorage( - this.migrationAccordionGroupedCheckboxesKey, - this.migrationAccordionGroupedCheckboxes, - ); - } -} diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.html b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.html deleted file mode 100644 index b5649784a7..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.html +++ /dev/null @@ -1,72 +0,0 @@ - diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.spec.ts b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.spec.ts deleted file mode 100644 index c41d67afbd..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { IntranetHeaderDemoBigSidebarComponent } from './intranet-header-demo-big-sidebar.component'; -import { ErrorService } from '../../services/error.service'; -import { RouterModule } from '@angular/router'; - -describe('IntranetHeaderBigComponent', () => { - let component: IntranetHeaderDemoBigSidebarComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [RouterModule.forRoot([])], - declarations: [IntranetHeaderDemoBigSidebarComponent], - providers: [ErrorService], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(IntranetHeaderDemoBigSidebarComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.ts b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.ts deleted file mode 100644 index af41a95b5b..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { Component, Inject, LOCALE_ID } from '@angular/core'; -import { HttpErrorResponse } from '@angular/common/http'; -import { ErrorService } from '../../services/error.service'; -import { Location } from '@angular/common'; -import { Router } from '@angular/router'; - -@Component({ - selector: 'app-intranet-header-big', - templateUrl: './intranet-header-demo-big-sidebar.component.html', - styleUrls: ['../../intranet-layout.component.css'], -}) -export class IntranetHeaderDemoBigSidebarComponent { - openedMenu = false; - appTitle = 'testwebapp'; - initialLanguage = 'de'; - - constructor( - @Inject(LOCALE_ID) public language: string, - private location: Location, - - private errorService: ErrorService, - private router: Router, - ) { - // handle language for ngx-translate and for angular PIPE - // Handle unexpected errors - this.errorService.unexpectedErrorEvent.subscribe((response: HttpErrorResponse) => { - console.error('Unexpected error', response); - }); - - router.events.subscribe(url => { - this.openedMenu = false; - }); - } - - public toggleMenu() { - this.openedMenu = !this.openedMenu; - } -} diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component.html b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component.html deleted file mode 100644 index 492a8f1dcd..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component.ts b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component.ts deleted file mode 100644 index eca75ac4b2..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-regular/intranet-header-demo-regular.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-intranet-header', - templateUrl: './intranet-header-demo-regular.component.html', - styleUrls: ['../../intranet-layout.component.css'], -}) -export class IntranetHeaderDemoRegularComponent {} diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.html b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.html deleted file mode 100644 index 0772621393..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.html +++ /dev/null @@ -1,65 +0,0 @@ -
- -
-
- -
-

Content

-

- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor - invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et - accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata - sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing - elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed - diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd - gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit - amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et - dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores - et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit - amet. -

-
-
-
-
diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.spec.ts b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.spec.ts deleted file mode 100644 index 97195ad74f..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { IntranetHeaderDemoSmallSidebarComponent } from './intranet-header-demo-small-sidebar.component'; -import { ErrorService } from '../../services/error.service'; - -describe('IntranetHeaderSmallComponent', () => { - let component: IntranetHeaderDemoSmallSidebarComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [IntranetHeaderDemoSmallSidebarComponent], - providers: [ErrorService], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(IntranetHeaderDemoSmallSidebarComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.ts b/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.ts deleted file mode 100644 index 8e44327fd4..0000000000 --- a/packages/demo/src/app/intranet-layout/components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component, Inject, LOCALE_ID } from '@angular/core'; -import { HttpErrorResponse } from '@angular/common/http'; -import { ErrorService } from '../../services/error.service'; - -@Component({ - selector: 'app-intranet-header-small', - templateUrl: './intranet-header-demo-small-sidebar.component.html', - styleUrls: ['../../intranet-layout.component.css'], -}) -export class IntranetHeaderDemoSmallSidebarComponent { - openedMenu = false; - - constructor(@Inject(LOCALE_ID) public language: string, private errorService: ErrorService) { - // handle language for ngx-translate and for angular PIPE - // Handle unexpected errors - this.errorService.unexpectedErrorEvent.subscribe((response: HttpErrorResponse) => { - console.error('Unexpected error', response); - }); - } -} diff --git a/packages/demo/src/app/intranet-layout/intranet-components.module.ts b/packages/demo/src/app/intranet-layout/intranet-components.module.ts deleted file mode 100644 index 4dcfcd43f8..0000000000 --- a/packages/demo/src/app/intranet-layout/intranet-components.module.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { SwissPostIntranetHeaderModule } from '@swisspost/design-system-intranet-header'; -import { HighlightModule } from 'ngx-highlightjs'; -import { HighlightProvider } from '../common/highlight.provider'; -import { IntranetHeaderDemoRegularComponent } from './components/intranet-header-demo-regular/intranet-header-demo-regular.component'; -import { IntranetHeaderDemoBigSidebarComponent } from './components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component'; -import { IntranetHeaderDemoSmallSidebarComponent } from './components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component'; - -@NgModule({ - imports: [CommonModule, RouterModule, NgbModule, SwissPostIntranetHeaderModule, HighlightModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA], - declarations: [ - IntranetHeaderDemoRegularComponent, - IntranetHeaderDemoBigSidebarComponent, - IntranetHeaderDemoSmallSidebarComponent, - ], - exports: [ - IntranetHeaderDemoRegularComponent, - IntranetHeaderDemoBigSidebarComponent, - IntranetHeaderDemoSmallSidebarComponent, - ], - providers: [HighlightProvider.Config], -}) -export class IntranetComponentsModule {} diff --git a/packages/demo/src/app/intranet-layout/intranet-layout.component.css b/packages/demo/src/app/intranet-layout/intranet-layout.component.css deleted file mode 100644 index b3ce6b01cd..0000000000 --- a/packages/demo/src/app/intranet-layout/intranet-layout.component.css +++ /dev/null @@ -1,13 +0,0 @@ -.alert .pi.placing { - margin-top: -0.3rem; - margin-left: -0.6rem; -} - -.header-showcase-page { - background: white; - box-shadow: 0 0 50px rgba(0, 0, 0, 0.4); -} - -.header-showcase-container { - background: #f4f3f1; -} diff --git a/packages/demo/src/app/intranet-layout/intranet-layout.component.html b/packages/demo/src/app/intranet-layout/intranet-layout.component.html deleted file mode 100644 index 929378a6a2..0000000000 --- a/packages/demo/src/app/intranet-layout/intranet-layout.component.html +++ /dev/null @@ -1,384 +0,0 @@ -
-
-

Intranet Header

-
- -

Installation

-

- The Intranet Header is an - Angular - component and as such, only works with Angular projects. -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- List of compatible version numbers with external dependencies. -
Intranet-headerBootstrapAngularNg-Bootstrap
3.x4.x14.x13.x
4.x5.215.x14.x
5.x5.216.x15.x
-
-

Install the latest version of the Intranet Header with:

- -

Or specify the version you need:

- - -

Usage

-
-

- In your - app.module.ts - , add the header to your imports: -

- -

- On your layout page; create a container (e.g. - <div> - or - <section> - - or use the - body - container) and apply the following css classes: -

-
    -
  • layout-container
  • -
  • - header-big - - if you are using the top with the navbar -
  • -
  • - header-small - - if you are using the top without the navbar -
  • -
  • - with-searchbar - - if you are using the top with the searchbar -
  • -
-

- Inside, add the - post-intranet-header - component, with the applicable options (see below). -

-

- If you are using the navbar, add the list-items for the navigation directly inside the tag. - (see example "With top navigation, without sidenav") -

-

- If you are using a side-nav, adjust your markup accordingly. (See examples "Without top - navigation, with sidenav" and "Intranet-Header "postweb""). -
- Make sure that you have the - openedMenu - Property in your angular app and that you apply the same classes to the markup as shown in the - mentioned examples. -

-
- -

Options

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyTypeDefaultDescription
- additionalInfo - - string - - '' - - Additional information about the user, shown as item in the user-dropdown. -
- By default, the item will not be rendered. -
- currentUserId - - string - - '' - - The user ID of the currently logged on user. -
- Used to show the users profile image. -
- The default value of - 'user' - is used to show the fallback-image. -
- displayName - - string - - '' - - The name of the logged on user, shown as item in the user-dropdown. -
- By default, the item will not be rendered. -
- hasNavbar - - boolean - - true - Whether the navigation is rendered or not.
- languages - - string - - 'de,fr,it,en' - - A comma-separated string that specifies the languages available to the language-selector - shown as items in the user-dropdown. -
- Possible language values are: - de - , - fr - , - it - and - en -
- logoUrl - - string - - '' - - The url which is used for the - href - attribute on the logo. -
- optionDropdownContent - TemplateRef<any>null - Represents an embedded angular template that can be used to instantiate embedded views. -
- Shown as item in the user-dropdown. -
- By default, the item will not be rendered. -
- optionHeaderContent - TemplateRef<any>null - Represents an embedded angular template that can be used to instantiate embedded views. -
- Shown as custom content before the user-dropdown. -
- By default, the item will not be rendered. -
- searchUrl - - string - - '' - - Used as the form - action - attribute on the search form. -
- If - showIntranetSearch - is set to - true - the - searchUrl - must be set as well. -
- showIntranetSearch - booleanfalseWhether the search is rendered or not.
- siteTitle - - string - - '' - The website/application name, shown next to the Logo.
-
-

Examples

-

With top navigation, without sidenav

-

- Add - - <main role="main"> <!-- Site Content / Router-Outlet --> </main> - - beneath. -

-
- -
-
- -
-
- -
- - -

Without top navigation, with sidenav

-
- -
-
- -
-
- -
- - - -

Intranet-Header "postweb"

-
-
-

Top navigation links must be maintained by the application!

-
-
-
- -
-
- -
-
- -
- - -
diff --git a/packages/demo/src/app/intranet-layout/intranet-layout.component.ts b/packages/demo/src/app/intranet-layout/intranet-layout.component.ts deleted file mode 100644 index 6f0ccb9be5..0000000000 --- a/packages/demo/src/app/intranet-layout/intranet-layout.component.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Component } from '@angular/core'; - -const CODE_TEMPLATE_REG = - require('!!raw-loader!./components/intranet-header-demo-regular/intranet-header-demo-regular.component.html').default; -const CODE_TEMPLATE_SMALL = - require('!!raw-loader!./components/intranet-header-demo-small-sidebar/intranet-header-demo-small-sidebar.component.html').default; -const CODE_TEMPLATE_BIG = - require('!!raw-loader!./components/intranet-header-demo-big-sidebar/intranet-header-demo-big-sidebar.component.html').default; - -@Component({ - selector: 'app-intranet-layout', - templateUrl: 'intranet-layout.component.html', - styleUrls: ['intranet-layout.component.css'], -}) -export class IntranetLayoutComponent { - codeModule = `// Other imports .... - import { SwissPostIntranetHeaderModule } from '@swisspost/design-system-intranet-header'; - - @NgModule({ - declarations: [ - // ... - ], - imports: [ - // ... - SwissPostIntranetHeaderModule, - ], - // ... - }) - export class AppModule {}`; - codeTemplateSmall = CODE_TEMPLATE_SMALL; - codeTemplateBig = CODE_TEMPLATE_BIG; - codeTemplateReg = CODE_TEMPLATE_REG; -} diff --git a/packages/demo/src/app/intranet-layout/models/error.interface.ts b/packages/demo/src/app/intranet-layout/models/error.interface.ts deleted file mode 100644 index b8a4524c78..0000000000 --- a/packages/demo/src/app/intranet-layout/models/error.interface.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface Error { - entity: string; - property: string; - invalidValue: string; - message: string; -} diff --git a/packages/demo/src/app/intranet-layout/services/error.service.ts b/packages/demo/src/app/intranet-layout/services/error.service.ts deleted file mode 100644 index bca33e900c..0000000000 --- a/packages/demo/src/app/intranet-layout/services/error.service.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Subject } from 'rxjs'; -import { HttpErrorResponse } from '@angular/common/http'; -import { Error } from '../models/error.interface'; - -/** - * Provides a way to handle http errors globally. - */ -@Injectable() -export class ErrorService { - unexpectedErrorEvent: Subject = new Subject(); - - /** - * Expected errors have status 400, and have an Error[] in the json response: they are handled by the caller. - * Unexpected errors: everything else: handled by subscribers. - */ - public handleError(response: HttpErrorResponse): Error[] { - let errors = []; - if (400 === response.status && response.error && response.error.errors) { - // Let the caller handle the expected error - errors = response.error.errors; - } else { - this.handleUnexpectedError(response); - } - return errors; - } - - handleUnexpectedError(response: HttpErrorResponse) { - // Let subscribers handle the unexpected error - this.unexpectedErrorEvent.next(response); - } -} diff --git a/packages/demo/src/app/layout-container/layout-container.component.html b/packages/demo/src/app/layout-container/layout-container.component.html deleted file mode 100644 index 5f9a3ff323..0000000000 --- a/packages/demo/src/app/layout-container/layout-container.component.html +++ /dev/null @@ -1,463 +0,0 @@ - - - - - diff --git a/packages/demo/src/app/layout-container/layout-container.component.scss b/packages/demo/src/app/layout-container/layout-container.component.scss deleted file mode 100644 index ddebec8f82..0000000000 --- a/packages/demo/src/app/layout-container/layout-container.component.scss +++ /dev/null @@ -1,36 +0,0 @@ -.version-switch { - margin: -1rem; -} - -.dropdown-button { - align-items: center; - padding-inline: 1rem; - padding-block: 0; - min-height: 0; - height: 64px; // Static header height -} - -.dropdown-item { - border-top: 1px solid var(--post-black-10); - - &:first-child { - border-top: none; - } -} - -.icons { - display: flex; - align-items: center; - flex-wrap: wrap; - gap: 0.75rem; - - span { - display: flex; - align-items: center; - gap: 0.25rem; - } - - img { - max-width: 1.5em; - } -} diff --git a/packages/demo/src/app/layout-container/layout-container.component.ts b/packages/demo/src/app/layout-container/layout-container.component.ts deleted file mode 100644 index b36cd61907..0000000000 --- a/packages/demo/src/app/layout-container/layout-container.component.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Component } from '@angular/core'; -import { VersionService } from '../common/version.service'; -import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; -import { filter, map, mergeMap } from 'rxjs/operators'; - -@Component({ - templateUrl: 'layout-container.component.html', - styleUrls: ['layout-container.component.scss'], -}) -export class LayoutContainerComponent { - public setFullwidthContainer: boolean = false; - public versions$; - public currentVersion$; - - constructor( - private versionService: VersionService, - public router: Router, - private route: ActivatedRoute, - ) { - this.versions$ = this.versionService.versions; - this.currentVersion$ = this.versionService.currentVersion; - - this.router.events - .pipe( - filter(e => e instanceof NavigationEnd), - map(() => this.route), - map(route => { - while (route.firstChild) { - route = route.firstChild; - } - return route; - }), - mergeMap(route => route.data), - ) - .subscribe(data => { - this.setFullwidthContainer = !!data.fullWidth; - }); - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.html deleted file mode 100644 index 1c8ca6febf..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Accordion

- -
- -
- -
- diff --git a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.ts deleted file mode 100644 index dbc2741085..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo-page/accordion-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../accordion-demo/accordion-demo.component.html').default; - -@Component({ - selector: 'app-accordion-demo-page', - templateUrl: './accordion-demo-page.component.html', -}) -export class NgbAccordionDemoPageComponent { - codeTemplate = codeTemplate.toString(); -} diff --git a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo/accordion-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo/accordion-demo.component.html deleted file mode 100644 index aea8d898a1..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo/accordion-demo.component.html +++ /dev/null @@ -1,63 +0,0 @@ -
-
-

- -

-
-
- -

- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad - squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck - quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it - squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, - craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur - butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth - nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -

- -
- - - -
-
-
-
-
- -
-

- -

-
-
- -

- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad - squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck - quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it - squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, - craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur - butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth - nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -

-
-
-
-
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo/accordion-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo/accordion-demo.component.ts deleted file mode 100644 index d6baa86fa8..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/accordion/accordion-demo/accordion-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-accordion-demo', - templateUrl: './accordion-demo.component.html', -}) -export class NgbAccordionDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component.html deleted file mode 100644 index 73a3aec54c..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component.html +++ /dev/null @@ -1,42 +0,0 @@ -
-

Alerts

- -
- -
-

- The following two color variants are deprecated and will be removed in the next major version of - the styles package: -

-
    -
  • - alert-error - becomes - alert-danger -
  • -
  • - alert-notification - becomes - alert-primary -
  • -
-
- -

- For more information about available alerts/notifications, check the - - Alert/Notification page under the "Bootstrap" Menu - - . -

-
- -
- - - - diff --git a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component.ts deleted file mode 100644 index cbcb086d38..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo-page/alert-demo-page.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../alert-demo/alert-demo.component.html').default; -@Component({ - selector: 'app-ngb-alert-demo-page', - templateUrl: './alert-demo-page.component.html', -}) -export class NgbAlertDemoPageComponent { - codeTemplate: string = codeTemplate.toString(); - arrayTemplate: string = ''; - - setArrayTemplate(arrayTemplate: string) { - this.arrayTemplate = arrayTemplate; - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.html deleted file mode 100644 index 5456c59521..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.html +++ /dev/null @@ -1,14 +0,0 @@ -
- -

{{ alert.title }}

-

{{ alert.message }}

-
-
-

- -

diff --git a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.scss b/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.scss deleted file mode 100644 index 26d483e06f..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -@use '@swisspost/design-system-styles/core' as post; - -.pi-2063-white { - @include post.pi(2063, 'white'); -} diff --git a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.ts deleted file mode 100644 index 6678bf5550..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/alert/alert-demo/alert-demo.component.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Component, Input, Output, EventEmitter } from '@angular/core'; - -@Component({ - selector: 'app-ngb-alert-demo', - templateUrl: './alert-demo.component.html', - styleUrls: ['./alert-demo.component.scss'], -}) -export class NgbAlertDemoComponent { - @Input() - public alerts: Array = []; - - public visibleFixedAlert: boolean = true; - - public backup: Array; - - @Output() setArray: EventEmitter = new EventEmitter(); - - constructor() { - this.alerts.push( - { - id: 1, - type: 'success', - title: 'Success', - message: 'This is an success alert', - class: '', - }, - { - id: 2, - type: 'info', - title: 'This is an info alert', - class: '', - }, - { - id: 3, - type: 'warning', - title: 'This is a warning alert', - class: '', - }, - { - id: 4, - type: 'danger', - title: 'Danger', - message: 'This is a danger alert', - class: '', - }, - { - id: 6, - type: 'primary', - title: 'Primary', - message: 'This is a primary alert', - class: '', - }, - { - id: 8, - type: 'primary', - title: 'Alert without icon (added class "no-icon")', - class: 'no-icon', - }, - { - id: 9, - type: 'primary', - title: 'With special icon', - message: 'Icon needs to be extended in sass.', - class: 'pi-2063-white', - }, - { - id: 10, - type: 'info', - title: 'With special icon', - message: 'Just add the "pi"-class to the alert.', - class: 'pi-1001', - }, - { - id: 11, - type: 'primary', - title: 'Fixed alert', - message: 'Alert that is fixed to the bottom of the page.', - class: 'alert-fixed-bottom', - }, - ); - this.backup = this.alerts.map((alert: IAlert) => Object.assign({}, alert)); - } - - public closeAlert(alert: IAlert) { - const index: number = this.alerts.indexOf(alert); - this.alerts.splice(index, 1); - } - - public reset() { - this.alerts = this.backup.map((alert: IAlert) => Object.assign({}, alert)); - this.visibleFixedAlert = true; - } -} - -export interface IAlert { - id: number; - title?: string; - type: string; - message?: string; - class: string; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component.html deleted file mode 100644 index e803f9a2d5..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component.html +++ /dev/null @@ -1,26 +0,0 @@ -
-

Carousel

- -
- -

Basic example

-
- -
- - -

Light caption

-
- -
- - - diff --git a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component.ts deleted file mode 100644 index 9b53a24290..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo-page/carousel-demo-page.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -const carouselTemplate = - require('!!raw-loader!../carousel-demo/carousel-demo.component.html').default; -const lightCarouselTemplate = - require('!!raw-loader!../carousel-light-demo/carousel-light-demo.component.html').default; - -@Component({ - selector: 'app-ngb-carousel-demo-page', - templateUrl: './carousel-demo-page.component.html', -}) -export class NgbCarouselDemoPageComponent { - carouselTemplate = carouselTemplate; - lightCarouselTemplate = lightCarouselTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo/carousel-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo/carousel-demo.component.html deleted file mode 100644 index ca42e92a3d..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo/carousel-demo.component.html +++ /dev/null @@ -1,32 +0,0 @@ - - - First slide - - - - Second slide - - - - Third slide - - - diff --git a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo/carousel-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo/carousel-demo.component.ts deleted file mode 100644 index 1f259a64e1..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-demo/carousel-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-carousel-demo', - templateUrl: './carousel-demo.component.html', -}) -export class NgbCarouselDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-light-demo/carousel-light-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-light-demo/carousel-light-demo.component.html deleted file mode 100644 index 0ced782022..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-light-demo/carousel-light-demo.component.html +++ /dev/null @@ -1,32 +0,0 @@ - - - First slide - - - - Second slide - - - - Third slide - - - diff --git a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-light-demo/carousel-light-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-light-demo/carousel-light-demo.component.ts deleted file mode 100644 index df2106f372..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/carousel/carousel-light-demo/carousel-light-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-carousel-light-demo', - templateUrl: './carousel-light-demo.component.html', -}) -export class NgbCarouselLightDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component.html deleted file mode 100644 index 18477eec87..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Collapse

- -
- -
- -
- diff --git a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component.ts deleted file mode 100644 index 66e2d14fa8..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo-page/collapse-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../collapse-demo/collapse-demo.component.html').default; - -@Component({ - selector: 'app-ngb-collapse-demo-page', - templateUrl: './collapse-demo-page.component.html', -}) -export class NgbCollapseDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo/collapse-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo/collapse-demo.component.html deleted file mode 100644 index 900a33a155..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo/collapse-demo.component.html +++ /dev/null @@ -1,16 +0,0 @@ -

- -

-
-
-
You can collapse this card by clicking Toggle
-
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo/collapse-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo/collapse-demo.component.ts deleted file mode 100644 index 36a9661a1e..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/collapse/collapse-demo/collapse-demo.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-collapse-demo', - templateUrl: './collapse-demo.component.html', -}) -export class NgbCollapseDemoComponent { - public isCollapsed = false; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component.html deleted file mode 100644 index 73ab791188..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component.html +++ /dev/null @@ -1,196 +0,0 @@ -
-

Datepicker

- -
- -
-

- The - .pi-calendar - class previously used to display the calendar icon in the datepicker button has been deprecated - in favor of the - .pi-3203 - class which shows the same icon. -

-
- -
-

Choose a language:

- -
- - - - - - - - - - - -
- - -
- -
-

Simple datepicker

- -
-
-
- - -
- - - -
-
- - -
-
- -

datepicker.component.html

- - -

datepicker-simple.component.ts

- -
- -
-

Datepicker with validation

-
-
-
- - -
- - - -
-
- -

datepicker.component.html

- - -

datepicker-simple.component.ts

- -
- - -

- The datepicker requires additional translations for months and days of the week. These can be - configured using the service below: -

- - -
diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component.ts deleted file mode 100644 index 24432bbce9..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-demo-page.component.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { Component, OnInit } from '@angular/core'; -import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms'; -import { I18n } from './datepicker-localization.service'; - -const dpSimpleHtml = - require('!!raw-loader!../datepicker-simple/datepicker-simple.component.html').default; -const dpSimpleHtmlLg = - require('!!raw-loader!../datepicker-simple/datepicker-simple-lg.component.html').default; -const dpValidationHtml = - require('!!raw-loader!../datepicker-validation/datepicker-validation.component.html').default; -const dpValidationHtmlLg = - require('!!raw-loader!../datepicker-validation/datepicker-validation-lg.component.html').default; -const dpSimpleTs = - require('!!raw-loader!../datepicker-simple/datepicker-simple-demo.component.ts').default; -const dpValidationTs = - require('!!raw-loader!../datepicker-validation/datepicker-validation-demo.component.ts').default; -const localizationService = require('!!raw-loader!./datepicker-localization.service.ts').default; - -@Component({ - selector: 'app-datepicker-demo-page', - templateUrl: './datepicker-demo-page.component.html', -}) -export class NgbDatepickerDemoPageComponent implements OnInit { - dpSimpleHtml = dpSimpleHtml; - dpSimpleHtmlLg = dpSimpleHtmlLg; - dpValidationHtml = dpValidationHtml; - dpValidationHtmlLg = dpValidationHtmlLg; - dpSimpleTs = dpSimpleTs; - dpValidationTs = dpValidationTs; - localizationService = localizationService; - - form: UntypedFormGroup; - sizes = ['sm', 'rg', 'md', 'lg']; - - constructor(private _i18n: I18n, private formBuilder: UntypedFormBuilder) {} - - ngOnInit() { - this.form = this.formBuilder.group({ - dpNavigation: ['arrows'], - sizeRange: [3], - sizeRangeSimple: [2], - }); - } - - get sizeRangeSimple() { - return this.form.get('sizeRangeSimple'); - } - - get dpNavigation() { - return this.form.get('dpNavigation'); - } - - get sizeRange() { - return this.form.get('sizeRange'); - } - - get dpValidationSize() { - return this.sizes[this.form.get('sizeRange').value]; - } - - get dpSimpleSize() { - return this.sizes[this.form.get('sizeRangeSimple').value]; - } - - set language(language: string) { - this._i18n.language = language; - } - - get language() { - return this._i18n.language; - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-localization.service.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-localization.service.ts deleted file mode 100644 index 3dbf1b51af..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-localization.service.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { Injectable } from '@angular/core'; -import { formatDate } from '@angular/common'; -import { NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; - -const I18N_VALUES = { - en: { - weekdays: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'], - months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - monthsFull: [ - 'January', - 'February', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December', - ], - }, - fr: { - weekdays: ['Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa', 'Di'], - months: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Aou', 'Sep', 'Oct', 'Nov', 'Déc'], - monthsFull: [ - 'Janvier', - 'Février', - 'Mars', - 'Avril', - 'Mai', - 'Juin', - 'Juillet', - 'Août', - 'Septembre', - 'Octobre', - 'Novembre', - 'Décembre', - ], - }, - it: { - weekdays: ['Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab', 'Dom'], - months: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'], - monthsFull: [ - 'Gennaio', - 'Febbraio', - 'Marzo', - 'Aprile', - 'Maggio', - 'Giugno', - 'Luglio', - 'Agosto', - 'Settembre', - 'Ottobre', - 'Novembre', - 'Dicembre', - ], - }, - de: { - weekdays: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'], - months: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], - monthsFull: [ - 'Januar', - 'Februar', - 'März', - 'April', - 'Mai', - 'Juni', - 'Juli', - 'August', - 'September', - 'Oktober', - 'November', - 'Dezember', - ], - }, -}; - -// Define a service holding the language. You probably already have one if your app is i18ned. Or you could also -// use the Angular LOCALE_ID value -@Injectable() -export class I18n { - language = 'de'; -} - -// Define custom service providing the months and weekdays translations -@Injectable({ - providedIn: 'root', -}) -export class SwissPostDatepickerI18n extends NgbDatepickerI18n { - constructor(private _i18n: I18n) { - super(); - } - - getWeekdayLabel(weekday: number): string { - return I18N_VALUES[this._i18n.language].weekdays[weekday - 1]; - } - - getMonthShortName(month: number): string { - return I18N_VALUES[this._i18n.language].months[month - 1]; - } - - getMonthFullName(month: number): string { - return I18N_VALUES[this._i18n.language].monthsFull[month - 1]; - } - - getDayAriaLabel(dateStruct: NgbDateStruct): string { - const date = new Date(dateStruct.year, dateStruct.month - 1, dateStruct.day); - return formatDate(date, 'fullDate', this._i18n.language); - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-demo.component.ts deleted file mode 100644 index be94182624..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-demo.component.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Component, Input, OnInit } from '@angular/core'; -import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; -import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; -import { I18n } from '../datepicker-demo-page/datepicker-localization.service'; - -@Component({ template: '' }) -export class DatepickerSimpleDemoComponent implements OnInit { - form: UntypedFormGroup; - - @Input() inputSize: 'sm' | 'rg' | 'md' | 'lg'; - @Input() navigation: 'arrows' | 'select'; - - constructor(private _i18n: I18n, private formBuilder: UntypedFormBuilder) {} - - @Input() set language(value: string) { - this._i18n.language = value; - } - - get simpleDatepicker() { - return this.form.get('simpleDatepicker'); - } - - ngOnInit() { - this.form = this.formBuilder.group({ - simpleDatepicker: [null as NgbDateStruct], - }); - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-lg.component.html b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-lg.component.html deleted file mode 100644 index f390c388f3..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-lg.component.html +++ /dev/null @@ -1,17 +0,0 @@ -
- - - -
diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-lg.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-lg.component.ts deleted file mode 100644 index 4c1ea286bf..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple-lg.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -import { NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap'; -import { - SwissPostDatepickerI18n, - I18n, -} from '../datepicker-demo-page/datepicker-localization.service'; -import { DatepickerSimpleDemoComponent } from './datepicker-simple-demo.component'; - -@Component({ - selector: 'app-datepicker-simple-lg', - templateUrl: './datepicker-simple-lg.component.html', - providers: [I18n, { provide: NgbDatepickerI18n, useClass: SwissPostDatepickerI18n }], -}) -export class DatepickerSimpleLgComponent extends DatepickerSimpleDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple.component.html b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple.component.html deleted file mode 100644 index 8f25a3d552..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple.component.html +++ /dev/null @@ -1,18 +0,0 @@ -
- - -
diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple.component.ts deleted file mode 100644 index a4467ab267..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-simple/datepicker-simple.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -import { NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap'; -import { - SwissPostDatepickerI18n, - I18n, -} from '../datepicker-demo-page/datepicker-localization.service'; -import { DatepickerSimpleDemoComponent } from './datepicker-simple-demo.component'; - -@Component({ - selector: 'app-datepicker-simple', - templateUrl: './datepicker-simple.component.html', - providers: [I18n, { provide: NgbDatepickerI18n, useClass: SwissPostDatepickerI18n }], -}) -export class DatepickerSimpleComponent extends DatepickerSimpleDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-demo.component.ts deleted file mode 100644 index 9b5758063b..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-demo.component.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Component, Input, OnInit } from '@angular/core'; -import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; -import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; -import { I18n } from '../datepicker-demo-page/datepicker-localization.service'; - -@Component({ template: '' }) -export class DatepickerValidationDemoComponent implements OnInit { - form: UntypedFormGroup; - navigation = 'arrows'; - - @Input() inputSize: 'sm' | 'rg' | 'md' | 'lg'; - - constructor(private _i18n: I18n, private formBuilder: UntypedFormBuilder) {} - - @Input() set language(value: string) { - this._i18n.language = value; - } - - get datepickerValidation() { - return this.form.get('datePickerValidation'); - } - - ngOnInit() { - this.form = this.formBuilder.group({ - datePickerValidation: [null as NgbDateStruct, [Validators.required]], - }); - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-lg.component.html b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-lg.component.html deleted file mode 100644 index eb92eb6ed0..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-lg.component.html +++ /dev/null @@ -1,29 +0,0 @@ -
- - - - - - -

Valid feedback

-

Invalid feedback

-
diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-lg.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-lg.component.ts deleted file mode 100644 index 182983281f..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation-lg.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -import { NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap'; -import { - SwissPostDatepickerI18n, - I18n, -} from '../datepicker-demo-page/datepicker-localization.service'; -import { DatepickerValidationDemoComponent } from './datepicker-validation-demo.component'; - -@Component({ - selector: 'app-datepicker-validation-lg', - templateUrl: './datepicker-validation-lg.component.html', - providers: [I18n, { provide: NgbDatepickerI18n, useClass: SwissPostDatepickerI18n }], -}) -export class DatepickerValidationLgComponent extends DatepickerValidationDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation.component.html b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation.component.html deleted file mode 100644 index cce815c255..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation.component.html +++ /dev/null @@ -1,29 +0,0 @@ -
- - - - -

Valid feedback

-

Invalid feedback

-
diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation.component.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation.component.ts deleted file mode 100644 index 2eb367e72f..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker-validation/datepicker-validation.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component } from '@angular/core'; -import { NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap'; -import { - SwissPostDatepickerI18n, - I18n, -} from '../datepicker-demo-page/datepicker-localization.service'; -import { DatepickerValidationDemoComponent } from './datepicker-validation-demo.component'; - -@Component({ - selector: 'app-datepicker-validation', - templateUrl: './datepicker-validation.component.html', - providers: [I18n, { provide: NgbDatepickerI18n, useClass: SwissPostDatepickerI18n }], -}) -export class DatepickerValidationComponent extends DatepickerValidationDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker.module.ts b/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker.module.ts deleted file mode 100644 index 318d45e012..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/datepicker/datepicker.module.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { LOCALE_ID, NgModule } from '@angular/core'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { RouterModule } from '@angular/router'; -import { NgbDatepickerI18n, NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { HighlightModule } from 'ngx-highlightjs'; -import { PostCommonModule } from '../../../common/post-common.module'; -import { HighlightProvider } from '../../../common/highlight.provider'; -import { NgbDatepickerDemoPageComponent } from './datepicker-demo-page/datepicker-demo-page.component'; -import { - SwissPostDatepickerI18n, - I18n, -} from './datepicker-demo-page/datepicker-localization.service'; -import { DatepickerSimpleDemoComponent } from './datepicker-simple/datepicker-simple-demo.component'; -import { DatepickerSimpleLgComponent } from './datepicker-simple/datepicker-simple-lg.component'; -import { DatepickerSimpleComponent } from './datepicker-simple/datepicker-simple.component'; -import { DatepickerValidationLgComponent } from './datepicker-validation/datepicker-validation-lg.component'; -import { DatepickerValidationComponent } from './datepicker-validation/datepicker-validation.component'; -import { DatepickerValidationDemoComponent } from './datepicker-validation/datepicker-validation-demo.component'; - -@NgModule({ - imports: [ - CommonModule, - RouterModule, - FormsModule, - ReactiveFormsModule, - NgbModule, - PostCommonModule, - HighlightModule, - ], - declarations: [ - DatepickerSimpleDemoComponent, - DatepickerSimpleComponent, - DatepickerSimpleLgComponent, - DatepickerValidationDemoComponent, - DatepickerValidationComponent, - DatepickerValidationLgComponent, - NgbDatepickerDemoPageComponent, - ], - exports: [NgbDatepickerDemoPageComponent], - providers: [ - { provide: LOCALE_ID, useValue: 'de' }, - HighlightProvider.Config, - I18n, - { provide: NgbDatepickerI18n, useClass: SwissPostDatepickerI18n }, - ], -}) -export class DatepickerModule {} diff --git a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component.html deleted file mode 100644 index 571ccc6083..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Dropdown

- -
- -
- -
- diff --git a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component.ts deleted file mode 100644 index b00442d218..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo-page/dropdown-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../dropdown-demo/dropdown-demo.component.html').default; - -@Component({ - selector: 'app-ngb-dropdown-demo-page', - templateUrl: './dropdown-demo-page.component.html', -}) -export class NgbDropdownDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo/dropdown-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo/dropdown-demo.component.html deleted file mode 100644 index de6fcb6d77..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo/dropdown-demo.component.html +++ /dev/null @@ -1,100 +0,0 @@ -
-
- -
- -
- - - -
- - - - - - - - - - -
-
-
-
- -
- -
- - - - - -
-
-
-
- -
- -
- - - - - - - - - - - - - - - - -
-
-
-
- -
- -
- - - - - - - - - - - - - - -
-
-
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo/dropdown-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo/dropdown-demo.component.ts deleted file mode 100644 index 21be5a703d..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/dropdown/dropdown-demo/dropdown-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-dropdown-demo', - templateUrl: './dropdown-demo.component.html', -}) -export class NgbDropdownDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-content/modal-demo-content.component.ts b/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-content/modal-demo-content.component.ts deleted file mode 100644 index 43ef397b21..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-content/modal-demo-content.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, Input } from '@angular/core'; -import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; - -@Component({ - selector: 'app-ngb-modal-content', - templateUrl: './modal-demo.content.html', -}) -export class NgbModalDemoContentComponent { - @Input() showLongContent = false; - - constructor(public activeModal: NgbActiveModal) {} -} diff --git a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-content/modal-demo.content.html b/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-content/modal-demo.content.html deleted file mode 100644 index 424b591cdf..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-content/modal-demo.content.html +++ /dev/null @@ -1,66 +0,0 @@ - - - diff --git a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component.html deleted file mode 100644 index bb779b2e2e..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component.html +++ /dev/null @@ -1,30 +0,0 @@ -
-

Modal

- -
- -
-

- To manually remove the focus styles on close button in modal, you will need to add - ngbAutofocus tabindex="-1" - to the title with class modal-title. For advanced focus management (focus the [X] button, focus - the [OK] button), please refer to - - https://ng-bootstrap.github.io/#/components/modal/examples#focus - - . -

- -
- -

trigger.component.html

- - -

trigger.component.ts

- - -

modal.component.html

- - -

modal.component.ts

- diff --git a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component.ts deleted file mode 100644 index dc2d6e78a5..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo-page/modal-demo-page.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; -const modalTemplate = require('!!raw-loader!../modal-demo-content/modal-demo.content.html').default; -const modalTsTemplate = - require('!!raw-loader!../modal-demo-content/modal-demo-content.component.ts').default; -const buttonsTemplate = require('!!raw-loader!../modal-demo/modal-demo.component.html').default; -const tsTemplate = require('!!raw-loader!../modal-demo/modal-demo.component.ts').default; - -@Component({ - selector: 'app-ngb-modal-demo-page', - templateUrl: './modal-demo-page.component.html', -}) -export class NgbModalDemoPageComponent { - modalTemplate = modalTemplate; - buttonsTemplate = buttonsTemplate; - tsTemplate = tsTemplate; - modalTsTemplate = modalTsTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo/modal-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo/modal-demo.component.html deleted file mode 100644 index b2f689dcac..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo/modal-demo.component.html +++ /dev/null @@ -1,33 +0,0 @@ -

Default modal

- -
- -

Sizes

- - - -
- -

Long content

-

When the modal is too long for the viewport, its body becomes scrollable.

- -
- -

Trigger with a tooltip

- diff --git a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo/modal-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo/modal-demo.component.ts deleted file mode 100644 index 5cfa60175c..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/modal/modal-demo/modal-demo.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component } from '@angular/core'; -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; -import { NgbModalDemoContentComponent } from '../modal-demo-content/modal-demo-content.component'; - -@Component({ - selector: 'app-ngb-modal-demo', - templateUrl: './modal-demo.component.html', -}) -export class NgbModalDemoComponent { - constructor(private modalService: NgbModal) {} - - open(modalOptions?) { - this.modalService.open(NgbModalDemoContentComponent, modalOptions); - } - - openWithLongContent() { - const modalRef = this.modalService.open(NgbModalDemoContentComponent); - modalRef.componentInstance.showLongContent = true; - } -} diff --git a/packages/demo/src/app/ng-bootstrap/components/ng-bootstrap-components.module.ts b/packages/demo/src/app/ng-bootstrap/components/ng-bootstrap-components.module.ts deleted file mode 100644 index bcb8bdcf6d..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/ng-bootstrap-components.module.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; - -import { HighlightModule } from 'ngx-highlightjs'; - -import { NgbAlertDemoComponent } from './alert/alert-demo/alert-demo.component'; -import { NgbAlertDemoPageComponent } from './alert/alert-demo-page/alert-demo-page.component'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { NgbCollapseModule, NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { DatepickerModule } from './datepicker/datepicker.module'; -import { NgbPaginationDemoPageComponent } from './pagination/pagination-demo-page/pagination-demo-page.component'; -import { NgbTabsDemoComponent } from './tabs/tabs-demo/tabs-demo.component'; -import { NgbTabsDemoPageComponent } from './tabs/tabs-demo-page/tabs-demo-page.component'; -import { NgbTimepickerDemoPageComponent } from './timepicker/timepicker-demo-page/timepicker-demo-page.component'; -import { NgbTimepickerDemoComponent } from './timepicker/timepicker-demo/timepicker-demo.component'; -import { NgbPaginationDemoComponent } from './pagination/pagination-demo/pagination-demo.component'; -import { NgbTooltipDemoComponent } from './tooltip/tooltip-demo/tooltip-demo.component'; -import { NgbTooltipDemoPageComponent } from './tooltip/tooltip-demo-page/tooltip-demo-page.component'; -import { NgbTypeaheadDemoComponent } from './typeahead/typeahead-demo/typeahead-demo.component'; -import { NgbTypeaheadDemoPageComponent } from './typeahead/typeahead-demo-page/typeahead-demo-page.component'; -import { NgbCollapseDemoComponent } from './collapse/collapse-demo/collapse-demo.component'; -import { NgbCollapseDemoPageComponent } from './collapse/collapse-demo-page/collapse-demo-page.component'; -import { NgbAccordionDemoComponent } from './accordion/accordion-demo/accordion-demo.component'; -import { NgbAccordionDemoPageComponent } from './accordion/accordion-demo-page/accordion-demo-page.component'; -import { NgbDropdownDemoComponent } from './dropdown/dropdown-demo/dropdown-demo.component'; -import { NgbDropdownDemoPageComponent } from './dropdown/dropdown-demo-page/dropdown-demo-page.component'; -import { NgbRatingDemoComponent } from './rating/rating-demo/rating-demo.component'; -import { NgbRatingDemoPageComponent } from './rating/rating-demo-page/rating-demo-page.component'; -import { NgbModalDemoComponent } from './modal/modal-demo/modal-demo.component'; -import { NgbModalDemoPageComponent } from './modal/modal-demo-page/modal-demo-page.component'; -import { NgbPopoverDemoComponent } from './popover/popover-demo/popover-demo.component'; -import { NgbPopoverDemoPageComponent } from './popover/popover-demo-page/popover-demo-page.component'; -import { NgbProgressbarDemoComponent } from './progressbar/progressbar-demo/progressbar-demo.component'; -import { NgbProgressbarDemoPageComponent } from './progressbar/progressbar-demo-page/progressbar-demo-page.component'; -import { NgbCarouselDemoPageComponent } from './carousel/carousel-demo-page/carousel-demo-page.component'; -import { NgbCarouselDemoComponent } from './carousel/carousel-demo/carousel-demo.component'; -import { NgbCarouselLightDemoComponent } from './carousel/carousel-light-demo/carousel-light-demo.component'; -import { NgbModalDemoContentComponent } from './modal/modal-demo-content/modal-demo-content.component'; -import { PostCommonModule } from '../../common/post-common.module'; - -@NgModule({ - imports: [ - CommonModule, - RouterModule, - FormsModule, - ReactiveFormsModule, - NgbModule, - PostCommonModule, - HighlightModule, - DatepickerModule, - NgbCollapseModule, - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA], - declarations: [ - NgbAlertDemoComponent, - NgbAlertDemoPageComponent, - NgbTimepickerDemoPageComponent, - NgbTimepickerDemoComponent, - NgbPaginationDemoComponent, - NgbPaginationDemoPageComponent, - NgbTabsDemoComponent, - NgbTabsDemoPageComponent, - NgbTooltipDemoComponent, - NgbTooltipDemoPageComponent, - NgbTypeaheadDemoPageComponent, - NgbTypeaheadDemoComponent, - NgbCollapseDemoComponent, - NgbCollapseDemoPageComponent, - NgbAccordionDemoComponent, - NgbAccordionDemoPageComponent, - NgbDropdownDemoComponent, - NgbDropdownDemoPageComponent, - NgbRatingDemoComponent, - NgbRatingDemoPageComponent, - NgbModalDemoPageComponent, - NgbPopoverDemoComponent, - NgbPopoverDemoPageComponent, - NgbProgressbarDemoComponent, - NgbProgressbarDemoPageComponent, - NgbCarouselDemoPageComponent, - NgbCarouselDemoComponent, - NgbCarouselLightDemoComponent, - NgbModalDemoComponent, - NgbModalDemoContentComponent, - ], - exports: [ - NgbAlertDemoComponent, - NgbAlertDemoPageComponent, - NgbTimepickerDemoPageComponent, - NgbTimepickerDemoComponent, - NgbPaginationDemoComponent, - NgbPaginationDemoPageComponent, - NgbTabsDemoComponent, - NgbTabsDemoPageComponent, - NgbTooltipDemoComponent, - NgbTooltipDemoPageComponent, - NgbTypeaheadDemoPageComponent, - NgbTypeaheadDemoComponent, - NgbCollapseDemoComponent, - NgbCollapseDemoPageComponent, - NgbAccordionDemoComponent, - NgbAccordionDemoPageComponent, - NgbDropdownDemoComponent, - NgbDropdownDemoPageComponent, - NgbRatingDemoComponent, - NgbRatingDemoPageComponent, - NgbModalDemoComponent, - NgbModalDemoPageComponent, - NgbPopoverDemoComponent, - NgbPopoverDemoPageComponent, - NgbProgressbarDemoComponent, - NgbProgressbarDemoPageComponent, - NgbCarouselDemoPageComponent, - NgbCarouselDemoComponent, - NgbCarouselLightDemoComponent, - ], -}) -export class NgBootstrapComponentsModule {} diff --git a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component.html deleted file mode 100644 index f9d409debe..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component.html +++ /dev/null @@ -1,15 +0,0 @@ -
-

Pagination

- -
- -
- -
- - - diff --git a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component.ts deleted file mode 100644 index 20808afbf3..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo-page/pagination-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../pagination-demo/pagination-demo.component.html').default; -@Component({ - selector: 'app-ngb-pagination-demo-page', - templateUrl: './pagination-demo-page.component.html', -}) -export class NgbPaginationDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo/pagination-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo/pagination-demo.component.html deleted file mode 100644 index 361fb4e783..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo/pagination-demo.component.html +++ /dev/null @@ -1,12 +0,0 @@ -

Pagination

- - - -
- -
Current page: {{ page }}
diff --git a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo/pagination-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo/pagination-demo.component.ts deleted file mode 100644 index fd96dc720f..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/pagination/pagination-demo/pagination-demo.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-pagination-demo', - templateUrl: './pagination-demo.component.html', -}) -export class NgbPaginationDemoComponent { - page = 4; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component.html deleted file mode 100644 index ac3b480710..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Popover

- -
- -
- -
- diff --git a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component.ts deleted file mode 100644 index d4e23f7a38..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo-page/popover-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../popover-demo/popover-demo.component.html').default; - -@Component({ - selector: 'app-ngb-popover-demo-page', - templateUrl: './popover-demo-page.component.html', -}) -export class NgbPopoverDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo/popover-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo/popover-demo.component.html deleted file mode 100644 index 357f72eb31..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo/popover-demo.component.html +++ /dev/null @@ -1,60 +0,0 @@ -
- - - - - - - - - - Vivamus sagittis lacus vel augue laoreet rutrum - link - faucibus. - - - Popover with - markup - - - -
diff --git a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo/popover-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo/popover-demo.component.ts deleted file mode 100644 index 79d2a19f9c..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/popover/popover-demo/popover-demo.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-popover-demo', - templateUrl: './popover-demo.component.html', -}) -export class NgbPopoverDemoComponent {} - -export class NgbdPopoverBasic {} diff --git a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component.html deleted file mode 100644 index d6dab0a5ab..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component.html +++ /dev/null @@ -1,22 +0,0 @@ -
-

Progressbar

- -
- -
- -
- - - -

- The progress bar also requires an - ariaLabel - attribute which provides context to the current progress. See the example above for how to use - it. -

-
diff --git a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component.ts deleted file mode 100644 index 9eebbadc0f..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo-page/progressbar-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../progressbar-demo/progressbar-demo.component.html').default; - -@Component({ - selector: 'app-ngb-progressbar-demo-page', - templateUrl: './progressbar-demo-page.component.html', -}) -export class NgbProgressbarDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.html deleted file mode 100644 index ee03519879..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.scss b/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.scss deleted file mode 100644 index 370d2c5ccd..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -ngb-progressbar + ngb-progressbar { - margin-top: 1rem; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.ts deleted file mode 100644 index 626f766410..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/progressbar/progressbar-demo/progressbar-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-progressbar-demo', - templateUrl: './progressbar-demo.component.html', - styleUrls: ['./progressbar-demo.component.scss'], -}) -export class NgbProgressbarDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component.html deleted file mode 100644 index 6e88868470..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Rating

- -
- -
- -
- diff --git a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component.ts deleted file mode 100644 index 2c3ca7e802..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo-page/rating-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../rating-demo/rating-demo.component.html').default; - -@Component({ - selector: 'app-ngb-rating-demo-page', - templateUrl: './rating-demo-page.component.html', -}) -export class NgbRatingDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo/rating-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo/rating-demo.component.html deleted file mode 100644 index a1fedc83e4..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo/rating-demo.component.html +++ /dev/null @@ -1,5 +0,0 @@ -
- -
-
Rate: {{currentRate}}
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo/rating-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo/rating-demo.component.ts deleted file mode 100644 index 996e2ba003..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/rating/rating-demo/rating-demo.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-rating-demo', - templateUrl: './rating-demo.component.html', -}) -export class NgbRatingDemoComponent { - public currentRate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-color-on-white.html b/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-color-on-white.html deleted file mode 100644 index ad0f19d8ff..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-color-on-white.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
    -
  • - Title - Content -
  • -
-
-
- -
\ No newline at end of file diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-dark-background.html b/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-dark-background.html deleted file mode 100644 index b943c14ba4..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-dark-background.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
-
    -
  • - Title - Content -
  • -
-
-
- -
-
\ No newline at end of file diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-default.html b/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-default.html deleted file mode 100644 index fd972da100..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-default.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
    -
  • - Title - Content -
  • -
-
-
- -
\ No newline at end of file diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-inside-container.html b/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-inside-container.html deleted file mode 100644 index 9bfefe270e..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-inside-container.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
    -
  • - Title - Content -
  • -
-
- -
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-light-background.html b/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-light-background.html deleted file mode 100644 index 490843ba09..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/snippets/tabs-light-background.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
-
    -
  • - Title - Content -
  • -
-
-
- -
-
\ No newline at end of file diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.html deleted file mode 100644 index ace1f62a7c..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.html +++ /dev/null @@ -1,313 +0,0 @@ -
-

Tabs

- -
- -
-
-
-

Default

-

- The tabs pattern is designed to be used outside of a - .container - context to spread the background and lines to the edge of the viewport. However, the tabs - can be used in another context as well (see at the bottom). In this case, notice the missing - .container - classes in the template. -

-
- -
- -
-
-
-
-

Dark background

-
- -
- -
-
-
-
-

Light background

-
- -
- -
-
-
-
-

Colored tabs on white background

-
- -
-
-

Heads up!

-

- Notice the three - bg-* - classes to see how to fine-tune the background colors. -

- -
-
-
- -
-

- Tabs inside a - .container - context -

-
- -
- -
- -

- Notice the - .container - around all the tabs and the missing - .container - classes on the tabs itself. -

- -
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.scss b/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.scss deleted file mode 100644 index b77f920baf..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.scss +++ /dev/null @@ -1,4 +0,0 @@ -.negate-px-3 { - margin-right: -1rem; - margin-left: -1rem; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.ts deleted file mode 100644 index b0f43ef181..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo-page/tabs-demo-page.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../tabs-demo/tabs-demo.component.html').default; -const defaultSnippet = require('!!raw-loader!../snippets/tabs-default.html').default; -const darkBgSnippet = require('!!raw-loader!../snippets/tabs-dark-background.html').default; -const lightBgSnippet = require('!!raw-loader!../snippets/tabs-light-background.html').default; -const colorBgSnippet = require('!!raw-loader!../snippets/tabs-color-on-white.html').default; -const containerSnippet = require('!!raw-loader!../snippets/tabs-inside-container.html').default; -@Component({ - selector: 'app-ngb-tabs-demo-page', - templateUrl: './tabs-demo-page.component.html', - styleUrls: ['./tabs-demo-page.component.scss'], -}) -export class NgbTabsDemoPageComponent { - codeTemplate = codeTemplate; - defaultSnippet = defaultSnippet; - darkBgSnippet = darkBgSnippet; - lightBgSnippet = lightBgSnippet; - colorBgSnippet = colorBgSnippet; - containerSnippet = containerSnippet; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo/tabs-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo/tabs-demo.component.html deleted file mode 100644 index 8f9f3473a2..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo/tabs-demo.component.html +++ /dev/null @@ -1,754 +0,0 @@ -
- -
-
    -
  • - Mantis Shrimp - -
    -
    -
    - Mantis Shrimp on the sea floor -
    - - Photo by - - Dorothea OLDANI - - on - - Unsplash - - -
    -
    -
    -
    -

    Mantis shrimp

    -

    The heaviest punch

    -

    - Mantis shrimps - , or - stomatopods - , are - - carnivorous - - - marine - - - crustaceans - - of the - - order - - Stomatopoda - , - - branching - - from other members of the class - - Malacostraca - - around 340 million years ago. - [2] - Mantis shrimps typically grow to around 10 cm (3.9 in) in length, while a - few can reach up to 38 cm (15 in). - - [3] - - The largest mantis shrimp ever caught had a length of 46 cm (18 in); it - was caught in the - - Indian River - - near - - Fort Pierce, Florida - - , in the - - United States - - . - - [4] - - A mantis shrimp's - carapace - (the bony, thick shell that covers crustaceans and some other species) covers only - the rear part of the head and the first four segments of the - thorax - . Varieties range in color from shades of brown to vivid colors, with more than 450 - species of mantis shrimps being known. They are among the most important - - predators - - in many shallow, - tropical - and - - subtropical - - marine - habitats - . However, despite being common, they are poorly understood, as many species spend - most of their lives tucked away in burrows and holes. - [5] -

    -

    - Called "sea locusts" by - ancient - - Assyrians - - , "prawn killers" in Australia, - [6] - and now sometimes referred to as "thumb splitters" — because of the animal's ability - to inflict painful wounds if handled incautiously - [7] - — mantis shrimps have powerful - raptorials - that are used to attack and kill prey either by spearing, stunning, or - - dismembering - - . Some mantis shrimp species have specialised calcified "clubs" that can strike with - great power, while others have sharp forelimbs used to seize the prey (hence the - term "mantis" in its - - common name - - ). -

    -
    -
    -
    -
  • -
  • - Tardigrades - -
    -
    - -
    -
    -

    Tardigrades

    -

    The toughest guy

    -

    - Tardigrades - ( - - - - / - - ˈ - t - ɑːr - d - ɪ - ɡ - r - - d - - / - - - - ), known colloquially as - water bears - or - moss piglets - , - - [1] - - - [2] - - [3] - [4] - are a - phylum - of eight-legged - - segmented - - - micro-animals - - . - - [1] - - [5] - They were first described by the German zoologist - - Johann August Ephraim Goeze - - in 1773, who called them - little water bears - . In 1777, the Italian biologist - - Lazzaro Spallanzani - - named them - Tardigrada - - - - / - - t - ɑːr - ˈ - d - ɪ - ɡ - r - ə - d - ə - - / - - - - , which means "slow steppers". - - [6] - -

    -

    - They have been found everywhere, from mountaintops to the - deep sea - and - - mud volcanoes - - , - [7] - and from - - tropical rainforests - - to the - Antarctic - . - [8] - Tardigrades are among the most resilient animals known, - - [9] - - - [10] - - with individual species able to survive extreme conditions—such as exposure to - extreme temperatures, extreme - - pressures - - (both high and low), air deprivation, - radiation - , - - dehydration - - , and - starvation - —that would quickly kill most other known forms of - life - . - [11] - Tardigrades have survived exposure to - - outer space - - . - [12] - [13] - There are about 1,300 known species - [14] - in the - phylum - Tardigrada, a part of the superphylum - Ecdysozoa - consisting of animals that grow by - ecdysis - such as - arthropods - and - nematodes - . The earliest known true members of the group are known from Cretaceous amber in - North America, but are essentially modern forms, and therefore likely have a - significantly earlier origin, as they diverged from their closest relatives in the - Cambrian - , over 500 million years ago. -

    -

    - Tardigrades are usually about 0.5 mm (0.02 in) long when fully grown. - - [1] - - They are short and plump, with four pairs of legs, each ending in claws (usually - four to eight) or suction disks. - - [1] - - - [15] - - Tardigrades are prevalent in - mosses - and - lichens - and feed on plant cells, algae, and small invertebrates. When collected, they may be - viewed under a low-power - microscope - , making them accessible to students and amateur scientists. - [16] -

    -
    -
    -
    -
  • -
  • - Immortal Jellyfish - -
    -
    - Jellyfish in a black sea -
    -
    -

    Turritopsis dohrnii

    -

    The immortal

    -

    - Turritopsis dohrnii - , also known as the - immortal jellyfish - , is a - species - of small, - - biologically immortal - - jellyfish - [2] - - [3] - - found worldwide in temperate to tropic waters. It is one of the few known cases of - animals - capable of reverting completely to a sexually immature, colonial stage after having - reached sexual maturity as a solitary individual. Others include the jellyfish - - - Laodicea undulata - - -  [ - - sv - - ] - - - [4] - and species of the genus - - - Aurelia - - - . - [5] -

    -

    - Like most other - - hydrozoans - - , - T. dohrnii - begin their life as tiny, free-swimming - larvae - known as - planulae - . As a planula settles down, it gives rise to a colony of - - polyps - - that are attached to the - sea-floor - . All the polyps and jellyfish arising from a single planula are genetically - identical clones. - [6] - The polyps form into an extensively branched form, which is not commonly seen in - most jellyfish. Jellyfish, also known as medusae, then bud off these polyps and - continue their life in a free-swimming form, eventually becoming sexually mature. - When sexually mature, they have been known to prey on other jellyfish species at a - rapid pace. If a - T. dohrnii - jellyfish is exposed to environmental stress, physical assault, or is sick or old, - it can revert to the polyp stage, forming a new polyp colony. - - [7] - - It does this through the cell development process of - - transdifferentiation - - , which alters the - - differentiated state of the cells - - and transforms them into new types of cells. -

    -

    - Theoretically, this process can go on indefinitely, effectively rendering the - jellyfish biologically immortal, - - [3] - - - [8] - - although in practice individuals can still die. In nature, most - Turritopsis - dohrnii - are likely to succumb to predation or disease in the medusa stage without reverting - to the polyp form. - - [9] - -

    -

    - The capability of biological immortality with no maximum lifespan makes - T. dohrnii - an important target of basic biological, - aging - and - - pharmaceutical - - research. - - [10] - -

    -
    -
    -
    -
  • -
  • - Platypus - -
    -
    - Platypus on the forest floor -
    -
    -

    Platypus

    -

    The patchwork animal

    -

    - The - platypus - ( - Ornithorhynchus anatinus - ), sometimes referred to as the - duck-billed platypus - , is a - - semiaquatic - - egg-laying - mammal - - endemic - - to - - eastern Australia - - , including - Tasmania - . The platypus is the sole living representative of its - - family - - ( - - Ornithorhynchidae - - ) and - genus - ( - Ornithorhynchus - ), though a number of - - related species - - appear in the fossil record. -

    -

    - Together with the four species of - echidna - , it is one of the five - - extant - - species of - monotremes - , the only mammals that lay - - eggs - - instead of giving birth to live young. Like other monotremes, it senses prey through - - electrolocation - - . It is one of the few species of - - venomous mammals - - , as the male platypus has a - - spur - - on the hind foot that delivers a - - venom - - capable of causing severe pain to humans. The unusual appearance of this egg-laying, - duck - -billed, - beaver - -tailed, - otter - -footed mammal baffled European naturalists when they first encountered it, and the - first scientists to examine a preserved platypus body (in 1799) judged it a fake, - made of several animals sewn together. -

    -

    - The unique features of the platypus make it an important subject in the study of - - evolutionary biology - - , and a recognisable and iconic symbol of - Australia - . It is culturally significant to several - - Aboriginal peoples of Australia - - , who also used to hunt the animal for food. It has appeared as a mascot at national - events and features on the - - reverse - - of the - - Australian twenty-cent coin - - , and the platypus is the animal emblem of the state of - - New South Wales - - . Until the early 20th century humans hunted the platypus for its fur, but it is now - protected throughout its range. Although - - captive-breeding - - programs have had only limited success, and the platypus is vulnerable to the - effects of pollution, it is not under any immediate threat. -

    -

    - As of 2020 - - , the platypus is a legally - - protected species - - in all states where it occurs, but it only listed as an - - endangered species - - in - - South Australia - - . The species is classified as a - - near-threatened species - - by the - - IUCN - - , but a November 2020 report has recommended that it is upgraded to - - threatened species - - under the federal - - - EPBC Act - - - , due to habitat destruction and declining numbers in all states. -

    -
    -
    -
    -
  • -
-
-
- - -
-
-
diff --git a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo/tabs-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo/tabs-demo.component.ts deleted file mode 100644 index 2b2505dee5..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tabs/tabs-demo/tabs-demo.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component, Input } from '@angular/core'; - -@Component({ - selector: 'app-ngb-tabs-demo', - templateUrl: './tabs-demo.component.html', -}) -export class NgbTabsDemoComponent { - @Input() tabsBg: string; - @Input() contentBg: string; - @Input() wrapperBg: string; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component.html deleted file mode 100644 index c455c64591..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Timepicker

- -
- -
- -
- -

timepicker.component.html

- - - diff --git a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component.ts deleted file mode 100644 index 4ab3777ef1..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo-page/timepicker-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../timepicker-demo/timepicker-demo.component.html').default; -@Component({ - selector: 'app-timepicker-demo-page', - templateUrl: './timepicker-demo-page.component.html', -}) -export class NgbTimepickerDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo/timepicker-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo/timepicker-demo.component.html deleted file mode 100644 index 89540b5bbc..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo/timepicker-demo.component.html +++ /dev/null @@ -1,69 +0,0 @@ -

Timepicker example

- -
Selected time: {{time | json}}
- -
- -

Sizing

-

- By default, the timepicker component only supports 3 different sizes: - sm - , - md - , and - lg - . -

-

- To use one of these predefined sizes, simply set the - [size] - entry as defined in the - - component api - - . -

-
-
- -
-
- -
-
- -
-
- -
- -

- To use the timpicker in regular size, remove the - [size] - input and use the class - .timepicker-rg - instead. -

- - -
- -

Timepicker with validation

-
- - -

The time is right.

-

Time is too early.

-

Time is too late.

-

This field is required.

-
diff --git a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo/timepicker-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo/timepicker-demo.component.ts deleted file mode 100644 index e33cb5f5fb..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/timepicker/timepicker-demo/timepicker-demo.component.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Component } from '@angular/core'; -import { UntypedFormControl } from '@angular/forms'; -import { NgbTimeStruct } from '@ng-bootstrap/ng-bootstrap'; - -@Component({ - selector: 'app-timepicker-demo', - templateUrl: './timepicker-demo.component.html', -}) -export class NgbTimepickerDemoComponent { - time: NgbTimeStruct; - - ctrl = new UntypedFormControl(null, (control: UntypedFormControl) => { - const value = control.value; - - if (!value) { - return null; - } - - if (value.hour < 12) { - return { tooEarly: true }; - } - - if (value.hour > 14) { - return { tooLate: true }; - } - - return null; - }); -} diff --git a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component.html deleted file mode 100644 index a34039a3d4..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component.html +++ /dev/null @@ -1,19 +0,0 @@ -
-

Tooltip

- -
- -
- -

- Using - placement="[position] auto" - allows the tooltip to be displayed in another location if there is no room for the initial - placement location. -

-
- diff --git a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component.ts deleted file mode 100644 index 00435a0ce8..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo-page/tooltip-demo-page.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../tooltip-demo/tooltip-demo.component.html').default; -@Component({ - selector: 'app-ngb-tooltip-demo-page', - templateUrl: './tooltip-demo-page.component.html', -}) -export class NgbTooltipDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo/tooltip-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo/tooltip-demo.component.html deleted file mode 100644 index 118f28c9d8..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo/tooltip-demo.component.html +++ /dev/null @@ -1,54 +0,0 @@ -
- - - - - - - -

Custom HTML Tooltip on top

-

- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Temporibus nisi iusto cupiditate - optio perferendis iure ipsa vitae assumenda! Consequuntur, pariatur necessitatibus nesciunt - architecto quidem a unde rerum vero praesentium cum. -

-
-
- - -
diff --git a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo/tooltip-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo/tooltip-demo.component.ts deleted file mode 100644 index 59e046f38f..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/tooltip/tooltip-demo/tooltip-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-ngb-tooltip-demo', - templateUrl: './tooltip-demo.component.html', -}) -export class NgbTooltipDemoComponent {} diff --git a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component.html b/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component.html deleted file mode 100644 index 3aacbd125b..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

Typeahead

- -
- -
- -
- diff --git a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component.ts b/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component.ts deleted file mode 100644 index 63c113da8c..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo-page/typeahead-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../typeahead-demo/typeahead-demo.component.html').default; -@Component({ - selector: 'app-ngb-typeahead-demo-page', - templateUrl: './typeahead-demo-page.component.html', -}) -export class NgbTypeaheadDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo/typeahead-demo.component.html b/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo/typeahead-demo.component.html deleted file mode 100644 index fce69b2085..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo/typeahead-demo.component.html +++ /dev/null @@ -1,24 +0,0 @@ -A typeahead example that gets values from a static -string[] -
    -
  • - debounceTime - operator -
  • -
  • kicks in only if 2+ characters typed
  • -
  • limits to 10 results
  • -
- -
- - -
-
-
Model: {{ model | json }}
diff --git a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo/typeahead-demo.component.ts b/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo/typeahead-demo.component.ts deleted file mode 100644 index 03f345011c..0000000000 --- a/packages/demo/src/app/ng-bootstrap/components/typeahead/typeahead-demo/typeahead-demo.component.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Component } from '@angular/core'; -import { Observable } from 'rxjs/internal/Observable'; -import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators'; - -const states = [ - 'Alabama', - 'Alaska', - 'American Samoa', - 'Arizona', - 'Arkansas', - 'California', - 'Colorado', - 'Connecticut', - 'Delaware', - 'District Of Columbia', - 'Federated States Of Micronesia', - 'Florida', - 'Georgia', - 'Guam', - 'Hawaii', - 'Idaho', - 'Illinois', - 'Indiana', - 'Iowa', - 'Kansas', - 'Kentucky', - 'Louisiana', - 'Maine', - 'Marshall Islands', - 'Maryland', - 'Massachusetts', - 'Michigan', - 'Minnesota', - 'Mississippi', - 'Missouri', - 'Montana', - 'Nebraska', - 'Nevada', - 'New Hampshire', - 'New Jersey', - 'New Mexico', - 'New York', - 'North Carolina', - 'North Dakota', - 'Northern Mariana Islands', - 'Ohio', - 'Oklahoma', - 'Oregon', - 'Palau', - 'Pennsylvania', - 'Puerto Rico', - 'Rhode Island', - 'South Carolina', - 'South Dakota', - 'Tennessee', - 'Texas', - 'Utah', - 'Vermont', - 'Virgin Islands', - 'Virginia', - 'Washington', - 'West Virginia', - 'Wisconsin', - 'Wyoming', -]; - -@Component({ - selector: 'app-ngb-typeahead-demo', - templateUrl: './typeahead-demo.component.html', -}) -export class NgbTypeaheadDemoComponent { - public model: any; - - search = (text$: Observable) => - text$.pipe( - debounceTime(200), - distinctUntilChanged(), - map(term => - term.length < 2 - ? [] - : states.filter(v => v.toLowerCase().indexOf(term.toLowerCase()) > -1).slice(0, 10), - ), - ); -} diff --git a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component.html b/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component.html deleted file mode 100644 index 7cc9c069ed..0000000000 --- a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component.html +++ /dev/null @@ -1,25 +0,0 @@ -
-

Custom select

-
- -
-

This component is deprecated

-

It will be removed in the next major version.

-
- -
- -
- -
- -
- -

custom-select-with-floating-label.component.html

- - -

custom-select.component.html

- - -

custom-select.component.ts

- diff --git a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component.ts b/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component.ts deleted file mode 100644 index f7ddc5af43..0000000000 --- a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo-page/custom-select-demo-page.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../custom-select-demo/custom-select-demo.component.html').default; -const codeTemplateFloating = - require('!!raw-loader!../custom-select-floating-demo/custom-select-floating-demo.component.html').default; -const codeComponent = - require('!!raw-loader!../custom-select-demo/custom-select-demo.component.ts').default; - -@Component({ - selector: 'app-custom-select-demo-page', - templateUrl: './custom-select-demo-page.component.html', -}) -export class CustomSelectDemoPageComponent { - codeTemplate = codeTemplate; - codeTemplateFloating = codeTemplateFloating; - codeComponent = codeComponent; -} diff --git a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo/custom-select-demo.component.html b/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo/custom-select-demo.component.html deleted file mode 100644 index eb42edb536..0000000000 --- a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo/custom-select-demo.component.html +++ /dev/null @@ -1,32 +0,0 @@ -
- - -
- -
-
diff --git a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo/custom-select-demo.component.ts b/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo/custom-select-demo.component.ts deleted file mode 100644 index 38d1876ce5..0000000000 --- a/packages/demo/src/app/post-sample/components/custom-select/custom-select-demo/custom-select-demo.component.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Component, ElementRef, QueryList, ViewChildren } from '@angular/core'; - -interface IOption { - label: string; - value: string; - icon: number; -} - -@Component({ - selector: 'app-custom-select-demo', - templateUrl: './custom-select-demo.component.html', -}) -export class CustomSelectDemoComponent { - @ViewChildren('option', { read: ElementRef }) private optionList: QueryList; - - public options: IOption[]; - public selectedOption: IOption; - - constructor() { - this.options = [ - { - label: 'One', - value: '1', - icon: 3126, - }, - { - label: 'Two', - value: '2', - icon: 3116, - }, - { - label: 'Three', - value: '3', - icon: 3107, - }, - ]; - } - - public setFocus(event: KeyboardEvent) { - const activeOptionIndex = Array.from(this.optionList).findIndex(option => { - return option.nativeElement.classList.contains('active'); - }); - - switch (event.code) { - case 'Space': - case 'Enter': - const currentOption = this.optionList.get(activeOptionIndex) || this.optionList.get(0); - setTimeout(() => currentOption.nativeElement.focus(), 100); - break; - case 'ArrowUp': - const previousOption = this.optionList.get(activeOptionIndex + 1) || this.optionList.get(0); - setTimeout(() => previousOption.nativeElement.focus()); - break; - case 'ArrowDown': - const nextOption = this.optionList.get(activeOptionIndex + 1) || this.optionList.get(0); - setTimeout(() => nextOption.nativeElement.focus()); - break; - } - } -} diff --git a/packages/demo/src/app/post-sample/components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component.html b/packages/demo/src/app/post-sample/components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component.html deleted file mode 100644 index edf9db4743..0000000000 --- a/packages/demo/src/app/post-sample/components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component.html +++ /dev/null @@ -1,39 +0,0 @@ -
- - - -
- -
-
diff --git a/packages/demo/src/app/post-sample/components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component.ts b/packages/demo/src/app/post-sample/components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component.ts deleted file mode 100644 index da69d9cf74..0000000000 --- a/packages/demo/src/app/post-sample/components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Component, OnInit, Input } from '@angular/core'; -import { CustomSelectDemoComponent } from '../custom-select-demo/custom-select-demo.component'; - -@Component({ - selector: 'app-custom-select-floating-demo', - templateUrl: './custom-select-floating-demo.component.html', -}) -export class CustomSelectFloatingDemoComponent extends CustomSelectDemoComponent implements OnInit { - @Input() public noSelected: boolean = false; - - public infoText: string = ''; - - ngOnInit() { - if (!this.noSelected) this.selectedOption = this.options[0]; - - this.infoText = this.noSelected ? `(no selected)` : ''; - } -} diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component.html b/packages/demo/src/app/post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component.html deleted file mode 100644 index aa9ad5ee28..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component.html +++ /dev/null @@ -1,104 +0,0 @@ -
-

Datatable

-

Using ngx-datatable 20.0.0

- - Ngx-datatable documentation - -   - - Ngx-datatable demos - -
- - - -
-

Basic datatable

-
-
- - -
-
-
- - -
-
-
-
- -
-

datatable-demo.component.html

- -

datatable-demo.component.ts

- -
- -
- -
-

Paginated datatable

-
- - -
- -

datatable-paginated-demo.component.html

- -
- -
- -
-

Editable datatable

- -

datatable-editable-demo.component.html

- -
- -
-

Datatable with loading indicator

- -

datatable-loading-demo.component.html

- -
diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component.ts b/packages/demo/src/app/post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component.ts deleted file mode 100644 index 6a79494e0e..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-demo-page/datatable-demo-page.component.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Component } from '@angular/core'; -const basicTemplate = - require('!!raw-loader!../datatable-demo/datatable-demo.component.html').default; -const basicComponent = - require('!!raw-loader!../datatable-demo/datatable-demo.component.ts').default; -const paginationTemplate = - require('!!raw-loader!../datatable-paginated-demo/datatable-paginated-demo.component.html').default; -const editionTemplate = - require('!!raw-loader!../datatable-editable-demo/datatable-editable-demo.component.html').default; -const loadingTemplate = - require('!!raw-loader!../datatable-loading-demo/datatable-loading-demo.component.html').default; - -@Component({ - selector: 'app-data-table-demo-page', - templateUrl: './datatable-demo-page.component.html', -}) -export class DatatableDemoPageComponent { - /* Basic datatable */ - basicTemplate = basicTemplate; - basicComponent = basicComponent; - tableType = ''; - headerColumn = false; - - /* Paginated datatable */ - paginationTemplate = paginationTemplate; - paginationMode: 'standard' | 'loader' = 'standard'; - - /* Editable datatable */ - editionTemplate = editionTemplate; - - /* Loading datatable */ - loadingTemplate = loadingTemplate; -} diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-demo/datatable-demo.component.html b/packages/demo/src/app/post-sample/components/datatable/datatable-demo/datatable-demo.component.html deleted file mode 100644 index 0711d00bac..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-demo/datatable-demo.component.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - {{ value | date : 'MMM y' : undefined : 'en' }} - - - - - - - {{ value }} - - - - - - -
- -
- - - -
-
-
-
- - - - - - - -
diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-demo/datatable-demo.component.ts b/packages/demo/src/app/post-sample/components/datatable/datatable-demo/datatable-demo.component.ts deleted file mode 100644 index fe8729b3f0..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-demo/datatable-demo.component.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Component, Input } from '@angular/core'; - -interface IRecords { - debtorId: number; - rrn: number; - billingNumber: number; - billingMonth: string; - keyword: string; - amount: number; - status: string; -} - -@Component({ - selector: 'app-datatable-demo', - templateUrl: './datatable-demo.component.html', -}) -export class DatatableDemoComponent { - @Input() public headerColumn: boolean; - @Input() public tableType: string; - public records: IRecords[]; - public statuses: string[]; - - constructor() { - this.records = [ - { - debtorId: 40103969, - rrn: 503103725, - billingNumber: 2277042726, - billingMonth: '2021-03-15T12:09:51-01:00', - keyword: 'Economy', - amount: 965.82, - status: 'inactive', - }, - { - debtorId: 40103991, - rrn: 503103792, - billingNumber: 2277042252, - billingMonth: '2021-03-15T12:09:51-01:00', - keyword: 'Economy', - amount: 626.65, - status: 'active', - }, - { - debtorId: 40103967, - rrn: 503103740, - billingNumber: 2277042494, - billingMonth: '2021-03-15T12:09:51-01:00', - keyword: 'Dispobox', - amount: 802.18, - status: 'active', - }, - { - debtorId: 40103986, - rrn: 503103788, - billingNumber: 2277042324, - billingMonth: '2021-03-15T12:09:51-01:00', - keyword: 'Express shipment', - amount: 397.05, - status: 'inactive', - }, - { - debtorId: 40103967, - rrn: 503103798, - billingNumber: 2277042204, - billingMonth: '2021-03-15T12:09:51-01:00', - keyword: 'Express shipment', - amount: 742.87, - status: 'active', - }, - ]; - - this.statuses = ['active', 'inactive', 'automatic', 'blocked']; - } -} diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-editable-demo/datatable-editable-demo.component.html b/packages/demo/src/app/post-sample/components/datatable/datatable-editable-demo/datatable-editable-demo.component.html deleted file mode 100644 index 5cf84febc4..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-editable-demo/datatable-editable-demo.component.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -
- -
- -
-
-
-
-
- - - -
-

Update product

-
- - -
-
- - -
-
- - -
-
-
diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-editable-demo/datatable-editable-demo.component.ts b/packages/demo/src/app/post-sample/components/datatable/datatable-editable-demo/datatable-editable-demo.component.ts deleted file mode 100644 index 751bdab057..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-editable-demo/datatable-editable-demo.component.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-datatable-editable-demo', - templateUrl: 'datatable-editable-demo.component.html', -}) -export class DatatableEditableDemoComponent { - public readonly Object = Object; - public rows: { id: string; product: string; quantity: number }[]; - - constructor() { - this.rows = [ - { - id: '2b369518-e006-450f-a1fc-b1ca2e9b2a72', - product: 'Laboris do aliqua pariatur consequat', - quantity: 65, - }, - { - id: 'c12e968e-49c0-4e22-8f1c-2194f728b97f', - product: 'Commodo culpa et culpa sit', - quantity: 76, - }, - { - id: 'dcf8087a-3db0-4e5f-9357-eff67b7ce722', - product: 'Irure mollit adipisicing voluptate pariatur', - quantity: 72, - }, - { - id: '4de80e57-9b4e-4fbd-b245-5897c081e28b', - product: 'In culpa est et commodo', - quantity: 100, - }, - ]; - } -} diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-loading-demo/datatable-loading-demo.component.html b/packages/demo/src/app/post-sample/components/datatable/datatable-loading-demo/datatable-loading-demo.component.html deleted file mode 100644 index aee08d6de4..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-loading-demo/datatable-loading-demo.component.html +++ /dev/null @@ -1,23 +0,0 @@ -
- - -
- - - - - - diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-loading-demo/datatable-loading-demo.component.ts b/packages/demo/src/app/post-sample/components/datatable/datatable-loading-demo/datatable-loading-demo.component.ts deleted file mode 100644 index d0c2c193bf..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-loading-demo/datatable-loading-demo.component.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-datatable-loading-demo', - templateUrl: 'datatable-loading-demo.component.html', -}) -export class DatatableLoadingDemoComponent { - public readonly Object = Object; - public rows: { name: string; population: number; chosenAnimal: string }[]; - - showLoading: boolean = true; - - constructor() { - this.rows = [ - { - name: 'Saint Pierre and Miquelon', - population: 3289570, - chosenAnimal: 'Adouri', - }, - { - name: 'Malta', - population: 1834902, - chosenAnimal: 'Spotted deer', - }, - { - name: 'China', - population: 4318704, - chosenAnimal: 'Boa', - }, - { - name: 'Indonesia', - population: 8379190, - chosenAnimal: 'Bandicoot', - }, - { - name: 'Philippines', - population: 9175816, - chosenAnimal: 'Common shelduck', - }, - { - name: 'Nepal', - population: 4827738, - chosenAnimal: 'African snake', - }, - { - name: 'Uganda', - population: 9906834, - chosenAnimal: 'Genet', - }, - { - name: 'Indonesia', - population: 9681075, - chosenAnimal: 'Red-tailed hawk', - }, - { - name: 'Portugal', - population: 4049832, - chosenAnimal: 'Chital', - }, - { - name: 'Spain', - population: 7091818, - chosenAnimal: 'Paradoxure', - }, - ]; - } -} diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-paginated-demo/datatable-paginated-demo.component.html b/packages/demo/src/app/post-sample/components/datatable/datatable-paginated-demo/datatable-paginated-demo.component.html deleted file mode 100644 index 79fb9cd35e..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-paginated-demo/datatable-paginated-demo.component.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - {{ value === 0 ? 'Gratis' : 'CHF ' + value }} - - - - - - - - - diff --git a/packages/demo/src/app/post-sample/components/datatable/datatable-paginated-demo/datatable-paginated-demo.component.ts b/packages/demo/src/app/post-sample/components/datatable/datatable-paginated-demo/datatable-paginated-demo.component.ts deleted file mode 100644 index 0d592ebf32..0000000000 --- a/packages/demo/src/app/post-sample/components/datatable/datatable-paginated-demo/datatable-paginated-demo.component.ts +++ /dev/null @@ -1,297 +0,0 @@ -import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core'; - -@Component({ - selector: 'app-datatable-paginated-demo', - templateUrl: './datatable-paginated-demo.component.html', -}) -export class DatatablePaginatedDemoComponent implements OnInit, OnChanges { - @Input() public paginationMode: 'standard' | 'loader' = 'standard'; - public page: number; - public nbRowsPerPage: number; - public loading: boolean; - public readonly rows = [ - { - name: 'irure amet Lorem ex aute laboris sunt', - price: 41.04, - id: 2285160636, - }, - { - name: 'amet minim esse dolore excepteur dolore ex', - price: 65.71, - id: 2864505807, - }, - { - name: 'anim consectetur qui culpa eu eiusmod dolor', - price: 57.72, - id: 2448670977, - }, - { - name: 'minim tempor non do quis minim velit', - price: 38.13, - id: 2411003894, - }, - { - name: 'aliqua laboris enim veniam tempor magna nostrud', - price: 0, - id: 2569769930, - }, - { - name: 'veniam exercitation sunt enim et excepteur exercitation', - price: 93.26, - id: 2709567646, - }, - { - name: 'reprehenderit cillum commodo officia ad esse id', - price: 0, - id: 2979592582, - }, - { - name: 'occaecat ullamco commodo velit reprehenderit et enim', - price: 47.46, - id: 2879934487, - }, - { - name: 'nisi reprehenderit non mollit ad fugiat commodo', - price: 0, - id: 2905345444, - }, - { - name: 'consequat tempor ad nisi sunt non laboris', - price: 51.57, - id: 2138506913, - }, - { - name: 'do magna laborum enim qui ea duis', - price: 24.75, - id: 2065606839, - }, - { - name: 'adipisicing consectetur dolore dolore amet qui ex', - price: 14.79, - id: 2189192197, - }, - { - name: 'incididunt velit nostrud nostrud labore minim dolore', - price: 34.01, - id: 2615450077, - }, - { - name: 'ea enim do reprehenderit ex ad nostrud', - price: 34.41, - id: 2852403903, - }, - { - name: 'tempor do nulla non proident do ad', - price: 0, - id: 2182009963, - }, - { - name: 'occaecat voluptate laborum mollit ipsum magna laboris', - price: 19, - id: 2359467106, - }, - { - name: 'ut commodo Lorem anim laboris non consectetur', - price: 29.73, - id: 2953678213, - }, - { - name: 'sit ipsum pariatur amet nulla amet quis', - price: 0, - id: 2066228843, - }, - { - name: 'aliquip culpa ipsum culpa anim pariatur velit', - price: 75.37, - id: 2483151517, - }, - { - name: 'veniam laboris deserunt sint dolor laboris qui', - price: 0, - id: 2238274828, - }, - { - name: 'id tempor officia enim ullamco eiusmod minim', - price: 91.71, - id: 2761638597, - }, - { - name: 'in occaecat exercitation duis do quis deserunt', - price: 88.02, - id: 2270779156, - }, - { - name: 'quis excepteur esse duis dolor elit ullamco', - price: 71.3, - id: 2776587464, - }, - { - name: 'eu consectetur cillum sint ipsum Lorem aliquip', - price: 51.59, - id: 2259373011, - }, - { - name: 'veniam ipsum exercitation adipisicing esse adipisicing eu', - price: 30.67, - id: 2590368003, - }, - { - name: 'pariatur dolor quis cillum sit minim non', - price: 0, - id: 2026467457, - }, - { - name: 'aute ipsum anim magna ut exercitation ea', - price: 53.82, - id: 2060166830, - }, - { - name: 'anim pariatur adipisicing sunt excepteur eu qui', - price: 6.49, - id: 2895749904, - }, - { - name: 'sit tempor exercitation dolore ad aliquip pariatur', - price: 5.22, - id: 2727224552, - }, - { - name: 'incididunt consequat aute magna velit magna id', - price: 16.86, - id: 2300535944, - }, - { - name: 'fugiat aute culpa ex officia velit incididunt', - price: 67.34, - id: 2843481076, - }, - { - name: 'culpa dolore qui Lorem in enim culpa', - price: 18.04, - id: 2638963606, - }, - { - name: 'vehicula et, rutrum eu, ultrices sit', - price: 74.4, - id: 2690008058, - }, - { - name: 'Ut sagittis lobortis mauris. Suspendisse aliquet', - price: 85.21, - id: 2104961564, - }, - { - name: 'eget metus. In nec orci. Donec', - price: 5.03, - id: 2488973048, - }, - { - name: 'lorem fringilla ornare placerat, orci lacus vestibulum', - price: 12.82, - id: 2068602240, - }, - { - name: 'nulla. Integer urna. Vivamus molestie', - price: 27.82, - id: 2552576223, - }, - { - name: 'dictum sapien. Aenean massa. Integer vitae nibh.', - price: 55.41, - id: 2490791690, - }, - { - name: 'rutrum magna. Cras convallis convallis dolor. Quisque', - price: 62.48, - id: 2636742835, - }, - { - name: 'pede. Cras vulputate velit eu', - price: 56.58, - id: 2014810358, - }, - { - name: 'molestie pharetra nibh. Aliquam ornare,', - price: 27.12, - id: 2259658668, - }, - { - name: 'sapien, gravida non, sollicitudin', - price: 12.5, - id: 2132558847, - }, - { - name: 'ipsum sodales purus, in molestie tortor nibh sit', - price: 53.24, - id: 2739597493, - }, - { - name: 'vitae semper egestas, urna justo faucibus lectus,', - price: 53.25, - id: 2002085100, - }, - { - name: 'ligula. Nullam enim. Sed nulla', - price: 10.66, - id: 2235245453, - }, - { - name: 'per conubia nostra, per inceptos hymenaeos. Mauris', - price: 4.47, - id: 2562494730, - }, - { - name: 'parturient montes, nascetur ridiculus mus. Proin', - price: 35.37, - id: 2536109037, - }, - { - name: 'dictum. Phasellus in felis. Nulla tempor', - price: 49.19, - id: 2300129128, - }, - { - name: 'nec urna suscipit nonummy. Fusce fermentum', - price: 95.46, - id: 2625971868, - }, - { - name: 'mauris blandit mattis. Cras eget nisi dictum', - price: 36.82, - id: 2635588432, - }, - { - name: 'Mauris nulla. Integer urna. Vivamus molestie', - price: 83.86, - id: 2334831693, - }, - { - name: 'Suspendisse commodo tincidunt nibh. Phasellus nulla.', - price: 26.12, - id: 2405472012, - }, - ]; - - public ngOnInit() { - this.initPagination(); - } - - public ngOnChanges(changes: SimpleChanges) { - this.initPagination(); - } - - private initPagination(): void { - this.page = 0; - this.nbRowsPerPage = 5; - } - - public loadMore(): void { - this.loading = true; - - // simulate data fetching - setTimeout(() => { - this.nbRowsPerPage += 5; - this.loading = undefined; - }, Math.random() * 1000); - } -} diff --git a/packages/demo/src/app/post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component.html b/packages/demo/src/app/post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component.html deleted file mode 100644 index 3363a15b68..0000000000 --- a/packages/demo/src/app/post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

Feedback

-
- -
- -
- diff --git a/packages/demo/src/app/post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component.ts b/packages/demo/src/app/post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component.ts deleted file mode 100644 index 6b4fe8d81d..0000000000 --- a/packages/demo/src/app/post-sample/components/feedback/feedback-demo-page/feedback-demo-page.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = require('!!raw-loader!../feedback-demo/feedback-demo.component.html').default; - -@Component({ - selector: 'app-feedback-demo-page', - templateUrl: './feedback-demo-page.component.html', -}) -export class FeedbackDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.html b/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.html deleted file mode 100644 index e7b73eb8b1..0000000000 --- a/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.html +++ /dev/null @@ -1,10 +0,0 @@ - - -
There is an error!
- - - - - - -
Everything is fine.
diff --git a/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.scss b/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.scss deleted file mode 100644 index 97b3cd92ae..0000000000 --- a/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -.form-label:not(:first-child) { - margin-top: 1.5rem; -} diff --git a/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.ts b/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.ts deleted file mode 100644 index 623ee8289d..0000000000 --- a/packages/demo/src/app/post-sample/components/feedback/feedback-demo/feedback-demo.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-feedback-demo', - templateUrl: './feedback-demo.component.html', - styleUrls: ['./feedback-demo.component.scss'], -}) -export class FeedbackDemoComponent {} diff --git a/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.html b/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.html deleted file mode 100644 index 5e5c64cb96..0000000000 --- a/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.html +++ /dev/null @@ -1,319 +0,0 @@ -

How to forms

-

with Bootstrap and Swiss Post specific styles

- - - -
-

Page layout

-

- All things need to be contained inside a container. The container limits the size of the content - and centers it on the page. -

- - -

Basic input

-

- For accessibility reasons, form fields should always have a label linked via the id/for - attributes. Screen-readers will announce the label when the input gets the focus. If there is no - label, screen-reader users have no idea what the input should be, even if there is other text - next to the field. -

-
- - -
- - -

Vertical spacing

-

- To add space between input, you can use - margin utilities - . -

-
-
- - -
-
- - -
-
- - -

Rows'n'cols

-

- If you want a form field to span the whole available width, you don't need a row nor a col. You - only need those, if you want to place two things next to each other. -

-

- Simply use - .row - and - .col - to have the width distributed evenly between all inputs. To make it responsive, you can add - .row-cols-* - classes to the row ( - Bootstrap Row Columns - ). -

-
-
-
- - -
-
- - -
-
-
- -
-

- For finer adjustment, you can also use the - .col-* - classes ( - - Bootstrap Columns - - ) on your columns. For example for a 2/1 ratio, given that a row has twelve columns in total, - just add - .col-8 - and - .col-4 - to you two columns respectively. -

-
-
-
- - -
-
- - -
-
-
- - -

Fields with custom width

-

- Some fields may not fit into the twelve row schema, they need a custom width. The PLZ field may - be one of those cases. Two - .col - next to each other will have equal width. If one of the cols has the - .col-auto - class, this col is sized based on it's content. The other row is stretched to the container - width. With this setup, we can define a max-width on the input field to shrink it. -

-
-
-
- - -
- -
- - -
-
-
- - -

Form buttons

-

- Buttons, often at the end of the form are right aligned. We can achieve this with the classes - d-flex flex-row-reverse - . This will ensure that the primary button is focused first (because of the markup order) but is - still aligned to the right. To get some margin between the button we can use the - .gap-8 - class. Note that for the buttons, we don't need any row/col structure. Read more about gap - classes at - Bootstrap Gaps - . -

-
-
- - -
- -
- - -
-
- - -

Floating labels

-

- For internet applications, bigger input fields with floating labels are the Post way of creating - forms. The particularity of these fields, is that the - <label> - and - <input> - elements are inverted and wrapped in a - .form-floating - div. In addition, the input field needs a placeholder attribute, preferably equal to a single - space. -

-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -

Validation messages

-

- Validation messages are placed directly after the - <input> - (or after the - <label> - in the case of floating label). Showing and hiding of these messages is typically controlled by - adding and removing validation classes on the input: -

-
    -
  • - The message needs the class - .invalid-feedback/.valid-feedback - , -
  • -
  • -
      -
    • - The form needs the class - .was-validated - . With this class you can manage when to display errors. Usually, errors should not be - shown on untouched fields. -
    • -
    • Or
    • -
    • - The input field needs the class - .is-invalid/.is-valid - , -
    • -
    -
  • -
-
-
- -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
-
-
- - -

Hints

-

- Hints can help users better understand the type of information they need to provide. Hints, like - validation messages, must be placed after the - <input> - (or - <label> - in the case of floating label) and after validation messages if there are some. -

-

- Hints use the class - .form-text - . -

-

- To enable screen-readers to detect and read your hints, link the - <input> - with the aria-labelledby attribute to the hint via id. -

-
-
- - -
- - Also provide any middle names in this field -
-
-
- -
diff --git a/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.spec.ts b/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.spec.ts deleted file mode 100644 index 33aca67cb5..0000000000 --- a/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { FormsDemoPageComponent } from './forms-demo-page.component'; - -describe('FormsDemoPageComponent', () => { - let component: FormsDemoPageComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [FormsDemoPageComponent], - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(FormsDemoPageComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.ts b/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.ts deleted file mode 100644 index 2d6c095b09..0000000000 --- a/packages/demo/src/app/post-sample/components/forms/forms-demo-page/forms-demo-page.component.ts +++ /dev/null @@ -1,293 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-forms-demo-page', - templateUrl: './forms-demo-page.component.html', -}) -export class FormsDemoPageComponent { - container = '
...
'; - basicInput = ` -`; - rowSimple = `
-
- - -
-
- - -
-
`; - colSimple = `
-
- - -
-
- - -
-
`; - customWidth = `
-
- - -
-
- - -
-
`; - verticalSpacing = `
- - -
-
- - -
`; - buttons = `
- - -
-
- - -
`; - floatingLabels = `
-
-
- - -
-
-
-
- - -
-
-
`; - validation = `
- -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
- - -
-
- - -

Error message

-
-
- - -

Success message (optional)

-
-
- - -
-
-
- - -

Error message

-
-
-
-
- - -

Success message (optional)

-
-
-
-
`; - hints = `
- - -
- - Also provide any middle names in this field -
-
`; -} diff --git a/packages/demo/src/app/post-sample/components/icons/icons-demo-page/icons-demo-page.component.html b/packages/demo/src/app/post-sample/components/icons/icons-demo-page/icons-demo-page.component.html deleted file mode 100644 index 0c560ae85e..0000000000 --- a/packages/demo/src/app/post-sample/components/icons/icons-demo-page/icons-demo-page.component.html +++ /dev/null @@ -1,26 +0,0 @@ -
-

Post icons

-
- -
-

We have something new for you!

-

- The usage of icons as base64 encoded background images in CSS will soon be deprecated. You can - switch to the brand new icon component - post-icon - today. Go ahead and have a look at the - - brand new icons documentation - - featuring a search and over 800 icons. -

-

- - Discover the new icons - -

-
- diff --git a/packages/demo/src/app/post-sample/components/icons/icons-demo-page/icons-demo-page.component.ts b/packages/demo/src/app/post-sample/components/icons/icons-demo-page/icons-demo-page.component.ts deleted file mode 100644 index dc7866fd27..0000000000 --- a/packages/demo/src/app/post-sample/components/icons/icons-demo-page/icons-demo-page.component.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Component } from '@angular/core'; -@Component({ - selector: 'app-icons-demo-page', - templateUrl: './icons-demo-page.component.html', -}) -export class IconsDemoPageComponent {} diff --git a/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.html b/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.html deleted file mode 100644 index f1c9e89314..0000000000 --- a/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.html +++ /dev/null @@ -1,202 +0,0 @@ -
-

- To avoid an unnecessarily big css file, all icons except the default black ones have to be - explicitly declared in your scss file. -

-

Example:

-
-
Rendered
-
Applied classes
-
Markup
-
SASS
-
- -
-
pi pi-1000
-
- <i class="pi pi-1000" aria-hidden="true"></i> -
-
- // No additional SASS necessary -
-
- -
-
- pi pi-1000-warning -
- See available contextual colors below. -
-
- <i class="pi pi-1000-warning" aria-hidden="true"></i> -
-
- - {{ cwfImport }} -
- .pi-1000-warning { -
-   @include post.pi(1000, "warning"); -
- } -
-
-
- -
-
pi pi-heart
-
- <i class="pi pi-heart" aria-hidden="true"></i> -
-
- - {{ cwfImport }} -
- .pi-heart { -
-   @include post.pi("2063", #FF0080); -
- } -
-
-
- -
-
pi pi-heart-coral pi-border
-
- <i class="pi pi-heart-coral pi-border" aria-hidden="true"></i> -
-
- - @use "sass:map"; -
- {{ cwfImport }} -
- .pi-heart-coral { -
-   @include post.pi(2063, map.get(post.$background-colors, "coral")); -
- } -
-
-
-

Colors

-

- Available placeholders for: Primary, White, Info, Danger, Success (Note: Named icons can not be - colored.) -

-
-
-
-
- -
- - <i class="pi" [class]="'pi-1000-' + color" aria-hidden="true"></i> - - - {{ cwfImport }} -
- .pi-1000-{{ color }} { @include post.pi(1000, "{{ color }}"); } -
-
-
-
- Include a certain icon in all contextual colors (Example for pi-1000): -
- - {{ cwfImport }} -
- @each $color, $value in post.$contextual-colors { -
-   .pi-1000-#{$color} { -
-     @include post.pi(1000, $color); -
-   } -
- } -
-
-
- Include the entire icon set in a specific color (Example for Post-Color "Nightblue"): -
- - @use "sass:map"; - {{ cwfImport }} -
- @each $name, $path in post.$svg-icon-map { -
-   .pi-#{$name} { -
-     @include post.pi($name, map.get(post.$accent-colors, "nightblue")); -
-   } -
- } -
-
-
-

Available Adjustments

-
-
- -
-
- With border -
- <i class="pi pi-border pi-1000"></i> -
- -
-
- Small -
- <i class="pi pi-small pi-1000"></i> -
- -
-
- 2x -
- <i class="pi pi-2x pi-1000"></i> -
- -
-
- 3x -
- <i class="pi pi-3x pi-1000"></i> -
- -
-
- 4x -
- <i class="pi pi-4x pi-1000" aria-hidden="true"></i> -
-

All SVG Icons

-

- If you need the digital post logo, please discuss your need with - CorpDesign, K21 [E-Mail Request] - . -

-
-
- -
- pi-{{ iconName }} -
-
-
-
- -
- pi-{{ nr }} -
-
-
diff --git a/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.scss b/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.scss deleted file mode 100644 index 25a85eecf2..0000000000 --- a/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.scss +++ /dev/null @@ -1,15 +0,0 @@ -@use 'sass:map'; -@use '@swisspost/design-system-styles/core' as post; - -.pi-heart { - @include post.pi(2063, #ff0088); -} - -.pi-heart-coral { - @include post.pi(2063, map.get(post.$background-colors, 'coral')); -} - -code.sass { - display: block; - color: #ff0080; -} diff --git a/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.ts b/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.ts deleted file mode 100644 index 3ebadea406..0000000000 --- a/packages/demo/src/app/post-sample/components/icons/svg-icons-demo/svg-icons-demo.component.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-svg-icons-demo', - templateUrl: './svg-icons-demo.component.html', - styleUrls: ['./svg-icons-demo.component.scss'], -}) -export class SvgIconsDemoComponent { - packageName: string = '@swisspost/design-system-styles'; - cwfImport: string = `@use "${this.packageName}/core" as post;`; - - colors = ['primary', 'white', 'success', 'warning', 'error']; - preColored = ['success', 'warn', 'info', 'error-black', 'error-red']; - - range: number[] = []; - - constructor() { - for (let i = 1000; i < 1050; i++) { - this.range.push(i); - } - for (let i = 2000; i < 2196; i++) { - this.range.push(i); - } - this.range.push(2307); - this.range.push(2308); - this.range.push(3000); - for (let i = 3020; i < 3051; i++) { - this.range.push(i); - } - for (let i = 3064; i < 3177; i++) { - this.range.push(i); - } - for (let i = 3184; i < 3261; i++) { - this.range.push(i); - } - for (let i = 8000; i < 8020; i++) { - this.range.push(i); - } - for (let i = 9900; i < 9912; i++) { - this.range.push(i); - } - } -} diff --git a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-content/notification-overlay-content.ts b/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-content/notification-overlay-content.ts deleted file mode 100644 index af794a10e5..0000000000 --- a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-content/notification-overlay-content.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, Input } from '@angular/core'; -import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; - -@Component({ - selector: 'app-overlay-demo-content', - templateUrl: './notification-overlay.content.html', -}) -export class NotificationOverlayContentComponent { - @Input() name: string; - - constructor(public activeModal: NgbActiveModal) {} -} diff --git a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-content/notification-overlay.content.html b/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-content/notification-overlay.content.html deleted file mode 100644 index e405c5d3b1..0000000000 --- a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-content/notification-overlay.content.html +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component.html b/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component.html deleted file mode 100644 index 001dcb481b..0000000000 --- a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component.html +++ /dev/null @@ -1,18 +0,0 @@ -
-

Notification overlay

-
- -
- This is just a simple to describe how to create an overlay notification only with bootstrap - classes -
-
-
- -
-
- diff --git a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component.ts b/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component.ts deleted file mode 100644 index ada2a6f546..0000000000 --- a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../notification-overlay-content/notification-overlay.content.html').default; - -@Component({ - selector: 'app-nofitication-overlay-demo-page', - templateUrl: './notification-overlay-page.component.html', -}) -export class NotificationOverlayPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay/notification-overlay-demo.component.html b/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay/notification-overlay-demo.component.html deleted file mode 100644 index b7803fb9a1..0000000000 --- a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay/notification-overlay-demo.component.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay/notification-overlay-demo.component.ts b/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay/notification-overlay-demo.component.ts deleted file mode 100644 index 2aef926706..0000000000 --- a/packages/demo/src/app/post-sample/components/notification-overlay/notification-overlay/notification-overlay-demo.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component } from '@angular/core'; -import { NotificationOverlayContentComponent } from '../notification-overlay-content/notification-overlay-content'; -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; - -@Component({ - selector: 'app-nofitication-overlay-demo', - templateUrl: './notification-overlay-demo.component.html', -}) -export class NotificationOverlayDemoComponent { - constructor(private modalService: NgbModal) {} - - open() { - const modalRef = this.modalService.open(NotificationOverlayContentComponent); - modalRef.componentInstance.name = 'World'; - } -} diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-card-button/post-card-button.component.html b/packages/demo/src/app/post-sample/components/post-cards/post-card-button/post-card-button.component.html deleted file mode 100644 index 4dd07f366a..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-card-button/post-card-button.component.html +++ /dev/null @@ -1,106 +0,0 @@ - diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-card-button/post-card-button.component.ts b/packages/demo/src/app/post-sample/components/post-cards/post-card-button/post-card-button.component.ts deleted file mode 100644 index be48ed06e9..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-card-button/post-card-button.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-card-button', - templateUrl: './post-card-button.component.html', -}) -export class PostCardButtonComponent {} diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-navigation/post-card-product-navigation.component.html b/packages/demo/src/app/post-sample/components/post-cards/post-card-product-navigation/post-card-product-navigation.component.html deleted file mode 100644 index e24291f0b9..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-navigation/post-card-product-navigation.component.html +++ /dev/null @@ -1,121 +0,0 @@ - diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-navigation/post-card-product-navigation.component.ts b/packages/demo/src/app/post-sample/components/post-cards/post-card-product-navigation/post-card-product-navigation.component.ts deleted file mode 100644 index 0b78ff7284..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-navigation/post-card-product-navigation.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-card-product-navigation', - templateUrl: './post-card-product-navigation.component.html', -}) -export class PostCardProductNavigationComponent {} diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-teaser/post-card-product-teaser.component.html b/packages/demo/src/app/post-sample/components/post-cards/post-card-product-teaser/post-card-product-teaser.component.html deleted file mode 100644 index fdb6d37776..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-teaser/post-card-product-teaser.component.html +++ /dev/null @@ -1,212 +0,0 @@ -
-
-

Javascript needed!

-

- Some javascript is needed to sync the height between the "table-cells" while still keep them - mobile-friendly and semantic. -

-
-
-
-
-
-
-

Preiswert

-

Sample Product

-

- Mit SAMPLE PRODUCT kommen Ihre Briefe kostengünstig und zuverlässig ans Ziel. -

-
- -
-
- -
-
Sample Product
-

140 x 90 mm bis B5 (250 x 176 mm)

-
-
-
bis 500 g
-
1.20
-
-
-
bis 50 g
-
2.20
-
-
-
- -
-
Sample Product
-

140 x 90 mm bis B5 (250 x 176 mm)

-
-
-
- so zwischen ca. 5g -
- bis ungefähr etwa 500 g -
-
1.20
-
-
-
bis 50 g
-
2.20
-
-
-
bis 100 g
-
2.90
-
-
-
bis 100 g
-
2.90
-
-
-
bis 100 g
-
2.90
-
-
-
bis 100 g
-
2.90
-
-
-
- -
-
Sample Product
-

140 x 90 mm bis B5 (250 x 176 mm)

-
-
-
bis 500 g
-
1.20
-
-
-
bis 50 g
-
2.20
-
-
-
bis 100 g
-
2.90
-
-
-
- -
-

- -

-

- -

-
-
-
- -
-
-
-
-
-

Schneller

-

Sample Product

-

- Lorem ipsum aafw ea aewfwe awef awfeaea awefa wawef waf wawefa ea dolor sit amet - consectetur adipisicing elit. Iusto nulla laboriosam nesciunt. Unde velit dolores - at fugiat dolorum nobis sit. -

-
- -
-
- -
-
Sample Product
-

140 x 90 mm bis B5 (250 x 176 mm)

-
-
-
bis 500 g
-
1.20
-
-
-
bis 50 g
-
2.20
-
-
-
bis 100 g
-
2.90
-
-
-
- -
-
Sample Product
-

140 x 90 mm bis B5 (250 x 176 mm)

-
-
-
- so zwischen ca. 5g -
- bis ungefähr etwa 500 g -
-
1.20
-
-
-
bis 50 g
-
2.20
-
-
-
bis 100 g
-
2.90
-
-
-
- -
-
Sample Product
-

140 x 90 mm bis B5 (250 x 176 mm)

-
-
-
bis 500 g
-
1.20
-
-
-
bis 50 g
-
2.20
-
-
-
bis 100 g
-
2.90
-
-
-
- -
-

- -

-

- -

-
-
-
-
-
-
diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-teaser/post-card-product-teaser.component.ts b/packages/demo/src/app/post-sample/components/post-cards/post-card-product-teaser/post-card-product-teaser.component.ts deleted file mode 100644 index 66c3c2810d..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-card-product-teaser/post-card-product-teaser.component.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Component, HostListener, OnInit } from '@angular/core'; -import { Subject } from 'rxjs'; -import { debounceTime } from 'rxjs/operators'; - -interface IElementMap { - [key: string]: HTMLElement[]; -} - -@Component({ - selector: 'app-card-product-teaser', - templateUrl: './post-card-product-teaser.component.html', -}) -export class PostCardProductTeaserComponent implements OnInit { - heightSyncedMap: IElementMap = {}; - resize$ = new Subject(); - - ngOnInit() { - this.resize$.pipe(debounceTime(300)).subscribe(() => { - this.syncHeight(); - }); - this.resize$.next(); - } - - syncHeight() { - const nodes = document.querySelectorAll('[data-sync-height-with]'); - const nodeArray: HTMLElement[] = Array.from(nodes); - const heightSyncedMap = nodeArray.reduce((map, element) => { - const group = element.getAttribute('data-sync-height-with'); - if (!map[group]) { - map[group] = []; - } - map[group].push(element); - return map; - }, {} as IElementMap); - - Object.values(heightSyncedMap).forEach(group => { - group.forEach(element => (element.style.height = 'auto')); - const heights = group.map(element => element.offsetHeight); - const max = Math.max.apply(null, heights); - group.forEach(element => { - if (element.offsetHeight < max) { - element.style.height = `${max}px`; - } - }); - }); - } - - @HostListener('window:resize') - onResize(): void { - this.resize$.next(); - } -} diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component.html b/packages/demo/src/app/post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component.html deleted file mode 100644 index 78514da4b6..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component.html +++ /dev/null @@ -1,44 +0,0 @@ -
-

Product Cards

- -
- -
-

Card Buttons

- - -
- -
-

Product navigation

- - -
- -
-

Product teaser with prices

-
- -
- -

component.html

- -

component.ts

- -
diff --git a/packages/demo/src/app/post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component.ts b/packages/demo/src/app/post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component.ts deleted file mode 100644 index 13e5b2735c..0000000000 --- a/packages/demo/src/app/post-sample/components/post-cards/post-cards-demo-page/post-cards-demo-page.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component } from '@angular/core'; -const PostCardProductNavigationHtml = - require('!!raw-loader!../post-card-product-navigation/post-card-product-navigation.component.html').default; -const PostCardProductTeaserHtml = - require('!!raw-loader!../post-card-product-teaser/post-card-product-teaser.component.html').default; -const PostCardProductTeaserTs = - require('!!raw-loader!../post-card-product-teaser/post-card-product-teaser.component.ts').default; -const PostCardButtonHtml = - require('!!raw-loader!../post-card-button/post-card-button.component.html').default; - -@Component({ - selector: 'app-cards-demo-page', - templateUrl: './post-cards-demo-page.component.html', -}) -export class PostCardsDemoPageComponent { - postCardProductNavigationHtml = PostCardProductNavigationHtml; - postCardProductTeaserHtml = PostCardProductTeaserHtml; - postCardButtonHtml = PostCardButtonHtml; - postCardProductTeaserTs = PostCardProductTeaserTs; -} diff --git a/packages/demo/src/app/post-sample/components/sizing/responsive-sizing-demo/responsive-sizing-demo.component.html b/packages/demo/src/app/post-sample/components/sizing/responsive-sizing-demo/responsive-sizing-demo.component.html deleted file mode 100644 index 29dc84871d..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/responsive-sizing-demo/responsive-sizing-demo.component.html +++ /dev/null @@ -1,38 +0,0 @@ - - -
-
-
Manually specifying breakpoints
-

- The square below has a "Big" padding from the large (lg) breakpoint and a "Regular" padding - below. -

-
-
-
- - - -
-
-
Using automatic responsive behavior
-

- The square below has a "Large" responsive padding, which means the padding size automatically - changes based on the breakpoint but remains visually consistent. -

-
-
-
- - - -
-
- -

Resize the browser window to see changes.

diff --git a/packages/demo/src/app/post-sample/components/sizing/responsive-sizing-demo/responsive-sizing-demo.component.ts b/packages/demo/src/app/post-sample/components/sizing/responsive-sizing-demo/responsive-sizing-demo.component.ts deleted file mode 100644 index 6b46043ea2..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/responsive-sizing-demo/responsive-sizing-demo.component.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-responsive-sizing-demo', - templateUrl: 'responsive-sizing-demo.component.html', -}) -export class ResponsiveSizingDemoComponent { - get highlightManualDemo(): string { - return `
`; - } - - get highlightAutomaticDemo(): string { - return `
`; - } -} diff --git a/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page-class-display.pipe.ts b/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page-class-display.pipe.ts deleted file mode 100644 index 3801195f08..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page-class-display.pipe.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Pipe, PipeTransform } from '@angular/core'; - -@Pipe({ name: 'replaceHyphen' }) -export class ReplaceHyphenPipe implements PipeTransform { - transform(value: string): string { - return value.replace('-', ' '); - } -} -@Pipe({ name: 'removeSpaces' }) -export class RemoveSpacesPipe implements PipeTransform { - transform(value: string): string { - return value.replace(' ', ''); - } -} diff --git a/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component.html b/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component.html deleted file mode 100644 index ee0cf53065..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component.html +++ /dev/null @@ -1,209 +0,0 @@ -
-

Sizing

- -
- -
-

Sizing variables are deprecated

- -

- The current set of the post-specific sizing variables is deprecated in favour of a new naming system that is - consistent with the Design. For further information, please read the - discussion on sizing variables on GitHub - and have a look at the - implementation in Figma. -

-

Affected properties:

-
    -
  • - margin - and - padding - (new solution with updated naming system up coming) -
  • -
  • - width - , - height - , - max-width - and - max-height - (bootstrap utility remains) -
  • -
  • - line-height - (bootstrap utility remains) -
  • -
  • - gap - (new solution with updated naming system up coming) -
  • -
-

NOT affected properties:

-
    -
  • - Responsive behaviour (e.g. - .p-large-r - , etc.) -
  • -
-
- -
-

Post-Sizes Reference Table

- - - - - - - - - - - - - - - - - - - - - -
Size nameSize name in classesSize in pixels (approx.)Size in remEffective size used in cssBootstrap size equivalent
{{ size.name | replaceHyphen | titlecase | removeSpaces }}{{ '*-' + size.name }}{{ size.size_pixel }} px{{ size.size_rem }} rem - {{ - size.implemented === postSizeImplementationPixel - ? size.size_pixel + 'px' - : size.size_rem + 'rem' - }} - {{ size.equivalent > 0 ? '*-' + size.equivalent : 'none' }}
-
- -
- -
-

Height & Width

-

- Height and width can be set using - h-* - and - w-* - prefixes, max-height and max-width can be set using prefixes - mh-* - and - mw-* - . -

- -

- Bootstrap offers sizing classes with the following number suffixes: - *-25 - , - *-50 - , - *-75 - , - *-100 - . They allow you to set a height / width as a percentage (see "Bootstrap Sizing" link above for - reference). -

-

- Post sizes can be used in the same way: by adding the name of the desired size to a prefix (to - find out which size name to use, see the "Size name in classes" column in the reference table - above or use the demo below). -

- -

Example

- -
- -
- -
-

Padding & Margin

-

- Padding and margin can be set using - p* - and - m* - prefixes. -

-

- You can apply the desired margin / padding all around an element using the prefix alone ( - m-* - / - p-* - ), or you can specify a position (ex: - pt- - , - pb- - , - pe- - , - ps- - respectively for a padding at top, bottom, right and left). You can also set a margin/padding - along the horizontal axis (i.e. right and left) using - px- - / - mx- - or along the vertical axis (i.e. top and bottom) using - py- - / - my- - . -

-

- Bootstrap offers spacing classes with suffixes going from 0 to 5 ( - *-0 - , - *-1 - , - *-2 - , ...) (see "Bootstrap Spacing" link above for reference). -

-

- Post sizes can be used in the same way: by adding the name of the desired size to a prefix (to - find out which size name to use, see the "Size name in classes" column in the reference table - above or use the demo below). -

- -

Example

- -
- -
- -
-

Responsive behaviour

-

By default, the above classes apply to all breakpoints.

-

- If you need to change the size or spacing of an element based on the breakpoint, you should - mention it in the class name using one of the following infixes: - *-sm-* - , - *-rg-* - , - *-md-* - , - *-lg-* - , - *-xl-* - , - *-xxl-* - . When a breakpoint is specified, the size applies to that breakpoint and to all those that are - larger. -

-

- Another way to define a responsive size is to use the - *-r - suffix. It allows to obtain a size which updates automatically and consistently depending on the - breakpoint, without having to specify anything manually. -

-

Example

- -
diff --git a/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component.ts b/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component.ts deleted file mode 100644 index 6c832772d4..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/sizing-demo-page/sizing-demo-page.component.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { Component } from '@angular/core'; - -interface PostSize { - name: string; - size_pixel: number; - size_rem: number; - implemented: PostSizeImplementation; - equivalent: number; -} - -enum PostSizeImplementation { - Pixel, - Rem, -} - -const heightWidth = `
`; -const paddingMargin = `
-
Text
-
`; - -@Component({ - selector: 'app-sizing-demo-page', - templateUrl: './sizing-demo-page.component.html', -}) -export class SizingDemoPageComponent { - heightWidth = heightWidth; - paddingMargin = paddingMargin; - - sizes: PostSize[]; - postSizeImplementationPixel: PostSizeImplementation = PostSizeImplementation.Pixel; - - constructor() { - this.sizes = [ - { - name: 'hair', - size_pixel: 1, - size_rem: 0.0625, - implemented: PostSizeImplementation.Pixel, - equivalent: 0, - }, - { - name: 'line', - size_pixel: 2, - size_rem: 0.125, - implemented: PostSizeImplementation.Pixel, - equivalent: 0, - }, - { - name: 'micro', - size_pixel: 4, - size_rem: 0.25, - implemented: PostSizeImplementation.Rem, - equivalent: 1, - }, - { - name: 'mini', - size_pixel: 8, - size_rem: 0.5, - implemented: PostSizeImplementation.Rem, - equivalent: 2, - }, - { - name: 'small-regular', - size_pixel: 12, - size_rem: 0.75, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - { - name: 'regular', - size_pixel: 16, - size_rem: 1, - implemented: PostSizeImplementation.Rem, - equivalent: 3, - }, - { - name: 'small-large', - size_pixel: 20, - size_rem: 1.25, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - { - name: 'large', - size_pixel: 24, - size_rem: 1.5, - implemented: PostSizeImplementation.Rem, - equivalent: 4, - }, - { - name: 'big', - size_pixel: 32, - size_rem: 2, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - { - name: 'bigger-big', - size_pixel: 40, - size_rem: 2.5, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - { - name: 'small-huge', - size_pixel: 48, - size_rem: 3, - implemented: PostSizeImplementation.Rem, - equivalent: 5, - }, - { - name: 'huge', - size_pixel: 56, - size_rem: 3.5, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - { - name: 'giant', - size_pixel: 80, - size_rem: 5, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - { - name: 'bigger-giant', - size_pixel: 112, - size_rem: 7, - implemented: PostSizeImplementation.Rem, - equivalent: 0, - }, - ]; - } -} diff --git a/packages/demo/src/app/post-sample/components/sizing/sizing-demo/sizing-demo.component.html b/packages/demo/src/app/post-sample/components/sizing/sizing-demo/sizing-demo.component.html deleted file mode 100644 index d7ed0f51b8..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/sizing-demo/sizing-demo.component.html +++ /dev/null @@ -1,83 +0,0 @@ - - -
-
-
-
- - -
    -
  • -
    - content -
  • -
-
- -
- -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
-
- - -

sizing-demo.component.html

- diff --git a/packages/demo/src/app/post-sample/components/sizing/sizing-demo/sizing-demo.component.ts b/packages/demo/src/app/post-sample/components/sizing/sizing-demo/sizing-demo.component.ts deleted file mode 100644 index 892792abe0..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/sizing-demo/sizing-demo.component.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component, Input } from '@angular/core'; -import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; - -@Component({ - selector: 'app-sizing-demo', - templateUrl: 'sizing-demo.component.html', -}) -export class SizingDemoComponent { - @Input() sizes: unknown; - - demoForm: UntypedFormGroup; - bootstrapSizes: { value: string; name: string }[]; - - constructor(private fb: UntypedFormBuilder) { - this.demoForm = fb.group({ - 'width': fb.group({ - prefix: ['w-'], - size: ['small-huge'], - }), - 'height': fb.group({ - prefix: ['h-'], - size: ['small-huge'], - }), - 'max-width': fb.group({ - prefix: ['mw-'], - size: ['100'], - }), - 'max-height': fb.group({ - prefix: ['mh-'], - size: ['100'], - }), - }); - - this.bootstrapSizes = [ - { value: '25', name: '25%' }, - { value: '50', name: '50%' }, - { value: '75', name: '75%' }, - { value: '100', name: '100%' }, - { value: 'auto', name: 'Auto (default)' }, - ]; - } - - get highlight(): string { - return '
'; - } - - get demoClass(): string { - return Object.keys(this.demoForm.value) - .map(prop => this.getPrefix(prop) + this.getSize(prop)) - .join(' '); - } - - getPrefix(prop: string): string { - return this.demoForm.get(prop + '.prefix').value; - } - - getSize(prop: string): string { - return this.demoForm.get(prop + '.size').value; - } -} diff --git a/packages/demo/src/app/post-sample/components/sizing/spacing-demo/spacing-demo.component.html b/packages/demo/src/app/post-sample/components/sizing/spacing-demo/spacing-demo.component.html deleted file mode 100644 index d16468809c..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/spacing-demo/spacing-demo.component.html +++ /dev/null @@ -1,86 +0,0 @@ - - -
- -
-
-
-
-
-
-
- - -
    -
  • -
    - margin -
  • -
  • -
    - padding -
  • -
  • -
    - content -
  • -
-
- -
- - -
- - -
-
- - -
-
- - - -
- - -
-
- - -
-
-
- - -

spacing-demo.component.html

- diff --git a/packages/demo/src/app/post-sample/components/sizing/spacing-demo/spacing-demo.component.ts b/packages/demo/src/app/post-sample/components/sizing/spacing-demo/spacing-demo.component.ts deleted file mode 100644 index d477fe7460..0000000000 --- a/packages/demo/src/app/post-sample/components/sizing/spacing-demo/spacing-demo.component.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component, Input } from '@angular/core'; -import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; - -@Component({ - selector: 'app-spacing-demo', - templateUrl: 'spacing-demo.component.html', -}) -export class SpacingDemoComponent { - @Input() sizes: unknown; - - demoForm: UntypedFormGroup; - positions: { name: string; value: string }[]; - bootstrapSizes: { name: string; value: string }[]; - - constructor(private fb: UntypedFormBuilder) { - this.demoForm = fb.group({ - margin: fb.group({ - size: ['small-large'], - position: [''], - }), - padding: fb.group({ - size: ['small-regular'], - position: [''], - }), - }); - - this.positions = [ - { value: '', name: 'All around' }, - { value: 'x', name: 'Along the horizontal axis' }, - { value: 'y', name: 'Along the vertical axis' }, - { value: 't', name: 'At the top' }, - { value: 'b', name: 'At the bottom' }, - { value: 'r', name: 'To the right' }, - { value: 'l', name: 'To the left' }, - ]; - - this.bootstrapSizes = [ - { value: '0', name: '0' }, - { value: '1', name: '1' }, - { value: '2', name: '2' }, - { value: '3', name: '3' }, - { value: '4', name: '4' }, - { value: '5', name: '5' }, - { value: 'auto', name: 'Auto' }, - ]; - } - - get highlight(): string { - return '
'; - } - - get demoClass(): string { - return Object.keys(this.demoForm.value).reduce((demoClass, prop) => { - return demoClass + ' ' + prop.charAt(0) + this.getPosition(prop) + '-' + this.getSize(prop); - }, 'border border-dark h-bigger-giant w-bigger-giant'); - } - - private getPosition(prop: string): string { - return this.demoForm.get(prop + '.position').value; - } - - private getSize(prop: string): string { - return this.demoForm.get(prop + '.size').value; - } -} diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.html b/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.html deleted file mode 100644 index ce86ef80e9..0000000000 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.html +++ /dev/null @@ -1,59 +0,0 @@ -
-

Post-Spinner

-
- - - -

Regular spinner. Usage: Page-Loads. Blocking entire site.

-
-
- - - There is some continous text here as an example. Lorem ipsum dolor sit amet, consetetur - sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam - erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - -
-
- -
-
- - -

- Small spinner. Usage: Loading asynchronous data for components like lists, tables, etc. Blocking - only component. -

-
-
- - - There is some continous text here as an example. Lorem ipsum dolor sit amet, consetetur - sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam - erat, sed diam voluptua. - -
-
- -
-
- - -

XS spinner. Usage: On button, inline with text, ...; when waiting for a response.

- - diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts b/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts deleted file mode 100644 index 7aaaa87aba..0000000000 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Component } from '@angular/core'; - -const codeTemplate = - require('!!raw-loader!../spinner-mini-demo/spinner-mini-demo.component.html').default; -const spinner = ` -
-
-
-
-
`; -const spinnerSmall = ` -
-
-
-
-
`; - -@Component({ - selector: 'app-spinner-demo-page', - templateUrl: './spinner-demo-page.component.html', -}) -export class SpinnerDemoPageComponent { - codeTemplate = codeTemplate; - spinner = spinner; - spinnerSmall = spinnerSmall; -} diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-demo/spinner-demo.component.html b/packages/demo/src/app/post-sample/components/spinner/spinner-demo/spinner-demo.component.html deleted file mode 100644 index 5a24743ded..0000000000 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-demo/spinner-demo.component.html +++ /dev/null @@ -1,5 +0,0 @@ -
-
-
-
-
diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-demo/spinner-demo.component.ts b/packages/demo/src/app/post-sample/components/spinner/spinner-demo/spinner-demo.component.ts deleted file mode 100644 index daf65f6bc4..0000000000 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-demo/spinner-demo.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Component, Input } from '@angular/core'; - -@Component({ - selector: 'app-spinner-demo', - templateUrl: './spinner-demo.component.html', -}) -export class SpinnerDemoComponent { - @Input() small: boolean; -} diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-mini-demo/spinner-mini-demo.component.html b/packages/demo/src/app/post-sample/components/spinner/spinner-mini-demo/spinner-mini-demo.component.html deleted file mode 100644 index 0b0aa4fd67..0000000000 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-mini-demo/spinner-mini-demo.component.html +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-mini-demo/spinner-mini-demo.component.ts b/packages/demo/src/app/post-sample/components/spinner/spinner-mini-demo/spinner-mini-demo.component.ts deleted file mode 100644 index 1c730d97fa..0000000000 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-mini-demo/spinner-mini-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-spinner-mini-demo', - templateUrl: './spinner-mini-demo.component.html', -}) -export class SpinnerMiniDemoComponent {} diff --git a/packages/demo/src/app/post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component.html b/packages/demo/src/app/post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component.html deleted file mode 100644 index 384a1dc4cc..0000000000 --- a/packages/demo/src/app/post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component.html +++ /dev/null @@ -1,17 +0,0 @@ - - -
-

Stepper

-
- -
- - - -
diff --git a/packages/demo/src/app/post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component.ts b/packages/demo/src/app/post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component.ts deleted file mode 100644 index b8caf771cb..0000000000 --- a/packages/demo/src/app/post-sample/components/stepper/stepper-demo-page/stepper-demo-page.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright 2021 by Swiss Post, Information Technology - */ - -import { Component } from '@angular/core'; - -const codeTemplate = require('!!raw-loader!../stepper-demo/stepper-demo.component.html').default; -const codeController = require('!!raw-loader!../stepper-demo/stepper-demo.component.ts').default; - -@Component({ - templateUrl: 'stepper-demo-page.component.html', -}) -export class StepperDemoPageComponent { - codeTemplate = codeTemplate; - codeController = codeController; -} diff --git a/packages/demo/src/app/post-sample/components/stepper/stepper-demo/stepper-demo.component.html b/packages/demo/src/app/post-sample/components/stepper/stepper-demo/stepper-demo.component.html deleted file mode 100644 index 4e20c7f160..0000000000 --- a/packages/demo/src/app/post-sample/components/stepper/stepper-demo/stepper-demo.component.html +++ /dev/null @@ -1,25 +0,0 @@ -
-

Order progress, step 3 of 4

- - -
    -
  1. - - Complete: - {{ step }} - - - {{ step }} - -
  2. -
-
diff --git a/packages/demo/src/app/post-sample/components/stepper/stepper-demo/stepper-demo.component.ts b/packages/demo/src/app/post-sample/components/stepper/stepper-demo/stepper-demo.component.ts deleted file mode 100644 index e78b15bab1..0000000000 --- a/packages/demo/src/app/post-sample/components/stepper/stepper-demo/stepper-demo.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-stepper-demo', - templateUrl: 'stepper-demo.component.html', -}) -export class StepperDemoComponent { - steps = ['Sender', 'Product', 'Other details', 'Order summary']; - currentIndex = 2; - - isCurrent(step: string): boolean { - return step === this.steps[this.currentIndex]; - } - - getPathTo(step: string): string { - return step.toLowerCase().split(' ').join('-'); - } -} diff --git a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.html b/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.html deleted file mode 100644 index e341f5eeb4..0000000000 --- a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

Subnavigation

-
- -
- -
- diff --git a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.spec.ts b/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.spec.ts deleted file mode 100644 index 375e392f38..0000000000 --- a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { SubnavigationDemoPageComponent } from './subnavigation-demo-page.component'; - -describe('SubnavigationDemoPageComponent', () => { - let component: SubnavigationDemoPageComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [SubnavigationDemoPageComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SubnavigationDemoPageComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.ts b/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.ts deleted file mode 100644 index 7ab47e7877..0000000000 --- a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; -const codeTemplate = - require('!!raw-loader!../subnavigation-demo/subnavigation-demo.component.html').default; - -@Component({ - selector: 'app-subnavigation-demo-page', - templateUrl: './subnavigation-demo-page.component.html', -}) -export class SubnavigationDemoPageComponent { - codeTemplate = codeTemplate; -} diff --git a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.html b/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.html deleted file mode 100644 index b881c6a098..0000000000 --- a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.spec.ts b/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.spec.ts deleted file mode 100644 index 205b462b36..0000000000 --- a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { SubnavigationDemoComponent } from './subnavigation-demo.component'; - -describe('SubnavigationDemoComponent', () => { - let component: SubnavigationDemoComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [SubnavigationDemoComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SubnavigationDemoComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.ts b/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.ts deleted file mode 100644 index a9a6a7365d..0000000000 --- a/packages/demo/src/app/post-sample/components/subnavigation/subnavigation-demo/subnavigation-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-subnavigation-demo', - templateUrl: './subnavigation-demo.component.html', -}) -export class SubnavigationDemoComponent {} diff --git a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component.html b/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component.html deleted file mode 100644 index 12cd078a61..0000000000 --- a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component.html +++ /dev/null @@ -1,38 +0,0 @@ -
-

Topic teaser

-
- -
-

- If you use multiple topic teasers on one page, each topic teaser must have a different - background. -
- Only use " - Extended Swiss Post backgrounds - " or "bg-light" as background. -

- -

Basic example

-
- - - -
- - -

Image on right side

-
- - - -
- -
diff --git a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component.ts b/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component.ts deleted file mode 100644 index c4840a669c..0000000000 --- a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; -import { Router } from '@angular/router'; -const topicTeaserTemplate = - require('!!raw-loader!../topic-teaser-demo/topic-teaser-demo.component.html').default; -const topicTeaserRightTemplate = - require('!!raw-loader!../topic-teaser-right-demo/topic-teaser-right-demo.component.html').default; - -@Component({ - selector: 'app-topic-teaser-demo-page', - templateUrl: './topic-teaser-demo-page.component.html', -}) -export class TopicTeaserDemoPageComponent { - topicTeaserTemplate = topicTeaserTemplate; - topicTeaserRightTemplate = topicTeaserRightTemplate; - - constructor(public router: Router) {} -} diff --git a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component.html b/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component.html deleted file mode 100644 index 16c69e39d3..0000000000 --- a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component.html +++ /dev/null @@ -1,41 +0,0 @@ -
-
-
-
-
- -
- -
-

- Lorem ipsum - sit amet, consetetur sadipscing elitr -

- -
-
-
-
-
diff --git a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component.ts b/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component.ts deleted file mode 100644 index 661b8785d8..0000000000 --- a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-topic-teaser-demo', - templateUrl: './topic-teaser-demo.component.html', -}) -export class TopicTeaserDemoComponent {} diff --git a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component.html b/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component.html deleted file mode 100644 index 3b3454cc85..0000000000 --- a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component.html +++ /dev/null @@ -1,41 +0,0 @@ -
-
-
-
-
-

- Lorem ipsum - sit amet, consetetur sadipscing elitr -

- -
- -
- -
-
-
-
-
diff --git a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component.ts b/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component.ts deleted file mode 100644 index bcfdf42d09..0000000000 --- a/packages/demo/src/app/post-sample/components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-topic-teaser-right-demo', - templateUrl: './topic-teaser-right-demo.component.html', -}) -export class TopicTeaserRightDemoComponent {} diff --git a/packages/demo/src/app/post-sample/post-sample-components.module.ts b/packages/demo/src/app/post-sample/post-sample-components.module.ts deleted file mode 100644 index 1ca4064c1b..0000000000 --- a/packages/demo/src/app/post-sample/post-sample-components.module.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { TopicTeaserDemoPageComponent } from './components/topic-teaser/topic-teaser-demo-page/topic-teaser-demo-page.component'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; - -import { HighlightModule } from 'ngx-highlightjs'; -import { HighlightProvider } from '../common/highlight.provider'; - -import { SvgIconsDemoComponent } from './components/icons/svg-icons-demo/svg-icons-demo.component'; -import { IconsDemoPageComponent } from './components/icons/icons-demo-page/icons-demo-page.component'; -import { NgBootstrapComponentsModule } from '../ng-bootstrap/components/ng-bootstrap-components.module'; -import { NgbDatepickerI18n, NgbDatepickerModule, NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { FeedbackDemoComponent } from './components/feedback/feedback-demo/feedback-demo.component'; -import { FeedbackDemoPageComponent } from './components/feedback/feedback-demo-page/feedback-demo-page.component'; -import { SpinnerDemoComponent } from './components/spinner/spinner-demo/spinner-demo.component'; -import { SpinnerDemoPageComponent } from './components/spinner/spinner-demo-page/spinner-demo-page.component'; -import { SpinnerMiniDemoComponent } from './components/spinner/spinner-mini-demo/spinner-mini-demo.component'; -import { SizingDemoComponent } from './components/sizing/sizing-demo/sizing-demo.component'; -import { SpacingDemoComponent } from './components/sizing/spacing-demo/spacing-demo.component'; -import { ResponsiveSizingDemoComponent } from './components/sizing/responsive-sizing-demo/responsive-sizing-demo.component'; -import { SizingDemoPageComponent } from './components/sizing/sizing-demo-page/sizing-demo-page.component'; -import { StepperDemoComponent } from './components/stepper/stepper-demo/stepper-demo.component'; -import { StepperDemoPageComponent } from './components/stepper/stepper-demo-page/stepper-demo-page.component'; -import { CustomSelectFloatingDemoComponent } from './components/custom-select/custom-select-floating-demo/custom-select-floating-demo.component'; -import { CustomSelectDemoComponent } from './components/custom-select/custom-select-demo/custom-select-demo.component'; -import { CustomSelectDemoPageComponent } from './components/custom-select/custom-select-demo-page/custom-select-demo-page.component'; -import { - RemoveSpacesPipe, - ReplaceHyphenPipe, -} from './components/sizing/sizing-demo-page/sizing-demo-page-class-display.pipe'; -import { NotificationOverlayPageComponent } from './components/notification-overlay/notification-overlay-demo-page/notification-overlay-page.component'; -import { NotificationOverlayDemoComponent } from './components/notification-overlay/notification-overlay/notification-overlay-demo.component'; -import { NotificationOverlayContentComponent } from './components/notification-overlay/notification-overlay-content/notification-overlay-content'; -import { SubnavigationDemoComponent } from './components/subnavigation/subnavigation-demo/subnavigation-demo.component'; -import { SubnavigationDemoPageComponent } from './components/subnavigation/subnavigation-demo-page/subnavigation-demo-page.component'; -import { - SwissPostDatepickerI18n, - I18n, -} from '../ng-bootstrap/components/datepicker/datepicker-demo-page/datepicker-localization.service'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { PostCommonModule } from '../common/post-common.module'; -import { PostCardsDemoPageComponent } from './components/post-cards/post-cards-demo-page/post-cards-demo-page.component'; -import { PostCardButtonComponent } from './components/post-cards/post-card-button/post-card-button.component'; -import { PostCardProductNavigationComponent } from './components/post-cards/post-card-product-navigation/post-card-product-navigation.component'; -import { PostCardProductTeaserComponent } from './components/post-cards/post-card-product-teaser/post-card-product-teaser.component'; -import { TopicTeaserDemoComponent } from './components/topic-teaser/topic-teaser-demo/topic-teaser-demo.component'; -import { TopicTeaserRightDemoComponent } from './components/topic-teaser/topic-teaser-right-demo/topic-teaser-right-demo.component'; -import { DatatableDemoComponent } from './components/datatable/datatable-demo/datatable-demo.component'; -import { DatatablePaginatedDemoComponent } from './components/datatable/datatable-paginated-demo/datatable-paginated-demo.component'; -import { DatatableEditableDemoComponent } from './components/datatable/datatable-editable-demo/datatable-editable-demo.component'; -import { DatatableDemoPageComponent } from './components/datatable/datatable-demo-page/datatable-demo-page.component'; -import { NgxDatatableModule } from '@swimlane/ngx-datatable'; -import { FormsDemoPageComponent } from './components/forms/forms-demo-page/forms-demo-page.component'; -import { DatatableLoadingDemoComponent } from './components/datatable/datatable-loading-demo/datatable-loading-demo.component'; - -@NgModule({ - imports: [ - CommonModule, - RouterModule, - NgbModule, - FormsModule, - ReactiveFormsModule, - PostCommonModule, - NgBootstrapComponentsModule, - NgbDatepickerModule, - HighlightModule, - NgxDatatableModule, - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA], - declarations: [ - SvgIconsDemoComponent, - IconsDemoPageComponent, - FeedbackDemoComponent, - FeedbackDemoPageComponent, - SpinnerDemoComponent, - SpinnerDemoPageComponent, - SpinnerMiniDemoComponent, - SizingDemoComponent, - SpacingDemoComponent, - ResponsiveSizingDemoComponent, - SizingDemoPageComponent, - ReplaceHyphenPipe, - RemoveSpacesPipe, - NotificationOverlayPageComponent, - NotificationOverlayDemoComponent, - NotificationOverlayContentComponent, - SubnavigationDemoComponent, - PostCardsDemoPageComponent, - PostCardButtonComponent, - PostCardProductNavigationComponent, - PostCardProductTeaserComponent, - SubnavigationDemoPageComponent, - SubnavigationDemoPageComponent, - DatatableDemoComponent, - DatatablePaginatedDemoComponent, - DatatableEditableDemoComponent, - DatatableLoadingDemoComponent, - DatatableDemoPageComponent, - TopicTeaserDemoComponent, - TopicTeaserRightDemoComponent, - TopicTeaserDemoPageComponent, - CustomSelectDemoComponent, - CustomSelectFloatingDemoComponent, - CustomSelectDemoPageComponent, - StepperDemoComponent, - StepperDemoPageComponent, - FormsDemoPageComponent, - ], - providers: [ - I18n, - { provide: NgbDatepickerI18n, useClass: SwissPostDatepickerI18n }, - HighlightProvider.Config, - ], - exports: [ - SvgIconsDemoComponent, - IconsDemoPageComponent, - FeedbackDemoComponent, - FeedbackDemoPageComponent, - PostCardsDemoPageComponent, - CustomSelectDemoPageComponent, - StepperDemoPageComponent, - ], -}) -export class PostSampleComponentsModule {} diff --git a/packages/demo/src/apple-touch-icon.png b/packages/demo/src/apple-touch-icon.png deleted file mode 100644 index 2aa4087804..0000000000 Binary files a/packages/demo/src/apple-touch-icon.png and /dev/null differ diff --git a/packages/demo/src/assets/.gitkeep b/packages/demo/src/assets/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/demo/src/assets/images/ATTRIBUTION.md b/packages/demo/src/assets/images/ATTRIBUTION.md deleted file mode 100644 index d9456bf2c9..0000000000 --- a/packages/demo/src/assets/images/ATTRIBUTION.md +++ /dev/null @@ -1,9 +0,0 @@ -# Asset attributions - -- tiny-city.jpg: Photo by Alexandre Debiève on Unsplash -- computer-stuff.jpg: Photo by Marvin Meyer on Unsplash -- robot.jpg: Photo by Maximalfocus on Unsplash -- hard-drive.jpg: Photo by benjamin lehman on Unsplash -- writing.jpg: Photo by Glenn Carstens-Peters on Unsplash -- waterfall.jpg: Photo by Robert Bye on Unsplash -- lego.jpg: Photo by Xavi Cabrera on Unsplash diff --git a/packages/demo/src/assets/images/angular.png b/packages/demo/src/assets/images/angular.png deleted file mode 100644 index c510293918..0000000000 Binary files a/packages/demo/src/assets/images/angular.png and /dev/null differ diff --git a/packages/demo/src/assets/images/bootstrap.png b/packages/demo/src/assets/images/bootstrap.png deleted file mode 100644 index 03ad8f7492..0000000000 Binary files a/packages/demo/src/assets/images/bootstrap.png and /dev/null differ diff --git a/packages/demo/src/assets/images/computer-stuff.jpg b/packages/demo/src/assets/images/computer-stuff.jpg deleted file mode 100644 index b65fa3d5b8..0000000000 Binary files a/packages/demo/src/assets/images/computer-stuff.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/hard-drive.jpg b/packages/demo/src/assets/images/hard-drive.jpg deleted file mode 100644 index 32712d2d10..0000000000 Binary files a/packages/demo/src/assets/images/hard-drive.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/header.png b/packages/demo/src/assets/images/header.png deleted file mode 100644 index eb75ccc5ad..0000000000 Binary files a/packages/demo/src/assets/images/header.png and /dev/null differ diff --git a/packages/demo/src/assets/images/jelly.jpg b/packages/demo/src/assets/images/jelly.jpg deleted file mode 100644 index d05bc5245a..0000000000 Binary files a/packages/demo/src/assets/images/jelly.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/lego.jpg b/packages/demo/src/assets/images/lego.jpg deleted file mode 100644 index a8946424c7..0000000000 Binary files a/packages/demo/src/assets/images/lego.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/mantis.jpg b/packages/demo/src/assets/images/mantis.jpg deleted file mode 100644 index 1efbbb41fa..0000000000 Binary files a/packages/demo/src/assets/images/mantis.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/ng-bootstrap.svg b/packages/demo/src/assets/images/ng-bootstrap.svg deleted file mode 100644 index b2a75331f9..0000000000 --- a/packages/demo/src/assets/images/ng-bootstrap.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/demo/src/assets/images/oli.jfif b/packages/demo/src/assets/images/oli.jfif deleted file mode 100644 index c3fd5fa34c..0000000000 Binary files a/packages/demo/src/assets/images/oli.jfif and /dev/null differ diff --git a/packages/demo/src/assets/images/platypus.jpg b/packages/demo/src/assets/images/platypus.jpg deleted file mode 100644 index 7d2471e536..0000000000 Binary files a/packages/demo/src/assets/images/platypus.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/robot.jpg b/packages/demo/src/assets/images/robot.jpg deleted file mode 100644 index 7ee1381716..0000000000 Binary files a/packages/demo/src/assets/images/robot.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/tardigrade.jpg b/packages/demo/src/assets/images/tardigrade.jpg deleted file mode 100644 index 4395d11415..0000000000 Binary files a/packages/demo/src/assets/images/tardigrade.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/tiny-city.jpg b/packages/demo/src/assets/images/tiny-city.jpg deleted file mode 100644 index f284e767f0..0000000000 Binary files a/packages/demo/src/assets/images/tiny-city.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/waterfall.jpg b/packages/demo/src/assets/images/waterfall.jpg deleted file mode 100644 index 10601b65d1..0000000000 Binary files a/packages/demo/src/assets/images/waterfall.jpg and /dev/null differ diff --git a/packages/demo/src/assets/images/writing.jpg b/packages/demo/src/assets/images/writing.jpg deleted file mode 100644 index 2357a64707..0000000000 Binary files a/packages/demo/src/assets/images/writing.jpg and /dev/null differ diff --git a/packages/demo/src/environments/environment.prod.ts b/packages/demo/src/environments/environment.prod.ts deleted file mode 100644 index bb1c3c3330..0000000000 --- a/packages/demo/src/environments/environment.prod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import packageJson from '../../package.json'; - -export const environment = { - production: true, - VERSION: packageJson.version, - ANGULAR_VERSION: packageJson.dependencies['@angular/core'], - NG_BOOTSTRAP_VERSION: packageJson.dependencies['@ng-bootstrap/ng-bootstrap'], - NGX_TOASTR: packageJson.dependencies['ngx-toastr'], -}; diff --git a/packages/demo/src/environments/environment.ts b/packages/demo/src/environments/environment.ts deleted file mode 100644 index a5374f4893..0000000000 --- a/packages/demo/src/environments/environment.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file can be replaced during build by using the `fileReplacements` array. -// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. -// The list of file replacements can be found in `angular.json`. -import packageJson from './../../package.json'; - -export const environment = { - production: false, - VERSION: packageJson.version, - STYLES_VERSION: packageJson.dependencies['@swisspost/design-system-styles'], - ANGULAR_VERSION: packageJson.dependencies['@angular/core'], - BOOTSTRAP_VERSION: packageJson.dependencies.bootstrap, - NG_BOOTSTRAP_VERSION: packageJson.dependencies['@ng-bootstrap/ng-bootstrap'], - NGX_TOASTR: packageJson.dependencies['ngx-toastr'], -}; - -/* - * In development mode, to ignore zone related error stack frames such as - * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can - * import the following file, but please comment it out in production mode - * because it will have performance impact when throw error - */ diff --git a/packages/demo/src/favicon.ico b/packages/demo/src/favicon.ico deleted file mode 100644 index afec9e551c..0000000000 Binary files a/packages/demo/src/favicon.ico and /dev/null differ diff --git a/packages/demo/src/favicon.svg b/packages/demo/src/favicon.svg deleted file mode 100644 index f4f0328a6b..0000000000 --- a/packages/demo/src/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/packages/demo/src/index.html b/packages/demo/src/index.html deleted file mode 100644 index 3f5ceb7c34..0000000000 --- a/packages/demo/src/index.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Swiss Post Design System - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/packages/demo/src/karma.conf.js b/packages/demo/src/karma.conf.js deleted file mode 100644 index a952e0c055..0000000000 --- a/packages/demo/src/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function (config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma'), - ], - client: { - clearContext: false, // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true, - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false, - restartOnFileChange: true, - }); -}; diff --git a/packages/demo/src/main.ts b/packages/demo/src/main.ts deleted file mode 100644 index 86f686e71c..0000000000 --- a/packages/demo/src/main.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import hljs from 'highlight.js/lib/core'; -import css from 'highlight.js/lib/languages/css'; -hljs.registerLanguage('css', css); -hljs.highlightAll(); - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic() - .bootstrapModule(AppModule) - .catch(err => console.log(err)); diff --git a/packages/demo/src/netlify.toml b/packages/demo/src/netlify.toml deleted file mode 100644 index ead1626fdd..0000000000 --- a/packages/demo/src/netlify.toml +++ /dev/null @@ -1,4 +0,0 @@ -[[headers]] - for="/assets/versions.json" - [headers.values] - Access-Control-Allow-Origin = "*" diff --git a/packages/demo/src/polyfills.ts b/packages/demo/src/polyfills.ts deleted file mode 100644 index 5b94feacc4..0000000000 --- a/packages/demo/src/polyfills.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/guide/browser-support - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** - * Web Animations `@angular/platform-browser/animations` - * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. - * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). - */ - -/** - * By default, zone.js will patch all possible macroTask and DomEvents - * user can disable parts of macroTask/DomEvents patch by setting following flags - * because those flags need to be set before `zone.js` being loaded, and webpack - * will put import in the top of bundle, so user need to create a separate file - * in this directory (for example: zone-flags.ts), and put the following flags - * into that file, and then add the following code before importing zone.js. - * import './zone-flags'; - * - * The flags allowed in zone-flags.ts are listed here. - * - * The following flags will work for all browsers. - * - * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame - * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames - * - * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js - * with the following flag, it will bypass `zone.js` patch for IE/Edge - * - * (window as any).__Zone_enable_cross_context_check = true; - * - */ - -/*************************************************************************************************** - * Zone JS is required by default for Angular itself. - */ -import 'zone.js'; // Included with Angular CLI. - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ -import '@angular/localize/init'; diff --git a/packages/demo/src/site.webmanifest b/packages/demo/src/site.webmanifest deleted file mode 100644 index 9175f443eb..0000000000 --- a/packages/demo/src/site.webmanifest +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "Swiss Post Design System - Demo App", - "short_name": "SPDS-Demo App", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "display": "standalone" -} diff --git a/packages/demo/src/styles.scss b/packages/demo/src/styles.scss deleted file mode 100644 index 63114996c0..0000000000 --- a/packages/demo/src/styles.scss +++ /dev/null @@ -1,151 +0,0 @@ -@use 'sass:map'; - -// Switch imported File to check the different versions -@use '@swisspost/design-system-styles/intranet'; -@use '@swisspost/design-system-styles/core' as post; - -html { - scroll-behavior: smooth; -} - -body { - // Necessary to prevent horizontal scrollbar from the topic teaser padding - overflow-x: hidden; -} - -.pi-1000-warning { - @include post.pi(1000, 'warning'); -} - -.pi-1000-primary { - @include post.pi(1000, 'primary'); -} - -.pi-1000-success { - @include post.pi(1000, 'success'); -} -.pi-1000-error { - @include post.pi(1000, 'error'); -} - -.pi-1014-white { - @include post.pi(1014, 'white'); -} - -.pi-1000-white { - @include post.pi(1000, 'white'); -} - -.pi-2062-warning { - @include post.pi(2062, 'warning'); -} - -.pi-2062-white { - @include post.pi(2062, 'white'); -} - -.pi-3192-white { - @include post.pi(3192, 'white'); -} - -.pi-2104-white { - @include post.pi(2104, 'white'); -} - -.code-sample { - margin-top: 35px; - text-align: center; -} - -.code-sample h5 { - margin-bottom: 25px; -} - -.code-sample pre { - padding: 24px; - text-align: left; - background-color: #f8f6f0; -} - -img { - max-width: 100%; -} - -section { - margin-bottom: map.get($map: post.$post-sizes, $key: 'bigger-big'); -} - -.mark-attention { - color: #a51728; - font-weight: bold; - font-variant: small-caps; - font-size: 60%; - position: relative; - top: -0.5rem; -} - -code { - padding: 0.1em 0.4em; - margin: 0; - font-size: 85%; - background-color: var(--post-gray-10); - border-radius: 6px; - - &.block, - &.d-block, - &.block.hljs, - &.d-block.hljs { - display: block; - padding: post.$size-micro post.$size-mini; - background: var(--post-gray-80); - color: white; - white-space: pre; - max-width: 100%; - overflow: auto; - margin-bottom: post.$size-small-regular; - max-height: 450px; - } - - &[appCopyToClipboard] { - position: relative; - cursor: pointer; - - &:not(.hljs)::after { - position: absolute; - left: 100%; - top: 50%; - transform: scale(0.5) translateY(-50%); - background-color: rgba(var(--post-bg-rgb), 0.95); - padding: 0 post.$size-small-regular; - transform-origin: top left; - z-index: 2; - } - - &.hljs::after { - position: absolute; - right: 0; - top: 50%; - transform: scale(0.75) translateY(-50%); - padding: 0 post.$size-mini; - transform-origin: top left; - } - - &:not(.copied) { - &:not(.hljs):hover { - background-color: var(--post-gray-20); - - &::after { - content: url(post.get-colored-svg-url(2012, post.$black)); - } - } - - &.hljs:hover::after { - content: url(post.get-colored-svg-url(2012, post.$white)); - } - } - - &.copied::after { - content: url(post.get-colored-svg-url(2105, post.$success)); - } - } -} diff --git a/packages/demo/src/test.ts b/packages/demo/src/test.ts deleted file mode 100644 index 51bb0206a2..0000000000 --- a/packages/demo/src/test.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/testing'; -import { getTestBed } from '@angular/core/testing'; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting -} from '@angular/platform-browser-dynamic/testing'; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), -); diff --git a/packages/demo/src/tsconfig.app.json b/packages/demo/src/tsconfig.app.json deleted file mode 100644 index 872bb73af0..0000000000 --- a/packages/demo/src/tsconfig.app.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/app", - "types": ["node"] - }, - "files": [ - "main.ts", - "polyfills.ts" - ] -} diff --git a/packages/demo/src/tsconfig.spec.json b/packages/demo/src/tsconfig.spec.json deleted file mode 100644 index de7733630e..0000000000 --- a/packages/demo/src/tsconfig.spec.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/spec", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "test.ts", - "polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/packages/demo/src/tslint.json b/packages/demo/src/tslint.json deleted file mode 100644 index a56f6c5038..0000000000 --- a/packages/demo/src/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "post", - "kebab-case" - ] - } -} diff --git a/packages/demo/tsconfig.json b/packages/demo/tsconfig.json deleted file mode 100644 index 303c871354..0000000000 --- a/packages/demo/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "baseUrl": "./", - "downlevelIteration": true, - "module": "es2020", - "outDir": "./dist/out-tsc", - "sourceMap": true, - "declaration": false, - "moduleResolution": "node", - "experimentalDecorators": true, - "importHelpers": true, - "target": "ES2022", - "allowJs": true, - "resolveJsonModule": true, - "allowSyntheticDefaultImports": true, - "typeRoots": [ - "node_modules/@types" - ], - "lib": [ - "es2018", - "dom" - ], - "useDefineForClassFields": false - } -} diff --git a/packages/demo/tslint.json b/packages/demo/tslint.json deleted file mode 100644 index 5065137af3..0000000000 --- a/packages/demo/tslint.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "rulesDirectory": [ - "node_modules/codelyzer" - ], - "rules": { - "arrow-return-shorthand": true, - "callable-types": true, - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "curly": true, - "deprecation": { - "severity": "warn" - }, - "eofline": true, - "forin": true, - "import-blacklist": [ - true, - "rxjs/Rx" - ], - "import-spacing": true, - "indent": [ - true, - "spaces" - ], - "interface-over-type-literal": true, - "label-position": true, - "max-line-length": [ - true, - 140 - ], - "member-access": false, - "member-ordering": [ - true, - { - "order": [ - "static-field", - "instance-field", - "static-method", - "instance-method" - ] - } - ], - "no-arg": true, - "no-bitwise": true, - "no-console": [ - true, - "debug", - "info", - "time", - "timeEnd", - "trace" - ], - "no-construct": true, - "no-debugger": true, - "no-duplicate-super": true, - "no-empty": false, - "no-empty-interface": true, - "no-eval": true, - "no-inferrable-types": [ - true, - "ignore-params" - ], - "no-misused-new": true, - "no-non-null-assertion": true, - "no-shadowed-variable": true, - "no-string-literal": false, - "no-string-throw": true, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unnecessary-initializer": true, - "no-unused-expression": true, - "no-var-keyword": true, - "object-literal-sort-keys": false, - "one-line": [ - true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "prefer-const": true, - "quotemark": [ - true, - "single" - ], - "radix": true, - "semicolon": [ - true, - "always" - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "unified-signatures": true, - "variable-name": false, - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ], - "no-output-on-prefix": true, - "no-inputs-metadata-property": true, - "no-outputs-metadata-property": true, - "no-host-metadata-property": true, - "no-input-rename": true, - "no-output-rename": true, - "use-lifecycle-interface": true, - "use-pipe-transform-interface": true, - "component-class-suffix": true, - "directive-class-suffix": true - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d59398c6fe..a4a377c9cf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -118,7 +118,7 @@ importers: version: 1.78.0 ts-jest: specifier: 29.2.4 - version: 29.2.4(@babel/core@7.25.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.2))(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4) + version: 29.2.4(@babel/core@7.25.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.2))(jest@29.7.0(@types/node@20.14.14))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -291,181 +291,6 @@ importers: specifier: '*' version: 5.6.2 - packages/demo: - dependencies: - '@angular/animations': - specifier: 18.1.3 - version: 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)) - '@angular/cdk': - specifier: 18.1.3 - version: 18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/common': - specifier: 18.1.3 - version: 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/compiler': - specifier: 18.1.3 - version: 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)) - '@angular/core': - specifier: 18.1.3 - version: 18.1.3(rxjs@7.8.1)(zone.js@0.14.8) - '@angular/forms': - specifier: 18.1.3 - version: 18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) - '@angular/localize': - specifier: 18.1.3 - version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) - '@angular/platform-browser': - specifier: 18.1.3 - version: 18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)) - '@angular/platform-browser-dynamic': - specifier: 18.1.3 - version: 18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) - '@angular/router': - specifier: 18.1.3 - version: 18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) - '@ng-bootstrap/ng-bootstrap': - specifier: 17.0.0 - version: 17.0.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/forms@18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@popperjs/core@2.11.8)(rxjs@7.8.1) - '@popperjs/core': - specifier: 2.11.8 - version: 2.11.8 - '@swimlane/ngx-datatable': - specifier: 20.1.0 - version: 20.1.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) - '@swisspost/design-system-intranet-header': - specifier: workspace:9.0.0-next.0 - version: link:../intranet-header-workspace/dist/intranet-header - '@swisspost/design-system-migrations': - specifier: workspace:9.0.0-next.0 - version: link:../migrations - '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 - version: link:../styles/dist - bootstrap: - specifier: 5.3.3 - version: 5.3.3(@popperjs/core@2.11.8) - core-js: - specifier: 3.37.1 - version: 3.37.1 - highlight.js: - specifier: 11.10.0 - version: 11.10.0 - ngx-highlightjs: - specifier: 10.0.0 - version: 10.0.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - ngx-toastr: - specifier: 19.0.0 - version: 19.0.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) - prettier: - specifier: 2.8.8 - version: 2.8.8 - rxjs: - specifier: 7.8.1 - version: 7.8.1 - tslib: - specifier: 2.6.3 - version: 2.6.3 - zone.js: - specifier: 0.14.8 - version: 0.14.8 - devDependencies: - '@angular-devkit/build-angular': - specifier: 18.1.3 - version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.12.7)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(typescript@5.5.4) - '@angular-eslint/builder': - specifier: 18.2.0 - version: 18.2.0(eslint@8.57.0)(typescript@5.5.4) - '@angular-eslint/eslint-plugin': - specifier: 18.2.0 - version: 18.2.0(@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) - '@angular-eslint/eslint-plugin-template': - specifier: 18.2.0 - version: 18.2.0(@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) - '@angular-eslint/template-parser': - specifier: 18.2.0 - version: 18.2.0(eslint@8.57.0)(typescript@5.5.4) - '@angular/cli': - specifier: 18.1.3 - version: 18.1.3(chokidar@3.6.0) - '@angular/compiler-cli': - specifier: 18.1.3 - version: 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) - '@angular/elements': - specifier: 18.1.3 - version: 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/language-service': - specifier: 18.1.3 - version: 18.1.3 - '@types/jasmine': - specifier: 5.1.4 - version: 5.1.4 - '@types/jasminewd2': - specifier: 2.0.13 - version: 2.0.13 - '@types/node': - specifier: 20.12.7 - version: 20.12.7 - '@typescript-eslint/eslint-plugin': - specifier: 7.18.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/parser': - specifier: 7.18.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) - eslint: - specifier: 8.57.0 - version: 8.57.0 - jasmine-core: - specifier: 5.2.0 - version: 5.2.0 - jasmine-marbles: - specifier: 0.9.2 - version: 0.9.2(rxjs@7.8.1) - jasmine-spec-reporter: - specifier: 7.0.0 - version: 7.0.0 - karma: - specifier: 6.4.4 - version: 6.4.4 - karma-chrome-launcher: - specifier: 3.2.0 - version: 3.2.0 - karma-coverage: - specifier: 2.2.1 - version: 2.2.1 - karma-coverage-istanbul-reporter: - specifier: 3.0.3 - version: 3.0.3 - karma-jasmine: - specifier: 5.1.0 - version: 5.1.0(karma@6.4.4) - karma-jasmine-html-reporter: - specifier: 2.1.0 - version: 2.1.0(jasmine-core@5.2.0)(karma-jasmine@5.1.0(karma@6.4.4))(karma@6.4.4) - raw-loader: - specifier: 4.0.2 - version: 4.0.2(webpack@5.94.0) - rimraf: - specifier: 6.0.1 - version: 6.0.1 - sass: - specifier: 1.78.0 - version: 1.78.0 - sockjs: - specifier: 0.3.24 - version: 0.3.24 - ts-node: - specifier: 10.9.2 - version: 10.9.2(@types/node@20.12.7)(typescript@5.5.4) - typescript: - specifier: 5.5.4 - version: 5.5.4 - undici-types: - specifier: 6.19.5 - version: 6.19.5 - webpack: - specifier: 5.94.0 - version: 5.94.0 - packages/documentation: dependencies: '@swisspost/design-system-components': @@ -666,7 +491,7 @@ importers: version: 3.3.2 ts-jest: specifier: 29.2.4 - version: 29.2.4(@babel/core@7.25.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.2))(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4) + version: 29.2.4(@babel/core@7.25.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.2))(jest@29.7.0(@types/node@20.14.14))(typescript@5.5.4) ts-node: specifier: 10.9.2 version: 10.9.2(@types/node@20.14.14)(typescript@5.5.4) @@ -1387,13 +1212,6 @@ packages: tailwindcss: optional: true - '@angular/cdk@18.1.3': - resolution: {integrity: sha512-u14xbuXQz+36nBeHSwRcwRoS64WNhOdK97H47nI1WaIZZaGGvKHR1Wwk2XletDRtIHv2622sJm8h+dbaBNeTGQ==} - peerDependencies: - '@angular/common': ^18.0.0 || ^19.0.0 - '@angular/core': ^18.0.0 || ^19.0.0 - rxjs: ^6.5.3 || ^7.4.0 - '@angular/cli@18.1.3': resolution: {integrity: sha512-vsEc3cGDUYcc+adfvBHSqKdI8uiaa86Y9pLWGHfqaD+N0q/k17d/47AFvXTDKLmKucMZrto/4088Y1y+yM9eOg==} engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} @@ -1458,13 +1276,6 @@ packages: rxjs: ^6.5.3 || ^7.4.0 zone.js: ~0.14.10 - '@angular/elements@18.1.3': - resolution: {integrity: sha512-3E2bytC3BopFkkEkGF0efrKHMVhbWb8zSskm5YBg17dx+LIuRcTM7L0k2sKrb3jfBnicUEoBRVU0pwzXZyUG2g==} - engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0} - peerDependencies: - '@angular/core': 18.1.3 - rxjs: ^6.5.3 || ^7.4.0 - '@angular/forms@18.1.3': resolution: {integrity: sha512-4kic/9hpS0HkbTORIkrdox7K40EcVT9VIbBruPoxX7jbfiW5jFaJ/05hLRvRt9RF8Sd9G+g5Uohmkcq/5hmsng==} engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0} @@ -1474,10 +1285,6 @@ packages: '@angular/platform-browser': 18.1.3 rxjs: ^6.5.3 || ^7.4.0 - '@angular/language-service@18.1.3': - resolution: {integrity: sha512-1s1VQHJ6Gh84lCqgSEU6pNuPBpvee1mhfIZEE2lqxFu/tLe5gqvtTescFaTFLWY6I4e2RGAOU8WtRnFgFNxzGg==} - engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0} - '@angular/localize@18.1.3': resolution: {integrity: sha512-C7D7m9LkcvK0byVXmBrLBlAhEBFO5ZCIQJ+tDd/vUq1ALdkMlG4RkwVsrQxLIIatp88p21V0M0ZQNc3IfgileQ==} engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0} @@ -3862,14 +3669,6 @@ packages: '@swc/helpers@0.5.5': resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==} - '@swimlane/ngx-datatable@20.1.0': - resolution: {integrity: sha512-oHnnx1QRNmv10l5UME13v5JP3M3GesM9K3QH6TRYo2C7UbbhY7vL5EZ4HGqcvtMMW4FOzqNOSltE++IVL99F3g==} - peerDependencies: - '@angular/common': '>=11.0.2' - '@angular/core': '>=11.0.2' - '@angular/platform-browser': '>=11.0.2' - rxjs: ^6.6.3 || ^7.4.0 - '@tokens-studio/sd-transforms@1.2.2': resolution: {integrity: sha512-T4NmOn6+K/1LUZqLN5wiCR58B0Slih1sjltyU6gNCwBzWlaVrt4iVeACXtY8/PD0Im0EQkY8n44aSLRfOrt/hw==} engines: {node: '>=18.0.0'} @@ -4021,15 +3820,9 @@ packages: '@types/istanbul-reports@3.0.4': resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - '@types/jasmine@4.3.0': - resolution: {integrity: sha512-u1jWakf8CWvLfSEZyxmzkgBzOEvXH/szpT0e6G8BTkx5Eu0BhDn7sbc5dz0JBN/6Wwm9rBe+JAsk9tJRyH9ZkA==} - '@types/jasmine@5.1.4': resolution: {integrity: sha512-px7OMFO/ncXxixDe1zR13V1iycqWae0MxTaw62RpFlksUi5QuNWgQJFkTQjIOvrmutJbI7Fp2Y2N1F6D2R4G6w==} - '@types/jasminewd2@2.0.13': - resolution: {integrity: sha512-aJ3wj8tXMpBrzQ5ghIaqMisD8C3FIrcO6sDKHqFbuqAsI7yOxj0fA7MrRCPLZHIVUjERIwsMmGn/vB0UQ9u0Hg==} - '@types/jest@29.5.12': resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} @@ -4081,9 +3874,6 @@ packages: '@types/node@18.19.28': resolution: {integrity: sha512-J5cOGD9n4x3YGgVuaND6khm5x07MMdAKkRyXnjVR6KFhLMNh2yONGiP7Z+4+tBOt5mK+GvDTiacTOVGGpqiecw==} - '@types/node@20.12.7': - resolution: {integrity: sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==} - '@types/node@20.14.14': resolution: {integrity: sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ==} @@ -5133,10 +4923,6 @@ packages: colorjs.io@0.4.5: resolution: {integrity: sha512-yCtUNCmge7llyfd/Wou19PMAcf5yC3XXhgFoAh6zsO2pGswhUPBaaUh8jzgHnXtXuZyFKzXZNAnyF5i+apICow==} - colors@1.4.0: - resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} - engines: {node: '>=0.1.90'} - combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -5252,9 +5038,6 @@ packages: core-js-compat@3.37.1: resolution: {integrity: sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg==} - core-js@3.37.1: - resolution: {integrity: sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw==} - core-util-is@1.0.2: resolution: {integrity: sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==} @@ -6681,10 +6464,6 @@ packages: highlight.js@10.7.3: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} - highlight.js@11.10.0: - resolution: {integrity: sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==} - engines: {node: '>=12.0.0'} - homedir-polyfill@1.0.3: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} @@ -7231,10 +7010,6 @@ packages: isstream@0.1.2: resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==} - istanbul-lib-coverage@2.0.5: - resolution: {integrity: sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==} - engines: {node: '>=6'} - istanbul-lib-coverage@3.2.0: resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} engines: {node: '>=8'} @@ -7263,10 +7038,6 @@ packages: resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} engines: {node: '>=10'} - istanbul-lib-source-maps@3.0.6: - resolution: {integrity: sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==} - engines: {node: '>=6'} - istanbul-lib-source-maps@4.0.1: resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} engines: {node: '>=10'} @@ -7305,14 +7076,6 @@ packages: jasmine-core@5.2.0: resolution: {integrity: sha512-tSAtdrvWybZkQmmaIoDgnvHG8ORUNw5kEVlO5CvrXj02Jjr9TZrmjFq7FUiOUzJiOP2wLGYT6PgrQgQF4R1xiw==} - jasmine-marbles@0.9.2: - resolution: {integrity: sha512-T7RjG4fRsdiGGzbQZ6Kj39qYt6O1/KIcR4FkUNsD3DUGkd/AzpwzN+xtk0DXlLWEz5BaVdK1SzMgQDVw879c4Q==} - peerDependencies: - rxjs: ^7.0.0 - - jasmine-spec-reporter@7.0.0: - resolution: {integrity: sha512-OtC7JRasiTcjsaCBPtMO0Tl8glCejM4J4/dNuOJdA8lBjz4PmWjYQ6pzb0uzpBNAWJMDudYuj9OdXJWqM2QTJg==} - jest-changed-files@29.7.0: resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -7586,9 +7349,6 @@ packages: karma-chrome-launcher@3.2.0: resolution: {integrity: sha512-rE9RkUPI7I9mAxByQWkGJFXfFD6lE4gC5nPuZdobf/QdTEJI6EU4yIay/cfU/xV4ZxlM5JiTv7zWYgA64NpS5Q==} - karma-coverage-istanbul-reporter@3.0.3: - resolution: {integrity: sha512-wE4VFhG/QZv2Y4CdAYWDbMmcAHeS926ZIji4z+FkB2aF/EposRb6DP6G5ncT/wXhqUfAb/d7kZrNKPonbvsATw==} - karma-coverage@2.2.1: resolution: {integrity: sha512-yj7hbequkQP2qOSb20GuNSIyE//PgJWHwC2IydLE6XRtsnaflv+/OSGNssPjobYUlhVVagy99TQpqUt3vAUG7A==} engines: {node: '>=10.0.0'} @@ -8275,20 +8035,6 @@ packages: tailwindcss: optional: true - ngx-highlightjs@10.0.0: - resolution: {integrity: sha512-F5VXB6vnpiTPMADUoCEkyc2wnqpKUNvfeAP4tO//NrwdQP2sQK6MfPg+jHL2adoJE5LIchsJlpq6C0r+KmlOSA==} - peerDependencies: - '@angular/common': '>=16.0.0' - '@angular/core': '>=16.0.0' - rxjs: '>=7.0.0' - - ngx-toastr@19.0.0: - resolution: {integrity: sha512-6pTnktwwWD+kx342wuMOWB4+bkyX9221pAgGz3SHOJH0/MI9erLucS8PeeJDFwbUYyh75nQ6AzVtolgHxi52dQ==} - peerDependencies: - '@angular/common': '>=16.0.0-0' - '@angular/core': '>=16.0.0-0' - '@angular/platform-browser': '>=16.0.0-0' - nice-napi@1.0.2: resolution: {integrity: sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==} os: ['!win32'] @@ -9327,12 +9073,6 @@ packages: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} - raw-loader@4.0.2: - resolution: {integrity: sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==} - engines: {node: '>= 10.13.0'} - peerDependencies: - webpack: ^4.0.0 || ^5.0.0 - react-colorful@5.6.1: resolution: {integrity: sha512-1exovf0uGTGyq5mXQT0zgQ80uvj2PCwvF8zY1RN9/vbJVSjSo3fsB/4L3ObbF7u70NduSiK4xu4Y6q1MHoUGEw==} peerDependencies: @@ -9697,10 +9437,6 @@ packages: scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} - schema-utils@3.1.2: - resolution: {integrity: sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==} - engines: {node: '>= 10.13.0'} - schema-utils@3.3.0: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} @@ -10567,9 +10303,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@6.19.5: - resolution: {integrity: sha512-VQUzGd+K73uDi/pTqzDBbxZneciOuMRjF0r/Lep2zr/GOnU+cUvfgRu4T5k4TWJfpGdSK5nrzVDoQVoEIAFbmg==} - undici@6.19.2: resolution: {integrity: sha512-JfjKqIauur3Q6biAtHJ564e3bWa8VvT+7cSiOJHFbX4Erv6CLGDpg8z+Fmg/1OI/47RA+GI2QZaF48SSaLvyBA==} engines: {node: '>=18.17'} @@ -11194,99 +10927,6 @@ snapshots: transitivePeerDependencies: - chokidar - '@angular-devkit/build-angular@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.12.7)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(typescript@5.5.4)': - dependencies: - '@ampproject/remapping': 2.3.0 - '@angular-devkit/architect': 0.1801.3(chokidar@3.6.0) - '@angular-devkit/build-webpack': 0.1801.3(chokidar@3.6.0)(webpack-dev-server@5.0.4(webpack@5.92.1(esbuild@0.21.5)))(webpack@5.92.1(esbuild@0.21.5)) - '@angular-devkit/core': 18.1.3(chokidar@3.6.0) - '@angular/build': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.12.7)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(terser@5.29.2)(typescript@5.5.4) - '@angular/compiler-cli': 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) - '@babel/core': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/plugin-transform-async-generator-functions': 7.24.7(@babel/core@7.24.7) - '@babel/plugin-transform-async-to-generator': 7.24.7(@babel/core@7.24.7) - '@babel/plugin-transform-runtime': 7.24.7(@babel/core@7.24.7) - '@babel/preset-env': 7.24.7(@babel/core@7.24.7) - '@babel/runtime': 7.24.7 - '@discoveryjs/json-ext': 0.5.7 - '@ngtools/webpack': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(typescript@5.5.4)(webpack@5.92.1(esbuild@0.21.5)) - '@vitejs/plugin-basic-ssl': 1.1.0(vite@5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2)) - ansi-colors: 4.1.3 - autoprefixer: 10.4.19(postcss@8.4.38) - babel-loader: 9.1.3(@babel/core@7.24.7)(webpack@5.92.1(esbuild@0.21.5)) - browserslist: 4.23.2 - copy-webpack-plugin: 12.0.2(webpack@5.92.1(esbuild@0.21.5)) - critters: 0.0.24 - css-loader: 7.1.2(webpack@5.92.1(esbuild@0.21.5)) - esbuild-wasm: 0.21.5 - fast-glob: 3.3.2 - http-proxy-middleware: 3.0.0 - https-proxy-agent: 7.0.5 - istanbul-lib-instrument: 6.0.2 - jsonc-parser: 3.3.1 - karma-source-map-support: 1.4.0 - less: 4.2.0 - less-loader: 12.2.0(less@4.2.0)(webpack@5.92.1(esbuild@0.21.5)) - license-webpack-plugin: 4.0.2(webpack@5.92.1(esbuild@0.21.5)) - loader-utils: 3.3.1 - magic-string: 0.30.10 - mini-css-extract-plugin: 2.9.0(webpack@5.92.1(esbuild@0.21.5)) - mrmime: 2.0.0 - open: 10.1.0 - ora: 5.4.1 - parse5-html-rewriting-stream: 7.0.0 - picomatch: 4.0.2 - piscina: 4.6.1 - postcss: 8.4.38 - postcss-loader: 8.1.1(postcss@8.4.38)(typescript@5.5.4)(webpack@5.92.1(esbuild@0.21.5)) - resolve-url-loader: 5.0.0 - rxjs: 7.8.1 - sass: 1.77.6 - sass-loader: 14.2.1(sass@1.77.6)(webpack@5.92.1(esbuild@0.21.5)) - semver: 7.6.2 - source-map-loader: 5.0.0(webpack@5.92.1(esbuild@0.21.5)) - source-map-support: 0.5.21 - terser: 5.29.2 - tree-kill: 1.2.2 - tslib: 2.6.3 - typescript: 5.5.4 - undici: 6.19.2 - vite: 5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2) - watchpack: 2.4.1 - webpack: 5.92.1(esbuild@0.21.5) - webpack-dev-middleware: 7.2.1(webpack@5.92.1(esbuild@0.21.5)) - webpack-dev-server: 5.0.4(webpack@5.92.1(esbuild@0.21.5)) - webpack-merge: 5.10.0 - webpack-subresource-integrity: 5.1.0(webpack@5.92.1(esbuild@0.21.5)) - optionalDependencies: - '@angular/localize': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) - esbuild: 0.21.5 - jest: 29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - jest-environment-jsdom: 29.7.0 - karma: 6.4.4 - ng-packagr: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4) - tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - transitivePeerDependencies: - - '@rspack/core' - - '@swc/core' - - '@types/node' - - bufferutil - - chokidar - - debug - - html-webpack-plugin - - lightningcss - - node-sass - - sass-embedded - - stylus - - sugarss - - supports-color - - uglify-js - - utf-8-validate - - webpack-cli - '@angular-devkit/build-angular@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7)(typescript@5.5.4)': dependencies: '@ampproject/remapping': 2.3.0 @@ -11357,7 +10997,7 @@ snapshots: optionalDependencies: '@angular/localize': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) esbuild: 0.21.5 - jest: 29.7.0(@types/node@20.14.14) + jest: 29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) jest-environment-jsdom: 29.7.0 karma: 6.4.4 ng-packagr: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4) @@ -11492,51 +11132,6 @@ snapshots: tslib: 2.6.3 optional: true - '@angular/build@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.12.7)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(terser@5.29.2)(typescript@5.5.4)': - dependencies: - '@ampproject/remapping': 2.3.0 - '@angular-devkit/architect': 0.1801.3(chokidar@3.6.0) - '@angular/compiler-cli': 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) - '@babel/core': 7.24.7 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/plugin-syntax-import-attributes': 7.24.7(@babel/core@7.24.7) - '@inquirer/confirm': 3.1.11 - '@vitejs/plugin-basic-ssl': 1.1.0(vite@5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2)) - ansi-colors: 4.1.3 - browserslist: 4.23.2 - critters: 0.0.24 - esbuild: 0.21.5 - fast-glob: 3.3.2 - https-proxy-agent: 7.0.5 - lmdb: 3.0.12 - magic-string: 0.30.10 - mrmime: 2.0.0 - ora: 5.4.1 - parse5-html-rewriting-stream: 7.0.0 - picomatch: 4.0.2 - piscina: 4.6.1 - rollup: 4.18.0 - sass: 1.77.6 - semver: 7.6.2 - typescript: 5.5.4 - undici: 6.19.2 - vite: 5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2) - watchpack: 2.4.1 - optionalDependencies: - '@angular/localize': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) - less: 4.2.0 - postcss: 8.4.38 - tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - transitivePeerDependencies: - - '@types/node' - - chokidar - - lightningcss - - stylus - - sugarss - - supports-color - - terser - '@angular/build@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7)(terser@5.29.2)(typescript@5.5.4)': dependencies: '@ampproject/remapping': 2.3.0 @@ -11582,15 +11177,6 @@ snapshots: - supports-color - terser - '@angular/cdk@18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1)': - dependencies: - '@angular/common': 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/core': 18.1.3(rxjs@7.8.1)(zone.js@0.14.8) - rxjs: 7.8.1 - tslib: 2.6.3 - optionalDependencies: - parse5: 7.1.2 - '@angular/cli@18.1.3(chokidar@3.6.0)': dependencies: '@angular-devkit/architect': 0.1801.3(chokidar@3.6.0) @@ -11699,12 +11285,6 @@ snapshots: tslib: 2.7.0 zone.js: 0.14.8 - '@angular/elements@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1)': - dependencies: - '@angular/core': 18.1.3(rxjs@7.8.1)(zone.js@0.14.8) - rxjs: 7.8.1 - tslib: 2.6.3 - '@angular/forms@18.1.3(@angular/common@18.1.1(@angular/core@18.1.1(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.1(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.1(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.1(@angular/core@18.1.1(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.1(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1)': dependencies: '@angular/common': 18.1.1(@angular/core@18.1.1(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) @@ -11729,8 +11309,6 @@ snapshots: rxjs: 7.8.1 tslib: 2.6.3 - '@angular/language-service@18.1.3': {} - '@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))': dependencies: '@angular/compiler': 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)) @@ -14014,42 +13592,6 @@ snapshots: jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4))': - dependencies: - '@jest/console': 29.7.0 - '@jest/reporters': 29.7.0 - '@jest/test-result': 29.7.0 - '@jest/transform': 29.7.0 - '@jest/types': 29.6.3 - '@types/node': 20.14.14 - ansi-escapes: 4.3.2 - chalk: 4.1.2 - ci-info: 3.9.0 - exit: 0.1.2 - graceful-fs: 4.2.11 - jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - jest-haste-map: 29.7.0 - jest-message-util: 29.7.0 - jest-regex-util: 29.6.3 - jest-resolve: 29.7.0 - jest-resolve-dependencies: 29.7.0 - jest-runner: 29.7.0 - jest-runtime: 29.7.0 - jest-snapshot: 29.7.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - jest-watcher: 29.7.0 - micromatch: 4.0.8 - pretty-format: 29.7.0 - slash: 3.0.0 - strip-ansi: 6.0.1 - transitivePeerDependencies: - - babel-plugin-macros - - supports-color - - ts-node - optional: true - '@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4))': dependencies: '@jest/console': 29.7.0 @@ -15227,14 +14769,6 @@ snapshots: '@swc/counter': 0.1.3 tslib: 2.6.3 - '@swimlane/ngx-datatable@20.1.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1)': - dependencies: - '@angular/common': 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/core': 18.1.3(rxjs@7.8.1)(zone.js@0.14.8) - '@angular/platform-browser': 18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)) - rxjs: 7.8.1 - tslib: 2.6.3 - '@tokens-studio/sd-transforms@1.2.2(style-dictionary@4.0.1)': dependencies: '@bundled-es-modules/deepmerge': 4.3.1 @@ -15409,14 +14943,8 @@ snapshots: dependencies: '@types/istanbul-lib-report': 3.0.3 - '@types/jasmine@4.3.0': {} - '@types/jasmine@5.1.4': {} - '@types/jasminewd2@2.0.13': - dependencies: - '@types/jasmine': 4.3.0 - '@types/jest@29.5.12': dependencies: expect: 29.7.0 @@ -15475,10 +15003,6 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@20.12.7': - dependencies: - undici-types: 5.26.5 - '@types/node@20.14.14': dependencies: undici-types: 5.26.5 @@ -15797,10 +15321,6 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-basic-ssl@1.1.0(vite@5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2))': - dependencies: - vite: 5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2) - '@vitejs/plugin-basic-ssl@1.1.0(vite@5.3.2(@types/node@20.14.14)(less@4.2.0)(sass@1.77.6)(terser@5.29.2))': dependencies: vite: 5.3.2(@types/node@20.14.14)(less@4.2.0)(sass@1.77.6)(terser@5.29.2) @@ -16788,8 +16308,6 @@ snapshots: colorjs.io@0.4.5: {} - colors@1.4.0: {} - combined-stream@1.0.8: dependencies: delayed-stream: 1.0.0 @@ -16905,8 +16423,6 @@ snapshots: dependencies: browserslist: 4.23.2 - core-js@3.37.1: {} - core-util-is@1.0.2: {} core-util-is@1.0.3: {} @@ -16934,22 +16450,6 @@ snapshots: optionalDependencies: typescript: 5.5.4 - create-jest@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - '@jest/types': 29.6.3 - chalk: 4.1.2 - exit: 0.1.2 - graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - jest-util: 29.7.0 - prompts: 2.4.2 - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - optional: true - create-jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)): dependencies: '@jest/types': 29.6.3 @@ -18835,8 +18335,6 @@ snapshots: highlight.js@10.7.3: {} - highlight.js@11.10.0: {} - homedir-polyfill@1.0.3: dependencies: parse-passwd: 1.0.0 @@ -19353,8 +18851,6 @@ snapshots: isstream@0.1.2: {} - istanbul-lib-coverage@2.0.5: {} - istanbul-lib-coverage@3.2.0: {} istanbul-lib-coverage@3.2.2: {} @@ -19401,16 +18897,6 @@ snapshots: make-dir: 4.0.0 supports-color: 7.2.0 - istanbul-lib-source-maps@3.0.6: - dependencies: - debug: 4.3.7(supports-color@8.1.1) - istanbul-lib-coverage: 2.0.5 - make-dir: 2.1.0 - rimraf: 2.7.1 - source-map: 0.6.1 - transitivePeerDependencies: - - supports-color - istanbul-lib-source-maps@4.0.1: dependencies: debug: 4.3.7(supports-color@8.1.1) @@ -19466,15 +18952,6 @@ snapshots: jasmine-core@5.2.0: {} - jasmine-marbles@0.9.2(rxjs@7.8.1): - dependencies: - lodash: 4.17.21 - rxjs: 7.8.1 - - jasmine-spec-reporter@7.0.0: - dependencies: - colors: 1.4.0 - jest-changed-files@29.7.0: dependencies: execa: 5.1.1 @@ -19507,26 +18984,6 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - '@jest/test-result': 29.7.0 - '@jest/types': 29.6.3 - chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - exit: 0.1.2 - import-local: 3.2.0 - jest-config: 29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - jest-util: 29.7.0 - jest-validate: 29.7.0 - yargs: 17.7.2 - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - optional: true - jest-cli@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)): dependencies: '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -19546,70 +19003,6 @@ snapshots: - supports-color - ts-node - jest-config@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - '@babel/core': 7.25.2 - '@jest/test-sequencer': 29.7.0 - '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.25.2) - chalk: 4.1.2 - ci-info: 3.9.0 - deepmerge: 4.3.1 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-circus: 29.7.0 - jest-environment-node: 29.7.0 - jest-get-type: 29.6.3 - jest-regex-util: 29.6.3 - jest-resolve: 29.7.0 - jest-runner: 29.7.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - micromatch: 4.0.8 - parse-json: 5.2.0 - pretty-format: 29.7.0 - slash: 3.0.0 - strip-json-comments: 3.1.1 - optionalDependencies: - '@types/node': 20.12.7 - ts-node: 10.9.2(@types/node@20.12.7)(typescript@5.5.4) - transitivePeerDependencies: - - babel-plugin-macros - - supports-color - optional: true - - jest-config@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - '@babel/core': 7.25.2 - '@jest/test-sequencer': 29.7.0 - '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.25.2) - chalk: 4.1.2 - ci-info: 3.9.0 - deepmerge: 4.3.1 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-circus: 29.7.0 - jest-environment-node: 29.7.0 - jest-get-type: 29.6.3 - jest-regex-util: 29.6.3 - jest-resolve: 29.7.0 - jest-runner: 29.7.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - micromatch: 4.0.8 - parse-json: 5.2.0 - pretty-format: 29.7.0 - slash: 3.0.0 - strip-json-comments: 3.1.1 - optionalDependencies: - '@types/node': 20.14.14 - ts-node: 10.9.2(@types/node@20.12.7)(typescript@5.5.4) - transitivePeerDependencies: - - babel-plugin-macros - - supports-color - optional: true - jest-config@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)): dependencies: '@babel/core': 7.25.2 @@ -19877,31 +19270,6 @@ snapshots: merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - '@jest/types': 29.6.3 - import-local: 3.2.0 - jest-cli: 29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - optional: true - - jest@29.7.0(@types/node@20.14.14): - dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) - '@jest/types': 29.6.3 - import-local: 3.2.0 - jest-cli: 29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)): dependencies: '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -20098,16 +19466,6 @@ snapshots: dependencies: which: 1.3.1 - karma-coverage-istanbul-reporter@3.0.3: - dependencies: - istanbul-lib-coverage: 3.2.0 - istanbul-lib-report: 3.0.0 - istanbul-lib-source-maps: 3.0.6 - istanbul-reports: 3.1.5 - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color - karma-coverage@2.2.1: dependencies: istanbul-lib-coverage: 3.2.0 @@ -21019,40 +20377,6 @@ snapshots: - '@babel/core' - babel-plugin-macros - ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4): - dependencies: - '@angular/compiler-cli': 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) - '@rollup/plugin-json': 6.1.0(rollup@4.18.1) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.18.1) - '@rollup/wasm-node': 4.18.1 - ajv: 8.16.0 - ansi-colors: 4.1.3 - browserslist: 4.23.0 - cacache: 18.0.0 - chokidar: 3.6.0 - commander: 12.0.0 - convert-source-map: 2.0.0 - dependency-graph: 1.0.0 - esbuild: 0.23.0 - fast-glob: 3.3.2 - find-cache-dir: 3.3.2 - injection-js: 2.4.0 - jsonc-parser: 3.3.1 - less: 4.2.0 - ora: 5.4.1 - piscina: 4.6.1 - postcss: 8.4.39 - rxjs: 7.8.1 - sass: 1.78.0 - tslib: 2.6.3 - typescript: 5.5.4 - optionalDependencies: - rollup: 4.18.1 - tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - transitivePeerDependencies: - - supports-color - optional: true - ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4): dependencies: '@angular/compiler-cli': 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) @@ -21086,21 +20410,6 @@ snapshots: transitivePeerDependencies: - supports-color - ngx-highlightjs@10.0.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1): - dependencies: - '@angular/common': 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/core': 18.1.3(rxjs@7.8.1)(zone.js@0.14.8) - highlight.js: 11.10.0 - rxjs: 7.8.1 - tslib: 2.6.3 - - ngx-toastr@19.0.0(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))): - dependencies: - '@angular/common': 18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1) - '@angular/core': 18.1.3(rxjs@7.8.1)(zone.js@0.14.8) - '@angular/platform-browser': 18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)) - tslib: 2.6.3 - nice-napi@1.0.2: dependencies: node-addon-api: 3.2.1 @@ -21801,15 +21110,6 @@ snapshots: postcss: 8.4.45 ts-node: 10.9.2(@types/node@20.14.14)(typescript@5.5.4) - postcss-load-config@4.0.2(postcss@8.4.40)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - lilconfig: 3.1.2 - yaml: 2.5.0 - optionalDependencies: - postcss: 8.4.40 - ts-node: 10.9.2(@types/node@20.12.7)(typescript@5.5.4) - optional: true - postcss-load-config@4.0.2(postcss@8.4.40)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)): dependencies: lilconfig: 3.1.2 @@ -22215,12 +21515,6 @@ snapshots: iconv-lite: 0.4.24 unpipe: 1.0.0 - raw-loader@4.0.2(webpack@5.94.0): - dependencies: - loader-utils: 2.0.4 - schema-utils: 3.1.2 - webpack: 5.94.0 - react-colorful@5.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: react: 18.3.1 @@ -22693,12 +21987,6 @@ snapshots: dependencies: loose-envify: 1.4.0 - schema-utils@3.1.2: - dependencies: - '@types/json-schema': 7.0.15 - ajv: 6.12.6 - ajv-keywords: 3.5.2(ajv@6.12.6) - schema-utils@3.3.0: dependencies: '@types/json-schema': 7.0.15 @@ -23491,34 +22779,6 @@ snapshots: string-width: 4.2.3 strip-ansi: 6.0.1 - tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)): - dependencies: - '@alloc/quick-lru': 5.2.0 - arg: 5.0.2 - chokidar: 3.6.0 - didyoumean: 1.2.2 - dlv: 1.1.3 - fast-glob: 3.3.2 - glob-parent: 6.0.2 - is-glob: 4.0.3 - jiti: 1.21.6 - lilconfig: 2.1.0 - micromatch: 4.0.7 - normalize-path: 3.0.0 - object-hash: 3.0.0 - picocolors: 1.0.1 - postcss: 8.4.40 - postcss-import: 15.1.0(postcss@8.4.40) - postcss-js: 4.0.1(postcss@8.4.40) - postcss-load-config: 4.0.2(postcss@8.4.40)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4)) - postcss-nested: 6.2.0(postcss@8.4.40) - postcss-selector-parser: 6.1.1 - resolve: 1.22.8 - sucrase: 3.35.0 - transitivePeerDependencies: - - ts-node - optional: true - tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)): dependencies: '@alloc/quick-lru': 5.2.0 @@ -23713,31 +22973,12 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.2.4(@babel/core@7.25.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.2))(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4): - dependencies: - bs-logger: 0.2.6 - ejs: 3.1.10 - fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) - jest-util: 29.7.0 - json5: 2.2.3 - lodash.memoize: 4.1.2 - make-error: 1.3.6 - semver: 7.6.2 - typescript: 5.5.4 - yargs-parser: 21.1.1 - optionalDependencies: - '@babel/core': 7.25.2 - '@jest/transform': 29.7.0 - '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.25.2) - ts-jest@29.2.4(@babel/core@7.25.2)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.25.2))(jest@29.7.0(@types/node@20.14.14))(typescript@5.5.4): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@20.14.14) + jest: 29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -23751,24 +22992,6 @@ snapshots: '@jest/types': 29.6.3 babel-jest: 29.7.0(@babel/core@7.25.2) - ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.9 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.12.7 - acorn: 8.9.0 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.5.4 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -23954,8 +23177,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@6.19.5: {} - undici@6.19.2: {} unicode-canonical-property-names-ecmascript@2.0.0: {} @@ -24243,18 +23464,6 @@ snapshots: replace-ext: 2.0.0 teex: 1.0.1 - vite@5.3.2(@types/node@20.12.7)(less@4.2.0)(sass@1.77.6)(terser@5.29.2): - dependencies: - esbuild: 0.21.5 - postcss: 8.4.40 - rollup: 4.18.1 - optionalDependencies: - '@types/node': 20.12.7 - fsevents: 2.3.3 - less: 4.2.0 - sass: 1.77.6 - terser: 5.29.2 - vite@5.3.2(@types/node@20.14.14)(less@4.2.0)(sass@1.77.6)(terser@5.29.2): dependencies: esbuild: 0.21.5 @@ -24428,13 +23637,13 @@ snapshots: webpack@5.94.0: dependencies: - '@types/estree': 1.0.5 + '@types/estree': 1.0.6 '@webassemblyjs/ast': 1.12.1 '@webassemblyjs/wasm-edit': 1.12.1 '@webassemblyjs/wasm-parser': 1.12.1 acorn: 8.11.3 acorn-import-attributes: 1.9.5(acorn@8.11.3) - browserslist: 4.23.2 + browserslist: 4.23.3 chrome-trace-event: 1.0.3 enhanced-resolve: 5.17.1 es-module-lexer: 1.5.3