nwl-components 0.0.22 → 0.0.25
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 +34 -22
- package/dist/nwl-components.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21
21
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
|
-
import { openBlock, createElementBlock, mergeProps, reactive, ref, watch, onMounted, onUnmounted, unref, createVNode, withKeys, withDirectives, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, vShow, renderSlot, isRef, vModelText, getCurrentInstance, createCommentVNode, createBlock, withCtx, pushScopeId, popScopeId, createTextVNode, inject, toRefs, h, normalizeStyle, computed, setBlockTracking, withModifiers
|
|
24
|
+
import { openBlock, createElementBlock, mergeProps, reactive, ref, watch, onMounted, onUnmounted, unref, createVNode, withKeys, withDirectives, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, vShow, renderSlot, isRef, vModelText, getCurrentInstance, createCommentVNode, createBlock, withCtx, pushScopeId, popScopeId, createTextVNode, inject, toRefs, h, normalizeStyle, computed, setBlockTracking, withModifiers } from "vue";
|
|
25
25
|
let nanoid = (size = 21) => {
|
|
26
26
|
let id = "";
|
|
27
27
|
let bytes = crypto.getRandomValues(new Uint8Array(size));
|
|
@@ -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;
|
|
@@ -9083,8 +9097,8 @@ var pane = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$1]])
|
|
|
9083
9097
|
var splitpanes = "";
|
|
9084
9098
|
var ProjectPage_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
9085
9099
|
var ProjectPage_vue_vue_type_style_index_1_lang = "";
|
|
9086
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
9087
|
-
const _hoisted_1$9 =
|
|
9100
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-101373ed"), n = n(), popScopeId(), n);
|
|
9101
|
+
const _hoisted_1$9 = { class: "title" };
|
|
9088
9102
|
const _hoisted_2$5 = { class: "left-header" };
|
|
9089
9103
|
const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("img", {
|
|
9090
9104
|
src: _imports_3,
|
|
@@ -9115,7 +9129,7 @@ const _sfc_main$b = {
|
|
|
9115
9129
|
default: withCtx(() => [
|
|
9116
9130
|
!__props.fullscreen ? (openBlock(), createBlock(Header, { key: 0 }, {
|
|
9117
9131
|
default: withCtx(() => [
|
|
9118
|
-
_hoisted_1$9
|
|
9132
|
+
createElementVNode("span", _hoisted_1$9, toDisplayString(__props.project.title), 1)
|
|
9119
9133
|
]),
|
|
9120
9134
|
_: 1
|
|
9121
9135
|
})) : createCommentVNode("", true),
|
|
@@ -9171,7 +9185,7 @@ const _sfc_main$b = {
|
|
|
9171
9185
|
};
|
|
9172
9186
|
}
|
|
9173
9187
|
};
|
|
9174
|
-
var ProjectPage = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["__scopeId", "data-v-
|
|
9188
|
+
var ProjectPage = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["__scopeId", "data-v-101373ed"]]);
|
|
9175
9189
|
/*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
|
|
9176
9190
|
function _toConsumableArray(arr) {
|
|
9177
9191
|
if (Array.isArray(arr)) {
|
|
@@ -10301,8 +10315,7 @@ const _sfc_main$5 = {
|
|
|
10301
10315
|
});
|
|
10302
10316
|
const selectedIndex = ref(0);
|
|
10303
10317
|
return (_ctx, _cache) => {
|
|
10304
|
-
|
|
10305
|
-
return openBlock(), createBlock(_component_Table, { id: "annotations" }, {
|
|
10318
|
+
return openBlock(), createBlock(Table, { id: "annotations" }, {
|
|
10306
10319
|
default: withCtx(() => [
|
|
10307
10320
|
createElementVNode("thead", null, [
|
|
10308
10321
|
createElementVNode("tr", null, [
|
|
@@ -10340,7 +10353,7 @@ const _sfc_main$5 = {
|
|
|
10340
10353
|
};
|
|
10341
10354
|
}
|
|
10342
10355
|
};
|
|
10343
|
-
var TextAnnotations = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-
|
|
10356
|
+
var TextAnnotations = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-7d292e38"]]);
|
|
10344
10357
|
var VolumeAnnotations_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10345
10358
|
const _hoisted_1$4 = ["onClick"];
|
|
10346
10359
|
const _sfc_main$4 = {
|
|
@@ -10364,8 +10377,7 @@ const _sfc_main$4 = {
|
|
|
10364
10377
|
selectedIndex.value = 0;
|
|
10365
10378
|
});
|
|
10366
10379
|
return (_ctx, _cache) => {
|
|
10367
|
-
|
|
10368
|
-
return openBlock(), createBlock(_component_Table, { id: "volAnnotations" }, {
|
|
10380
|
+
return openBlock(), createBlock(Table, { id: "volAnnotations" }, {
|
|
10369
10381
|
default: withCtx(() => [
|
|
10370
10382
|
createElementVNode("thead", null, [
|
|
10371
10383
|
createElementVNode("tr", null, [
|
|
@@ -10398,7 +10410,7 @@ const _sfc_main$4 = {
|
|
|
10398
10410
|
};
|
|
10399
10411
|
}
|
|
10400
10412
|
};
|
|
10401
|
-
var VolumeAnnotations = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-
|
|
10413
|
+
var VolumeAnnotations = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-f2ffd91a"]]);
|
|
10402
10414
|
var OntologySelector_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10403
10415
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-57794ff7"), n = n(), popScopeId(), n);
|
|
10404
10416
|
const _hoisted_1$3 = {
|