@bagelink/vue 0.0.665 → 0.0.669
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/TableSchema.vue.d.ts +8 -7
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +7 -7
- package/dist/style.css +51 -47
- package/package.json +1 -1
- package/src/components/TableSchema.vue +14 -3
- package/src/components/form/inputs/RadioGroup.vue +3 -3
- package/src/styles/theme.css +4 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BglFormSchemaT } from '..';
|
|
2
2
|
|
|
3
|
+
export type SortDirectionsT = 'ASC' | 'DESC';
|
|
3
4
|
declare const _default: <T extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
5
|
-
onSelect?: ((
|
|
6
|
-
"onUpdate:selectedItems"?: ((
|
|
7
|
-
onOrderBy?: ((
|
|
6
|
+
onSelect?: ((args_0: T) => any) | undefined;
|
|
7
|
+
"onUpdate:selectedItems"?: ((args_0: string[]) => any) | undefined;
|
|
8
|
+
onOrderBy?: ((args_0: string) => any) | undefined;
|
|
8
9
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
9
|
-
onSelect?: ((
|
|
10
|
-
"onUpdate:selectedItems"?: ((
|
|
11
|
-
onOrderBy?: ((
|
|
10
|
+
onSelect?: ((args_0: T) => any) | undefined;
|
|
11
|
+
"onUpdate:selectedItems"?: ((args_0: string[]) => any) | undefined;
|
|
12
|
+
onOrderBy?: ((args_0: string) => any) | undefined;
|
|
12
13
|
}, never>) & ({
|
|
13
14
|
selectedItems?: string[];
|
|
14
15
|
data: T[];
|
|
@@ -24,7 +25,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: Awaited<typ
|
|
|
24
25
|
row: Record<string, any>;
|
|
25
26
|
field: import('..').Field<T>;
|
|
26
27
|
}) => any>>>;
|
|
27
|
-
emit: (
|
|
28
|
+
emit: ((evt: "select", args_0: T) => void) & ((evt: "update:selectedItems", args_0: string[]) => void) & ((evt: "orderBy", args_0: string) => void);
|
|
28
29
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
29
30
|
[key: string]: any;
|
|
30
31
|
}> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAEA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAEA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;AAItB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;yBAE3B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eACjC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,OAAO,CAAC,cACrC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC1E,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgjB1D,cAAc,CAAC,gCAAgC,CAAC;;;;;;;;;wBAZtC,MAAM,EAAE;cAClB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;;kBAEV,GAAG;qBACA,GAAG;MAMuG,6EAAkC,CAAC,6GAAwD;oBACpM,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;;;UApDqE,GAAG,GAoDjD;;;;;YAII,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1jBvE,wBA0jB2E"}
|
package/dist/index.cjs
CHANGED
|
@@ -6364,7 +6364,7 @@ function useVerticalVirtualList(options, list) {
|
|
|
6364
6364
|
containerRef
|
|
6365
6365
|
};
|
|
6366
6366
|
}
|
|
6367
|
-
const _withScopeId$3 = (n2) => (vue.pushScopeId("data-v-
|
|
6367
|
+
const _withScopeId$3 = (n2) => (vue.pushScopeId("data-v-a4afe8dc"), n2 = n2(), vue.popScopeId(), n2);
|
|
6368
6368
|
const _hoisted_1$D = {
|
|
6369
6369
|
key: 0,
|
|
6370
6370
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
@@ -6398,7 +6398,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
6398
6398
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select"], ["update:loading", "update:itemHeight"]),
|
|
6399
6399
|
setup(__props, { emit: __emit }) {
|
|
6400
6400
|
vue.useCssVars((_ctx) => ({
|
|
6401
|
-
"
|
|
6401
|
+
"15f476b1": vue.unref(computedItemHiehgt)
|
|
6402
6402
|
}));
|
|
6403
6403
|
const props2 = __props;
|
|
6404
6404
|
const emit2 = __emit;
|
|
@@ -6603,7 +6603,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
6603
6603
|
};
|
|
6604
6604
|
}
|
|
6605
6605
|
});
|
|
6606
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
6606
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-a4afe8dc"]]);
|
|
6607
6607
|
const _sfc_main$F = {};
|
|
6608
6608
|
const _hoisted_1$C = { class: "flex space-between" };
|
|
6609
6609
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -47251,9 +47251,9 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47251
47251
|
const selectedOption = vue.useModel(__props, "modelValue");
|
|
47252
47252
|
return (_ctx, _cache) => {
|
|
47253
47253
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
47254
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (opt
|
|
47254
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (opt) => {
|
|
47255
47255
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
47256
|
-
key:
|
|
47256
|
+
key: opt.id,
|
|
47257
47257
|
class: "border round p-1 flex bg-gray-light mb-05 gap-075 active-list-item hover",
|
|
47258
47258
|
for: opt.id
|
|
47259
47259
|
}, [
|
|
@@ -47281,7 +47281,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47281
47281
|
]),
|
|
47282
47282
|
vue.renderSlot(_ctx.$slots, "radioItem", vue.mergeProps({ ref_for: true }, opt), void 0, true)
|
|
47283
47283
|
]),
|
|
47284
|
-
|
|
47284
|
+
_ctx.deletable ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
47285
47285
|
key: 0,
|
|
47286
47286
|
class: "ms-auto",
|
|
47287
47287
|
flat: "",
|
|
@@ -47295,7 +47295,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47295
47295
|
};
|
|
47296
47296
|
}
|
|
47297
47297
|
});
|
|
47298
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
47298
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-d6ebc385"]]);
|
|
47299
47299
|
function _isPlaceholder(a2) {
|
|
47300
47300
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
47301
47301
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -6362,7 +6362,7 @@ function useVerticalVirtualList(options, list) {
|
|
|
6362
6362
|
containerRef
|
|
6363
6363
|
};
|
|
6364
6364
|
}
|
|
6365
|
-
const _withScopeId$3 = (n2) => (pushScopeId("data-v-
|
|
6365
|
+
const _withScopeId$3 = (n2) => (pushScopeId("data-v-a4afe8dc"), n2 = n2(), popScopeId(), n2);
|
|
6366
6366
|
const _hoisted_1$D = {
|
|
6367
6367
|
key: 0,
|
|
6368
6368
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
@@ -6396,7 +6396,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6396
6396
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select"], ["update:loading", "update:itemHeight"]),
|
|
6397
6397
|
setup(__props, { emit: __emit }) {
|
|
6398
6398
|
useCssVars((_ctx) => ({
|
|
6399
|
-
"
|
|
6399
|
+
"15f476b1": unref(computedItemHiehgt)
|
|
6400
6400
|
}));
|
|
6401
6401
|
const props2 = __props;
|
|
6402
6402
|
const emit2 = __emit;
|
|
@@ -6601,7 +6601,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6601
6601
|
};
|
|
6602
6602
|
}
|
|
6603
6603
|
});
|
|
6604
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
6604
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-a4afe8dc"]]);
|
|
6605
6605
|
const _sfc_main$F = {};
|
|
6606
6606
|
const _hoisted_1$C = { class: "flex space-between" };
|
|
6607
6607
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -47249,9 +47249,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
47249
47249
|
const selectedOption = useModel(__props, "modelValue");
|
|
47250
47250
|
return (_ctx, _cache) => {
|
|
47251
47251
|
return openBlock(), createElementBlock("div", null, [
|
|
47252
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (opt
|
|
47252
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (opt) => {
|
|
47253
47253
|
return openBlock(), createElementBlock("label", {
|
|
47254
|
-
key:
|
|
47254
|
+
key: opt.id,
|
|
47255
47255
|
class: "border round p-1 flex bg-gray-light mb-05 gap-075 active-list-item hover",
|
|
47256
47256
|
for: opt.id
|
|
47257
47257
|
}, [
|
|
@@ -47279,7 +47279,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
47279
47279
|
]),
|
|
47280
47280
|
renderSlot(_ctx.$slots, "radioItem", mergeProps({ ref_for: true }, opt), void 0, true)
|
|
47281
47281
|
]),
|
|
47282
|
-
|
|
47282
|
+
_ctx.deletable ? (openBlock(), createBlock(unref(Btn), {
|
|
47283
47283
|
key: 0,
|
|
47284
47284
|
class: "ms-auto",
|
|
47285
47285
|
flat: "",
|
|
@@ -47293,7 +47293,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
47293
47293
|
};
|
|
47294
47294
|
}
|
|
47295
47295
|
});
|
|
47296
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
47296
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-d6ebc385"]]);
|
|
47297
47297
|
function _isPlaceholder(a2) {
|
|
47298
47298
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
47299
47299
|
}
|
package/dist/style.css
CHANGED
|
@@ -647,19 +647,19 @@ a[data-v-26f1062f] {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
.selected[data-v-
|
|
650
|
+
.selected[data-v-a4afe8dc] {
|
|
651
651
|
background: var(--bgl-primary-tint);
|
|
652
652
|
}
|
|
653
|
-
tbody tr.selected[data-v-
|
|
653
|
+
tbody tr.selected[data-v-a4afe8dc]:hover {
|
|
654
654
|
background: var(--bgl-primary-light);
|
|
655
655
|
}
|
|
656
|
-
.loading-table[data-v-
|
|
656
|
+
.loading-table[data-v-a4afe8dc] {
|
|
657
657
|
position: relative;
|
|
658
658
|
}
|
|
659
|
-
.inset[data-v-
|
|
659
|
+
.inset[data-v-a4afe8dc] {
|
|
660
660
|
inset: 0;
|
|
661
661
|
}
|
|
662
|
-
.loading-table-animation[data-v-
|
|
662
|
+
.loading-table-animation[data-v-a4afe8dc] {
|
|
663
663
|
--size: 60px;
|
|
664
664
|
top: 30vh;
|
|
665
665
|
inset-inline-start: calc(50% - var(--size));
|
|
@@ -667,9 +667,9 @@ tbody tr.selected[data-v-e893b127]:hover {
|
|
|
667
667
|
border-top: 4px solid var(--bgl-primary);
|
|
668
668
|
width: var(--size);
|
|
669
669
|
height: var(--size);
|
|
670
|
-
animation: loading-table-
|
|
670
|
+
animation: loading-table-a4afe8dc 1s linear infinite;
|
|
671
671
|
}
|
|
672
|
-
@keyframes loading-table-
|
|
672
|
+
@keyframes loading-table-a4afe8dc {
|
|
673
673
|
0% {
|
|
674
674
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
675
675
|
}
|
|
@@ -677,52 +677,52 @@ tbody tr.selected[data-v-e893b127]:hover {
|
|
|
677
677
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
.list-arrows[data-v-
|
|
680
|
+
.list-arrows[data-v-a4afe8dc] {
|
|
681
681
|
opacity: 0;
|
|
682
682
|
}
|
|
683
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
683
|
+
.list-arrows .bgl_icon-font[data-v-a4afe8dc] {
|
|
684
684
|
transition: all ease-in-out 0.2s;
|
|
685
685
|
}
|
|
686
|
-
.list-arrows.sorted[data-v-
|
|
686
|
+
.list-arrows.sorted[data-v-a4afe8dc] {
|
|
687
687
|
opacity: 1;
|
|
688
688
|
}
|
|
689
|
-
.col img[data-v-
|
|
689
|
+
.col img[data-v-a4afe8dc] {
|
|
690
690
|
height: 35px;
|
|
691
691
|
margin-top: -14px;
|
|
692
692
|
margin-bottom: -14px;
|
|
693
693
|
border-radius: 5px;
|
|
694
694
|
}
|
|
695
|
-
.list-arrows.sorted .desc[data-v-
|
|
695
|
+
.list-arrows.sorted .desc[data-v-a4afe8dc] {
|
|
696
696
|
transform: rotate(180deg);
|
|
697
697
|
display: inline-block;
|
|
698
698
|
}
|
|
699
|
-
table[data-v-
|
|
699
|
+
table[data-v-a4afe8dc] {
|
|
700
700
|
border-collapse: separate;
|
|
701
701
|
border-spacing: 0 15px;
|
|
702
702
|
border-collapse: collapse;
|
|
703
703
|
width: 100%;
|
|
704
704
|
}
|
|
705
|
-
th[data-v-
|
|
705
|
+
th[data-v-a4afe8dc] {
|
|
706
706
|
font-size: 0.8rem;
|
|
707
707
|
color: var(--bgl-black-tint);
|
|
708
708
|
position: sticky;
|
|
709
709
|
top: 0;
|
|
710
710
|
z-index: 2;
|
|
711
711
|
background: var(--bgl-white);
|
|
712
|
-
height: var(--
|
|
712
|
+
height: var(--15f476b1);
|
|
713
713
|
vertical-align: bottom;
|
|
714
714
|
font-weight: 400;
|
|
715
715
|
text-align: start;
|
|
716
716
|
}
|
|
717
|
-
.embedded-field[data-v-
|
|
717
|
+
.embedded-field[data-v-a4afe8dc] {
|
|
718
718
|
margin-bottom: -0.2rem;
|
|
719
719
|
margin-top: -0.2rem;
|
|
720
720
|
}
|
|
721
|
-
.row[data-v-
|
|
721
|
+
.row[data-v-a4afe8dc] {
|
|
722
722
|
border-bottom: 1px solid var(--border-color);
|
|
723
723
|
cursor: pointer;
|
|
724
724
|
}
|
|
725
|
-
.row.first-row[data-v-
|
|
725
|
+
.row.first-row[data-v-a4afe8dc] {
|
|
726
726
|
font-size: 0.8rem;
|
|
727
727
|
color: var(--bgl-black-tint);
|
|
728
728
|
position: sticky;
|
|
@@ -731,7 +731,7 @@ th[data-v-e893b127] {
|
|
|
731
731
|
background: var(--bgl-white);
|
|
732
732
|
vertical-align: bottom;
|
|
733
733
|
}
|
|
734
|
-
.row.first-row[data-v-
|
|
734
|
+
.row.first-row[data-v-a4afe8dc]::after {
|
|
735
735
|
content: '';
|
|
736
736
|
border-bottom: 1px solid var(--border-color);
|
|
737
737
|
position: absolute;
|
|
@@ -739,30 +739,30 @@ th[data-v-e893b127] {
|
|
|
739
739
|
right: 0;
|
|
740
740
|
bottom: -1px;
|
|
741
741
|
}
|
|
742
|
-
.first-row .col[data-v-
|
|
742
|
+
.first-row .col[data-v-a4afe8dc] {
|
|
743
743
|
cursor: pointer;
|
|
744
744
|
background: var(--bgl-white);
|
|
745
745
|
}
|
|
746
|
-
.col[data-v-
|
|
746
|
+
.col[data-v-a4afe8dc] {
|
|
747
747
|
white-space: nowrap;
|
|
748
748
|
padding: 0.75rem 1rem;
|
|
749
749
|
transition: var(--bgl-transition);
|
|
750
750
|
line-height: 1;
|
|
751
751
|
align-items: center;
|
|
752
752
|
}
|
|
753
|
-
.col[data-v-
|
|
753
|
+
.col[data-v-a4afe8dc]:has(.bagel-input) {
|
|
754
754
|
padding: 0rem 0.25rem;
|
|
755
755
|
}
|
|
756
|
-
.col > div[data-v-
|
|
756
|
+
.col > div[data-v-a4afe8dc] {
|
|
757
757
|
display: flex;
|
|
758
758
|
gap: 0.5rem;
|
|
759
759
|
}
|
|
760
|
-
.max-col-width[data-v-
|
|
760
|
+
.max-col-width[data-v-a4afe8dc] {
|
|
761
761
|
max-width: 30vw;
|
|
762
762
|
overflow: hidden;
|
|
763
763
|
text-overflow: ellipsis;
|
|
764
764
|
}
|
|
765
|
-
.col.check .bgl_icon-font[data-v-
|
|
765
|
+
.col.check .bgl_icon-font[data-v-a4afe8dc] {
|
|
766
766
|
border-radius: 100%;
|
|
767
767
|
background: var(--bgl-blue-20);
|
|
768
768
|
color: var(--bgl-primary);
|
|
@@ -773,35 +773,35 @@ th[data-v-e893b127] {
|
|
|
773
773
|
justify-content: center;
|
|
774
774
|
margin-top: -2px;
|
|
775
775
|
}
|
|
776
|
-
.rows[data-v-
|
|
776
|
+
.rows[data-v-a4afe8dc] {
|
|
777
777
|
font-size: 0.88em;
|
|
778
778
|
}
|
|
779
|
-
.table-list[data-v-
|
|
779
|
+
.table-list[data-v-a4afe8dc] {
|
|
780
780
|
height: 100%;
|
|
781
781
|
position: relative;
|
|
782
782
|
padding-left: 0 !important;
|
|
783
783
|
padding-right: 0 !important;
|
|
784
784
|
overflow: auto;
|
|
785
785
|
}
|
|
786
|
-
.BagelTable .table-list[data-v-
|
|
786
|
+
.BagelTable .table-list[data-v-a4afe8dc] {
|
|
787
787
|
overflow: unset;
|
|
788
788
|
}
|
|
789
|
-
.row-item[data-v-
|
|
790
|
-
height: var(--
|
|
789
|
+
.row-item[data-v-a4afe8dc] {
|
|
790
|
+
height: var(--15f476b1);
|
|
791
791
|
transition: all 200ms ease;
|
|
792
792
|
}
|
|
793
|
-
.row-item[data-v-
|
|
793
|
+
.row-item[data-v-a4afe8dc]:hover {
|
|
794
794
|
background: var(--bgl-gray-light);
|
|
795
795
|
}
|
|
796
|
-
.row-item input[type='checkbox'][data-v-
|
|
796
|
+
.row-item input[type='checkbox'][data-v-a4afe8dc] {
|
|
797
797
|
margin-top: 0.45rem !important;
|
|
798
798
|
accent-color: var(--bgl-accent-color);
|
|
799
799
|
}
|
|
800
|
-
.infinite-wrapper[data-v-
|
|
800
|
+
.infinite-wrapper[data-v-a4afe8dc] {
|
|
801
801
|
overflow-y: auto;
|
|
802
802
|
width: 100%;
|
|
803
803
|
}
|
|
804
|
-
input[type='checkbox'][data-v-
|
|
804
|
+
input[type='checkbox'][data-v-a4afe8dc] {
|
|
805
805
|
margin-top: 0.3rem !important;
|
|
806
806
|
accent-color: var(--bgl-accent-color);
|
|
807
807
|
transform: scale(1.2);
|
|
@@ -813,7 +813,7 @@ input[type='checkbox'][data-v-e893b127] {
|
|
|
813
813
|
height: 0.85rem;
|
|
814
814
|
width: 0.85rem;
|
|
815
815
|
}
|
|
816
|
-
input[type='checkbox'][data-v-
|
|
816
|
+
input[type='checkbox'][data-v-a4afe8dc]::before {
|
|
817
817
|
content: '';
|
|
818
818
|
height: 0.85rem;
|
|
819
819
|
width: 0.85rem;
|
|
@@ -826,18 +826,18 @@ input[type='checkbox'][data-v-e893b127]::before {
|
|
|
826
826
|
transform: scale(1);
|
|
827
827
|
position: absolute;
|
|
828
828
|
}
|
|
829
|
-
input[type='checkbox'][data-v-
|
|
829
|
+
input[type='checkbox'][data-v-a4afe8dc]:hover::before {
|
|
830
830
|
opacity: 0.2;
|
|
831
831
|
transform: scale(2);
|
|
832
832
|
}
|
|
833
|
-
[lang='he'] [dir='ltr'][data-v-
|
|
833
|
+
[lang='he'] [dir='ltr'][data-v-a4afe8dc] {
|
|
834
834
|
text-align: right;
|
|
835
835
|
}
|
|
836
|
-
th input[type='checkbox'][data-v-
|
|
836
|
+
th input[type='checkbox'][data-v-a4afe8dc] {
|
|
837
837
|
transform: translateY(0.2rem) scale(1.2);
|
|
838
838
|
accent-color: var(--bgl-accent-color);
|
|
839
839
|
}
|
|
840
|
-
th[data-v-
|
|
840
|
+
th[data-v-a4afe8dc]::after {
|
|
841
841
|
content: '';
|
|
842
842
|
border-bottom: 1px solid var(--border-color);
|
|
843
843
|
position: absolute;
|
|
@@ -845,24 +845,24 @@ th[data-v-e893b127]::after {
|
|
|
845
845
|
right: 0;
|
|
846
846
|
bottom: -1px;
|
|
847
847
|
}
|
|
848
|
-
tr[data-v-
|
|
848
|
+
tr[data-v-a4afe8dc] {
|
|
849
849
|
border-bottom: 1px solid var(--border-color);
|
|
850
850
|
cursor: pointer;
|
|
851
851
|
align-items: center;
|
|
852
852
|
}
|
|
853
|
-
td[data-v-
|
|
854
|
-
th[data-v-
|
|
853
|
+
td[data-v-a4afe8dc],
|
|
854
|
+
th[data-v-a4afe8dc] {
|
|
855
855
|
white-space: nowrap;
|
|
856
856
|
padding: 0.75rem 0.65rem;
|
|
857
857
|
transition: var(--bgl-transition);
|
|
858
858
|
line-height: 1;
|
|
859
859
|
}
|
|
860
|
-
tbody tr[data-v-
|
|
860
|
+
tbody tr[data-v-a4afe8dc] {
|
|
861
861
|
font-size: 0.88em;
|
|
862
|
-
height: var(--
|
|
862
|
+
height: var(--15f476b1);
|
|
863
863
|
transition: all 200ms ease;
|
|
864
864
|
}
|
|
865
|
-
tbody tr[data-v-
|
|
865
|
+
tbody tr[data-v-a4afe8dc]:hover {
|
|
866
866
|
background: var(--bgl-gray-light);
|
|
867
867
|
}
|
|
868
868
|
|
|
@@ -2177,12 +2177,12 @@ input[type="number"][data-v-4c741194] {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
2180
|
-
.radio-input-list[data-v-
|
|
2180
|
+
.radio-input-list[data-v-d6ebc385]{
|
|
2181
2181
|
width: auto;
|
|
2182
2182
|
transform: scale(1.4);
|
|
2183
2183
|
margin-inline-end: 0.6rem;
|
|
2184
2184
|
}
|
|
2185
|
-
.active-list-item[data-v-
|
|
2185
|
+
.active-list-item[data-v-d6ebc385]:has(:checked){
|
|
2186
2186
|
background: var(--bgl-primary-light) !important;
|
|
2187
2187
|
border-color: var(--bgl-primary) !important;
|
|
2188
2188
|
accent-color: var(--bgl-accent-color);
|
|
@@ -8423,6 +8423,10 @@ select {
|
|
|
8423
8423
|
.table-list-wrap {
|
|
8424
8424
|
overflow: auto;
|
|
8425
8425
|
}
|
|
8426
|
+
[dir="rtl"] .data-row .bgl_icon-font,
|
|
8427
|
+
[dir="rtl"] .embedded-field .bgl_icon-font {
|
|
8428
|
+
transform: rotateY(180deg) !important;
|
|
8429
|
+
}
|
|
8426
8430
|
.copy-url {
|
|
8427
8431
|
background-color: var(--bgl-gray-light);
|
|
8428
8432
|
border-radius: var(--btn-border-radius);
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { computed, useSlots, watch } from 'vue'
|
|
11
11
|
import { useVirtualList } from '@vueuse/core'
|
|
12
12
|
|
|
13
|
+
export type SortDirectionsT = 'ASC' | 'DESC'
|
|
13
14
|
const props = defineProps<{
|
|
14
15
|
selectedItems?: string[]
|
|
15
16
|
data: T[]
|
|
@@ -17,7 +18,15 @@ const props = defineProps<{
|
|
|
17
18
|
showFields?: string[]
|
|
18
19
|
}>()
|
|
19
20
|
|
|
20
|
-
const emit = defineEmits
|
|
21
|
+
const emit = defineEmits<{
|
|
22
|
+
'update:selectedItems': [string[]]
|
|
23
|
+
// 'orderBy': [`${string} ${SortDirectionsT}`]
|
|
24
|
+
'orderBy': [string]
|
|
25
|
+
'select': [T]
|
|
26
|
+
}>(
|
|
27
|
+
// ['update:selectedItems', 'orderBy', 'select']
|
|
28
|
+
)
|
|
29
|
+
|
|
21
30
|
const slots = useSlots()
|
|
22
31
|
const loading = defineModel('loading', { default: false })
|
|
23
32
|
|
|
@@ -25,7 +34,7 @@ const itemHeight = defineModel('itemHeight', { default: 50 })
|
|
|
25
34
|
const computedItemHiehgt = $computed(() => `${itemHeight.value}px`)
|
|
26
35
|
|
|
27
36
|
let sortField = $ref('')
|
|
28
|
-
let sortDirection = $ref('ASC')
|
|
37
|
+
let sortDirection = $ref<SortDirectionsT>('ASC')
|
|
29
38
|
let selectedItems = $ref<string[]>(props.selectedItems || [])
|
|
30
39
|
|
|
31
40
|
const isSelectable = $computed(() => Array.isArray(props.selectedItems))
|
|
@@ -145,7 +154,7 @@ function toggleSelectItem(item: Record<string, any>) {
|
|
|
145
154
|
if (key.startsWith('_transformed_')) delete obj[key]
|
|
146
155
|
})
|
|
147
156
|
|
|
148
|
-
emit('select', obj)
|
|
157
|
+
emit('select', obj as T)
|
|
149
158
|
return
|
|
150
159
|
}
|
|
151
160
|
const index = computedSelectedItems.indexOf(item.id)
|
|
@@ -250,6 +259,7 @@ function toggleSelectAll(event: Event) {
|
|
|
250
259
|
</div>
|
|
251
260
|
</template>
|
|
252
261
|
|
|
262
|
+
|
|
253
263
|
<style scoped>
|
|
254
264
|
.selected {
|
|
255
265
|
background: var(--bgl-primary-tint);
|
|
@@ -337,6 +347,7 @@ th {
|
|
|
337
347
|
margin-top: -0.2rem;
|
|
338
348
|
}
|
|
339
349
|
|
|
350
|
+
|
|
340
351
|
.row {
|
|
341
352
|
border-bottom: 1px solid var(--border-color);
|
|
342
353
|
cursor: pointer;
|
|
@@ -25,8 +25,8 @@ const selectedOption = defineModel('modelValue')
|
|
|
25
25
|
<template>
|
|
26
26
|
<div>
|
|
27
27
|
<label
|
|
28
|
-
v-for="
|
|
29
|
-
:key="
|
|
28
|
+
v-for="opt in options"
|
|
29
|
+
:key="opt.id"
|
|
30
30
|
class="border round p-1 flex bg-gray-light mb-05 gap-075 active-list-item hover"
|
|
31
31
|
:for="opt.id"
|
|
32
32
|
>
|
|
@@ -53,7 +53,7 @@ const selectedOption = defineModel('modelValue')
|
|
|
53
53
|
<slot name="radioItem" v-bind="opt" />
|
|
54
54
|
</div>
|
|
55
55
|
<Btn
|
|
56
|
-
v-if="
|
|
56
|
+
v-if="deletable"
|
|
57
57
|
class="ms-auto"
|
|
58
58
|
flat thin icon="delete"
|
|
59
59
|
@click="$emit('delete', opt)"
|
package/src/styles/theme.css
CHANGED
|
@@ -209,6 +209,10 @@
|
|
|
209
209
|
.table-list-wrap {
|
|
210
210
|
overflow: auto;
|
|
211
211
|
}
|
|
212
|
+
[dir="rtl"] .data-row .bgl_icon-font,
|
|
213
|
+
[dir="rtl"] .embedded-field .bgl_icon-font {
|
|
214
|
+
transform: rotateY(180deg) !important;
|
|
215
|
+
}
|
|
212
216
|
|
|
213
217
|
.copy-url {
|
|
214
218
|
background-color: var(--bgl-gray-light);
|