@mixd-id/web-scaffold 0.1.230406352 → 0.1.230406354
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
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
class="bg-transparent"
|
|
84
84
|
container-class="flex flex-col divide-y divide-text-50"
|
|
85
85
|
@reorder="(from, to) => { selectedDatasource.filters.splice(to, 0, selectedDatasource.filters.splice(from, 1)[0]); }">
|
|
86
|
-
<template v-slot="{ item:filter, index }">
|
|
86
|
+
<template v-slot="{ item:filter, index:idx }">
|
|
87
87
|
<div class="p-5">
|
|
88
88
|
<div class="flex flex-row items-start">
|
|
89
89
|
<Checkbox v-model="filter.enabled" :disabled="selectedPreset.readonly" :default="true" @change="onDatasourceFilterChanged"/>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<svg width="14" height="14" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z"/></svg>
|
|
111
111
|
</button>
|
|
112
112
|
|
|
113
|
-
<button v-if="selectedPreset.sharing?.length > 0"
|
|
113
|
+
<button v-if="selectedPreset.sharing?.length > 0 && !selectedPreset.readonly"
|
|
114
114
|
type="button"
|
|
115
115
|
class="p-0.5 rounded-full"
|
|
116
116
|
@click="$refs.datasourceFilterSharing.open(filter.sharing, (sharing) => { filter.sharing = sharing; load() })">
|
|
@@ -1307,8 +1307,6 @@ export default{
|
|
|
1307
1307
|
},
|
|
1308
1308
|
|
|
1309
1309
|
saveConfig: invokeAfterIdle(function() {
|
|
1310
|
-
if(this.selectedPreset.readonly) return
|
|
1311
|
-
|
|
1312
1310
|
this.$emit('save', {
|
|
1313
1311
|
config:this.cConfig,
|
|
1314
1312
|
presets: undefined
|
|
@@ -1406,7 +1404,6 @@ export default{
|
|
|
1406
1404
|
},
|
|
1407
1405
|
|
|
1408
1406
|
cConfig(to, from){
|
|
1409
|
-
console.log('cConfig', from)
|
|
1410
1407
|
if(!from){
|
|
1411
1408
|
this.load()
|
|
1412
1409
|
this.initialConfig = JSON.stringify(this.cConfig)
|
|
@@ -1416,7 +1413,9 @@ export default{
|
|
|
1416
1413
|
selectedPreset:{
|
|
1417
1414
|
deep: true,
|
|
1418
1415
|
handler(to) {
|
|
1419
|
-
|
|
1416
|
+
if(to){
|
|
1417
|
+
this.savePreset()
|
|
1418
|
+
}
|
|
1420
1419
|
}
|
|
1421
1420
|
}
|
|
1422
1421
|
|