@featherds/dialog
Advanced tools
Comparing version 0.2.12 to 0.9.1
@@ -41,7 +41,13 @@ var __defProp = Object.defineProperty; | ||
lastFocus: void 0, | ||
ignoreUtilFocusChanges: false | ||
ignoreUtilFocusChanges: false, | ||
rendered: false | ||
}; | ||
}, | ||
computed: { | ||
ready() { | ||
return this.rendered && this.enable; | ||
} | ||
}, | ||
watch: { | ||
enable: { | ||
ready: { | ||
immediate: true, | ||
@@ -80,3 +86,4 @@ handler: "enableTrap" | ||
removeFocusTrapEvents() { | ||
document.removeEventListener("focus", this.trapFocus, true); | ||
if (typeof document !== "undefined") | ||
document.removeEventListener("focus", this.trapFocus, true); | ||
}, | ||
@@ -147,2 +154,5 @@ focusFirstDescendant(element) { | ||
}, | ||
mounted() { | ||
this.rendered = true; | ||
}, | ||
beforeUnmount() { | ||
@@ -206,3 +216,3 @@ this.removeFocusTrapEvents(); | ||
} | ||
var DialogClose = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-0e4128aa"]]); | ||
var DialogClose = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-3998156b"]]); | ||
var FeatherDialog_vue_vue_type_style_index_0_scoped_true_lang = ""; | ||
@@ -252,5 +262,2 @@ const LABELS = { | ||
}; | ||
const hasIcon = computed(() => { | ||
return !!context.slots.icon; | ||
}); | ||
const hasFooter = computed(() => { | ||
@@ -279,3 +286,3 @@ return !!context.slots.footer; | ||
}); | ||
return __spreadValues({ close, hasIcon, hasFooter, headerId, element, shown }, labels); | ||
return __spreadValues({ close, hasFooter, headerId, element, shown }, labels); | ||
}, | ||
@@ -299,6 +306,2 @@ components: { | ||
key: 0, | ||
class: "icon-wrapper" | ||
}; | ||
const _hoisted_8 = { | ||
key: 0, | ||
class: "dialog-footer", | ||
@@ -348,9 +351,6 @@ "data-ref-id": "feather-dialog-footer" | ||
createElementVNode("div", _hoisted_6, [ | ||
$setup.hasIcon ? (openBlock(), createElementBlock("div", _hoisted_7, [ | ||
renderSlot(_ctx.$slots, "icon", {}, void 0, true) | ||
])) : createCommentVNode("", true), | ||
renderSlot(_ctx.$slots, "default", {}, void 0, true) | ||
]) | ||
]), | ||
$setup.hasFooter ? (openBlock(), createElementBlock("div", _hoisted_8, [ | ||
$setup.hasFooter ? (openBlock(), createElementBlock("div", _hoisted_7, [ | ||
renderSlot(_ctx.$slots, "footer", {}, void 0, true) | ||
@@ -378,3 +378,3 @@ ])) : createCommentVNode("", true), | ||
} | ||
var FeatherDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7eb55876"]]); | ||
var FeatherDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-16089cce"]]); | ||
export { DialogClose, FeatherDialog, FocusTrap }; |
{ | ||
"name": "@featherds/dialog", | ||
"version": "0.2.12", | ||
"version": "0.9.1", | ||
"publishConfig": { | ||
@@ -12,6 +12,6 @@ "access": "public" | ||
"dependencies": { | ||
"@featherds/composables": "^0.2.12", | ||
"@featherds/icon": "^0.2.12", | ||
"@featherds/styles": "^0.2.12", | ||
"@featherds/utils": "^0.2.12", | ||
"@featherds/composables": "^0.9.1", | ||
"@featherds/icon": "^0.9.1", | ||
"@featherds/styles": "^0.9.1", | ||
"@featherds/utils": "^0.9.1", | ||
"vue": "^3.1.0-0" | ||
@@ -24,3 +24,3 @@ }, | ||
"types": "./src/index.d.ts", | ||
"gitHead": "dfaa7510202c7d4ff72011c943bd0bab78b24eaf" | ||
"gitHead": "9590974ac2d224b5706292752c550dc615c7cff5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48752
835
+ Added@featherds/composables@0.9.6(transitive)
+ Added@featherds/icon@0.9.6(transitive)
+ Added@featherds/styles@0.9.6(transitive)
+ Added@featherds/utils@0.9.6(transitive)
- Removed@featherds/composables@0.2.12(transitive)
- Removed@featherds/icon@0.2.12(transitive)
- Removed@featherds/styles@0.2.12(transitive)
- Removed@featherds/utils@0.2.12(transitive)
- Removedlodash.debounce@4.0.8(transitive)
Updated@featherds/icon@^0.9.1
Updated@featherds/styles@^0.9.1
Updated@featherds/utils@^0.9.1