@mixd-id/web-scaffold 0.1.240411065 → 0.1.240411066

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.240411065",
4
+ "version": "0.1.240411066",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -422,6 +422,11 @@ export default{
422
422
  !(this.preset.pivot ?? {}).enabled &&
423
423
  this.dataItems) {
424
424
 
425
+ let search = this.preset.search
426
+ if(this.preset.search && this.preset.params.searchPrefix){
427
+ search = this.preset.params.searchPrefix + this.preset.search
428
+ }
429
+
425
430
  const afterItem = this.dataItems[this.dataItems.length - 1]
426
431
 
427
432
  this.readyState = 4
@@ -430,6 +435,7 @@ export default{
430
435
  id: undefined,
431
436
  uid: undefined,
432
437
  itemsPerPage: this.data.itemsPerPage,
438
+ search,
433
439
  afterItem,
434
440
  })
435
441
  .then(data => {
@@ -547,6 +553,11 @@ export default{
547
553
  loadExt(){
548
554
  if(!this.extBar.open) return
549
555
 
556
+ let search = this.preset.search
557
+ if(this.preset.search && this.preset.params.searchPrefix){
558
+ search = this.preset.params.searchPrefix + this.preset.search
559
+ }
560
+
550
561
  this.readyState = 3
551
562
  return this.useSocket().send(this.computedSrc, {
552
563
  ...this.preset,
@@ -556,7 +567,8 @@ export default{
556
567
  ...(this.preset.filters ?? []),
557
568
  ...(this.extBar.filters ?? [])
558
569
  ],
559
- pivot: null
570
+ pivot: null,
571
+ search
560
572
  })
561
573
  .then((res) => {
562
574
  this.data.extItems = res.items
@@ -567,6 +579,11 @@ export default{
567
579
  loadExtNext(){
568
580
  if(!this.preset.filters) return
569
581
 
582
+ let search = this.preset.search
583
+ if(this.preset.search && this.preset.params.searchPrefix){
584
+ search = this.preset.params.searchPrefix + this.preset.search
585
+ }
586
+
570
587
  return this.useSocket().send(this.computedSrc, {
571
588
  ...this.preset,
572
589
  id: undefined,
@@ -577,6 +594,7 @@ export default{
577
594
  ],
578
595
  pivot: null,
579
596
  afterItem: this.data.extItems[this.data.extItems.length - 1],
597
+ search
580
598
  })
581
599
  .then(data => {
582
600
  this.data.extItems.push(...data.items)
@@ -658,12 +676,18 @@ export default{
658
676
  loadQueued(items){
659
677
  const key = items[0] && items[0].uid ? 'uid' : 'id'
660
678
 
679
+ let search = this.preset.search
680
+ if(this.preset.search && this.preset.params.searchPrefix){
681
+ search = this.preset.params.searchPrefix + this.preset.search
682
+ }
683
+
661
684
  this.useSocket().send(this.computedSrc, {
662
685
  ...this.preset,
663
686
  id: undefined,
664
687
  uid: undefined,
665
688
  [key]: items.map(item => item[key]),
666
- _signal: true
689
+ _signal: true,
690
+ search
667
691
  })
668
692
  .then(({ items:nextItems }) => {
669
693