From 3befaf5e41998e5dd400cce5e37897a8ab770b41 Mon Sep 17 00:00:00 2001 From: lskramarov Date: Wed, 17 Jun 2026 18:20:09 +0300 Subject: [PATCH] chore(icon): add icon adoptedStyleSheets @layer demo in dev (#DS-5207) --- angular.json | 37 ++++ package.json | 1 + .../icon-adopted-stylesheets/global.scss | 38 ++++ .../icon-adopted-stylesheets/main.ts | 9 + .../icon-adopted-stylesheets/module.ts | 119 ++++++++++++ .../icon-adopted-stylesheets/styles.scss | 86 ++++++++ .../icon-adopted-stylesheets/template.html | 183 ++++++++++++++++++ .../tsconfig.app.json | 5 + 8 files changed, 478 insertions(+) create mode 100644 packages/components-dev/icon-adopted-stylesheets/global.scss create mode 100644 packages/components-dev/icon-adopted-stylesheets/main.ts create mode 100644 packages/components-dev/icon-adopted-stylesheets/module.ts create mode 100644 packages/components-dev/icon-adopted-stylesheets/styles.scss create mode 100644 packages/components-dev/icon-adopted-stylesheets/template.html create mode 100644 packages/components-dev/icon-adopted-stylesheets/tsconfig.app.json diff --git a/angular.json b/angular.json index 84d5f216ba..6685f4282a 100644 --- a/angular.json +++ b/angular.json @@ -594,6 +594,43 @@ } } }, + "dev-icon-adopted-stylesheets": { + "projectType": "application", + "root": "packages/components-dev/icon-adopted-stylesheets", + "sourceRoot": "packages/components-dev/icon-adopted-stylesheets", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:application", + "options": { + "outputPath": { + "base": "dist/components-dev/icon-adopted-stylesheets" + }, + "tsConfig": "packages/components-dev/icon-adopted-stylesheets/tsconfig.app.json", + "index": "packages/components-dev/index.html", + "styles": ["packages/components-dev/icon-adopted-stylesheets/global.scss"], + "assets": [ + { + "glob": "**/*", + "input": "node_modules/@koobiq/icons/fonts", + "output": "assets/kbq-icons" + } + ], + "polyfills": ["zone.js"], + "extractLicenses": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true, + "browser": "packages/components-dev/icon-adopted-stylesheets/main.ts" + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "dev-icon-adopted-stylesheets:build" + } + } + } + }, "dev-button-toggle": { "projectType": "application", "root": "packages/components-dev/button-toggle", diff --git a/package.json b/package.json index fa04bf8ef8..28a65ed8d3 100644 --- a/package.json +++ b/package.json @@ -222,6 +222,7 @@ "dev:highlight": "ng serve dev-highlight --port 3003", "dev:hint": "ng serve dev-hint --port 3003", "dev:icon": "ng serve dev-icon --port 3003", + "dev:icon-adopted-stylesheets": "ng serve dev-icon-adopted-stylesheets --port 3003", "dev:icon-item": "ng serve dev-icon-item --port 3003", "dev:inline-edit": "ng serve dev-inline-edit --port 3003", "dev:input": "ng serve dev-input --port 3003", diff --git a/packages/components-dev/icon-adopted-stylesheets/global.scss b/packages/components-dev/icon-adopted-stylesheets/global.scss new file mode 100644 index 0000000000..a162d270ec --- /dev/null +++ b/packages/components-dev/icon-adopted-stylesheets/global.scss @@ -0,0 +1,38 @@ +// Copy of packages/components-dev/main.scss WITHOUT the `@use '@koobiq/icons/fonts/kbq-icons'` line. +// The base icon CSS is intentionally NOT loaded as an author