@dialpad/dialtone-vue 3.73.2 → 3.73.3

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.
@@ -7870,6 +7870,13 @@ const Nl = {
7870
7870
  contentClass: {
7871
7871
  type: [String, Array, Object],
7872
7872
  default: ""
7873
+ },
7874
+ /**
7875
+ * To auto open the modal popover.
7876
+ */
7877
+ openPopover: {
7878
+ type: Boolean,
7879
+ default: !1
7873
7880
  }
7874
7881
  },
7875
7882
  emits: [
@@ -7883,7 +7890,11 @@ const Nl = {
7883
7890
  * @event click
7884
7891
  * @type {PointerEvent | KeyboardEvent}
7885
7892
  */
7886
- "click"
7893
+ "click",
7894
+ /**
7895
+ * Emitted when modal popover is opened or closed.
7896
+ */
7897
+ "opened"
7887
7898
  ],
7888
7899
  data() {
7889
7900
  return {
@@ -7896,6 +7907,9 @@ const Nl = {
7896
7907
  },
7897
7908
  isCompactMode() {
7898
7909
  return this.buttonWidthSize === "sm" || this.buttonWidthSize === "md";
7910
+ },
7911
+ showPopover() {
7912
+ return !this.openPopover || this.open ? !1 : this.arrowClick();
7899
7913
  }
7900
7914
  },
7901
7915
  methods: {
@@ -7906,7 +7920,7 @@ const Nl = {
7906
7920
  this.$props.onClick ? this.$emit("click", e) : this.arrowClick(e);
7907
7921
  },
7908
7922
  onModalIsOpened(e) {
7909
- this.open = e;
7923
+ this.open = e, this.$emit("opened", e);
7910
7924
  }
7911
7925
  }
7912
7926
  }, zl = { class: "d-d-flex d-ai-center" };
@@ -7947,7 +7961,10 @@ function Ml(e, s, t, l, n, i) {
7947
7961
  class: "dt-recipe--callbar-button-with-popover--popover-wrapper",
7948
7962
  "dialog-class": ["dt-recipe--callbar-button-with-popover--popover", t.contentClass],
7949
7963
  "header-class": "d-d-flex d-ai-center d-fw-normal d-px12"
7950
- }, e.$attrs, { onOpened: i.onModalIsOpened }), {
7964
+ }, e.$attrs, {
7965
+ "open-popover": i.showPopover,
7966
+ onOpened: i.onModalIsOpened
7967
+ }), {
7951
7968
  anchor: c(() => [
7952
7969
  p(u, {
7953
7970
  circle: "",
@@ -7979,7 +7996,7 @@ function Ml(e, s, t, l, n, i) {
7979
7996
  d(e.$slots, "footerContent")
7980
7997
  ]),
7981
7998
  _: 3
7982
- }, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "dialog-class", "onOpened"])) : g("", !0)
7999
+ }, 16, ["id", "open", "placement", "initial-focus-element", "show-close-button", "dialog-class", "open-popover", "onOpened"])) : g("", !0)
7983
8000
  ]);
7984
8001
  }
7985
8002
  const td = /* @__PURE__ */ v(Nl, [["render", Ml]]), Vl = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-vue",
3
- "version": "3.73.2",
3
+ "version": "3.73.3",
4
4
  "description": "Vue component library for Dialpad's design system Dialtone",
5
5
  "scripts": {
6
6
  "build": "npm run clean && npm run build:main && npm run build:documentation",