@mixd-id/web-scaffold 0.1.240411060 → 0.1.240411061

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.240411060",
4
+ "version": "0.1.240411061",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <div class="flex flex-col">
3
-
4
3
  <div v-if="type === 'date'" class="flex-1 flex flex-row gap-2">
5
4
  <div class="flex-1 flex flex-row gap-2">
6
5
  <Dropdown v-model="value.operator"
@@ -127,6 +126,8 @@ export default{
127
126
  default: {}
128
127
  },
129
128
 
129
+ enabled: Boolean,
130
+
130
131
  type: String,
131
132
 
132
133
  typeParams: Array,
@@ -169,6 +170,8 @@ export default{
169
170
  methods: {
170
171
 
171
172
  apply(){
173
+ if(this.enabled === false) return
174
+
172
175
  switch(this.type){
173
176
 
174
177
  case 'bool':
@@ -241,6 +241,7 @@
241
241
  <div class="flex flex-row" v-for="(filterVal, filterIdx) in filter.value">
242
242
  <PresetSelectorFilterItem
243
243
  class="flex-1"
244
+ :enabled="filter.enabled"
244
245
  :column="column(filter.key)"
245
246
  :type="typeOf(column(filter.key).type)"
246
247
  :typeParams="typeParamsOf(column(filter.key))"
@@ -256,12 +257,6 @@
256
257
  </button>
257
258
  </div>
258
259
  </div>
259
- <PresetSelectorFilterItem v-else
260
- :column="column(filter.key)"
261
- :type="typeOf(column(filter.key).type)"
262
- :value="filter"
263
- :enumCache="enumCache"
264
- @change="apply()" />
265
260
  </div>
266
261
  </div>
267
262
  </div>
@@ -788,9 +783,12 @@ export default{
788
783
  },
789
784
 
790
785
  select(item){
791
- this.configParams.presetIdx = item.uid
792
786
  this.presetBar.view = 2
793
- this.apply()
787
+
788
+ if(this.configParams.presetIdx !== item.uid){
789
+ this.configParams.presetIdx = item.uid
790
+ this.apply()
791
+ }
794
792
  },
795
793
 
796
794
  deselect(){