@mixd-id/web-scaffold 0.1.240411063 → 0.1.240411065

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.240411063",
4
+ "version": "0.1.240411065",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -389,12 +389,18 @@ export default{
389
389
  this.preset.columns = JSON.parse(JSON.stringify(this.cConfig.columns))
390
390
  }
391
391
 
392
+ let search = this.preset.search
393
+ if(this.preset.search && this.preset.params.searchPrefix){
394
+ search = this.preset.params.searchPrefix + this.preset.search
395
+ }
396
+
392
397
  this.readyState = 2
393
398
  return this.useSocket().send(this.computedSrc, {
394
399
  ...this.preset,
395
400
  id: undefined,
396
401
  uid: undefined,
397
402
  itemsPerPage: this.data.itemsPerPage,
403
+ search
398
404
  })
399
405
  .then(data => {
400
406
  if(data?.items){
@@ -452,8 +458,10 @@ export default{
452
458
  Object.assign(this.cConfig, defaultConfig)
453
459
  }
454
460
 
455
- if(this.$route.query?.search)
461
+ if(this.$route.query?.search){
456
462
  this.preset.search = this.$route.query.search
463
+ delete this.preset.params.searchPrefix
464
+ }
457
465
  }
458
466
  }
459
467
  else{
@@ -1038,8 +1046,10 @@ export default{
1038
1046
  this.configSharedPresets.find(_ => _.uid === this.configParams.presetIdx)
1039
1047
 
1040
1048
  if(preset){
1041
- if(this.$route.query?.search)
1049
+ if(this.$route.query?.search){
1042
1050
  preset.search = this.$route.query.search
1051
+ delete preset.params.searchPrefix
1052
+ }
1043
1053
  }
1044
1054
 
1045
1055
  return preset
@@ -181,10 +181,14 @@ const plugin = Plugin(function({ addBase, addUtilities, config, theme }) {
181
181
 
182
182
  '.menu-item': {
183
183
  },
184
-
185
184
  '.menu-item:hover': {
186
- background: 'rgb(var(--primary-50))',
187
- fill: '#fff'
185
+ background: 'rgb(var(--primary-500))',
186
+ fill: '#fff',
187
+ color: '#fff'
188
+ },
189
+ '.menu-item:hover *': {
190
+ fill: '#fff',
191
+ color: '#fff'
188
192
  }
189
193
 
190
194
  })