@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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, defineComponent, createVNode, ref, watch, getCurrentInstance, computed, TransitionGroup, Transition as Transition$1, h, inject, provide, shallowRef, onMounted, onUnmounted, withDirectives, vShow, createApp, onBeforeUnmount, Fragment as Fragment$1, Teleport, withModifiers, nextTick, isVNode, onBeforeMount, mergeProps, createTextVNode, toRaw, onUpdated, useAttrs as useAttrs$1 } from 'vue';
|
|
2
|
-
import { debounce, isEqualWith, pick, startCase, throttle, cloneDeep, max, merge
|
|
2
|
+
import { debounce, isEqualWith, pick, startCase, throttle, cloneDeep, concat, max, merge, isEmpty as isEmpty$1, kebabCase } from 'lodash-es';
|
|
3
3
|
import { Resize } from '@deot/helper-resize';
|
|
4
4
|
import { Utils as Utils$1, IS_SERVER as IS_SERVER$1 } from '@deot/vc-shared';
|
|
5
5
|
import * as Utils from '@deot/helper-utils';
|
|
@@ -14,7 +14,6 @@ import { Storage } from '@deot/helper-cache';
|
|
|
14
14
|
import * as Load from '@deot/helper-load';
|
|
15
15
|
import { style } from '@deot/helper-load';
|
|
16
16
|
import { Interrupter } from '@deot/helper-scheduler';
|
|
17
|
-
import { concat, merge, debounce as debounce$1 } from 'lodash';
|
|
18
17
|
import { compose } from '@deot/helper-fp';
|
|
19
18
|
|
|
20
19
|
class VcError {
|
|
@@ -11967,7 +11966,13 @@ const Select = /* @__PURE__ */ defineComponent({
|
|
|
11967
11966
|
close,
|
|
11968
11967
|
searchRegex,
|
|
11969
11968
|
multiple,
|
|
11970
|
-
|
|
11969
|
+
isActive,
|
|
11970
|
+
current: currentValue,
|
|
11971
|
+
// for portal
|
|
11972
|
+
toggle(v) {
|
|
11973
|
+
v = typeof v === 'boolean' ? v : !isActive.value;
|
|
11974
|
+
isActive.value = v;
|
|
11975
|
+
}
|
|
11971
11976
|
});
|
|
11972
11977
|
return () => {
|
|
11973
11978
|
return createVNode(Popover, mergeProps({
|
|
@@ -15237,7 +15242,7 @@ class Store extends BaseWatcher {
|
|
|
15237
15242
|
this.table.emit("selection-change", newSelection);
|
|
15238
15243
|
}
|
|
15239
15244
|
}
|
|
15240
|
-
toggleAllSelection = debounce
|
|
15245
|
+
toggleAllSelection = debounce(() => {
|
|
15241
15246
|
const { indeterminate } = this.table.props;
|
|
15242
15247
|
const { selection, isAllSelected, selectable } = this.states;
|
|
15243
15248
|
const value = indeterminate ? !isAllSelected : !(isAllSelected || selection.length);
|
|
@@ -17190,7 +17195,7 @@ const TableColumn = /* @__PURE__ */ defineComponent({
|
|
|
17190
17195
|
realAlign,
|
|
17191
17196
|
realHeaderAlign
|
|
17192
17197
|
};
|
|
17193
|
-
let column = merge
|
|
17198
|
+
let column = merge(defaults, getPropsData(Object.keys(props)));
|
|
17194
17199
|
|
|
17195
17200
|
// minWidth/realWidth/renderHeader
|
|
17196
17201
|
column = compose(setColumnRenders, setColumnWidth, setColumnForcedProps)(column);
|