@siemens/ix-icons 1.1.0-beta.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/README.md +8 -7
  2. package/dist/cjs/icon-e8935d69.js +109 -0
  3. package/dist/cjs/icon-e8935d69.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/ix-icon.cjs.entry.js +1 -1
  6. package/dist/collection/components/icon/icon.css +760 -568
  7. package/dist/collection/components/icon/resolveIcon.js +4 -1
  8. package/dist/collection/components/icon/resolveIcon.js.map +1 -1
  9. package/dist/components/icon.js +5 -2
  10. package/dist/components/icon.js.map +1 -1
  11. package/dist/css/ix-icons.css +616 -568
  12. package/dist/esm/icon-e3678129.js +107 -0
  13. package/dist/esm/icon-e3678129.js.map +1 -0
  14. package/dist/esm/index.js +1 -1
  15. package/dist/esm/ix-icon.entry.js +1 -1
  16. package/dist/fonts/ix-icons.eot +0 -0
  17. package/dist/fonts/ix-icons.svg +713 -569
  18. package/dist/fonts/ix-icons.ttf +0 -0
  19. package/dist/fonts/ix-icons.woff +0 -0
  20. package/dist/fonts/ix-icons.woff2 +0 -0
  21. package/dist/ix-icons/index.esm.js +1 -1
  22. package/dist/ix-icons/ix-icons.esm.js +1 -1
  23. package/dist/ix-icons/p-7d9639f8.js +2 -0
  24. package/dist/ix-icons/p-7d9639f8.js.map +1 -0
  25. package/dist/ix-icons/p-a465725f.entry.js +2 -0
  26. package/dist/sample.html +1466 -650
  27. package/dist/sample.json +96 -0
  28. package/dist/svg/arrow-right-down.svg +1 -0
  29. package/dist/svg/backup-filled.svg +1 -0
  30. package/dist/svg/backup.svg +1 -0
  31. package/dist/svg/blazor.svg +1 -0
  32. package/dist/svg/boundary-signals.svg +1 -0
  33. package/dist/svg/car-filled.svg +1 -0
  34. package/dist/svg/car.svg +1 -0
  35. package/dist/svg/chart-diagram-add.svg +1 -0
  36. package/dist/svg/chart-diagram.svg +1 -0
  37. package/dist/svg/chart-diagrams.svg +1 -0
  38. package/dist/svg/check-in.svg +1 -0
  39. package/dist/svg/check-out.svg +1 -0
  40. package/dist/svg/consistency-check.svg +1 -0
  41. package/dist/svg/distribution.svg +1 -0
  42. package/dist/svg/factory-reset-filled.svg +1 -0
  43. package/dist/svg/factory-reset.svg +1 -0
  44. package/dist/svg/goto.svg +1 -9
  45. package/dist/svg/hard-reset.svg +1 -0
  46. package/dist/svg/light-dark.svg +1 -0
  47. package/dist/svg/monitoring-add.svg +1 -0
  48. package/dist/svg/monitoring.svg +1 -0
  49. package/dist/svg/monitorings.svg +1 -0
  50. package/dist/svg/no-image.svg +1 -0
  51. package/dist/svg/photo-camera-add.svg +1 -0
  52. package/dist/svg/photo-cameras.svg +1 -0
  53. package/dist/svg/play-pause-filled.svg +1 -0
  54. package/dist/svg/play-pause.svg +1 -0
  55. package/dist/svg/play-stepwise-filled.svg +1 -0
  56. package/dist/svg/play-stepwise.svg +1 -0
  57. package/dist/svg/project-scenarios.svg +1 -0
  58. package/dist/svg/reboot.svg +1 -0
  59. package/dist/svg/replace.svg +1 -0
  60. package/dist/svg/restore-backup-filled.svg +1 -0
  61. package/dist/svg/restore-backup-pc.svg +1 -0
  62. package/dist/svg/restore-backup.svg +1 -0
  63. package/dist/svg/road-filled.svg +1 -0
  64. package/dist/svg/road.svg +1 -0
  65. package/dist/svg/route-target.svg +1 -0
  66. package/dist/svg/route.svg +1 -0
  67. package/dist/svg/script-add.svg +1 -0
  68. package/dist/svg/script.svg +1 -0
  69. package/dist/svg/scripts.svg +1 -0
  70. package/dist/svg/standby.svg +1 -0
  71. package/dist/svg/steering-user-filled.svg +1 -0
  72. package/dist/svg/steering-user.svg +1 -0
  73. package/dist/svg/steering.svg +1 -0
  74. package/dist/svg/stethoscope.svg +1 -0
  75. package/dist/svg/truck-filled.svg +1 -0
  76. package/dist/svg/truck.svg +1 -0
  77. package/icons/index.d.ts +49 -1
  78. package/icons/index.js +50 -2
  79. package/icons/index.mjs +50 -2
  80. package/icons/package.json +1 -1
  81. package/package.json +1 -1
  82. package/dist/cjs/icon-25b04fc4.js +0 -106
  83. package/dist/cjs/icon-25b04fc4.js.map +0 -1
  84. package/dist/esm/icon-7cefbfaa.js +0 -104
  85. package/dist/esm/icon-7cefbfaa.js.map +0 -1
  86. package/dist/ix-icons/p-e325c6c2.js +0 -2
  87. package/dist/ix-icons/p-e325c6c2.js.map +0 -1
  88. package/dist/ix-icons/p-e40de2d7.entry.js +0 -2
  89. /package/dist/ix-icons/{p-e40de2d7.entry.js.map → p-a465725f.entry.js.map} +0 -0
@@ -0,0 +1,107 @@
1
+ import { r as registerInstance, h, H as Host } from './index-460e19e2.js';
2
+
3
+ /*
4
+ * COPYRIGHT (c) Siemens AG 2018-2023 ALL RIGHTS RESERVED.
5
+ */
6
+ const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');
7
+ let parser = null;
8
+ function parseSVGDataContent(content) {
9
+ if (typeof window['DOMParser'] === 'undefined') {
10
+ console.warn('DOMParser not supported by your browser.');
11
+ return;
12
+ }
13
+ if (parser === null) {
14
+ parser = new window['DOMParser']();
15
+ }
16
+ const svgDocument = parser.parseFromString(content, 'text/html');
17
+ const svgElement = svgDocument.querySelector('svg');
18
+ if (!svgElement) {
19
+ throw Error('No valid svg data provided');
20
+ }
21
+ return svgElement.outerHTML;
22
+ }
23
+ async function fetchSVG(url) {
24
+ const response = await fetch(url);
25
+ const responseText = await response.text();
26
+ if (!response.ok) {
27
+ console.error(responseText);
28
+ return '';
29
+ }
30
+ return parseSVGDataContent(responseText);
31
+ }
32
+ async function resolveIcon(icon) {
33
+ const { src, name } = icon;
34
+ if (name) {
35
+ if (isSvgDataUrl(name)) {
36
+ return parseSVGDataContent(name);
37
+ }
38
+ //Fallback return undefined to render web font icon
39
+ return;
40
+ }
41
+ if (!src) {
42
+ return '';
43
+ }
44
+ if (isSvgDataUrl(src)) {
45
+ return parseSVGDataContent(src);
46
+ }
47
+ return fetchSVG(src);
48
+ }
49
+
50
+ const iconCss = ".glyph{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;font-family:\"ix-icons\";font-size:1.5rem;font-weight:500}.glyph-lg{font-size:1.3333333333em;line-height:0.75em;vertical-align:-15%}.glyph-2x{font-size:2em}.glyph-3x{font-size:3em}.glyph-4x{font-size:4em}.glyph-5x{font-size:5em}.glyph-fw{width:1.2857142857em;text-align:center}.glyph-12{font-size:0.75rem}.glyph-16{font-size:1rem}.glyph-24{font-size:1.5rem}.glyph-32{font-size:2rem}.glyph-about-filled:before{content:\"\\ea01\"}.glyph-about:before{content:\"\\ea02\"}.glyph-add-circle-filled:before{content:\"\\ea03\"}.glyph-add-circle:before{content:\"\\ea04\"}.glyph-add-document-note:before{content:\"\\ea05\"}.glyph-add-eye-filled:before{content:\"\\ea06\"}.glyph-add-eye:before{content:\"\\ea07\"}.glyph-add-task-list:before{content:\"\\ea08\"}.glyph-add-task:before{content:\"\\ea09\"}.glyph-add:before{content:\"\\ea0a\"}.glyph-ai:before{content:\"\\ea0b\"}.glyph-alarm-bell-cancelled-filled:before{content:\"\\ea0c\"}.glyph-alarm-bell-cancelled:before{content:\"\\ea0d\"}.glyph-alarm-bell-filled:before{content:\"\\ea0e\"}.glyph-alarm-bell:before{content:\"\\ea0f\"}.glyph-alarm-clock-filled:before{content:\"\\ea10\"}.glyph-alarm-clock:before{content:\"\\ea11\"}.glyph-alarm-filled:before{content:\"\\ea12\"}.glyph-alarm:before{content:\"\\ea13\"}.glyph-analyze:before{content:\"\\ea14\"}.glyph-anomaly-found:before{content:\"\\ea15\"}.glyph-anomaly:before{content:\"\\ea16\"}.glyph-app-menu:before{content:\"\\ea17\"}.glyph-apps:before{content:\"\\ea18\"}.glyph-arrow-down-right:before{content:\"\\ea19\"}.glyph-arrow-down:before{content:\"\\ea1a\"}.glyph-arrow-left:before{content:\"\\ea1b\"}.glyph-arrow-right-down:before{content:\"\\ea1c\"}.glyph-arrow-right:before{content:\"\\ea1d\"}.glyph-arrow-up:before{content:\"\\ea1e\"}.glyph-attach:before{content:\"\\ea1f\"}.glyph-attachment-upload:before{content:\"\\ea20\"}.glyph-audio-description1:before{content:\"\\ea21\"}.glyph-audio-description2:before{content:\"\\ea22\"}.glyph-audit-report:before{content:\"\\ea23\"}.glyph-average:before{content:\"\\ea24\"}.glyph-backup-filled:before{content:\"\\ea25\"}.glyph-backup:before{content:\"\\ea26\"}.glyph-bar-code:before{content:\"\\ea27\"}.glyph-barchart:before{content:\"\\ea28\"}.glyph-battery-check:before{content:\"\\ea29\"}.glyph-battery-empty-question:before{content:\"\\ea2a\"}.glyph-battery-empty:before{content:\"\\ea2b\"}.glyph-battery-exclamation:before{content:\"\\ea2c\"}.glyph-battery-full-check:before{content:\"\\ea2d\"}.glyph-battery-full:before{content:\"\\ea2e\"}.glyph-battery-half:before{content:\"\\ea2f\"}.glyph-battery-low:before{content:\"\\ea30\"}.glyph-battery-quarter:before{content:\"\\ea31\"}.glyph-battery-slash:before{content:\"\\ea32\"}.glyph-battery-three-quarter:before{content:\"\\ea33\"}.glyph-battery-xmark:before{content:\"\\ea34\"}.glyph-bezier-curve:before{content:\"\\ea35\"}.glyph-binoculars-filled:before{content:\"\\ea36\"}.glyph-binoculars:before{content:\"\\ea37\"}.glyph-blazor:before{content:\"\\ea38\"}.glyph-book:before{content:\"\\ea39\"}.glyph-bookmark-filled:before{content:\"\\ea3a\"}.glyph-bookmark:before{content:\"\\ea3b\"}.glyph-boundary-signals:before{content:\"\\ea3c\"}.glyph-building1-filled:before{content:\"\\ea3d\"}.glyph-building1:before{content:\"\\ea3e\"}.glyph-building2-filled:before{content:\"\\ea3f\"}.glyph-building2:before{content:\"\\ea40\"}.glyph-bulb-filled:before{content:\"\\ea41\"}.glyph-bulb:before{content:\"\\ea42\"}.glyph-calendar-filled:before{content:\"\\ea43\"}.glyph-calendar-settings:before{content:\"\\ea44\"}.glyph-calendar:before{content:\"\\ea45\"}.glyph-cancel:before{content:\"\\ea46\"}.glyph-cancelled:before{content:\"\\ea47\"}.glyph-capacity-filled:before{content:\"\\ea48\"}.glyph-capacity:before{content:\"\\ea49\"}.glyph-capture:before{content:\"\\ea4a\"}.glyph-car-filled:before{content:\"\\ea4b\"}.glyph-car:before{content:\"\\ea4c\"}.glyph-card-layout-filled:before{content:\"\\ea4d\"}.glyph-card-layout:before{content:\"\\ea4e\"}.glyph-chart-cursor:before{content:\"\\ea4f\"}.glyph-chart-curve-linear:before{content:\"\\ea50\"}.glyph-chart-curve-spline:before{content:\"\\ea51\"}.glyph-chart-curve-stepped:before{content:\"\\ea52\"}.glyph-chart-diagram-add:before{content:\"\\ea53\"}.glyph-chart-diagram:before{content:\"\\ea54\"}.glyph-chart-diagrams:before{content:\"\\ea55\"}.glyph-chart-labels-filled:before{content:\"\\ea56\"}.glyph-chart-labels:before{content:\"\\ea57\"}.glyph-check-in:before{content:\"\\ea58\"}.glyph-check-out:before{content:\"\\ea59\"}.glyph-checkbox-component-checked:before{content:\"\\ea5a\"}.glyph-checkbox-component-mixed:before{content:\"\\ea5b\"}.glyph-checkbox-component-unchecked:before{content:\"\\ea5c\"}.glyph-checkbox-filled:before{content:\"\\ea5d\"}.glyph-checkbox:before{content:\"\\ea5e\"}.glyph-checkboxes-filled:before{content:\"\\ea5f\"}.glyph-checkboxes:before{content:\"\\ea60\"}.glyph-chevron-down-small:before{content:\"\\ea61\"}.glyph-chevron-down:before{content:\"\\ea62\"}.glyph-chevron-left-small:before{content:\"\\ea63\"}.glyph-chevron-left:before{content:\"\\ea64\"}.glyph-chevron-right-small:before{content:\"\\ea65\"}.glyph-chevron-right:before{content:\"\\ea66\"}.glyph-chevron-up-small:before{content:\"\\ea67\"}.glyph-chevron-up:before{content:\"\\ea68\"}.glyph-circle-dot-filled:before{content:\"\\ea69\"}.glyph-circle-dot:before{content:\"\\ea6a\"}.glyph-circle-filled:before{content:\"\\ea6b\"}.glyph-circle-pause-filled:before{content:\"\\ea6c\"}.glyph-circle-pause:before{content:\"\\ea6d\"}.glyph-circle-play-filled:before{content:\"\\ea6e\"}.glyph-circle-play:before{content:\"\\ea6f\"}.glyph-circle-stop-filled:before{content:\"\\ea70\"}.glyph-circle-stop:before{content:\"\\ea71\"}.glyph-circle:before{content:\"\\ea72\"}.glyph-clear-filter-filled:before{content:\"\\ea73\"}.glyph-clear-filter:before{content:\"\\ea74\"}.glyph-clear:before{content:\"\\ea75\"}.glyph-clock-filled:before{content:\"\\ea76\"}.glyph-clock:before{content:\"\\ea77\"}.glyph-close-small:before{content:\"\\ea78\"}.glyph-close:before{content:\"\\ea79\"}.glyph-cloud-download-add-filled:before{content:\"\\ea7a\"}.glyph-cloud-download-add:before{content:\"\\ea7b\"}.glyph-cloud-download-filled:before{content:\"\\ea7c\"}.glyph-cloud-download-list-filled:before{content:\"\\ea7d\"}.glyph-cloud-download-list:before{content:\"\\ea7e\"}.glyph-cloud-download:before{content:\"\\ea7f\"}.glyph-cloud-filled:before{content:\"\\ea80\"}.glyph-cloud-new-filled:before{content:\"\\ea81\"}.glyph-cloud-new:before{content:\"\\ea82\"}.glyph-cloud-success-filled:before{content:\"\\ea83\"}.glyph-cloud-success:before{content:\"\\ea84\"}.glyph-cloud-upload-filled:before{content:\"\\ea85\"}.glyph-cloud-upload:before{content:\"\\ea86\"}.glyph-cloud:before{content:\"\\ea87\"}.glyph-code:before{content:\"\\ea88\"}.glyph-cogwheel-filled:before{content:\"\\ea89\"}.glyph-cogwheel:before{content:\"\\ea8a\"}.glyph-combine:before{content:\"\\ea8b\"}.glyph-compact-disc-filled:before{content:\"\\ea8c\"}.glyph-compact-disc:before{content:\"\\ea8d\"}.glyph-compound-block:before{content:\"\\ea8e\"}.glyph-configuration:before{content:\"\\ea8f\"}.glyph-configure-filled:before{content:\"\\ea90\"}.glyph-configure:before{content:\"\\ea91\"}.glyph-connected:before{content:\"\\ea92\"}.glyph-connector-chart-filled:before{content:\"\\ea93\"}.glyph-connector-chart:before{content:\"\\ea94\"}.glyph-connector-filled:before{content:\"\\ea95\"}.glyph-connector-hex-filled:before{content:\"\\ea96\"}.glyph-connector-hex:before{content:\"\\ea97\"}.glyph-connector-rect-filled:before{content:\"\\ea98\"}.glyph-connector-rect:before{content:\"\\ea99\"}.glyph-connector-rhomb-filled:before{content:\"\\ea9a\"}.glyph-connector-rhomb:before{content:\"\\ea9b\"}.glyph-connector:before{content:\"\\ea9c\"}.glyph-consistency-check:before{content:\"\\ea9d\"}.glyph-contact-details-filled:before{content:\"\\ea9e\"}.glyph-contact-details:before{content:\"\\ea9f\"}.glyph-context-menu:before{content:\"\\eaa0\"}.glyph-controlled-device:before{content:\"\\eaa1\"}.glyph-controller-device:before{content:\"\\eaa2\"}.glyph-copy:before{content:\"\\eaa3\"}.glyph-corner-arrow-up-left:before{content:\"\\eaa4\"}.glyph-couch-filled:before{content:\"\\eaa5\"}.glyph-couch:before{content:\"\\eaa6\"}.glyph-create-plant-filled:before{content:\"\\eaa7\"}.glyph-create-plant:before{content:\"\\eaa8\"}.glyph-cut:before{content:\"\\eaa9\"}.glyph-cycle:before{content:\"\\eaaa\"}.glyph-data-egress:before{content:\"\\eaab\"}.glyph-data-ingress-egress:before{content:\"\\eaac\"}.glyph-data-ingress:before{content:\"\\eaad\"}.glyph-database-filled:before{content:\"\\eaae\"}.glyph-database:before{content:\"\\eaaf\"}.glyph-details:before{content:\"\\eab0\"}.glyph-diagram-module-library:before{content:\"\\eab1\"}.glyph-diagram-module-new:before{content:\"\\eab2\"}.glyph-diagram-module:before{content:\"\\eab3\"}.glyph-diamond:before{content:\"\\eab4\"}.glyph-disconnected:before{content:\"\\eab5\"}.glyph-disk-filled:before{content:\"\\eab6\"}.glyph-disk-pen:before{content:\"\\eab7\"}.glyph-disk:before{content:\"\\eab8\"}.glyph-distribution:before{content:\"\\eab9\"}.glyph-doc-document:before{content:\"\\eaba\"}.glyph-document-bulk:before{content:\"\\eabb\"}.glyph-document-info:before{content:\"\\eabc\"}.glyph-document-link:before{content:\"\\eabd\"}.glyph-document-management:before{content:\"\\eabe\"}.glyph-document-reference:before{content:\"\\eabf\"}.glyph-document-settings:before{content:\"\\eac0\"}.glyph-document-success:before{content:\"\\eac1\"}.glyph-document:before{content:\"\\eac2\"}.glyph-double-check:before{content:\"\\eac3\"}.glyph-double-chevron-down:before{content:\"\\eac4\"}.glyph-double-chevron-left:before{content:\"\\eac5\"}.glyph-double-chevron-right:before{content:\"\\eac6\"}.glyph-double-chevron-up:before{content:\"\\eac7\"}.glyph-doublet-filled:before{content:\"\\eac8\"}.glyph-doublet:before{content:\"\\eac9\"}.glyph-download-add:before{content:\"\\eaca\"}.glyph-download-list:before{content:\"\\eacb\"}.glyph-download:before{content:\"\\eacc\"}.glyph-drop:before{content:\"\\eacd\"}.glyph-duplicate-document:before{content:\"\\eace\"}.glyph-duplicate:before{content:\"\\eacf\"}.glyph-e-mail-filled:before{content:\"\\ead0\"}.glyph-e-mail:before{content:\"\\ead1\"}.glyph-earth-filled:before{content:\"\\ead2\"}.glyph-earth:before{content:\"\\ead3\"}.glyph-edit-plant:before{content:\"\\ead4\"}.glyph-ellipse-arc:before{content:\"\\ead5\"}.glyph-ellipse-filled:before{content:\"\\ead6\"}.glyph-ellipse:before{content:\"\\ead7\"}.glyph-error-filled:before{content:\"\\ead8\"}.glyph-error:before{content:\"\\ead9\"}.glyph-explore-filled:before{content:\"\\eada\"}.glyph-explore:before{content:\"\\eadb\"}.glyph-export:before{content:\"\\eadc\"}.glyph-eye-cancelled-filled:before{content:\"\\eadd\"}.glyph-eye-cancelled:before{content:\"\\eade\"}.glyph-eye-filled:before{content:\"\\eadf\"}.glyph-eye:before{content:\"\\eae0\"}.glyph-factory-reset-filled:before{content:\"\\eae1\"}.glyph-factory-reset:before{content:\"\\eae2\"}.glyph-filter-filled:before{content:\"\\eae3\"}.glyph-filter-outline:before{content:\"\\eae4\"}.glyph-filter:before{content:\"\\eae5\"}.glyph-flag-filled:before{content:\"\\eae6\"}.glyph-flag:before{content:\"\\eae7\"}.glyph-folder-down-filled:before{content:\"\\eae8\"}.glyph-folder-down:before{content:\"\\eae9\"}.glyph-folder-filled:before{content:\"\\eaea\"}.glyph-folder-new-filled:before{content:\"\\eaeb\"}.glyph-folder-new-outline:before{content:\"\\eaec\"}.glyph-folder-new:before{content:\"\\eaed\"}.glyph-folder-open-filled:before{content:\"\\eaee\"}.glyph-folder-open-outline:before{content:\"\\eaef\"}.glyph-folder-open:before{content:\"\\eaf0\"}.glyph-folder-outline:before{content:\"\\eaf1\"}.glyph-folder-up-filled:before{content:\"\\eaf2\"}.glyph-folder-up:before{content:\"\\eaf3\"}.glyph-folder:before{content:\"\\eaf4\"}.glyph-full-screeen-exit:before{content:\"\\eaf5\"}.glyph-full-screeen:before{content:\"\\eaf6\"}.glyph-function-block-library:before{content:\"\\eaf7\"}.glyph-function-block-new:before{content:\"\\eaf8\"}.glyph-function-block:before{content:\"\\eaf9\"}.glyph-function-diagram-new:before{content:\"\\eafa\"}.glyph-function-diagram:before{content:\"\\eafb\"}.glyph-gauge-filled:before{content:\"\\eafc\"}.glyph-gauge:before{content:\"\\eafd\"}.glyph-gaugechart:before{content:\"\\eafe\"}.glyph-global-plant-filled:before{content:\"\\eaff\"}.glyph-global-plant:before{content:\"\\eb00\"}.glyph-globe-filled:before{content:\"\\eb01\"}.glyph-globe:before{content:\"\\eb02\"}.glyph-goto:before{content:\"\\eb03\"}.glyph-group:before{content:\"\\eb04\"}.glyph-hard-reset:before{content:\"\\eb05\"}.glyph-hardware-cabinet:before{content:\"\\eb06\"}.glyph-health-filled:before{content:\"\\eb07\"}.glyph-health:before{content:\"\\eb08\"}.glyph-heart-filled:before{content:\"\\eb09\"}.glyph-heart:before{content:\"\\eb0a\"}.glyph-hexagon-vertical-bars-database-filled:before{content:\"\\eb0b\"}.glyph-hexagon-vertical-bars-database:before{content:\"\\eb0c\"}.glyph-hexagon-vertical-bars-filled:before{content:\"\\eb0d\"}.glyph-hexagon-vertical-bars:before{content:\"\\eb0e\"}.glyph-hierarchy:before{content:\"\\eb0f\"}.glyph-highlight-filled:before{content:\"\\eb10\"}.glyph-highlight:before{content:\"\\eb11\"}.glyph-history-list:before{content:\"\\eb12\"}.glyph-history:before{content:\"\\eb13\"}.glyph-home-filled:before{content:\"\\eb14\"}.glyph-home:before{content:\"\\eb15\"}.glyph-hourglass:before{content:\"\\eb16\"}.glyph-image-filled:before{content:\"\\eb17\"}.glyph-image:before{content:\"\\eb18\"}.glyph-import:before{content:\"\\eb19\"}.glyph-info-feed:before{content:\"\\eb1a\"}.glyph-info-filled:before{content:\"\\eb1b\"}.glyph-info:before{content:\"\\eb1c\"}.glyph-ingestion-report:before{content:\"\\eb1d\"}.glyph-ingestion:before{content:\"\\eb1e\"}.glyph-ink-pen:before{content:\"\\eb1f\"}.glyph-inquiry-filled:before{content:\"\\eb20\"}.glyph-inquiry-mail:before{content:\"\\eb21\"}.glyph-inquiry:before{content:\"\\eb22\"}.glyph-item-details-filled:before{content:\"\\eb23\"}.glyph-item-details:before{content:\"\\eb24\"}.glyph-label-filled:before{content:\"\\eb25\"}.glyph-label:before{content:\"\\eb26\"}.glyph-language-filled:before{content:\"\\eb27\"}.glyph-language:before{content:\"\\eb28\"}.glyph-layers-filled:before{content:\"\\eb29\"}.glyph-layers:before{content:\"\\eb2a\"}.glyph-leaf:before{content:\"\\eb2b\"}.glyph-legal:before{content:\"\\eb2c\"}.glyph-library-new:before{content:\"\\eb2d\"}.glyph-library:before{content:\"\\eb2e\"}.glyph-license:before{content:\"\\eb2f\"}.glyph-light-dark:before{content:\"\\eb30\"}.glyph-line-diagonal:before{content:\"\\eb31\"}.glyph-link:before{content:\"\\eb32\"}.glyph-list:before{content:\"\\eb33\"}.glyph-live-schedule:before{content:\"\\eb34\"}.glyph-location-filled:before{content:\"\\eb35\"}.glyph-location-outline:before{content:\"\\eb36\"}.glyph-location:before{content:\"\\eb37\"}.glyph-lock-filled:before{content:\"\\eb38\"}.glyph-lock-key-filled:before{content:\"\\eb39\"}.glyph-lock-key:before{content:\"\\eb3a\"}.glyph-lock:before{content:\"\\eb3b\"}.glyph-log-in:before{content:\"\\eb3c\"}.glyph-log-out:before{content:\"\\eb3d\"}.glyph-log:before{content:\"\\eb3e\"}.glyph-logic-diagram:before{content:\"\\eb3f\"}.glyph-lower-limit:before{content:\"\\eb40\"}.glyph-mail-filled:before{content:\"\\eb41\"}.glyph-mail:before{content:\"\\eb42\"}.glyph-maintenance-documents:before{content:\"\\eb43\"}.glyph-maintenance-info:before{content:\"\\eb44\"}.glyph-maintenance-warning-filled:before{content:\"\\eb45\"}.glyph-maintenance-warning:before{content:\"\\eb46\"}.glyph-maintenance:before{content:\"\\eb47\"}.glyph-mandatory-done:before{content:\"\\eb48\"}.glyph-mandatory:before{content:\"\\eb49\"}.glyph-map:before{content:\"\\eb4a\"}.glyph-maximize:before{content:\"\\eb4b\"}.glyph-microphone-filled:before{content:\"\\eb4c\"}.glyph-microphone:before{content:\"\\eb4d\"}.glyph-minimize:before{content:\"\\eb4e\"}.glyph-minus:before{content:\"\\eb4f\"}.glyph-mix:before{content:\"\\eb50\"}.glyph-monitor-filled:before{content:\"\\eb51\"}.glyph-monitor-trend:before{content:\"\\eb52\"}.glyph-monitor:before{content:\"\\eb53\"}.glyph-monitoring-add:before{content:\"\\eb54\"}.glyph-monitoring:before{content:\"\\eb55\"}.glyph-monitorings:before{content:\"\\eb56\"}.glyph-moon-filled:before{content:\"\\eb57\"}.glyph-moon:before{content:\"\\eb58\"}.glyph-more-menu:before{content:\"\\eb59\"}.glyph-mouse-click-filled:before{content:\"\\eb5a\"}.glyph-mouse-click:before{content:\"\\eb5b\"}.glyph-mouse-select-filled:before{content:\"\\eb5c\"}.glyph-mouse-select:before{content:\"\\eb5d\"}.glyph-mp4-document:before{content:\"\\eb5e\"}.glyph-namur-check-function-filled:before{content:\"\\eb5f\"}.glyph-namur-check-function:before{content:\"\\eb60\"}.glyph-namur-failure-filled:before{content:\"\\eb61\"}.glyph-namur-failure:before{content:\"\\eb62\"}.glyph-namur-maintenance-required-filled:before{content:\"\\eb63\"}.glyph-namur-maintenance-required:before{content:\"\\eb64\"}.glyph-namur-ok-filled:before{content:\"\\eb65\"}.glyph-namur-ok:before{content:\"\\eb66\"}.glyph-namur-out-of-spec-filled:before{content:\"\\eb67\"}.glyph-namur-out-of-spec:before{content:\"\\eb68\"}.glyph-navigation-filled:before{content:\"\\eb69\"}.glyph-navigation-left:before{content:\"\\eb6a\"}.glyph-navigation-right:before{content:\"\\eb6b\"}.glyph-navigation:before{content:\"\\eb6c\"}.glyph-new-indicator-filled:before{content:\"\\eb6d\"}.glyph-new-indicator:before{content:\"\\eb6e\"}.glyph-no-filter-filled:before{content:\"\\eb6f\"}.glyph-no-filter:before{content:\"\\eb70\"}.glyph-no-image:before{content:\"\\eb71\"}.glyph-note-filled:before{content:\"\\eb72\"}.glyph-note:before{content:\"\\eb73\"}.glyph-notification-filled:before{content:\"\\eb74\"}.glyph-notification:before{content:\"\\eb75\"}.glyph-notifications-filled:before{content:\"\\eb76\"}.glyph-notifications:before{content:\"\\eb77\"}.glyph-ontology-filled:before{content:\"\\eb78\"}.glyph-ontology:before{content:\"\\eb79\"}.glyph-open-external:before{content:\"\\eb7a\"}.glyph-open-file-filled:before{content:\"\\eb7b\"}.glyph-open-file:before{content:\"\\eb7c\"}.glyph-operate-plant-filled:before{content:\"\\eb7d\"}.glyph-operate-plant:before{content:\"\\eb7e\"}.glyph-optimize:before{content:\"\\eb7f\"}.glyph-p-and-i-symbols:before{content:\"\\eb80\"}.glyph-p-i-diagram:before{content:\"\\eb81\"}.glyph-pan:before{content:\"\\eb82\"}.glyph-paste:before{content:\"\\eb83\"}.glyph-pause:before{content:\"\\eb84\"}.glyph-pc-tower-filled:before{content:\"\\eb85\"}.glyph-pc-tower:before{content:\"\\eb86\"}.glyph-pdf-document:before{content:\"\\eb87\"}.glyph-pen-filled:before{content:\"\\eb88\"}.glyph-pen:before{content:\"\\eb89\"}.glyph-phone-filled:before{content:\"\\eb8a\"}.glyph-phone:before{content:\"\\eb8b\"}.glyph-photo-camera-add:before{content:\"\\eb8c\"}.glyph-photo-camera-filled:before{content:\"\\eb8d\"}.glyph-photo-camera:before{content:\"\\eb8e\"}.glyph-photo-cameras:before{content:\"\\eb8f\"}.glyph-piechart-filled:before{content:\"\\eb90\"}.glyph-piechart:before{content:\"\\eb91\"}.glyph-pin-filled:before{content:\"\\eb92\"}.glyph-pin:before{content:\"\\eb93\"}.glyph-plant-filled:before{content:\"\\eb94\"}.glyph-plant-handbook-filled:before{content:\"\\eb95\"}.glyph-plant-handbook:before{content:\"\\eb96\"}.glyph-plant-outline:before{content:\"\\eb97\"}.glyph-plant-security:before{content:\"\\eb98\"}.glyph-plant-settings-filled:before{content:\"\\eb99\"}.glyph-plant-settings:before{content:\"\\eb9a\"}.glyph-plant-user-filled:before{content:\"\\eb9b\"}.glyph-plant-user:before{content:\"\\eb9c\"}.glyph-plant:before{content:\"\\eb9d\"}.glyph-plants-filled:before{content:\"\\eb9e\"}.glyph-plants:before{content:\"\\eb9f\"}.glyph-play-filled:before{content:\"\\eba0\"}.glyph-play-pause-filled:before{content:\"\\eba1\"}.glyph-play-pause:before{content:\"\\eba2\"}.glyph-play-stepwise-filled:before{content:\"\\eba3\"}.glyph-play-stepwise:before{content:\"\\eba4\"}.glyph-play:before{content:\"\\eba5\"}.glyph-plus-minus-times-divide:before{content:\"\\eba6\"}.glyph-plus:before{content:\"\\eba7\"}.glyph-point-up-filled:before{content:\"\\eba8\"}.glyph-point-up:before{content:\"\\eba9\"}.glyph-polar-plot:before{content:\"\\ebaa\"}.glyph-polygon-filled:before{content:\"\\ebab\"}.glyph-polygon-line:before{content:\"\\ebac\"}.glyph-polygon:before{content:\"\\ebad\"}.glyph-ppt-document:before{content:\"\\ebae\"}.glyph-print-filled:before{content:\"\\ebaf\"}.glyph-print:before{content:\"\\ebb0\"}.glyph-prio-high:before{content:\"\\ebb1\"}.glyph-prio-low:before{content:\"\\ebb2\"}.glyph-prio-middle:before{content:\"\\ebb3\"}.glyph-product-catalog:before{content:\"\\ebb4\"}.glyph-product-management:before{content:\"\\ebb5\"}.glyph-product:before{content:\"\\ebb6\"}.glyph-project-configuration:before{content:\"\\ebb7\"}.glyph-project-new:before{content:\"\\ebb8\"}.glyph-project-scenarios:before{content:\"\\ebb9\"}.glyph-project:before{content:\"\\ebba\"}.glyph-protocol:before{content:\"\\ebbb\"}.glyph-publish-document:before{content:\"\\ebbc\"}.glyph-publish:before{content:\"\\ebbd\"}.glyph-qr-code:before{content:\"\\ebbe\"}.glyph-quality-report:before{content:\"\\ebbf\"}.glyph-question-filled:before{content:\"\\ebc0\"}.glyph-question:before{content:\"\\ebc1\"}.glyph-radarchart:before{content:\"\\ebc2\"}.glyph-radio-waves-off:before{content:\"\\ebc3\"}.glyph-radio-waves:before{content:\"\\ebc4\"}.glyph-random-filled:before{content:\"\\ebc5\"}.glyph-random:before{content:\"\\ebc6\"}.glyph-reboot:before{content:\"\\ebc7\"}.glyph-rectangle-filled:before{content:\"\\ebc8\"}.glyph-rectangle:before{content:\"\\ebc9\"}.glyph-redo:before{content:\"\\ebca\"}.glyph-reference:before{content:\"\\ebcb\"}.glyph-refresh-cancelled:before{content:\"\\ebcc\"}.glyph-refresh:before{content:\"\\ebcd\"}.glyph-reload:before{content:\"\\ebce\"}.glyph-remove-eye-filled:before{content:\"\\ebcf\"}.glyph-remove-eye:before{content:\"\\ebd0\"}.glyph-rename:before{content:\"\\ebd1\"}.glyph-replace:before{content:\"\\ebd2\"}.glyph-report-barchart:before{content:\"\\ebd3\"}.glyph-report-linechart:before{content:\"\\ebd4\"}.glyph-report-text:before{content:\"\\ebd5\"}.glyph-reset:before{content:\"\\ebd6\"}.glyph-restore-backup-filled:before{content:\"\\ebd7\"}.glyph-restore-backup-pc:before{content:\"\\ebd8\"}.glyph-restore-backup:before{content:\"\\ebd9\"}.glyph-rhomb-filled:before{content:\"\\ebda\"}.glyph-rhomb:before{content:\"\\ebdb\"}.glyph-road-filled:before{content:\"\\ebdc\"}.glyph-road:before{content:\"\\ebdd\"}.glyph-rocket-filled:before{content:\"\\ebde\"}.glyph-rocket:before{content:\"\\ebdf\"}.glyph-route-target:before{content:\"\\ebe0\"}.glyph-route:before{content:\"\\ebe1\"}.glyph-scatterplot:before{content:\"\\ebe2\"}.glyph-scheduler-filled:before{content:\"\\ebe3\"}.glyph-scheduler:before{content:\"\\ebe4\"}.glyph-screen-filled:before{content:\"\\ebe5\"}.glyph-screen:before{content:\"\\ebe6\"}.glyph-screenshot-filled:before{content:\"\\ebe7\"}.glyph-screenshot:before{content:\"\\ebe8\"}.glyph-script-add:before{content:\"\\ebe9\"}.glyph-script:before{content:\"\\ebea\"}.glyph-scripts:before{content:\"\\ebeb\"}.glyph-search:before{content:\"\\ebec\"}.glyph-share-filled:before{content:\"\\ebed\"}.glyph-share:before{content:\"\\ebee\"}.glyph-shopping-cart-filled:before{content:\"\\ebef\"}.glyph-shopping-cart:before{content:\"\\ebf0\"}.glyph-shout-filled:before{content:\"\\ebf1\"}.glyph-shout:before{content:\"\\ebf2\"}.glyph-sign-language:before{content:\"\\ebf3\"}.glyph-signal-strength-0:before{content:\"\\ebf4\"}.glyph-signal-strength-1:before{content:\"\\ebf5\"}.glyph-signal-strength-2:before{content:\"\\ebf6\"}.glyph-signal-strength-3:before{content:\"\\ebf7\"}.glyph-signal-strength-4:before{content:\"\\ebf8\"}.glyph-signal-strength-5:before{content:\"\\ebf9\"}.glyph-signal-strength-6:before{content:\"\\ebfa\"}.glyph-signal-strength-7:before{content:\"\\ebfb\"}.glyph-signal-strength-8:before{content:\"\\ebfc\"}.glyph-simit-component:before{content:\"\\ebfd\"}.glyph-simit-macro-component-editor:before{content:\"\\ebfe\"}.glyph-simit-macro:before{content:\"\\ebff\"}.glyph-single-check:before{content:\"\\ec00\"}.glyph-skip-back-filled:before{content:\"\\ec01\"}.glyph-skip-back:before{content:\"\\ec02\"}.glyph-skip-filled:before{content:\"\\ec03\"}.glyph-skip:before{content:\"\\ec04\"}.glyph-snowflake:before{content:\"\\ec05\"}.glyph-sort-ascending:before{content:\"\\ec06\"}.glyph-sort-descending:before{content:\"\\ec07\"}.glyph-sort:before{content:\"\\ec08\"}.glyph-sound-loud-filled:before{content:\"\\ec09\"}.glyph-sound-loud:before{content:\"\\ec0a\"}.glyph-sound-mute-filled:before{content:\"\\ec0b\"}.glyph-sound-mute:before{content:\"\\ec0c\"}.glyph-sound-off-filled:before{content:\"\\ec0d\"}.glyph-sound-off:before{content:\"\\ec0e\"}.glyph-sound-quiet-filled:before{content:\"\\ec0f\"}.glyph-sound-quiet:before{content:\"\\ec10\"}.glyph-spatial:before{content:\"\\ec11\"}.glyph-split-horizontally:before{content:\"\\ec12\"}.glyph-split-vertically:before{content:\"\\ec13\"}.glyph-standby:before{content:\"\\ec14\"}.glyph-star-add-filled:before{content:\"\\ec15\"}.glyph-star-add:before{content:\"\\ec16\"}.glyph-star-cancelled-filled:before{content:\"\\ec17\"}.glyph-star-cancelled:before{content:\"\\ec18\"}.glyph-star-filled:before{content:\"\\ec19\"}.glyph-star-list-filled:before{content:\"\\ec1a\"}.glyph-star-list:before{content:\"\\ec1b\"}.glyph-star:before{content:\"\\ec1c\"}.glyph-start-data-analysis:before{content:\"\\ec1d\"}.glyph-steering-user-filled:before{content:\"\\ec1e\"}.glyph-steering-user:before{content:\"\\ec1f\"}.glyph-steering:before{content:\"\\ec20\"}.glyph-stethoscope:before{content:\"\\ec21\"}.glyph-stop-filled:before{content:\"\\ec22\"}.glyph-stop:before{content:\"\\ec23\"}.glyph-success-filled:before{content:\"\\ec24\"}.glyph-success:before{content:\"\\ec25\"}.glyph-sun-filled:before{content:\"\\ec26\"}.glyph-sun:before{content:\"\\ec27\"}.glyph-support:before{content:\"\\ec28\"}.glyph-surveillance-filled:before{content:\"\\ec29\"}.glyph-surveillance:before{content:\"\\ec2a\"}.glyph-svg-document:before{content:\"\\ec2b\"}.glyph-swap-left-right:before{content:\"\\ec2c\"}.glyph-switch-slider:before{content:\"\\ec2d\"}.glyph-table-columns:before{content:\"\\ec2e\"}.glyph-table-rows:before{content:\"\\ec2f\"}.glyph-table-settings:before{content:\"\\ec30\"}.glyph-table:before{content:\"\\ec31\"}.glyph-tag-filled:before{content:\"\\ec32\"}.glyph-tag-plus-filled:before{content:\"\\ec33\"}.glyph-tag-plus:before{content:\"\\ec34\"}.glyph-tag:before{content:\"\\ec35\"}.glyph-tasks-all:before{content:\"\\ec36\"}.glyph-tasks-done:before{content:\"\\ec37\"}.glyph-tasks-open:before{content:\"\\ec38\"}.glyph-text-circle-rectangle-filled:before{content:\"\\ec39\"}.glyph-text-circle-rectangle:before{content:\"\\ec3a\"}.glyph-text-document:before{content:\"\\ec3b\"}.glyph-text:before{content:\"\\ec3c\"}.glyph-threshold-cancelled:before{content:\"\\ec3d\"}.glyph-threshold-off:before{content:\"\\ec3e\"}.glyph-threshold-on:before{content:\"\\ec3f\"}.glyph-to-be-published:before{content:\"\\ec40\"}.glyph-to-search:before{content:\"\\ec41\"}.glyph-topic-filled:before{content:\"\\ec42\"}.glyph-topic:before{content:\"\\ec43\"}.glyph-touch-filled:before{content:\"\\ec44\"}.glyph-touch:before{content:\"\\ec45\"}.glyph-trashcan-filled:before{content:\"\\ec46\"}.glyph-trashcan:before{content:\"\\ec47\"}.glyph-tree:before{content:\"\\ec48\"}.glyph-trend:before{content:\"\\ec49\"}.glyph-triangle-filled:before{content:\"\\ec4a\"}.glyph-triangle:before{content:\"\\ec4b\"}.glyph-truck-filled:before{content:\"\\ec4c\"}.glyph-truck:before{content:\"\\ec4d\"}.glyph-tulip-filled:before{content:\"\\ec4e\"}.glyph-tulip:before{content:\"\\ec4f\"}.glyph-txt-document:before{content:\"\\ec50\"}.glyph-undo:before{content:\"\\ec51\"}.glyph-ungroup:before{content:\"\\ec52\"}.glyph-unlock-filled:before{content:\"\\ec53\"}.glyph-unlock-plant-filled:before{content:\"\\ec54\"}.glyph-unlock-plant:before{content:\"\\ec55\"}.glyph-unlock:before{content:\"\\ec56\"}.glyph-upload-document-note:before{content:\"\\ec57\"}.glyph-upload-success:before{content:\"\\ec58\"}.glyph-upload:before{content:\"\\ec59\"}.glyph-upper-limit:before{content:\"\\ec5a\"}.glyph-user-check-filled:before{content:\"\\ec5b\"}.glyph-user-check:before{content:\"\\ec5c\"}.glyph-user-filled:before{content:\"\\ec5d\"}.glyph-user-management-filled:before{content:\"\\ec5e\"}.glyph-user-management:before{content:\"\\ec5f\"}.glyph-user-profile-filled:before{content:\"\\ec60\"}.glyph-user-profile:before{content:\"\\ec61\"}.glyph-user-settings-filled:before{content:\"\\ec62\"}.glyph-user-settings:before{content:\"\\ec63\"}.glyph-user:before{content:\"\\ec64\"}.glyph-validate:before{content:\"\\ec65\"}.glyph-vdi-folder:before{content:\"\\ec66\"}.glyph-version-history:before{content:\"\\ec67\"}.glyph-video-file-filled:before{content:\"\\ec68\"}.glyph-video-file:before{content:\"\\ec69\"}.glyph-warning-filled:before{content:\"\\ec6a\"}.glyph-warning-rhomb-filled:before{content:\"\\ec6b\"}.glyph-warning-rhomb:before{content:\"\\ec6c\"}.glyph-warning:before{content:\"\\ec6d\"}.glyph-water-bathing:before{content:\"\\ec6e\"}.glyph-water-fish:before{content:\"\\ec6f\"}.glyph-water-sunbathing:before{content:\"\\ec70\"}.glyph-waveform:before{content:\"\\ec71\"}.glyph-webcam-filled:before{content:\"\\ec72\"}.glyph-webcam:before{content:\"\\ec73\"}.glyph-wlan-off:before{content:\"\\ec74\"}.glyph-wlan-strength-0:before{content:\"\\ec75\"}.glyph-wlan-strength-1:before{content:\"\\ec76\"}.glyph-wlan-strength-2:before{content:\"\\ec77\"}.glyph-wlan-strength-3:before{content:\"\\ec78\"}.glyph-work-case-filled:before{content:\"\\ec79\"}.glyph-work-case:before{content:\"\\ec7a\"}.glyph-x-axis-settings:before{content:\"\\ec7b\"}.glyph-xls-document:before{content:\"\\ec7c\"}.glyph-xml-document:before{content:\"\\ec7d\"}.glyph-y-axis-settings:before{content:\"\\ec7e\"}.glyph-youtube-filled:before{content:\"\\ec7f\"}.glyph-youtube:before{content:\"\\ec80\"}.glyph-zoom-in:before{content:\"\\ec81\"}.glyph-zoom-out:before{content:\"\\ec82\"}.glyph-zoom-selection:before{content:\"\\ec83\"}:host{display:inline-flex;height:1.5rem;width:1.5rem}:host i{color:inherit;transition:color 150ms}:host .svg-container{display:block;position:relative;width:100%;height:100%}:host .svg-container>svg{height:1.5rem;width:1.5rem}:host .svg-container>svg [fill]{fill:var(--theme-color-std-text)}:host .skeleton-box{display:inline-block;height:1em;position:relative;overflow:hidden;background-color:#dddbdd}:host .skeleton-box::after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));animation:shimmer 2s infinite;content:\"\"}@keyframes shimmer{100%{transform:translateX(100%)}}:host(.size-12){height:0.75rem;width:0.75rem}:host(.size-12) .svg-container>svg{height:0.75rem;width:0.75rem}:host(.size-16){height:1rem;width:1rem}:host(.size-16) .svg-container>svg{height:1rem;width:1rem}:host(.size-32){height:2rem;width:2rem}:host(.size-32) .svg-container>svg{height:2rem;width:2rem}";
51
+
52
+ const Icon = class {
53
+ constructor(hostRef) {
54
+ registerInstance(this, hostRef);
55
+ this.size = undefined;
56
+ this.color = undefined;
57
+ this.name = undefined;
58
+ this.src = undefined;
59
+ this.svgContent = undefined;
60
+ }
61
+ connectedCallback() {
62
+ this.loadIconContent();
63
+ }
64
+ async loadIconContent() {
65
+ this.svgContent = await resolveIcon(this);
66
+ }
67
+ render() {
68
+ const style = {};
69
+ if (this.color) {
70
+ style['color'] = `var(--theme-${this.color})`;
71
+ }
72
+ if (this.name && !this.svgContent) {
73
+ const iconName = this.name;
74
+ return (h(Host, { style: style, class: {
75
+ ['size-12']: this.size === '12',
76
+ ['size-16']: this.size === '16',
77
+ ['size-24']: this.size === '24',
78
+ ['size-32']: this.size === '32',
79
+ } }, h("i", { class: {
80
+ 'glyph': true,
81
+ [`glyph-${iconName}`]: true,
82
+ 'glyph-12': this.size === '12',
83
+ 'glyph-16': this.size === '16',
84
+ 'glyph-24': this.size === '24',
85
+ 'glyph-32': this.size === '32',
86
+ } })));
87
+ }
88
+ return (h(Host, { style: style, class: {
89
+ ['size-12']: this.size === '12',
90
+ ['size-16']: this.size === '16',
91
+ ['size-24']: this.size === '24',
92
+ ['size-32']: this.size === '32',
93
+ } }, this.svgContent ? (h("div", { class: 'svg-container', innerHTML: this.svgContent })) : (h("span", { class: "skeleton-box", style: {
94
+ width: '100%',
95
+ height: '100%',
96
+ } }))));
97
+ }
98
+ static get watchers() { return {
99
+ "src": ["loadIconContent"],
100
+ "name": ["loadIconContent"]
101
+ }; }
102
+ };
103
+ Icon.style = iconCss;
104
+
105
+ export { Icon as I };
106
+
107
+ //# sourceMappingURL=icon-e3678129.js.map
@@ -0,0 +1 @@
1
+ {"file":"icon-e3678129.js","mappings":"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","names":[],"sources":["./src/components/icon/resolveIcon.ts","./src/components/icon/icon.scss?tag=ix-icon&encapsulation=shadow","./src/components/icon/icon.tsx"],"sourcesContent":["/*\n * COPYRIGHT (c) Siemens AG 2018-2023 ALL RIGHTS RESERVED.\n */\n\nimport { Icon } from './icon';\n\nexport const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');\n\nlet parser = null;\n\nfunction parseSVGDataContent(content: string) {\n if (typeof window['DOMParser'] === 'undefined') {\n console.warn('DOMParser not supported by your browser.');\n return;\n }\n\n if (parser === null) {\n parser = new window['DOMParser']();\n }\n\n const svgDocument = parser.parseFromString(content, 'text/html');\n const svgElement = svgDocument.querySelector('svg');\n\n if (!svgElement) {\n throw Error('No valid svg data provided');\n }\n\n return svgElement.outerHTML;\n}\n\nasync function fetchSVG(url: string) {\n const response = await fetch(url);\n const responseText = await response.text();\n\n if (!response.ok) {\n console.error(responseText);\n return '';\n }\n\n return parseSVGDataContent(responseText);\n}\n\nexport async function resolveIcon(icon: Icon) {\n const { src, name } = icon;\n\n if (name) {\n if (isSvgDataUrl(name)) {\n return parseSVGDataContent(name);\n }\n\n //Fallback return undefined to render web font icon\n return;\n }\n\n if (!src) {\n return '';\n }\n\n if (isSvgDataUrl(src)) {\n return parseSVGDataContent(src);\n }\n\n return fetchSVG(src);\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import './generated/ix-icons';\n\n:host {\n display: inline-flex;\n height: 1.5rem;\n width: 1.5rem;\n\n i {\n color: inherit;\n transition: color 150ms;\n }\n\n .svg-container {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .svg-container > svg {\n height: 1.5rem;\n width: 1.5rem;\n }\n\n .svg-container > svg [fill] {\n fill: var(--theme-color-std-text);\n }\n\n .skeleton-box {\n display: inline-block;\n height: 1em;\n position: relative;\n overflow: hidden;\n background-color: #dddbdd;\n\n &::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(90deg, rgba(#fff, 0) 0, rgba(#fff, 0.2) 20%, rgba(#fff, 0.5) 60%, rgba(#fff, 0));\n animation: shimmer 2s infinite;\n content: '';\n }\n\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n }\n }\n}\n\n:host(.size-12) {\n height: 0.75rem;\n width: 0.75rem;\n\n .svg-container > svg {\n height: 0.75rem;\n width: 0.75rem;\n }\n}\n\n:host(.size-16) {\n height: 1rem;\n width: 1rem;\n\n .svg-container > svg {\n height: 1rem;\n width: 1rem;\n }\n}\n\n:host(.size-32) {\n height: 2rem;\n width: 2rem;\n\n .svg-container > svg {\n height: 2rem;\n width: 2rem;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { resolveIcon } from './resolveIcon';\n\n@Component({\n tag: 'ix-icon',\n styleUrl: 'icon.scss',\n shadow: true,\n})\nexport class Icon {\n /**\n * Size of the icon\n */\n @Prop() size: '12' | '16' | '24' | '32';\n\n /**\n * Color of the icon\n */\n @Prop() color: string;\n\n /**\n * Use one of our defined icon names e.g. `copy`.\n */\n @Prop({ reflect: true }) name: string;\n\n /**\n * Path to the svg\n *\n * @internal\n */\n @Prop() src?: string;\n\n @State() svgContent?: string;\n\n connectedCallback() {\n this.loadIconContent();\n }\n\n @Watch('src')\n @Watch('name')\n async loadIconContent() {\n this.svgContent = await resolveIcon(this);\n }\n\n render() {\n const style: {\n [key: string]: string;\n } = {};\n\n if (this.color) {\n style['color'] = `var(--theme-${this.color})`;\n }\n\n if (this.name && !this.svgContent) {\n const iconName = this.name;\n return (\n <Host\n style={style}\n class={{\n ['size-12']: this.size === '12',\n ['size-16']: this.size === '16',\n ['size-24']: this.size === '24',\n ['size-32']: this.size === '32',\n }}\n >\n <i\n class={{\n 'glyph': true,\n [`glyph-${iconName}`]: true,\n 'glyph-12': this.size === '12',\n 'glyph-16': this.size === '16',\n 'glyph-24': this.size === '24',\n 'glyph-32': this.size === '32',\n }}\n ></i>\n </Host>\n );\n }\n\n return (\n <Host\n style={style}\n class={{\n ['size-12']: this.size === '12',\n ['size-16']: this.size === '16',\n ['size-24']: this.size === '24',\n ['size-32']: this.size === '32',\n }}\n >\n {this.svgContent ? (\n <div class={'svg-container'} innerHTML={this.svgContent}></div>\n ) : (\n <span\n class=\"skeleton-box\"\n style={{\n width: '100%',\n height: '100%',\n }}\n ></span>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { I as Icon } from './icon-7cefbfaa.js';
1
+ export { I as Icon } from './icon-e3678129.js';
2
2
  import './index-460e19e2.js';
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { I as ix_icon } from './icon-7cefbfaa.js';
1
+ export { I as ix_icon } from './icon-e3678129.js';
2
2
  import './index-460e19e2.js';
3
3
 
4
4
  //# sourceMappingURL=ix-icon.entry.js.map
Binary file