@bagelink/vue 0.0.968 → 0.0.970
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.map +1 -1
- package/dist/index.cjs +6 -9
- package/dist/index.mjs +6 -9
- package/dist/style.css +46 -46
- package/package.json +2 -2
- package/src/components/TableSchema.vue +6 -9
|
@@ -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":"AAsjBA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;AAItB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAGtC,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;WAkbxD,mBAAmB,CAAC;;;;;;;;;;wBAvNZ,MAAM,EAAE;;cAvNnB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;wBACL,OAAO;qBACV,OAAO;4BACA,MAAM,IAAI;MAyawD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;;UArDuE,GAAG;UAuD9E;0BAxNS,CAAC,OAAO,SAAiC,CAAC;6BACvC,CAAC,UAAU,QAAoC,CAAC;gCAC7C,CAAC,aAAa,EAAC,MAAM,EAAE,CAAC;KAsNL;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA5bzE,wBA4b4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -54868,7 +54868,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54868
54868
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
54869
54869
|
setup(__props, { emit: __emit }) {
|
|
54870
54870
|
vue.useCssVars((_ctx) => ({
|
|
54871
|
-
"
|
|
54871
|
+
"c3b285e8": vue.unref(computedItemHeight)
|
|
54872
54872
|
}));
|
|
54873
54873
|
const emit2 = __emit;
|
|
54874
54874
|
const slots = vue.useSlots();
|
|
@@ -54990,21 +54990,18 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54990
54990
|
async function registerLastItemObserver() {
|
|
54991
54991
|
await until(() => lastItem.value).toBeTruthy();
|
|
54992
54992
|
useIntersectionObserver(lastItem.value, ([entry]) => {
|
|
54993
|
-
var _a2;
|
|
54994
54993
|
if (entry.isIntersecting && computedData.value.length) {
|
|
54995
|
-
|
|
54994
|
+
emit2("lastItemVisible");
|
|
54996
54995
|
}
|
|
54997
|
-
}
|
|
54996
|
+
});
|
|
54998
54997
|
}
|
|
54999
|
-
vue.onMounted(() => {
|
|
55000
|
-
void registerLastItemObserver();
|
|
55001
|
-
});
|
|
55002
54998
|
vue.watch(
|
|
55003
54999
|
() => loading.value,
|
|
55004
55000
|
(newLoadingVal, oldLoadingVal) => {
|
|
55005
55001
|
if (newLoadingVal === oldLoadingVal) return;
|
|
55006
55002
|
if (!newLoadingVal) registerLastItemObserver();
|
|
55007
|
-
}
|
|
55003
|
+
},
|
|
55004
|
+
{ immediate: true }
|
|
55008
55005
|
);
|
|
55009
55006
|
return (_ctx, _cache) => {
|
|
55010
55007
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
|
|
@@ -55099,7 +55096,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
55099
55096
|
};
|
|
55100
55097
|
}
|
|
55101
55098
|
});
|
|
55102
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55099
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-fae54756"]]);
|
|
55103
55100
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
55104
55101
|
__name: "Title",
|
|
55105
55102
|
props: {
|
package/dist/index.mjs
CHANGED
|
@@ -54866,7 +54866,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54866
54866
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
54867
54867
|
setup(__props, { emit: __emit }) {
|
|
54868
54868
|
useCssVars((_ctx) => ({
|
|
54869
|
-
"
|
|
54869
|
+
"c3b285e8": unref(computedItemHeight)
|
|
54870
54870
|
}));
|
|
54871
54871
|
const emit2 = __emit;
|
|
54872
54872
|
const slots = useSlots();
|
|
@@ -54988,21 +54988,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54988
54988
|
async function registerLastItemObserver() {
|
|
54989
54989
|
await until(() => lastItem.value).toBeTruthy();
|
|
54990
54990
|
useIntersectionObserver(lastItem.value, ([entry]) => {
|
|
54991
|
-
var _a2;
|
|
54992
54991
|
if (entry.isIntersecting && computedData.value.length) {
|
|
54993
|
-
|
|
54992
|
+
emit2("lastItemVisible");
|
|
54994
54993
|
}
|
|
54995
|
-
}
|
|
54994
|
+
});
|
|
54996
54995
|
}
|
|
54997
|
-
onMounted(() => {
|
|
54998
|
-
void registerLastItemObserver();
|
|
54999
|
-
});
|
|
55000
54996
|
watch(
|
|
55001
54997
|
() => loading.value,
|
|
55002
54998
|
(newLoadingVal, oldLoadingVal) => {
|
|
55003
54999
|
if (newLoadingVal === oldLoadingVal) return;
|
|
55004
55000
|
if (!newLoadingVal) registerLastItemObserver();
|
|
55005
|
-
}
|
|
55001
|
+
},
|
|
55002
|
+
{ immediate: true }
|
|
55006
55003
|
);
|
|
55007
55004
|
return (_ctx, _cache) => {
|
|
55008
55005
|
return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
|
|
@@ -55097,7 +55094,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55097
55094
|
};
|
|
55098
55095
|
}
|
|
55099
55096
|
});
|
|
55100
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55097
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-fae54756"]]);
|
|
55101
55098
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
55102
55099
|
__name: "Title",
|
|
55103
55100
|
props: {
|
package/dist/style.css
CHANGED
|
@@ -3234,22 +3234,22 @@ body:has(.bg-dark.is-active) {
|
|
|
3234
3234
|
background: transparent;
|
|
3235
3235
|
}
|
|
3236
3236
|
|
|
3237
|
-
.table-list-wrap[data-v-
|
|
3237
|
+
.table-list-wrap[data-v-fae54756] {
|
|
3238
3238
|
min-height: 150px;
|
|
3239
3239
|
}
|
|
3240
|
-
.selected[data-v-
|
|
3240
|
+
.selected[data-v-fae54756] {
|
|
3241
3241
|
background: var(--bgl-primary-tint);
|
|
3242
3242
|
}
|
|
3243
|
-
tbody tr.selected[data-v-
|
|
3243
|
+
tbody tr.selected[data-v-fae54756]:hover {
|
|
3244
3244
|
background: var(--bgl-primary-light);
|
|
3245
3245
|
}
|
|
3246
|
-
.loading-table[data-v-
|
|
3246
|
+
.loading-table[data-v-fae54756] {
|
|
3247
3247
|
position: relative;
|
|
3248
3248
|
}
|
|
3249
|
-
.inset[data-v-
|
|
3249
|
+
.inset[data-v-fae54756] {
|
|
3250
3250
|
inset: 0;
|
|
3251
3251
|
}
|
|
3252
|
-
.loading-table-animation[data-v-
|
|
3252
|
+
.loading-table-animation[data-v-fae54756] {
|
|
3253
3253
|
--size: 60px;
|
|
3254
3254
|
top: 30vh;
|
|
3255
3255
|
inset-inline-start: calc(50% - var(--size));
|
|
@@ -3257,9 +3257,9 @@ tbody tr.selected[data-v-d9f879cc]:hover {
|
|
|
3257
3257
|
border-top: 4px solid var(--bgl-primary);
|
|
3258
3258
|
width: var(--size);
|
|
3259
3259
|
height: var(--size);
|
|
3260
|
-
animation: loading-table-
|
|
3260
|
+
animation: loading-table-fae54756 1s linear infinite;
|
|
3261
3261
|
}
|
|
3262
|
-
@keyframes loading-table-
|
|
3262
|
+
@keyframes loading-table-fae54756 {
|
|
3263
3263
|
0% {
|
|
3264
3264
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
3265
3265
|
}
|
|
@@ -3267,51 +3267,51 @@ tbody tr.selected[data-v-d9f879cc]:hover {
|
|
|
3267
3267
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
3268
3268
|
}
|
|
3269
3269
|
}
|
|
3270
|
-
.list-arrows[data-v-
|
|
3270
|
+
.list-arrows[data-v-fae54756] {
|
|
3271
3271
|
opacity: 0;
|
|
3272
3272
|
}
|
|
3273
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
3273
|
+
.list-arrows .bgl_icon-font[data-v-fae54756] {
|
|
3274
3274
|
transition: all ease-in-out 0.2s;
|
|
3275
3275
|
}
|
|
3276
|
-
.list-arrows.sorted[data-v-
|
|
3276
|
+
.list-arrows.sorted[data-v-fae54756] {
|
|
3277
3277
|
opacity: 1;
|
|
3278
3278
|
}
|
|
3279
|
-
.col img[data-v-
|
|
3279
|
+
.col img[data-v-fae54756] {
|
|
3280
3280
|
height: 35px;
|
|
3281
3281
|
margin-top: -14px;
|
|
3282
3282
|
margin-bottom: -14px;
|
|
3283
3283
|
border-radius: 5px;
|
|
3284
3284
|
}
|
|
3285
|
-
.list-arrows.sorted .desc[data-v-
|
|
3285
|
+
.list-arrows.sorted .desc[data-v-fae54756] {
|
|
3286
3286
|
transform: rotate(180deg);
|
|
3287
3287
|
display: inline-block;
|
|
3288
3288
|
}
|
|
3289
|
-
table[data-v-
|
|
3289
|
+
table[data-v-fae54756] {
|
|
3290
3290
|
border-spacing: 0 15px;
|
|
3291
3291
|
border-collapse: collapse;
|
|
3292
3292
|
width: 100%;
|
|
3293
3293
|
}
|
|
3294
|
-
th[data-v-
|
|
3294
|
+
th[data-v-fae54756] {
|
|
3295
3295
|
font-size: 0.8rem;
|
|
3296
3296
|
color: var(--bgl-black-tint);
|
|
3297
3297
|
position: sticky;
|
|
3298
3298
|
top: 0;
|
|
3299
3299
|
z-index: 2;
|
|
3300
3300
|
background: var(--bgl-box-bg);
|
|
3301
|
-
height: var(--
|
|
3301
|
+
height: var(--c3b285e8);
|
|
3302
3302
|
vertical-align: bottom;
|
|
3303
3303
|
font-weight: 400;
|
|
3304
3304
|
text-align: start;
|
|
3305
3305
|
}
|
|
3306
|
-
.embedded-field[data-v-
|
|
3306
|
+
.embedded-field[data-v-fae54756] {
|
|
3307
3307
|
margin-bottom: -0.2rem;
|
|
3308
3308
|
margin-top: -0.2rem;
|
|
3309
3309
|
}
|
|
3310
|
-
.row[data-v-
|
|
3310
|
+
.row[data-v-fae54756] {
|
|
3311
3311
|
border-bottom: 1px solid var(--border-color);
|
|
3312
3312
|
cursor: pointer;
|
|
3313
3313
|
}
|
|
3314
|
-
.row.first-row[data-v-
|
|
3314
|
+
.row.first-row[data-v-fae54756] {
|
|
3315
3315
|
font-size: 0.8rem;
|
|
3316
3316
|
color: var(--bgl-black-tint);
|
|
3317
3317
|
position: sticky;
|
|
@@ -3320,7 +3320,7 @@ th[data-v-d9f879cc] {
|
|
|
3320
3320
|
background: var(--bgl-box-bg);
|
|
3321
3321
|
vertical-align: bottom;
|
|
3322
3322
|
}
|
|
3323
|
-
.row.first-row[data-v-
|
|
3323
|
+
.row.first-row[data-v-fae54756]::after {
|
|
3324
3324
|
content: '';
|
|
3325
3325
|
border-bottom: 1px solid var(--border-color);
|
|
3326
3326
|
position: absolute;
|
|
@@ -3328,30 +3328,30 @@ th[data-v-d9f879cc] {
|
|
|
3328
3328
|
right: 0;
|
|
3329
3329
|
bottom: -1px;
|
|
3330
3330
|
}
|
|
3331
|
-
.first-row .col[data-v-
|
|
3331
|
+
.first-row .col[data-v-fae54756] {
|
|
3332
3332
|
cursor: pointer;
|
|
3333
3333
|
background: var(--bgl-box-bg);
|
|
3334
3334
|
}
|
|
3335
|
-
.col[data-v-
|
|
3335
|
+
.col[data-v-fae54756] {
|
|
3336
3336
|
white-space: nowrap;
|
|
3337
3337
|
padding: 0.75rem 1rem;
|
|
3338
3338
|
transition: var(--bgl-transition);
|
|
3339
3339
|
line-height: 1;
|
|
3340
3340
|
align-items: center;
|
|
3341
3341
|
}
|
|
3342
|
-
.col[data-v-
|
|
3342
|
+
.col[data-v-fae54756]:has(.bagel-input) {
|
|
3343
3343
|
padding: 0rem 0.25rem;
|
|
3344
3344
|
}
|
|
3345
|
-
.col > div[data-v-
|
|
3345
|
+
.col > div[data-v-fae54756] {
|
|
3346
3346
|
display: flex;
|
|
3347
3347
|
gap: 0.5rem;
|
|
3348
3348
|
}
|
|
3349
|
-
.max-col-width[data-v-
|
|
3349
|
+
.max-col-width[data-v-fae54756] {
|
|
3350
3350
|
max-width: 30vw;
|
|
3351
3351
|
overflow: hidden;
|
|
3352
3352
|
text-overflow: ellipsis;
|
|
3353
3353
|
}
|
|
3354
|
-
.col.check .bgl_icon-font[data-v-
|
|
3354
|
+
.col.check .bgl_icon-font[data-v-fae54756] {
|
|
3355
3355
|
border-radius: 100%;
|
|
3356
3356
|
background: var(--bgl-blue-20);
|
|
3357
3357
|
color: var(--bgl-primary);
|
|
@@ -3362,35 +3362,35 @@ th[data-v-d9f879cc] {
|
|
|
3362
3362
|
justify-content: center;
|
|
3363
3363
|
margin-top: -2px;
|
|
3364
3364
|
}
|
|
3365
|
-
.rows[data-v-
|
|
3365
|
+
.rows[data-v-fae54756] {
|
|
3366
3366
|
font-size: 0.88em;
|
|
3367
3367
|
}
|
|
3368
|
-
.table-list[data-v-
|
|
3368
|
+
.table-list[data-v-fae54756] {
|
|
3369
3369
|
height: 100%;
|
|
3370
3370
|
position: relative;
|
|
3371
3371
|
padding-left: 0 !important;
|
|
3372
3372
|
padding-right: 0 !important;
|
|
3373
3373
|
overflow: auto;
|
|
3374
3374
|
}
|
|
3375
|
-
.BagelTable .table-list[data-v-
|
|
3375
|
+
.BagelTable .table-list[data-v-fae54756] {
|
|
3376
3376
|
overflow: unset;
|
|
3377
3377
|
}
|
|
3378
|
-
.row-item[data-v-
|
|
3379
|
-
height: var(--
|
|
3378
|
+
.row-item[data-v-fae54756] {
|
|
3379
|
+
height: var(--c3b285e8);
|
|
3380
3380
|
transition: all 200ms ease;
|
|
3381
3381
|
}
|
|
3382
|
-
.row-item[data-v-
|
|
3382
|
+
.row-item[data-v-fae54756]:hover {
|
|
3383
3383
|
background: var(--bgl-gray-light);
|
|
3384
3384
|
}
|
|
3385
|
-
.row-item input[type='checkbox'][data-v-
|
|
3385
|
+
.row-item input[type='checkbox'][data-v-fae54756] {
|
|
3386
3386
|
margin-top: 0.45rem !important;
|
|
3387
3387
|
accent-color: var(--bgl-accent-color);
|
|
3388
3388
|
}
|
|
3389
|
-
.infinite-wrapper[data-v-
|
|
3389
|
+
.infinite-wrapper[data-v-fae54756] {
|
|
3390
3390
|
overflow-y: auto;
|
|
3391
3391
|
width: 100%;
|
|
3392
3392
|
}
|
|
3393
|
-
input[type='checkbox'][data-v-
|
|
3393
|
+
input[type='checkbox'][data-v-fae54756] {
|
|
3394
3394
|
margin-top: 0.3rem !important;
|
|
3395
3395
|
accent-color: var(--bgl-accent-color);
|
|
3396
3396
|
transform: scale(1.2);
|
|
@@ -3402,7 +3402,7 @@ input[type='checkbox'][data-v-d9f879cc] {
|
|
|
3402
3402
|
height: 0.85rem;
|
|
3403
3403
|
width: 0.85rem;
|
|
3404
3404
|
}
|
|
3405
|
-
input[type='checkbox'][data-v-
|
|
3405
|
+
input[type='checkbox'][data-v-fae54756]::before {
|
|
3406
3406
|
content: '';
|
|
3407
3407
|
height: 0.85rem;
|
|
3408
3408
|
width: 0.85rem;
|
|
@@ -3415,18 +3415,18 @@ input[type='checkbox'][data-v-d9f879cc]::before {
|
|
|
3415
3415
|
transform: scale(1);
|
|
3416
3416
|
position: absolute;
|
|
3417
3417
|
}
|
|
3418
|
-
input[type='checkbox'][data-v-
|
|
3418
|
+
input[type='checkbox'][data-v-fae54756]:hover::before {
|
|
3419
3419
|
opacity: 0.2;
|
|
3420
3420
|
transform: scale(2);
|
|
3421
3421
|
}
|
|
3422
|
-
[lang='he'] [dir='ltr'][data-v-
|
|
3422
|
+
[lang='he'] [dir='ltr'][data-v-fae54756] {
|
|
3423
3423
|
text-align: right;
|
|
3424
3424
|
}
|
|
3425
|
-
th input[type='checkbox'][data-v-
|
|
3425
|
+
th input[type='checkbox'][data-v-fae54756] {
|
|
3426
3426
|
transform: translateY(0.2rem) scale(1.2);
|
|
3427
3427
|
accent-color: var(--bgl-accent-color);
|
|
3428
3428
|
}
|
|
3429
|
-
th[data-v-
|
|
3429
|
+
th[data-v-fae54756]::after {
|
|
3430
3430
|
content: '';
|
|
3431
3431
|
border-bottom: 1px solid var(--border-color);
|
|
3432
3432
|
position: absolute;
|
|
@@ -3434,24 +3434,24 @@ th[data-v-d9f879cc]::after {
|
|
|
3434
3434
|
right: 0;
|
|
3435
3435
|
bottom: -1px;
|
|
3436
3436
|
}
|
|
3437
|
-
tr[data-v-
|
|
3437
|
+
tr[data-v-fae54756] {
|
|
3438
3438
|
border-bottom: 1px solid var(--border-color);
|
|
3439
3439
|
cursor: pointer;
|
|
3440
3440
|
align-items: center;
|
|
3441
3441
|
}
|
|
3442
|
-
td[data-v-
|
|
3443
|
-
th[data-v-
|
|
3442
|
+
td[data-v-fae54756],
|
|
3443
|
+
th[data-v-fae54756] {
|
|
3444
3444
|
white-space: nowrap;
|
|
3445
3445
|
padding: 0.75rem 0.65rem;
|
|
3446
3446
|
transition: var(--bgl-transition);
|
|
3447
3447
|
line-height: 1;
|
|
3448
3448
|
}
|
|
3449
|
-
tbody tr[data-v-
|
|
3449
|
+
tbody tr[data-v-fae54756] {
|
|
3450
3450
|
font-size: 0.88em;
|
|
3451
|
-
height: var(--
|
|
3451
|
+
height: var(--c3b285e8);
|
|
3452
3452
|
transition: all 200ms ease;
|
|
3453
3453
|
}
|
|
3454
|
-
tbody tr[data-v-
|
|
3454
|
+
tbody tr[data-v-fae54756]:hover {
|
|
3455
3455
|
background: var(--bgl-gray-light);
|
|
3456
3456
|
}
|
|
3457
3457
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.970",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/leaflet": "^1.9.15",
|
|
56
56
|
"@types/signature_pad": "^2.3.6",
|
|
57
|
-
"@vue-macros/reactivity-transform": "^1.1.
|
|
57
|
+
"@vue-macros/reactivity-transform": "^1.1.4",
|
|
58
58
|
"vue": "^3.5.13"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useBglSchema,
|
|
9
9
|
} from '@bagelink/vue'
|
|
10
10
|
import { useVirtualList, useIntersectionObserver, until } from '@vueuse/core'
|
|
11
|
-
import { computed, useSlots, watch
|
|
11
|
+
import { computed, useSlots, watch } from 'vue'
|
|
12
12
|
|
|
13
13
|
export type SortDirectionsT = 'ASC' | 'DESC'
|
|
14
14
|
export type EmitOrderT = `${string} ${SortDirectionsT}`
|
|
@@ -196,21 +196,18 @@ async function registerLastItemObserver() {
|
|
|
196
196
|
|
|
197
197
|
useIntersectionObserver(lastItem, ([entry]) => {
|
|
198
198
|
if (entry.isIntersecting && computedData.value.length) {
|
|
199
|
-
|
|
200
|
-
// emit('lastItemVisible')
|
|
199
|
+
emit('lastItemVisible')
|
|
201
200
|
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
onMounted(() => {
|
|
205
|
-
void registerLastItemObserver()
|
|
206
|
-
})
|
|
201
|
+
})
|
|
202
|
+
}
|
|
207
203
|
|
|
208
204
|
watch(
|
|
209
205
|
() => loading.value,
|
|
210
206
|
(newLoadingVal, oldLoadingVal) => {
|
|
211
207
|
if (newLoadingVal === oldLoadingVal) return
|
|
212
208
|
if (!newLoadingVal) registerLastItemObserver()
|
|
213
|
-
}
|
|
209
|
+
},
|
|
210
|
+
{ immediate: true }
|
|
214
211
|
)
|
|
215
212
|
</script>
|
|
216
213
|
|