@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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3fccb5b4.js');
5
+ const index = require('./index-87ba56f9.js');
6
6
  const _commonjsHelpers = require('./_commonjsHelpers-b3309d7b.js');
7
7
 
8
8
  var lottie$1 = {exports: {}};
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3fccb5b4.js');
5
+ const index = require('./index-87ba56f9.js');
6
6
 
7
7
  const SIZE_TO_MEDIA = {
8
8
  xs: '(min-width: 0px)',
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3fccb5b4.js');
5
+ const index = require('./index-87ba56f9.js');
6
6
 
7
7
  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}";
8
8
  const CpslGridStyle0 = cpslGridCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3fccb5b4.js');
5
+ const index = require('./index-87ba56f9.js');
6
6
 
7
7
  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)}";
8
8
  const CpslInfoBoxStyle0 = cpslInfoBoxCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3fccb5b4.js');
5
+ const index = require('./index-87ba56f9.js');
6
6
 
7
7
  const cpslRowCss = ":host{display:flex;flex-wrap:wrap}";
8
8
  const CpslRowStyle0 = cpslRowCss;
@@ -1619,6 +1619,9 @@ const connectedCallback = (elm) => {
1619
1619
  }
1620
1620
  };
1621
1621
  const disconnectInstance = (instance) => {
1622
+ {
1623
+ safeCall(instance, 'disconnectedCallback');
1624
+ }
1622
1625
  };
1623
1626
  const disconnectedCallback = async (elm) => {
1624
1627
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
@@ -1629,9 +1632,11 @@ const disconnectedCallback = async (elm) => {
1629
1632
  hostRef.$rmListeners$ = undefined;
1630
1633
  }
1631
1634
  }
1632
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1635
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1636
+ disconnectInstance(hostRef.$lazyInstance$);
1637
+ }
1633
1638
  else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1634
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1639
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1635
1640
  }
1636
1641
  }
1637
1642
  };
@@ -2009,4 +2014,4 @@ exports.promiseResolve = promiseResolve;
2009
2014
  exports.registerInstance = registerInstance;
2010
2015
  exports.setNonce = setNonce;
2011
2016
 
2012
- //# sourceMappingURL=index-3fccb5b4.js.map
2017
+ //# sourceMappingURL=index-87ba56f9.js.map