@paperless/core 0.0.3-alpha.3 → 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/README.md +14 -10
  3. package/dist/assets/icons/arrow.svg +1 -1
  4. package/dist/assets/icons/attachment.svg +1 -1
  5. package/dist/assets/icons/bread.svg +1 -1
  6. package/dist/assets/icons/calendar.svg +1 -1
  7. package/dist/assets/icons/car.svg +1 -1
  8. package/dist/assets/icons/checkmark.svg +1 -1
  9. package/dist/assets/icons/chevron.svg +1 -1
  10. package/dist/assets/icons/clock.svg +1 -1
  11. package/dist/assets/icons/cogs.svg +1 -1
  12. package/dist/assets/icons/comment.svg +1 -1
  13. package/dist/assets/icons/document.svg +1 -1
  14. package/dist/assets/icons/download.svg +1 -1
  15. package/dist/assets/icons/envelope.svg +1 -1
  16. package/dist/assets/icons/explanation.svg +1 -1
  17. package/dist/assets/icons/eye.svg +1 -1
  18. package/dist/assets/icons/filter.svg +1 -1
  19. package/dist/assets/icons/grid.svg +1 -1
  20. package/dist/assets/icons/headset.svg +1 -1
  21. package/dist/assets/icons/list.svg +1 -1
  22. package/dist/assets/icons/location.svg +1 -1
  23. package/dist/assets/icons/megaphone.svg +1 -1
  24. package/dist/assets/icons/minus.svg +1 -1
  25. package/dist/assets/icons/negative.svg +1 -1
  26. package/dist/assets/icons/pagination.svg +1 -1
  27. package/dist/assets/icons/payment.svg +1 -1
  28. package/dist/assets/icons/pencil.svg +1 -1
  29. package/dist/assets/icons/person.svg +1 -1
  30. package/dist/assets/icons/plus.svg +1 -1
  31. package/dist/assets/icons/question.svg +1 -1
  32. package/dist/assets/icons/receipt.svg +1 -1
  33. package/dist/assets/icons/report.svg +1 -1
  34. package/dist/assets/icons/search.svg +1 -1
  35. package/dist/assets/icons/settings.svg +1 -1
  36. package/dist/assets/icons/sick.svg +1 -1
  37. package/dist/assets/icons/tachometer.svg +1 -1
  38. package/dist/assets/icons/tool.svg +1 -1
  39. package/dist/assets/icons/trash.svg +1 -1
  40. package/dist/assets/icons/turn.svg +1 -1
  41. package/dist/assets/icons/upload.svg +1 -1
  42. package/dist/assets/icons/warning.svg +1 -1
  43. package/dist/build/p-3318b73b.entry.js +1 -0
  44. package/dist/build/p-6f9229a6.js +2 -0
  45. package/dist/build/p-711630fb.entry.js +1 -0
  46. package/dist/build/p-98d636b6.entry.js +1 -0
  47. package/dist/build/p-c3d80205.entry.js +1 -0
  48. package/dist/build/paperless.css +22 -12
  49. package/dist/build/paperless.esm.js +1 -1
  50. package/dist/cjs/{index-e3e940d8.js → index-6758a39e.js} +155 -7
  51. package/dist/cjs/loader.cjs.js +2 -2
  52. package/dist/cjs/p-button.cjs.entry.js +4 -4
  53. package/dist/cjs/p-icon.cjs.entry.js +802 -0
  54. package/dist/cjs/p-illustration.cjs.entry.js +1426 -0
  55. package/dist/cjs/p-tooltip.cjs.entry.js +1873 -0
  56. package/dist/cjs/paperless.cjs.js +2 -2
  57. package/dist/collection/assets/icons/arrow.svg +1 -1
  58. package/dist/collection/assets/icons/attachment.svg +1 -1
  59. package/dist/collection/assets/icons/bread.svg +1 -1
  60. package/dist/collection/assets/icons/calendar.svg +1 -1
  61. package/dist/collection/assets/icons/car.svg +1 -1
  62. package/dist/collection/assets/icons/checkmark.svg +1 -1
  63. package/dist/collection/assets/icons/chevron.svg +1 -1
  64. package/dist/collection/assets/icons/clock.svg +1 -1
  65. package/dist/collection/assets/icons/cogs.svg +1 -1
  66. package/dist/collection/assets/icons/comment.svg +1 -1
  67. package/dist/collection/assets/icons/document.svg +1 -1
  68. package/dist/collection/assets/icons/download.svg +1 -1
  69. package/dist/collection/assets/icons/envelope.svg +1 -1
  70. package/dist/collection/assets/icons/explanation.svg +1 -1
  71. package/dist/collection/assets/icons/eye.svg +1 -1
  72. package/dist/collection/assets/icons/filter.svg +1 -1
  73. package/dist/collection/assets/icons/grid.svg +1 -1
  74. package/dist/collection/assets/icons/headset.svg +1 -1
  75. package/dist/collection/assets/icons/list.svg +1 -1
  76. package/dist/collection/assets/icons/location.svg +1 -1
  77. package/dist/collection/assets/icons/megaphone.svg +1 -1
  78. package/dist/collection/assets/icons/minus.svg +1 -1
  79. package/dist/collection/assets/icons/negative.svg +1 -1
  80. package/dist/collection/assets/icons/pagination.svg +1 -1
  81. package/dist/collection/assets/icons/payment.svg +1 -1
  82. package/dist/collection/assets/icons/pencil.svg +1 -1
  83. package/dist/collection/assets/icons/person.svg +1 -1
  84. package/dist/collection/assets/icons/plus.svg +1 -1
  85. package/dist/collection/assets/icons/question.svg +1 -1
  86. package/dist/collection/assets/icons/receipt.svg +1 -1
  87. package/dist/collection/assets/icons/report.svg +1 -1
  88. package/dist/collection/assets/icons/search.svg +1 -1
  89. package/dist/collection/assets/icons/settings.svg +1 -1
  90. package/dist/collection/assets/icons/sick.svg +1 -1
  91. package/dist/collection/assets/icons/tachometer.svg +1 -1
  92. package/dist/collection/assets/icons/tool.svg +1 -1
  93. package/dist/collection/assets/icons/trash.svg +1 -1
  94. package/dist/collection/assets/icons/turn.svg +1 -1
  95. package/dist/collection/assets/icons/upload.svg +1 -1
  96. package/dist/collection/assets/icons/warning.svg +1 -1
  97. package/dist/collection/collection-manifest.json +4 -1
  98. package/dist/collection/components/button/button.component.js +6 -5
  99. package/dist/collection/components/icon/icon.component.js +108 -0
  100. package/dist/collection/components/illustration/illustration.component.js +39 -0
  101. package/dist/collection/components/tooltip/tooltip.component.css +34 -0
  102. package/dist/collection/components/tooltip/tooltip.component.js +174 -0
  103. package/dist/collection/tailwind/border-radius.js +1 -0
  104. package/dist/collection/tailwind/grid.js +6 -0
  105. package/dist/collection/tailwind.config.js +10 -0
  106. package/dist/collection/utils/icons.js +82 -0
  107. package/dist/collection/utils/illustrations.js +18 -0
  108. package/dist/components/index.d.ts +3 -0
  109. package/dist/components/index.js +3 -0
  110. package/dist/components/p-button.js +4 -4
  111. package/dist/components/p-icon.d.ts +11 -0
  112. package/dist/components/p-icon.js +820 -0
  113. package/dist/components/p-illustration.d.ts +11 -0
  114. package/dist/components/p-illustration.js +1441 -0
  115. package/dist/components/p-tooltip.d.ts +11 -0
  116. package/dist/components/p-tooltip.js +1891 -0
  117. package/dist/esm/{index-100a5ae6.js → index-e4d80e41.js} +154 -8
  118. package/dist/esm/loader.js +2 -2
  119. package/dist/esm/p-button.entry.js +4 -4
  120. package/dist/esm/p-icon.entry.js +798 -0
  121. package/dist/esm/p-illustration.entry.js +1422 -0
  122. package/dist/esm/p-tooltip.entry.js +1869 -0
  123. package/dist/esm/paperless.js +2 -2
  124. package/dist/index.html +1 -1
  125. package/dist/paperless/p-3318b73b.entry.js +1 -0
  126. package/dist/paperless/p-6f9229a6.js +2 -0
  127. package/dist/paperless/p-711630fb.entry.js +1 -0
  128. package/dist/paperless/p-98d636b6.entry.js +1 -0
  129. package/dist/paperless/p-c3d80205.entry.js +1 -0
  130. package/dist/paperless/paperless.css +23382 -13
  131. package/dist/paperless/paperless.esm.js +1 -1
  132. package/dist/sw.js +100 -21
  133. package/dist/tailwind.config.js +10 -0
  134. package/dist/types/components/button/button.component.d.ts +1 -1
  135. package/dist/types/components/icon/icon.component.d.ts +22 -0
  136. package/dist/types/components/illustration/illustration.component.d.ts +9 -0
  137. package/dist/types/components/tooltip/tooltip.component.d.ts +28 -0
  138. package/dist/types/components.d.ts +108 -2
  139. package/dist/types/utils/icons.d.ts +43 -0
  140. package/dist/types/utils/illustrations.d.ts +11 -0
  141. package/package.json +6 -2
  142. package/dist/build/p-54459ae1.js +0 -2
  143. package/dist/build/p-c66e9743.entry.js +0 -1
  144. package/dist/paperless/p-54459ae1.js +0 -2
  145. package/dist/paperless/p-c66e9743.entry.js +0 -1
@@ -1,20 +1,30 @@
1
+ .sbdocs .boson-collection {
2
+ @apply flex flex-row w-full justify-start;
3
+ }
4
+ .sbdocs .boson-collection .boson {
5
+ @apply w-1/5;
6
+ }
7
+ .sbdocs .boson-collection .boson > span {
8
+ @apply p-0 text-storm-vague text-xs font-semibold uppercase;
9
+ }
10
+ .sbdocs .boson-collection .boson > div {
11
+ @apply w-16 h-16 rounded-large bg-storm-light;
12
+ }
13
+
1
14
  @tailwind base;
2
15
  @tailwind utilities;
3
16
  @tailwind components;
4
- button:focus {
5
- outline: 0;
6
- }
7
-
8
- html,
17
+ @layer base {
18
+ html,
9
19
  body {
10
- font-family: "IBM Plex Sans", sans-serif;
11
- min-height: 100vh;
12
- width: 100%;
13
- max-width: 100vw;
14
- text-rendering: optimizeLegibility;
15
- -webkit-font-smoothing: antialiased;
20
+ font-family: "IBM Plex Sans", sans-serif;
21
+ min-height: 100vh;
22
+ width: 100%;
23
+ max-width: 100vw;
24
+ text-rendering: optimizeLegibility;
25
+ -webkit-font-smoothing: antialiased;
26
+ }
16
27
  }
17
-
18
28
  /* ibm-plex-sans-300 - latin */
19
29
  @font-face {
20
30
  font-family: "IBM Plex Sans";
@@ -1 +1 @@
1
- import{p as t,b as p}from"./p-54459ae1.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),t(r)})().then((t=>p([["p-c66e9743",[[1,"p-button",{variant:[1]}]]]],t)));
1
+ import{p as o,b as t}from"./p-6f9229a6.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),o(e)})().then((o=>t([["p-711630fb",[[1,"p-button",{variant:[1]}]]],["p-3318b73b",[[0,"p-icon",{variant:[1],size:[1],rotate:[2],flip:[1]}]]],["p-98d636b6",[[0,"p-illustration",{variant:[1]}]]],["p-c3d80205",[[1,"p-tooltip",{content:[8],placement:[1],forceShow:[4,"force-show"]},[[1,"mouseenter","_show"],[0,"focus","_show"],[1,"mouseleave","_hide"],[0,"blur","_hide"]]]]]],o)));
@@ -24,6 +24,7 @@ const NAMESPACE = 'paperless';
24
24
 
25
25
  let scopeId;
26
26
  let hostTagName;
27
+ let isSvgMode = false;
27
28
  let queuePending = false;
28
29
  const win = typeof window !== 'undefined' ? window : {};
29
30
  const doc = win.document || { head: {} };
@@ -46,6 +47,35 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
46
47
  return false;
47
48
  })()
48
49
  ;
50
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
51
+ if (listeners) {
52
+ listeners.map(([flags, name, method]) => {
53
+ const target = elm;
54
+ const handler = hostListenerProxy(hostRef, method);
55
+ const opts = hostListenerOpts(flags);
56
+ plt.ael(target, name, handler, opts);
57
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
58
+ });
59
+ }
60
+ };
61
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
62
+ try {
63
+ {
64
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
65
+ // instance is ready, let's call it's member method for this event
66
+ hostRef.$lazyInstance$[methodName](ev);
67
+ }
68
+ else {
69
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
70
+ }
71
+ }
72
+ }
73
+ catch (e) {
74
+ consoleError(e);
75
+ }
76
+ };
77
+ // prettier-ignore
78
+ const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
49
79
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
50
80
  const createTime = (fnName, tagName = '') => {
51
81
  {
@@ -224,6 +254,7 @@ const isHost = (node) => node && node.$tag$ === Host;
224
254
  */
225
255
  const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
226
256
  if (oldValue !== newValue) {
257
+ let isProp = isMemberInElement(elm, memberName);
227
258
  memberName.toLowerCase();
228
259
  if (memberName === 'class') {
229
260
  const classList = elm.classList;
@@ -232,6 +263,47 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
232
263
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
233
264
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
234
265
  }
266
+ else if (memberName === 'ref') {
267
+ // minifier will clean this up
268
+ if (newValue) {
269
+ newValue(elm);
270
+ }
271
+ }
272
+ else {
273
+ // Set property if it exists and it's not a SVG
274
+ const isComplex = isComplexType(newValue);
275
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
276
+ try {
277
+ if (!elm.tagName.includes('-')) {
278
+ const n = newValue == null ? '' : newValue;
279
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
280
+ if (memberName === 'list') {
281
+ isProp = false;
282
+ }
283
+ else if (oldValue == null || elm[memberName] != n) {
284
+ elm[memberName] = n;
285
+ }
286
+ }
287
+ else {
288
+ elm[memberName] = newValue;
289
+ }
290
+ }
291
+ catch (e) { }
292
+ }
293
+ if (newValue == null || newValue === false) {
294
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
295
+ {
296
+ elm.removeAttribute(memberName);
297
+ }
298
+ }
299
+ }
300
+ else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
301
+ newValue = newValue === true ? '' : newValue;
302
+ {
303
+ elm.setAttribute(memberName, newValue);
304
+ }
305
+ }
306
+ }
235
307
  }
236
308
  };
237
309
  const parseClassListRegex = /\s/;
@@ -249,13 +321,13 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
249
321
  // remove attributes no longer present on the vnode by setting them to undefined
250
322
  for (memberName in oldVnodeAttrs) {
251
323
  if (!(memberName in newVnodeAttrs)) {
252
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined);
324
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
253
325
  }
254
326
  }
255
327
  }
256
328
  // add new & update changed attributes
257
329
  for (memberName in newVnodeAttrs) {
258
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName]);
330
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
259
331
  }
260
332
  };
261
333
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
@@ -264,12 +336,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
264
336
  let i = 0;
265
337
  let elm;
266
338
  let childNode;
267
- {
339
+ if (newVNode.$text$ !== null) {
340
+ // create text node
341
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
342
+ }
343
+ else {
268
344
  // create element
269
345
  elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
270
346
  // add css classes, attrs, props, listeners, etc.
271
347
  {
272
- updateElement(null, newVNode);
348
+ updateElement(null, newVNode, isSvgMode);
273
349
  }
274
350
  if (isDef(scopeId) && elm['s-si'] !== scopeId) {
275
351
  // if there is a scopeId and this is the initial render
@@ -310,6 +386,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
310
386
  for (; startIdx <= endIdx; ++startIdx) {
311
387
  if ((vnode = vnodes[startIdx])) {
312
388
  elm = vnode.$elm$;
389
+ callNodeRefs(vnode);
313
390
  // remove the vnode's element from the dom
314
391
  elm.remove();
315
392
  }
@@ -394,7 +471,8 @@ const patch = (oldVNode, newVNode) => {
394
471
  const oldChildren = oldVNode.$children$;
395
472
  const newChildren = newVNode.$children$;
396
473
  const tag = newVNode.$tag$;
397
- {
474
+ const text = newVNode.$text$;
475
+ if (text === null) {
398
476
  // element node
399
477
  {
400
478
  if (tag === 'slot')
@@ -403,7 +481,7 @@ const patch = (oldVNode, newVNode) => {
403
481
  // either this is the first render of an element OR it's an update
404
482
  // AND we already know it's possible it could have changed
405
483
  // this updates the element's css classes, attrs, props, listeners, etc.
406
- updateElement(oldVNode, newVNode);
484
+ updateElement(oldVNode, newVNode, isSvgMode);
407
485
  }
408
486
  }
409
487
  if (oldChildren !== null && newChildren !== null) {
@@ -411,6 +489,11 @@ const patch = (oldVNode, newVNode) => {
411
489
  updateChildren(elm, oldChildren, newVNode, newChildren);
412
490
  }
413
491
  else if (newChildren !== null) {
492
+ // no old child vnodes, but there are new child vnodes to add
493
+ if (oldVNode.$text$ !== null) {
494
+ // the old vnode was text, so be sure to clear it out
495
+ elm.textContent = '';
496
+ }
414
497
  // add the new vnode children
415
498
  addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
416
499
  }
@@ -419,6 +502,17 @@ const patch = (oldVNode, newVNode) => {
419
502
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
420
503
  }
421
504
  }
505
+ else if (oldVNode.$text$ !== text) {
506
+ // update the text content for the text only vnode
507
+ // and also only if the text is different than before
508
+ elm.data = text;
509
+ }
510
+ };
511
+ const callNodeRefs = (vNode) => {
512
+ {
513
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
514
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
515
+ }
422
516
  };
423
517
  const renderVdom = (hostRef, renderFnResults) => {
424
518
  const hostElm = hostRef.$hostElement$;
@@ -435,6 +529,7 @@ const renderVdom = (hostRef, renderFnResults) => {
435
529
  // synchronous patch
436
530
  patch(oldVNode, rootVnode);
437
531
  };
532
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
438
533
  /**
439
534
  * Helper function to create & dispatch a custom Event on a provided target
440
535
  * @param elm the target of the Event
@@ -471,6 +566,15 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
471
566
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
472
567
  const instance = hostRef.$lazyInstance$ ;
473
568
  let promise;
569
+ if (isInitialLoad) {
570
+ {
571
+ hostRef.$flags$ |= 256 /* isListenReady */;
572
+ if (hostRef.$queuedListeners$) {
573
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
574
+ hostRef.$queuedListeners$ = null;
575
+ }
576
+ }
577
+ }
474
578
  endSchedule();
475
579
  return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
476
580
  };
@@ -580,6 +684,17 @@ const appDidLoad = (who) => {
580
684
  }
581
685
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
582
686
  };
687
+ const safeCall = (instance, method, arg) => {
688
+ if (instance && instance[method]) {
689
+ try {
690
+ return instance[method](arg);
691
+ }
692
+ catch (e) {
693
+ consoleError(e);
694
+ }
695
+ }
696
+ return undefined;
697
+ };
583
698
  const then = (promise, thenFn) => {
584
699
  return promise && promise.then ? promise.then(thenFn) : thenFn();
585
700
  };
@@ -611,6 +726,15 @@ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
611
726
  const parsePropertyValue = (propValue, propType) => {
612
727
  // ensure this value is of the correct prop type
613
728
  if (propValue != null && !isComplexType(propValue)) {
729
+ if (propType & 4 /* Boolean */) {
730
+ // per the HTML spec, any string value means it is a boolean true value
731
+ // but we'll cheat here and say that the string "false" is the boolean false
732
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
733
+ }
734
+ if (propType & 2 /* Number */) {
735
+ // force it to be a number
736
+ return parseFloat(propValue);
737
+ }
614
738
  if (propType & 1 /* String */) {
615
739
  // could have been passed as a number or boolean
616
740
  // but we still want it as a string
@@ -640,6 +764,11 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
640
764
  hostRef.$instanceValues$.set(propName, newVal);
641
765
  if (instance) {
642
766
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
767
+ if (instance.componentShouldUpdate) {
768
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
769
+ return;
770
+ }
771
+ }
643
772
  // looks like this value actually changed, so we've got work to do!
644
773
  // but only if we've already rendered, otherwise just chill out
645
774
  // queue that we need to do an update, but don't worry about queuing
@@ -845,12 +974,24 @@ const connectedCallback = (elm) => {
845
974
  initializeComponent(elm, hostRef, cmpMeta);
846
975
  }
847
976
  }
977
+ else {
978
+ // not the first time this has connected
979
+ // reattach any event listeners to the host
980
+ // since they would have been removed when disconnected
981
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
982
+ }
848
983
  endConnected();
849
984
  }
850
985
  };
851
986
  const disconnectedCallback = (elm) => {
852
987
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
853
- getHostRef(elm);
988
+ const hostRef = getHostRef(elm);
989
+ {
990
+ if (hostRef.$rmListeners$) {
991
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
992
+ hostRef.$rmListeners$ = undefined;
993
+ }
994
+ }
854
995
  }
855
996
  };
856
997
  const bootstrapLazy = (lazyBundles, options = {}) => {
@@ -877,6 +1018,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
877
1018
  {
878
1019
  cmpMeta.$members$ = compactMeta[2];
879
1020
  }
1021
+ {
1022
+ cmpMeta.$listeners$ = compactMeta[3];
1023
+ }
880
1024
  const tagName = cmpMeta.$tagName$;
881
1025
  const HostElement = class extends HTMLElement {
882
1026
  // StencilLazyHost
@@ -957,8 +1101,10 @@ const registerHost = (elm, cmpMeta) => {
957
1101
  elm['s-p'] = [];
958
1102
  elm['s-rc'] = [];
959
1103
  }
1104
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
960
1105
  return hostRefs.set(elm, hostRef);
961
1106
  };
1107
+ const isMemberInElement = (elm, memberName) => memberName in elm;
962
1108
  const consoleError = (e, el) => (0, console.error)(e, el);
963
1109
  const cmpModules = /*@__PURE__*/ new Map();
964
1110
  const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
@@ -1026,7 +1172,9 @@ const flush = () => {
1026
1172
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1027
1173
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1028
1174
 
1175
+ exports.Host = Host;
1029
1176
  exports.bootstrapLazy = bootstrapLazy;
1177
+ exports.getElement = getElement;
1030
1178
  exports.h = h;
1031
1179
  exports.promiseResolve = promiseResolve;
1032
1180
  exports.registerInstance = registerInstance;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e3e940d8.js');
5
+ const index = require('./index-6758a39e.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["p-button.cjs",[[1,"p-button",{"variant":[1]}]]]], options);
17
+ return index.bootstrapLazy([["p-button.cjs",[[1,"p-button",{"variant":[1]}]]],["p-icon.cjs",[[0,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-illustration.cjs",[[0,"p-illustration",{"variant":[1]}]]],["p-tooltip.cjs",[[1,"p-tooltip",{"content":[8],"placement":[1],"forceShow":[4,"force-show"]},[[1,"mouseenter","_show"],[0,"focus","_show"],[1,"mouseleave","_hide"],[0,"blur","_hide"]]]]]], options);
18
18
  });
19
19
  };
20
20