@deot/vc-components 1.0.36 → 1.0.38
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/index.cjs +12 -7
- package/dist/index.iife.js +60 -17241
- package/dist/index.js +10 -5
- package/dist/index.umd.cjs +60 -17241
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -15,7 +15,6 @@ const PhotoSwipeLightbox = require('photoswipe/lightbox');
|
|
|
15
15
|
const helperCache = require('@deot/helper-cache');
|
|
16
16
|
const Load = require('@deot/helper-load');
|
|
17
17
|
const helperScheduler = require('@deot/helper-scheduler');
|
|
18
|
-
const lodash = require('lodash');
|
|
19
18
|
const helperFp = require('@deot/helper-fp');
|
|
20
19
|
|
|
21
20
|
function _interopNamespaceDefault(e) {
|
|
@@ -11989,7 +11988,13 @@ const Select = /* @__PURE__ */ vue.defineComponent({
|
|
|
11989
11988
|
close,
|
|
11990
11989
|
searchRegex,
|
|
11991
11990
|
multiple,
|
|
11992
|
-
|
|
11991
|
+
isActive,
|
|
11992
|
+
current: currentValue,
|
|
11993
|
+
// for portal
|
|
11994
|
+
toggle(v) {
|
|
11995
|
+
v = typeof v === 'boolean' ? v : !isActive.value;
|
|
11996
|
+
isActive.value = v;
|
|
11997
|
+
}
|
|
11993
11998
|
});
|
|
11994
11999
|
return () => {
|
|
11995
12000
|
return vue.createVNode(Popover, vue.mergeProps({
|
|
@@ -14512,7 +14517,7 @@ class BaseWatcher {
|
|
|
14512
14517
|
// compputeds
|
|
14513
14518
|
isComplex: vue.computed(() => this.states.leftFixedColumns.length > 0 || this.states.rightFixedColumns.length > 0),
|
|
14514
14519
|
isGroup: vue.computed(() => this.states.columns.length > this.states.originColumns.length),
|
|
14515
|
-
columns: vue.computed(() =>
|
|
14520
|
+
columns: vue.computed(() => lodashEs.concat(this.states.leftFixedLeafColumns, this.states.leafColumns, this.states.rightFixedLeafColumns)),
|
|
14516
14521
|
leafColumns: vue.computed(() => flattenData(this.states.notFixedColumns)),
|
|
14517
14522
|
leftFixedLeafColumns: vue.computed(() => flattenData(this.states.leftFixedColumns)),
|
|
14518
14523
|
rightFixedLeafColumns: vue.computed(() => flattenData(this.states.rightFixedColumns)),
|
|
@@ -14998,7 +15003,7 @@ class Store extends BaseWatcher {
|
|
|
14998
15003
|
layout;
|
|
14999
15004
|
flatData = vue.computed(() => {
|
|
15000
15005
|
if (this.table.props.expandSelectable) {
|
|
15001
|
-
return
|
|
15006
|
+
return lodashEs.concat(
|
|
15002
15007
|
flattenData(this.states.data, { parent: true, cascader: true }),
|
|
15003
15008
|
this.states.treeLazyData
|
|
15004
15009
|
);
|
|
@@ -15017,7 +15022,7 @@ class Store extends BaseWatcher {
|
|
|
15017
15022
|
this.tree = new Tree$1(this);
|
|
15018
15023
|
this.layout = new Layout(this);
|
|
15019
15024
|
const { props } = options.table;
|
|
15020
|
-
|
|
15025
|
+
lodashEs.merge(this.states, {
|
|
15021
15026
|
expandSelectable: props.expandSelectable,
|
|
15022
15027
|
treeLazy: props.lazy || false,
|
|
15023
15028
|
treeLazyColumnIdentifier: props.treeMap.hasChildren || "hasChildren",
|
|
@@ -15160,7 +15165,7 @@ class Store extends BaseWatcher {
|
|
|
15160
15165
|
leftFixedColumns.unshift(_columns[0]);
|
|
15161
15166
|
}
|
|
15162
15167
|
const notFixedColumns = _columns.filter((column) => !column.fixed);
|
|
15163
|
-
const originColumns =
|
|
15168
|
+
const originColumns = lodashEs.concat(leftFixedColumns, notFixedColumns, rightFixedColumns);
|
|
15164
15169
|
const headerRows = columnsToRowsEffect(originColumns);
|
|
15165
15170
|
states.leftFixedColumns = leftFixedColumns;
|
|
15166
15171
|
states.notFixedColumns = notFixedColumns;
|
|
@@ -15259,7 +15264,7 @@ class Store extends BaseWatcher {
|
|
|
15259
15264
|
this.table.emit("selection-change", newSelection);
|
|
15260
15265
|
}
|
|
15261
15266
|
}
|
|
15262
|
-
toggleAllSelection =
|
|
15267
|
+
toggleAllSelection = lodashEs.debounce(() => {
|
|
15263
15268
|
const { indeterminate } = this.table.props;
|
|
15264
15269
|
const { selection, isAllSelected, selectable } = this.states;
|
|
15265
15270
|
const value = indeterminate ? !isAllSelected : !(isAllSelected || selection.length);
|