@bagelink/vue 0.0.172 → 0.0.182
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/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DropDown.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +15 -8
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +117 -51
- package/dist/index.mjs +117 -51
- package/dist/style.css +64 -37
- package/package.json +1 -1
- package/src/components/DataPreview.vue +33 -15
- package/src/components/DropDown.vue +35 -33
- package/src/components/TableSchema.vue +82 -84
- package/src/components/form/inputs/Checkbox.vue +21 -18
- package/src/components/form/inputs/TextInput.vue +70 -8
package/dist/index.mjs
CHANGED
|
@@ -14606,7 +14606,7 @@ const _hoisted_3$H = { class: "full-nav" };
|
|
|
14606
14606
|
const _hoisted_4$q = { class: "nav-scroll" };
|
|
14607
14607
|
const _hoisted_5$l = { class: "nav-links-wrapper" };
|
|
14608
14608
|
const _hoisted_6$h = { class: "icon-font" };
|
|
14609
|
-
const _hoisted_7$
|
|
14609
|
+
const _hoisted_7$d = { class: "tooltip" };
|
|
14610
14610
|
const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
|
|
14611
14611
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
14612
14612
|
__name: "NavBar",
|
|
@@ -14644,7 +14644,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14644
14644
|
}, {
|
|
14645
14645
|
default: withCtx(() => [
|
|
14646
14646
|
createElementVNode("div", _hoisted_6$h, toDisplayString(link.materialIcon), 1),
|
|
14647
|
-
createElementVNode("div", _hoisted_7$
|
|
14647
|
+
createElementVNode("div", _hoisted_7$d, toDisplayString(link.localized ? link.localized : link.label), 1)
|
|
14648
14648
|
]),
|
|
14649
14649
|
_: 2
|
|
14650
14650
|
}, 1032, ["to"]);
|
|
@@ -14820,8 +14820,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14820
14820
|
setup(__props, { emit: __emit }) {
|
|
14821
14821
|
const props2 = __props;
|
|
14822
14822
|
const emit2 = __emit;
|
|
14823
|
-
|
|
14824
|
-
|
|
14823
|
+
let isOpen = ref(false);
|
|
14824
|
+
let selectedOption = ref(props2.modelValue);
|
|
14825
14825
|
function toggleDropdown() {
|
|
14826
14826
|
isOpen.value = !isOpen.value;
|
|
14827
14827
|
}
|
|
@@ -14832,11 +14832,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14832
14832
|
}
|
|
14833
14833
|
return (_ctx, _cache) => {
|
|
14834
14834
|
return openBlock(), createElementBlock("div", {
|
|
14835
|
-
class: normalizeClass(["dropdown", { opendrop: isOpen
|
|
14835
|
+
class: normalizeClass(["dropdown", { opendrop: unref(isOpen) }]),
|
|
14836
14836
|
onClick: toggleDropdown
|
|
14837
14837
|
}, [
|
|
14838
14838
|
createElementVNode("div", _hoisted_1$U, [
|
|
14839
|
-
createTextVNode(toDisplayString(selectedOption
|
|
14839
|
+
createTextVNode(toDisplayString(unref(selectedOption) || __props.placeholder) + " ", 1),
|
|
14840
14840
|
createVNode(unref(_sfc_main$R), { icon: "keyboard_arrow_down" })
|
|
14841
14841
|
]),
|
|
14842
14842
|
createElementVNode("div", _hoisted_2$M, [
|
|
@@ -14996,7 +14996,7 @@ const _hoisted_3$C = { class: "comment-top" };
|
|
|
14996
14996
|
const _hoisted_4$n = { class: "comment-owner" };
|
|
14997
14997
|
const _hoisted_5$j = { class: "comment-time" };
|
|
14998
14998
|
const _hoisted_6$g = { class: "comment-actions" };
|
|
14999
|
-
const _hoisted_7$
|
|
14999
|
+
const _hoisted_7$c = ["innerHTML"];
|
|
15000
15000
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
15001
15001
|
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
15002
15002
|
__name: "Comments",
|
|
@@ -15085,7 +15085,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15085
15085
|
key: 1,
|
|
15086
15086
|
class: "editor-wrapper",
|
|
15087
15087
|
innerHTML: comment.body_html
|
|
15088
|
-
}, null, 8, _hoisted_7$
|
|
15088
|
+
}, null, 8, _hoisted_7$c))
|
|
15089
15089
|
], 2);
|
|
15090
15090
|
}), 128))
|
|
15091
15091
|
]),
|
|
@@ -15309,7 +15309,7 @@ const _hoisted_3$B = { class: "row first-row" };
|
|
|
15309
15309
|
const _hoisted_4$m = ["onClick"];
|
|
15310
15310
|
const _hoisted_5$i = { class: "flex" };
|
|
15311
15311
|
const _hoisted_6$f = ["onClick"];
|
|
15312
|
-
const _hoisted_7$
|
|
15312
|
+
const _hoisted_7$b = { key: 1 };
|
|
15313
15313
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
15314
15314
|
__name: "TableSchema",
|
|
15315
15315
|
props: {
|
|
@@ -15349,10 +15349,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15349
15349
|
const columns = computed(
|
|
15350
15350
|
() => {
|
|
15351
15351
|
var _a;
|
|
15352
|
-
return ((_a = props2.schema) == null ? void 0 : _a.call(props2)) || Object.keys(props2.data[0]).map((k) => ({
|
|
15353
|
-
id: k,
|
|
15354
|
-
inputType: "PlainText"
|
|
15355
|
-
}));
|
|
15352
|
+
return ((_a = props2.schema) == null ? void 0 : _a.call(props2)) || Object.keys(props2.data[0]).map((k) => ({ id: k, inputType: "PlainText" }));
|
|
15356
15353
|
}
|
|
15357
15354
|
);
|
|
15358
15355
|
return (_ctx, _cache) => {
|
|
@@ -15399,9 +15396,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15399
15396
|
key: 0,
|
|
15400
15397
|
row,
|
|
15401
15398
|
field
|
|
15402
|
-
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
15399
|
+
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$b, [
|
|
15403
15400
|
(field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (openBlock(), createBlock(resolveDynamicComponent(field.$el || field.$cmp || "div"), mergeProps({ key: 0 }, bindAttrs(field.attrs, row[field.id], row), {
|
|
15404
|
-
src: field.$el === "img" ? (_a = row[field.id]) == null ? void 0 : _a.url : ""
|
|
15401
|
+
src: field.$el === "img" ? (_a = row[field.id]) == null ? void 0 : _a.url : "",
|
|
15402
|
+
"onUpdate:modelValue": ($event) => {
|
|
15403
|
+
var _a2;
|
|
15404
|
+
return (_a2 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a2.call(field, $event, row[field.id], row);
|
|
15405
|
+
},
|
|
15406
|
+
modelValue: row[field.id]
|
|
15405
15407
|
}), {
|
|
15406
15408
|
default: withCtx(() => {
|
|
15407
15409
|
var _a2;
|
|
@@ -15410,7 +15412,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15410
15412
|
];
|
|
15411
15413
|
}),
|
|
15412
15414
|
_: 2
|
|
15413
|
-
}, 1040, ["src"])) : createCommentVNode("", true)
|
|
15415
|
+
}, 1040, ["src", "onUpdate:modelValue", "modelValue"])) : createCommentVNode("", true)
|
|
15414
15416
|
]))
|
|
15415
15417
|
]);
|
|
15416
15418
|
}), 128))
|
|
@@ -15422,7 +15424,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15422
15424
|
};
|
|
15423
15425
|
}
|
|
15424
15426
|
});
|
|
15425
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
15427
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-8cd8ab82"]]);
|
|
15426
15428
|
const _sfc_main$E = {};
|
|
15427
15429
|
const _hoisted_1$M = { class: "flex space-between" };
|
|
15428
15430
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -15506,7 +15508,7 @@ const _hoisted_6$e = {
|
|
|
15506
15508
|
key: 0,
|
|
15507
15509
|
class: "person-card-details"
|
|
15508
15510
|
};
|
|
15509
|
-
const _hoisted_7$
|
|
15511
|
+
const _hoisted_7$a = {
|
|
15510
15512
|
key: 1,
|
|
15511
15513
|
class: "person-card-details"
|
|
15512
15514
|
};
|
|
@@ -15576,7 +15578,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15576
15578
|
}, toDisplayString(phone.phone), 1);
|
|
15577
15579
|
}), 128))
|
|
15578
15580
|
])) : createCommentVNode("", true),
|
|
15579
|
-
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
15581
|
+
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
|
|
15580
15582
|
createVNode(unref(_sfc_main$R), { icon: "email" }),
|
|
15581
15583
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.email, (email) => {
|
|
15582
15584
|
return openBlock(), createElementBlock("p", {
|
|
@@ -15602,10 +15604,14 @@ const _hoisted_2$D = {
|
|
|
15602
15604
|
key: 0,
|
|
15603
15605
|
class: "mb-3 mt-0"
|
|
15604
15606
|
};
|
|
15605
|
-
const _hoisted_3$z = {
|
|
15606
|
-
|
|
15607
|
-
|
|
15608
|
-
|
|
15607
|
+
const _hoisted_3$z = {
|
|
15608
|
+
key: 0,
|
|
15609
|
+
class: "data-row"
|
|
15610
|
+
};
|
|
15611
|
+
const _hoisted_4$k = { class: "key" };
|
|
15612
|
+
const _hoisted_5$g = { key: 1 };
|
|
15613
|
+
const _hoisted_6$d = { class: "key" };
|
|
15614
|
+
const _hoisted_7$9 = { class: "vlue" };
|
|
15609
15615
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
15610
15616
|
__name: "DataPreview",
|
|
15611
15617
|
props: {
|
|
@@ -15616,34 +15622,55 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15616
15622
|
setup(__props) {
|
|
15617
15623
|
const i18nT = useI18nT();
|
|
15618
15624
|
const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
|
|
15625
|
+
const props2 = __props;
|
|
15626
|
+
const itemData = ref(props2.data);
|
|
15627
|
+
const bindAttrs = (attrs, field, row) => {
|
|
15628
|
+
const arr = Object.entries(attrs || {}).map(([key, value]) => [
|
|
15629
|
+
key,
|
|
15630
|
+
typeof value === "function" ? value(field, row) : value
|
|
15631
|
+
]);
|
|
15632
|
+
const resolvedAttrs = Object.fromEntries(arr);
|
|
15633
|
+
return resolvedAttrs;
|
|
15634
|
+
};
|
|
15619
15635
|
return (_ctx, _cache) => {
|
|
15620
15636
|
var _a;
|
|
15621
15637
|
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
15622
15638
|
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$D, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
15623
15639
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
|
|
15624
|
-
return openBlock(), createElementBlock(
|
|
15625
|
-
key: field.id
|
|
15626
|
-
class: "data-row"
|
|
15640
|
+
return openBlock(), createElementBlock(Fragment$1, {
|
|
15641
|
+
key: field.id
|
|
15627
15642
|
}, [
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15635
|
-
|
|
15643
|
+
(field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
15644
|
+
createElementVNode("div", _hoisted_4$k, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
15645
|
+
(openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), mergeProps({
|
|
15646
|
+
class: "vlue",
|
|
15647
|
+
modelValue: itemData.value[field.id],
|
|
15648
|
+
"onUpdate:modelValue": [($event) => itemData.value[field.id] = $event, ($event) => {
|
|
15649
|
+
var _a2;
|
|
15650
|
+
return (_a2 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a2.call(field, $event, _ctx.data[field.id], itemData.value);
|
|
15651
|
+
}]
|
|
15652
|
+
}, bindAttrs(field.attrs, itemData.value[field.id], itemData.value)), {
|
|
15653
|
+
default: withCtx(() => {
|
|
15654
|
+
var _a2;
|
|
15655
|
+
return [
|
|
15656
|
+
createTextVNode(toDisplayString(((_a2 = field == null ? void 0 : field.transform) == null ? void 0 : _a2.call(field, itemData.value[field.id] || field.defaultValue, itemData.value)) || itemData.value[field.id] || ""), 1)
|
|
15657
|
+
];
|
|
15658
|
+
}),
|
|
15659
|
+
_: 2
|
|
15660
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"]))
|
|
15661
|
+
])) : createCommentVNode("", true)
|
|
15662
|
+
], 64);
|
|
15636
15663
|
}), 128)),
|
|
15637
|
-
!((_a = _ctx.schema) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div",
|
|
15638
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(
|
|
15664
|
+
!((_a = _ctx.schema) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
15665
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value).filter(
|
|
15639
15666
|
([key]) => !keysToIgnore.includes(key)
|
|
15640
15667
|
), ([key, value]) => {
|
|
15641
15668
|
return openBlock(), createElementBlock("div", {
|
|
15642
15669
|
class: "data-row",
|
|
15643
15670
|
key
|
|
15644
15671
|
}, [
|
|
15645
|
-
createElementVNode("div",
|
|
15646
|
-
createElementVNode("div",
|
|
15672
|
+
createElementVNode("div", _hoisted_6$d, toDisplayString(unref(i18nT)(unref(keyToLabel)(key))), 1),
|
|
15673
|
+
createElementVNode("div", _hoisted_7$9, toDisplayString(value), 1)
|
|
15647
15674
|
]);
|
|
15648
15675
|
}), 128))
|
|
15649
15676
|
])) : createCommentVNode("", true),
|
|
@@ -15652,7 +15679,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15652
15679
|
};
|
|
15653
15680
|
}
|
|
15654
15681
|
});
|
|
15655
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
15682
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dc2757c4"]]);
|
|
15656
15683
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-fe5af582"), n = n(), popScopeId(), n);
|
|
15657
15684
|
const _hoisted_1$I = { class: "bar-chart" };
|
|
15658
15685
|
const _hoisted_2$C = {
|
|
@@ -17043,13 +17070,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17043
17070
|
(v) => {
|
|
17044
17071
|
if (v === void 0 || v === val.value)
|
|
17045
17072
|
return;
|
|
17073
|
+
console.log("v", v);
|
|
17046
17074
|
val.value = v;
|
|
17047
17075
|
},
|
|
17048
17076
|
{ immediate: true }
|
|
17049
17077
|
);
|
|
17050
17078
|
watch(
|
|
17051
17079
|
() => val.value,
|
|
17052
|
-
(v) =>
|
|
17080
|
+
(v) => {
|
|
17081
|
+
if (v !== props2.modelValue)
|
|
17082
|
+
emits("update:modelValue", v);
|
|
17083
|
+
}
|
|
17053
17084
|
);
|
|
17054
17085
|
return (_ctx, _cache) => {
|
|
17055
17086
|
return openBlock(), createElementBlock("label", _hoisted_1$H, [
|
|
@@ -17066,7 +17097,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17066
17097
|
};
|
|
17067
17098
|
}
|
|
17068
17099
|
});
|
|
17069
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
17100
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-6b168ea9"]]);
|
|
17070
17101
|
const _hoisted_1$G = { class: "bagel-input" };
|
|
17071
17102
|
const _hoisted_2$B = { class: "mt-1" };
|
|
17072
17103
|
const _hoisted_3$x = {
|
|
@@ -18126,7 +18157,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18126
18157
|
}, [
|
|
18127
18158
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(variables.value, (v) => {
|
|
18128
18159
|
var _a;
|
|
18129
|
-
return openBlock(), createBlock(unref(
|
|
18160
|
+
return openBlock(), createBlock(unref(TextInput), {
|
|
18130
18161
|
key: v,
|
|
18131
18162
|
placeholder: `Variable ${v}`,
|
|
18132
18163
|
modelValue: (_a = unref(val)) == null ? void 0 : _a[v - 1],
|
|
@@ -21979,7 +22010,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
21979
22010
|
});
|
|
21980
22011
|
const _hoisted_1$h = ["title"];
|
|
21981
22012
|
const _hoisted_2$e = ["for"];
|
|
21982
|
-
const _hoisted_3$c = ["id", "placeholder", "required", "pattern"];
|
|
22013
|
+
const _hoisted_3$c = ["id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
21983
22014
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
21984
22015
|
__name: "TextInput",
|
|
21985
22016
|
props: {
|
|
@@ -21988,10 +22019,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
21988
22019
|
placeholder: {},
|
|
21989
22020
|
modelValue: { default: "" },
|
|
21990
22021
|
label: {},
|
|
21991
|
-
editMode: { type: Boolean, default: true },
|
|
21992
22022
|
small: { type: Boolean },
|
|
21993
22023
|
required: { type: Boolean },
|
|
21994
22024
|
pattern: {},
|
|
22025
|
+
shrink: { type: Boolean },
|
|
22026
|
+
toggleEdit: { type: Boolean, default: false },
|
|
22027
|
+
type: { default: "text" },
|
|
21995
22028
|
nativeInputAttrs: {}
|
|
21996
22029
|
},
|
|
21997
22030
|
emits: ["update:modelValue", "debounce"],
|
|
@@ -21999,9 +22032,28 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
21999
22032
|
const emit2 = __emit;
|
|
22000
22033
|
const props2 = __props;
|
|
22001
22034
|
let inputVal = ref();
|
|
22035
|
+
let editMode = ref(!props2.toggleEdit);
|
|
22036
|
+
const input2 = ref();
|
|
22037
|
+
const toggleEditAction = () => {
|
|
22038
|
+
if (editMode.value) {
|
|
22039
|
+
editMode.value = false;
|
|
22040
|
+
emit2("debounce", inputVal.value);
|
|
22041
|
+
emit2("update:modelValue", inputVal.value);
|
|
22042
|
+
} else {
|
|
22043
|
+
editMode.value = true;
|
|
22044
|
+
setTimeout(() => {
|
|
22045
|
+
var _a;
|
|
22046
|
+
return (_a = input2.value) == null ? void 0 : _a.focus();
|
|
22047
|
+
}, 10);
|
|
22048
|
+
}
|
|
22049
|
+
};
|
|
22002
22050
|
watch(
|
|
22003
22051
|
() => inputVal.value,
|
|
22004
22052
|
(newVal) => {
|
|
22053
|
+
if (props2.toggleEdit)
|
|
22054
|
+
return;
|
|
22055
|
+
if (newVal === props2.modelValue)
|
|
22056
|
+
return;
|
|
22005
22057
|
emit2("update:modelValue", newVal);
|
|
22006
22058
|
debounce(() => emit2("debounce", newVal));
|
|
22007
22059
|
}
|
|
@@ -22016,7 +22068,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22016
22068
|
);
|
|
22017
22069
|
return (_ctx, _cache) => {
|
|
22018
22070
|
return openBlock(), createElementBlock("div", {
|
|
22019
|
-
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
22071
|
+
class: normalizeClass(["bagel-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: unref(editMode) }]),
|
|
22020
22072
|
title: _ctx.title
|
|
22021
22073
|
}, [
|
|
22022
22074
|
createElementVNode("label", { for: _ctx.id }, [
|
|
@@ -22024,19 +22076,33 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22024
22076
|
withDirectives(createElementVNode("input", mergeProps({
|
|
22025
22077
|
id: _ctx.id,
|
|
22026
22078
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
22027
|
-
type:
|
|
22079
|
+
type: _ctx.type,
|
|
22080
|
+
ref_key: "input",
|
|
22081
|
+
ref: input2,
|
|
22028
22082
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
22029
|
-
|
|
22083
|
+
disabled: !unref(editMode),
|
|
22030
22084
|
required: _ctx.required,
|
|
22031
22085
|
pattern: _ctx.pattern
|
|
22032
|
-
}, _ctx.nativeInputAttrs
|
|
22033
|
-
|
|
22086
|
+
}, _ctx.nativeInputAttrs, {
|
|
22087
|
+
onDblclick: toggleEditAction,
|
|
22088
|
+
onKeydown: withKeys(toggleEditAction, ["enter"])
|
|
22089
|
+
}), null, 16, _hoisted_3$c), [
|
|
22090
|
+
[vModelDynamic, unref(inputVal)]
|
|
22034
22091
|
])
|
|
22035
|
-
], 8, _hoisted_2$e)
|
|
22092
|
+
], 8, _hoisted_2$e),
|
|
22093
|
+
_ctx.toggleEdit ? (openBlock(), createBlock(unref(Btn), {
|
|
22094
|
+
key: 0,
|
|
22095
|
+
class: "toggleEditBtn",
|
|
22096
|
+
thin: "",
|
|
22097
|
+
onClick: toggleEditAction,
|
|
22098
|
+
icon: unref(editMode) ? "check" : "edit",
|
|
22099
|
+
flat: ""
|
|
22100
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
22036
22101
|
], 10, _hoisted_1$h);
|
|
22037
22102
|
};
|
|
22038
22103
|
}
|
|
22039
22104
|
});
|
|
22105
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7b082166"]]);
|
|
22040
22106
|
const _hoisted_1$g = ["title"];
|
|
22041
22107
|
const _hoisted_2$d = { key: 0 };
|
|
22042
22108
|
const _hoisted_3$b = {
|
|
@@ -28842,7 +28908,7 @@ export {
|
|
|
28842
28908
|
TableField,
|
|
28843
28909
|
TableSchema,
|
|
28844
28910
|
TextArea,
|
|
28845
|
-
|
|
28911
|
+
TextInput,
|
|
28846
28912
|
_sfc_main$q as TextVariableExamples,
|
|
28847
28913
|
TextVariablesInput,
|
|
28848
28914
|
ToggleSwitchInput,
|
package/dist/style.css
CHANGED
|
@@ -534,12 +534,12 @@
|
|
|
534
534
|
.dropdown {
|
|
535
535
|
position: relative;
|
|
536
536
|
font-size: calc(var(--input-font-size) * 1.3);
|
|
537
|
-
width: 50px;
|
|
538
|
-
|
|
539
|
-
z-index: 1;
|
|
537
|
+
/* width: 50px; */
|
|
538
|
+
z-index: 9;
|
|
540
539
|
}
|
|
541
540
|
.dropdown-title {
|
|
542
541
|
white-space: nowrap;
|
|
542
|
+
color: var(--bgl-primary);
|
|
543
543
|
border-radius: var(--input-border-radius);
|
|
544
544
|
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
545
545
|
padding-left: calc(var(--btn-padding) / 2);
|
|
@@ -574,7 +574,8 @@
|
|
|
574
574
|
inset-inline-start: 0;
|
|
575
575
|
inset-inline-end: 0;
|
|
576
576
|
overflow: auto;
|
|
577
|
-
box-shadow: 0
|
|
577
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
|
|
578
|
+
z-index: 99999999;
|
|
578
579
|
}
|
|
579
580
|
.dropdown-body * {
|
|
580
581
|
display: block;
|
|
@@ -582,12 +583,11 @@
|
|
|
582
583
|
padding: calc(var(--btn-padding) / 2);
|
|
583
584
|
padding-bottom: calc(var(--btn-padding) / 4);
|
|
584
585
|
padding-top: calc(var(--btn-padding) / 4);
|
|
586
|
+
margin: 0;
|
|
585
587
|
color: inherit;
|
|
586
588
|
text-decoration: none;
|
|
587
589
|
line-height: 1;
|
|
588
590
|
transition: var(--bgl-transition);
|
|
589
|
-
box-shadow: 0 -1px 0 0 rgb(0 0 0, 10%);
|
|
590
|
-
z-index: 99999999;
|
|
591
591
|
}
|
|
592
592
|
.dropdown-body *:hover {
|
|
593
593
|
filter: var(--bgl-hover-filter);
|
|
@@ -753,37 +753,37 @@
|
|
|
753
753
|
transform: translateY(-2.6rem);
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
.list-arrows[data-v-
|
|
756
|
+
.list-arrows[data-v-8cd8ab82] {
|
|
757
757
|
opacity: 0;
|
|
758
758
|
}
|
|
759
|
-
.list-arrows .icon-font[data-v-
|
|
759
|
+
.list-arrows .icon-font[data-v-8cd8ab82] {
|
|
760
760
|
transition: all ease-in-out 0.2s;
|
|
761
761
|
}
|
|
762
|
-
.list-arrows.sorted[data-v-
|
|
762
|
+
.list-arrows.sorted[data-v-8cd8ab82] {
|
|
763
763
|
opacity: 1;
|
|
764
764
|
}
|
|
765
|
-
.col img[data-v-
|
|
765
|
+
.col img[data-v-8cd8ab82] {
|
|
766
766
|
height: 35px;
|
|
767
767
|
margin-top: -14px;
|
|
768
768
|
margin-bottom: -14px;
|
|
769
769
|
border-radius: 5px;
|
|
770
770
|
}
|
|
771
|
-
.list-arrows.sorted .desc[data-v-
|
|
771
|
+
.list-arrows.sorted .desc[data-v-8cd8ab82] {
|
|
772
772
|
transform: rotate(180deg);
|
|
773
773
|
}
|
|
774
|
-
table[data-v-
|
|
774
|
+
table[data-v-8cd8ab82] {
|
|
775
775
|
border-collapse: separate;
|
|
776
776
|
border-spacing: 0 15px;
|
|
777
777
|
border-collapse: collapse;
|
|
778
778
|
}
|
|
779
|
-
th[data-v-
|
|
779
|
+
th[data-v-8cd8ab82] {
|
|
780
780
|
font-weight: 400;
|
|
781
781
|
}
|
|
782
|
-
.row[data-v-
|
|
782
|
+
.row[data-v-8cd8ab82] {
|
|
783
783
|
border-bottom: 1px solid var(--border-color);
|
|
784
784
|
cursor: pointer;
|
|
785
785
|
}
|
|
786
|
-
.row.first-row[data-v-
|
|
786
|
+
.row.first-row[data-v-8cd8ab82] {
|
|
787
787
|
font-size: 0.8rem;
|
|
788
788
|
color: var(--bgl-black-tint);
|
|
789
789
|
position: sticky;
|
|
@@ -793,7 +793,7 @@ th[data-v-fb5b163a] {
|
|
|
793
793
|
height: 50px;
|
|
794
794
|
vertical-align: bottom;
|
|
795
795
|
}
|
|
796
|
-
.row.first-row[data-v-
|
|
796
|
+
.row.first-row[data-v-8cd8ab82]::after {
|
|
797
797
|
content: "";
|
|
798
798
|
border-bottom: 1px solid var(--border-color);
|
|
799
799
|
position: absolute;
|
|
@@ -801,11 +801,11 @@ th[data-v-fb5b163a] {
|
|
|
801
801
|
right: 0;
|
|
802
802
|
bottom: -1px;
|
|
803
803
|
}
|
|
804
|
-
.first-row .col[data-v-
|
|
804
|
+
.first-row .col[data-v-8cd8ab82] {
|
|
805
805
|
cursor: pointer;
|
|
806
806
|
background: var(--bgl-white);
|
|
807
807
|
}
|
|
808
|
-
.col[data-v-
|
|
808
|
+
.col[data-v-8cd8ab82] {
|
|
809
809
|
white-space: nowrap;
|
|
810
810
|
padding: 14px;
|
|
811
811
|
transition: var(--bgl-transition);
|
|
@@ -814,16 +814,16 @@ th[data-v-fb5b163a] {
|
|
|
814
814
|
padding-right: 1rem;
|
|
815
815
|
align-items: center;
|
|
816
816
|
}
|
|
817
|
-
.col > div[data-v-
|
|
817
|
+
.col > div[data-v-8cd8ab82] {
|
|
818
818
|
display: flex;
|
|
819
819
|
gap: 0.5rem;
|
|
820
820
|
}
|
|
821
|
-
.max-col-width[data-v-
|
|
821
|
+
.max-col-width[data-v-8cd8ab82] {
|
|
822
822
|
max-width: 30vw;
|
|
823
823
|
overflow: hidden;
|
|
824
824
|
text-overflow: ellipsis;
|
|
825
825
|
}
|
|
826
|
-
.col.check .icon-font[data-v-
|
|
826
|
+
.col.check .icon-font[data-v-8cd8ab82] {
|
|
827
827
|
border-radius: 100%;
|
|
828
828
|
background: var(--bgl-blue-20);
|
|
829
829
|
color: var(--bgl-primary);
|
|
@@ -834,27 +834,27 @@ th[data-v-fb5b163a] {
|
|
|
834
834
|
justify-content: center;
|
|
835
835
|
margin-top: -2px;
|
|
836
836
|
}
|
|
837
|
-
.rows[data-v-
|
|
837
|
+
.rows[data-v-8cd8ab82] {
|
|
838
838
|
font-size: 0.8125em;
|
|
839
839
|
}
|
|
840
|
-
.table-list[data-v-
|
|
840
|
+
.table-list[data-v-8cd8ab82] {
|
|
841
841
|
height: 100%;
|
|
842
842
|
position: relative;
|
|
843
843
|
padding-left: 0 !important;
|
|
844
844
|
padding-right: 0 !important;
|
|
845
845
|
overflow: auto;
|
|
846
846
|
}
|
|
847
|
-
.BagelTable .table-list[data-v-
|
|
847
|
+
.BagelTable .table-list[data-v-8cd8ab82] {
|
|
848
848
|
overflow: unset;
|
|
849
849
|
}
|
|
850
|
-
.row-item[data-v-
|
|
850
|
+
.row-item[data-v-8cd8ab82] {
|
|
851
851
|
height: 50px;
|
|
852
852
|
transition: all 200ms ease;
|
|
853
853
|
}
|
|
854
|
-
.row-item[data-v-
|
|
854
|
+
.row-item[data-v-8cd8ab82]:hover {
|
|
855
855
|
background: var(--bgl-gray-light);
|
|
856
856
|
}
|
|
857
|
-
.infinite-wrapper[data-v-
|
|
857
|
+
.infinite-wrapper[data-v-8cd8ab82] {
|
|
858
858
|
overflow-y: auto;
|
|
859
859
|
width: 100%;
|
|
860
860
|
}
|
|
@@ -938,20 +938,19 @@ th[data-v-fb5b163a] {
|
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
.data[data-v-
|
|
941
|
+
.data[data-v-dc2757c4] {
|
|
942
942
|
border: 1.1px solid var(--border-color);
|
|
943
943
|
padding: 20px;
|
|
944
944
|
border-radius: var(--input-border-radius);
|
|
945
945
|
}
|
|
946
|
-
.data-row[data-v-
|
|
946
|
+
.data-row[data-v-dc2757c4] {
|
|
947
947
|
display: flex;
|
|
948
948
|
justify-content: space-between;
|
|
949
949
|
padding-bottom: 0.5rem;
|
|
950
950
|
margin-bottom: 0.5rem;
|
|
951
|
-
opacity: 0.8;
|
|
952
951
|
border-bottom: 1px solid var(--border-color);
|
|
953
952
|
}
|
|
954
|
-
.data-link[data-v-
|
|
953
|
+
.data-link[data-v-dc2757c4] {
|
|
955
954
|
display: block;
|
|
956
955
|
font-size: var(--input-font-size);
|
|
957
956
|
margin-bottom: 2px;
|
|
@@ -1119,13 +1118,13 @@ th[data-v-fb5b163a] {
|
|
|
1119
1118
|
}
|
|
1120
1119
|
}
|
|
1121
1120
|
|
|
1122
|
-
.primary-checkbox input[data-v-
|
|
1121
|
+
.primary-checkbox input[data-v-6b168ea9] {
|
|
1123
1122
|
display: none;
|
|
1124
1123
|
}
|
|
1125
|
-
.primary-checkbox[data-v-
|
|
1124
|
+
.primary-checkbox[data-v-6b168ea9] {
|
|
1126
1125
|
margin-top: 8px;
|
|
1127
1126
|
}
|
|
1128
|
-
.primary-checkbox span[data-v-
|
|
1127
|
+
.primary-checkbox span[data-v-6b168ea9] {
|
|
1129
1128
|
display: flex;
|
|
1130
1129
|
padding-top: 1px;
|
|
1131
1130
|
align-items: center;
|
|
@@ -1140,13 +1139,13 @@ th[data-v-fb5b163a] {
|
|
|
1140
1139
|
transition: var(--bgl-transition);
|
|
1141
1140
|
user-select: none;
|
|
1142
1141
|
}
|
|
1143
|
-
.primary-checkbox span[data-v-
|
|
1142
|
+
.primary-checkbox span[data-v-6b168ea9]:hover {
|
|
1144
1143
|
filter: brightness(90%);
|
|
1145
1144
|
}
|
|
1146
|
-
.primary-checkbox span[data-v-
|
|
1145
|
+
.primary-checkbox span[data-v-6b168ea9]:active {
|
|
1147
1146
|
filter: brightness(80%);
|
|
1148
1147
|
}
|
|
1149
|
-
.primary-checkbox input:checked + span[data-v-
|
|
1148
|
+
.primary-checkbox input:checked + span[data-v-6b168ea9] {
|
|
1150
1149
|
background: var(--bgl-primary);
|
|
1151
1150
|
border: none;
|
|
1152
1151
|
}
|
|
@@ -2182,6 +2181,34 @@ input[type='email'][data-v-ed81a514] {
|
|
|
2182
2181
|
box-shadow: 0 0 10px 0 rgb(0 0 0 /20%);
|
|
2183
2182
|
}
|
|
2184
2183
|
|
|
2184
|
+
.bagel-input.shrink, .bagel-input.shrink input{
|
|
2185
|
+
min-width: unset !important;
|
|
2186
|
+
/* width: auto; */
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
.bagel-input input[disabled][data-v-7b082166]{
|
|
2190
|
+
background: none;
|
|
2191
|
+
}
|
|
2192
|
+
.bagel-input.toggleEdit[data-v-7b082166]:hover {
|
|
2193
|
+
background-color: var(--input-bg);
|
|
2194
|
+
}
|
|
2195
|
+
.bagel-input.small[data-v-7b082166]{
|
|
2196
|
+
margin-bottom:0;
|
|
2197
|
+
height: 30px;
|
|
2198
|
+
}
|
|
2199
|
+
.toggleEditBtn[data-v-7b082166]{
|
|
2200
|
+
position: absolute;
|
|
2201
|
+
right: -24px;
|
|
2202
|
+
top: 4;
|
|
2203
|
+
opacity: 0;
|
|
2204
|
+
}
|
|
2205
|
+
.bagel-input:hover .toggleEditBtn[data-v-7b082166], .bagel-input.editMode .toggleEditBtn[data-v-7b082166]{
|
|
2206
|
+
opacity: 1;
|
|
2207
|
+
}
|
|
2208
|
+
.bagel-input.small input[data-v-7b082166]{
|
|
2209
|
+
height: 30px;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2185
2212
|
.bagel-input[data-v-a5b28c58] {
|
|
2186
2213
|
height: 100%;
|
|
2187
2214
|
margin: 0;
|