@xatlas/rainbow-core 2.0.9 → 2.1.1
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/core.common.js +98 -26
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +98 -26
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +5 -5
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -3136,11 +3136,23 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3136
3136
|
}
|
|
3137
3137
|
}) : '', h("a", {
|
|
3138
3138
|
"on": {
|
|
3139
|
-
"click": function click() {
|
|
3140
|
-
return _this.handleRowAction(a, record);
|
|
3139
|
+
"click": function click(e) {
|
|
3140
|
+
return _this.handleRowAction(a, record, e);
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
|
-
}, [a.name
|
|
3143
|
+
}, [a.name, a.action === 'file' ? h("input", {
|
|
3144
|
+
"attrs": {
|
|
3145
|
+
"type": "file",
|
|
3146
|
+
"name": "file"
|
|
3147
|
+
},
|
|
3148
|
+
"style": "display: none",
|
|
3149
|
+
"on": {
|
|
3150
|
+
"change": function change(e) {
|
|
3151
|
+
_this.onFileChange(a, e.target.files);
|
|
3152
|
+
e.target.value = '';
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
}) : ''])];
|
|
3144
3156
|
})]), _this.rowActions(record).filter(function (a) {
|
|
3145
3157
|
return !rowCollapseAction.includes(a.key);
|
|
3146
3158
|
}).length ? h("a-divider", {
|
|
@@ -3171,11 +3183,23 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3171
3183
|
"key": a.id
|
|
3172
3184
|
}, [h("a", {
|
|
3173
3185
|
"on": {
|
|
3174
|
-
"click": function click() {
|
|
3175
|
-
return _this.handleRowAction(a, record);
|
|
3186
|
+
"click": function click(e) {
|
|
3187
|
+
return _this.handleRowAction(a, record, e);
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
}, [a.name, a.action === 'file' ? h("input", {
|
|
3191
|
+
"attrs": {
|
|
3192
|
+
"type": "file",
|
|
3193
|
+
"name": "file"
|
|
3194
|
+
},
|
|
3195
|
+
"style": "display: none",
|
|
3196
|
+
"on": {
|
|
3197
|
+
"change": function change(e) {
|
|
3198
|
+
_this.onFileChange(a, e.target.files);
|
|
3199
|
+
e.target.value = '';
|
|
3176
3200
|
}
|
|
3177
3201
|
}
|
|
3178
|
-
}
|
|
3202
|
+
}) : ''])]);
|
|
3179
3203
|
})])])];
|
|
3180
3204
|
} else if (rowCollapseActionNumber) {
|
|
3181
3205
|
children = [h("span", [_this.rowActions(record).slice(0, rowCollapseActionNumber).map(function (a, index) {
|
|
@@ -3185,11 +3209,23 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3185
3209
|
}
|
|
3186
3210
|
}) : '', h("a", {
|
|
3187
3211
|
"on": {
|
|
3188
|
-
"click": function click() {
|
|
3189
|
-
return _this.handleRowAction(a, record);
|
|
3212
|
+
"click": function click(e) {
|
|
3213
|
+
return _this.handleRowAction(a, record, e);
|
|
3190
3214
|
}
|
|
3191
3215
|
}
|
|
3192
|
-
}, [a.name
|
|
3216
|
+
}, [a.name, a.action === 'file' ? h("input", {
|
|
3217
|
+
"attrs": {
|
|
3218
|
+
"type": "file",
|
|
3219
|
+
"name": "file"
|
|
3220
|
+
},
|
|
3221
|
+
"style": "display: none",
|
|
3222
|
+
"on": {
|
|
3223
|
+
"change": function change(e) {
|
|
3224
|
+
_this.onFileChange(a, e.target.files);
|
|
3225
|
+
e.target.value = '';
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
}) : ''])];
|
|
3193
3229
|
})]), _this.rowActions(record).slice(0, rowCollapseActionNumber).length ? h("a-divider", {
|
|
3194
3230
|
"attrs": {
|
|
3195
3231
|
"type": "vertical"
|
|
@@ -3216,11 +3252,23 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3216
3252
|
"key": a.id
|
|
3217
3253
|
}, [h("a", {
|
|
3218
3254
|
"on": {
|
|
3219
|
-
"click": function click() {
|
|
3220
|
-
return _this.handleRowAction(a, record);
|
|
3255
|
+
"click": function click(e) {
|
|
3256
|
+
return _this.handleRowAction(a, record, e);
|
|
3221
3257
|
}
|
|
3222
3258
|
}
|
|
3223
|
-
}, [a.name
|
|
3259
|
+
}, [a.name, a.action === 'file' ? h("input", {
|
|
3260
|
+
"attrs": {
|
|
3261
|
+
"type": "file",
|
|
3262
|
+
"name": "file"
|
|
3263
|
+
},
|
|
3264
|
+
"style": "display: none",
|
|
3265
|
+
"on": {
|
|
3266
|
+
"change": function change(e) {
|
|
3267
|
+
_this.onFileChange(a, e.target.files);
|
|
3268
|
+
e.target.value = '';
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
}) : ''])]);
|
|
3224
3272
|
})])])];
|
|
3225
3273
|
} else {
|
|
3226
3274
|
children = _this.rowActions(record).map(function (a, index) {
|
|
@@ -3230,11 +3278,23 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3230
3278
|
}
|
|
3231
3279
|
}) : '', h("a", {
|
|
3232
3280
|
"on": {
|
|
3233
|
-
"click": function click() {
|
|
3234
|
-
return _this.handleRowAction(a, record);
|
|
3281
|
+
"click": function click(e) {
|
|
3282
|
+
return _this.handleRowAction(a, record, e);
|
|
3235
3283
|
}
|
|
3236
3284
|
}
|
|
3237
|
-
}, [a.name
|
|
3285
|
+
}, [a.name, a.action === 'file' ? h("input", {
|
|
3286
|
+
"attrs": {
|
|
3287
|
+
"type": "file",
|
|
3288
|
+
"name": "file"
|
|
3289
|
+
},
|
|
3290
|
+
"style": "display: none",
|
|
3291
|
+
"on": {
|
|
3292
|
+
"change": function change(e) {
|
|
3293
|
+
_this.onFileChange(a, e.target.files);
|
|
3294
|
+
e.target.value = '';
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
}) : ''])];
|
|
3238
3298
|
});
|
|
3239
3299
|
}
|
|
3240
3300
|
return {
|
|
@@ -3416,6 +3476,10 @@ function list_toPrimitive(input, hint) { if (list_typeof(input) !== "object" ||
|
|
|
3416
3476
|
var key = this.configs['list.separateKey'] || null;
|
|
3417
3477
|
var value = this.configs['list.separateValue'] || null;
|
|
3418
3478
|
return key && value && record[key] === value ? 'list-separate-color' : '';
|
|
3479
|
+
},
|
|
3480
|
+
onFileChange: function onFileChange(action, files) {
|
|
3481
|
+
var key = action.list ? action.list : 'file';
|
|
3482
|
+
this.handleAction(action, null, list_defineProperty({}, key, files));
|
|
3419
3483
|
}
|
|
3420
3484
|
}
|
|
3421
3485
|
});
|
|
@@ -3550,9 +3614,9 @@ function every(expressions, data) {
|
|
|
3550
3614
|
return Object.keys(expressions).every(function (key) {
|
|
3551
3615
|
var item = expressions[key];
|
|
3552
3616
|
var result = key.split('.').reduce(function (p, c) {
|
|
3553
|
-
return p && p[c]
|
|
3617
|
+
return p && Object.hasOwn(p, c) ? p[c] : undefined;
|
|
3554
3618
|
}, data);
|
|
3555
|
-
if (result) {
|
|
3619
|
+
if (result || result === '' || result === null) {
|
|
3556
3620
|
if (Array.isArray(item)) {
|
|
3557
3621
|
return item.includes(result);
|
|
3558
3622
|
} else if (every_typeof(item) === 'object' && Object.keys(item).length === 1) {
|
|
@@ -4787,9 +4851,17 @@ var ACTION_ACCESS = {
|
|
|
4787
4851
|
}, _callee, null, [[0, 16]]);
|
|
4788
4852
|
}))();
|
|
4789
4853
|
},
|
|
4790
|
-
handleRowAction: function handleRowAction(action, model) {
|
|
4854
|
+
handleRowAction: function handleRowAction(action, model, e) {
|
|
4855
|
+
var input = e.target.getElementsByTagName('input');
|
|
4791
4856
|
this.selections = [model];
|
|
4792
|
-
|
|
4857
|
+
if (action.action === 'file') {
|
|
4858
|
+
e.stopPropagation();
|
|
4859
|
+
if (!input[0] || input[0].click() !== undefined) {
|
|
4860
|
+
e.path && e.path[1].getElementsByTagName('input')[0].click();
|
|
4861
|
+
}
|
|
4862
|
+
} else {
|
|
4863
|
+
return this.handleAction(action, model);
|
|
4864
|
+
}
|
|
4793
4865
|
},
|
|
4794
4866
|
handleAction: function handleAction(action, model, appendModel) {
|
|
4795
4867
|
var _this4 = this;
|
|
@@ -8996,8 +9068,8 @@ var Filter_component = normalizeComponent(
|
|
|
8996
9068
|
)
|
|
8997
9069
|
|
|
8998
9070
|
/* harmony default export */ var Filter = (Filter_component.exports);
|
|
8999
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4325b732-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/kits/action/Group.vue?vue&type=template&id=
|
|
9000
|
-
var
|
|
9071
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4325b732-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/kits/action/Group.vue?vue&type=template&id=178a29ec&
|
|
9072
|
+
var Groupvue_type_template_id_178a29ec_render = function render() {
|
|
9001
9073
|
var _vm = this,
|
|
9002
9074
|
_c = _vm._self._c;
|
|
9003
9075
|
return _c('div', {
|
|
@@ -9041,9 +9113,9 @@ var Groupvue_type_template_id_becd33d0_render = function render() {
|
|
|
9041
9113
|
}), 1);
|
|
9042
9114
|
}), 1);
|
|
9043
9115
|
};
|
|
9044
|
-
var
|
|
9116
|
+
var Groupvue_type_template_id_178a29ec_staticRenderFns = [];
|
|
9045
9117
|
|
|
9046
|
-
// CONCATENATED MODULE: ../src/web/components/kits/action/Group.vue?vue&type=template&id=
|
|
9118
|
+
// CONCATENATED MODULE: ../src/web/components/kits/action/Group.vue?vue&type=template&id=178a29ec&
|
|
9047
9119
|
|
|
9048
9120
|
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/kits/action/Group.vue?vue&type=script&lang=js&
|
|
9049
9121
|
function Groupvue_type_script_lang_js_typeof(obj) { "@babel/helpers - typeof"; return Groupvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, Groupvue_type_script_lang_js_typeof(obj); }
|
|
@@ -9085,7 +9157,7 @@ function Groupvue_type_script_lang_js_toPrimitive(input, hint) { if (Groupvue_ty
|
|
|
9085
9157
|
if (action.action === 'file') {
|
|
9086
9158
|
e.stopPropagation();
|
|
9087
9159
|
if (!input[0] || input[0].click() !== undefined) {
|
|
9088
|
-
e.path[1].getElementsByTagName('input')[0].click();
|
|
9160
|
+
e.path && e.path[1].getElementsByTagName('input')[0].click();
|
|
9089
9161
|
}
|
|
9090
9162
|
} else {
|
|
9091
9163
|
this.$emit('action', action);
|
|
@@ -9109,8 +9181,8 @@ function Groupvue_type_script_lang_js_toPrimitive(input, hint) { if (Groupvue_ty
|
|
|
9109
9181
|
|
|
9110
9182
|
var Group_component = normalizeComponent(
|
|
9111
9183
|
action_Groupvue_type_script_lang_js_,
|
|
9112
|
-
|
|
9113
|
-
|
|
9184
|
+
Groupvue_type_template_id_178a29ec_render,
|
|
9185
|
+
Groupvue_type_template_id_178a29ec_staticRenderFns,
|
|
9114
9186
|
false,
|
|
9115
9187
|
null,
|
|
9116
9188
|
null,
|