@iankibetsh/shframework 0.8.6 → 0.8.8
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/library.js +11 -6
- package/dist/library.mjs +11 -6
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -3151,11 +3151,16 @@ var script$5 = {
|
|
|
3151
3151
|
record.user = record.user.name;
|
|
3152
3152
|
}
|
|
3153
3153
|
this.records.unshift(record);
|
|
3154
|
-
|
|
3154
|
+
},
|
|
3155
|
+
canvasClosed: function(){
|
|
3156
|
+
this.selectedRecord = null;
|
|
3155
3157
|
},
|
|
3156
3158
|
rowSelected: function (row) {
|
|
3157
|
-
this.selectedRecord =
|
|
3158
|
-
|
|
3159
|
+
this.selectedRecord = null;
|
|
3160
|
+
setTimeout(()=>{
|
|
3161
|
+
this.selectedRecord = row;
|
|
3162
|
+
this.$emit('rowSelected', row);
|
|
3163
|
+
},100);
|
|
3159
3164
|
},
|
|
3160
3165
|
changeKey: function (key, value) {
|
|
3161
3166
|
this[key] = value;
|
|
@@ -3888,11 +3893,11 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3888
3893
|
(action.canvasId)
|
|
3889
3894
|
? (vue.openBlock(), vue.createBlock(_component_sh_canvas, {
|
|
3890
3895
|
key: 0,
|
|
3896
|
+
onOffcanvasClosed: $options.canvasClosed,
|
|
3891
3897
|
position: action.canvasPosition,
|
|
3892
3898
|
"canvas-size": action.canvasSize,
|
|
3893
3899
|
"canvas-title": action.canvasTitle,
|
|
3894
|
-
"canvas-id": action.canvasId
|
|
3895
|
-
onOffcanvasClosed: _cache[3] || (_cache[3] = $event => ($options.rowSelected(null)))
|
|
3900
|
+
"canvas-id": action.canvasId
|
|
3896
3901
|
}, {
|
|
3897
3902
|
default: vue.withCtx(() => [
|
|
3898
3903
|
($data.selectedRecord)
|
|
@@ -3903,7 +3908,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3903
3908
|
: vue.createCommentVNode("v-if", true)
|
|
3904
3909
|
]),
|
|
3905
3910
|
_: 2 /* DYNAMIC */
|
|
3906
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["position", "canvas-size", "canvas-title", "canvas-id"]))
|
|
3911
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onOffcanvasClosed", "position", "canvas-size", "canvas-title", "canvas-id"]))
|
|
3907
3912
|
: vue.createCommentVNode("v-if", true)
|
|
3908
3913
|
], 64 /* STABLE_FRAGMENT */))
|
|
3909
3914
|
}), 128 /* KEYED_FRAGMENT */))
|
package/dist/library.mjs
CHANGED
|
@@ -3139,11 +3139,16 @@ var script$5 = {
|
|
|
3139
3139
|
record.user = record.user.name;
|
|
3140
3140
|
}
|
|
3141
3141
|
this.records.unshift(record);
|
|
3142
|
-
|
|
3142
|
+
},
|
|
3143
|
+
canvasClosed: function(){
|
|
3144
|
+
this.selectedRecord = null;
|
|
3143
3145
|
},
|
|
3144
3146
|
rowSelected: function (row) {
|
|
3145
|
-
this.selectedRecord =
|
|
3146
|
-
|
|
3147
|
+
this.selectedRecord = null;
|
|
3148
|
+
setTimeout(()=>{
|
|
3149
|
+
this.selectedRecord = row;
|
|
3150
|
+
this.$emit('rowSelected', row);
|
|
3151
|
+
},100);
|
|
3147
3152
|
},
|
|
3148
3153
|
changeKey: function (key, value) {
|
|
3149
3154
|
this[key] = value;
|
|
@@ -3876,11 +3881,11 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3876
3881
|
(action.canvasId)
|
|
3877
3882
|
? (openBlock(), createBlock(_component_sh_canvas, {
|
|
3878
3883
|
key: 0,
|
|
3884
|
+
onOffcanvasClosed: $options.canvasClosed,
|
|
3879
3885
|
position: action.canvasPosition,
|
|
3880
3886
|
"canvas-size": action.canvasSize,
|
|
3881
3887
|
"canvas-title": action.canvasTitle,
|
|
3882
|
-
"canvas-id": action.canvasId
|
|
3883
|
-
onOffcanvasClosed: _cache[3] || (_cache[3] = $event => ($options.rowSelected(null)))
|
|
3888
|
+
"canvas-id": action.canvasId
|
|
3884
3889
|
}, {
|
|
3885
3890
|
default: withCtx(() => [
|
|
3886
3891
|
($data.selectedRecord)
|
|
@@ -3891,7 +3896,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3891
3896
|
: createCommentVNode("v-if", true)
|
|
3892
3897
|
]),
|
|
3893
3898
|
_: 2 /* DYNAMIC */
|
|
3894
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["position", "canvas-size", "canvas-title", "canvas-id"]))
|
|
3899
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onOffcanvasClosed", "position", "canvas-size", "canvas-title", "canvas-id"]))
|
|
3895
3900
|
: createCommentVNode("v-if", true)
|
|
3896
3901
|
], 64 /* STABLE_FRAGMENT */))
|
|
3897
3902
|
}), 128 /* KEYED_FRAGMENT */))
|