nwl-components 1.3.7 → 1.3.8
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/README.md +0 -0
- package/dist/nwl-components.es.js +24 -30
- package/dist/nwl-components.es.js.map +1 -0
- package/dist/nwl-components.umd.js +47 -46
- package/dist/nwl-components.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
|
@@ -26,7 +26,7 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
const _hoisted_1$
|
|
29
|
+
const _hoisted_1$v = ["value"];
|
|
30
30
|
const _sfc_main$E = {
|
|
31
31
|
__name: "TextInput",
|
|
32
32
|
props: {
|
|
@@ -44,13 +44,13 @@ const _sfc_main$E = {
|
|
|
44
44
|
return openBlock(), createElementBlock("input", mergeProps({ type: "text" }, props, {
|
|
45
45
|
value: __props.modelValue,
|
|
46
46
|
onInput: handleInput
|
|
47
|
-
}), null, 16, _hoisted_1$
|
|
47
|
+
}), null, 16, _hoisted_1$v);
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
var TextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-2cc3f9d3"]]);
|
|
52
52
|
var Autocomplete_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".autocomplete-results[data-v-ee76199e]{position:absolute;top:30px;z-index:10;background:#222;width:auto;box-sizing:border-box;margin:0;padding:0;list-style:none}.autocomplete-results li[data-v-ee76199e]{padding:10px;border-bottom:1px solid #333;cursor:pointer}.autocomplete-results li[data-v-ee76199e]:hover,.is-active[data-v-ee76199e]{background:#444;color:#fff}\n")();
|
|
53
|
-
const _hoisted_1$
|
|
53
|
+
const _hoisted_1$u = ["aria-owns", "aria-expanded"];
|
|
54
54
|
const _hoisted_2$j = ["id"];
|
|
55
55
|
const _hoisted_3$g = {
|
|
56
56
|
key: 0,
|
|
@@ -209,13 +209,13 @@ const _sfc_main$D = {
|
|
|
209
209
|
], 8, _hoisted_2$j), [
|
|
210
210
|
[vShow, state2.isOpen]
|
|
211
211
|
])
|
|
212
|
-
], 8, _hoisted_1$
|
|
212
|
+
], 8, _hoisted_1$u);
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-ee76199e"]]);
|
|
217
217
|
var Button_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "button[data-v-38cffafe]{background:transparent;color:#fff;border:1px solid #777;border-radius:3px;margin-right:5px;cursor:pointer;padding:10px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;outline:none}.push-button[data-v-38cffafe]{border:1px solid #ddd;border-radius:6px;color:#ddd;text-align:center;-webkit-appearance:none;cursor:pointer;padding:5px 0;font-weight:700}.small[data-v-38cffafe]{width:20px;height:20px}button[data-v-38cffafe]:hover{background:#555}button[data-v-38cffafe]:disabled{opacity:.4;cursor:default}button[data-v-38cffafe] img{width:20px;height:20px}\n")();
|
|
218
|
-
const _hoisted_1$
|
|
218
|
+
const _hoisted_1$t = ["title", "disabled"];
|
|
219
219
|
const _sfc_main$C = {
|
|
220
220
|
__name: "Button",
|
|
221
221
|
props: {
|
|
@@ -237,12 +237,13 @@ const _sfc_main$C = {
|
|
|
237
237
|
class: normalizeClass(classes)
|
|
238
238
|
}, [
|
|
239
239
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
240
|
-
], 8, _hoisted_1$
|
|
240
|
+
], 8, _hoisted_1$t);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
var Button = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-38cffafe"]]);
|
|
245
|
-
var Select_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "select[data-v-
|
|
245
|
+
var Select_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "select[data-v-6dbed30b]{border:none;background:none;color:#fff;appearance:none;outline:none;cursor:pointer}\n")();
|
|
246
|
+
const _hoisted_1$s = ["value"];
|
|
246
247
|
const _sfc_main$B = {
|
|
247
248
|
__name: "Select",
|
|
248
249
|
props: {
|
|
@@ -252,28 +253,20 @@ const _sfc_main$B = {
|
|
|
252
253
|
emits: ["update:modelValue"],
|
|
253
254
|
setup(__props, { emit }) {
|
|
254
255
|
const props = __props;
|
|
255
|
-
const root2 = ref(null);
|
|
256
|
-
onMounted(() => {
|
|
257
|
-
const options = Array.from(root2.value.options);
|
|
258
|
-
const optionToSelect = options.find((element) => element.value == props.modelValue);
|
|
259
|
-
if (optionToSelect != null) {
|
|
260
|
-
optionToSelect.selected = true;
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
256
|
const handleInput = (event) => {
|
|
264
257
|
emit("update:modelValue", event.target.value);
|
|
265
258
|
};
|
|
266
259
|
return (_ctx, _cache) => {
|
|
267
|
-
return openBlock(), createElementBlock("select", mergeProps({
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
260
|
+
return openBlock(), createElementBlock("select", mergeProps(props, {
|
|
261
|
+
value: __props.modelValue,
|
|
262
|
+
onInput: handleInput
|
|
263
|
+
}), [
|
|
271
264
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
272
|
-
], 16);
|
|
265
|
+
], 16, _hoisted_1$s);
|
|
273
266
|
};
|
|
274
267
|
}
|
|
275
268
|
};
|
|
276
|
-
var Select = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-
|
|
269
|
+
var Select = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-6dbed30b"]]);
|
|
277
270
|
var TextArea_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "textarea[data-v-0c2bd53c]{background:transparent;color:#fff;font-family:inherit;font-size:12px;padding:0;border:none;box-sizing:border-box}textarea[disabled][data-v-0c2bd53c]{background:#555;color:#bbb}[data-v-0c2bd53c]::placeholder{color:#ccc}\n")();
|
|
278
271
|
const _sfc_main$A = {
|
|
279
272
|
__name: "TextArea",
|
|
@@ -7771,8 +7764,8 @@ const _sfc_main$q = {
|
|
|
7771
7764
|
};
|
|
7772
7765
|
}
|
|
7773
7766
|
};
|
|
7774
|
-
var PureAnnotations_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "h2[data-v-
|
|
7775
|
-
const _withScopeId$8 = (n) => (pushScopeId("data-v-
|
|
7767
|
+
var PureAnnotations_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "h2[data-v-4f03a193]{font-size:14px;padding-bottom:4px}.actions[data-v-4f03a193]{text-align:right;margin-top:20px}\n")();
|
|
7768
|
+
const _withScopeId$8 = (n) => (pushScopeId("data-v-4f03a193"), n = n(), popScopeId(), n);
|
|
7776
7769
|
const _hoisted_1$i = { class: "wrapper" };
|
|
7777
7770
|
const _hoisted_2$c = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("h2", null, "Annotations", -1));
|
|
7778
7771
|
const _hoisted_3$a = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("thead", null, [
|
|
@@ -7784,8 +7777,8 @@ const _hoisted_3$a = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ create
|
|
|
7784
7777
|
])
|
|
7785
7778
|
], -1));
|
|
7786
7779
|
const _hoisted_4$a = ["onClick"];
|
|
7787
|
-
const _hoisted_5$7 = ["value"
|
|
7788
|
-
const _hoisted_6$6 = ["value"
|
|
7780
|
+
const _hoisted_5$7 = ["value"];
|
|
7781
|
+
const _hoisted_6$6 = ["value"];
|
|
7789
7782
|
const _hoisted_7$6 = { class: "actions" };
|
|
7790
7783
|
const _hoisted_8$5 = /* @__PURE__ */ createTextVNode(" + ");
|
|
7791
7784
|
const _hoisted_9$4 = /* @__PURE__ */ createTextVNode(" - ");
|
|
@@ -7833,6 +7826,8 @@ const _sfc_main$p = {
|
|
|
7833
7826
|
const payload = { type };
|
|
7834
7827
|
if (type === "text") {
|
|
7835
7828
|
payload.values = "";
|
|
7829
|
+
} else if (labelSets.every((label) => label.source !== props.annotations[idx].values)) {
|
|
7830
|
+
payload.values = labelSets[0].source;
|
|
7836
7831
|
}
|
|
7837
7832
|
emitAnnotationUpdate(idx, payload);
|
|
7838
7833
|
};
|
|
@@ -7880,8 +7875,7 @@ const _sfc_main$p = {
|
|
|
7880
7875
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(annotationTypes), (opt) => {
|
|
7881
7876
|
return openBlock(), createElementBlock("option", {
|
|
7882
7877
|
key: `${annotation.name}${opt}`,
|
|
7883
|
-
value: opt
|
|
7884
|
-
selected: opt === annotation.type
|
|
7878
|
+
value: opt
|
|
7885
7879
|
}, toDisplayString(opt), 9, _hoisted_5$7);
|
|
7886
7880
|
}), 128))
|
|
7887
7881
|
]),
|
|
@@ -7899,8 +7893,7 @@ const _sfc_main$p = {
|
|
|
7899
7893
|
(openBlock(true), createElementBlock(Fragment, null, renderList(labelSets, (opt) => {
|
|
7900
7894
|
return openBlock(), createElementBlock("option", {
|
|
7901
7895
|
value: opt.source,
|
|
7902
|
-
key: `${annotation.name}${opt.source}
|
|
7903
|
-
selected: opt.source === annotation.values
|
|
7896
|
+
key: `${annotation.name}${opt.source}`
|
|
7904
7897
|
}, toDisplayString(opt.name), 9, _hoisted_6$6);
|
|
7905
7898
|
}), 128))
|
|
7906
7899
|
]),
|
|
@@ -7947,7 +7940,7 @@ const _sfc_main$p = {
|
|
|
7947
7940
|
};
|
|
7948
7941
|
}
|
|
7949
7942
|
};
|
|
7950
|
-
var PureAnnotations = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["__scopeId", "data-v-
|
|
7943
|
+
var PureAnnotations = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["__scopeId", "data-v-4f03a193"]]);
|
|
7951
7944
|
const _sfc_main$o = {
|
|
7952
7945
|
__name: "Annotations",
|
|
7953
7946
|
setup(__props) {
|
|
@@ -10882,3 +10875,4 @@ const _sfc_main = {
|
|
|
10882
10875
|
}
|
|
10883
10876
|
};
|
|
10884
10877
|
export { Access, AdjustSettings, AnnotationCell, _sfc_main$o as Annotations, Autocomplete, Button, ButtonsGroup, Chat, Checkbox, Col, _sfc_main$q as Collaborators, Editor, _sfc_main$m as Files, Footer, Header, ImportFilesDialog, Nav, NewProjectPage, OntologySelector, ProjectInfo, ProjectPage, PureAnnotations, PureCollaborators, PureFiles, RangeSlider, Row, _sfc_main as ScriptConsole, Select, Settings, _sfc_main$g as SettingsPage, Tab, Table, Tabs, TextAnnotations, TextArea, TextInput, _sfc_main$f as UserPage, VolumeAnnotations, Wrapper };
|
|
10878
|
+
//# sourceMappingURL=nwl-components.es.js.map
|