@vetorzero/pts-custom-elements 0.0.20 → 0.1.1

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 (47) hide show
  1. package/dist/cjs/{index-Df852Um2.js → index-BryBJQdA.js} +214 -50
  2. package/dist/cjs/index.cjs.js +0 -5
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{pts.cjs.js → pts-custom-elements.cjs.js} +4 -4
  5. package/dist/cjs/pts-remote-picker.cjs.entry.js +14669 -4
  6. package/dist/collection/collection-manifest.json +2 -2
  7. package/dist/collection/components/pts-remote-picker/providers/abstract.js +8 -0
  8. package/dist/collection/components/pts-remote-picker/providers/pts.js +70 -0
  9. package/dist/collection/components/pts-remote-picker/providers/tvmaze.js +86 -0
  10. package/dist/collection/components/pts-remote-picker/pts-remote-picker.css +90 -3
  11. package/dist/collection/components/pts-remote-picker/pts-remote-picker.js +380 -2
  12. package/dist/collection/index.js +1 -10
  13. package/dist/components/index.js +1 -1
  14. package/dist/components/pts-remote-picker.js +1 -1
  15. package/dist/esm/{index-DlRnKzBQ.js → index-SqK44lUQ.js} +214 -51
  16. package/dist/esm/index.js +0 -4
  17. package/dist/esm/loader.js +3 -3
  18. package/dist/esm/pts-custom-elements.js +21 -0
  19. package/dist/esm/pts-remote-picker.entry.js +14668 -3
  20. package/dist/pts-custom-elements/index.esm.js +0 -0
  21. package/dist/pts-custom-elements/p-14d77698.entry.js +1 -0
  22. package/dist/pts-custom-elements/p-SqK44lUQ.js +2 -0
  23. package/dist/pts-custom-elements/pts-custom-elements.esm.js +1 -0
  24. package/dist/types/components/pts-remote-picker/providers/abstract.d.ts +30 -0
  25. package/dist/types/components/pts-remote-picker/providers/pts.d.ts +8 -0
  26. package/dist/types/components/pts-remote-picker/providers/tvmaze.d.ts +1 -0
  27. package/dist/types/components/pts-remote-picker/pts-remote-picker.d.ts +33 -0
  28. package/dist/types/components.d.ts +23 -32
  29. package/dist/types/index.d.ts +1 -2
  30. package/package.json +46 -42
  31. package/dist/cjs/my-component.cjs.entry.js +0 -33
  32. package/dist/collection/components/my-component/my-component.css +0 -6
  33. package/dist/collection/components/my-component/my-component.js +0 -95
  34. package/dist/collection/utils/utils.js +0 -3
  35. package/dist/components/my-component.d.ts +0 -11
  36. package/dist/components/my-component.js +0 -1
  37. package/dist/components/p-uzTLmlCN.js +0 -1
  38. package/dist/esm/my-component.entry.js +0 -31
  39. package/dist/esm/pts.js +0 -21
  40. package/dist/pts/index.esm.js +0 -1
  41. package/dist/pts/p-391b0294.entry.js +0 -1
  42. package/dist/pts/p-DlRnKzBQ.js +0 -2
  43. package/dist/pts/p-d3b2a5c5.entry.js +0 -1
  44. package/dist/pts/pts.esm.js +0 -1
  45. package/dist/types/components/my-component/my-component.d.ts +0 -16
  46. package/dist/types/utils/utils.d.ts +0 -1
  47. /package/dist/{pts → pts-custom-elements}/p-DQuL1Twl.js +0 -0
@@ -1,12 +1,25 @@
1
1
  'use strict';
2
2
 
3
- const NAMESPACE = 'pts';
4
- const BUILD = /* pts */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: false, updatable: true};
3
+ const NAMESPACE = 'pts-custom-elements';
4
+ const BUILD = /* pts-custom-elements */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.43.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
+
11
+ // src/utils/get-prop-descriptor.ts
12
+ function getPropertyDescriptor(obj, memberName, getOnly) {
13
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
14
+ while (obj && obj !== stopAt) {
15
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
16
+ if (desc && (!getOnly || desc.get)) return desc;
17
+ obj = Object.getPrototypeOf(obj);
18
+ }
19
+ return void 0;
20
+ }
21
+
22
+ // src/utils/es2022-rewire-class-members.ts
10
23
  var reWireGetterSetter = (instance, hostRef) => {
11
24
  var _a;
12
25
  const cmpMeta = hostRef.$cmpMeta$;
@@ -14,7 +27,7 @@ var reWireGetterSetter = (instance, hostRef) => {
14
27
  members.map(([memberName, [memberFlags]]) => {
15
28
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
16
29
  const ogValue = instance[memberName];
17
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
30
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
18
31
  if (ogDescriptor) {
19
32
  Object.defineProperty(instance, memberName, {
20
33
  get() {
@@ -27,18 +40,14 @@ var reWireGetterSetter = (instance, hostRef) => {
27
40
  enumerable: true
28
41
  });
29
42
  }
30
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
43
+ if (hostRef.$instanceValues$.has(memberName)) {
44
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
45
+ } else if (ogValue !== void 0) {
46
+ instance[memberName] = ogValue;
47
+ }
31
48
  }
32
49
  });
33
50
  };
34
- function getPropertyDescriptor(obj, memberName) {
35
- while (obj) {
36
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
37
- if (desc == null ? void 0 : desc.get) return desc;
38
- obj = Object.getPrototypeOf(obj);
39
- }
40
- return void 0;
41
- }
42
51
 
43
52
  // src/client/client-host-ref.ts
44
53
  var getHostRef = (ref) => {
@@ -51,7 +60,7 @@ var registerInstance = (lazyInstance, hostRef) => {
51
60
  if (!hostRef) return;
52
61
  lazyInstance.__stencil__getHostRef = () => hostRef;
53
62
  hostRef.$lazyInstance$ = lazyInstance;
54
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
63
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
55
64
  reWireGetterSetter(lazyInstance, hostRef);
56
65
  }
57
66
  };
@@ -63,6 +72,9 @@ var registerHost = (hostElement, cmpMeta) => {
63
72
  $instanceValues$: /* @__PURE__ */ new Map(),
64
73
  $serializerValues$: /* @__PURE__ */ new Map()
65
74
  };
75
+ {
76
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
77
+ }
66
78
  {
67
79
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
68
80
  hostElement["s-p"] = [];
@@ -75,6 +87,7 @@ var registerHost = (hostElement, cmpMeta) => {
75
87
  hostElement.__stencil__getHostRef = () => ref;
76
88
  return ref;
77
89
  };
90
+ var isMemberInElement = (elm, memberName) => memberName in elm;
78
91
  var consoleError = (e, el) => (0, console.error)(e, el);
79
92
 
80
93
  // src/client/client-load-module.ts
@@ -372,6 +385,12 @@ var h = (nodeName, vnodeData, ...children) => {
372
385
  if (vnodeData.key) {
373
386
  key = vnodeData.key;
374
387
  }
388
+ {
389
+ const classData = vnodeData.className || vnodeData.class;
390
+ if (classData) {
391
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
392
+ }
393
+ }
375
394
  }
376
395
  const vnode = newVNode(nodeName, null);
377
396
  vnode.$attrs$ = vnodeData;
@@ -413,6 +432,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
413
432
  }
414
433
  return propValue;
415
434
  };
435
+ var getElement = (ref) => {
436
+ var _a;
437
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
438
+ };
416
439
  var emitEvent = (elm, name, opts) => {
417
440
  const ev = plt.ce(name, opts);
418
441
  elm.dispatchEvent(ev);
@@ -422,8 +445,111 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
422
445
  if (oldValue === newValue) {
423
446
  return;
424
447
  }
425
- memberName.toLowerCase();
448
+ let isProp = isMemberInElement(elm, memberName);
449
+ let ln = memberName.toLowerCase();
450
+ if (memberName === "class") {
451
+ const classList = elm.classList;
452
+ const oldClasses = parseClassList(oldValue);
453
+ let newClasses = parseClassList(newValue);
454
+ {
455
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
456
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
+ }
458
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
459
+ if (memberName[2] === "-") {
460
+ memberName = memberName.slice(3);
461
+ } else if (isMemberInElement(win, ln)) {
462
+ memberName = ln.slice(2);
463
+ } else {
464
+ memberName = ln[2] + memberName.slice(3);
465
+ }
466
+ if (oldValue || newValue) {
467
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
468
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
469
+ if (oldValue) {
470
+ plt.rel(elm, memberName, oldValue, capture);
471
+ }
472
+ if (newValue) {
473
+ plt.ael(elm, memberName, newValue, capture);
474
+ }
475
+ }
476
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
477
+ const propName = memberName.slice(5);
478
+ let attrName;
479
+ {
480
+ const hostRef = getHostRef(elm);
481
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
482
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
483
+ if (memberMeta && memberMeta[1]) {
484
+ attrName = memberMeta[1];
485
+ }
486
+ }
487
+ }
488
+ if (!attrName) {
489
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
490
+ }
491
+ if (newValue == null || newValue === false) {
492
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
493
+ elm.removeAttribute(attrName);
494
+ }
495
+ } else {
496
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
497
+ }
498
+ return;
499
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
500
+ const propName = memberName.slice(5);
501
+ try {
502
+ elm[propName] = newValue;
503
+ } catch (e) {
504
+ }
505
+ return;
506
+ } else {
507
+ const isComplex = isComplexType(newValue);
508
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
509
+ try {
510
+ if (!elm.tagName.includes("-")) {
511
+ const n = newValue == null ? "" : newValue;
512
+ if (memberName === "list") {
513
+ isProp = false;
514
+ } else if (oldValue == null || elm[memberName] !== n) {
515
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
516
+ elm[memberName] = n;
517
+ } else {
518
+ elm.setAttribute(memberName, n);
519
+ }
520
+ }
521
+ } else if (elm[memberName] !== newValue) {
522
+ elm[memberName] = newValue;
523
+ }
524
+ } catch (e) {
525
+ }
526
+ }
527
+ if (newValue == null || newValue === false) {
528
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
529
+ {
530
+ elm.removeAttribute(memberName);
531
+ }
532
+ }
533
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
534
+ newValue = newValue === true ? "" : newValue;
535
+ {
536
+ elm.setAttribute(memberName, newValue);
537
+ }
538
+ }
539
+ }
540
+ };
541
+ var parseClassListRegex = /\s/;
542
+ var parseClassList = (value) => {
543
+ if (typeof value === "object" && value && "baseVal" in value) {
544
+ value = value.baseVal;
545
+ }
546
+ if (!value || typeof value !== "string") {
547
+ return [];
548
+ }
549
+ return value.split(parseClassListRegex);
426
550
  };
551
+ var CAPTURE_EVENT_SUFFIX = "Capture";
552
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
427
553
 
428
554
  // src/runtime/vdom/update-element.ts
429
555
  var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
@@ -437,7 +563,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
437
563
  elm,
438
564
  memberName,
439
565
  oldVnodeAttrs[memberName],
440
- void 0);
566
+ void 0,
567
+ isSvgMode2,
568
+ newVnode.$flags$);
441
569
  }
442
570
  }
443
571
  }
@@ -446,7 +574,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
446
574
  elm,
447
575
  memberName,
448
576
  oldVnodeAttrs[memberName],
449
- newVnodeAttrs[memberName]);
577
+ newVnodeAttrs[memberName],
578
+ isSvgMode2,
579
+ newVnode.$flags$);
450
580
  }
451
581
  };
452
582
  function sortedAttrNames(attrNames) {
@@ -459,7 +589,7 @@ function sortedAttrNames(attrNames) {
459
589
  );
460
590
  }
461
591
  var hostTagName;
462
- var useNativeShadowDom = false;
592
+ var isSvgMode = false;
463
593
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
464
594
  const newVNode2 = newParentVNode.$children$[childIndex];
465
595
  let i2 = 0;
@@ -475,7 +605,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
475
605
  newVNode2.$tag$
476
606
  );
477
607
  {
478
- updateElement(null, newVNode2);
608
+ updateElement(null, newVNode2, isSvgMode);
479
609
  }
480
610
  if (newVNode2.$children$) {
481
611
  const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
@@ -490,25 +620,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
490
620
  elm["s-hn"] = hostTagName;
491
621
  return elm;
492
622
  };
493
- var relocateToHostRoot = (parentElm) => {
494
- plt.$flags$ |= 1 /* isTmpDisconnected */;
495
- const host = parentElm.closest(hostTagName.toLowerCase());
496
- if (host != null) {
497
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
498
- (ref) => ref["s-cr"]
499
- );
500
- const childNodeArray = Array.from(
501
- parentElm.__childNodes || parentElm.childNodes
502
- );
503
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
504
- if (childNode["s-sh"] != null) {
505
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
506
- childNode["s-sh"] = void 0;
507
- }
508
- }
509
- }
510
- plt.$flags$ &= -2 /* isTmpDisconnected */;
511
- };
512
623
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
513
624
  let containerElm = parentElm;
514
625
  let childNode;
@@ -640,17 +751,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
640
751
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
641
752
  const oldChildren = oldVNode.$children$;
642
753
  const newChildren = newVNode2.$children$;
643
- const tag = newVNode2.$tag$;
644
754
  const text = newVNode2.$text$;
645
755
  if (text == null) {
646
756
  {
647
- if (tag === "slot" && !useNativeShadowDom) {
648
- if (oldVNode.$name$ !== newVNode2.$name$) {
649
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
650
- relocateToHostRoot(newVNode2.$elm$.parentElement);
651
- }
652
- }
653
- updateElement(oldVNode, newVNode2);
757
+ updateElement(oldVNode, newVNode2, isSvgMode);
654
758
  }
655
759
  if (oldChildren !== null && newChildren !== null) {
656
760
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -678,7 +782,6 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
678
782
  };
679
783
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
680
784
  const hostElm = hostRef.$hostElement$;
681
- const cmpMeta = hostRef.$cmpMeta$;
682
785
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
683
786
  const isHostElement = isHost(renderFnResults);
684
787
  const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
@@ -694,7 +797,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
694
797
  rootVnode.$flags$ |= 4 /* isHost */;
695
798
  hostRef.$vnode$ = rootVnode;
696
799
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
697
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
698
800
  patch(oldVNode, rootVnode, isInitialLoad);
699
801
  };
700
802
 
@@ -833,6 +935,9 @@ var postUpdateComponent = (hostRef) => {
833
935
  safeCall(instance, "componentDidUpdate", void 0, elm);
834
936
  endPostUpdate();
835
937
  }
938
+ {
939
+ hostRef.$onInstanceResolve$(elm);
940
+ }
836
941
  {
837
942
  if (hostRef.$onRenderResolve$) {
838
943
  hostRef.$onRenderResolve$();
@@ -874,6 +979,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
874
979
  `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).`
875
980
  );
876
981
  }
982
+ const elm = hostRef.$hostElement$ ;
877
983
  const oldVal = hostRef.$instanceValues$.get(propName);
878
984
  const flags = hostRef.$flags$;
879
985
  const instance = hostRef.$lazyInstance$ ;
@@ -884,6 +990,27 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
884
990
  const didValueChange = newVal !== oldVal && !areBothNaN;
885
991
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
886
992
  hostRef.$instanceValues$.set(propName, newVal);
993
+ if (cmpMeta.$watchers$) {
994
+ const watchMethods = cmpMeta.$watchers$[propName];
995
+ if (watchMethods) {
996
+ watchMethods.map((watcher) => {
997
+ try {
998
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
999
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1000
+ if (!instance) {
1001
+ hostRef.$fetchedCbList$.push(() => {
1002
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1003
+ });
1004
+ } else {
1005
+ instance[watchMethodName](newVal, oldVal, propName);
1006
+ }
1007
+ }
1008
+ } catch (e) {
1009
+ consoleError(e, elm);
1010
+ }
1011
+ });
1012
+ }
1013
+ }
887
1014
  if (flags & 2 /* hasRendered */) {
888
1015
  if (instance.componentShouldUpdate) {
889
1016
  const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
@@ -903,10 +1030,21 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
903
1030
  var _a, _b;
904
1031
  const prototype = Cstr.prototype;
905
1032
  if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1033
+ {
1034
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1035
+ cmpMeta.$watchers$ = Cstr.watchers;
1036
+ }
1037
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1038
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1039
+ }
1040
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1041
+ cmpMeta.$serializers$ = Cstr.serializers;
1042
+ }
1043
+ }
906
1044
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
907
1045
  members.map(([memberName, [memberFlags]]) => {
908
1046
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
909
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1047
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
910
1048
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
911
1049
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
912
1050
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -978,6 +1116,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
978
1116
  }
979
1117
  }
980
1118
  });
1119
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1120
+ Object.defineProperty(prototype, memberName, {
1121
+ value(...args) {
1122
+ var _a2;
1123
+ const ref = getHostRef(this);
1124
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1125
+ var _a3;
1126
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1127
+ });
1128
+ }
1129
+ });
981
1130
  }
982
1131
  });
983
1132
  if ((flags & 1 /* isElementConstructor */)) {
@@ -1053,6 +1202,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1053
1202
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1054
1203
  }
1055
1204
  if (!Cstr.isProxied) {
1205
+ {
1206
+ cmpMeta.$watchers$ = Cstr.watchers;
1207
+ cmpMeta.$serializers$ = Cstr.serializers;
1208
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1209
+ }
1056
1210
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1057
1211
  Cstr.isProxied = true;
1058
1212
  }
@@ -1068,6 +1222,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
1222
  {
1069
1223
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1070
1224
  }
1225
+ {
1226
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1227
+ }
1071
1228
  endNewInstance();
1072
1229
  {
1073
1230
  fireConnectedCallback(hostRef.$lazyInstance$, elm);
@@ -1136,7 +1293,7 @@ var connectedCallback = (elm) => {
1136
1293
  }
1137
1294
  if (cmpMeta.$members$) {
1138
1295
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1139
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1296
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1140
1297
  const value = elm[memberName];
1141
1298
  delete elm[memberName];
1142
1299
  elm[memberName] = value;
@@ -1199,6 +1356,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1199
1356
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1200
1357
  lazyBundles.map((lazyBundle) => {
1201
1358
  lazyBundle[1].map((compactMeta) => {
1359
+ var _a2, _b, _c;
1202
1360
  const cmpMeta = {
1203
1361
  $flags$: compactMeta[0],
1204
1362
  $tagName$: compactMeta[1],
@@ -1208,6 +1366,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1208
1366
  {
1209
1367
  cmpMeta.$members$ = compactMeta[2];
1210
1368
  }
1369
+ {
1370
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1371
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1372
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1373
+ }
1211
1374
  const tagName = transformTag(cmpMeta.$tagName$);
1212
1375
  const HostElement = class extends HTMLElement {
1213
1376
  ["s-p"];
@@ -1314,6 +1477,7 @@ function transformTag(tag) {
1314
1477
 
1315
1478
  exports.Host = Host;
1316
1479
  exports.bootstrapLazy = bootstrapLazy;
1480
+ exports.getElement = getElement;
1317
1481
  exports.h = h;
1318
1482
  exports.promiseResolve = promiseResolve;
1319
1483
  exports.registerInstance = registerInstance;
@@ -1,7 +1,2 @@
1
1
  'use strict';
2
2
 
3
- function format(first, middle, last) {
4
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
5
- }
6
-
7
- exports.format = format;
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Df852Um2.js');
3
+ var index = require('./index-BryBJQdA.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["my-component.cjs",[[513,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["pts-remote-picker.cjs",[[257,"pts-remote-picker"]]]], options);
9
+ return index.bootstrapLazy([["pts-remote-picker.cjs",[[513,"pts-remote-picker",{"value":[1025],"displayValue":[1025,"display-value"],"endpoint":[1],"_state":[32],"_query":[32],"_querying":[32],"_expanded":[32],"_options":[32],"_focusedIndex":[32],"setValue":[64],"expand":[64],"collapse":[64],"clear":[64]},null,{"value":[{"handleSetValue":0}],"endpoint":[{"handleSetBaseUrl":0}]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Df852Um2.js');
3
+ var index = require('./index-BryBJQdA.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.43.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
12
- const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('pts.cjs.js', document.baseURI).href));
12
+ const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('pts-custom-elements.cjs.js', document.baseURI).href));
13
13
  const opts = {};
14
14
  if (importMeta !== "") {
15
15
  opts.resourcesUrl = new URL(".", importMeta).href;
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["my-component.cjs",[[513,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["pts-remote-picker.cjs",[[257,"pts-remote-picker"]]]], options);
22
+ return index.bootstrapLazy([["pts-remote-picker.cjs",[[513,"pts-remote-picker",{"value":[1025],"displayValue":[1025,"display-value"],"endpoint":[1],"_state":[32],"_query":[32],"_querying":[32],"_expanded":[32],"_options":[32],"_focusedIndex":[32],"setValue":[64],"expand":[64],"collapse":[64],"clear":[64]},null,{"value":[{"handleSetValue":0}],"endpoint":[{"handleSetBaseUrl":0}]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;