bkui-vue 0.0.1-beta.51 → 0.0.1-beta.52
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.js +18 -18
- package/dist/index.esm.js +28 -34
- package/dist/index.umd.js +19 -19
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +4 -4
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +4 -4
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +4 -4
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +7 -7
- package/lib/code-diff/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +6 -6
- package/lib/date-picker/index.d.ts +17 -17
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +1 -1
- package/lib/dialog/index.d.ts +4 -4
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +0 -1
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +4 -4
- package/lib/input/index.d.ts +3 -3
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +7 -7
- package/lib/link/link.d.ts +2 -2
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/modal.d.ts +1 -1
- package/lib/popover/index.d.ts +4 -4
- package/lib/popover/popover.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/select/index.d.ts +3 -3
- package/lib/select/select.d.ts +1 -1
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +8 -8
- package/lib/tab/tab-nav.d.ts +1 -1
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/tab/tab.d.ts +2 -2
- package/lib/table/index.d.ts +4 -4
- package/lib/table/table.d.ts +1 -1
- package/package.json +2 -1
- package/dist/style.css +0 -1
package/dist/index.esm.js
CHANGED
@@ -46,7 +46,7 @@ const BKLAYERD_INDEX_EFAULT_VALUE = {
|
|
46
46
|
};
|
47
47
|
class BKZIndexManager {
|
48
48
|
constructor() {
|
49
|
-
|
49
|
+
this.storageLayerIndexValue = {};
|
50
50
|
this.copyDefaultValue();
|
51
51
|
}
|
52
52
|
getNextIndex(type) {
|
@@ -109,7 +109,7 @@ var start = "start";
|
|
109
109
|
var end = "end";
|
110
110
|
var clippingParents = "clippingParents";
|
111
111
|
var viewport = "viewport";
|
112
|
-
var popper
|
112
|
+
var popper = "popper";
|
113
113
|
var reference = "reference";
|
114
114
|
var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
|
115
115
|
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
@@ -789,9 +789,9 @@ function detectOverflow(state, options) {
|
|
789
789
|
if (options === void 0) {
|
790
790
|
options = {};
|
791
791
|
}
|
792
|
-
var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper
|
792
|
+
var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding;
|
793
793
|
var paddingObject = mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
|
794
|
-
var altContext = elementContext === popper
|
794
|
+
var altContext = elementContext === popper ? reference : popper;
|
795
795
|
var popperRect = state.rects.popper;
|
796
796
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
797
797
|
var clippingClientRect = getClippingRect(isElement$2(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
@@ -803,7 +803,7 @@ function detectOverflow(state, options) {
|
|
803
803
|
placement
|
804
804
|
});
|
805
805
|
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2));
|
806
|
-
var elementClientRect = elementContext === popper
|
806
|
+
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect;
|
807
807
|
var overflowOffsets = {
|
808
808
|
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
809
809
|
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
@@ -811,7 +811,7 @@ function detectOverflow(state, options) {
|
|
811
811
|
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
812
812
|
};
|
813
813
|
var offsetData = state.modifiersData.offset;
|
814
|
-
if (elementContext === popper
|
814
|
+
if (elementContext === popper && offsetData) {
|
815
815
|
var offset2 = offsetData[placement];
|
816
816
|
Object.keys(overflowOffsets).forEach(function(key) {
|
817
817
|
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
@@ -1482,22 +1482,21 @@ function isElement$1(obj) {
|
|
1482
1482
|
}
|
1483
1483
|
class BKPopover {
|
1484
1484
|
constructor(reference2, popperRefer, options) {
|
1485
|
-
__publicField(this, "isShow", false);
|
1486
|
-
__publicField(this, "trigger");
|
1487
|
-
__publicField(this, "instance");
|
1488
|
-
__publicField(this, "reference");
|
1489
|
-
__publicField(this, "referenceTarget");
|
1490
|
-
__publicField(this, "popperRefer");
|
1491
|
-
__publicField(this, "instanceOptions");
|
1492
|
-
__publicField(this, "delay", 50);
|
1493
|
-
__publicField(this, "isInnerPopper", false);
|
1494
|
-
__publicField(this, "disabled", false);
|
1495
|
-
__publicField(this, "afterShow", null);
|
1496
|
-
__publicField(this, "afterHidden", null);
|
1497
|
-
__publicField(this, "appendTo", "parent");
|
1498
|
-
__publicField(this, "container", null);
|
1499
|
-
__publicField(this, "fixOnBoundary", false);
|
1500
1485
|
var _a, _b;
|
1486
|
+
this.isShow = false;
|
1487
|
+
this.trigger = void 0;
|
1488
|
+
this.instance = void 0;
|
1489
|
+
this.reference = void 0;
|
1490
|
+
this.referenceTarget = void 0;
|
1491
|
+
this.popperRefer = void 0;
|
1492
|
+
this.delay = 50;
|
1493
|
+
this.isInnerPopper = false;
|
1494
|
+
this.disabled = false;
|
1495
|
+
this.afterShow = null;
|
1496
|
+
this.afterHidden = null;
|
1497
|
+
this.appendTo = "parent";
|
1498
|
+
this.container = null;
|
1499
|
+
this.fixOnBoundary = false;
|
1501
1500
|
this.instanceOptions = this.initDefaultOptions(options);
|
1502
1501
|
this.reference = this.resolveInputSelectorToHtmlElement(reference2);
|
1503
1502
|
this.popperRefer = this.resolveInputSelectorToHtmlElement(popperRefer);
|
@@ -1727,15 +1726,13 @@ const random = (n2, str = lowerStr) => {
|
|
1727
1726
|
};
|
1728
1727
|
class BkMaskManager {
|
1729
1728
|
constructor(config) {
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
__publicField(this, "lastUUID", null);
|
1738
|
-
__publicField(this, "maskStyle", {
|
1729
|
+
this.multiInstance = false;
|
1730
|
+
this.uniqueMaskAttrTag = "";
|
1731
|
+
this.parentNode = document.body;
|
1732
|
+
this.activeInstance = void 0;
|
1733
|
+
this.zIndexStore = /* @__PURE__ */ new Map();
|
1734
|
+
this.lastUUID = null;
|
1735
|
+
this.maskStyle = {
|
1739
1736
|
position: "absolute",
|
1740
1737
|
left: 0,
|
1741
1738
|
top: 0,
|
@@ -1743,7 +1740,7 @@ class BkMaskManager {
|
|
1743
1740
|
right: 0,
|
1744
1741
|
display: "none",
|
1745
1742
|
"background-color": "rgba(0,0,0,.6)"
|
1746
|
-
}
|
1743
|
+
};
|
1747
1744
|
const { multiInstance = false, maskAttrTag = "auto", parentNode = document.body, maskStyle = {} } = config || {};
|
1748
1745
|
this.activeInstance = void 0;
|
1749
1746
|
this.multiInstance = multiInstance;
|
@@ -1846,8 +1843,6 @@ class BkMaskManager {
|
|
1846
1843
|
const bKMaskManager = new BkMaskManager({});
|
1847
1844
|
class BKPopIndexManager {
|
1848
1845
|
constructor() {
|
1849
|
-
__publicField(this, "popInstanceList");
|
1850
|
-
__publicField(this, "uuidAttrName");
|
1851
1846
|
this.popInstanceList = [];
|
1852
1847
|
this.uuidAttrName = "data-bk-pop-uuid";
|
1853
1848
|
}
|
@@ -10977,7 +10972,6 @@ const ClickOutside = {
|
|
10977
10972
|
nodeList.delete(el);
|
10978
10973
|
}
|
10979
10974
|
};
|
10980
|
-
var popper = "";
|
10981
10975
|
const tooltips = {
|
10982
10976
|
mounted(el, binding) {
|
10983
10977
|
const opts = initOptions();
|