@whitesev/pops 2.0.5 → 2.0.7
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.amd.js +134 -80
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +134 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +134 -80
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +134 -80
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +134 -80
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +134 -80
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +20411 -15
- package/dist/types/src/components/alert/index.d.ts +3 -3
- package/dist/types/src/components/confirm/index.d.ts +3 -3
- package/dist/types/src/components/drawer/index.d.ts +3 -3
- package/dist/types/src/components/drawer/indexType.d.ts +10 -2
- package/dist/types/src/components/folder/index.d.ts +3 -3
- package/dist/types/src/components/folder/indexType.d.ts +4 -1
- package/dist/types/src/components/iframe/index.d.ts +6 -3
- package/dist/types/src/components/iframe/indexType.d.ts +2 -0
- package/dist/types/src/components/loading/index.d.ts +3 -3
- package/dist/types/src/components/loading/indexType.d.ts +10 -1
- package/dist/types/src/components/panel/index.d.ts +3 -3
- package/dist/types/src/components/panel/indexType.d.ts +1 -0
- package/dist/types/src/components/panel/sliderType.d.ts +14 -4
- package/dist/types/src/components/prompt/index.d.ts +3 -3
- package/dist/types/src/components/prompt/indexType.d.ts +1 -0
- package/dist/types/src/components/rightClickMenu/index.d.ts +20315 -3
- package/dist/types/src/components/rightClickMenu/indexType.d.ts +6 -2
- package/dist/types/src/components/searchSuggestion/index.d.ts +141 -3
- package/dist/types/src/components/searchSuggestion/indexType.d.ts +0 -108
- package/dist/types/src/components/tooltip/index.d.ts +51 -3
- package/package.json +1 -1
- package/src/Pops.ts +25 -24
- package/src/components/alert/index.ts +6 -5
- package/src/components/confirm/index.ts +6 -5
- package/src/components/drawer/index.ts +6 -5
- package/src/components/drawer/indexType.ts +10 -2
- package/src/components/folder/index.ts +6 -5
- package/src/components/folder/indexType.ts +4 -1
- package/src/components/iframe/index.ts +4 -4
- package/src/components/iframe/indexType.ts +2 -0
- package/src/components/loading/config.ts +1 -1
- package/src/components/loading/index.ts +12 -11
- package/src/components/loading/indexType.ts +10 -1
- package/src/components/panel/PanelHandleContentDetails.ts +62 -29
- package/src/components/panel/index.ts +6 -5
- package/src/components/panel/indexType.ts +1 -0
- package/src/components/panel/sliderType.ts +14 -4
- package/src/components/prompt/index.ts +6 -5
- package/src/components/prompt/indexType.ts +1 -0
- package/src/components/rightClickMenu/index.ts +4 -5
- package/src/components/rightClickMenu/indexType.ts +6 -7
- package/src/components/searchSuggestion/index.ts +4 -4
- package/src/components/searchSuggestion/indexType.ts +0 -109
- package/src/components/tooltip/index.ts +9 -9
package/dist/index.system.js
CHANGED
|
@@ -3249,8 +3249,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3249
3249
|
};
|
|
3250
3250
|
};
|
|
3251
3251
|
|
|
3252
|
-
|
|
3253
|
-
|
|
3252
|
+
const PopsAlert = {
|
|
3253
|
+
init(details) {
|
|
3254
3254
|
const guid = popsUtils.getRandomGUID();
|
|
3255
3255
|
// 设置当前类型
|
|
3256
3256
|
const PopsType = "alert";
|
|
@@ -3339,9 +3339,10 @@ System.register('pops', [], (function (exports) {
|
|
|
3339
3339
|
endCallBack: config.dragEndCallBack,
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3342
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3343
|
+
return result;
|
|
3344
|
+
},
|
|
3345
|
+
};
|
|
3345
3346
|
|
|
3346
3347
|
const PopsConfirmConfig = () => {
|
|
3347
3348
|
return {
|
|
@@ -3431,8 +3432,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3431
3432
|
};
|
|
3432
3433
|
};
|
|
3433
3434
|
|
|
3434
|
-
|
|
3435
|
-
|
|
3435
|
+
const PopsConfirm = {
|
|
3436
|
+
init(details) {
|
|
3436
3437
|
const guid = popsUtils.getRandomGUID();
|
|
3437
3438
|
// 设置当前类型
|
|
3438
3439
|
const PopsType = "confirm";
|
|
@@ -3522,9 +3523,10 @@ System.register('pops', [], (function (exports) {
|
|
|
3522
3523
|
endCallBack: config.dragEndCallBack,
|
|
3523
3524
|
});
|
|
3524
3525
|
}
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3526
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3527
|
+
return result;
|
|
3528
|
+
},
|
|
3529
|
+
};
|
|
3528
3530
|
|
|
3529
3531
|
const PopsPromptConfig = () => {
|
|
3530
3532
|
return {
|
|
@@ -3618,8 +3620,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3618
3620
|
};
|
|
3619
3621
|
};
|
|
3620
3622
|
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
+
const PopsPrompt = {
|
|
3624
|
+
init(details) {
|
|
3623
3625
|
const guid = popsUtils.getRandomGUID();
|
|
3624
3626
|
// 设置当前类型
|
|
3625
3627
|
const PopsType = "prompt";
|
|
@@ -3725,9 +3727,10 @@ System.register('pops', [], (function (exports) {
|
|
|
3725
3727
|
if (config.content.select) {
|
|
3726
3728
|
$input.select();
|
|
3727
3729
|
}
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3730
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3731
|
+
return result;
|
|
3732
|
+
},
|
|
3733
|
+
};
|
|
3731
3734
|
|
|
3732
3735
|
const PopsLoadingConfig = () => {
|
|
3733
3736
|
return {
|
|
@@ -3751,13 +3754,14 @@ System.register('pops', [], (function (exports) {
|
|
|
3751
3754
|
},
|
|
3752
3755
|
animation: "pops-anim-fadein-zoom",
|
|
3753
3756
|
forbiddenScroll: false,
|
|
3757
|
+
isAbsolute: false,
|
|
3754
3758
|
style: null,
|
|
3755
3759
|
addIndexCSS: true,
|
|
3756
3760
|
};
|
|
3757
3761
|
};
|
|
3758
3762
|
|
|
3759
|
-
|
|
3760
|
-
|
|
3763
|
+
const PopsLoading = {
|
|
3764
|
+
init(details) {
|
|
3761
3765
|
let config = PopsLoadingConfig();
|
|
3762
3766
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
3763
3767
|
config = popsUtils.assign(config, details);
|
|
@@ -3787,9 +3791,6 @@ System.register('pops', [], (function (exports) {
|
|
|
3787
3791
|
* 弹窗的主元素,包括动画层
|
|
3788
3792
|
*/
|
|
3789
3793
|
let $anim = PopsElementHandler.parseElement(animHTML);
|
|
3790
|
-
// 遮罩层必须是跟随主内容
|
|
3791
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3792
|
-
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3793
3794
|
let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
|
|
3794
3795
|
/**
|
|
3795
3796
|
* 遮罩层元素
|
|
@@ -3809,9 +3810,6 @@ System.register('pops', [], (function (exports) {
|
|
|
3809
3810
|
maskHTML: maskHTML,
|
|
3810
3811
|
});
|
|
3811
3812
|
$mask = _handleMask_.maskElement;
|
|
3812
|
-
// 遮罩层必须是跟随主内容
|
|
3813
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3814
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3815
3813
|
elementList.push($mask);
|
|
3816
3814
|
}
|
|
3817
3815
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3825,9 +3823,16 @@ System.register('pops', [], (function (exports) {
|
|
|
3825
3823
|
popsElement: $pops,
|
|
3826
3824
|
maskElement: $mask,
|
|
3827
3825
|
});
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3826
|
+
if (config.isAbsolute) {
|
|
3827
|
+
// 遮罩层必须是跟随主内容
|
|
3828
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3829
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3830
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3831
|
+
}
|
|
3832
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3833
|
+
return result;
|
|
3834
|
+
},
|
|
3835
|
+
};
|
|
3831
3836
|
|
|
3832
3837
|
const PopsIframeConfig = () => {
|
|
3833
3838
|
return {
|
|
@@ -3887,8 +3892,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3887
3892
|
};
|
|
3888
3893
|
};
|
|
3889
3894
|
|
|
3890
|
-
|
|
3891
|
-
|
|
3895
|
+
const PopsIframe = {
|
|
3896
|
+
init(details) {
|
|
3892
3897
|
const guid = popsUtils.getRandomGUID();
|
|
3893
3898
|
// 设置当前类型
|
|
3894
3899
|
const PopsType = "iframe";
|
|
@@ -4118,8 +4123,8 @@ System.register('pops', [], (function (exports) {
|
|
|
4118
4123
|
});
|
|
4119
4124
|
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4120
4125
|
return result;
|
|
4121
|
-
}
|
|
4122
|
-
}
|
|
4126
|
+
},
|
|
4127
|
+
};
|
|
4123
4128
|
|
|
4124
4129
|
const PopsDrawerConfig = () => {
|
|
4125
4130
|
return {
|
|
@@ -4208,8 +4213,8 @@ System.register('pops', [], (function (exports) {
|
|
|
4208
4213
|
};
|
|
4209
4214
|
};
|
|
4210
4215
|
|
|
4211
|
-
|
|
4212
|
-
|
|
4216
|
+
const PopsDrawer = {
|
|
4217
|
+
init(details) {
|
|
4213
4218
|
const guid = popsUtils.getRandomGUID();
|
|
4214
4219
|
// 设置当前类型
|
|
4215
4220
|
const PopsType = "drawer";
|
|
@@ -4370,9 +4375,10 @@ System.register('pops', [], (function (exports) {
|
|
|
4370
4375
|
$shadowContainer: $shadowContainer,
|
|
4371
4376
|
$shadowRoot: $shadowRoot,
|
|
4372
4377
|
});
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4378
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4379
|
+
return result;
|
|
4380
|
+
},
|
|
4381
|
+
};
|
|
4376
4382
|
|
|
4377
4383
|
const PopsFolderConfig = () => {
|
|
4378
4384
|
return {
|
|
@@ -4534,8 +4540,8 @@ System.register('pops', [], (function (exports) {
|
|
|
4534
4540
|
dwg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABaUExURUxpcXvGVIbNYXvHVHzJWYbNYXbDTWu9QHrGU4jOZHLBSW+/RYDJWmy+QoXMYHzHVYjOZHfET2m7P4LLXf3/+/T+7u3+5MXrsaXbiVyuMZjUeNb2xOP81bPjmuZ7vy0AAAAKdFJOUwA9z1wc33ign591Bg7OAAACdUlEQVRYw+2Yi3KjIBRAm51UI4gKxMei+f/f3PsQNU3SXtzOdGfWo0W4wBGFau3b28HBwYGYU1a85JSuOxfNZ/w6p/rem895TzQWTfOtxjP1qWCDtJoLK1WyMcM+VUUu1pJ3ls6nSDEW1UpTvSLBWFRf0iQZXwn93jFuhd7fK/2SJhgL9Hh0ecp5P4tn3xzwYmPhX0En2SL7nXkirEIPNA/xspAIL9Cw9CUmsV85dG3bBcjNgSUjeVJcykeG9nrtAmX9/MNJtk9Yk7B5cqbLvymsdwjr2LOmBIVtU3OMQ9xGJIQOQHSFGzBegR5zoV4Qj7DeQiumbVGIx26gEXICpAvr4bqlHe5r04WWhB1BQvsdwo5uX4/GvxCGgejBMv4mJpwZjoY0IY7C9nSZNB+jI1DY8tXfsJGVCi3Rt8tUjBoDelrn5mbBJxVi29qqG60XXDLtqFjYXudQd1N8VqEQUUNPTNA/jhCyE0cHRUNMEiq+cbiwV2E3cFTvGKHjqQ34bB0Jespy1NlkIQwR0aG7I2iOJwmVje1BG6atbwpQxbUqZYRq3ej9NIJ1GjGHwk21SKgiFndL7xQU0jvFLlWERJhHE3ehuQnTNI2WZmOxUQuhcDsK44xzJCx5vdyRJFzRYQShf6xQ+U8J9VOh3inU4NMAaTULccWUmopUrRQ3kAkfqQJgn1TsFBpaO+77hHp+xOwXmo9DhNVoOLipMlKh0dibd8waLq7HWDBGJDQJ/IgwM3zHIm5JlpQ33CV/wZ6wj1t7UT4KaLY5R4noMyB3EXN32BRiRHLF8H2rnRAt/JY65zJfLv8iPWf5l2Q7/ptxcHDw//IHYWiLelDcDu8AAAAASUVORK5CYII=",
|
|
4535
4541
|
};
|
|
4536
4542
|
|
|
4537
|
-
|
|
4538
|
-
|
|
4543
|
+
const PopsFolder = {
|
|
4544
|
+
init(details) {
|
|
4539
4545
|
const guid = popsUtils.getRandomGUID();
|
|
4540
4546
|
// 设置当前类型
|
|
4541
4547
|
const PopsType = "folder";
|
|
@@ -5317,9 +5323,10 @@ System.register('pops', [], (function (exports) {
|
|
|
5317
5323
|
$shadowContainer: $shadowContainer,
|
|
5318
5324
|
$shadowRoot: $shadowRoot,
|
|
5319
5325
|
});
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5326
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
5327
|
+
return result;
|
|
5328
|
+
},
|
|
5329
|
+
};
|
|
5323
5330
|
|
|
5324
5331
|
const PopsPanelConfig = () => {
|
|
5325
5332
|
return {
|
|
@@ -6202,6 +6209,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6202
6209
|
*/
|
|
6203
6210
|
createSectionContainerItem_slider_new(formConfig) {
|
|
6204
6211
|
let liElement = document.createElement("li");
|
|
6212
|
+
// @ts-ignore
|
|
6205
6213
|
liElement["__formConfig__"] = formConfig;
|
|
6206
6214
|
this.setElementClassName(liElement, formConfig.className);
|
|
6207
6215
|
this.setElementAttributes(liElement, formConfig.attributes);
|
|
@@ -6302,15 +6310,15 @@ System.register('pops', [], (function (exports) {
|
|
|
6302
6310
|
this.setPanEvent();
|
|
6303
6311
|
this.setRunAwayClickEvent();
|
|
6304
6312
|
this.intervalInit();
|
|
6305
|
-
if (
|
|
6313
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6306
6314
|
this.disableDrag();
|
|
6307
6315
|
}
|
|
6308
6316
|
},
|
|
6309
6317
|
/**
|
|
6310
6318
|
* 10s内循环获取slider的宽度等信息
|
|
6311
6319
|
* 获取到了就可以初始化left的值
|
|
6312
|
-
* @param
|
|
6313
|
-
* @param
|
|
6320
|
+
* @param [checkStepTime=200] 每次检测的间隔时间
|
|
6321
|
+
* @param [maxTime=10000] 最大的检测时间
|
|
6314
6322
|
*/
|
|
6315
6323
|
intervalInit(checkStepTime = 200, maxTime = 10000) {
|
|
6316
6324
|
if (this.$interval.isCheck) {
|
|
@@ -6356,9 +6364,13 @@ System.register('pops', [], (function (exports) {
|
|
|
6356
6364
|
this.$ele.slider.setAttribute("data-max", this.max.toString());
|
|
6357
6365
|
this.$ele.slider.setAttribute("data-value", this.value.toString());
|
|
6358
6366
|
this.$ele.slider.setAttribute("data-step", this.step.toString());
|
|
6367
|
+
// @ts-ignore
|
|
6359
6368
|
this.$ele.slider["data-min"] = this.min;
|
|
6369
|
+
// @ts-ignore
|
|
6360
6370
|
this.$ele.slider["data-max"] = this.max;
|
|
6371
|
+
// @ts-ignore
|
|
6361
6372
|
this.$ele.slider["data-value"] = this.value;
|
|
6373
|
+
// @ts-ignore
|
|
6362
6374
|
this.$ele.slider["data-step"] = this.step;
|
|
6363
6375
|
},
|
|
6364
6376
|
/**
|
|
@@ -6473,7 +6485,6 @@ System.register('pops', [], (function (exports) {
|
|
|
6473
6485
|
/**
|
|
6474
6486
|
* 判断数字是否是浮点数
|
|
6475
6487
|
* @param num
|
|
6476
|
-
* @returns
|
|
6477
6488
|
*/
|
|
6478
6489
|
isFloat(num) {
|
|
6479
6490
|
return Number(num) === num && num % 1 !== 0;
|
|
@@ -6490,6 +6501,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6490
6501
|
},
|
|
6491
6502
|
/**
|
|
6492
6503
|
* 根据拖拽距离获取滑块应该在的区间和值
|
|
6504
|
+
* @param dragX
|
|
6493
6505
|
*/
|
|
6494
6506
|
getDragInfo(dragX) {
|
|
6495
6507
|
let result = this.$data.stepBlockMap.get(0);
|
|
@@ -6504,7 +6516,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6504
6516
|
},
|
|
6505
6517
|
/**
|
|
6506
6518
|
* 获取滑块的当前脱拖拽占据的百分比
|
|
6507
|
-
* @param
|
|
6519
|
+
* @param dragWidth
|
|
6508
6520
|
*/
|
|
6509
6521
|
getSliderPositonPercent(dragWidth) {
|
|
6510
6522
|
return dragWidth / this.$data.totalWidth;
|
|
@@ -6556,6 +6568,21 @@ System.register('pops', [], (function (exports) {
|
|
|
6556
6568
|
isDisabledDrag() {
|
|
6557
6569
|
return this.$ele.runAway.classList.contains("pops-slider-is-disabled");
|
|
6558
6570
|
},
|
|
6571
|
+
/**
|
|
6572
|
+
* 判断当前滑块是否被禁用(配置中判断)
|
|
6573
|
+
*/
|
|
6574
|
+
isFormConfigDisabledDrag() {
|
|
6575
|
+
if (typeof formConfig.disabled === "function" ||
|
|
6576
|
+
typeof formConfig.disabled === "boolean") {
|
|
6577
|
+
let isDisabled = typeof formConfig.disabled === "function"
|
|
6578
|
+
? formConfig.disabled()
|
|
6579
|
+
: formConfig.disabled;
|
|
6580
|
+
return isDisabled;
|
|
6581
|
+
}
|
|
6582
|
+
else {
|
|
6583
|
+
return false;
|
|
6584
|
+
}
|
|
6585
|
+
},
|
|
6559
6586
|
/**
|
|
6560
6587
|
* 设置进度条点击定位的事件
|
|
6561
6588
|
*/
|
|
@@ -6578,9 +6605,17 @@ System.register('pops', [], (function (exports) {
|
|
|
6578
6605
|
*/
|
|
6579
6606
|
dragStartCallBack() {
|
|
6580
6607
|
if (!this.$data.isMove) {
|
|
6581
|
-
if (this.
|
|
6608
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6609
|
+
// 禁止
|
|
6610
|
+
this.disableDrag();
|
|
6582
6611
|
return false;
|
|
6583
6612
|
}
|
|
6613
|
+
else {
|
|
6614
|
+
// 允许
|
|
6615
|
+
if (this.isDisabledDrag()) {
|
|
6616
|
+
this.allowDrag();
|
|
6617
|
+
}
|
|
6618
|
+
}
|
|
6584
6619
|
this.$data.isMove = true;
|
|
6585
6620
|
}
|
|
6586
6621
|
return true;
|
|
@@ -6727,6 +6762,14 @@ System.register('pops', [], (function (exports) {
|
|
|
6727
6762
|
passive: true,
|
|
6728
6763
|
},
|
|
6729
6764
|
showBeforeCallBack: () => {
|
|
6765
|
+
let isShowHoverTip = typeof formConfig.isShowHoverTip === "function"
|
|
6766
|
+
? formConfig.isShowHoverTip()
|
|
6767
|
+
: typeof formConfig.isShowHoverTip === "boolean"
|
|
6768
|
+
? formConfig.isShowHoverTip
|
|
6769
|
+
: true;
|
|
6770
|
+
if (!isShowHoverTip) {
|
|
6771
|
+
return false;
|
|
6772
|
+
}
|
|
6730
6773
|
this.intervalInit();
|
|
6731
6774
|
},
|
|
6732
6775
|
showAfterCallBack: (toolTipNode) => {
|
|
@@ -8311,8 +8354,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8311
8354
|
};
|
|
8312
8355
|
};
|
|
8313
8356
|
|
|
8314
|
-
|
|
8315
|
-
|
|
8357
|
+
const PopsPanel = {
|
|
8358
|
+
init(details) {
|
|
8316
8359
|
const guid = popsUtils.getRandomGUID();
|
|
8317
8360
|
// 设置当前类型
|
|
8318
8361
|
const PopsType = "panel";
|
|
@@ -8425,9 +8468,10 @@ System.register('pops', [], (function (exports) {
|
|
|
8425
8468
|
endCallBack: config.dragEndCallBack,
|
|
8426
8469
|
});
|
|
8427
8470
|
}
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8471
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
8472
|
+
return result;
|
|
8473
|
+
},
|
|
8474
|
+
};
|
|
8431
8475
|
|
|
8432
8476
|
const rightClickMenuConfig = () => {
|
|
8433
8477
|
return {
|
|
@@ -8554,8 +8598,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8554
8598
|
};
|
|
8555
8599
|
};
|
|
8556
8600
|
|
|
8557
|
-
|
|
8558
|
-
|
|
8601
|
+
const PopsRightClickMenu = {
|
|
8602
|
+
init(details) {
|
|
8559
8603
|
const guid = popsUtils.getRandomGUID();
|
|
8560
8604
|
// 设置当前类型
|
|
8561
8605
|
const PopsType = "rightClickMenu";
|
|
@@ -8981,8 +9025,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8981
9025
|
removeContextMenuEvent: PopsContextMenu.removeContextMenuEvent,
|
|
8982
9026
|
addContextMenuEvent: PopsContextMenu.addContextMenuEvent,
|
|
8983
9027
|
};
|
|
8984
|
-
}
|
|
8985
|
-
}
|
|
9028
|
+
},
|
|
9029
|
+
};
|
|
8986
9030
|
|
|
8987
9031
|
const searchSuggestionConfig = () => {
|
|
8988
9032
|
return {
|
|
@@ -9041,8 +9085,8 @@ System.register('pops', [], (function (exports) {
|
|
|
9041
9085
|
};
|
|
9042
9086
|
};
|
|
9043
9087
|
|
|
9044
|
-
|
|
9045
|
-
|
|
9088
|
+
const PopsSearchSuggestion = {
|
|
9089
|
+
init(details) {
|
|
9046
9090
|
const guid = popsUtils.getRandomGUID();
|
|
9047
9091
|
// 设置当前类型
|
|
9048
9092
|
const PopsType = "searchSuggestion";
|
|
@@ -9580,8 +9624,8 @@ System.register('pops', [], (function (exports) {
|
|
|
9580
9624
|
},
|
|
9581
9625
|
};
|
|
9582
9626
|
return SearchSuggestion;
|
|
9583
|
-
}
|
|
9584
|
-
}
|
|
9627
|
+
},
|
|
9628
|
+
};
|
|
9585
9629
|
|
|
9586
9630
|
const PopsTooltipConfig = () => {
|
|
9587
9631
|
// @ts-ignore
|
|
@@ -10044,8 +10088,8 @@ System.register('pops', [], (function (exports) {
|
|
|
10044
10088
|
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10045
10089
|
}
|
|
10046
10090
|
}
|
|
10047
|
-
|
|
10048
|
-
|
|
10091
|
+
const PopsTooltip = {
|
|
10092
|
+
init(details) {
|
|
10049
10093
|
const guid = popsUtils.getRandomGUID();
|
|
10050
10094
|
// 设置当前类型
|
|
10051
10095
|
const PopsType = "tooltip";
|
|
@@ -10073,20 +10117,20 @@ System.register('pops', [], (function (exports) {
|
|
|
10073
10117
|
toolTip.show();
|
|
10074
10118
|
}
|
|
10075
10119
|
return {
|
|
10076
|
-
guid
|
|
10077
|
-
config
|
|
10078
|
-
$shadowContainer
|
|
10079
|
-
$shadowRoot
|
|
10080
|
-
toolTip
|
|
10120
|
+
guid,
|
|
10121
|
+
config,
|
|
10122
|
+
$shadowContainer,
|
|
10123
|
+
$shadowRoot,
|
|
10124
|
+
toolTip,
|
|
10081
10125
|
};
|
|
10082
|
-
}
|
|
10083
|
-
}
|
|
10126
|
+
},
|
|
10127
|
+
};
|
|
10084
10128
|
|
|
10085
10129
|
class Pops {
|
|
10086
10130
|
/** 配置 */
|
|
10087
10131
|
config = {
|
|
10088
10132
|
/** 版本号 */
|
|
10089
|
-
version: "2025.5.
|
|
10133
|
+
version: "2025.5.25",
|
|
10090
10134
|
cssText: {
|
|
10091
10135
|
/** 主CSS */
|
|
10092
10136
|
index: indexCSS,
|
|
@@ -10232,42 +10276,47 @@ System.register('pops', [], (function (exports) {
|
|
|
10232
10276
|
* @param details 配置
|
|
10233
10277
|
*/
|
|
10234
10278
|
alert = (details) => {
|
|
10235
|
-
|
|
10279
|
+
let dialog = PopsAlert.init(details);
|
|
10280
|
+
return dialog;
|
|
10236
10281
|
};
|
|
10237
10282
|
/**
|
|
10238
10283
|
* 询问框
|
|
10239
10284
|
* @param details 配置
|
|
10240
10285
|
*/
|
|
10241
10286
|
confirm = (details) => {
|
|
10242
|
-
|
|
10287
|
+
let dialog = PopsConfirm.init(details);
|
|
10288
|
+
return dialog;
|
|
10243
10289
|
};
|
|
10244
10290
|
/**
|
|
10245
10291
|
* 输入框
|
|
10246
10292
|
* @param details 配置
|
|
10247
10293
|
*/
|
|
10248
10294
|
prompt = (details) => {
|
|
10249
|
-
|
|
10295
|
+
let dialog = PopsPrompt.init(details);
|
|
10296
|
+
return dialog;
|
|
10250
10297
|
};
|
|
10251
10298
|
/**
|
|
10252
10299
|
* 加载层
|
|
10253
10300
|
* @param details 配置
|
|
10254
10301
|
*/
|
|
10255
10302
|
loading = (details) => {
|
|
10256
|
-
|
|
10303
|
+
let popsLoading = PopsLoading.init(details);
|
|
10304
|
+
return popsLoading;
|
|
10257
10305
|
};
|
|
10258
10306
|
/**
|
|
10259
10307
|
* iframe层
|
|
10260
10308
|
* @param details 配置
|
|
10261
10309
|
*/
|
|
10262
10310
|
iframe = (details) => {
|
|
10263
|
-
|
|
10311
|
+
let dialog = PopsIframe.init(details);
|
|
10312
|
+
return dialog;
|
|
10264
10313
|
};
|
|
10265
10314
|
/**
|
|
10266
10315
|
* 提示框
|
|
10267
10316
|
* @param details 配置
|
|
10268
10317
|
*/
|
|
10269
10318
|
tooltip = (details) => {
|
|
10270
|
-
let popsTooltip =
|
|
10319
|
+
let popsTooltip = PopsTooltip.init(details);
|
|
10271
10320
|
return popsTooltip;
|
|
10272
10321
|
};
|
|
10273
10322
|
/**
|
|
@@ -10275,35 +10324,40 @@ System.register('pops', [], (function (exports) {
|
|
|
10275
10324
|
* @param details 配置
|
|
10276
10325
|
*/
|
|
10277
10326
|
drawer = (details) => {
|
|
10278
|
-
|
|
10327
|
+
let dialog = PopsDrawer.init(details);
|
|
10328
|
+
return dialog;
|
|
10279
10329
|
};
|
|
10280
10330
|
/**
|
|
10281
10331
|
* 文件夹
|
|
10282
10332
|
* @param details 配置
|
|
10283
10333
|
*/
|
|
10284
10334
|
folder = (details) => {
|
|
10285
|
-
|
|
10335
|
+
let dialog = PopsFolder.init(details);
|
|
10336
|
+
return dialog;
|
|
10286
10337
|
};
|
|
10287
10338
|
/**
|
|
10288
10339
|
* 配置面板
|
|
10289
10340
|
* @param details 配置
|
|
10290
10341
|
*/
|
|
10291
10342
|
panel = (details) => {
|
|
10292
|
-
|
|
10343
|
+
let dialog = PopsPanel.init(details);
|
|
10344
|
+
return dialog;
|
|
10293
10345
|
};
|
|
10294
10346
|
/**
|
|
10295
10347
|
* 右键菜单
|
|
10296
10348
|
* @param details 配置
|
|
10297
10349
|
*/
|
|
10298
10350
|
rightClickMenu = (details) => {
|
|
10299
|
-
|
|
10351
|
+
let popsRightClickMenu = PopsRightClickMenu.init(details);
|
|
10352
|
+
return popsRightClickMenu;
|
|
10300
10353
|
};
|
|
10301
10354
|
/**
|
|
10302
10355
|
* 搜索建议
|
|
10303
10356
|
* @param details 配置
|
|
10304
10357
|
*/
|
|
10305
10358
|
searchSuggestion = (details) => {
|
|
10306
|
-
|
|
10359
|
+
let popsSearchSuggestion = PopsSearchSuggestion.init(details);
|
|
10360
|
+
return popsSearchSuggestion;
|
|
10307
10361
|
};
|
|
10308
10362
|
}
|
|
10309
10363
|
const pops = exports("default", new Pops());
|