@siemens/ix-icons 3.1.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/READMEOSS.html +10 -10
  2. package/components/index.js +143 -36
  3. package/components/index.js.map +1 -1
  4. package/dist/cjs/{index-Rt6MP40k.js → index-HU55KNQP.js} +127 -26
  5. package/dist/cjs/index-HU55KNQP.js.map +1 -0
  6. package/dist/cjs/index.cjs.js +38 -14
  7. package/dist/cjs/index.cjs.js.map +1 -1
  8. package/dist/cjs/ix-icon.cjs.entry.js +1 -3
  9. package/dist/cjs/ix-icons.cjs.js +3 -5
  10. package/dist/cjs/ix-icons.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -4
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/icon/icon.js +35 -17
  14. package/dist/collection/components/icon/icon.js.map +1 -1
  15. package/dist/collection/components/icon/parser.js +8 -1
  16. package/dist/collection/components/icon/parser.js.map +1 -1
  17. package/dist/esm/{index-B9Q9x8eq.js → index-CyicTMfq.js} +127 -26
  18. package/dist/esm/index-CyicTMfq.js.map +1 -0
  19. package/dist/esm/index.js +39 -15
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/ix-icon.entry.js +1 -3
  22. package/dist/esm/ix-icons.js +4 -6
  23. package/dist/esm/ix-icons.js.map +1 -1
  24. package/dist/esm/loader.js +3 -5
  25. package/dist/ix-icons/index.esm.js +1 -1
  26. package/dist/ix-icons/index.esm.js.map +1 -1
  27. package/dist/ix-icons/ix-icons.esm.js +1 -1
  28. package/dist/ix-icons/ix-icons.esm.js.map +1 -1
  29. package/dist/ix-icons/p-9fcb498f.entry.js +2 -0
  30. package/dist/ix-icons/p-9fcb498f.entry.js.map +1 -0
  31. package/dist/ix-icons/p-CyicTMfq.js +3 -0
  32. package/dist/ix-icons/p-CyicTMfq.js.map +1 -0
  33. package/dist/ix-icons/svg/app-update.svg +1 -0
  34. package/dist/ix-icons/svg/cam-disk-600-seg.svg +1 -0
  35. package/dist/ix-icons/svg/cam-disk-6k-seg.svg +1 -0
  36. package/dist/ix-icons/svg/chart-error-bar.svg +1 -0
  37. package/dist/ix-icons/svg/collapse-all.svg +1 -0
  38. package/dist/ix-icons/svg/command-line-filled.svg +1 -0
  39. package/dist/ix-icons/svg/command-line.svg +1 -0
  40. package/dist/ix-icons/svg/configuration-safety.svg +1 -0
  41. package/dist/ix-icons/svg/connected-circle-filled.svg +1 -0
  42. package/dist/ix-icons/svg/connected-circle.svg +1 -0
  43. package/dist/ix-icons/svg/controller-device-safety.svg +1 -0
  44. package/dist/ix-icons/svg/database-safety.svg +1 -0
  45. package/dist/ix-icons/svg/disconnected-circle-filled.svg +1 -0
  46. package/dist/ix-icons/svg/disconnected-circle.svg +1 -0
  47. package/dist/ix-icons/svg/download-add.svg +1 -1
  48. package/dist/ix-icons/svg/download-list.svg +1 -1
  49. package/dist/ix-icons/svg/download.svg +1 -1
  50. package/dist/ix-icons/svg/drive-safety.svg +1 -0
  51. package/dist/ix-icons/svg/drive.svg +1 -0
  52. package/dist/ix-icons/svg/edit-document-filled.svg +1 -1
  53. package/dist/ix-icons/svg/edit-document.svg +1 -1
  54. package/dist/ix-icons/svg/emergency-stop-filled.svg +1 -0
  55. package/dist/ix-icons/svg/expand-all.svg +1 -0
  56. package/dist/ix-icons/svg/flare.svg +1 -0
  57. package/dist/ix-icons/svg/function-block-safety.svg +1 -0
  58. package/dist/ix-icons/svg/generic-device-alarm.svg +1 -0
  59. package/dist/ix-icons/svg/generic-device-brackets.svg +1 -0
  60. package/dist/ix-icons/svg/generic-device-cancelled.svg +1 -0
  61. package/dist/ix-icons/svg/generic-device-connected.svg +1 -0
  62. package/dist/ix-icons/svg/generic-device-dashed.svg +1 -0
  63. package/dist/ix-icons/svg/generic-device-disconnected.svg +1 -0
  64. package/dist/ix-icons/svg/generic-device-error.svg +1 -0
  65. package/dist/ix-icons/svg/generic-device-flare.svg +1 -0
  66. package/dist/ix-icons/svg/generic-device-forced-mode.svg +1 -0
  67. package/dist/ix-icons/svg/generic-device-incompatible.svg +1 -0
  68. package/dist/ix-icons/svg/generic-device-io-unavailable.svg +1 -0
  69. package/dist/ix-icons/svg/generic-device-lock.svg +1 -0
  70. package/dist/ix-icons/svg/generic-device-maintenance.svg +1 -0
  71. package/dist/ix-icons/svg/generic-device-pause.svg +1 -0
  72. package/dist/ix-icons/svg/generic-device-play.svg +1 -0
  73. package/dist/ix-icons/svg/generic-device-power-saving.svg +1 -0
  74. package/dist/ix-icons/svg/generic-device-published.svg +1 -0
  75. package/dist/ix-icons/svg/generic-device-question.svg +1 -0
  76. package/dist/ix-icons/svg/generic-device-refresh.svg +1 -0
  77. package/dist/ix-icons/svg/generic-device-reset.svg +1 -0
  78. package/dist/ix-icons/svg/generic-device-restart.svg +1 -0
  79. package/dist/ix-icons/svg/generic-device-rocket.svg +1 -0
  80. package/dist/ix-icons/svg/generic-device-safety.svg +1 -0
  81. package/dist/ix-icons/svg/generic-device-shield.svg +1 -0
  82. package/dist/ix-icons/svg/generic-device-shutdown.svg +1 -0
  83. package/dist/ix-icons/svg/generic-device-slash.svg +1 -0
  84. package/dist/ix-icons/svg/generic-device-software-alarm.svg +1 -0
  85. package/dist/ix-icons/svg/generic-device-standby.svg +1 -0
  86. package/dist/ix-icons/svg/generic-device-stop-userprogram.svg +1 -0
  87. package/dist/ix-icons/svg/generic-device-stop.svg +1 -0
  88. package/dist/ix-icons/svg/generic-device-success.svg +1 -0
  89. package/dist/ix-icons/svg/generic-device-synchronized.svg +1 -0
  90. package/dist/ix-icons/svg/generic-device-traffic.svg +1 -0
  91. package/dist/ix-icons/svg/generic-device.svg +1 -0
  92. package/dist/ix-icons/svg/helmet-safety-filled.svg +1 -0
  93. package/dist/ix-icons/svg/helmet-safety.svg +1 -0
  94. package/dist/ix-icons/svg/import-check.svg +1 -0
  95. package/dist/ix-icons/svg/import-failed.svg +1 -0
  96. package/dist/ix-icons/svg/import-progress.svg +1 -0
  97. package/dist/ix-icons/svg/incompatible.svg +1 -0
  98. package/dist/ix-icons/svg/live-feed.svg +1 -0
  99. package/dist/ix-icons/svg/lower-limit.svg +1 -1
  100. package/dist/ix-icons/svg/maintenance-filled.svg +1 -0
  101. package/dist/ix-icons/svg/maintenance-info-filled.svg +1 -0
  102. package/dist/ix-icons/svg/maintenance-info.svg +1 -1
  103. package/dist/ix-icons/svg/maintenance-octagon-filled.svg +1 -0
  104. package/dist/ix-icons/svg/maintenance-octagon.svg +1 -0
  105. package/dist/ix-icons/svg/maintenance-rhomb-filled.svg +1 -0
  106. package/dist/ix-icons/svg/maintenance-rhomb.svg +1 -0
  107. package/dist/ix-icons/svg/maintenance-square-filled.svg +1 -0
  108. package/dist/ix-icons/svg/maintenance-square.svg +1 -0
  109. package/dist/ix-icons/svg/maintenance-triangle-filled.svg +1 -0
  110. package/dist/ix-icons/svg/maintenance-triangle.svg +1 -0
  111. package/dist/ix-icons/svg/maintenance.svg +1 -1
  112. package/dist/ix-icons/svg/monitor-filled.svg +1 -1
  113. package/dist/ix-icons/svg/monitor.svg +1 -1
  114. package/dist/ix-icons/svg/operating-system-add.svg +1 -0
  115. package/dist/ix-icons/svg/operating-system-settings.svg +1 -0
  116. package/dist/ix-icons/svg/output-cam.svg +1 -0
  117. package/dist/ix-icons/svg/palette-filled.svg +1 -0
  118. package/dist/ix-icons/svg/palette.svg +1 -0
  119. package/dist/ix-icons/svg/profisafe-logo.svg +1 -0
  120. package/dist/ix-icons/svg/restart.svg +1 -0
  121. package/dist/ix-icons/svg/rocket-circle-filled.svg +1 -0
  122. package/dist/ix-icons/svg/rocket-circle.svg +1 -0
  123. package/dist/ix-icons/svg/ruler-diagonal.svg +1 -0
  124. package/dist/ix-icons/svg/safety-settings.svg +1 -0
  125. package/dist/ix-icons/svg/screen-duplicate-filled.svg +1 -1
  126. package/dist/ix-icons/svg/screen-duplicate.svg +1 -1
  127. package/dist/ix-icons/svg/screen-filled.svg +1 -1
  128. package/dist/ix-icons/svg/screen-settings-filled.svg +1 -1
  129. package/dist/ix-icons/svg/screen-settings.svg +1 -1
  130. package/dist/ix-icons/svg/screen.svg +1 -1
  131. package/dist/ix-icons/svg/screens-filled.svg +1 -1
  132. package/dist/ix-icons/svg/send-right-filled.svg +1 -0
  133. package/dist/ix-icons/svg/send-right.svg +1 -0
  134. package/dist/ix-icons/svg/send-top-right-filled.svg +1 -0
  135. package/dist/ix-icons/svg/send-top-right.svg +1 -0
  136. package/dist/ix-icons/svg/sensor.svg +1 -0
  137. package/dist/ix-icons/svg/shutdown.svg +1 -0
  138. package/dist/ix-icons/svg/tag-safety-filled.svg +1 -0
  139. package/dist/ix-icons/svg/tag-safety.svg +1 -0
  140. package/dist/ix-icons/svg/theme-filled.svg +1 -0
  141. package/dist/ix-icons/svg/theme.svg +1 -0
  142. package/dist/ix-icons/svg/traffic-left-right.svg +1 -0
  143. package/dist/ix-icons/svg/update-application.svg +1 -0
  144. package/dist/ix-icons/svg/upload-fail.svg +1 -1
  145. package/dist/ix-icons/svg/upload-success.svg +1 -1
  146. package/dist/ix-icons/svg/upload.svg +1 -1
  147. package/dist/ix-icons/svg/upper-limit.svg +1 -1
  148. package/dist/ix-icons/svg/warning-hexagon-filled.svg +1 -0
  149. package/dist/ix-icons/svg/warning-hexagon.svg +1 -0
  150. package/dist/ix-icons/svg/warning-octagon-filled.svg +1 -0
  151. package/dist/ix-icons/svg/warning-octagon.svg +1 -0
  152. package/dist/ix-icons/svg/warning-square-filled.svg +1 -0
  153. package/dist/ix-icons/svg/warning-square.svg +1 -0
  154. package/dist/sample.json +100 -0
  155. package/dist/types/stencil-public-runtime.d.ts +49 -2
  156. package/icons/index.d.ts +100 -0
  157. package/icons/index.js +121 -21
  158. package/icons/index.mjs +121 -21
  159. package/icons/package.json +1 -1
  160. package/package.json +10 -7
  161. package/svg/app-update.svg +1 -0
  162. package/svg/cam-disk-600-seg.svg +1 -0
  163. package/svg/cam-disk-6k-seg.svg +1 -0
  164. package/svg/chart-error-bar.svg +1 -0
  165. package/svg/collapse-all.svg +1 -0
  166. package/svg/command-line-filled.svg +1 -0
  167. package/svg/command-line.svg +1 -0
  168. package/svg/configuration-safety.svg +1 -0
  169. package/svg/connected-circle-filled.svg +1 -0
  170. package/svg/connected-circle.svg +1 -0
  171. package/svg/controller-device-safety.svg +1 -0
  172. package/svg/database-safety.svg +1 -0
  173. package/svg/disconnected-circle-filled.svg +1 -0
  174. package/svg/disconnected-circle.svg +1 -0
  175. package/svg/download-add.svg +1 -1
  176. package/svg/download-list.svg +1 -1
  177. package/svg/download.svg +1 -1
  178. package/svg/drive-safety.svg +1 -0
  179. package/svg/drive.svg +1 -0
  180. package/svg/edit-document-filled.svg +1 -1
  181. package/svg/edit-document.svg +1 -1
  182. package/svg/emergency-stop-filled.svg +1 -0
  183. package/svg/expand-all.svg +1 -0
  184. package/svg/flare.svg +1 -0
  185. package/svg/function-block-safety.svg +1 -0
  186. package/svg/generic-device-alarm.svg +1 -0
  187. package/svg/generic-device-brackets.svg +1 -0
  188. package/svg/generic-device-cancelled.svg +1 -0
  189. package/svg/generic-device-connected.svg +1 -0
  190. package/svg/generic-device-dashed.svg +1 -0
  191. package/svg/generic-device-disconnected.svg +1 -0
  192. package/svg/generic-device-error.svg +1 -0
  193. package/svg/generic-device-flare.svg +1 -0
  194. package/svg/generic-device-forced-mode.svg +1 -0
  195. package/svg/generic-device-incompatible.svg +1 -0
  196. package/svg/generic-device-io-unavailable.svg +1 -0
  197. package/svg/generic-device-lock.svg +1 -0
  198. package/svg/generic-device-maintenance.svg +1 -0
  199. package/svg/generic-device-pause.svg +1 -0
  200. package/svg/generic-device-play.svg +1 -0
  201. package/svg/generic-device-power-saving.svg +1 -0
  202. package/svg/generic-device-published.svg +1 -0
  203. package/svg/generic-device-question.svg +1 -0
  204. package/svg/generic-device-refresh.svg +1 -0
  205. package/svg/generic-device-reset.svg +1 -0
  206. package/svg/generic-device-restart.svg +1 -0
  207. package/svg/generic-device-rocket.svg +1 -0
  208. package/svg/generic-device-safety.svg +1 -0
  209. package/svg/generic-device-shield.svg +1 -0
  210. package/svg/generic-device-shutdown.svg +1 -0
  211. package/svg/generic-device-slash.svg +1 -0
  212. package/svg/generic-device-software-alarm.svg +1 -0
  213. package/svg/generic-device-standby.svg +1 -0
  214. package/svg/generic-device-stop-userprogram.svg +1 -0
  215. package/svg/generic-device-stop.svg +1 -0
  216. package/svg/generic-device-success.svg +1 -0
  217. package/svg/generic-device-synchronized.svg +1 -0
  218. package/svg/generic-device-traffic.svg +1 -0
  219. package/svg/generic-device.svg +1 -0
  220. package/svg/helmet-safety-filled.svg +1 -0
  221. package/svg/helmet-safety.svg +1 -0
  222. package/svg/import-check.svg +1 -0
  223. package/svg/import-failed.svg +1 -0
  224. package/svg/import-progress.svg +1 -0
  225. package/svg/incompatible.svg +1 -0
  226. package/svg/live-feed.svg +1 -0
  227. package/svg/lower-limit.svg +1 -1
  228. package/svg/maintenance-filled.svg +1 -0
  229. package/svg/maintenance-info-filled.svg +1 -0
  230. package/svg/maintenance-info.svg +1 -1
  231. package/svg/maintenance-octagon-filled.svg +1 -0
  232. package/svg/maintenance-octagon.svg +1 -0
  233. package/svg/maintenance-rhomb-filled.svg +1 -0
  234. package/svg/maintenance-rhomb.svg +1 -0
  235. package/svg/maintenance-square-filled.svg +1 -0
  236. package/svg/maintenance-square.svg +1 -0
  237. package/svg/maintenance-triangle-filled.svg +1 -0
  238. package/svg/maintenance-triangle.svg +1 -0
  239. package/svg/maintenance.svg +1 -1
  240. package/svg/monitor-filled.svg +1 -1
  241. package/svg/monitor.svg +1 -1
  242. package/svg/operating-system-add.svg +1 -0
  243. package/svg/operating-system-settings.svg +1 -0
  244. package/svg/output-cam.svg +1 -0
  245. package/svg/palette-filled.svg +1 -0
  246. package/svg/palette.svg +1 -0
  247. package/svg/profisafe-logo.svg +1 -0
  248. package/svg/restart.svg +1 -0
  249. package/svg/rocket-circle-filled.svg +1 -0
  250. package/svg/rocket-circle.svg +1 -0
  251. package/svg/ruler-diagonal.svg +1 -0
  252. package/svg/safety-settings.svg +1 -0
  253. package/svg/screen-duplicate-filled.svg +1 -1
  254. package/svg/screen-duplicate.svg +1 -1
  255. package/svg/screen-filled.svg +1 -1
  256. package/svg/screen-settings-filled.svg +1 -1
  257. package/svg/screen-settings.svg +1 -1
  258. package/svg/screen.svg +1 -1
  259. package/svg/screens-filled.svg +1 -1
  260. package/svg/send-right-filled.svg +1 -0
  261. package/svg/send-right.svg +1 -0
  262. package/svg/send-top-right-filled.svg +1 -0
  263. package/svg/send-top-right.svg +1 -0
  264. package/svg/sensor.svg +1 -0
  265. package/svg/shutdown.svg +1 -0
  266. package/svg/tag-safety-filled.svg +1 -0
  267. package/svg/tag-safety.svg +1 -0
  268. package/svg/theme-filled.svg +1 -0
  269. package/svg/theme.svg +1 -0
  270. package/svg/traffic-left-right.svg +1 -0
  271. package/svg/update-application.svg +1 -0
  272. package/svg/upload-fail.svg +1 -1
  273. package/svg/upload-success.svg +1 -1
  274. package/svg/upload.svg +1 -1
  275. package/svg/upper-limit.svg +1 -1
  276. package/svg/warning-hexagon-filled.svg +1 -0
  277. package/svg/warning-hexagon.svg +1 -0
  278. package/svg/warning-octagon-filled.svg +1 -0
  279. package/svg/warning-octagon.svg +1 -0
  280. package/svg/warning-square-filled.svg +1 -0
  281. package/svg/warning-square.svg +1 -0
  282. package/dist/cjs/index-Rt6MP40k.js.map +0 -1
  283. package/dist/cjs/ix-icon.cjs.entry.js.map +0 -1
  284. package/dist/esm/index-B9Q9x8eq.js.map +0 -1
  285. package/dist/ix-icons/p-B9Q9x8eq.js +0 -3
  286. package/dist/ix-icons/p-B9Q9x8eq.js.map +0 -1
  287. package/dist/ix-icons/p-dd52e4ef.entry.js +0 -2
  288. package/dist/ix-icons/p-dd52e4ef.entry.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'ix-icons';
2
- const BUILD = /* ix-icons */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
2
+ const BUILD = /* ix-icons */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.35.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.38.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -13,6 +13,38 @@ var __export = (target, all) => {
13
13
  // src/utils/constants.ts
14
14
  var SVG_NS = "http://www.w3.org/2000/svg";
15
15
  var HTML_NS = "http://www.w3.org/1999/xhtml";
16
+ var reWireGetterSetter = (instance, hostRef) => {
17
+ var _a;
18
+ const cmpMeta = hostRef.$cmpMeta$;
19
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
20
+ members.map(([memberName, [memberFlags]]) => {
21
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
22
+ const ogValue = instance[memberName];
23
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
24
+ if (ogDescriptor) {
25
+ Object.defineProperty(instance, memberName, {
26
+ get() {
27
+ return ogDescriptor.get.call(this);
28
+ },
29
+ set(newValue) {
30
+ ogDescriptor.set.call(this, newValue);
31
+ },
32
+ configurable: true,
33
+ enumerable: true
34
+ });
35
+ }
36
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
37
+ }
38
+ });
39
+ };
40
+ function getPropertyDescriptor(obj, memberName) {
41
+ while (obj) {
42
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
43
+ if (desc == null ? void 0 : desc.get) return desc;
44
+ obj = Object.getPrototypeOf(obj);
45
+ }
46
+ return void 0;
47
+ }
16
48
 
17
49
  // src/client/client-host-ref.ts
18
50
  var getHostRef = (ref) => {
@@ -22,21 +54,29 @@ var getHostRef = (ref) => {
22
54
  return void 0;
23
55
  };
24
56
  var registerInstance = (lazyInstance, hostRef) => {
57
+ if (!hostRef) return;
25
58
  lazyInstance.__stencil__getHostRef = () => hostRef;
26
59
  hostRef.$lazyInstance$ = lazyInstance;
60
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
61
+ reWireGetterSetter(lazyInstance, hostRef);
62
+ }
27
63
  };
28
64
  var registerHost = (hostElement, cmpMeta) => {
29
65
  const hostRef = {
30
66
  $flags$: 0,
31
67
  $hostElement$: hostElement,
32
68
  $cmpMeta$: cmpMeta,
33
- $instanceValues$: /* @__PURE__ */ new Map()
69
+ $instanceValues$: /* @__PURE__ */ new Map(),
70
+ $serializerValues$: /* @__PURE__ */ new Map()
34
71
  };
35
72
  {
36
73
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
37
74
  hostElement["s-p"] = [];
38
75
  hostElement["s-rc"] = [];
39
76
  }
77
+ {
78
+ hostRef.$fetchedCbList$ = [];
79
+ }
40
80
  const ref = hostRef;
41
81
  hostElement.__stencil__getHostRef = () => ref;
42
82
  return ref;
@@ -112,6 +152,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
112
152
  }
113
153
  return false;
114
154
  })() ;
155
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
115
156
  var queuePending = false;
116
157
  var queueDomReads = [];
117
158
  var queueDomWrites = [];
@@ -230,7 +271,13 @@ function createShadowRoot(cmpMeta) {
230
271
  var _a;
231
272
  const shadowRoot = this.attachShadow({ mode: "open" });
232
273
  if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
233
- if (globalStyleSheet) shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
274
+ if (globalStyleSheet) {
275
+ if (supportsMutableAdoptedStyleSheets) {
276
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
277
+ } else {
278
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
279
+ }
280
+ }
234
281
  }
235
282
  var createTime = (fnName, tagName = "") => {
236
283
  {
@@ -297,7 +344,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
297
344
  if (supportsConstructableStylesheets) {
298
345
  const stylesheet = new CSSStyleSheet();
299
346
  stylesheet.replaceSync(style);
300
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
347
+ if (supportsMutableAdoptedStyleSheets) {
348
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
349
+ } else {
350
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
351
+ }
301
352
  } else {
302
353
  const existingStyleContainer = styleContainerNode.querySelector("style");
303
354
  if (existingStyleContainer) {
@@ -322,7 +373,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
322
373
  }
323
374
  }
324
375
  } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
325
- styleContainerNode.adoptedStyleSheets.push(style);
376
+ if (supportsMutableAdoptedStyleSheets) {
377
+ styleContainerNode.adoptedStyleSheets.push(style);
378
+ } else {
379
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
380
+ }
326
381
  }
327
382
  }
328
383
  return scopeId2;
@@ -432,7 +487,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
432
487
  }
433
488
  return propValue;
434
489
  };
435
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
490
+ var getElement = (ref) => {
491
+ var _a;
492
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
493
+ };
436
494
  var emitEvent = (elm, name, opts) => {
437
495
  const ev = plt.ce(name, opts);
438
496
  elm.dispatchEvent(ev);
@@ -799,6 +857,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
799
857
  }
800
858
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
801
859
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
860
+ if (isInitialLoad) {
861
+ queueMicrotask(() => {
862
+ dispatch();
863
+ });
864
+ return;
865
+ }
802
866
  return writeTask(dispatch) ;
803
867
  };
804
868
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -812,6 +876,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
812
876
  }
813
877
  let maybePromise;
814
878
  if (isInitialLoad) {
879
+ {
880
+ if (hostRef.$fetchedCbList$.length) {
881
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
882
+ }
883
+ }
815
884
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
816
885
  } else {
817
886
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -933,6 +1002,9 @@ var addHydratedFlag = (elm) => {
933
1002
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
934
1003
  var setValue = (ref, propName, newVal, cmpMeta) => {
935
1004
  const hostRef = getHostRef(ref);
1005
+ if (!hostRef) {
1006
+ return;
1007
+ }
936
1008
  if (!hostRef) {
937
1009
  throw new Error(
938
1010
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
@@ -978,9 +1050,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
978
1050
  var proxyComponent = (Cstr, cmpMeta, flags) => {
979
1051
  var _a, _b;
980
1052
  const prototype = Cstr.prototype;
981
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
982
- if (Cstr.watchers && !cmpMeta.$watchers$) {
983
- cmpMeta.$watchers$ = Cstr.watchers;
1053
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1054
+ {
1055
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1056
+ cmpMeta.$watchers$ = Cstr.watchers;
1057
+ }
1058
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1059
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1060
+ }
1061
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1062
+ cmpMeta.$serializers$ = Cstr.serializers;
1063
+ }
984
1064
  }
985
1065
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
986
1066
  members.map(([memberName, [memberFlags]]) => {
@@ -1008,12 +1088,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1008
1088
  Object.defineProperty(prototype, memberName, {
1009
1089
  set(newValue) {
1010
1090
  const ref = getHostRef(this);
1091
+ if (!ref) {
1092
+ return;
1093
+ }
1011
1094
  if (origSetter) {
1012
1095
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1013
1096
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1014
1097
  newValue = ref.$instanceValues$.get(memberName);
1015
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1016
- ref.$instanceValues$.set(memberName, currentValue);
1017
1098
  }
1018
1099
  origSetter.apply(this, [
1019
1100
  parsePropertyValue(
@@ -1028,7 +1109,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1028
1109
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1029
1110
  setValue(this, memberName, newValue, cmpMeta);
1030
1111
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1031
- ref.$onReadyPromise$.then(() => {
1112
+ ref.$fetchedCbList$.push(() => {
1032
1113
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1033
1114
  ref.$lazyInstance$[memberName] = newValue;
1034
1115
  }
@@ -1049,7 +1130,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1049
1130
  if (ref.$lazyInstance$) {
1050
1131
  setterSetVal();
1051
1132
  } else {
1052
- ref.$onReadyPromise$.then(() => setterSetVal());
1133
+ ref.$fetchedCbList$.push(() => {
1134
+ setterSetVal();
1135
+ });
1053
1136
  }
1054
1137
  }
1055
1138
  }
@@ -1062,16 +1145,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1062
1145
  plt.jmp(() => {
1063
1146
  var _a2;
1064
1147
  const propName = attrNameToPropName.get(attrName);
1148
+ const hostRef = getHostRef(this);
1065
1149
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1066
1150
  newValue = this[propName];
1067
1151
  delete this[propName];
1068
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1152
+ }
1153
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1069
1154
  this[propName] == newValue) {
1070
1155
  return;
1071
1156
  } else if (propName == null) {
1072
- const hostRef = getHostRef(this);
1073
1157
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1074
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1158
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1075
1159
  const instance = hostRef.$lazyInstance$ ;
1076
1160
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1077
1161
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1082,9 +1166,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1082
1166
  }
1083
1167
  return;
1084
1168
  }
1169
+ const propFlags = members.find(([m]) => m === propName);
1170
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1171
+ newValue = newValue === null || newValue === "false" ? false : true;
1172
+ }
1085
1173
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1086
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1087
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1174
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1088
1175
  this[propName] = newValue;
1089
1176
  }
1090
1177
  });
@@ -1092,7 +1179,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1092
1179
  Cstr.observedAttributes = Array.from(
1093
1180
  /* @__PURE__ */ new Set([
1094
1181
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1095
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1182
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1096
1183
  const attrName = m[1] || propName;
1097
1184
  attrNameToPropName.set(attrName, propName);
1098
1185
  return attrName;
@@ -1125,6 +1212,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1125
1212
  if (!Cstr.isProxied) {
1126
1213
  {
1127
1214
  cmpMeta.$watchers$ = Cstr.watchers;
1215
+ cmpMeta.$serializers$ = Cstr.serializers;
1216
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1128
1217
  }
1129
1218
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1130
1219
  Cstr.isProxied = true;
@@ -1182,6 +1271,9 @@ var fireConnectedCallback = (instance, elm) => {
1182
1271
  var connectedCallback = (elm) => {
1183
1272
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1184
1273
  const hostRef = getHostRef(elm);
1274
+ if (!hostRef) {
1275
+ return;
1276
+ }
1185
1277
  const cmpMeta = hostRef.$cmpMeta$;
1186
1278
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1187
1279
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1197,7 +1289,7 @@ var connectedCallback = (elm) => {
1197
1289
  }
1198
1290
  if (cmpMeta.$members$) {
1199
1291
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1200
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1292
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1201
1293
  const value = elm[memberName];
1202
1294
  delete elm[memberName];
1203
1295
  elm[memberName] = value;
@@ -1261,7 +1353,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1261
1353
  let hasSlotRelocation = false;
1262
1354
  lazyBundles.map((lazyBundle) => {
1263
1355
  lazyBundle[1].map((compactMeta) => {
1264
- var _a2;
1356
+ var _a2, _b, _c;
1265
1357
  const cmpMeta = {
1266
1358
  $flags$: compactMeta[0],
1267
1359
  $tagName$: compactMeta[1],
@@ -1276,6 +1368,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1276
1368
  }
1277
1369
  {
1278
1370
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1371
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1372
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1279
1373
  }
1280
1374
  const tagName = cmpMeta.$tagName$;
1281
1375
  const HostElement = class extends HTMLElement {
@@ -1300,7 +1394,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1300
1394
  }
1301
1395
  }
1302
1396
  connectedCallback() {
1303
- getHostRef(this);
1397
+ const hostRef = getHostRef(this);
1398
+ if (!hostRef) {
1399
+ return;
1400
+ }
1304
1401
  if (!this.hasRegisteredEventListeners) {
1305
1402
  this.hasRegisteredEventListeners = true;
1306
1403
  }
@@ -1319,6 +1416,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1319
1416
  plt.raf(() => {
1320
1417
  var _a3;
1321
1418
  const hostRef = getHostRef(this);
1419
+ if (!hostRef) {
1420
+ return;
1421
+ }
1322
1422
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1323
1423
  if (i2 > -1) {
1324
1424
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1329,7 +1429,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1329
1429
  });
1330
1430
  }
1331
1431
  componentOnReady() {
1332
- return getHostRef(this).$onReadyPromise$;
1432
+ var _a3;
1433
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1333
1434
  }
1334
1435
  };
1335
1436
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1373,6 +1474,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1373
1474
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1374
1475
 
1375
1476
  export { Host as H, getElement as a, bootstrapLazy as b, setAssetPath as c, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1376
- //# sourceMappingURL=index-B9Q9x8eq.js.map
1477
+ //# sourceMappingURL=index-CyicTMfq.js.map
1377
1478
 
1378
- //# sourceMappingURL=index-B9Q9x8eq.js.map
1479
+ //# sourceMappingURL=index-CyicTMfq.js.map