@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.
- package/READMEOSS.html +10 -10
- package/components/index.js +143 -36
- package/components/index.js.map +1 -1
- package/dist/cjs/{index-Rt6MP40k.js → index-HU55KNQP.js} +127 -26
- package/dist/cjs/index-HU55KNQP.js.map +1 -0
- package/dist/cjs/index.cjs.js +38 -14
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/ix-icon.cjs.entry.js +1 -3
- package/dist/cjs/ix-icons.cjs.js +3 -5
- package/dist/cjs/ix-icons.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -4
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/icon/icon.js +35 -17
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/icon/parser.js +8 -1
- package/dist/collection/components/icon/parser.js.map +1 -1
- package/dist/esm/{index-B9Q9x8eq.js → index-CyicTMfq.js} +127 -26
- package/dist/esm/index-CyicTMfq.js.map +1 -0
- package/dist/esm/index.js +39 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ix-icon.entry.js +1 -3
- package/dist/esm/ix-icons.js +4 -6
- package/dist/esm/ix-icons.js.map +1 -1
- package/dist/esm/loader.js +3 -5
- package/dist/ix-icons/index.esm.js +1 -1
- package/dist/ix-icons/index.esm.js.map +1 -1
- package/dist/ix-icons/ix-icons.esm.js +1 -1
- package/dist/ix-icons/ix-icons.esm.js.map +1 -1
- package/dist/ix-icons/p-9fcb498f.entry.js +2 -0
- package/dist/ix-icons/p-9fcb498f.entry.js.map +1 -0
- package/dist/ix-icons/p-CyicTMfq.js +3 -0
- package/dist/ix-icons/p-CyicTMfq.js.map +1 -0
- package/dist/ix-icons/svg/app-update.svg +1 -0
- package/dist/ix-icons/svg/cam-disk-600-seg.svg +1 -0
- package/dist/ix-icons/svg/cam-disk-6k-seg.svg +1 -0
- package/dist/ix-icons/svg/chart-error-bar.svg +1 -0
- package/dist/ix-icons/svg/collapse-all.svg +1 -0
- package/dist/ix-icons/svg/command-line-filled.svg +1 -0
- package/dist/ix-icons/svg/command-line.svg +1 -0
- package/dist/ix-icons/svg/configuration-safety.svg +1 -0
- package/dist/ix-icons/svg/connected-circle-filled.svg +1 -0
- package/dist/ix-icons/svg/connected-circle.svg +1 -0
- package/dist/ix-icons/svg/controller-device-safety.svg +1 -0
- package/dist/ix-icons/svg/database-safety.svg +1 -0
- package/dist/ix-icons/svg/disconnected-circle-filled.svg +1 -0
- package/dist/ix-icons/svg/disconnected-circle.svg +1 -0
- package/dist/ix-icons/svg/download-add.svg +1 -1
- package/dist/ix-icons/svg/download-list.svg +1 -1
- package/dist/ix-icons/svg/download.svg +1 -1
- package/dist/ix-icons/svg/drive-safety.svg +1 -0
- package/dist/ix-icons/svg/drive.svg +1 -0
- package/dist/ix-icons/svg/edit-document-filled.svg +1 -1
- package/dist/ix-icons/svg/edit-document.svg +1 -1
- package/dist/ix-icons/svg/emergency-stop-filled.svg +1 -0
- package/dist/ix-icons/svg/expand-all.svg +1 -0
- package/dist/ix-icons/svg/flare.svg +1 -0
- package/dist/ix-icons/svg/function-block-safety.svg +1 -0
- package/dist/ix-icons/svg/generic-device-alarm.svg +1 -0
- package/dist/ix-icons/svg/generic-device-brackets.svg +1 -0
- package/dist/ix-icons/svg/generic-device-cancelled.svg +1 -0
- package/dist/ix-icons/svg/generic-device-connected.svg +1 -0
- package/dist/ix-icons/svg/generic-device-dashed.svg +1 -0
- package/dist/ix-icons/svg/generic-device-disconnected.svg +1 -0
- package/dist/ix-icons/svg/generic-device-error.svg +1 -0
- package/dist/ix-icons/svg/generic-device-flare.svg +1 -0
- package/dist/ix-icons/svg/generic-device-forced-mode.svg +1 -0
- package/dist/ix-icons/svg/generic-device-incompatible.svg +1 -0
- package/dist/ix-icons/svg/generic-device-io-unavailable.svg +1 -0
- package/dist/ix-icons/svg/generic-device-lock.svg +1 -0
- package/dist/ix-icons/svg/generic-device-maintenance.svg +1 -0
- package/dist/ix-icons/svg/generic-device-pause.svg +1 -0
- package/dist/ix-icons/svg/generic-device-play.svg +1 -0
- package/dist/ix-icons/svg/generic-device-power-saving.svg +1 -0
- package/dist/ix-icons/svg/generic-device-published.svg +1 -0
- package/dist/ix-icons/svg/generic-device-question.svg +1 -0
- package/dist/ix-icons/svg/generic-device-refresh.svg +1 -0
- package/dist/ix-icons/svg/generic-device-reset.svg +1 -0
- package/dist/ix-icons/svg/generic-device-restart.svg +1 -0
- package/dist/ix-icons/svg/generic-device-rocket.svg +1 -0
- package/dist/ix-icons/svg/generic-device-safety.svg +1 -0
- package/dist/ix-icons/svg/generic-device-shield.svg +1 -0
- package/dist/ix-icons/svg/generic-device-shutdown.svg +1 -0
- package/dist/ix-icons/svg/generic-device-slash.svg +1 -0
- package/dist/ix-icons/svg/generic-device-software-alarm.svg +1 -0
- package/dist/ix-icons/svg/generic-device-standby.svg +1 -0
- package/dist/ix-icons/svg/generic-device-stop-userprogram.svg +1 -0
- package/dist/ix-icons/svg/generic-device-stop.svg +1 -0
- package/dist/ix-icons/svg/generic-device-success.svg +1 -0
- package/dist/ix-icons/svg/generic-device-synchronized.svg +1 -0
- package/dist/ix-icons/svg/generic-device-traffic.svg +1 -0
- package/dist/ix-icons/svg/generic-device.svg +1 -0
- package/dist/ix-icons/svg/helmet-safety-filled.svg +1 -0
- package/dist/ix-icons/svg/helmet-safety.svg +1 -0
- package/dist/ix-icons/svg/import-check.svg +1 -0
- package/dist/ix-icons/svg/import-failed.svg +1 -0
- package/dist/ix-icons/svg/import-progress.svg +1 -0
- package/dist/ix-icons/svg/incompatible.svg +1 -0
- package/dist/ix-icons/svg/live-feed.svg +1 -0
- package/dist/ix-icons/svg/lower-limit.svg +1 -1
- package/dist/ix-icons/svg/maintenance-filled.svg +1 -0
- package/dist/ix-icons/svg/maintenance-info-filled.svg +1 -0
- package/dist/ix-icons/svg/maintenance-info.svg +1 -1
- package/dist/ix-icons/svg/maintenance-octagon-filled.svg +1 -0
- package/dist/ix-icons/svg/maintenance-octagon.svg +1 -0
- package/dist/ix-icons/svg/maintenance-rhomb-filled.svg +1 -0
- package/dist/ix-icons/svg/maintenance-rhomb.svg +1 -0
- package/dist/ix-icons/svg/maintenance-square-filled.svg +1 -0
- package/dist/ix-icons/svg/maintenance-square.svg +1 -0
- package/dist/ix-icons/svg/maintenance-triangle-filled.svg +1 -0
- package/dist/ix-icons/svg/maintenance-triangle.svg +1 -0
- package/dist/ix-icons/svg/maintenance.svg +1 -1
- package/dist/ix-icons/svg/monitor-filled.svg +1 -1
- package/dist/ix-icons/svg/monitor.svg +1 -1
- package/dist/ix-icons/svg/operating-system-add.svg +1 -0
- package/dist/ix-icons/svg/operating-system-settings.svg +1 -0
- package/dist/ix-icons/svg/output-cam.svg +1 -0
- package/dist/ix-icons/svg/palette-filled.svg +1 -0
- package/dist/ix-icons/svg/palette.svg +1 -0
- package/dist/ix-icons/svg/profisafe-logo.svg +1 -0
- package/dist/ix-icons/svg/restart.svg +1 -0
- package/dist/ix-icons/svg/rocket-circle-filled.svg +1 -0
- package/dist/ix-icons/svg/rocket-circle.svg +1 -0
- package/dist/ix-icons/svg/ruler-diagonal.svg +1 -0
- package/dist/ix-icons/svg/safety-settings.svg +1 -0
- package/dist/ix-icons/svg/screen-duplicate-filled.svg +1 -1
- package/dist/ix-icons/svg/screen-duplicate.svg +1 -1
- package/dist/ix-icons/svg/screen-filled.svg +1 -1
- package/dist/ix-icons/svg/screen-settings-filled.svg +1 -1
- package/dist/ix-icons/svg/screen-settings.svg +1 -1
- package/dist/ix-icons/svg/screen.svg +1 -1
- package/dist/ix-icons/svg/screens-filled.svg +1 -1
- package/dist/ix-icons/svg/send-right-filled.svg +1 -0
- package/dist/ix-icons/svg/send-right.svg +1 -0
- package/dist/ix-icons/svg/send-top-right-filled.svg +1 -0
- package/dist/ix-icons/svg/send-top-right.svg +1 -0
- package/dist/ix-icons/svg/sensor.svg +1 -0
- package/dist/ix-icons/svg/shutdown.svg +1 -0
- package/dist/ix-icons/svg/tag-safety-filled.svg +1 -0
- package/dist/ix-icons/svg/tag-safety.svg +1 -0
- package/dist/ix-icons/svg/theme-filled.svg +1 -0
- package/dist/ix-icons/svg/theme.svg +1 -0
- package/dist/ix-icons/svg/traffic-left-right.svg +1 -0
- package/dist/ix-icons/svg/update-application.svg +1 -0
- package/dist/ix-icons/svg/upload-fail.svg +1 -1
- package/dist/ix-icons/svg/upload-success.svg +1 -1
- package/dist/ix-icons/svg/upload.svg +1 -1
- package/dist/ix-icons/svg/upper-limit.svg +1 -1
- package/dist/ix-icons/svg/warning-hexagon-filled.svg +1 -0
- package/dist/ix-icons/svg/warning-hexagon.svg +1 -0
- package/dist/ix-icons/svg/warning-octagon-filled.svg +1 -0
- package/dist/ix-icons/svg/warning-octagon.svg +1 -0
- package/dist/ix-icons/svg/warning-square-filled.svg +1 -0
- package/dist/ix-icons/svg/warning-square.svg +1 -0
- package/dist/sample.json +100 -0
- package/dist/types/stencil-public-runtime.d.ts +49 -2
- package/icons/index.d.ts +100 -0
- package/icons/index.js +121 -21
- package/icons/index.mjs +121 -21
- package/icons/package.json +1 -1
- package/package.json +10 -7
- package/svg/app-update.svg +1 -0
- package/svg/cam-disk-600-seg.svg +1 -0
- package/svg/cam-disk-6k-seg.svg +1 -0
- package/svg/chart-error-bar.svg +1 -0
- package/svg/collapse-all.svg +1 -0
- package/svg/command-line-filled.svg +1 -0
- package/svg/command-line.svg +1 -0
- package/svg/configuration-safety.svg +1 -0
- package/svg/connected-circle-filled.svg +1 -0
- package/svg/connected-circle.svg +1 -0
- package/svg/controller-device-safety.svg +1 -0
- package/svg/database-safety.svg +1 -0
- package/svg/disconnected-circle-filled.svg +1 -0
- package/svg/disconnected-circle.svg +1 -0
- package/svg/download-add.svg +1 -1
- package/svg/download-list.svg +1 -1
- package/svg/download.svg +1 -1
- package/svg/drive-safety.svg +1 -0
- package/svg/drive.svg +1 -0
- package/svg/edit-document-filled.svg +1 -1
- package/svg/edit-document.svg +1 -1
- package/svg/emergency-stop-filled.svg +1 -0
- package/svg/expand-all.svg +1 -0
- package/svg/flare.svg +1 -0
- package/svg/function-block-safety.svg +1 -0
- package/svg/generic-device-alarm.svg +1 -0
- package/svg/generic-device-brackets.svg +1 -0
- package/svg/generic-device-cancelled.svg +1 -0
- package/svg/generic-device-connected.svg +1 -0
- package/svg/generic-device-dashed.svg +1 -0
- package/svg/generic-device-disconnected.svg +1 -0
- package/svg/generic-device-error.svg +1 -0
- package/svg/generic-device-flare.svg +1 -0
- package/svg/generic-device-forced-mode.svg +1 -0
- package/svg/generic-device-incompatible.svg +1 -0
- package/svg/generic-device-io-unavailable.svg +1 -0
- package/svg/generic-device-lock.svg +1 -0
- package/svg/generic-device-maintenance.svg +1 -0
- package/svg/generic-device-pause.svg +1 -0
- package/svg/generic-device-play.svg +1 -0
- package/svg/generic-device-power-saving.svg +1 -0
- package/svg/generic-device-published.svg +1 -0
- package/svg/generic-device-question.svg +1 -0
- package/svg/generic-device-refresh.svg +1 -0
- package/svg/generic-device-reset.svg +1 -0
- package/svg/generic-device-restart.svg +1 -0
- package/svg/generic-device-rocket.svg +1 -0
- package/svg/generic-device-safety.svg +1 -0
- package/svg/generic-device-shield.svg +1 -0
- package/svg/generic-device-shutdown.svg +1 -0
- package/svg/generic-device-slash.svg +1 -0
- package/svg/generic-device-software-alarm.svg +1 -0
- package/svg/generic-device-standby.svg +1 -0
- package/svg/generic-device-stop-userprogram.svg +1 -0
- package/svg/generic-device-stop.svg +1 -0
- package/svg/generic-device-success.svg +1 -0
- package/svg/generic-device-synchronized.svg +1 -0
- package/svg/generic-device-traffic.svg +1 -0
- package/svg/generic-device.svg +1 -0
- package/svg/helmet-safety-filled.svg +1 -0
- package/svg/helmet-safety.svg +1 -0
- package/svg/import-check.svg +1 -0
- package/svg/import-failed.svg +1 -0
- package/svg/import-progress.svg +1 -0
- package/svg/incompatible.svg +1 -0
- package/svg/live-feed.svg +1 -0
- package/svg/lower-limit.svg +1 -1
- package/svg/maintenance-filled.svg +1 -0
- package/svg/maintenance-info-filled.svg +1 -0
- package/svg/maintenance-info.svg +1 -1
- package/svg/maintenance-octagon-filled.svg +1 -0
- package/svg/maintenance-octagon.svg +1 -0
- package/svg/maintenance-rhomb-filled.svg +1 -0
- package/svg/maintenance-rhomb.svg +1 -0
- package/svg/maintenance-square-filled.svg +1 -0
- package/svg/maintenance-square.svg +1 -0
- package/svg/maintenance-triangle-filled.svg +1 -0
- package/svg/maintenance-triangle.svg +1 -0
- package/svg/maintenance.svg +1 -1
- package/svg/monitor-filled.svg +1 -1
- package/svg/monitor.svg +1 -1
- package/svg/operating-system-add.svg +1 -0
- package/svg/operating-system-settings.svg +1 -0
- package/svg/output-cam.svg +1 -0
- package/svg/palette-filled.svg +1 -0
- package/svg/palette.svg +1 -0
- package/svg/profisafe-logo.svg +1 -0
- package/svg/restart.svg +1 -0
- package/svg/rocket-circle-filled.svg +1 -0
- package/svg/rocket-circle.svg +1 -0
- package/svg/ruler-diagonal.svg +1 -0
- package/svg/safety-settings.svg +1 -0
- package/svg/screen-duplicate-filled.svg +1 -1
- package/svg/screen-duplicate.svg +1 -1
- package/svg/screen-filled.svg +1 -1
- package/svg/screen-settings-filled.svg +1 -1
- package/svg/screen-settings.svg +1 -1
- package/svg/screen.svg +1 -1
- package/svg/screens-filled.svg +1 -1
- package/svg/send-right-filled.svg +1 -0
- package/svg/send-right.svg +1 -0
- package/svg/send-top-right-filled.svg +1 -0
- package/svg/send-top-right.svg +1 -0
- package/svg/sensor.svg +1 -0
- package/svg/shutdown.svg +1 -0
- package/svg/tag-safety-filled.svg +1 -0
- package/svg/tag-safety.svg +1 -0
- package/svg/theme-filled.svg +1 -0
- package/svg/theme.svg +1 -0
- package/svg/traffic-left-right.svg +1 -0
- package/svg/update-application.svg +1 -0
- package/svg/upload-fail.svg +1 -1
- package/svg/upload-success.svg +1 -1
- package/svg/upload.svg +1 -1
- package/svg/upper-limit.svg +1 -1
- package/svg/warning-hexagon-filled.svg +1 -0
- package/svg/warning-hexagon.svg +1 -0
- package/svg/warning-octagon-filled.svg +1 -0
- package/svg/warning-octagon.svg +1 -0
- package/svg/warning-square-filled.svg +1 -0
- package/svg/warning-square.svg +1 -0
- package/dist/cjs/index-Rt6MP40k.js.map +0 -1
- package/dist/cjs/ix-icon.cjs.entry.js.map +0 -1
- package/dist/esm/index-B9Q9x8eq.js.map +0 -1
- package/dist/ix-icons/p-B9Q9x8eq.js +0 -3
- package/dist/ix-icons/p-B9Q9x8eq.js.map +0 -1
- package/dist/ix-icons/p-dd52e4ef.entry.js +0 -2
- package/dist/ix-icons/p-dd52e4ef.entry.js.map +0 -1
|
@@ -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.
|
|
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) => {
|
|
@@ -42,21 +74,29 @@ var getHostRef = (ref) => {
|
|
|
42
74
|
return void 0;
|
|
43
75
|
};
|
|
44
76
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
77
|
+
if (!hostRef) return;
|
|
45
78
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
46
79
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
80
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
81
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
82
|
+
}
|
|
47
83
|
};
|
|
48
84
|
var registerHost = (hostElement, cmpMeta) => {
|
|
49
85
|
const hostRef = {
|
|
50
86
|
$flags$: 0,
|
|
51
87
|
$hostElement$: hostElement,
|
|
52
88
|
$cmpMeta$: cmpMeta,
|
|
53
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
89
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
90
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
54
91
|
};
|
|
55
92
|
{
|
|
56
93
|
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
57
94
|
hostElement["s-p"] = [];
|
|
58
95
|
hostElement["s-rc"] = [];
|
|
59
96
|
}
|
|
97
|
+
{
|
|
98
|
+
hostRef.$fetchedCbList$ = [];
|
|
99
|
+
}
|
|
60
100
|
const ref = hostRef;
|
|
61
101
|
hostElement.__stencil__getHostRef = () => ref;
|
|
62
102
|
return ref;
|
|
@@ -132,6 +172,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
132
172
|
}
|
|
133
173
|
return false;
|
|
134
174
|
})() ;
|
|
175
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
135
176
|
var queuePending = false;
|
|
136
177
|
var queueDomReads = [];
|
|
137
178
|
var queueDomWrites = [];
|
|
@@ -250,7 +291,13 @@ function createShadowRoot(cmpMeta) {
|
|
|
250
291
|
var _a;
|
|
251
292
|
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
252
293
|
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
253
|
-
if (globalStyleSheet)
|
|
294
|
+
if (globalStyleSheet) {
|
|
295
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
296
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
297
|
+
} else {
|
|
298
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
299
|
+
}
|
|
300
|
+
}
|
|
254
301
|
}
|
|
255
302
|
var createTime = (fnName, tagName = "") => {
|
|
256
303
|
{
|
|
@@ -317,7 +364,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
317
364
|
if (supportsConstructableStylesheets) {
|
|
318
365
|
const stylesheet = new CSSStyleSheet();
|
|
319
366
|
stylesheet.replaceSync(style);
|
|
320
|
-
|
|
367
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
368
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
369
|
+
} else {
|
|
370
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
371
|
+
}
|
|
321
372
|
} else {
|
|
322
373
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
323
374
|
if (existingStyleContainer) {
|
|
@@ -342,7 +393,11 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
393
|
}
|
|
343
394
|
}
|
|
344
395
|
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
345
|
-
|
|
396
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
397
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
398
|
+
} else {
|
|
399
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
400
|
+
}
|
|
346
401
|
}
|
|
347
402
|
}
|
|
348
403
|
return scopeId2;
|
|
@@ -452,7 +507,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
452
507
|
}
|
|
453
508
|
return propValue;
|
|
454
509
|
};
|
|
455
|
-
var getElement = (ref) =>
|
|
510
|
+
var getElement = (ref) => {
|
|
511
|
+
var _a;
|
|
512
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
513
|
+
};
|
|
456
514
|
var emitEvent = (elm, name, opts) => {
|
|
457
515
|
const ev = plt.ce(name, opts);
|
|
458
516
|
elm.dispatchEvent(ev);
|
|
@@ -819,6 +877,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
819
877
|
}
|
|
820
878
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
821
879
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
880
|
+
if (isInitialLoad) {
|
|
881
|
+
queueMicrotask(() => {
|
|
882
|
+
dispatch();
|
|
883
|
+
});
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
822
886
|
return writeTask(dispatch) ;
|
|
823
887
|
};
|
|
824
888
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -832,6 +896,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
832
896
|
}
|
|
833
897
|
let maybePromise;
|
|
834
898
|
if (isInitialLoad) {
|
|
899
|
+
{
|
|
900
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
901
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
902
|
+
}
|
|
903
|
+
}
|
|
835
904
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
836
905
|
} else {
|
|
837
906
|
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
@@ -953,6 +1022,9 @@ var addHydratedFlag = (elm) => {
|
|
|
953
1022
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
954
1023
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
955
1024
|
const hostRef = getHostRef(ref);
|
|
1025
|
+
if (!hostRef) {
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
956
1028
|
if (!hostRef) {
|
|
957
1029
|
throw new Error(
|
|
958
1030
|
`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).`
|
|
@@ -998,9 +1070,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
998
1070
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
999
1071
|
var _a, _b;
|
|
1000
1072
|
const prototype = Cstr.prototype;
|
|
1001
|
-
if (cmpMeta.$members$ ||
|
|
1002
|
-
|
|
1003
|
-
cmpMeta.$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
|
+
}
|
|
1004
1084
|
}
|
|
1005
1085
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1006
1086
|
members.map(([memberName, [memberFlags]]) => {
|
|
@@ -1028,12 +1108,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1028
1108
|
Object.defineProperty(prototype, memberName, {
|
|
1029
1109
|
set(newValue) {
|
|
1030
1110
|
const ref = getHostRef(this);
|
|
1111
|
+
if (!ref) {
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1031
1114
|
if (origSetter) {
|
|
1032
1115
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1033
1116
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1034
1117
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1035
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1036
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1037
1118
|
}
|
|
1038
1119
|
origSetter.apply(this, [
|
|
1039
1120
|
parsePropertyValue(
|
|
@@ -1048,7 +1129,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1048
1129
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1049
1130
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1050
1131
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1051
|
-
ref.$
|
|
1132
|
+
ref.$fetchedCbList$.push(() => {
|
|
1052
1133
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1053
1134
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1054
1135
|
}
|
|
@@ -1069,7 +1150,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1069
1150
|
if (ref.$lazyInstance$) {
|
|
1070
1151
|
setterSetVal();
|
|
1071
1152
|
} else {
|
|
1072
|
-
ref.$
|
|
1153
|
+
ref.$fetchedCbList$.push(() => {
|
|
1154
|
+
setterSetVal();
|
|
1155
|
+
});
|
|
1073
1156
|
}
|
|
1074
1157
|
}
|
|
1075
1158
|
}
|
|
@@ -1082,16 +1165,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1082
1165
|
plt.jmp(() => {
|
|
1083
1166
|
var _a2;
|
|
1084
1167
|
const propName = attrNameToPropName.get(attrName);
|
|
1168
|
+
const hostRef = getHostRef(this);
|
|
1085
1169
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1086
1170
|
newValue = this[propName];
|
|
1087
1171
|
delete this[propName];
|
|
1088
|
-
}
|
|
1172
|
+
}
|
|
1173
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1089
1174
|
this[propName] == newValue) {
|
|
1090
1175
|
return;
|
|
1091
1176
|
} else if (propName == null) {
|
|
1092
|
-
const hostRef = getHostRef(this);
|
|
1093
1177
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1094
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1178
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1095
1179
|
const instance = hostRef.$lazyInstance$ ;
|
|
1096
1180
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1097
1181
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -1102,9 +1186,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1102
1186
|
}
|
|
1103
1187
|
return;
|
|
1104
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
|
+
}
|
|
1105
1193
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1106
|
-
|
|
1107
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1194
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1108
1195
|
this[propName] = newValue;
|
|
1109
1196
|
}
|
|
1110
1197
|
});
|
|
@@ -1112,7 +1199,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1112
1199
|
Cstr.observedAttributes = Array.from(
|
|
1113
1200
|
/* @__PURE__ */ new Set([
|
|
1114
1201
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1115
|
-
...members.filter(([_, m]) => m[0] &
|
|
1202
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1116
1203
|
const attrName = m[1] || propName;
|
|
1117
1204
|
attrNameToPropName.set(attrName, propName);
|
|
1118
1205
|
return attrName;
|
|
@@ -1145,6 +1232,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1145
1232
|
if (!Cstr.isProxied) {
|
|
1146
1233
|
{
|
|
1147
1234
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1235
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1236
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1148
1237
|
}
|
|
1149
1238
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1150
1239
|
Cstr.isProxied = true;
|
|
@@ -1202,6 +1291,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
1202
1291
|
var connectedCallback = (elm) => {
|
|
1203
1292
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1204
1293
|
const hostRef = getHostRef(elm);
|
|
1294
|
+
if (!hostRef) {
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1205
1297
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1206
1298
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1207
1299
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1217,7 +1309,7 @@ var connectedCallback = (elm) => {
|
|
|
1217
1309
|
}
|
|
1218
1310
|
if (cmpMeta.$members$) {
|
|
1219
1311
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1220
|
-
if (memberFlags & 31 /* Prop */ && elm.
|
|
1312
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
1221
1313
|
const value = elm[memberName];
|
|
1222
1314
|
delete elm[memberName];
|
|
1223
1315
|
elm[memberName] = value;
|
|
@@ -1281,7 +1373,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1281
1373
|
let hasSlotRelocation = false;
|
|
1282
1374
|
lazyBundles.map((lazyBundle) => {
|
|
1283
1375
|
lazyBundle[1].map((compactMeta) => {
|
|
1284
|
-
var _a2;
|
|
1376
|
+
var _a2, _b, _c;
|
|
1285
1377
|
const cmpMeta = {
|
|
1286
1378
|
$flags$: compactMeta[0],
|
|
1287
1379
|
$tagName$: compactMeta[1],
|
|
@@ -1296,6 +1388,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1296
1388
|
}
|
|
1297
1389
|
{
|
|
1298
1390
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1391
|
+
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
1392
|
+
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
1299
1393
|
}
|
|
1300
1394
|
const tagName = cmpMeta.$tagName$;
|
|
1301
1395
|
const HostElement = class extends HTMLElement {
|
|
@@ -1320,7 +1414,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1320
1414
|
}
|
|
1321
1415
|
}
|
|
1322
1416
|
connectedCallback() {
|
|
1323
|
-
getHostRef(this);
|
|
1417
|
+
const hostRef = getHostRef(this);
|
|
1418
|
+
if (!hostRef) {
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1324
1421
|
if (!this.hasRegisteredEventListeners) {
|
|
1325
1422
|
this.hasRegisteredEventListeners = true;
|
|
1326
1423
|
}
|
|
@@ -1339,6 +1436,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1339
1436
|
plt.raf(() => {
|
|
1340
1437
|
var _a3;
|
|
1341
1438
|
const hostRef = getHostRef(this);
|
|
1439
|
+
if (!hostRef) {
|
|
1440
|
+
return;
|
|
1441
|
+
}
|
|
1342
1442
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1343
1443
|
if (i2 > -1) {
|
|
1344
1444
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -1349,7 +1449,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1349
1449
|
});
|
|
1350
1450
|
}
|
|
1351
1451
|
componentOnReady() {
|
|
1352
|
-
|
|
1452
|
+
var _a3;
|
|
1453
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1353
1454
|
}
|
|
1354
1455
|
};
|
|
1355
1456
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -1401,6 +1502,6 @@ exports.promiseResolve = promiseResolve;
|
|
|
1401
1502
|
exports.registerInstance = registerInstance;
|
|
1402
1503
|
exports.setAssetPath = setAssetPath;
|
|
1403
1504
|
exports.setNonce = setNonce;
|
|
1404
|
-
//# sourceMappingURL=index-
|
|
1505
|
+
//# sourceMappingURL=index-HU55KNQP.js.map
|
|
1405
1506
|
|
|
1406
|
-
//# sourceMappingURL=index-
|
|
1507
|
+
//# sourceMappingURL=index-HU55KNQP.js.map
|