@siemens/ix-icons 3.2.0 → 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 (77) hide show
  1. package/components/index.js +92 -25
  2. package/components/index.js.map +1 -1
  3. package/dist/cjs/{index-DUsbo4-K.js → index-HU55KNQP.js} +78 -18
  4. package/dist/cjs/index-HU55KNQP.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +31 -12
  6. package/dist/cjs/index.cjs.js.map +1 -1
  7. package/dist/cjs/ix-icon.cjs.entry.js +1 -1
  8. package/dist/cjs/ix-icons.cjs.js +3 -3
  9. package/dist/cjs/ix-icons.cjs.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/collection/collection-manifest.json +2 -2
  12. package/dist/collection/components/icon/icon.js +35 -17
  13. package/dist/collection/components/icon/icon.js.map +1 -1
  14. package/dist/collection/components/icon/parser.js +1 -1
  15. package/dist/collection/components/icon/parser.js.map +1 -1
  16. package/dist/esm/{index-BiqddxKp.js → index-CyicTMfq.js} +78 -18
  17. package/dist/esm/index-CyicTMfq.js.map +1 -0
  18. package/dist/esm/index.js +32 -13
  19. package/dist/esm/index.js.map +1 -1
  20. package/dist/esm/ix-icon.entry.js +1 -1
  21. package/dist/esm/ix-icons.js +4 -4
  22. package/dist/esm/ix-icons.js.map +1 -1
  23. package/dist/esm/loader.js +3 -3
  24. package/dist/ix-icons/index.esm.js +1 -1
  25. package/dist/ix-icons/index.esm.js.map +1 -1
  26. package/dist/ix-icons/ix-icons.esm.js +1 -1
  27. package/dist/ix-icons/ix-icons.esm.js.map +1 -1
  28. package/dist/ix-icons/p-9fcb498f.entry.js +2 -0
  29. package/dist/ix-icons/p-CyicTMfq.js +3 -0
  30. package/dist/ix-icons/p-CyicTMfq.js.map +1 -0
  31. package/dist/ix-icons/svg/command-line-filled.svg +1 -0
  32. package/dist/ix-icons/svg/command-line.svg +1 -0
  33. package/dist/ix-icons/svg/monitor-filled.svg +1 -1
  34. package/dist/ix-icons/svg/monitor.svg +1 -1
  35. package/dist/ix-icons/svg/operating-system-add.svg +1 -0
  36. package/dist/ix-icons/svg/operating-system-settings.svg +1 -0
  37. package/dist/ix-icons/svg/palette-filled.svg +1 -0
  38. package/dist/ix-icons/svg/palette.svg +1 -0
  39. package/dist/ix-icons/svg/screen-duplicate-filled.svg +1 -1
  40. package/dist/ix-icons/svg/screen-duplicate.svg +1 -1
  41. package/dist/ix-icons/svg/screen-filled.svg +1 -1
  42. package/dist/ix-icons/svg/screen-settings-filled.svg +1 -1
  43. package/dist/ix-icons/svg/screen-settings.svg +1 -1
  44. package/dist/ix-icons/svg/screen.svg +1 -1
  45. package/dist/ix-icons/svg/screens-filled.svg +1 -1
  46. package/dist/ix-icons/svg/theme-filled.svg +1 -0
  47. package/dist/ix-icons/svg/theme.svg +1 -0
  48. package/dist/sample.json +8 -0
  49. package/dist/types/stencil-public-runtime.d.ts +35 -11
  50. package/icons/index.d.ts +8 -0
  51. package/icons/index.js +17 -9
  52. package/icons/index.mjs +17 -9
  53. package/icons/package.json +1 -1
  54. package/package.json +4 -4
  55. package/svg/command-line-filled.svg +1 -0
  56. package/svg/command-line.svg +1 -0
  57. package/svg/monitor-filled.svg +1 -1
  58. package/svg/monitor.svg +1 -1
  59. package/svg/operating-system-add.svg +1 -0
  60. package/svg/operating-system-settings.svg +1 -0
  61. package/svg/palette-filled.svg +1 -0
  62. package/svg/palette.svg +1 -0
  63. package/svg/screen-duplicate-filled.svg +1 -1
  64. package/svg/screen-duplicate.svg +1 -1
  65. package/svg/screen-filled.svg +1 -1
  66. package/svg/screen-settings-filled.svg +1 -1
  67. package/svg/screen-settings.svg +1 -1
  68. package/svg/screen.svg +1 -1
  69. package/svg/screens-filled.svg +1 -1
  70. package/svg/theme-filled.svg +1 -0
  71. package/svg/theme.svg +1 -0
  72. package/dist/cjs/index-DUsbo4-K.js.map +0 -1
  73. package/dist/esm/index-BiqddxKp.js.map +0 -1
  74. package/dist/ix-icons/p-6b0af2cb.entry.js +0 -2
  75. package/dist/ix-icons/p-BiqddxKp.js +0 -3
  76. package/dist/ix-icons/p-BiqddxKp.js.map +0 -1
  77. /package/dist/ix-icons/{p-6b0af2cb.entry.js.map → p-9fcb498f.entry.js.map} +0 -0
@@ -19,10 +19,10 @@ function _interopNamespace(e) {
19
19
  }
20
20
 
21
21
  const NAMESPACE = 'ix-icons';
22
- const BUILD = /* ix-icons */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
22
+ const BUILD = /* ix-icons */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
23
23
 
24
24
  /*
25
- Stencil Client Platform v4.37.1 | MIT Licensed | https://stenciljs.com
25
+ Stencil Client Platform v4.38.3 | MIT Licensed | https://stenciljs.com
26
26
  */
27
27
  var __defProp = Object.defineProperty;
28
28
  var __export = (target, all) => {
@@ -33,6 +33,38 @@ var __export = (target, all) => {
33
33
  // src/utils/constants.ts
34
34
  var SVG_NS = "http://www.w3.org/2000/svg";
35
35
  var HTML_NS = "http://www.w3.org/1999/xhtml";
36
+ var reWireGetterSetter = (instance, hostRef) => {
37
+ var _a;
38
+ const cmpMeta = hostRef.$cmpMeta$;
39
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
40
+ members.map(([memberName, [memberFlags]]) => {
41
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
42
+ const ogValue = instance[memberName];
43
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
44
+ if (ogDescriptor) {
45
+ Object.defineProperty(instance, memberName, {
46
+ get() {
47
+ return ogDescriptor.get.call(this);
48
+ },
49
+ set(newValue) {
50
+ ogDescriptor.set.call(this, newValue);
51
+ },
52
+ configurable: true,
53
+ enumerable: true
54
+ });
55
+ }
56
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
57
+ }
58
+ });
59
+ };
60
+ function getPropertyDescriptor(obj, memberName) {
61
+ while (obj) {
62
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
63
+ if (desc == null ? void 0 : desc.get) return desc;
64
+ obj = Object.getPrototypeOf(obj);
65
+ }
66
+ return void 0;
67
+ }
36
68
 
37
69
  // src/client/client-host-ref.ts
38
70
  var getHostRef = (ref) => {
@@ -45,19 +77,26 @@ var registerInstance = (lazyInstance, hostRef) => {
45
77
  if (!hostRef) return;
46
78
  lazyInstance.__stencil__getHostRef = () => hostRef;
47
79
  hostRef.$lazyInstance$ = lazyInstance;
80
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
81
+ reWireGetterSetter(lazyInstance, hostRef);
82
+ }
48
83
  };
49
84
  var registerHost = (hostElement, cmpMeta) => {
50
85
  const hostRef = {
51
86
  $flags$: 0,
52
87
  $hostElement$: hostElement,
53
88
  $cmpMeta$: cmpMeta,
54
- $instanceValues$: /* @__PURE__ */ new Map()
89
+ $instanceValues$: /* @__PURE__ */ new Map(),
90
+ $serializerValues$: /* @__PURE__ */ new Map()
55
91
  };
56
92
  {
57
93
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
58
94
  hostElement["s-p"] = [];
59
95
  hostElement["s-rc"] = [];
60
96
  }
97
+ {
98
+ hostRef.$fetchedCbList$ = [];
99
+ }
61
100
  const ref = hostRef;
62
101
  hostElement.__stencil__getHostRef = () => ref;
63
102
  return ref;
@@ -857,6 +896,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
857
896
  }
858
897
  let maybePromise;
859
898
  if (isInitialLoad) {
899
+ {
900
+ if (hostRef.$fetchedCbList$.length) {
901
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
902
+ }
903
+ }
860
904
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
861
905
  } else {
862
906
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -1026,9 +1070,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1026
1070
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1027
1071
  var _a, _b;
1028
1072
  const prototype = Cstr.prototype;
1029
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1030
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1031
- cmpMeta.$watchers$ = Cstr.watchers;
1073
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1074
+ {
1075
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1076
+ cmpMeta.$watchers$ = Cstr.watchers;
1077
+ }
1078
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1079
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1080
+ }
1081
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1082
+ cmpMeta.$serializers$ = Cstr.serializers;
1083
+ }
1032
1084
  }
1033
1085
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1034
1086
  members.map(([memberName, [memberFlags]]) => {
@@ -1063,8 +1115,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1063
1115
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1064
1116
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1065
1117
  newValue = ref.$instanceValues$.get(memberName);
1066
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1067
- ref.$instanceValues$.set(memberName, currentValue);
1068
1118
  }
1069
1119
  origSetter.apply(this, [
1070
1120
  parsePropertyValue(
@@ -1079,7 +1129,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1079
1129
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1080
1130
  setValue(this, memberName, newValue, cmpMeta);
1081
1131
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1082
- ref.$onReadyPromise$.then(() => {
1132
+ ref.$fetchedCbList$.push(() => {
1083
1133
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1084
1134
  ref.$lazyInstance$[memberName] = newValue;
1085
1135
  }
@@ -1100,7 +1150,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1100
1150
  if (ref.$lazyInstance$) {
1101
1151
  setterSetVal();
1102
1152
  } else {
1103
- ref.$onReadyPromise$.then(() => setterSetVal());
1153
+ ref.$fetchedCbList$.push(() => {
1154
+ setterSetVal();
1155
+ });
1104
1156
  }
1105
1157
  }
1106
1158
  }
@@ -1113,14 +1165,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1113
1165
  plt.jmp(() => {
1114
1166
  var _a2;
1115
1167
  const propName = attrNameToPropName.get(attrName);
1168
+ const hostRef = getHostRef(this);
1116
1169
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1117
1170
  newValue = this[propName];
1118
1171
  delete this[propName];
1119
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1172
+ }
1173
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1120
1174
  this[propName] == newValue) {
1121
1175
  return;
1122
1176
  } else if (propName == null) {
1123
- const hostRef = getHostRef(this);
1124
1177
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1125
1178
  if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1126
1179
  const instance = hostRef.$lazyInstance$ ;
@@ -1133,9 +1186,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1133
1186
  }
1134
1187
  return;
1135
1188
  }
1189
+ const propFlags = members.find(([m]) => m === propName);
1190
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1191
+ newValue = newValue === null || newValue === "false" ? false : true;
1192
+ }
1136
1193
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1137
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1138
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1194
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1139
1195
  this[propName] = newValue;
1140
1196
  }
1141
1197
  });
@@ -1176,6 +1232,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1176
1232
  if (!Cstr.isProxied) {
1177
1233
  {
1178
1234
  cmpMeta.$watchers$ = Cstr.watchers;
1235
+ cmpMeta.$serializers$ = Cstr.serializers;
1236
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1179
1237
  }
1180
1238
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1181
1239
  Cstr.isProxied = true;
@@ -1251,7 +1309,7 @@ var connectedCallback = (elm) => {
1251
1309
  }
1252
1310
  if (cmpMeta.$members$) {
1253
1311
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1254
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1312
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1255
1313
  const value = elm[memberName];
1256
1314
  delete elm[memberName];
1257
1315
  elm[memberName] = value;
@@ -1315,7 +1373,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1315
1373
  let hasSlotRelocation = false;
1316
1374
  lazyBundles.map((lazyBundle) => {
1317
1375
  lazyBundle[1].map((compactMeta) => {
1318
- var _a2;
1376
+ var _a2, _b, _c;
1319
1377
  const cmpMeta = {
1320
1378
  $flags$: compactMeta[0],
1321
1379
  $tagName$: compactMeta[1],
@@ -1330,6 +1388,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1330
1388
  }
1331
1389
  {
1332
1390
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1391
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1392
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1333
1393
  }
1334
1394
  const tagName = cmpMeta.$tagName$;
1335
1395
  const HostElement = class extends HTMLElement {
@@ -1442,6 +1502,6 @@ exports.promiseResolve = promiseResolve;
1442
1502
  exports.registerInstance = registerInstance;
1443
1503
  exports.setAssetPath = setAssetPath;
1444
1504
  exports.setNonce = setNonce;
1445
- //# sourceMappingURL=index-DUsbo4-K.js.map
1505
+ //# sourceMappingURL=index-HU55KNQP.js.map
1446
1506
 
1447
- //# sourceMappingURL=index-DUsbo4-K.js.map
1507
+ //# sourceMappingURL=index-HU55KNQP.js.map