nwl-components 0.0.21 → 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 +61 -40
- 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)) {
|
|
@@ -10204,13 +10218,12 @@ const _sfc_main$7 = {
|
|
|
10204
10218
|
default: true
|
|
10205
10219
|
}
|
|
10206
10220
|
},
|
|
10207
|
-
emits: ["
|
|
10221
|
+
emits: ["update:modelValue"],
|
|
10208
10222
|
setup(__props, { emit }) {
|
|
10209
10223
|
const props = __props;
|
|
10210
|
-
const innerValue =
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
innerValue.value = props.modelValue;
|
|
10224
|
+
const innerValue = computed({
|
|
10225
|
+
get: () => props.modelValue,
|
|
10226
|
+
set: (value) => emit("update:modelValue", value)
|
|
10214
10227
|
});
|
|
10215
10228
|
const handleInput = ($event) => {
|
|
10216
10229
|
innerValue.value = parseInt($event.target.value);
|
|
@@ -10239,7 +10252,7 @@ const _sfc_main$7 = {
|
|
|
10239
10252
|
type: "range",
|
|
10240
10253
|
min: "0",
|
|
10241
10254
|
max: __props.max,
|
|
10242
|
-
value: innerValue
|
|
10255
|
+
value: unref(innerValue),
|
|
10243
10256
|
step: "1",
|
|
10244
10257
|
onInput: handleInput
|
|
10245
10258
|
}, null, 40, _hoisted_3$3),
|
|
@@ -10257,7 +10270,7 @@ const _sfc_main$7 = {
|
|
|
10257
10270
|
};
|
|
10258
10271
|
}
|
|
10259
10272
|
};
|
|
10260
|
-
var RangeSlider = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__scopeId", "data-v-
|
|
10273
|
+
var RangeSlider = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__scopeId", "data-v-7b4d1dd8"]]);
|
|
10261
10274
|
var Row_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10262
10275
|
const _sfc_main$6 = {
|
|
10263
10276
|
props: {
|
|
@@ -10302,8 +10315,7 @@ const _sfc_main$5 = {
|
|
|
10302
10315
|
});
|
|
10303
10316
|
const selectedIndex = ref(0);
|
|
10304
10317
|
return (_ctx, _cache) => {
|
|
10305
|
-
|
|
10306
|
-
return openBlock(), createBlock(_component_Table, { id: "annotations" }, {
|
|
10318
|
+
return openBlock(), createBlock(Table, { id: "annotations" }, {
|
|
10307
10319
|
default: withCtx(() => [
|
|
10308
10320
|
createElementVNode("thead", null, [
|
|
10309
10321
|
createElementVNode("tr", null, [
|
|
@@ -10341,7 +10353,7 @@ const _sfc_main$5 = {
|
|
|
10341
10353
|
};
|
|
10342
10354
|
}
|
|
10343
10355
|
};
|
|
10344
|
-
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"]]);
|
|
10345
10357
|
var VolumeAnnotations_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10346
10358
|
const _hoisted_1$4 = ["onClick"];
|
|
10347
10359
|
const _sfc_main$4 = {
|
|
@@ -10365,8 +10377,7 @@ const _sfc_main$4 = {
|
|
|
10365
10377
|
selectedIndex.value = 0;
|
|
10366
10378
|
});
|
|
10367
10379
|
return (_ctx, _cache) => {
|
|
10368
|
-
|
|
10369
|
-
return openBlock(), createBlock(_component_Table, { id: "volAnnotations" }, {
|
|
10380
|
+
return openBlock(), createBlock(Table, { id: "volAnnotations" }, {
|
|
10370
10381
|
default: withCtx(() => [
|
|
10371
10382
|
createElementVNode("thead", null, [
|
|
10372
10383
|
createElementVNode("tr", null, [
|
|
@@ -10399,7 +10410,7 @@ const _sfc_main$4 = {
|
|
|
10399
10410
|
};
|
|
10400
10411
|
}
|
|
10401
10412
|
};
|
|
10402
|
-
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"]]);
|
|
10403
10414
|
var OntologySelector_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10404
10415
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-57794ff7"), n = n(), popScopeId(), n);
|
|
10405
10416
|
const _hoisted_1$3 = {
|
|
@@ -10505,7 +10516,7 @@ var _imports_0 = "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE1MzYiIHdpZHRoPSIx
|
|
|
10505
10516
|
var _imports_1 = "data:image/sv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N2Zz4=";
|
|
10507
10518
|
var AdjustSettings_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10508
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
10519
|
+
const _withScopeId = (n) => (pushScopeId("data-v-5f53e1ac"), n = n(), popScopeId(), n);
|
|
10509
10520
|
const _hoisted_1$1 = { class: "adjust-settings" };
|
|
10510
10521
|
const _hoisted_2 = { class: "setting" };
|
|
10511
10522
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
|
|
@@ -10530,15 +10541,21 @@ const _sfc_main$1 = {
|
|
|
10530
10541
|
},
|
|
10531
10542
|
emits: ["changeAlpha", "changeBrightness", "changeContrast"],
|
|
10532
10543
|
setup(__props, { emit }) {
|
|
10544
|
+
const props = __props;
|
|
10545
|
+
const alpha = ref(props.alpha);
|
|
10546
|
+
const brightness = ref(props.brightness);
|
|
10547
|
+
const contrast = ref(props.contrast);
|
|
10533
10548
|
return (_ctx, _cache) => {
|
|
10534
10549
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
10535
10550
|
createElementVNode("div", _hoisted_2, [
|
|
10536
10551
|
_hoisted_3,
|
|
10537
10552
|
createVNode(RangeSlider, {
|
|
10538
10553
|
max: 100,
|
|
10539
|
-
modelValue:
|
|
10540
|
-
"onUpdate:modelValue":
|
|
10541
|
-
|
|
10554
|
+
modelValue: alpha.value,
|
|
10555
|
+
"onUpdate:modelValue": [
|
|
10556
|
+
_cache[0] || (_cache[0] = ($event) => alpha.value = $event),
|
|
10557
|
+
_cache[1] || (_cache[1] = ($event) => emit("changeAlpha", $event))
|
|
10558
|
+
],
|
|
10542
10559
|
"display-buttons": false
|
|
10543
10560
|
}, null, 8, ["modelValue"])
|
|
10544
10561
|
]),
|
|
@@ -10546,9 +10563,11 @@ const _sfc_main$1 = {
|
|
|
10546
10563
|
_hoisted_5,
|
|
10547
10564
|
createVNode(RangeSlider, {
|
|
10548
10565
|
max: 100,
|
|
10549
|
-
modelValue:
|
|
10550
|
-
"onUpdate:modelValue":
|
|
10551
|
-
|
|
10566
|
+
modelValue: brightness.value,
|
|
10567
|
+
"onUpdate:modelValue": [
|
|
10568
|
+
_cache[2] || (_cache[2] = ($event) => brightness.value = $event),
|
|
10569
|
+
_cache[3] || (_cache[3] = ($event) => emit("changeBrightness", $event))
|
|
10570
|
+
],
|
|
10552
10571
|
"display-buttons": false
|
|
10553
10572
|
}, null, 8, ["modelValue"])
|
|
10554
10573
|
]),
|
|
@@ -10556,9 +10575,11 @@ const _sfc_main$1 = {
|
|
|
10556
10575
|
_hoisted_7,
|
|
10557
10576
|
createVNode(RangeSlider, {
|
|
10558
10577
|
max: 100,
|
|
10559
|
-
modelValue:
|
|
10560
|
-
"onUpdate:modelValue":
|
|
10561
|
-
|
|
10578
|
+
modelValue: contrast.value,
|
|
10579
|
+
"onUpdate:modelValue": [
|
|
10580
|
+
_cache[4] || (_cache[4] = ($event) => contrast.value = $event),
|
|
10581
|
+
_cache[5] || (_cache[5] = ($event) => emit("changeContrast", $event))
|
|
10582
|
+
],
|
|
10562
10583
|
"display-buttons": false
|
|
10563
10584
|
}, null, 8, ["modelValue"])
|
|
10564
10585
|
])
|
|
@@ -10566,7 +10587,7 @@ const _sfc_main$1 = {
|
|
|
10566
10587
|
};
|
|
10567
10588
|
}
|
|
10568
10589
|
};
|
|
10569
|
-
var AdjustSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-
|
|
10590
|
+
var AdjustSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-5f53e1ac"]]);
|
|
10570
10591
|
var ScriptConsole_vue_vue_type_style_index_0_lang = "";
|
|
10571
10592
|
const _hoisted_1 = { id: "logScript" };
|
|
10572
10593
|
const _sfc_main = {
|