popover.mjs 900 B

123456789101112131415161718192021222324252627282930313233
  1. import { T as p, J as i, t as n } from "./base-component-BMXjNJAi.mjs";
  2. import { d as l } from "./dataBsToggle-B84TS15h.mjs";
  3. import { T as r, s as c, p as a, a as e, g as m, t as u } from "./tooltip-DS8L4mHj.mjs";
  4. const b = `[${l}="${e}"],[data-tip="${e}"]`, d = p({}, u, {
  5. template: m(e),
  6. content: "",
  7. dismissible: !1,
  8. btnClose: '<button class="btn-close position-absolute top-0 end-0 m-1" aria-label="Close"></button>'
  9. }), f = (t) => n(t, a), g = (t) => new T(t);
  10. class T extends r {
  11. static selector = b;
  12. static init = g;
  13. static getInstance = f;
  14. static styleTip = c;
  15. constructor(s, o) {
  16. super(s, o);
  17. }
  18. get name() {
  19. return a;
  20. }
  21. get defaults() {
  22. return d;
  23. }
  24. show = () => {
  25. super.show();
  26. const { options: s, btn: o } = this;
  27. s.dismissible && o && setTimeout(() => i(o), 17);
  28. };
  29. }
  30. export {
  31. T as default
  32. };
  33. //# sourceMappingURL=popover.mjs.map