bkui-vue 0.0.1-beta.202 → 0.0.1-beta.204
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 +31 -31
- package/dist/index.esm.js +51 -50
- package/dist/index.umd.js +30 -30
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -2
- package/lib/alert/alert.variable.css +2 -2
- package/lib/backtop/backtop.variable.css +2 -2
- package/lib/badge/badge.variable.css +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +2 -2
- package/lib/button/button.variable.css +2 -2
- package/lib/card/card.variable.css +2 -2
- package/lib/cascader/cascader.variable.css +2 -2
- package/lib/checkbox/checkbox.variable.css +2 -2
- package/lib/code-diff/code-diff.variable.css +2 -2
- package/lib/collapse/collapse-panel.d.ts +0 -3
- package/lib/collapse/collapse.variable.css +2 -2
- package/lib/collapse/index.d.ts +0 -3
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +0 -2
- package/lib/color-picker/color-picker.variable.css +2 -2
- package/lib/container/container.variable.css +2 -2
- package/lib/date-picker/date-picker.d.ts +0 -2
- package/lib/date-picker/date-picker.variable.css +2 -2
- package/lib/date-picker/index.d.ts +0 -4
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/time.d.ts +0 -2
- package/lib/date-picker/props.d.ts +0 -1
- package/lib/date-picker/time-picker.d.ts +0 -2
- package/lib/divider/divider.variable.css +2 -2
- package/lib/dropdown/dropdown.variable.css +2 -2
- package/lib/exception/exception.variable.css +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -2
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +1 -0
- package/lib/form/form.variable.css +3 -2
- package/lib/input/input.variable.css +2 -2
- package/lib/link/link.variable.css +2 -2
- package/lib/loading/loading.variable.css +2 -2
- package/lib/menu/menu.variable.css +2 -2
- package/lib/menu/submenu.variable.css +2 -2
- package/lib/message/message.variable.css +2 -2
- package/lib/navigation/navigation.variable.css +2 -2
- package/lib/notify/notify.variable.css +2 -2
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.variable.css +2 -2
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/popover.variable.css +2 -2
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover2.variable.css +2 -2
- package/lib/popover2/use-floating.d.ts +1 -0
- package/lib/popover2/utils.d.ts +1 -0
- package/lib/process/process.variable.css +2 -2
- package/lib/progress/progress.variable.css +2 -2
- package/lib/radio/radio.css +4 -4
- package/lib/radio/radio.less +2 -2
- package/lib/radio/radio.variable.css +4 -4
- package/lib/resize-layout/resize-layout.variable.css +2 -2
- package/lib/search-select/search-select.variable.css +2 -2
- package/lib/select/select.variable.css +2 -2
- package/lib/sideslider/sideslider.variable.css +2 -2
- package/lib/slider/slider.variable.css +2 -2
- package/lib/steps/steps.variable.css +2 -2
- package/lib/styles/mixins/scroll.variable.css +2 -2
- package/lib/styles/themes/themes.less +2 -2
- package/lib/switcher/switcher.css +5 -5
- package/lib/switcher/switcher.variable.css +2 -2
- package/lib/tab/tab.variable.css +2 -2
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +2 -2
- package/lib/table/plugins/head-sort.variable.css +2 -2
- package/lib/table/plugins/settings.variable.css +2 -2
- package/lib/table/table.variable.css +2 -2
- package/lib/tag/tag.variable.css +2 -2
- package/lib/tag-input/index.d.ts +1 -60
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +0 -3
- package/lib/tag-input/tag-input.d.ts +0 -23
- package/lib/tag-input/tag-input.variable.css +2 -2
- package/lib/tag-input/tag-props.d.ts +0 -5
- package/lib/tag-input/tag-render.d.ts +0 -3
- package/lib/time-picker/index.d.ts +0 -4
- package/lib/time-picker/time-picker.variable.css +2 -2
- package/lib/timeline/timeline.variable.css +2 -2
- package/lib/transfer/transfer.variable.css +2 -2
- package/lib/tree/tree.variable.css +2 -2
- package/lib/upload/index.d.ts +1 -15
- package/lib/upload/index.js +1 -1
- package/lib/upload/props.d.ts +0 -2
- package/lib/upload/upload-trigger.d.ts +0 -3
- package/lib/upload/upload.d.ts +0 -6
- package/lib/upload/upload.variable.css +2 -2
- package/lib/virtual-render/virtual-render.variable.css +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -9878,8 +9878,7 @@ const propsCollapse = {
|
|
9878
9878
|
};
|
9879
9879
|
const CollapsePanelEventProps = {
|
9880
9880
|
itemClick: {
|
9881
|
-
type: Function
|
9882
|
-
default: null
|
9881
|
+
type: Function
|
9883
9882
|
}
|
9884
9883
|
};
|
9885
9884
|
const propsCollapsePanel = __spreadValues({
|
@@ -11324,10 +11323,17 @@ function hide$1(el) {
|
|
11324
11323
|
onHide();
|
11325
11324
|
}
|
11326
11325
|
}
|
11326
|
+
const CachedConst = {};
|
11327
11327
|
const isAvailableId = (query) => {
|
11328
11328
|
const container2 = document.querySelector(query);
|
11329
11329
|
return container2 instanceof HTMLElement;
|
11330
11330
|
};
|
11331
|
+
const getFullscreenUid = () => {
|
11332
|
+
if (!CachedConst.fullscreenReferId) {
|
11333
|
+
CachedConst.fullscreenReferId = `id_${uuid_1.v4()}`;
|
11334
|
+
}
|
11335
|
+
return CachedConst.fullscreenReferId;
|
11336
|
+
};
|
11331
11337
|
function createPopoverComponent(options) {
|
11332
11338
|
let $PopoverInstance = null;
|
11333
11339
|
let $PopoverInstanceVm = null;
|
@@ -12932,6 +12938,15 @@ var useFloating = (props2, ctx, {
|
|
12932
12938
|
}
|
12933
12939
|
return (_c = document.fullscreenElement) == null ? void 0 : _c.contains(elReference);
|
12934
12940
|
};
|
12941
|
+
const getFullscreenRoot = (selector) => {
|
12942
|
+
if (isElementFullScreen()) {
|
12943
|
+
if (document.fullscreenElement.shadowRoot) {
|
12944
|
+
return document.fullscreenElement.shadowRoot.querySelector(selector);
|
12945
|
+
}
|
12946
|
+
return document.fullscreenElement.querySelector(selector);
|
12947
|
+
}
|
12948
|
+
return document.body;
|
12949
|
+
};
|
12935
12950
|
const themeList = ["dark", "light"];
|
12936
12951
|
const compTheme = computed(() => {
|
12937
12952
|
var _a, _b;
|
@@ -12944,8 +12959,8 @@ var useFloating = (props2, ctx, {
|
|
12944
12959
|
customThemes
|
12945
12960
|
};
|
12946
12961
|
});
|
12947
|
-
const isHideMiddlewareAvailable = () =>
|
12948
|
-
const
|
12962
|
+
const isHideMiddlewareAvailable = () => props2.autoVisibility;
|
12963
|
+
const isAutoPlacementAvailable = () => props2.autoPlacement;
|
12949
12964
|
const resolvePopElements = () => {
|
12950
12965
|
var _a, _b, _c, _d;
|
12951
12966
|
const elReference = resolveTargetElement((_a = refReference.value) == null ? void 0 : _a.$el);
|
@@ -12973,7 +12988,7 @@ var useFloating = (props2, ctx, {
|
|
12973
12988
|
element: elArrow
|
12974
12989
|
}));
|
12975
12990
|
}
|
12976
|
-
if (
|
12991
|
+
if (isAutoPlacementAvailable()) {
|
12977
12992
|
middleware.push(autoPlacement());
|
12978
12993
|
} else {
|
12979
12994
|
middleware.unshift(inline());
|
@@ -13193,6 +13208,7 @@ var useFloating = (props2, ctx, {
|
|
13193
13208
|
resolveTargetElement,
|
13194
13209
|
createPopInstance,
|
13195
13210
|
updateFullscreenTarget,
|
13211
|
+
getFullscreenRoot,
|
13196
13212
|
localIsShow,
|
13197
13213
|
cleanup
|
13198
13214
|
};
|
@@ -13253,7 +13269,7 @@ var usePopperId = (props2, prefix = "#") => {
|
|
13253
13269
|
var usePopoverInit = (props2, ctx, { refReference, refContent, refArrow, refRoot }) => {
|
13254
13270
|
let storeEvents = null;
|
13255
13271
|
const isFullscreen = ref(false);
|
13256
|
-
const fullscreenReferId =
|
13272
|
+
const fullscreenReferId = getFullscreenUid();
|
13257
13273
|
const fullScreenTarget = ref();
|
13258
13274
|
const {
|
13259
13275
|
localIsShow,
|
@@ -13264,8 +13280,8 @@ var usePopoverInit = (props2, ctx, { refReference, refContent, refArrow, refRoot
|
|
13264
13280
|
resolvePopElements,
|
13265
13281
|
isElementFullScreen,
|
13266
13282
|
updateFullscreenTarget,
|
13267
|
-
|
13268
|
-
|
13283
|
+
createPopInstance,
|
13284
|
+
getFullscreenRoot
|
13269
13285
|
} = useFloating(props2, ctx, { refReference, refContent, refArrow, refRoot });
|
13270
13286
|
const showFn = () => {
|
13271
13287
|
showPopover();
|
@@ -13326,37 +13342,27 @@ var usePopoverInit = (props2, ctx, { refReference, refContent, refArrow, refRoot
|
|
13326
13342
|
(_a = fullScreenTarget == null ? void 0 : fullScreenTarget.value) == null ? void 0 : _a.setAttribute("data-fllsrn-id", fullscreenReferId);
|
13327
13343
|
};
|
13328
13344
|
const clearFullscreenTag = () => {
|
13329
|
-
var _a;
|
13345
|
+
var _a, _b;
|
13330
13346
|
const query = `[data-fllsrn-id=${fullscreenReferId}]`;
|
13331
|
-
((_a = fullScreenTarget == null ? void 0 : fullScreenTarget.value.querySelectorAll(query)) != null ?
|
13332
|
-
element.removeAttribute("data-fllsrn-id");
|
13347
|
+
((_b = (_a = fullScreenTarget == null ? void 0 : fullScreenTarget.value) == null ? void 0 : _a.querySelectorAll(query)) != null ? _b : []).forEach((element) => {
|
13348
|
+
element == null ? void 0 : element.removeAttribute("data-fllsrn-id");
|
13333
13349
|
});
|
13334
13350
|
};
|
13335
13351
|
const boundary = ref();
|
13336
13352
|
const beforeInstanceUnmount = () => {
|
13337
13353
|
removeEventListener2();
|
13338
13354
|
};
|
13339
|
-
const
|
13340
|
-
|
13341
|
-
|
13342
|
-
|
13343
|
-
|
13344
|
-
}
|
13345
|
-
if (target.parentNode === document.body) {
|
13346
|
-
return document.body;
|
13347
|
-
}
|
13348
|
-
return getFullscreenRootElement(target.parentNode);
|
13349
|
-
}
|
13350
|
-
return document.fullscreenElement;
|
13355
|
+
const updateFullscreen = (target) => {
|
13356
|
+
fullScreenTarget.value = target;
|
13357
|
+
updateFullscreenTarget(target);
|
13358
|
+
isFullscreen.value = isElementFullScreen();
|
13359
|
+
setFullscreenTag();
|
13351
13360
|
};
|
13352
13361
|
const handleFullscreenChange = (e) => {
|
13353
13362
|
if (!document.fullscreenElement) {
|
13354
13363
|
clearFullscreenTag();
|
13355
13364
|
}
|
13356
|
-
|
13357
|
-
updateFullscreenTarget(e.target);
|
13358
|
-
isFullscreen.value = isElementFullScreen();
|
13359
|
-
setFullscreenTag();
|
13365
|
+
updateFullscreen(e.target);
|
13360
13366
|
updateBoundary();
|
13361
13367
|
updatePopover(null, props2);
|
13362
13368
|
};
|
@@ -13365,6 +13371,11 @@ var usePopoverInit = (props2, ctx, { refReference, refContent, refArrow, refRoot
|
|
13365
13371
|
return;
|
13366
13372
|
}
|
13367
13373
|
initPopInstance();
|
13374
|
+
if (isElementFullScreen()) {
|
13375
|
+
const query = `[data-fllsrn-id=${fullscreenReferId}]`;
|
13376
|
+
const target = getFullscreenRoot(query);
|
13377
|
+
updateFullscreen(target);
|
13378
|
+
}
|
13368
13379
|
updateBoundary();
|
13369
13380
|
document.body.addEventListener("fullscreenchange", handleFullscreenChange);
|
13370
13381
|
};
|
@@ -16454,6 +16465,7 @@ var useLimit = () => {
|
|
16454
16465
|
"class": "bk-pagination-limit-select",
|
16455
16466
|
"clearable": false,
|
16456
16467
|
"size": "small",
|
16468
|
+
"withValidate": false,
|
16457
16469
|
"modelValue": localLimit.value,
|
16458
16470
|
"onChange": handleLimitChange,
|
16459
16471
|
"disabled": proxy.disabled
|
@@ -17307,7 +17319,7 @@ var HeadFilter = defineComponent({
|
|
17307
17319
|
return () => createVNode(BkPopover2, mergeProps({
|
17308
17320
|
"trigger": "click",
|
17309
17321
|
"isShow": state.isOpen,
|
17310
|
-
"placement": "bottom-
|
17322
|
+
"placement": "bottom-start",
|
17311
17323
|
"arrow": false,
|
17312
17324
|
"offset": 0
|
17313
17325
|
}, {
|
@@ -19030,8 +19042,7 @@ var ListTagRender = defineComponent({
|
|
19030
19042
|
displayKey: PropTypes.string,
|
19031
19043
|
searchKeyword: PropTypes.string,
|
19032
19044
|
tpl: {
|
19033
|
-
type: Function
|
19034
|
-
default: null
|
19045
|
+
type: Function
|
19035
19046
|
}
|
19036
19047
|
},
|
19037
19048
|
render() {
|
@@ -19078,24 +19089,19 @@ const tagProps = () => ({
|
|
19078
19089
|
showClearOnlyHover: PropTypes.bool.def(false),
|
19079
19090
|
leftSpace: PropTypes.number.def(0),
|
19080
19091
|
createTagValidator: {
|
19081
|
-
type: Function
|
19082
|
-
default: null
|
19092
|
+
type: Function
|
19083
19093
|
},
|
19084
19094
|
filterCallback: {
|
19085
|
-
type: Function
|
19086
|
-
default: null
|
19095
|
+
type: Function
|
19087
19096
|
},
|
19088
19097
|
tagTpl: {
|
19089
|
-
type: Function
|
19090
|
-
default: null
|
19098
|
+
type: Function
|
19091
19099
|
},
|
19092
19100
|
tpl: {
|
19093
|
-
type: Function
|
19094
|
-
default: null
|
19101
|
+
type: Function
|
19095
19102
|
},
|
19096
19103
|
pasteFn: {
|
19097
|
-
type: Function
|
19098
|
-
default: null
|
19104
|
+
type: Function
|
19099
19105
|
},
|
19100
19106
|
withValidate: {
|
19101
19107
|
type: Boolean,
|
@@ -19112,8 +19118,7 @@ var TagRender = defineComponent({
|
|
19112
19118
|
node: PropTypes.object,
|
19113
19119
|
displayKey: PropTypes.string,
|
19114
19120
|
tpl: {
|
19115
|
-
type: Function
|
19116
|
-
default: null
|
19121
|
+
type: Function
|
19117
19122
|
}
|
19118
19123
|
},
|
19119
19124
|
render() {
|
@@ -23927,8 +23932,7 @@ const datePickerProps = {
|
|
23927
23932
|
default: true
|
23928
23933
|
},
|
23929
23934
|
open: {
|
23930
|
-
type: Boolean
|
23931
|
-
default: null
|
23935
|
+
type: Boolean
|
23932
23936
|
},
|
23933
23937
|
multiple: {
|
23934
23938
|
type: Boolean,
|
@@ -30249,12 +30253,10 @@ var uploadProps = {
|
|
30249
30253
|
},
|
30250
30254
|
customRequest: Function,
|
30251
30255
|
beforeUpload: {
|
30252
|
-
type: Function
|
30253
|
-
default: null
|
30256
|
+
type: Function
|
30254
30257
|
},
|
30255
30258
|
beforeRemove: {
|
30256
|
-
type: Function
|
30257
|
-
default: null
|
30259
|
+
type: Function
|
30258
30260
|
},
|
30259
30261
|
sliceUpload: {
|
30260
30262
|
type: Boolean,
|
@@ -30445,8 +30447,7 @@ var UploadTrigger = defineComponent({
|
|
30445
30447
|
multiple: uploadProps.multiple,
|
30446
30448
|
accept: uploadProps.accept,
|
30447
30449
|
file: {
|
30448
|
-
type: Object
|
30449
|
-
default: null
|
30450
|
+
type: Object
|
30450
30451
|
}
|
30451
30452
|
},
|
30452
30453
|
emits: ["change", "remove"],
|