nwl-components 0.0.23 → 0.0.24
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.
- package/dist/nwl-components.es.js +25 -11
- package/dist/nwl-components.umd.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -6897,17 +6897,27 @@ const _sfc_main$s = {
|
|
|
6897
6897
|
var ProjectInfo = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["__scopeId", "data-v-51e11f34"]]);
|
|
6898
6898
|
var Access_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6899
6899
|
const _hoisted_1$k = ["data-level"];
|
|
6900
|
-
const _hoisted_2$e = ["title"];
|
|
6901
|
-
const _hoisted_3$c = ["title"];
|
|
6902
|
-
const _hoisted_4$c = ["title"];
|
|
6903
|
-
const _hoisted_5$9 = ["title"];
|
|
6900
|
+
const _hoisted_2$e = ["disabled", "title"];
|
|
6901
|
+
const _hoisted_3$c = ["disabled", "title"];
|
|
6902
|
+
const _hoisted_4$c = ["disabled", "title"];
|
|
6903
|
+
const _hoisted_5$9 = ["disabled", "title"];
|
|
6904
6904
|
const _sfc_main$r = {
|
|
6905
6905
|
props: {
|
|
6906
6906
|
collaborator: Object,
|
|
6907
|
-
type: String
|
|
6907
|
+
type: String,
|
|
6908
|
+
readonly: {
|
|
6909
|
+
type: Boolean,
|
|
6910
|
+
default: false
|
|
6911
|
+
}
|
|
6908
6912
|
},
|
|
6909
6913
|
emits: ["updateAccess"],
|
|
6910
|
-
setup(__props) {
|
|
6914
|
+
setup(__props, { emit }) {
|
|
6915
|
+
const props = __props;
|
|
6916
|
+
const handleButtonClick = (level) => {
|
|
6917
|
+
if (props.readonly)
|
|
6918
|
+
return;
|
|
6919
|
+
emit("updateAccess", props.collaborator, props.type, level);
|
|
6920
|
+
};
|
|
6911
6921
|
return (_ctx, _cache) => {
|
|
6912
6922
|
return openBlock(), createElementBlock("div", {
|
|
6913
6923
|
class: "access",
|
|
@@ -6915,33 +6925,37 @@ const _sfc_main$r = {
|
|
|
6915
6925
|
}, [
|
|
6916
6926
|
createElementVNode("button", {
|
|
6917
6927
|
small: true,
|
|
6918
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
6928
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleButtonClick(1)),
|
|
6919
6929
|
class: "view",
|
|
6930
|
+
disabled: __props.readonly,
|
|
6920
6931
|
title: `view ${__props.type}`
|
|
6921
6932
|
}, null, 8, _hoisted_2$e),
|
|
6922
6933
|
createElementVNode("button", {
|
|
6923
6934
|
small: true,
|
|
6924
|
-
onClick: _cache[1] || (_cache[1] = ($event) =>
|
|
6935
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleButtonClick(2)),
|
|
6925
6936
|
class: "edit",
|
|
6937
|
+
disabled: __props.readonly,
|
|
6926
6938
|
title: `edit ${__props.type}`
|
|
6927
6939
|
}, null, 8, _hoisted_3$c),
|
|
6928
6940
|
createElementVNode("button", {
|
|
6929
6941
|
small: true,
|
|
6930
|
-
onClick: _cache[2] || (_cache[2] = ($event) =>
|
|
6942
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleButtonClick(3)),
|
|
6931
6943
|
class: "add",
|
|
6944
|
+
disabled: __props.readonly,
|
|
6932
6945
|
title: `add ${__props.type}`
|
|
6933
6946
|
}, null, 8, _hoisted_4$c),
|
|
6934
6947
|
createElementVNode("button", {
|
|
6935
6948
|
small: true,
|
|
6936
|
-
onClick: _cache[3] || (_cache[3] = ($event) =>
|
|
6949
|
+
onClick: _cache[3] || (_cache[3] = ($event) => handleButtonClick(4)),
|
|
6937
6950
|
class: "remove",
|
|
6951
|
+
disabled: __props.readonly,
|
|
6938
6952
|
title: `remove ${__props.type}`
|
|
6939
6953
|
}, null, 8, _hoisted_5$9)
|
|
6940
6954
|
], 8, _hoisted_1$k);
|
|
6941
6955
|
};
|
|
6942
6956
|
}
|
|
6943
6957
|
};
|
|
6944
|
-
var Access = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-
|
|
6958
|
+
var Access = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-995e0324"]]);
|
|
6945
6959
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
6946
6960
|
var freeGlobal$1 = freeGlobal;
|
|
6947
6961
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|