@bagelink/vue 1.0.30 → 1.0.33
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/DataTable/DataTable.vue.d.ts +2 -2
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +13 -17
- package/dist/index.mjs +13 -17
- package/dist/style.css +59 -59
- package/dist/types/BagelForm.d.ts +1 -1
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/DataTable/DataTable.vue +4 -11
- package/src/components/DataTable/useTableData.ts +1 -1
- package/src/components/form/inputs/RadioPillsInput.vue +2 -0
- package/src/components/form/inputs/SelectInput.vue +2 -0
- package/src/types/BagelForm.ts +1 -0
- package/src/types/index.ts +1 -0
|
@@ -6,7 +6,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
6
6
|
readonly onSelect?: ((args_0: T) => any) | undefined;
|
|
7
7
|
readonly "onUpdate:loading"?: ((value: boolean) => any) | undefined;
|
|
8
8
|
readonly "onUpdate:itemHeight"?: ((value: number) => any) | undefined;
|
|
9
|
-
readonly "onUpdate:selectedItems"?: ((
|
|
9
|
+
readonly "onUpdate:selectedItems"?: ((value: string[]) => any) | undefined;
|
|
10
10
|
readonly onOrderBy?: ((args_0: `${string} ASC` | `${string} DESC`) => any) | undefined;
|
|
11
11
|
readonly onLastItemVisible?: (() => any) | undefined;
|
|
12
12
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onLastItemVisible" | "onUpdate:loading" | "onUpdate:itemHeight" | "onUpdate:selectedItems" | "onOrderBy"> & ({
|
|
@@ -20,7 +20,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
20
20
|
row: T;
|
|
21
21
|
field: import('../..').Field<T>;
|
|
22
22
|
}) => any>>;
|
|
23
|
-
emit: (((evt: "select", args_0: T) => void) & ((evt: "
|
|
23
|
+
emit: (((evt: "select", args_0: T) => void) & ((evt: "orderBy", args_0: `${string} ASC` | `${string} DESC`) => void) & ((evt: "lastItemVisible") => void)) & (((evt: "update:loading", value: boolean) => void) & ((evt: "update:itemHeight", value: number) => void) & ((evt: "update:selectedItems", value: string[]) => void));
|
|
24
24
|
}>) => import('vue').VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AAydA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAY/D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAEtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsU1D,mBAAmB,CAAC;;;;;;;;;;wBArNV,MAAM,EAAE;0CAqNoE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;UAnD0E,GAAG;UAqDjF,2TAAoC;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAhVzE,wBAgV4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioPillsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RadioPillsInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioPillsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RadioPillsInput.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,CAAC,EAAE,GAAG,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;;;;;;WADO,MAAM;QADT,MAAM;gBADE,GAAG;;AA+HlB,wBASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"AA2aA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAW1D,OAAO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,4BAA4B,cAAgC;uCAEnD,cACP;2CAEmB,cACJ,sCAEpB,cAAgC,4BAExC,cAGyB;2CACS,cAEnC,sCAAsC,cACjB,4BAEE,cACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAgZH,GAAG,8CACU,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwGzF,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -11467,28 +11467,20 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
11467
11467
|
"loadingModifiers": {},
|
|
11468
11468
|
"itemHeight": { default: 50 },
|
|
11469
11469
|
"itemHeightModifiers": {},
|
|
11470
|
-
"selectedItems": {
|
|
11471
|
-
default: []
|
|
11472
|
-
},
|
|
11470
|
+
"selectedItems": { default: [] },
|
|
11473
11471
|
"selectedItemsModifiers": {}
|
|
11474
11472
|
}),
|
|
11475
|
-
emits: /* @__PURE__ */ vue.mergeModels(["
|
|
11473
|
+
emits: /* @__PURE__ */ vue.mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
11476
11474
|
setup(__props, { emit: __emit }) {
|
|
11477
11475
|
vue.useCssVars((_ctx) => ({
|
|
11478
|
-
"
|
|
11476
|
+
"97de67d4": vue.unref(computedItemHeight)
|
|
11479
11477
|
}));
|
|
11480
11478
|
const props2 = __props;
|
|
11481
11479
|
const emit2 = __emit;
|
|
11482
11480
|
const slots = vue.useSlots();
|
|
11483
11481
|
const loading = vue.useModel(__props, "loading");
|
|
11484
11482
|
const itemHeight = vue.useModel(__props, "itemHeight");
|
|
11485
|
-
const selectedItems = vue.useModel(
|
|
11486
|
-
__props,
|
|
11487
|
-
"selectedItems",
|
|
11488
|
-
{
|
|
11489
|
-
set: (value) => value
|
|
11490
|
-
}
|
|
11491
|
-
);
|
|
11483
|
+
const selectedItems = vue.useModel(__props, "selectedItems");
|
|
11492
11484
|
const data2 = vue.computed(() => props2.data);
|
|
11493
11485
|
const schema = vue.computed(() => props2.schema);
|
|
11494
11486
|
const columns = vue.computed(() => props2.columns);
|
|
@@ -11656,7 +11648,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
11656
11648
|
};
|
|
11657
11649
|
}
|
|
11658
11650
|
});
|
|
11659
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-
|
|
11651
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-5e7cca10"]]);
|
|
11660
11652
|
function useDraggable(options = {}) {
|
|
11661
11653
|
const isDragging = vue.ref(false);
|
|
11662
11654
|
const dragElement = vue.ref(null);
|
|
@@ -17810,11 +17802,13 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
17810
17802
|
function getLabel(option2) {
|
|
17811
17803
|
if (typeof option2 === "string") return option2;
|
|
17812
17804
|
if (typeof option2 === "number") return `${option2}`;
|
|
17805
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
17813
17806
|
return option2.label;
|
|
17814
17807
|
}
|
|
17815
17808
|
function getValue(option2) {
|
|
17816
17809
|
if (typeof option2 === "string") return option2;
|
|
17817
17810
|
if (typeof option2 === "number") return option2;
|
|
17811
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
17818
17812
|
return option2.value;
|
|
17819
17813
|
}
|
|
17820
17814
|
let selectedValue = vue.ref(props2.modelValue);
|
|
@@ -17862,7 +17856,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
17862
17856
|
};
|
|
17863
17857
|
}
|
|
17864
17858
|
});
|
|
17865
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
17859
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-68b4cdd0"]]);
|
|
17866
17860
|
const _hoisted_1$w = ["dir"];
|
|
17867
17861
|
const _hoisted_2$l = {
|
|
17868
17862
|
key: 0,
|
|
@@ -19710,7 +19704,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
19710
19704
|
options: {},
|
|
19711
19705
|
placeholder: { default: "Select" },
|
|
19712
19706
|
disabled: { type: Boolean },
|
|
19713
|
-
modelValue: {},
|
|
19707
|
+
modelValue: { type: [String, Number, Boolean, Object] },
|
|
19714
19708
|
searchable: { type: Boolean },
|
|
19715
19709
|
required: { type: Boolean },
|
|
19716
19710
|
label: {},
|
|
@@ -19718,7 +19712,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
19718
19712
|
multiselect: { type: Boolean },
|
|
19719
19713
|
icon: {},
|
|
19720
19714
|
hideLabel: { type: Boolean },
|
|
19721
|
-
defaultValue: {},
|
|
19715
|
+
defaultValue: { type: [String, Number, Boolean, Object] },
|
|
19722
19716
|
clearable: { type: Boolean },
|
|
19723
19717
|
placement: { default: "bottom-start" },
|
|
19724
19718
|
searchPlaceholder: {},
|
|
@@ -19791,12 +19785,14 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
19791
19785
|
if (!option2) return "";
|
|
19792
19786
|
if (typeof option2 === "string") return option2;
|
|
19793
19787
|
if (typeof option2 === "number") return `${option2}`;
|
|
19788
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
19794
19789
|
return option2.label;
|
|
19795
19790
|
}
|
|
19796
19791
|
function getValue(option2) {
|
|
19797
19792
|
if (!option2) return;
|
|
19798
19793
|
if (typeof option2 === "string") return option2;
|
|
19799
19794
|
if (typeof option2 === "number") return option2;
|
|
19795
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
19800
19796
|
return option2.value;
|
|
19801
19797
|
}
|
|
19802
19798
|
function focusInput() {
|
|
@@ -20011,7 +20007,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
20011
20007
|
};
|
|
20012
20008
|
}
|
|
20013
20009
|
});
|
|
20014
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
20010
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-da5bc268"]]);
|
|
20015
20011
|
/*!
|
|
20016
20012
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
20017
20013
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
package/dist/index.mjs
CHANGED
|
@@ -11465,28 +11465,20 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11465
11465
|
"loadingModifiers": {},
|
|
11466
11466
|
"itemHeight": { default: 50 },
|
|
11467
11467
|
"itemHeightModifiers": {},
|
|
11468
|
-
"selectedItems": {
|
|
11469
|
-
default: []
|
|
11470
|
-
},
|
|
11468
|
+
"selectedItems": { default: [] },
|
|
11471
11469
|
"selectedItemsModifiers": {}
|
|
11472
11470
|
}),
|
|
11473
|
-
emits: /* @__PURE__ */ mergeModels(["
|
|
11471
|
+
emits: /* @__PURE__ */ mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
11474
11472
|
setup(__props, { emit: __emit }) {
|
|
11475
11473
|
useCssVars((_ctx) => ({
|
|
11476
|
-
"
|
|
11474
|
+
"97de67d4": unref(computedItemHeight)
|
|
11477
11475
|
}));
|
|
11478
11476
|
const props2 = __props;
|
|
11479
11477
|
const emit2 = __emit;
|
|
11480
11478
|
const slots = useSlots();
|
|
11481
11479
|
const loading = useModel(__props, "loading");
|
|
11482
11480
|
const itemHeight = useModel(__props, "itemHeight");
|
|
11483
|
-
const selectedItems = useModel(
|
|
11484
|
-
__props,
|
|
11485
|
-
"selectedItems",
|
|
11486
|
-
{
|
|
11487
|
-
set: (value) => value
|
|
11488
|
-
}
|
|
11489
|
-
);
|
|
11481
|
+
const selectedItems = useModel(__props, "selectedItems");
|
|
11490
11482
|
const data2 = computed(() => props2.data);
|
|
11491
11483
|
const schema = computed(() => props2.schema);
|
|
11492
11484
|
const columns = computed(() => props2.columns);
|
|
@@ -11654,7 +11646,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11654
11646
|
};
|
|
11655
11647
|
}
|
|
11656
11648
|
});
|
|
11657
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-
|
|
11649
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-5e7cca10"]]);
|
|
11658
11650
|
function useDraggable(options = {}) {
|
|
11659
11651
|
const isDragging = ref(false);
|
|
11660
11652
|
const dragElement = ref(null);
|
|
@@ -17808,11 +17800,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17808
17800
|
function getLabel(option2) {
|
|
17809
17801
|
if (typeof option2 === "string") return option2;
|
|
17810
17802
|
if (typeof option2 === "number") return `${option2}`;
|
|
17803
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
17811
17804
|
return option2.label;
|
|
17812
17805
|
}
|
|
17813
17806
|
function getValue(option2) {
|
|
17814
17807
|
if (typeof option2 === "string") return option2;
|
|
17815
17808
|
if (typeof option2 === "number") return option2;
|
|
17809
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
17816
17810
|
return option2.value;
|
|
17817
17811
|
}
|
|
17818
17812
|
let selectedValue = ref(props2.modelValue);
|
|
@@ -17860,7 +17854,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17860
17854
|
};
|
|
17861
17855
|
}
|
|
17862
17856
|
});
|
|
17863
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
17857
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-68b4cdd0"]]);
|
|
17864
17858
|
const _hoisted_1$w = ["dir"];
|
|
17865
17859
|
const _hoisted_2$l = {
|
|
17866
17860
|
key: 0,
|
|
@@ -19708,7 +19702,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19708
19702
|
options: {},
|
|
19709
19703
|
placeholder: { default: "Select" },
|
|
19710
19704
|
disabled: { type: Boolean },
|
|
19711
|
-
modelValue: {},
|
|
19705
|
+
modelValue: { type: [String, Number, Boolean, Object] },
|
|
19712
19706
|
searchable: { type: Boolean },
|
|
19713
19707
|
required: { type: Boolean },
|
|
19714
19708
|
label: {},
|
|
@@ -19716,7 +19710,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19716
19710
|
multiselect: { type: Boolean },
|
|
19717
19711
|
icon: {},
|
|
19718
19712
|
hideLabel: { type: Boolean },
|
|
19719
|
-
defaultValue: {},
|
|
19713
|
+
defaultValue: { type: [String, Number, Boolean, Object] },
|
|
19720
19714
|
clearable: { type: Boolean },
|
|
19721
19715
|
placement: { default: "bottom-start" },
|
|
19722
19716
|
searchPlaceholder: {},
|
|
@@ -19789,12 +19783,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19789
19783
|
if (!option2) return "";
|
|
19790
19784
|
if (typeof option2 === "string") return option2;
|
|
19791
19785
|
if (typeof option2 === "number") return `${option2}`;
|
|
19786
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
19792
19787
|
return option2.label;
|
|
19793
19788
|
}
|
|
19794
19789
|
function getValue(option2) {
|
|
19795
19790
|
if (!option2) return;
|
|
19796
19791
|
if (typeof option2 === "string") return option2;
|
|
19797
19792
|
if (typeof option2 === "number") return option2;
|
|
19793
|
+
if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
|
|
19798
19794
|
return option2.value;
|
|
19799
19795
|
}
|
|
19800
19796
|
function focusInput() {
|
|
@@ -20009,7 +20005,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
20009
20005
|
};
|
|
20010
20006
|
}
|
|
20011
20007
|
});
|
|
20012
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
20008
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-da5bc268"]]);
|
|
20013
20009
|
/*!
|
|
20014
20010
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
20015
20011
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
package/dist/style.css
CHANGED
|
@@ -1015,22 +1015,22 @@ display: block;
|
|
|
1015
1015
|
font-size: 0.95rem;
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
-
.table-list-wrap[data-v-
|
|
1018
|
+
.table-list-wrap[data-v-5e7cca10] {
|
|
1019
1019
|
min-height: 150px;
|
|
1020
1020
|
}
|
|
1021
|
-
.selected[data-v-
|
|
1021
|
+
.selected[data-v-5e7cca10] {
|
|
1022
1022
|
background: var(--bgl-primary-tint);
|
|
1023
1023
|
}
|
|
1024
|
-
tbody tr.selected[data-v-
|
|
1024
|
+
tbody tr.selected[data-v-5e7cca10]:hover {
|
|
1025
1025
|
background: var(--bgl-primary-light);
|
|
1026
1026
|
}
|
|
1027
|
-
.loading-table[data-v-
|
|
1027
|
+
.loading-table[data-v-5e7cca10] {
|
|
1028
1028
|
position: relative;
|
|
1029
1029
|
}
|
|
1030
|
-
.inset[data-v-
|
|
1030
|
+
.inset[data-v-5e7cca10] {
|
|
1031
1031
|
inset: 0;
|
|
1032
1032
|
}
|
|
1033
|
-
.loading-table-animation[data-v-
|
|
1033
|
+
.loading-table-animation[data-v-5e7cca10] {
|
|
1034
1034
|
--size: 60px;
|
|
1035
1035
|
top: 30vh;
|
|
1036
1036
|
inset-inline-start: calc(50% - var(--size));
|
|
@@ -1038,9 +1038,9 @@ tbody tr.selected[data-v-c730b48b]:hover {
|
|
|
1038
1038
|
border-top: 4px solid var(--bgl-primary);
|
|
1039
1039
|
width: var(--size);
|
|
1040
1040
|
height: var(--size);
|
|
1041
|
-
animation: loading-table-
|
|
1041
|
+
animation: loading-table-5e7cca10 1s linear infinite;
|
|
1042
1042
|
}
|
|
1043
|
-
@keyframes loading-table-
|
|
1043
|
+
@keyframes loading-table-5e7cca10 {
|
|
1044
1044
|
0% {
|
|
1045
1045
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
1046
1046
|
}
|
|
@@ -1048,55 +1048,55 @@ tbody tr.selected[data-v-c730b48b]:hover {
|
|
|
1048
1048
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
-
.list-arrows[data-v-
|
|
1051
|
+
.list-arrows[data-v-5e7cca10] {
|
|
1052
1052
|
opacity: 0;
|
|
1053
1053
|
}
|
|
1054
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
1054
|
+
.list-arrows .bgl_icon-font[data-v-5e7cca10] {
|
|
1055
1055
|
transition: all ease-in-out 0.2s;
|
|
1056
1056
|
}
|
|
1057
|
-
.list-arrows.sorted[data-v-
|
|
1057
|
+
.list-arrows.sorted[data-v-5e7cca10] {
|
|
1058
1058
|
opacity: 1;
|
|
1059
1059
|
}
|
|
1060
|
-
.col img[data-v-
|
|
1060
|
+
.col img[data-v-5e7cca10] {
|
|
1061
1061
|
height: 35px;
|
|
1062
1062
|
margin-top: -14px;
|
|
1063
1063
|
margin-bottom: -14px;
|
|
1064
1064
|
border-radius: 5px;
|
|
1065
1065
|
object-fit: cover;
|
|
1066
1066
|
}
|
|
1067
|
-
.col[data-v-
|
|
1067
|
+
.col[data-v-5e7cca10]:has(img) {
|
|
1068
1068
|
padding-inline-end: 0.5rem;
|
|
1069
1069
|
}
|
|
1070
|
-
.list-arrows.sorted .desc[data-v-
|
|
1070
|
+
.list-arrows.sorted .desc[data-v-5e7cca10] {
|
|
1071
1071
|
transform: rotate(180deg);
|
|
1072
1072
|
display: inline-block;
|
|
1073
1073
|
}
|
|
1074
|
-
table[data-v-
|
|
1074
|
+
table[data-v-5e7cca10] {
|
|
1075
1075
|
border-spacing: 0 15px;
|
|
1076
1076
|
border-collapse: collapse;
|
|
1077
1077
|
width: 100%;
|
|
1078
1078
|
}
|
|
1079
|
-
th[data-v-
|
|
1079
|
+
th[data-v-5e7cca10] {
|
|
1080
1080
|
font-size: 0.8rem;
|
|
1081
1081
|
color: var(--bgl-black-tint);
|
|
1082
1082
|
position: sticky;
|
|
1083
1083
|
top: 0;
|
|
1084
1084
|
z-index: 2;
|
|
1085
1085
|
background: var(--bgl-box-bg);
|
|
1086
|
-
height: var(--
|
|
1086
|
+
height: var(--97de67d4);
|
|
1087
1087
|
vertical-align: bottom;
|
|
1088
1088
|
font-weight: 400;
|
|
1089
1089
|
text-align: start;
|
|
1090
1090
|
}
|
|
1091
|
-
.embedded-field[data-v-
|
|
1091
|
+
.embedded-field[data-v-5e7cca10] {
|
|
1092
1092
|
margin-bottom: -0.2rem;
|
|
1093
1093
|
margin-top: -0.2rem;
|
|
1094
1094
|
}
|
|
1095
|
-
.row[data-v-
|
|
1095
|
+
.row[data-v-5e7cca10] {
|
|
1096
1096
|
border-bottom: 1px solid var(--border-color);
|
|
1097
1097
|
cursor: pointer;
|
|
1098
1098
|
}
|
|
1099
|
-
.row.first-row[data-v-
|
|
1099
|
+
.row.first-row[data-v-5e7cca10] {
|
|
1100
1100
|
font-size: 0.8rem;
|
|
1101
1101
|
color: var(--bgl-black-tint);
|
|
1102
1102
|
position: sticky;
|
|
@@ -1105,7 +1105,7 @@ th[data-v-c730b48b] {
|
|
|
1105
1105
|
background: var(--bgl-box-bg);
|
|
1106
1106
|
vertical-align: bottom;
|
|
1107
1107
|
}
|
|
1108
|
-
.row.first-row[data-v-
|
|
1108
|
+
.row.first-row[data-v-5e7cca10]::after {
|
|
1109
1109
|
content: '';
|
|
1110
1110
|
border-bottom: 1px solid var(--border-color);
|
|
1111
1111
|
position: absolute;
|
|
@@ -1113,11 +1113,11 @@ th[data-v-c730b48b] {
|
|
|
1113
1113
|
right: 0;
|
|
1114
1114
|
bottom: -1px;
|
|
1115
1115
|
}
|
|
1116
|
-
.first-row .col[data-v-
|
|
1116
|
+
.first-row .col[data-v-5e7cca10] {
|
|
1117
1117
|
cursor: pointer;
|
|
1118
1118
|
background: var(--bgl-box-bg);
|
|
1119
1119
|
}
|
|
1120
|
-
.col[data-v-
|
|
1120
|
+
.col[data-v-5e7cca10] {
|
|
1121
1121
|
white-space: nowrap;
|
|
1122
1122
|
padding: 0.75rem 1rem;
|
|
1123
1123
|
transition: var(--bgl-transition);
|
|
@@ -1127,19 +1127,19 @@ th[data-v-c730b48b] {
|
|
|
1127
1127
|
overflow: hidden;
|
|
1128
1128
|
max-width: 30vw;
|
|
1129
1129
|
}
|
|
1130
|
-
.col[data-v-
|
|
1130
|
+
.col[data-v-5e7cca10]:has(.bagel-input) {
|
|
1131
1131
|
padding: 0rem 0.25rem;
|
|
1132
1132
|
}
|
|
1133
|
-
.col > div[data-v-
|
|
1133
|
+
.col > div[data-v-5e7cca10] {
|
|
1134
1134
|
display: flex;
|
|
1135
1135
|
gap: 0.5rem;
|
|
1136
1136
|
}
|
|
1137
|
-
.max-col-width[data-v-
|
|
1137
|
+
.max-col-width[data-v-5e7cca10] {
|
|
1138
1138
|
max-width: 30vw;
|
|
1139
1139
|
overflow: hidden;
|
|
1140
1140
|
text-overflow: ellipsis;
|
|
1141
1141
|
}
|
|
1142
|
-
.col.check .bgl_icon-font[data-v-
|
|
1142
|
+
.col.check .bgl_icon-font[data-v-5e7cca10] {
|
|
1143
1143
|
border-radius: 100%;
|
|
1144
1144
|
background: var(--bgl-blue-20);
|
|
1145
1145
|
color: var(--bgl-primary);
|
|
@@ -1150,35 +1150,35 @@ th[data-v-c730b48b] {
|
|
|
1150
1150
|
justify-content: center;
|
|
1151
1151
|
margin-top: -2px;
|
|
1152
1152
|
}
|
|
1153
|
-
.rows[data-v-
|
|
1153
|
+
.rows[data-v-5e7cca10] {
|
|
1154
1154
|
font-size: 0.88em;
|
|
1155
1155
|
}
|
|
1156
|
-
.table-list[data-v-
|
|
1156
|
+
.table-list[data-v-5e7cca10] {
|
|
1157
1157
|
height: 100%;
|
|
1158
1158
|
position: relative;
|
|
1159
1159
|
padding-left: 0 !important;
|
|
1160
1160
|
padding-right: 0 !important;
|
|
1161
1161
|
overflow: auto;
|
|
1162
1162
|
}
|
|
1163
|
-
.BagelTable .table-list[data-v-
|
|
1163
|
+
.BagelTable .table-list[data-v-5e7cca10] {
|
|
1164
1164
|
overflow: unset;
|
|
1165
1165
|
}
|
|
1166
|
-
.row-item[data-v-
|
|
1167
|
-
height: var(--
|
|
1166
|
+
.row-item[data-v-5e7cca10] {
|
|
1167
|
+
height: var(--97de67d4);
|
|
1168
1168
|
transition: all 200ms ease;
|
|
1169
1169
|
}
|
|
1170
|
-
.row-item[data-v-
|
|
1170
|
+
.row-item[data-v-5e7cca10]:hover {
|
|
1171
1171
|
background: var(--bgl-gray-light);
|
|
1172
1172
|
}
|
|
1173
|
-
.row-item input[type='checkbox'][data-v-
|
|
1173
|
+
.row-item input[type='checkbox'][data-v-5e7cca10] {
|
|
1174
1174
|
margin-top: 0.45rem !important;
|
|
1175
1175
|
accent-color: var(--bgl-accent-color);
|
|
1176
1176
|
}
|
|
1177
|
-
.infinite-wrapper[data-v-
|
|
1177
|
+
.infinite-wrapper[data-v-5e7cca10] {
|
|
1178
1178
|
overflow-y: auto;
|
|
1179
1179
|
width: 100%;
|
|
1180
1180
|
}
|
|
1181
|
-
input[type='checkbox'][data-v-
|
|
1181
|
+
input[type='checkbox'][data-v-5e7cca10] {
|
|
1182
1182
|
margin-top: 0.3rem !important;
|
|
1183
1183
|
accent-color: var(--bgl-accent-color);
|
|
1184
1184
|
transform: scale(1.2);
|
|
@@ -1190,7 +1190,7 @@ input[type='checkbox'][data-v-c730b48b] {
|
|
|
1190
1190
|
height: 0.85rem;
|
|
1191
1191
|
width: 0.85rem;
|
|
1192
1192
|
}
|
|
1193
|
-
input[type='checkbox'][data-v-
|
|
1193
|
+
input[type='checkbox'][data-v-5e7cca10]::before {
|
|
1194
1194
|
content: '';
|
|
1195
1195
|
height: 0.85rem;
|
|
1196
1196
|
width: 0.85rem;
|
|
@@ -1203,18 +1203,18 @@ input[type='checkbox'][data-v-c730b48b]::before {
|
|
|
1203
1203
|
transform: scale(1);
|
|
1204
1204
|
position: absolute;
|
|
1205
1205
|
}
|
|
1206
|
-
input[type='checkbox'][data-v-
|
|
1206
|
+
input[type='checkbox'][data-v-5e7cca10]:hover::before {
|
|
1207
1207
|
opacity: 0.2;
|
|
1208
1208
|
transform: scale(2);
|
|
1209
1209
|
}
|
|
1210
|
-
[lang='he'] [dir='ltr'][data-v-
|
|
1210
|
+
[lang='he'] [dir='ltr'][data-v-5e7cca10] {
|
|
1211
1211
|
text-align: right;
|
|
1212
1212
|
}
|
|
1213
|
-
th input[type='checkbox'][data-v-
|
|
1213
|
+
th input[type='checkbox'][data-v-5e7cca10] {
|
|
1214
1214
|
transform: translateY(0.2rem) scale(1.2);
|
|
1215
1215
|
accent-color: var(--bgl-accent-color);
|
|
1216
1216
|
}
|
|
1217
|
-
th[data-v-
|
|
1217
|
+
th[data-v-5e7cca10]::after {
|
|
1218
1218
|
content: '';
|
|
1219
1219
|
border-bottom: 1px solid var(--border-color);
|
|
1220
1220
|
position: absolute;
|
|
@@ -1222,24 +1222,24 @@ th[data-v-c730b48b]::after {
|
|
|
1222
1222
|
right: 0;
|
|
1223
1223
|
bottom: -1px;
|
|
1224
1224
|
}
|
|
1225
|
-
tr[data-v-
|
|
1225
|
+
tr[data-v-5e7cca10] {
|
|
1226
1226
|
border-bottom: 1px solid var(--border-color);
|
|
1227
1227
|
cursor: pointer;
|
|
1228
1228
|
align-items: center;
|
|
1229
1229
|
}
|
|
1230
|
-
td[data-v-
|
|
1231
|
-
th[data-v-
|
|
1230
|
+
td[data-v-5e7cca10],
|
|
1231
|
+
th[data-v-5e7cca10] {
|
|
1232
1232
|
white-space: nowrap;
|
|
1233
1233
|
padding: 0.75rem 0.65rem;
|
|
1234
1234
|
transition: var(--bgl-transition);
|
|
1235
1235
|
line-height: 1;
|
|
1236
1236
|
}
|
|
1237
|
-
tbody tr[data-v-
|
|
1237
|
+
tbody tr[data-v-5e7cca10] {
|
|
1238
1238
|
font-size: 0.88em;
|
|
1239
|
-
height: var(--
|
|
1239
|
+
height: var(--97de67d4);
|
|
1240
1240
|
transition: all 200ms ease;
|
|
1241
1241
|
}
|
|
1242
|
-
tbody tr[data-v-
|
|
1242
|
+
tbody tr[data-v-5e7cca10]:hover {
|
|
1243
1243
|
background: var(--bgl-gray-light);
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
@@ -1955,7 +1955,7 @@ pre code.hljs{
|
|
|
1955
1955
|
accent-color: var(--bgl-red);
|
|
1956
1956
|
}
|
|
1957
1957
|
|
|
1958
|
-
.radio-pill label[data-v-
|
|
1958
|
+
.radio-pill label[data-v-68b4cdd0] {
|
|
1959
1959
|
color: var(--bgl-primary);
|
|
1960
1960
|
white-space: nowrap;
|
|
1961
1961
|
border-radius: calc(var(--btn-border-radius) * 2);
|
|
@@ -1969,13 +1969,13 @@ pre code.hljs{
|
|
|
1969
1969
|
background: var(--bgl-light-text);
|
|
1970
1970
|
user-select: none;
|
|
1971
1971
|
}
|
|
1972
|
-
.radio-pill label[data-v-
|
|
1972
|
+
.radio-pill label[data-v-68b4cdd0]:hover {
|
|
1973
1973
|
filter: var(--bgl-hover-filter);
|
|
1974
1974
|
}
|
|
1975
|
-
.radio-pill input[data-v-
|
|
1975
|
+
.radio-pill input[data-v-68b4cdd0] {
|
|
1976
1976
|
display: none;
|
|
1977
1977
|
}
|
|
1978
|
-
.radio-pill input:checked ~ label[data-v-
|
|
1978
|
+
.radio-pill input:checked ~ label[data-v-68b4cdd0] {
|
|
1979
1979
|
background: var(--bgl-primary);
|
|
1980
1980
|
color: var(--bgl-light-text);
|
|
1981
1981
|
}
|
|
@@ -2148,10 +2148,10 @@ input[type="range"][data-v-46e22f3e]:active::-webkit-slider-thumb {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
.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}
|
|
2150
2150
|
|
|
2151
|
-
.selectinput[data-v-
|
|
2151
|
+
.selectinput[data-v-da5bc268] {
|
|
2152
2152
|
width: 100%;
|
|
2153
2153
|
}
|
|
2154
|
-
.selectinput-option[data-v-
|
|
2154
|
+
.selectinput-option[data-v-da5bc268] {
|
|
2155
2155
|
padding: 6px 12px;
|
|
2156
2156
|
cursor: pointer;
|
|
2157
2157
|
border-radius: 5px;
|
|
@@ -2163,23 +2163,23 @@ input[type="range"][data-v-46e22f3e]:active::-webkit-slider-thumb {
|
|
|
2163
2163
|
font-size: var(--input-font-size);
|
|
2164
2164
|
margin-block: 0.15rem;
|
|
2165
2165
|
}
|
|
2166
|
-
.selectinput-option .bgl_icon-font[data-v-
|
|
2166
|
+
.selectinput-option .bgl_icon-font[data-v-da5bc268]{
|
|
2167
2167
|
line-height: normal;
|
|
2168
2168
|
}
|
|
2169
|
-
.selectinput-options.multiselect .selectinput-option[data-v-
|
|
2169
|
+
.selectinput-options.multiselect .selectinput-option[data-v-da5bc268] {
|
|
2170
2170
|
grid-template-columns: 10px 1fr;
|
|
2171
2171
|
}
|
|
2172
|
-
.selectinput-options[data-v-
|
|
2172
|
+
.selectinput-options[data-v-da5bc268] {
|
|
2173
2173
|
max-height: 300px;
|
|
2174
2174
|
overflow-y: auto;
|
|
2175
2175
|
}
|
|
2176
|
-
.selectinput-option[data-v-
|
|
2176
|
+
.selectinput-option[data-v-da5bc268]:hover, .highlight[data-v-da5bc268] {
|
|
2177
2177
|
background: var(--bgl-gray-20);
|
|
2178
2178
|
}
|
|
2179
|
-
.isEmpty p[data-v-
|
|
2179
|
+
.isEmpty p[data-v-da5bc268] {
|
|
2180
2180
|
opacity: 0.3;
|
|
2181
2181
|
}
|
|
2182
|
-
.selected[data-v-
|
|
2182
|
+
.selected[data-v-da5bc268]{
|
|
2183
2183
|
/* background: var(--bgl-primary-tint); */
|
|
2184
2184
|
background: var(--bgl-selected);
|
|
2185
2185
|
}
|
|
@@ -14,7 +14,7 @@ export type BagelFieldOptions<T = {
|
|
|
14
14
|
}> = (string | ({
|
|
15
15
|
label?: string;
|
|
16
16
|
value: string | number;
|
|
17
|
-
} | string | number | {
|
|
17
|
+
} | string | number | boolean | {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
})[] | ((val: any, rowData?: T) => void));
|
|
20
20
|
type GenericAssertFn<T> = (val: any, row: T) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelForm.d.ts","sourceRoot":"","sources":["../../src/types/BagelForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAEvG,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,cAAc,CAAA;AAE5F,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAA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,GAAG,MAAM,CAAA;CAC3B;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAC5G,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;AAEnE,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type Tab = {
|
|
|
12
12
|
icon?: IconType;
|
|
13
13
|
} | string;
|
|
14
14
|
export type ThemeType = 'light' | 'white' | 'red' | 'gray' | 'gray-light' | 'black' | 'green' | 'yellow' | 'primary' | 'blue';
|
|
15
|
-
export type Option = string | number | {
|
|
15
|
+
export type Option = string | number | boolean | {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
} | {
|
|
18
18
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,mBAAmB,EACnB,mBAAmB,IAAI,uBAAuB,EAC9C,YAAY,GACZ,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM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Ac,cAAc,CAAA;AAC5B,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAE/D,MAAM,MAAM,GAAG,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,QAAQ,CAAA;CACf,GAAG,MAAM,CAAA;AAEV,MAAM,MAAM,SAAS,GACpB,OAAO,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,YAAY,GACZ,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,MAAM,CAAA;AAET,MAAM,MAAM,MAAM,GACf,MAAM,GACN,MAAM,GACN,OAAO,GACP;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GACtB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AAE5C,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -19,23 +19,16 @@ export type EmitOrderT = `${string} ${SortDirectionsT}`
|
|
|
19
19
|
const props = defineProps<TableSchemaProps<T>>()
|
|
20
20
|
|
|
21
21
|
const emit = defineEmits<{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'lastItemVisible': []
|
|
22
|
+
orderBy: [EmitOrderT]
|
|
23
|
+
select: [T]
|
|
24
|
+
lastItemVisible: []
|
|
26
25
|
}>()
|
|
27
26
|
|
|
28
27
|
const slots = useSlots() as Slots & Record<string, (props: { row: T, field: BaseBagelField<T> }) => any>
|
|
29
28
|
|
|
30
29
|
const loading = defineModel('loading', { default: false })
|
|
31
30
|
const itemHeight = defineModel('itemHeight', { default: 50 })
|
|
32
|
-
const selectedItems = defineModel<string[]>(
|
|
33
|
-
'selectedItems',
|
|
34
|
-
{
|
|
35
|
-
default: [] as string[],
|
|
36
|
-
set: (value: string[]) => value,
|
|
37
|
-
}
|
|
38
|
-
)
|
|
31
|
+
const selectedItems = defineModel<string[]>('selectedItems', { default: [] as string[] })
|
|
39
32
|
|
|
40
33
|
const data = computed(() => props.data)
|
|
41
34
|
const schema = computed(() => props.schema)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue'
|
|
2
2
|
import type { TableDataOptions, SortDirectionsT } from '../../types/TableSchema'
|
|
3
3
|
import { useBglSchema, isDate } from '@bagelink/vue'
|
|
4
|
-
import { computed, ref
|
|
4
|
+
import { computed, ref } from 'vue'
|
|
5
5
|
|
|
6
6
|
const NON_DIGIT_REGEX = /[^\d.-]/g
|
|
7
7
|
|
|
@@ -22,12 +22,14 @@ const emits = defineEmits(['update:modelValue'])
|
|
|
22
22
|
function getLabel(option: Option) {
|
|
23
23
|
if (typeof option === 'string') return option
|
|
24
24
|
if (typeof option === 'number') return `${option}`
|
|
25
|
+
if (typeof option === 'boolean') return option ? 'Yes' : 'No'
|
|
25
26
|
return option.label
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
function getValue(option: Option) {
|
|
29
30
|
if (typeof option === 'string') return option
|
|
30
31
|
if (typeof option === 'number') return option
|
|
32
|
+
if (typeof option === 'boolean') return option ? 'Yes' : 'No'
|
|
31
33
|
return option.value
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -121,6 +121,7 @@ function getLabel(option: Option) {
|
|
|
121
121
|
if (!option) return ''
|
|
122
122
|
if (typeof option === 'string') return option
|
|
123
123
|
if (typeof option === 'number') return `${option}`
|
|
124
|
+
if (typeof option === 'boolean') return option ? 'Yes' : 'No'
|
|
124
125
|
return option.label
|
|
125
126
|
}
|
|
126
127
|
|
|
@@ -128,6 +129,7 @@ function getValue(option?: Option) {
|
|
|
128
129
|
if (!option) return
|
|
129
130
|
if (typeof option === 'string') return option
|
|
130
131
|
if (typeof option === 'number') return option
|
|
132
|
+
if (typeof option === 'boolean') return option ? 'Yes' : 'No'
|
|
131
133
|
return option.value
|
|
132
134
|
}
|
|
133
135
|
|
package/src/types/BagelForm.ts
CHANGED