@usecapsule/core-components 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/capsule/capsule.esm.js +1 -1
  2. package/dist/capsule/capsule.esm.js.map +1 -1
  3. package/dist/capsule/{p-a95ec4df.entry.js → p-415384b7.entry.js} +2 -2
  4. package/dist/capsule/{p-193ac141.entry.js → p-4d957466.entry.js} +2 -2
  5. package/dist/capsule/{p-cb8dc0a4.entry.js → p-6b02ea8d.entry.js} +2 -2
  6. package/dist/capsule/p-b2997f3c.js +3 -0
  7. package/dist/capsule/p-b2997f3c.js.map +1 -0
  8. package/dist/capsule/{p-d7be092d.entry.js → p-b76350fd.entry.js} +2 -2
  9. package/dist/capsule/{p-7c738dc5.entry.js → p-d0b8e7cb.entry.js} +2 -2
  10. package/dist/capsule/p-d0b8e7cb.entry.js.map +1 -0
  11. package/dist/capsule/{p-0cab90fa.entry.js → p-fa4e3c14.entry.js} +2 -2
  12. package/dist/cjs/capsule.cjs.js +2 -2
  13. package/dist/cjs/cpsl-alert_18.cjs.entry.js +32 -5
  14. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -1
  15. package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
  16. package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
  17. package/dist/cjs/cpsl-grid.cjs.entry.js +1 -1
  18. package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
  19. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  20. package/dist/cjs/{index-3fccb5b4.js → index-87ba56f9.js} +8 -3
  21. package/dist/cjs/index-87ba56f9.js.map +1 -0
  22. package/dist/cjs/loader.cjs.js +2 -2
  23. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +33 -2
  24. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +50 -3
  25. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  26. package/dist/collection/components/cpsl-input/cpsl-input.js +1 -1
  27. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  28. package/dist/esm/capsule.js +3 -3
  29. package/dist/esm/cpsl-alert_18.entry.js +32 -5
  30. package/dist/esm/cpsl-alert_18.entry.js.map +1 -1
  31. package/dist/esm/cpsl-animation.entry.js +1 -1
  32. package/dist/esm/cpsl-col.entry.js +1 -1
  33. package/dist/esm/cpsl-grid.entry.js +1 -1
  34. package/dist/esm/cpsl-info-box.entry.js +1 -1
  35. package/dist/esm/cpsl-row.entry.js +1 -1
  36. package/dist/esm/{index-f00e090c.js → index-fd970ca2.js} +8 -3
  37. package/dist/esm/index-fd970ca2.js.map +1 -0
  38. package/dist/esm/loader.js +3 -3
  39. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +8 -0
  40. package/dist/types/components.d.ts +8 -0
  41. package/package.json +2 -2
  42. package/dist/capsule/p-6fb7c4d1.js +0 -3
  43. package/dist/capsule/p-6fb7c4d1.js.map +0 -1
  44. package/dist/capsule/p-7c738dc5.entry.js.map +0 -1
  45. package/dist/cjs/index-3fccb5b4.js.map +0 -1
  46. package/dist/esm/index-f00e090c.js.map +0 -1
  47. /package/dist/capsule/{p-a95ec4df.entry.js.map → p-415384b7.entry.js.map} +0 -0
  48. /package/dist/capsule/{p-193ac141.entry.js.map → p-4d957466.entry.js.map} +0 -0
  49. /package/dist/capsule/{p-cb8dc0a4.entry.js.map → p-6b02ea8d.entry.js.map} +0 -0
  50. /package/dist/capsule/{p-d7be092d.entry.js.map → p-b76350fd.entry.js.map} +0 -0
  51. /package/dist/capsule/{p-0cab90fa.entry.js.map → p-fa4e3c14.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-f00e090c.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-fd970ca2.js';
2
2
  import { c as commonjsGlobal } from './_commonjsHelpers-1789f0cf.js';
3
3
 
4
4
  var lottie$1 = {exports: {}};
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, f as forceUpdate, h, H as Host } from './index-f00e090c.js';
1
+ import { r as registerInstance, f as forceUpdate, h, H as Host } from './index-fd970ca2.js';
2
2
 
3
3
  const SIZE_TO_MEDIA = {
4
4
  xs: '(min-width: 0px)',
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-f00e090c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-fd970ca2.js';
2
2
 
3
3
  const cpslGridCss = ":host{-webkit-padding-start:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px))}}:host(.grid-fixed){width:var(--cpsl-grid-width-xs, var(--cpsl-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--cpsl-grid-width-sm, var(--cpsl-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--cpsl-grid-width-md, var(--cpsl-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--cpsl-grid-width-lg, var(--cpsl-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--cpsl-grid-width-xl, var(--cpsl-grid-width, 1140px))}}:host(.cpsl-no-padding){--cpsl-grid-column-padding:0;--cpsl-grid-column-padding-xs:0;--cpsl-grid-column-padding-sm:0;--cpsl-grid-column-padding-md:0;--cpsl-grid-column-padding-lg:0;--cpsl-grid-column-padding-xl:0}";
4
4
  const CpslGridStyle0 = cpslGridCss;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-f00e090c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-fd970ca2.js';
2
2
 
3
3
  const cpslInfoBoxCss = ":host{--box-border-radius:var(--cpsl-border-radius-info-box);--box-padding-top:16px;--box-padding-bottom:16px;--box-padding-start:16px;--box-padding-end:16px;--box-border-width:1px}.info-box-container{border-radius:var(--input-border-radius);-webkit-padding-start:var(--box-padding-start);padding-inline-start:var(--box-padding-start);-webkit-padding-end:var(--box-padding-end);padding-inline-end:var(--box-padding-end);padding-top:var(--box-padding-top);padding-bottom:var(--box-padding-bottom);display:flex;background-color:var(--cpsl-color-background-secondary);border:var(--box-border-width) solid var(--cpsl-color-input-border-placeholder);border-radius:var(--box-border-radius)}";
4
4
  const CpslInfoBoxStyle0 = cpslInfoBoxCss;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-f00e090c.js';
1
+ import { r as registerInstance, h, H as Host } from './index-fd970ca2.js';
2
2
 
3
3
  const cpslRowCss = ":host{display:flex;flex-wrap:wrap}";
4
4
  const CpslRowStyle0 = cpslRowCss;
@@ -1597,6 +1597,9 @@ const connectedCallback = (elm) => {
1597
1597
  }
1598
1598
  };
1599
1599
  const disconnectInstance = (instance) => {
1600
+ {
1601
+ safeCall(instance, 'disconnectedCallback');
1602
+ }
1600
1603
  };
1601
1604
  const disconnectedCallback = async (elm) => {
1602
1605
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
@@ -1607,9 +1610,11 @@ const disconnectedCallback = async (elm) => {
1607
1610
  hostRef.$rmListeners$ = undefined;
1608
1611
  }
1609
1612
  }
1610
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1613
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1614
+ disconnectInstance(hostRef.$lazyInstance$);
1615
+ }
1611
1616
  else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1612
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1617
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1613
1618
  }
1614
1619
  }
1615
1620
  };
@@ -1979,4 +1984,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1979
1984
 
1980
1985
  export { Host as H, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1981
1986
 
1982
- //# sourceMappingURL=index-f00e090c.js.map
1987
+ //# sourceMappingURL=index-fd970ca2.js.map