@uh-design-system/component-library 0.0.1-alpha.9

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 (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/dist/cjs/app-globals-67d97547.js +506 -0
  4. package/dist/cjs/app-globals-67d97547.js.map +1 -0
  5. package/dist/cjs/component-library.cjs.js +26 -0
  6. package/dist/cjs/component-library.cjs.js.map +1 -0
  7. package/dist/cjs/index.cjs.js +4 -0
  8. package/dist/cjs/index.cjs.js.map +1 -0
  9. package/dist/cjs/loader.cjs.js +16 -0
  10. package/dist/cjs/loader.cjs.js.map +1 -0
  11. package/dist/collection/collection-manifest.json +10 -0
  12. package/dist/component-library/component-library.esm.js +2 -0
  13. package/dist/component-library/component-library.esm.js.map +1 -0
  14. package/dist/component-library/index.esm.js +2 -0
  15. package/dist/component-library/index.esm.js.map +1 -0
  16. package/dist/component-library/p-a49d7588.js +3 -0
  17. package/dist/component-library/p-a49d7588.js.map +1 -0
  18. package/dist/components/index.d.ts +33 -0
  19. package/dist/components/index.js +84 -0
  20. package/dist/components/index.js.map +1 -0
  21. package/dist/esm/app-globals-cde8e66f.js +481 -0
  22. package/dist/esm/app-globals-cde8e66f.js.map +1 -0
  23. package/dist/esm/component-library.js +21 -0
  24. package/dist/esm/component-library.js.map +1 -0
  25. package/dist/esm/index.js +3 -0
  26. package/dist/esm/index.js.map +1 -0
  27. package/dist/esm/loader.js +12 -0
  28. package/dist/esm/loader.js.map +1 -0
  29. package/dist/index.cjs.js +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/types/Users/teemuparssinen/hy/uh-design-system/uh-component-library/.stencil/index.d.ts +11 -0
  33. package/dist/types/Users/teemuparssinen/hy/uh-design-system/uh-component-library/.stencil/utils/utils.d.ts +1 -0
  34. package/dist/types/components.d.ts +24 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  36. package/dist/utils/utils.js +4 -0
  37. package/dist/utils/utils.js.map +1 -0
  38. package/docs/DEPLOYMENT.md +53 -0
  39. package/docs/DEVELOPMENT.md +52 -0
  40. package/docs/PUBLISHING.md +33 -0
  41. package/docs/TESTING.md +24 -0
  42. package/loader/cdn.js +1 -0
  43. package/loader/index.cjs.js +1 -0
  44. package/loader/index.d.ts +24 -0
  45. package/loader/index.es2017.js +1 -0
  46. package/loader/index.js +2 -0
  47. package/loader/package.json +11 -0
  48. package/package.json +96 -0
  49. package/react-wrapper/components.ts +0 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # University of Helsinki Design System Component Library
2
+
3
+ This project is a component library for the University of Helsinki Design System. It provides reusable components to ensure a consistent design across various applications.
4
+
5
+ > **Warning:** This work is still in progress. At the moment, all the components should not be used in production.
6
+
7
+ ## Documentation
8
+
9
+ - [DEVELOPMENT.md](docs/DEVELOPMENT.md)
10
+ - [DEPLOYMENT.md](docs/DEPLOYMENT.md)
11
+ - [TESTING.md](docs/TESTING.md)
12
+ - [PUBLISHING.md](docs/PUBLISHING.md)
@@ -0,0 +1,506 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'component-library';
24
+ const BUILD = /* component-library */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: false, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: false, method: false, mode: false, observeAttribute: false, profile: false, prop: false, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: false, svg: false, taskQueue: true, transformTagName: false, updatable: false, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
25
+
26
+ /*
27
+ Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
28
+ */
29
+ var __defProp = Object.defineProperty;
30
+ var __export = (target, all) => {
31
+ for (var name in all)
32
+ __defProp(target, name, { get: all[name], enumerable: true });
33
+ };
34
+ var hostRefs = /* @__PURE__ */ new WeakMap();
35
+ var getHostRef = (ref) => hostRefs.get(ref);
36
+ var registerHost = (hostElement, cmpMeta) => {
37
+ const hostRef = {
38
+ $flags$: 0,
39
+ $hostElement$: hostElement,
40
+ $cmpMeta$: cmpMeta,
41
+ $instanceValues$: /* @__PURE__ */ new Map()
42
+ };
43
+ {
44
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
45
+ hostElement["s-p"] = [];
46
+ hostElement["s-rc"] = [];
47
+ }
48
+ return hostRefs.set(hostElement, hostRef);
49
+ };
50
+ var consoleError = (e, el) => (0, console.error)(e, el);
51
+
52
+ // src/client/client-load-module.ts
53
+ var cmpModules = /* @__PURE__ */ new Map();
54
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
55
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
56
+ const bundleId = cmpMeta.$lazyBundleId$;
57
+ if (!bundleId) {
58
+ return void 0;
59
+ }
60
+ const module = cmpModules.get(bundleId) ;
61
+ if (module) {
62
+ return module[exportName];
63
+ }
64
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
65
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
66
+ /* @vite-ignore */
67
+ /* webpackInclude: /\.entry\.js$/ */
68
+ /* webpackExclude: /\.system\.entry\.js$/ */
69
+ /* webpackMode: "lazy" */
70
+ `./${bundleId}.entry.js${""}`
71
+ )); }).then((importedModule) => {
72
+ {
73
+ cmpModules.set(bundleId, importedModule);
74
+ }
75
+ return importedModule[exportName];
76
+ }, consoleError);
77
+ };
78
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
79
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
80
+ var win = typeof window !== "undefined" ? window : {};
81
+ var doc = win.document || { head: {} };
82
+ var plt = {
83
+ $flags$: 0,
84
+ $resourcesUrl$: "",
85
+ jmp: (h2) => h2(),
86
+ raf: (h2) => requestAnimationFrame(h2),
87
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
88
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
89
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
90
+ };
91
+ var promiseResolve = (v) => Promise.resolve(v);
92
+ var queuePending = false;
93
+ var queueDomReads = [];
94
+ var queueDomWrites = [];
95
+ var queueTask = (queue, write) => (cb) => {
96
+ queue.push(cb);
97
+ if (!queuePending) {
98
+ queuePending = true;
99
+ if (write && plt.$flags$ & 4 /* queueSync */) {
100
+ nextTick(flush);
101
+ } else {
102
+ plt.raf(flush);
103
+ }
104
+ }
105
+ };
106
+ var consume = (queue) => {
107
+ for (let i2 = 0; i2 < queue.length; i2++) {
108
+ try {
109
+ queue[i2](performance.now());
110
+ } catch (e) {
111
+ consoleError(e);
112
+ }
113
+ }
114
+ queue.length = 0;
115
+ };
116
+ var flush = () => {
117
+ consume(queueDomReads);
118
+ {
119
+ consume(queueDomWrites);
120
+ if (queuePending = queueDomReads.length > 0) {
121
+ plt.raf(flush);
122
+ }
123
+ }
124
+ };
125
+ var nextTick = (cb) => promiseResolve().then(cb);
126
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
127
+
128
+ // src/utils/query-nonce-meta-tag-content.ts
129
+ function queryNonceMetaTagContent(doc2) {
130
+ var _a, _b, _c;
131
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
132
+ }
133
+
134
+ // src/utils/result.ts
135
+ var result_exports = {};
136
+ __export(result_exports, {
137
+ err: () => err,
138
+ map: () => map,
139
+ ok: () => ok,
140
+ unwrap: () => unwrap,
141
+ unwrapErr: () => unwrapErr
142
+ });
143
+ var ok = (value) => ({
144
+ isOk: true,
145
+ isErr: false,
146
+ value
147
+ });
148
+ var err = (value) => ({
149
+ isOk: false,
150
+ isErr: true,
151
+ value
152
+ });
153
+ function map(result, fn) {
154
+ if (result.isOk) {
155
+ const val = fn(result.value);
156
+ if (val instanceof Promise) {
157
+ return val.then((newVal) => ok(newVal));
158
+ } else {
159
+ return ok(val);
160
+ }
161
+ }
162
+ if (result.isErr) {
163
+ const value = result.value;
164
+ return err(value);
165
+ }
166
+ throw "should never get here";
167
+ }
168
+ var unwrap = (result) => {
169
+ if (result.isOk) {
170
+ return result.value;
171
+ } else {
172
+ throw result.value;
173
+ }
174
+ };
175
+ var unwrapErr = (result) => {
176
+ if (result.isErr) {
177
+ return result.value;
178
+ } else {
179
+ throw result.value;
180
+ }
181
+ };
182
+ var createTime = (fnName, tagName = "") => {
183
+ {
184
+ return () => {
185
+ return;
186
+ };
187
+ }
188
+ };
189
+ var uniqueTime = (key, measureText) => {
190
+ {
191
+ return () => {
192
+ return;
193
+ };
194
+ }
195
+ };
196
+ var emitEvent = (elm, name, opts) => {
197
+ const ev = plt.ce(name, opts);
198
+ elm.dispatchEvent(ev);
199
+ return ev;
200
+ };
201
+
202
+ // src/runtime/update-component.ts
203
+ var attachToAncestor = (hostRef, ancestorComponent) => {
204
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
205
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
206
+ }
207
+ };
208
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
209
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
210
+ hostRef.$flags$ |= 512 /* needsRerender */;
211
+ return;
212
+ }
213
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
214
+ const dispatch = () => dispatchHooks(hostRef);
215
+ return writeTask(dispatch) ;
216
+ };
217
+ var dispatchHooks = (hostRef, isInitialLoad) => {
218
+ const elm = hostRef.$hostElement$;
219
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
220
+ const instance = hostRef.$lazyInstance$ ;
221
+ if (!instance) {
222
+ throw new Error(
223
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
224
+ );
225
+ }
226
+ let maybePromise;
227
+ endSchedule();
228
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance));
229
+ };
230
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
231
+ console.error(err2);
232
+ fn();
233
+ }) : fn();
234
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
235
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
236
+ var _a;
237
+ const elm = hostRef.$hostElement$;
238
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
239
+ const rc = elm["s-rc"];
240
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
241
+ {
242
+ callRender(hostRef, instance);
243
+ }
244
+ if (rc) {
245
+ rc.map((cb) => cb());
246
+ elm["s-rc"] = void 0;
247
+ }
248
+ endRender();
249
+ endUpdate();
250
+ {
251
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
252
+ const postUpdate = () => postUpdateComponent(hostRef);
253
+ if (childrenPromises.length === 0) {
254
+ postUpdate();
255
+ } else {
256
+ Promise.all(childrenPromises).then(postUpdate);
257
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
258
+ childrenPromises.length = 0;
259
+ }
260
+ }
261
+ };
262
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
263
+ try {
264
+ instance = instance.render() ;
265
+ {
266
+ hostRef.$flags$ |= 2 /* hasRendered */;
267
+ }
268
+ } catch (e) {
269
+ consoleError(e, hostRef.$hostElement$);
270
+ }
271
+ return null;
272
+ };
273
+ var postUpdateComponent = (hostRef) => {
274
+ const tagName = hostRef.$cmpMeta$.$tagName$;
275
+ const elm = hostRef.$hostElement$;
276
+ const endPostUpdate = createTime("postUpdate", tagName);
277
+ const ancestorComponent = hostRef.$ancestorComponent$;
278
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
279
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
280
+ {
281
+ addHydratedFlag(elm);
282
+ }
283
+ endPostUpdate();
284
+ {
285
+ hostRef.$onReadyResolve$(elm);
286
+ if (!ancestorComponent) {
287
+ appDidLoad();
288
+ }
289
+ }
290
+ } else {
291
+ endPostUpdate();
292
+ }
293
+ {
294
+ if (hostRef.$onRenderResolve$) {
295
+ hostRef.$onRenderResolve$();
296
+ hostRef.$onRenderResolve$ = void 0;
297
+ }
298
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
299
+ nextTick(() => scheduleUpdate(hostRef));
300
+ }
301
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
302
+ }
303
+ };
304
+ var appDidLoad = (who) => {
305
+ {
306
+ addHydratedFlag(doc.documentElement);
307
+ }
308
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
309
+ };
310
+ var addHydratedFlag = (elm) => {
311
+ var _a;
312
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
313
+ };
314
+
315
+ // src/runtime/proxy-component.ts
316
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
317
+ return Cstr;
318
+ };
319
+
320
+ // src/runtime/initialize-component.ts
321
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
322
+ let Cstr;
323
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
324
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
325
+ const bundleId = cmpMeta.$lazyBundleId$;
326
+ if (bundleId) {
327
+ const CstrImport = loadModule(cmpMeta);
328
+ if (CstrImport && "then" in CstrImport) {
329
+ const endLoad = uniqueTime();
330
+ Cstr = await CstrImport;
331
+ endLoad();
332
+ } else {
333
+ Cstr = CstrImport;
334
+ }
335
+ if (!Cstr) {
336
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
337
+ }
338
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
339
+ try {
340
+ new Cstr(hostRef);
341
+ } catch (e) {
342
+ consoleError(e);
343
+ }
344
+ endNewInstance();
345
+ } else {
346
+ Cstr = elm.constructor;
347
+ const cmpTag = elm.localName;
348
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
349
+ }
350
+ }
351
+ const ancestorComponent = hostRef.$ancestorComponent$;
352
+ const schedule = () => scheduleUpdate(hostRef);
353
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
354
+ ancestorComponent["s-rc"].push(schedule);
355
+ } else {
356
+ schedule();
357
+ }
358
+ };
359
+ var fireConnectedCallback = (instance) => {
360
+ };
361
+
362
+ // src/runtime/connected-callback.ts
363
+ var connectedCallback = (elm) => {
364
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
365
+ const hostRef = getHostRef(elm);
366
+ const cmpMeta = hostRef.$cmpMeta$;
367
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
368
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
369
+ hostRef.$flags$ |= 1 /* hasConnected */;
370
+ {
371
+ let ancestorComponent = elm;
372
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
373
+ if (ancestorComponent["s-p"]) {
374
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
375
+ break;
376
+ }
377
+ }
378
+ }
379
+ {
380
+ initializeComponent(elm, hostRef, cmpMeta);
381
+ }
382
+ } else {
383
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
384
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
385
+ }
386
+ }
387
+ endConnected();
388
+ }
389
+ };
390
+ var disconnectInstance = (instance) => {
391
+ };
392
+ var disconnectedCallback = async (elm) => {
393
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
394
+ const hostRef = getHostRef(elm);
395
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
396
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
397
+ }
398
+ }
399
+ };
400
+
401
+ // src/runtime/bootstrap-lazy.ts
402
+ var bootstrapLazy = (lazyBundles, options = {}) => {
403
+ var _a;
404
+ const endBootstrap = createTime();
405
+ const cmpTags = [];
406
+ const exclude = options.exclude || [];
407
+ const customElements2 = win.customElements;
408
+ const head = doc.head;
409
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
410
+ const dataStyles = /* @__PURE__ */ doc.createElement("style");
411
+ const deferredConnectedCallbacks = [];
412
+ let appLoadFallback;
413
+ let isBootstrapping = true;
414
+ Object.assign(plt, options);
415
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
416
+ let hasSlotRelocation = false;
417
+ lazyBundles.map((lazyBundle) => {
418
+ lazyBundle[1].map((compactMeta) => {
419
+ const cmpMeta = {
420
+ $flags$: compactMeta[0],
421
+ $tagName$: compactMeta[1],
422
+ $members$: compactMeta[2],
423
+ $listeners$: compactMeta[3]
424
+ };
425
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
426
+ hasSlotRelocation = true;
427
+ }
428
+ const tagName = cmpMeta.$tagName$;
429
+ const HostElement = class extends HTMLElement {
430
+ // StencilLazyHost
431
+ constructor(self) {
432
+ super(self);
433
+ this.hasRegisteredEventListeners = false;
434
+ self = this;
435
+ registerHost(self, cmpMeta);
436
+ }
437
+ connectedCallback() {
438
+ getHostRef(this);
439
+ if (!this.hasRegisteredEventListeners) {
440
+ this.hasRegisteredEventListeners = true;
441
+ }
442
+ if (appLoadFallback) {
443
+ clearTimeout(appLoadFallback);
444
+ appLoadFallback = null;
445
+ }
446
+ if (isBootstrapping) {
447
+ deferredConnectedCallbacks.push(this);
448
+ } else {
449
+ plt.jmp(() => connectedCallback(this));
450
+ }
451
+ }
452
+ disconnectedCallback() {
453
+ plt.jmp(() => disconnectedCallback(this));
454
+ }
455
+ componentOnReady() {
456
+ return getHostRef(this).$onReadyPromise$;
457
+ }
458
+ };
459
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
460
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
461
+ cmpTags.push(tagName);
462
+ customElements2.define(
463
+ tagName,
464
+ proxyComponent(HostElement)
465
+ );
466
+ }
467
+ });
468
+ });
469
+ if (cmpTags.length > 0) {
470
+ if (hasSlotRelocation) {
471
+ dataStyles.textContent += SLOT_FB_CSS;
472
+ }
473
+ {
474
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
475
+ }
476
+ if (dataStyles.innerHTML.length) {
477
+ dataStyles.setAttribute("data-styles", "");
478
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
479
+ if (nonce != null) {
480
+ dataStyles.setAttribute("nonce", nonce);
481
+ }
482
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
483
+ }
484
+ }
485
+ isBootstrapping = false;
486
+ if (deferredConnectedCallbacks.length) {
487
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
488
+ } else {
489
+ {
490
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
491
+ }
492
+ }
493
+ endBootstrap();
494
+ };
495
+
496
+ // src/runtime/nonce.ts
497
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
498
+
499
+ const globalScripts = () => {};
500
+
501
+ exports.bootstrapLazy = bootstrapLazy;
502
+ exports.globalScripts = globalScripts;
503
+ exports.promiseResolve = promiseResolve;
504
+ exports.setNonce = setNonce;
505
+
506
+ //# sourceMappingURL=app-globals-67d97547.js.map