@whitesev/pops 2.0.1 → 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.
@@ -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
- <i class="pops-icon">${pops.config.iconSVG["close"]}</i>
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
- ${headerBtnHTML}
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
- ${headerBtnHTML}
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
- ${headerBtnHTML}
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
- ${config.addIndexCSS
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
- <p pops style="${contentPStyle}">${config.content.text}</p>
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
- ${headerBtnHTML}
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
- </div>
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
- <div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">
4697
- ${config.title.html
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
- ${headerBtnHTML}
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>
@@ -6058,7 +5955,12 @@ System.register('pops', [], (function (exports) {
6058
5955
  return;
6059
5956
  }
6060
5957
  Object.keys(props).forEach((propName) => {
6061
- Reflect.set(element, propName, props[propName]);
5958
+ let value = props[propName];
5959
+ if (propName === "innerHTML") {
5960
+ PopsSafeUtils.setSafeHTML(element, value);
5961
+ return;
5962
+ }
5963
+ Reflect.set(element, propName, value);
6062
5964
  });
6063
5965
  },
6064
5966
  /**
@@ -6120,9 +6022,7 @@ System.register('pops', [], (function (exports) {
6120
6022
  PopsSafeUtils.setSafeHTML(liElement,
6121
6023
  /*html*/ `
6122
6024
  <div class="pops-panel-item-left-text">
6123
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6124
- ${leftDescriptionText}
6125
- </div>
6025
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6126
6026
  <div class="pops-panel-switch">
6127
6027
  <input class="pops-panel-switch__input" type="checkbox">
6128
6028
  <span class="pops-panel-switch__core">
@@ -6222,9 +6122,7 @@ System.register('pops', [], (function (exports) {
6222
6122
  PopsSafeUtils.setSafeHTML(liElement,
6223
6123
  /*html*/ `
6224
6124
  <div class="pops-panel-item-left-text">
6225
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6226
- ${leftDescriptionText}
6227
- </div>
6125
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6228
6126
  <div class="pops-panel-slider">
6229
6127
  <input type="range" min="${formConfig.min}" max="${formConfig.max}">
6230
6128
  </div>
@@ -6287,9 +6185,7 @@ System.register('pops', [], (function (exports) {
6287
6185
  PopsSafeUtils.setSafeHTML(liElement,
6288
6186
  /*html*/ `
6289
6187
  <div class="pops-panel-item-left-text" style="flex: 1;">
6290
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6291
- ${leftDescriptionText}
6292
- </div>
6188
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6293
6189
  <div class="pops-slider pops-slider-width">
6294
6190
  <div class="pops-slider__runway">
6295
6191
  <div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
@@ -6850,9 +6746,7 @@ System.register('pops', [], (function (exports) {
6850
6746
  PopsSafeUtils.setSafeHTML(liElement,
6851
6747
  /*html*/ `
6852
6748
  <div class="pops-panel-item-left-text">
6853
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
6854
- ${leftDescriptionText}
6855
- </div>
6749
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
6856
6750
  <div class="pops-panel-input pops-user-select-none">
6857
6751
  <input type="${inputType}" placeholder="${formConfig.placeholder}">
6858
6752
  </div>
@@ -7047,12 +6941,9 @@ System.register('pops', [], (function (exports) {
7047
6941
  PopsSafeUtils.setSafeHTML(liElement,
7048
6942
  /*html*/ `
7049
6943
  <div class="pops-panel-item-left-text">
7050
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7051
- ${leftDescriptionText}
7052
- </div>
6944
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7053
6945
  <div class="pops-panel-textarea">
7054
- <textarea placeholder="${formConfig.placeholder ?? ""}">
7055
- </textarea>
6946
+ <textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
7056
6947
  </div>
7057
6948
  `);
7058
6949
  const PopsPanelTextArea = {
@@ -7122,9 +7013,7 @@ System.register('pops', [], (function (exports) {
7122
7013
  PopsSafeUtils.setSafeHTML(liElement,
7123
7014
  /*html*/ `
7124
7015
  <div class="pops-panel-item-left-text">
7125
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7126
- ${leftDescriptionText}
7127
- </div>
7016
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7128
7017
  <div class="pops-panel-select pops-user-select-none">
7129
7018
  <select></select>
7130
7019
  </div>
@@ -7318,9 +7207,7 @@ System.register('pops', [], (function (exports) {
7318
7207
  PopsSafeUtils.setSafeHTML(liElement,
7319
7208
  /*html*/ `
7320
7209
  <div class="pops-panel-item-left-text">
7321
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7322
- ${leftDescriptionText}
7323
- </div>
7210
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7324
7211
  <div class="pops-panel-select-multiple">
7325
7212
  <div class="el-select__wrapper">
7326
7213
  <div class="el-select__selection">
@@ -7613,9 +7500,7 @@ System.register('pops', [], (function (exports) {
7613
7500
  function createSelectItemElement(dataInfo) {
7614
7501
  let $item = popsDOMUtils.createElement("li", {
7615
7502
  className: "select-item",
7616
- innerHTML: /*html*/ `
7617
- <span>${dataInfo.text}</span>
7618
- `,
7503
+ innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
7619
7504
  });
7620
7505
  Reflect.set($item, "data-info", dataInfo);
7621
7506
  return $item;
@@ -7877,9 +7762,7 @@ System.register('pops', [], (function (exports) {
7877
7762
  PopsSafeUtils.setSafeHTML(liElement,
7878
7763
  /*html*/ `
7879
7764
  <div class="pops-panel-item-left-text">
7880
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
7881
- ${leftDescriptionText}
7882
- </div>
7765
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7883
7766
  <div class="pops-panel-button">
7884
7767
  <button class="pops-panel-button_inner">
7885
7768
  <i class="pops-bottom-icon"></i>
@@ -8044,13 +7927,8 @@ System.register('pops', [], (function (exports) {
8044
7927
  PopsSafeUtils.setSafeHTML($li,
8045
7928
  /*html*/ `
8046
7929
  <div class="pops-panel-item-left-text">
8047
- <p class="pops-panel-item-left-main-text">${formConfig.text}</p>
8048
- ${leftDescriptionText}
8049
- </div>
8050
- <div class="pops-panel-deepMenu">
8051
- ${rightText}
8052
- ${arrowRightIconHTML}
8053
- </div>
7930
+ <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
7931
+ <div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
8054
7932
  `);
8055
7933
  const PopsPanelDeepMenu = {
8056
7934
  [Symbol.toStringTag]: "PopsPanelDeepMenu",
@@ -8433,15 +8311,9 @@ System.register('pops', [], (function (exports) {
8433
8311
  let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
8434
8312
  let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
8435
8313
  /*html*/ `
8436
- <div
8437
- class="pops-${PopsType}-title"
8438
- style="text-align: ${config.title.position};
8439
- ${headerStyle}">
8440
- ${config.title.html
8314
+ <div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
8441
8315
  ? config.title.text
8442
- : `<p pops style="${headerPStyle}">${config.title.text}</p>`}
8443
- ${headerBtnHTML}
8444
- </div>
8316
+ : `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
8445
8317
  <div class="pops-${PopsType}-content">
8446
8318
  <aside class="pops-${PopsType}-aside">
8447
8319
  <ul></ul>
@@ -8986,7 +8858,8 @@ System.register('pops', [], (function (exports) {
8986
8858
  /* 判断有无图标,有就添加进去 */
8987
8859
  if (typeof item.icon === "string" && item.icon.trim() !== "") {
8988
8860
  let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
8989
- let iconElement = popsUtils.parseTextToDOM(`<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
8861
+ let iconElement = popsUtils.parseTextToDOM(
8862
+ /*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
8990
8863
  menuLiElement.appendChild(iconElement);
8991
8864
  }
8992
8865
  /* 插入文字 */
@@ -9003,7 +8876,9 @@ System.register('pops', [], (function (exports) {
9003
8876
  return;
9004
8877
  }
9005
8878
  function removeElement(element) {
9006
- element.querySelectorAll("ul li").forEach((ele) => {
8879
+ element
8880
+ .querySelectorAll("ul li")
8881
+ .forEach((ele) => {
9007
8882
  if (ele?.__menuData__?.child) {
9008
8883
  removeElement(ele.__menuData__.child);
9009
8884
  }
@@ -9220,9 +9095,7 @@ System.register('pops', [], (function (exports) {
9220
9095
  <style data-dynamic="true">
9221
9096
  ${this.getDynamicCSS()}
9222
9097
  </style>
9223
- <ul class="pops-${PopsType}-search-suggestion-hint">
9224
- ${config.toSearhNotResultHTML}
9225
- </ul>
9098
+ <ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
9226
9099
  `,
9227
9100
  }, {
9228
9101
  "data-guid": guid,
@@ -9301,12 +9174,7 @@ System.register('pops', [], (function (exports) {
9301
9174
  className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
9302
9175
  "data-index": index,
9303
9176
  "data-value": SearchSuggestion.getItemDataValue(data),
9304
- innerHTML: `
9305
- ${config.getItemHTML(data)}
9306
- ${config.deleteIcon.enable
9307
- ? SearchSuggestion.getDeleteIconHTML()
9308
- : ""}
9309
- `,
9177
+ innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
9310
9178
  });
9311
9179
  },
9312
9180
  /**
@@ -10189,7 +10057,7 @@ System.register('pops', [], (function (exports) {
10189
10057
  /** 配置 */
10190
10058
  config = {
10191
10059
  /** 版本号 */
10192
- version: "2025.3.2",
10060
+ version: "2025.5.1",
10193
10061
  cssText: {
10194
10062
  /** 主CSS */
10195
10063
  index: indexCSS,