@whitesev/pops 2.0.2 → 2.0.3
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 +80 -217
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +80 -217
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +80 -217
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +80 -217
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +80 -217
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +80 -217
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/handler/PopsElementHandler.d.ts +4 -4
- package/package.json +1 -1
- package/src/Pops.ts +1 -1
- package/src/components/alert/index.ts +13 -20
- package/src/components/confirm/index.ts +10 -20
- package/src/components/drawer/index.ts +11 -26
- package/src/components/folder/index.ts +11 -20
- package/src/components/iframe/index.ts +14 -23
- package/src/components/loading/index.ts +7 -9
- package/src/components/panel/PanelHandleContentDetails.ts +14 -36
- package/src/components/panel/index.ts +7 -11
- package/src/components/prompt/index.ts +16 -23
- package/src/components/rightClickMenu/index.ts +9 -7
- package/src/components/searchSuggestion/index.ts +8 -13
- package/src/handler/PopsElementHandler.ts +33 -72
package/dist/index.system.js
CHANGED
|
@@ -2474,7 +2474,7 @@ System.register('pops', [], (function (exports) {
|
|
|
2474
2474
|
if (style.startsWith(";")) {
|
|
2475
2475
|
style = style.replace(";", "");
|
|
2476
2476
|
}
|
|
2477
|
-
return `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
2477
|
+
return /*html*/ `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
2478
2478
|
},
|
|
2479
2479
|
/**
|
|
2480
2480
|
* 获取动画层HTML
|
|
@@ -2502,23 +2502,10 @@ System.register('pops', [], (function (exports) {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
let hasBottomBtn = bottomBtnHTML.trim() === "" ? false : true;
|
|
2504
2504
|
return /*html*/ `
|
|
2505
|
-
<div
|
|
2506
|
-
class="pops-anim"
|
|
2507
|
-
anim="${__config.animation || ""}"
|
|
2508
|
-
style="${popsAnimStyle}"
|
|
2509
|
-
data-guid="${guid}">
|
|
2510
|
-
${config.style != null
|
|
2505
|
+
<div class="pops-anim" anim="${__config.animation || ""}" style="${popsAnimStyle}" data-guid="${guid}">${config.style != null
|
|
2511
2506
|
? `<style tyle="text/css">${config.style}</style>`
|
|
2512
2507
|
: ""}
|
|
2513
|
-
<div
|
|
2514
|
-
class="pops ${config.class || ""}"
|
|
2515
|
-
data-bottom-btn="${hasBottomBtn}"
|
|
2516
|
-
type-value="${type}"
|
|
2517
|
-
style="${popsStyle}"
|
|
2518
|
-
position="${popsPosition}"
|
|
2519
|
-
data-guid="${guid}">
|
|
2520
|
-
${html}
|
|
2521
|
-
</div>
|
|
2508
|
+
<div class="pops ${config.class || ""}" data-bottom-btn="${hasBottomBtn}" type-value="${type}" style="${popsStyle}" position="${popsPosition}" data-guid="${guid}">${html}</div>
|
|
2522
2509
|
</div>`;
|
|
2523
2510
|
},
|
|
2524
2511
|
/**
|
|
@@ -2543,22 +2530,20 @@ System.register('pops', [], (function (exports) {
|
|
|
2543
2530
|
let topRightButtonHTML = "";
|
|
2544
2531
|
__config_iframe.topRightButton.split("|").forEach((item) => {
|
|
2545
2532
|
item = item.toLowerCase();
|
|
2546
|
-
topRightButtonHTML += `
|
|
2533
|
+
topRightButtonHTML += /*html*/ `
|
|
2547
2534
|
<button class="pops-header-control" type="${item}">
|
|
2548
2535
|
<i class="pops-icon">${pops.config.iconSVG[item]}</i>
|
|
2549
2536
|
</button>`;
|
|
2550
2537
|
});
|
|
2551
|
-
resultHTML = `
|
|
2552
|
-
<div class="pops-header-controls" data-margin
|
|
2553
|
-
${topRightButtonHTML}
|
|
2554
|
-
</div>`;
|
|
2538
|
+
resultHTML = /*html*/ `
|
|
2539
|
+
<div class="pops-header-controls" data-margin>${topRightButtonHTML}</div>`;
|
|
2555
2540
|
}
|
|
2556
2541
|
else {
|
|
2557
2542
|
if (__config_confirm.btn?.close?.enable) {
|
|
2558
|
-
closeHTML = `
|
|
2543
|
+
closeHTML = /*html*/ `
|
|
2559
2544
|
<div class="pops-header-controls">
|
|
2560
2545
|
<button class="pops-header-control" type="close" data-header>
|
|
2561
|
-
|
|
2546
|
+
<i class="pops-icon">${pops.config.iconSVG["close"]}</i>
|
|
2562
2547
|
</button>
|
|
2563
2548
|
</div>`;
|
|
2564
2549
|
}
|
|
@@ -2615,20 +2600,15 @@ System.register('pops', [], (function (exports) {
|
|
|
2615
2600
|
iconHTML = okIcon;
|
|
2616
2601
|
}
|
|
2617
2602
|
iconHTML = iconHTML || "";
|
|
2618
|
-
okIconHTML =
|
|
2619
|
-
<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">
|
|
2620
|
-
${iconHTML}
|
|
2621
|
-
</i>`;
|
|
2603
|
+
okIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">${iconHTML}</i>`;
|
|
2622
2604
|
}
|
|
2623
|
-
okHTML = `
|
|
2605
|
+
okHTML = /*html*/ `
|
|
2624
2606
|
<button
|
|
2625
2607
|
class="pops-${type}-btn-ok ${okButtonSizeClassName}"
|
|
2626
2608
|
type="${__config_confirm.btn.ok?.type}"
|
|
2627
2609
|
data-has-icon="${(__config_confirm.btn.ok.icon || "") !== ""}"
|
|
2628
2610
|
data-rightIcon="${__config_confirm.btn.ok?.rightIcon}"
|
|
2629
|
-
>
|
|
2630
|
-
${okIconHTML}
|
|
2631
|
-
<span>${config.btn.ok.text}</span>
|
|
2611
|
+
>${okIconHTML}<span>${config.btn.ok.text}</span>
|
|
2632
2612
|
</button>`;
|
|
2633
2613
|
}
|
|
2634
2614
|
if (__config_confirm.btn?.cancel?.enable) {
|
|
@@ -2654,20 +2634,15 @@ System.register('pops', [], (function (exports) {
|
|
|
2654
2634
|
iconHTML = cancelIcon;
|
|
2655
2635
|
}
|
|
2656
2636
|
iconHTML = iconHTML || "";
|
|
2657
|
-
cancelIconHTML =
|
|
2658
|
-
<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">
|
|
2659
|
-
${iconHTML}
|
|
2660
|
-
</i>`;
|
|
2637
|
+
cancelIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">${iconHTML}</i>`;
|
|
2661
2638
|
}
|
|
2662
|
-
cancelHTML = `
|
|
2639
|
+
cancelHTML = /*html*/ `
|
|
2663
2640
|
<button
|
|
2664
2641
|
class="pops-${type}-btn-cancel ${cancelButtonSizeClassName}"
|
|
2665
2642
|
type="${__config_confirm.btn.cancel.type}"
|
|
2666
2643
|
data-has-icon="${(__config_confirm.btn.cancel.icon || "") !== ""}"
|
|
2667
2644
|
data-rightIcon="${__config_confirm.btn.cancel.rightIcon}"
|
|
2668
|
-
>
|
|
2669
|
-
${cancelIconHTML}
|
|
2670
|
-
<span>${__config_confirm.btn.cancel.text}</span>
|
|
2645
|
+
>${cancelIconHTML}<span>${__config_confirm.btn.cancel.text}</span>
|
|
2671
2646
|
</button>`;
|
|
2672
2647
|
}
|
|
2673
2648
|
if (__config_confirm.btn?.other?.enable) {
|
|
@@ -2690,20 +2665,15 @@ System.register('pops', [], (function (exports) {
|
|
|
2690
2665
|
iconHTML = pops.config.iconSVG[otherIcon];
|
|
2691
2666
|
}
|
|
2692
2667
|
iconHTML = iconHTML || "";
|
|
2693
|
-
otherIconHTML =
|
|
2694
|
-
<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">
|
|
2695
|
-
${iconHTML}
|
|
2696
|
-
</i>`;
|
|
2668
|
+
otherIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">${iconHTML}</i>`;
|
|
2697
2669
|
}
|
|
2698
|
-
ohterHTML = `
|
|
2670
|
+
ohterHTML = /*html*/ `
|
|
2699
2671
|
<button
|
|
2700
2672
|
class="pops-${type}-btn-other ${otherButtonSizeClassName}"
|
|
2701
2673
|
type="${__config_confirm.btn.other.type}"
|
|
2702
2674
|
data-has-icon="${(__config_confirm.btn.other.icon || "") !== ""}"
|
|
2703
2675
|
data-rightIcon="${__config_confirm.btn.other.rightIcon}"
|
|
2704
|
-
>
|
|
2705
|
-
${otherIconHTML}
|
|
2706
|
-
<span>${__config_confirm.btn.other.text}</span>
|
|
2676
|
+
>${otherIconHTML}<span>${__config_confirm.btn.other.text}</span>
|
|
2707
2677
|
</button>`;
|
|
2708
2678
|
}
|
|
2709
2679
|
if (__config_confirm.btn.merge) {
|
|
@@ -2714,33 +2684,22 @@ System.register('pops', [], (function (exports) {
|
|
|
2714
2684
|
else {
|
|
2715
2685
|
flexStyle += "flex-direction: row;";
|
|
2716
2686
|
}
|
|
2717
|
-
resultHTML = `
|
|
2718
|
-
<div class="pops-${type}-btn" style="${btnStyle}"
|
|
2719
|
-
${ohterHTML}
|
|
2720
|
-
<div
|
|
2687
|
+
resultHTML = /*html*/ `
|
|
2688
|
+
<div class="pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
|
|
2721
2689
|
class="pops-${type}-btn-merge"
|
|
2722
|
-
style="${flexStyle}">
|
|
2723
|
-
${okHTML}
|
|
2724
|
-
${cancelHTML}
|
|
2725
|
-
</div>
|
|
2690
|
+
style="${flexStyle}">${okHTML}${cancelHTML}</div>
|
|
2726
2691
|
</div>
|
|
2727
2692
|
`;
|
|
2728
2693
|
}
|
|
2729
2694
|
else {
|
|
2730
|
-
resultHTML =
|
|
2731
|
-
<div class="pops-${type}-btn" style="${btnStyle}">
|
|
2732
|
-
${okHTML}
|
|
2733
|
-
${cancelHTML}
|
|
2734
|
-
${ohterHTML}
|
|
2735
|
-
</div>
|
|
2736
|
-
`;
|
|
2695
|
+
resultHTML = /*html*/ `<div class="pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
|
|
2737
2696
|
}
|
|
2738
2697
|
return resultHTML;
|
|
2739
2698
|
},
|
|
2740
2699
|
/**
|
|
2741
2700
|
* 获取标题style
|
|
2742
|
-
* @param type
|
|
2743
|
-
* @param config
|
|
2701
|
+
* @param type 弹窗类型
|
|
2702
|
+
* @param config 弹窗配置
|
|
2744
2703
|
*/
|
|
2745
2704
|
getHeaderStyle(type, config) {
|
|
2746
2705
|
return {
|
|
@@ -2750,8 +2709,8 @@ System.register('pops', [], (function (exports) {
|
|
|
2750
2709
|
},
|
|
2751
2710
|
/**
|
|
2752
2711
|
* 获取内容style
|
|
2753
|
-
* @param type
|
|
2754
|
-
* @param config
|
|
2712
|
+
* @param type 弹窗类型
|
|
2713
|
+
* @param config 弹窗配置
|
|
2755
2714
|
*/
|
|
2756
2715
|
getContentStyle(type, config) {
|
|
2757
2716
|
return {
|
|
@@ -3295,21 +3254,12 @@ System.register('pops', [], (function (exports) {
|
|
|
3295
3254
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3296
3255
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3297
3256
|
/*html*/ `
|
|
3298
|
-
<div
|
|
3299
|
-
class="pops-alert-title"
|
|
3300
|
-
style="text-align: ${config.title.position};
|
|
3301
|
-
${headerStyle}">
|
|
3302
|
-
${config.title.html
|
|
3257
|
+
<div class="pops-alert-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3303
3258
|
? config.title.text
|
|
3304
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3305
|
-
|
|
3306
|
-
</div>
|
|
3307
|
-
<div class="pops-alert-content" style="${contentStyle}">
|
|
3308
|
-
${config.content.html
|
|
3259
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3260
|
+
<div class="pops-alert-content" style="${contentStyle}">${config.content.html
|
|
3309
3261
|
? config.content.text
|
|
3310
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
3311
|
-
</div>
|
|
3312
|
-
${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3262
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3313
3263
|
/**
|
|
3314
3264
|
* 弹窗的主元素,包括动画层
|
|
3315
3265
|
*/
|
|
@@ -3486,22 +3436,12 @@ System.register('pops', [], (function (exports) {
|
|
|
3486
3436
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3487
3437
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3488
3438
|
/*html*/ `
|
|
3489
|
-
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}"
|
|
3490
|
-
${config.title.html
|
|
3439
|
+
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3491
3440
|
? config.title.text
|
|
3492
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3493
|
-
|
|
3494
|
-
</div>
|
|
3495
|
-
<div class="pops-confirm-content" style="${contentStyle}">
|
|
3496
|
-
${config.content.html
|
|
3441
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3442
|
+
<div class="pops-confirm-content" style="${contentStyle}">${config.content.html
|
|
3497
3443
|
? config.content.text
|
|
3498
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
3499
|
-
|
|
3500
|
-
</div>
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
${bottomBtnHTML}
|
|
3504
|
-
`, bottomBtnHTML, zIndex);
|
|
3444
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3505
3445
|
/**
|
|
3506
3446
|
* 弹窗的主元素,包括动画层
|
|
3507
3447
|
*/
|
|
@@ -3683,14 +3623,10 @@ System.register('pops', [], (function (exports) {
|
|
|
3683
3623
|
let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3684
3624
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3685
3625
|
/*html*/ `
|
|
3686
|
-
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}"
|
|
3687
|
-
${config.title.html
|
|
3626
|
+
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3688
3627
|
? config.title.text
|
|
3689
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3690
|
-
${
|
|
3691
|
-
</div>
|
|
3692
|
-
<div class="pops-prompt-content" style="${contentPStyle}">
|
|
3693
|
-
${config.content.row
|
|
3628
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3629
|
+
<div class="pops-prompt-content" style="${contentPStyle}">${config.content.row
|
|
3694
3630
|
? '<textarea pops="" placeholder="' +
|
|
3695
3631
|
config.content.placeholder +
|
|
3696
3632
|
'"></textarea>'
|
|
@@ -3698,10 +3634,7 @@ System.register('pops', [], (function (exports) {
|
|
|
3698
3634
|
config.content.placeholder +
|
|
3699
3635
|
'" type="' +
|
|
3700
3636
|
(config.content.password ? "password" : "text") +
|
|
3701
|
-
'">'}
|
|
3702
|
-
</div>
|
|
3703
|
-
${bottomBtnHTML}
|
|
3704
|
-
`, bottomBtnHTML, zIndex);
|
|
3637
|
+
'">'}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3705
3638
|
/**
|
|
3706
3639
|
* 弹窗的主元素,包括动画层
|
|
3707
3640
|
*/
|
|
@@ -3814,9 +3747,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3814
3747
|
let { contentPStyle } = PopsElementHandler.getContentStyle("loading", config);
|
|
3815
3748
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3816
3749
|
/*html*/ `
|
|
3817
|
-
<div class="pops-loading-content"
|
|
3818
|
-
|
|
3819
|
-
? `
|
|
3750
|
+
<div class="pops-loading-content">${config.addIndexCSS
|
|
3751
|
+
? /*html*/ `
|
|
3820
3752
|
<style data-model-name="index">${pops.config.cssText.index}</style>
|
|
3821
3753
|
<style data-model-name="anim">${pops.config.cssText.anim}</style>
|
|
3822
3754
|
<style data-model-name="common">${pops.config.cssText.common}</style>
|
|
@@ -3826,9 +3758,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3826
3758
|
${pops.config.cssText.loadingCSS}
|
|
3827
3759
|
</style>
|
|
3828
3760
|
${config.style != null ? `<style>${config.style}</style>` : ""}
|
|
3829
|
-
|
|
3830
|
-
</div
|
|
3831
|
-
`, "", zIndex);
|
|
3761
|
+
<p pops style="${contentPStyle}">${config.content.text}</p>
|
|
3762
|
+
</div>`, "", zIndex);
|
|
3832
3763
|
/**
|
|
3833
3764
|
* 弹窗的主元素,包括动画层
|
|
3834
3765
|
*/
|
|
@@ -3962,27 +3893,16 @@ System.register('pops', [], (function (exports) {
|
|
|
3962
3893
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
3963
3894
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3964
3895
|
/*html*/ `
|
|
3965
|
-
<div
|
|
3966
|
-
class="pops-iframe-title"
|
|
3967
|
-
style="text-align: ${config.title.position};${headerStyle}"
|
|
3968
|
-
>
|
|
3969
|
-
${config.title.html
|
|
3896
|
+
<div class="pops-iframe-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3970
3897
|
? titleText
|
|
3971
|
-
: `<p pops style="${headerPStyle}">${titleText}</p>`}
|
|
3972
|
-
|
|
3973
|
-
</div>
|
|
3974
|
-
<div class="pops-iframe-content">
|
|
3898
|
+
: `<p pops style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
|
|
3899
|
+
<div class="pops-iframe-content">
|
|
3975
3900
|
<div class="pops-iframe-content-global-loading"></div>
|
|
3976
|
-
<iframe
|
|
3977
|
-
src="${config.url}"
|
|
3978
|
-
pops
|
|
3979
|
-
${config.sandbox
|
|
3901
|
+
<iframe src="${config.url}" pops ${config.sandbox
|
|
3980
3902
|
? "sandbox='allow-forms allow-same-origin allow-scripts'"
|
|
3981
3903
|
: ""}>
|
|
3982
3904
|
</iframe>
|
|
3983
|
-
|
|
3984
|
-
${config.loading.enable ? iframeLoadingHTML : ""}
|
|
3985
|
-
`, "", zIndex);
|
|
3905
|
+
</div>${config.loading.enable ? iframeLoadingHTML : ""}`, "", zIndex);
|
|
3986
3906
|
/**
|
|
3987
3907
|
* 弹窗的主元素,包括动画层
|
|
3988
3908
|
*/
|
|
@@ -4288,29 +4208,14 @@ System.register('pops', [], (function (exports) {
|
|
|
4288
4208
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4289
4209
|
/*html*/ `
|
|
4290
4210
|
${config.title.enable
|
|
4291
|
-
? `
|
|
4292
|
-
<div class="pops-${PopsType}-title" style="${headerStyle}"
|
|
4293
|
-
${config.title.html
|
|
4211
|
+
? /*html*/ `
|
|
4212
|
+
<div class="pops-${PopsType}-title" style="${headerStyle}">${config.title.html
|
|
4294
4213
|
? config.title.text
|
|
4295
|
-
: `<p
|
|
4296
|
-
pops
|
|
4297
|
-
style="
|
|
4298
|
-
width: 100%;
|
|
4299
|
-
text-align: ${config.title.position};
|
|
4300
|
-
${headerPStyle}">${config.title.text}</p>`}
|
|
4301
|
-
${headerBtnHTML}
|
|
4302
|
-
</div>
|
|
4303
|
-
`
|
|
4214
|
+
: /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
|
|
4304
4215
|
: ""}
|
|
4305
|
-
|
|
4306
|
-
<div class="pops-${PopsType}-content" style="${contentStyle}">
|
|
4307
|
-
${config.content.html
|
|
4216
|
+
<div class="pops-${PopsType}-content" style="${contentStyle}">${config.content.html
|
|
4308
4217
|
? config.content.text
|
|
4309
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
4310
|
-
</div>
|
|
4311
|
-
|
|
4312
|
-
${bottomBtnHTML}
|
|
4313
|
-
`, bottomBtnHTML, zIndex);
|
|
4218
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4314
4219
|
/**
|
|
4315
4220
|
* 弹窗的主元素,包括动画层
|
|
4316
4221
|
*/
|
|
@@ -4692,14 +4597,12 @@ System.register('pops', [], (function (exports) {
|
|
|
4692
4597
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4693
4598
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
4694
4599
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4695
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4696
|
-
|
|
4697
|
-
|
|
4600
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4601
|
+
/*html*/ `
|
|
4602
|
+
<div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
4698
4603
|
? config.title.text
|
|
4699
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
4700
|
-
|
|
4701
|
-
</div>
|
|
4702
|
-
<div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
|
|
4604
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
4605
|
+
<div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
|
|
4703
4606
|
<div class="pops-folder-list">
|
|
4704
4607
|
<div class="pops-folder-file-list-breadcrumb">
|
|
4705
4608
|
<div class="pops-folder-file-list-breadcrumb-primary">
|
|
@@ -4711,7 +4614,6 @@ System.register('pops', [], (function (exports) {
|
|
|
4711
4614
|
<div class="pops-folder-list-table__header-div">
|
|
4712
4615
|
<table class="pops-folder-list-table__header">
|
|
4713
4616
|
<colgroup>
|
|
4714
|
-
<!-- <col width="8%"> --!>
|
|
4715
4617
|
<col width="52%">
|
|
4716
4618
|
<col width="24%">
|
|
4717
4619
|
<col width="16%">
|
|
@@ -4782,7 +4684,6 @@ System.register('pops', [], (function (exports) {
|
|
|
4782
4684
|
<div class="pops-folder-list-table__body-div">
|
|
4783
4685
|
<table class="pops-folder-list-table__body">
|
|
4784
4686
|
<colgroup>
|
|
4785
|
-
<!-- <col width="8%"> --!>
|
|
4786
4687
|
${pops.isPhone()
|
|
4787
4688
|
? `<col width="100%">`
|
|
4788
4689
|
: `
|
|
@@ -4797,9 +4698,7 @@ System.register('pops', [], (function (exports) {
|
|
|
4797
4698
|
</table>
|
|
4798
4699
|
</div>
|
|
4799
4700
|
</div>
|
|
4800
|
-
</div
|
|
4801
|
-
${bottomBtnHTML}
|
|
4802
|
-
`, bottomBtnHTML, zIndex);
|
|
4701
|
+
</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4803
4702
|
/**
|
|
4804
4703
|
* 弹窗的主元素,包括动画层
|
|
4805
4704
|
*/
|
|
@@ -4980,9 +4879,7 @@ System.register('pops', [], (function (exports) {
|
|
|
4980
4879
|
<div class="pops-folder-list-file-name pops-mobile-folder-list-file-name cursor-p">
|
|
4981
4880
|
<img src="${fileIcon}" alt="${fileType}" class="pops-folder-list-file-icon u-file-icon u-file-icon--list">
|
|
4982
4881
|
<div>
|
|
4983
|
-
<a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">
|
|
4984
|
-
${fileName}
|
|
4985
|
-
</a>
|
|
4882
|
+
<a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">${fileName}</a>
|
|
4986
4883
|
<span>${latestTime} ${fileSize}</span>
|
|
4987
4884
|
</div>
|
|
4988
4885
|
</div>
|
|
@@ -6125,9 +6022,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6125
6022
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6126
6023
|
/*html*/ `
|
|
6127
6024
|
<div class="pops-panel-item-left-text">
|
|
6128
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6129
|
-
${leftDescriptionText}
|
|
6130
|
-
</div>
|
|
6025
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6131
6026
|
<div class="pops-panel-switch">
|
|
6132
6027
|
<input class="pops-panel-switch__input" type="checkbox">
|
|
6133
6028
|
<span class="pops-panel-switch__core">
|
|
@@ -6227,9 +6122,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6227
6122
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6228
6123
|
/*html*/ `
|
|
6229
6124
|
<div class="pops-panel-item-left-text">
|
|
6230
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6231
|
-
${leftDescriptionText}
|
|
6232
|
-
</div>
|
|
6125
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6233
6126
|
<div class="pops-panel-slider">
|
|
6234
6127
|
<input type="range" min="${formConfig.min}" max="${formConfig.max}">
|
|
6235
6128
|
</div>
|
|
@@ -6292,9 +6185,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6292
6185
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6293
6186
|
/*html*/ `
|
|
6294
6187
|
<div class="pops-panel-item-left-text" style="flex: 1;">
|
|
6295
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6296
|
-
${leftDescriptionText}
|
|
6297
|
-
</div>
|
|
6188
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6298
6189
|
<div class="pops-slider pops-slider-width">
|
|
6299
6190
|
<div class="pops-slider__runway">
|
|
6300
6191
|
<div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
|
|
@@ -6855,9 +6746,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6855
6746
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6856
6747
|
/*html*/ `
|
|
6857
6748
|
<div class="pops-panel-item-left-text">
|
|
6858
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6859
|
-
${leftDescriptionText}
|
|
6860
|
-
</div>
|
|
6749
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6861
6750
|
<div class="pops-panel-input pops-user-select-none">
|
|
6862
6751
|
<input type="${inputType}" placeholder="${formConfig.placeholder}">
|
|
6863
6752
|
</div>
|
|
@@ -7052,12 +6941,9 @@ System.register('pops', [], (function (exports) {
|
|
|
7052
6941
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7053
6942
|
/*html*/ `
|
|
7054
6943
|
<div class="pops-panel-item-left-text">
|
|
7055
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7056
|
-
${leftDescriptionText}
|
|
7057
|
-
</div>
|
|
6944
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7058
6945
|
<div class="pops-panel-textarea">
|
|
7059
|
-
<textarea placeholder="${formConfig.placeholder ?? ""}">
|
|
7060
|
-
</textarea>
|
|
6946
|
+
<textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
|
|
7061
6947
|
</div>
|
|
7062
6948
|
`);
|
|
7063
6949
|
const PopsPanelTextArea = {
|
|
@@ -7127,9 +7013,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7127
7013
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7128
7014
|
/*html*/ `
|
|
7129
7015
|
<div class="pops-panel-item-left-text">
|
|
7130
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7131
|
-
${leftDescriptionText}
|
|
7132
|
-
</div>
|
|
7016
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7133
7017
|
<div class="pops-panel-select pops-user-select-none">
|
|
7134
7018
|
<select></select>
|
|
7135
7019
|
</div>
|
|
@@ -7323,9 +7207,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7323
7207
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7324
7208
|
/*html*/ `
|
|
7325
7209
|
<div class="pops-panel-item-left-text">
|
|
7326
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7327
|
-
${leftDescriptionText}
|
|
7328
|
-
</div>
|
|
7210
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7329
7211
|
<div class="pops-panel-select-multiple">
|
|
7330
7212
|
<div class="el-select__wrapper">
|
|
7331
7213
|
<div class="el-select__selection">
|
|
@@ -7618,9 +7500,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7618
7500
|
function createSelectItemElement(dataInfo) {
|
|
7619
7501
|
let $item = popsDOMUtils.createElement("li", {
|
|
7620
7502
|
className: "select-item",
|
|
7621
|
-
innerHTML: /*html*/
|
|
7622
|
-
<span>${dataInfo.text}</span>
|
|
7623
|
-
`,
|
|
7503
|
+
innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
|
|
7624
7504
|
});
|
|
7625
7505
|
Reflect.set($item, "data-info", dataInfo);
|
|
7626
7506
|
return $item;
|
|
@@ -7882,9 +7762,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7882
7762
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7883
7763
|
/*html*/ `
|
|
7884
7764
|
<div class="pops-panel-item-left-text">
|
|
7885
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7886
|
-
${leftDescriptionText}
|
|
7887
|
-
</div>
|
|
7765
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7888
7766
|
<div class="pops-panel-button">
|
|
7889
7767
|
<button class="pops-panel-button_inner">
|
|
7890
7768
|
<i class="pops-bottom-icon"></i>
|
|
@@ -8049,13 +7927,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8049
7927
|
PopsSafeUtils.setSafeHTML($li,
|
|
8050
7928
|
/*html*/ `
|
|
8051
7929
|
<div class="pops-panel-item-left-text">
|
|
8052
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
8053
|
-
|
|
8054
|
-
</div>
|
|
8055
|
-
<div class="pops-panel-deepMenu">
|
|
8056
|
-
${rightText}
|
|
8057
|
-
${arrowRightIconHTML}
|
|
8058
|
-
</div>
|
|
7930
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7931
|
+
<div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
|
|
8059
7932
|
`);
|
|
8060
7933
|
const PopsPanelDeepMenu = {
|
|
8061
7934
|
[Symbol.toStringTag]: "PopsPanelDeepMenu",
|
|
@@ -8438,15 +8311,9 @@ System.register('pops', [], (function (exports) {
|
|
|
8438
8311
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
8439
8312
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
8440
8313
|
/*html*/ `
|
|
8441
|
-
<div
|
|
8442
|
-
class="pops-${PopsType}-title"
|
|
8443
|
-
style="text-align: ${config.title.position};
|
|
8444
|
-
${headerStyle}">
|
|
8445
|
-
${config.title.html
|
|
8314
|
+
<div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
8446
8315
|
? config.title.text
|
|
8447
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
8448
|
-
${headerBtnHTML}
|
|
8449
|
-
</div>
|
|
8316
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
8450
8317
|
<div class="pops-${PopsType}-content">
|
|
8451
8318
|
<aside class="pops-${PopsType}-aside">
|
|
8452
8319
|
<ul></ul>
|
|
@@ -8991,7 +8858,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8991
8858
|
/* 判断有无图标,有就添加进去 */
|
|
8992
8859
|
if (typeof item.icon === "string" && item.icon.trim() !== "") {
|
|
8993
8860
|
let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
|
|
8994
|
-
let iconElement = popsUtils.parseTextToDOM(
|
|
8861
|
+
let iconElement = popsUtils.parseTextToDOM(
|
|
8862
|
+
/*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
|
|
8995
8863
|
menuLiElement.appendChild(iconElement);
|
|
8996
8864
|
}
|
|
8997
8865
|
/* 插入文字 */
|
|
@@ -9008,7 +8876,9 @@ System.register('pops', [], (function (exports) {
|
|
|
9008
8876
|
return;
|
|
9009
8877
|
}
|
|
9010
8878
|
function removeElement(element) {
|
|
9011
|
-
element
|
|
8879
|
+
element
|
|
8880
|
+
.querySelectorAll("ul li")
|
|
8881
|
+
.forEach((ele) => {
|
|
9012
8882
|
if (ele?.__menuData__?.child) {
|
|
9013
8883
|
removeElement(ele.__menuData__.child);
|
|
9014
8884
|
}
|
|
@@ -9225,9 +9095,7 @@ System.register('pops', [], (function (exports) {
|
|
|
9225
9095
|
<style data-dynamic="true">
|
|
9226
9096
|
${this.getDynamicCSS()}
|
|
9227
9097
|
</style>
|
|
9228
|
-
<ul class="pops-${PopsType}-search-suggestion-hint">
|
|
9229
|
-
${config.toSearhNotResultHTML}
|
|
9230
|
-
</ul>
|
|
9098
|
+
<ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
|
|
9231
9099
|
`,
|
|
9232
9100
|
}, {
|
|
9233
9101
|
"data-guid": guid,
|
|
@@ -9306,12 +9174,7 @@ System.register('pops', [], (function (exports) {
|
|
|
9306
9174
|
className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
|
|
9307
9175
|
"data-index": index,
|
|
9308
9176
|
"data-value": SearchSuggestion.getItemDataValue(data),
|
|
9309
|
-
innerHTML:
|
|
9310
|
-
${config.getItemHTML(data)}
|
|
9311
|
-
${config.deleteIcon.enable
|
|
9312
|
-
? SearchSuggestion.getDeleteIconHTML()
|
|
9313
|
-
: ""}
|
|
9314
|
-
`,
|
|
9177
|
+
innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
|
|
9315
9178
|
});
|
|
9316
9179
|
},
|
|
9317
9180
|
/**
|
|
@@ -10194,7 +10057,7 @@ System.register('pops', [], (function (exports) {
|
|
|
10194
10057
|
/** 配置 */
|
|
10195
10058
|
config = {
|
|
10196
10059
|
/** 版本号 */
|
|
10197
|
-
version: "2025.
|
|
10060
|
+
version: "2025.5.1",
|
|
10198
10061
|
cssText: {
|
|
10199
10062
|
/** 主CSS */
|
|
10200
10063
|
index: indexCSS,
|