@bagelink/vue 0.0.130 → 0.0.132
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/TableSchema.vue.d.ts.map +1 -1
- package/dist/index.cjs +4 -11
- package/dist/index.mjs +4 -11
- package/dist/style.css +24 -24
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/DataPreview.vue +2 -2
- package/src/components/TableSchema.vue +2 -3
- package/src/utils/index.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataPreview.vue.d.ts","sourceRoot":"","sources":["../../src/components/DataPreview.vue"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DataPreview.vue.d.ts","sourceRoot":"","sources":["../../src/components/DataPreview.vue"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;;;;;;;;;AAsMA,wBAAwG;AAGxG,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;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AA+DA;;;;;;;;;;;;;;;AAwUA,wBAAwG;AAGxG,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -2364,12 +2364,6 @@ const useFormkit = () => {
|
|
|
2364
2364
|
return formkit;
|
|
2365
2365
|
};
|
|
2366
2366
|
const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
|
|
2367
|
-
const parseLocale = (str, i18nT = (_str) => _str) => {
|
|
2368
|
-
const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
|
|
2369
|
-
if (!w)
|
|
2370
|
-
return str;
|
|
2371
|
-
return i18nT(w);
|
|
2372
|
-
};
|
|
2373
2367
|
const _hoisted_1$V = { ref: "el" };
|
|
2374
2368
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
2375
2369
|
__name: "LangText",
|
|
@@ -15230,7 +15224,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15230
15224
|
key: field.id,
|
|
15231
15225
|
class: "data-row"
|
|
15232
15226
|
}, [
|
|
15233
|
-
vue.createElementVNode("div", _hoisted_3$y, vue.toDisplayString(field
|
|
15227
|
+
vue.createElementVNode("div", _hoisted_3$y, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
|
|
15234
15228
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
|
|
15235
15229
|
default: vue.withCtx(() => [
|
|
15236
15230
|
vue.createTextVNode(vue.toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
|
|
@@ -15257,7 +15251,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
15257
15251
|
};
|
|
15258
15252
|
}
|
|
15259
15253
|
});
|
|
15260
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-
|
|
15254
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-0350cc0c"]]);
|
|
15261
15255
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
15262
15256
|
__name: "FormSchema",
|
|
15263
15257
|
props: {
|
|
@@ -15398,7 +15392,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
15398
15392
|
onClick: ($event) => sort2(field.id)
|
|
15399
15393
|
}, [
|
|
15400
15394
|
vue.createElementVNode("div", _hoisted_5$h, [
|
|
15401
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
15395
|
+
vue.createTextVNode(vue.toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15402
15396
|
vue.createElementVNode("div", {
|
|
15403
15397
|
class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
|
|
15404
15398
|
}, [
|
|
@@ -15454,7 +15448,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
15454
15448
|
};
|
|
15455
15449
|
}
|
|
15456
15450
|
});
|
|
15457
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
15451
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-fa7146ce"]]);
|
|
15458
15452
|
const _sfc_main$z = {};
|
|
15459
15453
|
const _hoisted_1$H = { class: "flex space-between" };
|
|
15460
15454
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -28500,7 +28494,6 @@ exports.debounce = debounce;
|
|
|
28500
28494
|
exports.formatString = formatString;
|
|
28501
28495
|
exports.initials = initials;
|
|
28502
28496
|
exports.keyToLabel = keyToLabel;
|
|
28503
|
-
exports.parseLocale = parseLocale;
|
|
28504
28497
|
exports.useBagel = useBagel;
|
|
28505
28498
|
exports.useFormkit = useFormkit;
|
|
28506
28499
|
exports.useModal = useModal;
|
package/dist/index.mjs
CHANGED
|
@@ -2362,12 +2362,6 @@ const useFormkit = () => {
|
|
|
2362
2362
|
return formkit;
|
|
2363
2363
|
};
|
|
2364
2364
|
const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
|
|
2365
|
-
const parseLocale = (str, i18nT = (_str) => _str) => {
|
|
2366
|
-
const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
|
|
2367
|
-
if (!w)
|
|
2368
|
-
return str;
|
|
2369
|
-
return i18nT(w);
|
|
2370
|
-
};
|
|
2371
2365
|
const _hoisted_1$V = { ref: "el" };
|
|
2372
2366
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
2373
2367
|
__name: "LangText",
|
|
@@ -15228,7 +15222,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15228
15222
|
key: field.id,
|
|
15229
15223
|
class: "data-row"
|
|
15230
15224
|
}, [
|
|
15231
|
-
createElementVNode("div", _hoisted_3$y, toDisplayString(field
|
|
15225
|
+
createElementVNode("div", _hoisted_3$y, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
15232
15226
|
(openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
|
|
15233
15227
|
default: withCtx(() => [
|
|
15234
15228
|
createTextVNode(toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
|
|
@@ -15255,7 +15249,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15255
15249
|
};
|
|
15256
15250
|
}
|
|
15257
15251
|
});
|
|
15258
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-
|
|
15252
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-0350cc0c"]]);
|
|
15259
15253
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
15260
15254
|
__name: "FormSchema",
|
|
15261
15255
|
props: {
|
|
@@ -15396,7 +15390,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15396
15390
|
onClick: ($event) => sort2(field.id)
|
|
15397
15391
|
}, [
|
|
15398
15392
|
createElementVNode("div", _hoisted_5$h, [
|
|
15399
|
-
createTextVNode(toDisplayString(
|
|
15393
|
+
createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15400
15394
|
createElementVNode("div", {
|
|
15401
15395
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
15402
15396
|
}, [
|
|
@@ -15452,7 +15446,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15452
15446
|
};
|
|
15453
15447
|
}
|
|
15454
15448
|
});
|
|
15455
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
15449
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-fa7146ce"]]);
|
|
15456
15450
|
const _sfc_main$z = {};
|
|
15457
15451
|
const _hoisted_1$H = { class: "flex space-between" };
|
|
15458
15452
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -28499,7 +28493,6 @@ export {
|
|
|
28499
28493
|
formatString,
|
|
28500
28494
|
initials,
|
|
28501
28495
|
keyToLabel,
|
|
28502
|
-
parseLocale,
|
|
28503
28496
|
useBagel,
|
|
28504
28497
|
useFormkit,
|
|
28505
28498
|
useModal
|
package/dist/style.css
CHANGED
|
@@ -757,12 +757,12 @@
|
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
-
.data[data-v-
|
|
760
|
+
.data[data-v-0350cc0c] {
|
|
761
761
|
border: 1.1px solid var(--border-color);
|
|
762
762
|
padding: 20px;
|
|
763
763
|
border-radius: var(--input-border-radius);
|
|
764
764
|
}
|
|
765
|
-
.data-row[data-v-
|
|
765
|
+
.data-row[data-v-0350cc0c] {
|
|
766
766
|
display: flex;
|
|
767
767
|
justify-content: space-between;
|
|
768
768
|
padding-bottom: 0.5rem;
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
opacity: 0.8;
|
|
771
771
|
border-bottom: 1px solid var(--border-color);
|
|
772
772
|
}
|
|
773
|
-
.data-link[data-v-
|
|
773
|
+
.data-link[data-v-0350cc0c] {
|
|
774
774
|
display: block;
|
|
775
775
|
font-size: var(--input-font-size);
|
|
776
776
|
margin-bottom: 2px;
|
|
@@ -782,37 +782,37 @@
|
|
|
782
782
|
transform: translateY(-2.6rem);
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
-
.list-arrows[data-v-
|
|
785
|
+
.list-arrows[data-v-fa7146ce] {
|
|
786
786
|
opacity: 0;
|
|
787
787
|
}
|
|
788
|
-
.list-arrows .icon-font[data-v-
|
|
788
|
+
.list-arrows .icon-font[data-v-fa7146ce] {
|
|
789
789
|
transition: all ease-in-out 0.2s;
|
|
790
790
|
}
|
|
791
|
-
.list-arrows.sorted[data-v-
|
|
791
|
+
.list-arrows.sorted[data-v-fa7146ce] {
|
|
792
792
|
opacity: 1;
|
|
793
793
|
}
|
|
794
|
-
.col img[data-v-
|
|
794
|
+
.col img[data-v-fa7146ce] {
|
|
795
795
|
height: 35px;
|
|
796
796
|
margin-top: -14px;
|
|
797
797
|
margin-bottom: -14px;
|
|
798
798
|
border-radius: 5px;
|
|
799
799
|
}
|
|
800
|
-
.list-arrows.sorted .desc[data-v-
|
|
800
|
+
.list-arrows.sorted .desc[data-v-fa7146ce] {
|
|
801
801
|
transform: rotate(180deg);
|
|
802
802
|
}
|
|
803
|
-
table[data-v-
|
|
803
|
+
table[data-v-fa7146ce] {
|
|
804
804
|
border-collapse: separate;
|
|
805
805
|
border-spacing: 0 15px;
|
|
806
806
|
border-collapse: collapse;
|
|
807
807
|
}
|
|
808
|
-
th[data-v-
|
|
808
|
+
th[data-v-fa7146ce] {
|
|
809
809
|
font-weight: 400;
|
|
810
810
|
}
|
|
811
|
-
.row[data-v-
|
|
811
|
+
.row[data-v-fa7146ce] {
|
|
812
812
|
border-bottom: 1px solid var(--border-color);
|
|
813
813
|
cursor: pointer;
|
|
814
814
|
}
|
|
815
|
-
.row.first-row[data-v-
|
|
815
|
+
.row.first-row[data-v-fa7146ce] {
|
|
816
816
|
font-size: 0.8rem;
|
|
817
817
|
color: var(--bgl-black-tint);
|
|
818
818
|
position: sticky;
|
|
@@ -822,7 +822,7 @@ th[data-v-ef2c4aa7] {
|
|
|
822
822
|
height: 50px;
|
|
823
823
|
vertical-align: bottom;
|
|
824
824
|
}
|
|
825
|
-
.row.first-row[data-v-
|
|
825
|
+
.row.first-row[data-v-fa7146ce]::after {
|
|
826
826
|
content: '';
|
|
827
827
|
border-bottom: 1px solid var(--border-color);
|
|
828
828
|
position: absolute;
|
|
@@ -830,11 +830,11 @@ th[data-v-ef2c4aa7] {
|
|
|
830
830
|
right: 0;
|
|
831
831
|
bottom: -1px;
|
|
832
832
|
}
|
|
833
|
-
.first-row .col[data-v-
|
|
833
|
+
.first-row .col[data-v-fa7146ce] {
|
|
834
834
|
cursor: pointer;
|
|
835
835
|
background: var(--bgl-white);
|
|
836
836
|
}
|
|
837
|
-
.col[data-v-
|
|
837
|
+
.col[data-v-fa7146ce] {
|
|
838
838
|
white-space: nowrap;
|
|
839
839
|
padding: 14px;
|
|
840
840
|
transition: var(--bgl-transition);
|
|
@@ -843,16 +843,16 @@ th[data-v-ef2c4aa7] {
|
|
|
843
843
|
padding-right: 1rem;
|
|
844
844
|
align-items: center;
|
|
845
845
|
}
|
|
846
|
-
.col>div[data-v-
|
|
846
|
+
.col>div[data-v-fa7146ce] {
|
|
847
847
|
display: flex;
|
|
848
848
|
gap: 0.5rem;
|
|
849
849
|
}
|
|
850
|
-
.max-col-width[data-v-
|
|
850
|
+
.max-col-width[data-v-fa7146ce] {
|
|
851
851
|
max-width: 30vw;
|
|
852
852
|
overflow: hidden;
|
|
853
853
|
text-overflow: ellipsis;
|
|
854
854
|
}
|
|
855
|
-
.col.check .icon-font[data-v-
|
|
855
|
+
.col.check .icon-font[data-v-fa7146ce] {
|
|
856
856
|
border-radius: 100%;
|
|
857
857
|
background: var(--bgl-blue-20);
|
|
858
858
|
color: var(--bgl-blue);
|
|
@@ -863,27 +863,27 @@ th[data-v-ef2c4aa7] {
|
|
|
863
863
|
justify-content: center;
|
|
864
864
|
margin-top: -2px;
|
|
865
865
|
}
|
|
866
|
-
.rows[data-v-
|
|
866
|
+
.rows[data-v-fa7146ce] {
|
|
867
867
|
font-size: 0.8125em;
|
|
868
868
|
}
|
|
869
|
-
.table-list[data-v-
|
|
869
|
+
.table-list[data-v-fa7146ce] {
|
|
870
870
|
height: 100%;
|
|
871
871
|
position: relative;
|
|
872
872
|
padding-left: 0 !important;
|
|
873
873
|
padding-right: 0 !important;
|
|
874
874
|
overflow: auto;
|
|
875
875
|
}
|
|
876
|
-
.BagelTable .table-list[data-v-
|
|
876
|
+
.BagelTable .table-list[data-v-fa7146ce] {
|
|
877
877
|
overflow: unset;
|
|
878
878
|
}
|
|
879
|
-
.row-item[data-v-
|
|
879
|
+
.row-item[data-v-fa7146ce] {
|
|
880
880
|
height: 50px;
|
|
881
881
|
transition: all 200ms ease;
|
|
882
882
|
}
|
|
883
|
-
.row-item[data-v-
|
|
883
|
+
.row-item[data-v-fa7146ce]:hover {
|
|
884
884
|
background: var(--bgl-gray-light);
|
|
885
885
|
}
|
|
886
|
-
.infinite-wrapper[data-v-
|
|
886
|
+
.infinite-wrapper[data-v-fa7146ce] {
|
|
887
887
|
overflow-y: auto;
|
|
888
888
|
width: 100%;
|
|
889
889
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -5,6 +5,5 @@ export declare function computeFields(modelValue: Record<string, any>): BagelFie
|
|
|
5
5
|
export declare const copyText: (text: string, cb?: ((msg: string) => void) | undefined) => Promise<void>;
|
|
6
6
|
export declare const useFormkit: () => unknown;
|
|
7
7
|
export declare const initials: (...strArr: string[]) => string;
|
|
8
|
-
export declare const parseLocale: (str: string, i18nT?: (_str: string) => string) => string;
|
|
9
8
|
export { formatString } from './strings';
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,QAAQ,OAAQ,MAAM,IAAI,yBAGtC,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,MAAM,WAG3B,CAAC;AAEZ,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,UAAU,EAAE,CAmB3E;AAED,eAAO,MAAM,QAAQ,SACd,MAAM,cAED,MAAM,KAAK,IAAI,+BAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,eAGtB,CAAC;AAEF,eAAO,MAAM,QAAQ,cAAe,MAAM,EAAE,WAAiD,CAAC;AAE9F,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,QAAQ,OAAQ,MAAM,IAAI,yBAGtC,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,MAAM,WAG3B,CAAC;AAEZ,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,UAAU,EAAE,CAmB3E;AAED,eAAO,MAAM,QAAQ,SACd,MAAM,cAED,MAAM,KAAK,IAAI,+BAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,eAGtB,CAAC;AAEF,eAAO,MAAM,QAAQ,cAAe,MAAM,EAAE,WAAiD,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
class="data-row"
|
|
16
16
|
>
|
|
17
17
|
<div class="key">
|
|
18
|
-
{{ field
|
|
18
|
+
{{ field?.label || keyToLabel(field.id) }}
|
|
19
19
|
</div>
|
|
20
20
|
<component
|
|
21
21
|
:is="field.$el || 'div'"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script lang="ts" setup>
|
|
48
|
-
import { keyToLabel
|
|
48
|
+
import { keyToLabel } from '@bagelink/vue';
|
|
49
49
|
|
|
50
50
|
const keysToIgnore = ['id', 'person_id', 'person', 'created_at', 'updated_at'];
|
|
51
51
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="table-list-wrap h-100">
|
|
3
|
-
<!-- <div v-for="field in schema" :key="field.id">{{ parseLocale(field.label) }}</div> -->
|
|
4
3
|
<table class="infinite-wrapper">
|
|
5
4
|
<thead class="row first-row">
|
|
6
5
|
<th
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
@click="sort(field.id)"
|
|
11
10
|
>
|
|
12
11
|
<div class="flex">
|
|
13
|
-
{{
|
|
12
|
+
{{ field?.label || field?.id }}
|
|
14
13
|
<div
|
|
15
14
|
class="list-arrows"
|
|
16
15
|
:class="{ sorted: sortField === field.id }"
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
|
|
66
65
|
<script setup lang="ts">
|
|
67
66
|
import { useSlots } from 'vue';
|
|
68
|
-
import { MaterialIcon
|
|
67
|
+
import { MaterialIcon } from '@bagelink/vue';
|
|
69
68
|
|
|
70
69
|
const slots = useSlots();
|
|
71
70
|
const loading = $ref(true);
|
package/src/utils/index.ts
CHANGED
|
@@ -50,11 +50,4 @@ export const useFormkit = () => {
|
|
|
50
50
|
|
|
51
51
|
export const initials = (...strArr: string[]) => strArr.map((str) => str?.charAt(0)).join('');
|
|
52
52
|
|
|
53
|
-
export const parseLocale = (str: string, i18nT = (_str: string) => _str) => {
|
|
54
|
-
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
55
|
-
const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
|
|
56
|
-
if (!w) return str;
|
|
57
|
-
return i18nT(w);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
53
|
export { formatString } from './strings';
|