@bagelink/vue 0.0.417 → 0.0.421
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/ListView.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +23 -3
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +23 -26
- package/dist/index.mjs +23 -26
- package/dist/style.css +30 -30
- package/dist/utils/BagelFormUtils.d.ts +1 -0
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ListView.vue +24 -28
- package/src/components/form/inputs/RadioPillsInput.vue +15 -8
- package/src/components/form/inputs/SelectInput.vue +2 -2
- package/src/utils/BagelFormUtils.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/ListView.vue"],"names":[],"mappings":"AAUA;;;;;
|
|
1
|
+
{"version":3,"file":"ListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/ListView.vue"],"names":[],"mappings":"AAUA;;;;;AAsFA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -2,21 +2,33 @@ type Option = string | number | Record<string, any> | {
|
|
|
2
2
|
label: string;
|
|
3
3
|
value: string | number;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
6
|
options?: Option[] | undefined;
|
|
7
7
|
modelValue?: any;
|
|
8
8
|
id?: string | undefined;
|
|
9
9
|
label?: string | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
modelValue: string;
|
|
12
|
+
id: () => string;
|
|
13
|
+
label: string;
|
|
10
14
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
15
|
"update:modelValue": (...args: any[]) => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
17
|
options?: Option[] | undefined;
|
|
14
18
|
modelValue?: any;
|
|
15
19
|
id?: string | undefined;
|
|
16
20
|
label?: string | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
modelValue: string;
|
|
23
|
+
id: () => string;
|
|
24
|
+
label: string;
|
|
17
25
|
}>>> & {
|
|
18
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
}, {
|
|
27
|
+
}, {
|
|
28
|
+
label: string;
|
|
29
|
+
modelValue: any;
|
|
30
|
+
id: string;
|
|
31
|
+
}, {}>;
|
|
20
32
|
export default _default;
|
|
21
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
34
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -27,4 +39,12 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
27
39
|
required: true;
|
|
28
40
|
};
|
|
29
41
|
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
30
50
|
//# sourceMappingURL=RadioPillsInput.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioPillsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RadioPillsInput.vue"],"names":[],"mappings":"AAmBA;AAMA,KAAK,MAAM,GACR,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;;;
|
|
1
|
+
{"version":3,"file":"RadioPillsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RadioPillsInput.vue"],"names":[],"mappings":"AAmBA;AAMA,KAAK,MAAM,GACR,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;;;iBAiL9B,GAAG;;;;;;;;;;;iBAAH,GAAG;;;;;;;;;;WAER,MAAM;gBAFD,GAAG;QACX,MAAM;;AARb,wBAYG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -4953,7 +4953,7 @@ function slctField(id, label, options, config) {
|
|
|
4953
4953
|
required: config == null ? void 0 : config.required,
|
|
4954
4954
|
label,
|
|
4955
4955
|
defaultValue: config == null ? void 0 : config.defaultValue,
|
|
4956
|
-
attrs: { disabled: config == null ? void 0 : config.disabled, searchable: config == null ? void 0 : config.searchable }
|
|
4956
|
+
attrs: { disabled: config == null ? void 0 : config.disabled, searchable: config == null ? void 0 : config.searchable, multiselect: config == null ? void 0 : config.multiselect }
|
|
4957
4957
|
};
|
|
4958
4958
|
}
|
|
4959
4959
|
function checkField(id, label, options) {
|
|
@@ -5541,24 +5541,21 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
5541
5541
|
}
|
|
5542
5542
|
});
|
|
5543
5543
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-bf74738b"]]);
|
|
5544
|
+
const _sfc_main$C = {};
|
|
5544
5545
|
const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5545
5546
|
const _hoisted_2$t = { class: "p-1" };
|
|
5546
5547
|
const _hoisted_3$j = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
]);
|
|
5559
|
-
};
|
|
5560
|
-
}
|
|
5561
|
-
});
|
|
5548
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
5549
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
5550
|
+
vue.createElementVNode("div", _hoisted_2$t, [
|
|
5551
|
+
vue.renderSlot(_ctx.$slots, "header")
|
|
5552
|
+
]),
|
|
5553
|
+
vue.createElementVNode("div", _hoisted_3$j, [
|
|
5554
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
5555
|
+
])
|
|
5556
|
+
]);
|
|
5557
|
+
}
|
|
5558
|
+
const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$2]]);
|
|
5562
5559
|
const _hoisted_1$z = { class: "txt16 no-margin ellipsis" };
|
|
5563
5560
|
const _hoisted_2$s = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5564
5561
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -15420,7 +15417,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15420
15417
|
selectedItems.value.splice(i2, 1, exists);
|
|
15421
15418
|
});
|
|
15422
15419
|
},
|
|
15423
|
-
{ deep: true }
|
|
15420
|
+
{ deep: true, immediate: true }
|
|
15424
15421
|
);
|
|
15425
15422
|
return (_ctx, _cache) => {
|
|
15426
15423
|
return vue.openBlock(), vue.createBlock(vue.unref(kt$1), {
|
|
@@ -15430,7 +15427,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15430
15427
|
placement: "bottom-start",
|
|
15431
15428
|
class: "bagel-input selectinput"
|
|
15432
15429
|
}, {
|
|
15433
|
-
popper: vue.withCtx((
|
|
15430
|
+
popper: vue.withCtx(() => [
|
|
15434
15431
|
vue.createVNode(vue.unref(_sfc_main$v), {
|
|
15435
15432
|
class: "selectinput-options p-05",
|
|
15436
15433
|
style: vue.normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
@@ -15497,7 +15494,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15497
15494
|
};
|
|
15498
15495
|
}
|
|
15499
15496
|
});
|
|
15500
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
15497
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-48577821"]]);
|
|
15501
15498
|
/*!
|
|
15502
15499
|
* vue-draggable-next v2.2.0
|
|
15503
15500
|
* (c) 2023 Anish George
|
|
@@ -18490,9 +18487,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18490
18487
|
__name: "RadioPillsInput",
|
|
18491
18488
|
props: {
|
|
18492
18489
|
options: {},
|
|
18493
|
-
modelValue: {},
|
|
18494
|
-
id: {},
|
|
18495
|
-
label: {}
|
|
18490
|
+
modelValue: { default: "" },
|
|
18491
|
+
id: { default: () => `radio-pill-${Math.random().toString(36).substr(2, 9)}` },
|
|
18492
|
+
label: { default: "" }
|
|
18496
18493
|
},
|
|
18497
18494
|
emits: ["update:modelValue"],
|
|
18498
18495
|
setup(__props, { emit: __emit }) {
|
|
@@ -18543,14 +18540,14 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18543
18540
|
}, [
|
|
18544
18541
|
vue.createElementVNode("input", {
|
|
18545
18542
|
type: "radio",
|
|
18546
|
-
id: getValue(option2)
|
|
18543
|
+
id: `${_ctx.id}-${getValue(option2)}`,
|
|
18547
18544
|
name: _ctx.id,
|
|
18548
18545
|
value: getValue(option2),
|
|
18549
18546
|
checked: vue.unref(selectedValue) === getValue(option2),
|
|
18550
18547
|
onChange: handleSelect
|
|
18551
18548
|
}, null, 40, _hoisted_4$6),
|
|
18552
18549
|
vue.createElementVNode("label", {
|
|
18553
|
-
for: getValue(option2)
|
|
18550
|
+
for: `${_ctx.id}-${getValue(option2)}`
|
|
18554
18551
|
}, vue.toDisplayString(getLabel(option2)), 9, _hoisted_5$5)
|
|
18555
18552
|
]);
|
|
18556
18553
|
}), 128))
|
|
@@ -18559,7 +18556,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18559
18556
|
};
|
|
18560
18557
|
}
|
|
18561
18558
|
});
|
|
18562
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
18559
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-41859ed6"]]);
|
|
18563
18560
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
18564
18561
|
const _hoisted_2$c = {
|
|
18565
18562
|
key: 0,
|
|
@@ -51190,7 +51187,7 @@ exports.JSONInput = JSONInput;
|
|
|
51190
51187
|
exports.Layout = Layout;
|
|
51191
51188
|
exports.Lineart = _sfc_main$7;
|
|
51192
51189
|
exports.ListItem = _sfc_main$B;
|
|
51193
|
-
exports.ListView =
|
|
51190
|
+
exports.ListView = ListView;
|
|
51194
51191
|
exports.MaterialIcon = _sfc_main$I;
|
|
51195
51192
|
exports.Modal = _sfc_main$F;
|
|
51196
51193
|
exports.ModalConfirm = _sfc_main$n;
|
package/dist/index.mjs
CHANGED
|
@@ -4951,7 +4951,7 @@ function slctField(id, label, options, config) {
|
|
|
4951
4951
|
required: config == null ? void 0 : config.required,
|
|
4952
4952
|
label,
|
|
4953
4953
|
defaultValue: config == null ? void 0 : config.defaultValue,
|
|
4954
|
-
attrs: { disabled: config == null ? void 0 : config.disabled, searchable: config == null ? void 0 : config.searchable }
|
|
4954
|
+
attrs: { disabled: config == null ? void 0 : config.disabled, searchable: config == null ? void 0 : config.searchable, multiselect: config == null ? void 0 : config.multiselect }
|
|
4955
4955
|
};
|
|
4956
4956
|
}
|
|
4957
4957
|
function checkField(id, label, options) {
|
|
@@ -5539,24 +5539,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
5539
5539
|
}
|
|
5540
5540
|
});
|
|
5541
5541
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-bf74738b"]]);
|
|
5542
|
+
const _sfc_main$C = {};
|
|
5542
5543
|
const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5543
5544
|
const _hoisted_2$t = { class: "p-1" };
|
|
5544
5545
|
const _hoisted_3$j = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
]);
|
|
5557
|
-
};
|
|
5558
|
-
}
|
|
5559
|
-
});
|
|
5546
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
5547
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
5548
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
5549
|
+
renderSlot(_ctx.$slots, "header")
|
|
5550
|
+
]),
|
|
5551
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
5552
|
+
renderSlot(_ctx.$slots, "default")
|
|
5553
|
+
])
|
|
5554
|
+
]);
|
|
5555
|
+
}
|
|
5556
|
+
const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$2]]);
|
|
5560
5557
|
const _hoisted_1$z = { class: "txt16 no-margin ellipsis" };
|
|
5561
5558
|
const _hoisted_2$s = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5562
5559
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
@@ -15418,7 +15415,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15418
15415
|
selectedItems.value.splice(i2, 1, exists);
|
|
15419
15416
|
});
|
|
15420
15417
|
},
|
|
15421
|
-
{ deep: true }
|
|
15418
|
+
{ deep: true, immediate: true }
|
|
15422
15419
|
);
|
|
15423
15420
|
return (_ctx, _cache) => {
|
|
15424
15421
|
return openBlock(), createBlock(unref(kt$1), {
|
|
@@ -15428,7 +15425,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15428
15425
|
placement: "bottom-start",
|
|
15429
15426
|
class: "bagel-input selectinput"
|
|
15430
15427
|
}, {
|
|
15431
|
-
popper: withCtx((
|
|
15428
|
+
popper: withCtx(() => [
|
|
15432
15429
|
createVNode(unref(_sfc_main$v), {
|
|
15433
15430
|
class: "selectinput-options p-05",
|
|
15434
15431
|
style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
@@ -15495,7 +15492,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15495
15492
|
};
|
|
15496
15493
|
}
|
|
15497
15494
|
});
|
|
15498
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
15495
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-48577821"]]);
|
|
15499
15496
|
/*!
|
|
15500
15497
|
* vue-draggable-next v2.2.0
|
|
15501
15498
|
* (c) 2023 Anish George
|
|
@@ -18488,9 +18485,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18488
18485
|
__name: "RadioPillsInput",
|
|
18489
18486
|
props: {
|
|
18490
18487
|
options: {},
|
|
18491
|
-
modelValue: {},
|
|
18492
|
-
id: {},
|
|
18493
|
-
label: {}
|
|
18488
|
+
modelValue: { default: "" },
|
|
18489
|
+
id: { default: () => `radio-pill-${Math.random().toString(36).substr(2, 9)}` },
|
|
18490
|
+
label: { default: "" }
|
|
18494
18491
|
},
|
|
18495
18492
|
emits: ["update:modelValue"],
|
|
18496
18493
|
setup(__props, { emit: __emit }) {
|
|
@@ -18541,14 +18538,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18541
18538
|
}, [
|
|
18542
18539
|
createElementVNode("input", {
|
|
18543
18540
|
type: "radio",
|
|
18544
|
-
id: getValue(option2)
|
|
18541
|
+
id: `${_ctx.id}-${getValue(option2)}`,
|
|
18545
18542
|
name: _ctx.id,
|
|
18546
18543
|
value: getValue(option2),
|
|
18547
18544
|
checked: unref(selectedValue) === getValue(option2),
|
|
18548
18545
|
onChange: handleSelect
|
|
18549
18546
|
}, null, 40, _hoisted_4$6),
|
|
18550
18547
|
createElementVNode("label", {
|
|
18551
|
-
for: getValue(option2)
|
|
18548
|
+
for: `${_ctx.id}-${getValue(option2)}`
|
|
18552
18549
|
}, toDisplayString(getLabel(option2)), 9, _hoisted_5$5)
|
|
18553
18550
|
]);
|
|
18554
18551
|
}), 128))
|
|
@@ -18557,7 +18554,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18557
18554
|
};
|
|
18558
18555
|
}
|
|
18559
18556
|
});
|
|
18560
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
18557
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-41859ed6"]]);
|
|
18561
18558
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
18562
18559
|
const _hoisted_2$c = {
|
|
18563
18560
|
key: 0,
|
|
@@ -51189,7 +51186,7 @@ export {
|
|
|
51189
51186
|
Layout,
|
|
51190
51187
|
_sfc_main$7 as Lineart,
|
|
51191
51188
|
_sfc_main$B as ListItem,
|
|
51192
|
-
|
|
51189
|
+
ListView,
|
|
51193
51190
|
_sfc_main$I as MaterialIcon,
|
|
51194
51191
|
_sfc_main$F as Modal,
|
|
51195
51192
|
_sfc_main$n as ModalConfirm,
|
package/dist/style.css
CHANGED
|
@@ -577,39 +577,39 @@ a[data-v-d09a83c5] {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
.list-wrap {
|
|
580
|
-
|
|
580
|
+
grid-template-rows: auto 1fr;
|
|
581
581
|
}
|
|
582
582
|
.list-item {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
583
|
+
padding: 0.5rem 1rem;
|
|
584
|
+
min-height: -webkit-fit-content;
|
|
585
|
+
min-height: -moz-fit-content;
|
|
586
|
+
min-height: fit-content;
|
|
587
|
+
margin: 0.25rem 0;
|
|
588
|
+
cursor: pointer;
|
|
589
|
+
transition: var(--bgl-transition);
|
|
590
|
+
color: var(--bgl-black);
|
|
591
|
+
text-decoration: none;
|
|
592
|
+
position: relative;
|
|
593
593
|
}
|
|
594
594
|
.list-item::after {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
595
|
+
content: '';
|
|
596
|
+
position: absolute;
|
|
597
|
+
left: 0;
|
|
598
|
+
right: 0;
|
|
599
|
+
bottom: -0.15rem;
|
|
600
|
+
border-bottom: 1px solid var(--border-color);
|
|
601
601
|
}
|
|
602
602
|
.list-item:hover,
|
|
603
603
|
.list-item.router-link-active {
|
|
604
|
-
|
|
604
|
+
background-color: var(--bgl-blue-light);
|
|
605
605
|
}
|
|
606
606
|
.list-item:active {
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
-webkit-filter: var(--bgl-hover-filter);
|
|
608
|
+
filter: var(--bgl-hover-filter);
|
|
609
609
|
}
|
|
610
610
|
@media screen and (max-width: 910px) {
|
|
611
611
|
.list-item {
|
|
612
|
-
|
|
612
|
+
padding: 0.5rem;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
|
|
@@ -1070,10 +1070,10 @@ display: block;
|
|
|
1070
1070
|
}
|
|
1071
1071
|
.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}
|
|
1072
1072
|
|
|
1073
|
-
.selectinput[data-v-
|
|
1073
|
+
.selectinput[data-v-48577821] {
|
|
1074
1074
|
width: 100%;
|
|
1075
1075
|
}
|
|
1076
|
-
.selectinput-option[data-v-
|
|
1076
|
+
.selectinput-option[data-v-48577821] {
|
|
1077
1077
|
padding: 6px 12px;
|
|
1078
1078
|
cursor: pointer;
|
|
1079
1079
|
border-radius: 5px;
|
|
@@ -1084,14 +1084,14 @@ display: block;
|
|
|
1084
1084
|
width: 100%;
|
|
1085
1085
|
font-size: var(--input-font-size);
|
|
1086
1086
|
}
|
|
1087
|
-
.selectinput-options[data-v-
|
|
1087
|
+
.selectinput-options[data-v-48577821] {
|
|
1088
1088
|
max-height: 300px;
|
|
1089
1089
|
overflow-y: auto;
|
|
1090
1090
|
}
|
|
1091
|
-
.selectinput-option[data-v-
|
|
1091
|
+
.selectinput-option[data-v-48577821]:hover {
|
|
1092
1092
|
background: var(--bgl-gray-20);
|
|
1093
1093
|
}
|
|
1094
|
-
.isEmpty p[data-v-
|
|
1094
|
+
.isEmpty p[data-v-48577821] {
|
|
1095
1095
|
opacity: 0.3;
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
@@ -1477,7 +1477,7 @@ display: block;
|
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
.radio-pill label[data-v-
|
|
1480
|
+
.radio-pill label[data-v-41859ed6] {
|
|
1481
1481
|
color: var(--bgl-primary);
|
|
1482
1482
|
white-space: nowrap;
|
|
1483
1483
|
border-radius: calc(var(--btn-border-radius) * 2);
|
|
@@ -1491,13 +1491,13 @@ display: block;
|
|
|
1491
1491
|
background: var(--bgl-white);
|
|
1492
1492
|
user-select: none;
|
|
1493
1493
|
}
|
|
1494
|
-
.radio-pill label[data-v-
|
|
1494
|
+
.radio-pill label[data-v-41859ed6]:hover {
|
|
1495
1495
|
filter: var(--bgl-hover-filter);
|
|
1496
1496
|
}
|
|
1497
|
-
.radio-pill input[data-v-
|
|
1497
|
+
.radio-pill input[data-v-41859ed6] {
|
|
1498
1498
|
display: none;
|
|
1499
1499
|
}
|
|
1500
|
-
.radio-pill input:checked ~ label[data-v-
|
|
1500
|
+
.radio-pill input:checked ~ label[data-v-41859ed6] {
|
|
1501
1501
|
background: var(--bgl-primary);
|
|
1502
1502
|
color: var(--bgl-white);
|
|
1503
1503
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEvG,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEvG,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,eAAgB,SAAQ,YAAY;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,KAAK,eAAe,GAAG,YAAY,CAAA;AAEnC,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe;;;;;;;;EAU7E;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAUtF;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAY7H;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAQvF;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAUrF;AAED,wBAAgB,MAAM,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE;;;;EAM1C"}
|
package/package.json
CHANGED
|
@@ -9,52 +9,48 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
import Card from './Card.vue';
|
|
14
|
-
|
|
15
|
-
</script>
|
|
12
|
+
<script lang="ts" setup></script>
|
|
16
13
|
|
|
17
14
|
<style>
|
|
18
15
|
.list-wrap {
|
|
19
|
-
|
|
16
|
+
grid-template-rows: auto 1fr;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
.list-item {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
padding: 0.5rem 1rem;
|
|
21
|
+
min-height: -webkit-fit-content;
|
|
22
|
+
min-height: -moz-fit-content;
|
|
23
|
+
min-height: fit-content;
|
|
24
|
+
margin: 0.25rem 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
transition: var(--bgl-transition);
|
|
27
|
+
color: var(--bgl-black);
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
position: relative;
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
.list-item::after {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
bottom: -0.15rem;
|
|
38
|
+
border-bottom: 1px solid var(--border-color);
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
.list-item:hover,
|
|
45
42
|
.list-item.router-link-active {
|
|
46
|
-
|
|
43
|
+
background-color: var(--bgl-blue-light);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
.list-item:active {
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
-webkit-filter: var(--bgl-hover-filter);
|
|
48
|
+
filter: var(--bgl-hover-filter);
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
@media screen and (max-width: 910px) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
52
|
+
.list-item {
|
|
53
|
+
padding: 0.5rem;
|
|
54
|
+
}
|
|
59
55
|
}
|
|
60
56
|
</style>
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
<div class="radio-pill" v-for="(option, index) in options" :key="index">
|
|
8
8
|
<input
|
|
9
9
|
type="radio"
|
|
10
|
-
:id="getValue(option)"
|
|
10
|
+
:id="`${id}-${getValue(option)}`"
|
|
11
11
|
:name="id"
|
|
12
12
|
:value="getValue(option)"
|
|
13
13
|
:checked="selectedValue === getValue(option)"
|
|
14
14
|
@change="handleSelect" />
|
|
15
|
-
<label :for="getValue(option)">{{ getLabel(option) }}</label>
|
|
15
|
+
<label :for="`${id}-${getValue(option)}`">{{ getLabel(option) }}</label>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
@@ -41,12 +41,19 @@ const getValue = (option: Option) => {
|
|
|
41
41
|
return option.value;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
const props =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
const props = withDefaults(
|
|
45
|
+
defineProps<{
|
|
46
|
+
options?: Option[];
|
|
47
|
+
modelValue?: any;
|
|
48
|
+
id?: string;
|
|
49
|
+
label?: string;
|
|
50
|
+
}>(),
|
|
51
|
+
{
|
|
52
|
+
modelValue: '',
|
|
53
|
+
id: () => `radio-pill-${Math.random().toString(36).substr(2, 9)}`,
|
|
54
|
+
label: '',
|
|
55
|
+
}
|
|
56
|
+
);
|
|
50
57
|
|
|
51
58
|
let selectedValue = $ref('');
|
|
52
59
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
:value="selectedItems"
|
|
25
25
|
required />
|
|
26
26
|
</label>
|
|
27
|
-
<template #popper
|
|
27
|
+
<template #popper>
|
|
28
28
|
<Card
|
|
29
29
|
class="selectinput-options p-05"
|
|
30
30
|
:style="{ width: fullWidth ? '100%' : 'auto' }">
|
|
@@ -214,7 +214,7 @@ watch(
|
|
|
214
214
|
// const newSelection = JSON.stringify(selectedItems.map(getValue));
|
|
215
215
|
// if (original !== newSelection) emitUpdate();
|
|
216
216
|
},
|
|
217
|
-
{ deep: true }
|
|
217
|
+
{ deep: true, immediate: true }
|
|
218
218
|
);
|
|
219
219
|
</script>
|
|
220
220
|
|
|
@@ -18,6 +18,7 @@ interface TextInputOptions extends InputOptions {
|
|
|
18
18
|
|
|
19
19
|
interface SlctInputOptions extends InputOptions {
|
|
20
20
|
searchable?: boolean;
|
|
21
|
+
multiselect?: boolean;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
interface NumFieldOptions extends InputOptions {
|
|
@@ -62,7 +63,7 @@ export function slctField(id: string, label?: string, options?: Option[] | (() =
|
|
|
62
63
|
required: config?.required,
|
|
63
64
|
label,
|
|
64
65
|
defaultValue: config?.defaultValue,
|
|
65
|
-
attrs: { disabled: config?.disabled, searchable: config?.searchable },
|
|
66
|
+
attrs: { disabled: config?.disabled, searchable: config?.searchable, multiselect: config?.multiselect },
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
|