@everymatrix/bonus-pagination-nav 1.53.0 → 1.53.11

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 (20) hide show
  1. package/dist/bonus-pagination-nav/bonus-pagination-nav.esm.js +1 -1
  2. package/dist/bonus-pagination-nav/p-99964a80.entry.js +1 -0
  3. package/dist/bonus-pagination-nav/p-fd2a6918.js +2 -0
  4. package/dist/cjs/bonus-pagination-nav.cjs.entry.js +33 -3
  5. package/dist/cjs/bonus-pagination-nav.cjs.js +2 -2
  6. package/dist/cjs/{index-10e16208.js → index-97f58835.js} +162 -64
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/bonus-pagination-nav/bonus-pagination-nav.js +54 -2
  10. package/dist/esm/bonus-pagination-nav.entry.js +33 -3
  11. package/dist/esm/bonus-pagination-nav.js +3 -3
  12. package/dist/esm/{index-94427c87.js → index-892b1dc4.js} +162 -64
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/bonus-pagination-nav/p-493062dd.entry.js +0 -1
  18. package/dist/bonus-pagination-nav/p-8bf2c2f3.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.dev.d.ts +0 -2
@@ -2,19 +2,49 @@ import { h } from "@stencil/core";
2
2
  import { translate, TRANSLATIONS } from "../../utils/locale.utils";
3
3
  export class BonusPaginationNav {
4
4
  constructor() {
5
+ /**
6
+ * The received length of dataset
7
+ */
5
8
  this.total = 1;
9
+ /**
10
+ * The received limit for the number of pages
11
+ */
6
12
  this.limit = 10;
13
+ /**
14
+ * The offset of dataset
15
+ */
7
16
  this.offset = 0;
17
+ /**
18
+ * The table id, use to identify which table listen the page change message
19
+ * when there is more than 1 table on same page
20
+ */
8
21
  this.tableId = 'default';
22
+ /**
23
+ * Language
24
+ */
9
25
  this.language = 'en';
26
+ /**
27
+ * Translation via url
28
+ */
10
29
  this.translationUrl = '';
30
+ /**
31
+ * Customize pagination: Activate pagination arrows
32
+ */
11
33
  this.arrowsActive = true;
34
+ /**
35
+ * Customize pagination: Activate pagination secondary arrows
36
+ */
12
37
  this.secondaryArrowsActive = true;
38
+ /**
39
+ * Customize pagination: Activate pagination numbered navigation
40
+ */
13
41
  this.displayPageNumbers = true;
14
- this.displayRangeOfTotal = undefined;
42
+ /**
43
+ * The Nav Items count for the pagination, default: 5
44
+ * the value should be Odd, 5, 7
45
+ */
15
46
  this.navItemAccount = 5;
16
47
  this.endPageIndex = 0;
17
- this.pagesArray = undefined;
18
48
  this.currentPage = 1;
19
49
  this.showAsEllipsisMid = !this.arrowsActive;
20
50
  }
@@ -169,6 +199,8 @@ export class BonusPaginationNav {
169
199
  "tags": [],
170
200
  "text": "The received length of dataset"
171
201
  },
202
+ "getter": false,
203
+ "setter": false,
172
204
  "attribute": "total",
173
205
  "reflect": true,
174
206
  "defaultValue": "1"
@@ -187,6 +219,8 @@ export class BonusPaginationNav {
187
219
  "tags": [],
188
220
  "text": "The received limit for the number of pages"
189
221
  },
222
+ "getter": false,
223
+ "setter": false,
190
224
  "attribute": "limit",
191
225
  "reflect": true,
192
226
  "defaultValue": "10"
@@ -205,6 +239,8 @@ export class BonusPaginationNav {
205
239
  "tags": [],
206
240
  "text": "The offset of dataset"
207
241
  },
242
+ "getter": false,
243
+ "setter": false,
208
244
  "attribute": "offset",
209
245
  "reflect": true,
210
246
  "defaultValue": "0"
@@ -223,6 +259,8 @@ export class BonusPaginationNav {
223
259
  "tags": [],
224
260
  "text": "The table id, use to identify which table listen the page change message\nwhen there is more than 1 table on same page"
225
261
  },
262
+ "getter": false,
263
+ "setter": false,
226
264
  "attribute": "table-id",
227
265
  "reflect": true,
228
266
  "defaultValue": "'default'"
@@ -241,6 +279,8 @@ export class BonusPaginationNav {
241
279
  "tags": [],
242
280
  "text": "Language"
243
281
  },
282
+ "getter": false,
283
+ "setter": false,
244
284
  "attribute": "language",
245
285
  "reflect": true,
246
286
  "defaultValue": "'en'"
@@ -259,6 +299,8 @@ export class BonusPaginationNav {
259
299
  "tags": [],
260
300
  "text": "Translation via url"
261
301
  },
302
+ "getter": false,
303
+ "setter": false,
262
304
  "attribute": "translation-url",
263
305
  "reflect": true,
264
306
  "defaultValue": "''"
@@ -277,6 +319,8 @@ export class BonusPaginationNav {
277
319
  "tags": [],
278
320
  "text": "Customize pagination: Activate pagination arrows"
279
321
  },
322
+ "getter": false,
323
+ "setter": false,
280
324
  "attribute": "arrows-active",
281
325
  "reflect": true,
282
326
  "defaultValue": "true"
@@ -295,6 +339,8 @@ export class BonusPaginationNav {
295
339
  "tags": [],
296
340
  "text": "Customize pagination: Activate pagination secondary arrows"
297
341
  },
342
+ "getter": false,
343
+ "setter": false,
298
344
  "attribute": "secondary-arrows-active",
299
345
  "reflect": true,
300
346
  "defaultValue": "true"
@@ -313,6 +359,8 @@ export class BonusPaginationNav {
313
359
  "tags": [],
314
360
  "text": "Customize pagination: Activate pagination numbered navigation"
315
361
  },
362
+ "getter": false,
363
+ "setter": false,
316
364
  "attribute": "display-page-numbers",
317
365
  "reflect": true,
318
366
  "defaultValue": "true"
@@ -331,6 +379,8 @@ export class BonusPaginationNav {
331
379
  "tags": [],
332
380
  "text": "If show the page of message, eg: `1-20 of 100`"
333
381
  },
382
+ "getter": false,
383
+ "setter": false,
334
384
  "attribute": "display-range-of-total",
335
385
  "reflect": true
336
386
  },
@@ -348,6 +398,8 @@ export class BonusPaginationNav {
348
398
  "tags": [],
349
399
  "text": "The Nav Items count for the pagination, default: 5\nthe value should be Odd, 5, 7"
350
400
  },
401
+ "getter": false,
402
+ "setter": false,
351
403
  "attribute": "nav-item-account",
352
404
  "reflect": true,
353
405
  "defaultValue": "5"
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-94427c87.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-892b1dc4.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
@@ -58,19 +58,49 @@ const BonusPaginationNav = class {
58
58
  constructor(hostRef) {
59
59
  registerInstance(this, hostRef);
60
60
  this.reloadPageEmitter = createEvent(this, "reloadPageByType", 7);
61
+ /**
62
+ * The received length of dataset
63
+ */
61
64
  this.total = 1;
65
+ /**
66
+ * The received limit for the number of pages
67
+ */
62
68
  this.limit = 10;
69
+ /**
70
+ * The offset of dataset
71
+ */
63
72
  this.offset = 0;
73
+ /**
74
+ * The table id, use to identify which table listen the page change message
75
+ * when there is more than 1 table on same page
76
+ */
64
77
  this.tableId = 'default';
78
+ /**
79
+ * Language
80
+ */
65
81
  this.language = 'en';
82
+ /**
83
+ * Translation via url
84
+ */
66
85
  this.translationUrl = '';
86
+ /**
87
+ * Customize pagination: Activate pagination arrows
88
+ */
67
89
  this.arrowsActive = true;
90
+ /**
91
+ * Customize pagination: Activate pagination secondary arrows
92
+ */
68
93
  this.secondaryArrowsActive = true;
94
+ /**
95
+ * Customize pagination: Activate pagination numbered navigation
96
+ */
69
97
  this.displayPageNumbers = true;
70
- this.displayRangeOfTotal = undefined;
98
+ /**
99
+ * The Nav Items count for the pagination, default: 5
100
+ * the value should be Odd, 5, 7
101
+ */
71
102
  this.navItemAccount = 5;
72
103
  this.endPageIndex = 0;
73
- this.pagesArray = undefined;
74
104
  this.currentPage = 1;
75
105
  this.showAsEllipsisMid = !this.arrowsActive;
76
106
  }
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-94427c87.js';
2
- export { s as setNonce } from './index-94427c87.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-892b1dc4.js';
2
+ export { s as setNonce } from './index-892b1dc4.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'bonus-pagination-nav';
2
- const BUILD = /* bonus-pagination-nav */ { 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: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* bonus-pagination-nav */ { 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: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -145,12 +156,6 @@ var flush = () => {
145
156
  };
146
157
  var nextTick = (cb) => promiseResolve().then(cb);
147
158
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
148
-
149
- // src/utils/constants.ts
150
- var EMPTY_OBJ = {};
151
-
152
- // src/utils/helpers.ts
153
- var isDef = (v) => v != null;
154
159
  var isComplexType = (o) => {
155
160
  o = typeof o;
156
161
  return o === "object" || o === "function";
@@ -354,7 +359,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
354
359
  }
355
360
  if (!appliedStyles.has(scopeId2)) {
356
361
  {
357
- styleElm = doc.createElement("style");
362
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
358
363
  styleElm.innerHTML = style;
359
364
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
360
365
  if (nonce != null) {
@@ -364,7 +369,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
369
  if (styleContainerNode.nodeName === "HEAD") {
365
370
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
366
371
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
367
- styleContainerNode.insertBefore(styleElm, referenceNode2);
372
+ styleContainerNode.insertBefore(
373
+ styleElm,
374
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
375
+ );
368
376
  } else if ("host" in styleContainerNode) {
369
377
  if (supportsConstructableStylesheets) {
370
378
  const stylesheet = new CSSStyleSheet();
@@ -409,16 +417,18 @@ var attachStyles = (hostRef) => {
409
417
  endAttachStyles();
410
418
  };
411
419
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
412
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
420
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
413
421
  if (oldValue !== newValue) {
414
422
  let isProp = isMemberInElement(elm, memberName);
415
423
  let ln = memberName.toLowerCase();
416
424
  if (memberName === "class") {
417
425
  const classList = elm.classList;
418
426
  const oldClasses = parseClassList(oldValue);
419
- const newClasses = parseClassList(newValue);
420
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
421
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
427
+ let newClasses = parseClassList(newValue);
428
+ {
429
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
430
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
431
+ }
422
432
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
423
433
  if (memberName[2] === "-") {
424
434
  memberName = memberName.slice(3);
@@ -452,7 +462,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
452
462
  elm.setAttribute(memberName, n);
453
463
  }
454
464
  }
455
- } else {
465
+ } else if (elm[memberName] !== newValue) {
456
466
  elm[memberName] = newValue;
457
467
  }
458
468
  } catch (e) {
@@ -474,24 +484,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
474
484
  }
475
485
  };
476
486
  var parseClassListRegex = /\s/;
477
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
487
+ var parseClassList = (value) => {
488
+ if (typeof value === "object" && value && "baseVal" in value) {
489
+ value = value.baseVal;
490
+ }
491
+ if (!value || typeof value !== "string") {
492
+ return [];
493
+ }
494
+ return value.split(parseClassListRegex);
495
+ };
478
496
  var CAPTURE_EVENT_SUFFIX = "Capture";
479
497
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
480
498
 
481
499
  // src/runtime/vdom/update-element.ts
482
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
500
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
483
501
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
484
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
485
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
502
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
503
+ const newVnodeAttrs = newVnode.$attrs$ || {};
486
504
  {
487
505
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
488
506
  if (!(memberName in newVnodeAttrs)) {
489
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
507
+ setAccessor(
508
+ elm,
509
+ memberName,
510
+ oldVnodeAttrs[memberName],
511
+ void 0,
512
+ isSvgMode2,
513
+ newVnode.$flags$);
490
514
  }
491
515
  }
492
516
  }
493
517
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
494
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
518
+ setAccessor(
519
+ elm,
520
+ memberName,
521
+ oldVnodeAttrs[memberName],
522
+ newVnodeAttrs[memberName],
523
+ isSvgMode2,
524
+ newVnode.$flags$);
495
525
  }
496
526
  };
497
527
  function sortedAttrNames(attrNames) {
@@ -503,13 +533,10 @@ function sortedAttrNames(attrNames) {
503
533
  attrNames
504
534
  );
505
535
  }
506
-
507
- // src/runtime/vdom/vdom-render.ts
508
- var scopeId;
509
536
  var hostTagName;
510
537
  var useNativeShadowDom = false;
511
538
  var isSvgMode = false;
512
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
539
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
513
540
  const newVNode2 = newParentVNode.$children$[childIndex];
514
541
  let i2 = 0;
515
542
  let elm;
@@ -523,11 +550,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
523
550
  {
524
551
  updateElement(null, newVNode2, isSvgMode);
525
552
  }
526
- const rootNode = elm.getRootNode();
527
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
528
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
529
- elm.classList.add(elm["s-si"] = scopeId);
530
- }
531
553
  if (newVNode2.$children$) {
532
554
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
533
555
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -653,6 +675,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
653
675
  if (!isInitialRender) {
654
676
  return leftVNode.$key$ === rightVNode.$key$;
655
677
  }
678
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
679
+ leftVNode.$key$ = rightVNode.$key$;
680
+ }
656
681
  return true;
657
682
  }
658
683
  return false;
@@ -686,8 +711,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
686
711
  }
687
712
  };
688
713
  var insertBefore = (parent, newNode, reference) => {
689
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
690
- return inserted;
714
+ {
715
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
716
+ }
691
717
  };
692
718
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
693
719
  const hostElm = hostRef.$hostElement$;
@@ -719,7 +745,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
719
745
  // src/runtime/update-component.ts
720
746
  var attachToAncestor = (hostRef, ancestorComponent) => {
721
747
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
722
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
748
+ const index = ancestorComponent["s-p"].push(
749
+ new Promise(
750
+ (r) => hostRef.$onRenderResolve$ = () => {
751
+ ancestorComponent["s-p"].splice(index - 1, 1);
752
+ r();
753
+ }
754
+ )
755
+ );
723
756
  }
724
757
  };
725
758
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -748,13 +781,13 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
748
781
  {
749
782
  hostRef.$flags$ |= 256 /* isListenReady */;
750
783
  if (hostRef.$queuedListeners$) {
751
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
784
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
752
785
  hostRef.$queuedListeners$ = void 0;
753
786
  }
754
787
  }
755
788
  }
756
789
  {
757
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
790
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
758
791
  }
759
792
  endSchedule();
760
793
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -852,12 +885,12 @@ var appDidLoad = (who) => {
852
885
  }
853
886
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
854
887
  };
855
- var safeCall = (instance, method, arg) => {
888
+ var safeCall = (instance, method, arg, elm) => {
856
889
  if (instance && instance[method]) {
857
890
  try {
858
891
  return instance[method](arg);
859
892
  } catch (e) {
860
- consoleError(e);
893
+ consoleError(e, elm);
861
894
  }
862
895
  }
863
896
  return void 0;
@@ -900,15 +933,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
900
933
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
901
934
  members.map(([memberName, [memberFlags]]) => {
902
935
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
936
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
937
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
938
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
939
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
940
+ Object.defineProperty(prototype, memberName, {
941
+ get() {
942
+ {
943
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
944
+ return getValue(this, memberName);
945
+ }
946
+ const ref = getHostRef(this);
947
+ const instance = ref ? ref.$lazyInstance$ : prototype;
948
+ if (!instance) return;
949
+ return instance[memberName];
950
+ }
951
+ },
952
+ configurable: true,
953
+ enumerable: true
954
+ });
955
+ }
903
956
  Object.defineProperty(prototype, memberName, {
904
- get() {
905
- return getValue(this, memberName);
906
- },
907
957
  set(newValue) {
908
- setValue(this, memberName, newValue, cmpMeta);
909
- },
910
- configurable: true,
911
- enumerable: true
958
+ const ref = getHostRef(this);
959
+ if (origSetter) {
960
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
961
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
962
+ newValue = ref.$instanceValues$.get(memberName);
963
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
964
+ ref.$instanceValues$.set(memberName, currentValue);
965
+ }
966
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
967
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
968
+ setValue(this, memberName, newValue, cmpMeta);
969
+ return;
970
+ }
971
+ {
972
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
973
+ setValue(this, memberName, newValue, cmpMeta);
974
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
975
+ ref.$onReadyPromise$.then(() => {
976
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
977
+ ref.$lazyInstance$[memberName] = newValue;
978
+ }
979
+ });
980
+ }
981
+ return;
982
+ }
983
+ const setterSetVal = () => {
984
+ const currentValue = ref.$lazyInstance$[memberName];
985
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
986
+ ref.$instanceValues$.set(memberName, currentValue);
987
+ }
988
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
989
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
990
+ };
991
+ if (ref.$lazyInstance$) {
992
+ setterSetVal();
993
+ } else {
994
+ ref.$onReadyPromise$.then(() => setterSetVal());
995
+ }
996
+ }
997
+ }
912
998
  });
913
999
  }
914
1000
  });
@@ -918,7 +1004,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
918
1004
  plt.jmp(() => {
919
1005
  var _a2;
920
1006
  const propName = attrNameToPropName.get(attrName);
921
- if (this.hasOwnProperty(propName)) {
1007
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
922
1008
  newValue = this[propName];
923
1009
  delete this[propName];
924
1010
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -938,7 +1024,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
938
1024
  }
939
1025
  return;
940
1026
  }
941
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1027
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1028
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1029
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1030
+ this[propName] = newValue;
1031
+ }
942
1032
  });
943
1033
  };
944
1034
  Cstr.observedAttributes = Array.from(
@@ -965,9 +1055,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
965
1055
  let Cstr;
966
1056
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
967
1057
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
968
- const bundleId = cmpMeta.$lazyBundleId$;
969
- if (bundleId) {
970
- const CstrImport = loadModule(cmpMeta);
1058
+ {
1059
+ const CstrImport = loadModule(cmpMeta, hostRef);
971
1060
  if (CstrImport && "then" in CstrImport) {
972
1061
  const endLoad = uniqueTime();
973
1062
  Cstr = await CstrImport;
@@ -989,16 +1078,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
989
1078
  try {
990
1079
  new Cstr(hostRef);
991
1080
  } catch (e) {
992
- consoleError(e);
1081
+ consoleError(e, elm);
993
1082
  }
994
1083
  {
995
1084
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
996
1085
  }
997
1086
  endNewInstance();
998
- } else {
999
- Cstr = elm.constructor;
1000
- const cmpTag = elm.localName;
1001
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1002
1087
  }
1003
1088
  if (Cstr && Cstr.style) {
1004
1089
  let style;
@@ -1021,7 +1106,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1021
1106
  schedule();
1022
1107
  }
1023
1108
  };
1024
- var fireConnectedCallback = (instance) => {
1109
+ var fireConnectedCallback = (instance, elm) => {
1025
1110
  };
1026
1111
 
1027
1112
  // src/runtime/connected-callback.ts
@@ -1062,7 +1147,7 @@ var connectedCallback = (elm) => {
1062
1147
  endConnected();
1063
1148
  }
1064
1149
  };
1065
- var disconnectInstance = (instance) => {
1150
+ var disconnectInstance = (instance, elm) => {
1066
1151
  };
1067
1152
  var disconnectedCallback = async (elm) => {
1068
1153
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1077,6 +1162,12 @@ var disconnectedCallback = async (elm) => {
1077
1162
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1078
1163
  }
1079
1164
  }
1165
+ if (rootAppliedStyles.has(elm)) {
1166
+ rootAppliedStyles.delete(elm);
1167
+ }
1168
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1169
+ rootAppliedStyles.delete(elm.shadowRoot);
1170
+ }
1080
1171
  };
1081
1172
 
1082
1173
  // src/runtime/bootstrap-lazy.ts
@@ -1142,6 +1233,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1142
1233
  }
1143
1234
  disconnectedCallback() {
1144
1235
  plt.jmp(() => disconnectedCallback(this));
1236
+ plt.raf(() => {
1237
+ var _a3;
1238
+ const hostRef = getHostRef(this);
1239
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1240
+ delete hostRef.$vnode$.$elm$;
1241
+ }
1242
+ });
1145
1243
  }
1146
1244
  componentOnReady() {
1147
1245
  return getHostRef(this).$onReadyPromise$;
@@ -1205,7 +1303,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1205
1303
  }
1206
1304
  }
1207
1305
  } catch (e) {
1208
- consoleError(e);
1306
+ consoleError(e, hostRef.$hostElement$);
1209
1307
  }
1210
1308
  };
1211
1309
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-94427c87.js';
2
- export { s as setNonce } from './index-94427c87.js';
1
+ import { b as bootstrapLazy } from './index-892b1dc4.js';
2
+ export { s as setNonce } from './index-892b1dc4.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {