@whitesev/pops 2.1.3 → 2.1.5

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.
Files changed (134) hide show
  1. package/dist/index.amd.js +253 -227
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +253 -227
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +253 -227
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +253 -227
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +253 -227
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +253 -227
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/GlobalConfig.d.ts +7 -2
  14. package/dist/types/src/Pops.d.ts +61 -39
  15. package/dist/types/src/{Core.d.ts → PopsCore.d.ts} +4 -3
  16. package/dist/types/src/PopsIcon.d.ts +30 -2
  17. package/dist/types/src/PopsLayer.d.ts +3 -1
  18. package/dist/types/src/components/alert/config.d.ts +1 -1
  19. package/dist/types/src/components/alert/index.d.ts +1 -1
  20. package/dist/types/src/components/alert/{indexType.d.ts → types/index.d.ts} +2 -2
  21. package/dist/types/src/components/confirm/config.d.ts +1 -1
  22. package/dist/types/src/components/confirm/index.d.ts +1 -1
  23. package/dist/types/src/components/confirm/{indexType.d.ts → types/index.d.ts} +1 -1
  24. package/dist/types/src/components/drawer/config.d.ts +1 -1
  25. package/dist/types/src/components/drawer/index.d.ts +1 -1
  26. package/dist/types/src/components/drawer/{indexType.d.ts → types/index.d.ts} +1 -1
  27. package/dist/types/src/components/folder/config.d.ts +1 -1
  28. package/dist/types/src/components/folder/index.d.ts +1 -1
  29. package/dist/types/src/components/folder/{indexType.d.ts → types/index.d.ts} +1 -1
  30. package/dist/types/src/components/iframe/config.d.ts +1 -1
  31. package/dist/types/src/components/iframe/index.d.ts +1 -1
  32. package/dist/types/src/components/iframe/{indexType.d.ts → types/index.d.ts} +2 -2
  33. package/dist/types/src/components/loading/config.d.ts +1 -1
  34. package/dist/types/src/components/loading/index.d.ts +1 -1
  35. package/dist/types/src/components/loading/{indexType.d.ts → types/index.d.ts} +1 -1
  36. package/dist/types/src/components/panel/config.d.ts +1 -1
  37. package/dist/types/src/components/panel/{PanelHandleContentDetails.d.ts → handlerComponents.d.ts} +39 -28
  38. package/dist/types/src/components/panel/index.d.ts +16 -2
  39. package/dist/types/src/components/panel/{buttonType.d.ts → types/components-button.d.ts} +3 -3
  40. package/dist/types/src/components/panel/{commonType.d.ts → types/components-common.d.ts} +2 -2
  41. package/dist/types/src/components/panel/{deepMenuType.d.ts → types/components-deepMenu.d.ts} +3 -3
  42. package/dist/types/src/components/panel/{formsType.d.ts → types/components-forms.d.ts} +2 -2
  43. package/dist/types/src/components/panel/{inputType.d.ts → types/components-input.d.ts} +1 -1
  44. package/dist/types/src/components/panel/{ownType.d.ts → types/components-own.d.ts} +1 -1
  45. package/dist/types/src/components/panel/{selectType.d.ts → types/components-select.d.ts} +3 -3
  46. package/dist/types/src/components/panel/{selectMultipleType.d.ts → types/components-selectMultiple.d.ts} +2 -2
  47. package/dist/types/src/components/panel/{sliderType.d.ts → types/components-slider.d.ts} +1 -1
  48. package/dist/types/src/components/panel/{switchType.d.ts → types/components-switch.d.ts} +1 -1
  49. package/dist/types/src/components/panel/{textareaType.d.ts → types/components-textarea.d.ts} +1 -1
  50. package/dist/types/src/components/panel/{indexType.d.ts → types/index.d.ts} +26 -12
  51. package/dist/types/src/components/prompt/config.d.ts +1 -1
  52. package/dist/types/src/components/prompt/index.d.ts +1 -1
  53. package/dist/types/src/components/prompt/{indexType.d.ts → types/index.d.ts} +1 -1
  54. package/dist/types/src/components/rightClickMenu/config.d.ts +1 -1
  55. package/dist/types/src/components/rightClickMenu/index.d.ts +2 -2
  56. package/dist/types/src/components/rightClickMenu/{indexType.d.ts → types/index.d.ts} +2 -2
  57. package/dist/types/src/components/searchSuggestion/config.d.ts +1 -1
  58. package/dist/types/src/components/searchSuggestion/index.d.ts +2 -2
  59. package/dist/types/src/components/searchSuggestion/{indexType.d.ts → types/index.d.ts} +1 -1
  60. package/dist/types/src/components/tooltip/config.d.ts +1 -1
  61. package/dist/types/src/components/tooltip/index.d.ts +2 -2
  62. package/dist/types/src/components/tooltip/{indexType.d.ts → types/index.d.ts} +1 -1
  63. package/dist/types/src/handler/PopsHandler.d.ts +8 -8
  64. package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +1 -1
  65. package/dist/types/src/types/button.d.ts +3 -2
  66. package/dist/types/src/types/event.d.ts +4 -3
  67. package/dist/types/src/types/global.d.ts +4 -4
  68. package/dist/types/src/types/main.d.ts +18 -10
  69. package/dist/types/src/types/mask.d.ts +8 -0
  70. package/dist/types/src/{Config.d.ts → utils/PopsDOMUtilsEventsConfig.d.ts} +3 -0
  71. package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
  72. package/package.json +9 -10
  73. package/src/GlobalConfig.ts +6 -5
  74. package/src/Pops.ts +17 -17
  75. package/src/{Core.ts → PopsCore.ts} +13 -14
  76. package/src/PopsIcon.ts +34 -32
  77. package/src/PopsLayer.ts +8 -7
  78. package/src/components/alert/config.ts +1 -1
  79. package/src/components/alert/index.ts +1 -1
  80. package/src/components/alert/{indexType.ts → types/index.ts} +2 -2
  81. package/src/components/confirm/config.ts +1 -1
  82. package/src/components/confirm/index.ts +1 -1
  83. package/src/components/confirm/{indexType.ts → types/index.ts} +1 -1
  84. package/src/components/drawer/config.ts +1 -1
  85. package/src/components/drawer/index.ts +1 -1
  86. package/src/components/drawer/{indexType.ts → types/index.ts} +1 -1
  87. package/src/components/folder/config.ts +1 -1
  88. package/src/components/folder/index.ts +1 -1
  89. package/src/components/folder/{indexType.ts → types/index.ts} +1 -1
  90. package/src/components/iframe/config.ts +1 -1
  91. package/src/components/iframe/index.ts +4 -4
  92. package/src/components/iframe/{indexType.ts → types/index.ts} +2 -2
  93. package/src/components/loading/config.ts +1 -1
  94. package/src/components/loading/index.ts +1 -1
  95. package/src/components/loading/{indexType.ts → types/index.ts} +1 -1
  96. package/src/components/panel/config.ts +1 -1
  97. package/src/components/panel/{PanelHandleContentDetails.ts → handlerComponents.ts} +287 -258
  98. package/src/components/panel/index.ts +23 -5
  99. package/src/components/panel/{buttonType.ts → types/components-button.ts} +5 -4
  100. package/src/components/panel/{commonType.ts → types/components-common.ts} +2 -2
  101. package/src/components/panel/{deepMenuType.ts → types/components-deepMenu.ts} +3 -3
  102. package/src/components/panel/{formsType.ts → types/components-forms.ts} +2 -2
  103. package/src/components/panel/{inputType.ts → types/components-input.ts} +1 -1
  104. package/src/components/panel/{ownType.ts → types/components-own.ts} +1 -1
  105. package/src/components/panel/{selectType.ts → types/components-select.ts} +3 -3
  106. package/src/components/panel/{selectMultipleType.ts → types/components-selectMultiple.ts} +2 -2
  107. package/src/components/panel/{sliderType.ts → types/components-slider.ts} +1 -1
  108. package/src/components/panel/{switchType.ts → types/components-switch.ts} +1 -1
  109. package/src/components/panel/{textareaType.ts → types/components-textarea.ts} +1 -1
  110. package/src/components/panel/{indexType.ts → types/index.ts} +28 -12
  111. package/src/components/prompt/config.ts +1 -1
  112. package/src/components/prompt/index.ts +1 -1
  113. package/src/components/prompt/{indexType.ts → types/index.ts} +1 -1
  114. package/src/components/rightClickMenu/config.ts +1 -1
  115. package/src/components/rightClickMenu/index.ts +2 -2
  116. package/src/components/rightClickMenu/{indexType.ts → types/index.ts} +2 -2
  117. package/src/components/searchSuggestion/config.ts +1 -1
  118. package/src/components/searchSuggestion/index.ts +1 -1
  119. package/src/components/searchSuggestion/{indexType.ts → types/index.ts} +1 -1
  120. package/src/components/tooltip/config.ts +1 -1
  121. package/src/components/tooltip/index.ts +1 -1
  122. package/src/components/tooltip/{indexType.ts → types/index.ts} +1 -1
  123. package/src/handler/PopsElementHandler.ts +3 -3
  124. package/src/handler/PopsHandler.ts +26 -26
  125. package/src/types/PopsDOMUtilsEventType.d.ts +1 -1
  126. package/src/types/button.d.ts +3 -2
  127. package/src/types/event.d.ts +4 -3
  128. package/src/types/global.d.ts +4 -4
  129. package/src/types/main.d.ts +18 -10
  130. package/src/types/mask.d.ts +8 -0
  131. package/src/utils/PopsDOMUtils.ts +2 -2
  132. package/src/{Config.ts → utils/PopsDOMUtilsEventsConfig.ts} +3 -0
  133. package/src/utils/PopsInstanceUtils.ts +12 -12
  134. package/src/utils/PopsUtils.ts +2 -5
package/dist/index.amd.js CHANGED
@@ -1,13 +1,17 @@
1
1
  define((function () { 'use strict';
2
2
 
3
+ /**
4
+ * 存储在元素属性上的事件名
5
+ */
3
6
  const SymbolEvents = Symbol("events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1));
4
7
 
5
- const PopsCoreEnv = {
8
+ const PopsCoreDefaultEnv = {
6
9
  document: document,
7
10
  window: window,
8
11
  globalThis: globalThis,
9
12
  self: self,
10
13
  };
14
+ const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
11
15
  const PopsCore = {
12
16
  get document() {
13
17
  return PopsCoreEnv.document;
@@ -329,8 +333,7 @@ define((function () { 'use strict';
329
333
  if (target === PopsCore.self) {
330
334
  return true;
331
335
  }
332
- if (typeof unsafeWindow !== "undefined" &&
333
- target === unsafeWindow) {
336
+ if (typeof unsafeWindow !== "undefined" && target === unsafeWindow) {
334
337
  return true;
335
338
  }
336
339
  if (target?.Math?.toString() !== "[object Math]") {
@@ -2228,17 +2231,18 @@ define((function () { 'use strict';
2228
2231
  }
2229
2232
  const popsDOMUtils = new PopsDOMUtils();
2230
2233
 
2231
- const PopsLayer = {
2234
+ const PopsLayerData = {
2232
2235
  alert: [],
2233
2236
  confirm: [],
2234
- prompt: [],
2235
- loading: [],
2236
- iframe: [],
2237
- tooltip: [],
2238
2237
  drawer: [],
2239
2238
  folder: [],
2239
+ iframe: [],
2240
+ loading: [],
2240
2241
  panel: [],
2242
+ prompt: [],
2241
2243
  rightClickMenu: [],
2244
+ // 没有 searchSuggestion
2245
+ tooltip: [],
2242
2246
  };
2243
2247
 
2244
2248
  var indexCSS = "@charset \"utf-8\";\r\n.pops * {\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\t-webkit-tap-highlight-color: transparent;\r\n\t/* 代替::-webkit-scrollbar */\r\n\tscrollbar-width: thin;\r\n}\r\n.pops {\r\n\t--pops-bg-opacity: 1;\r\n\t--pops-bd-opacity: 1;\r\n\t--pops-font-size: 16px;\r\n\tinterpolate-size: allow-keywords;\r\n}\r\n.pops-mask {\r\n\t--pops-mask-bg-opacity: 0.4;\r\n}\r\n.pops {\r\n\tbackground-color: rgb(255, 255, 255, var(--pops-bg-opacity));\r\n\tborder-radius: 4px;\r\n\tborder: 1px solid rgb(235, 238, 245, var(--pops-bd-opacity));\r\n\tfont-size: var(--pops-font-size);\r\n\tline-height: normal;\r\n\tbox-shadow: 0 0 12px rgba(0, 0, 0, 0.12);\r\n\tbox-sizing: border-box;\r\n\toverflow: hidden;\r\n\ttransition: all 0.35s;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n.pops-anim {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n.pops-anim[anim=\"\"] {\r\n\ttop: unset;\r\n\tright: unset;\r\n\tbottom: unset;\r\n\tleft: unset;\r\n\twidth: unset;\r\n\theight: unset;\r\n\ttransition: none;\r\n}\r\n/* 底部图标动画和样式 */\r\n.pops i.pops-bottom-icon[is-loading=\"true\"] {\r\n\tanimation: rotating 2s linear infinite;\r\n}\r\n.pops i.pops-bottom-icon {\r\n\theight: 1em;\r\n\twidth: 1em;\r\n\tline-height: normal;\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tfill: currentColor;\r\n\tcolor: inherit;\r\n\tfont-size: inherit;\r\n}\r\n\r\n/* 遮罩层样式 */\r\n.pops-mask {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tborder: 0;\r\n\tborder-radius: 0;\r\n\tbackground-color: rgba(0, 0, 0, var(--pops-mask-bg-opacity));\r\n\tbox-shadow: none;\r\n\ttransition: none;\r\n}\r\n\r\n.pops-header-controls button.pops-header-control[type][data-header] {\r\n\tfloat: right;\r\n\tmargin: 0 0;\r\n\toutline: 0;\r\n\tborder: 0;\r\n\tborder-color: rgb(136, 136, 136, var(--pops-bd-opacity));\r\n\tbackground-color: transparent;\r\n\tcolor: #888;\r\n\tcursor: pointer;\r\n}\r\n.pops-header-controls button.pops-header-control[type=\"max\"],\r\n.pops-header-controls button.pops-header-control[type=\"mise\"],\r\n.pops-header-controls button.pops-header-control[type=\"min\"] {\r\n\toutline: 0 !important;\r\n\tborder: 0;\r\n\tborder-color: rgb(136, 136, 136, var(--pops-bd-opacity));\r\n\tbackground-color: transparent;\r\n\tcolor: rgb(136, 136, 136);\r\n\tcursor: pointer;\r\n\ttransition: all 0.3s ease-in-out;\r\n}\r\nbutton.pops-header-control i {\r\n\tcolor: rgb(144, 147, 153);\r\n\tfont-size: inherit;\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tfill: currentColor;\r\n}\r\nbutton.pops-header-control svg {\r\n\theight: 1.25em;\r\n\twidth: 1.25em;\r\n}\r\nbutton.pops-header-control {\r\n\tright: 15px;\r\n\tpadding: 0;\r\n\tborder: none;\r\n\toutline: 0;\r\n\tbackground: 0 0;\r\n\tcursor: pointer;\r\n\tposition: unset;\r\n\tline-height: normal;\r\n}\r\nbutton.pops-header-control i:hover {\r\n\tcolor: rgb(64, 158, 255);\r\n}\r\n.pops-header-controls[data-margin] button.pops-header-control {\r\n\tmargin: 0 6px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n.pops[type-value] .pops-header-controls {\r\n\tdisplay: flex;\r\n\tgap: 6px;\r\n}\r\n\r\n/* 标题禁止选中文字 */\r\n.pops [class^=\"pops\"][class*=\"-title\"] p[pops] {\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n/* <code> */\r\n.pops code {\r\n\tfont-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\r\n\tfont-size: 0.85em;\r\n\tcolor: #000;\r\n\tbackground-color: #f0f0f0;\r\n\tborder-radius: 3px;\r\n\tborder: 0;\r\n\tpadding: 0.2em 0;\r\n\twhite-space: normal;\r\n\tbackground: #f5f5f5;\r\n\ttext-wrap: wrap;\r\n\ttext-align: left;\r\n\tword-spacing: normal;\r\n\tword-break: normal;\r\n\tword-wrap: normal;\r\n\tline-height: 1.4;\r\n\t-moz-tab-size: 8;\r\n\t-o-tab-size: 8;\r\n\ttab-size: 8;\r\n\t-webkit-hyphens: none;\r\n\t-moz-hyphens: none;\r\n\t-ms-hyphens: none;\r\n\thyphens: none;\r\n\tdirection: ltr;\r\n}\r\n\r\n.pops code::before,\r\n.pops code::after {\r\n\tletter-spacing: -0.2em;\r\n\tcontent: \"\\00a0\";\r\n}\r\n";
@@ -2433,8 +2437,8 @@ define((function () { 'use strict';
2433
2437
  function isVisibleNode($css) {
2434
2438
  return $css.position !== "static" && $css.display !== "none";
2435
2439
  }
2436
- Object.keys(PopsLayer).forEach((layerName) => {
2437
- let layerList = PopsLayer[layerName];
2440
+ Object.keys(PopsLayerData).forEach((layerName) => {
2441
+ let layerList = PopsLayerData[layerName];
2438
2442
  for (let index = 0; index < layerList.length; index++) {
2439
2443
  const layer = layerList[index];
2440
2444
  let nodeStyle = window.getComputedStyle(layer.animElement);
@@ -2982,8 +2986,7 @@ define((function () { 'use strict';
2982
2986
  let style = configValue == null
2983
2987
  ? ""
2984
2988
  : typeof configValue === "function"
2985
- ? // @ts-ignore
2986
- configValue()
2989
+ ? configValue()
2987
2990
  : configValue;
2988
2991
  if (typeof style === "string") {
2989
2992
  result.style = style;
@@ -2997,7 +3000,7 @@ define((function () { 'use strict';
2997
3000
  ? configValue()
2998
3001
  : configValue;
2999
3002
  if (typeof zIndex === "string") {
3000
- let newIndex = (zIndex = parseInt(zIndex));
3003
+ let newIndex = (zIndex = Number(zIndex));
3001
3004
  if (!isNaN(newIndex)) {
3002
3005
  result.zIndex = newIndex;
3003
3006
  }
@@ -3078,37 +3081,38 @@ define((function () { 'use strict';
3078
3081
 
3079
3082
  var SVG_arrowLeft = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\">\r\n\t<path\r\n\t\td=\"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z\"></path>\r\n</svg>\r\n";
3080
3083
 
3084
+ const PopsIconData = {
3085
+ min: SVG_min,
3086
+ mise: SVG_mise,
3087
+ max: SVG_max,
3088
+ close: SVG_close,
3089
+ edit: SVG_edit,
3090
+ share: SVG_share,
3091
+ delete: SVG_delete,
3092
+ search: SVG_search,
3093
+ upload: SVG_upload,
3094
+ loading: SVG_loading,
3095
+ next: SVG_next,
3096
+ prev: SVG_prev,
3097
+ eleme: SVG_eleme,
3098
+ elemePlus: SVG_elemePlus,
3099
+ chromeFilled: SVG_chromeFilled,
3100
+ cpu: SVG_cpu,
3101
+ videoPlay: SVG_videoPlay,
3102
+ videoPause: SVG_videoPause,
3103
+ headset: SVG_headset,
3104
+ monitor: SVG_monitor,
3105
+ documentCopy: SVG_documentCopy,
3106
+ picture: SVG_picture,
3107
+ circleClose: SVG_circleClose,
3108
+ view: SVG_view,
3109
+ hide: SVG_hide,
3110
+ keyboard: SVG_keyboard,
3111
+ arrowRight: SVG_arrowRight,
3112
+ arrowLeft: SVG_arrowLeft,
3113
+ };
3081
3114
  const PopsIcon = {
3082
- $data: {
3083
- min: SVG_min,
3084
- mise: SVG_mise,
3085
- max: SVG_max,
3086
- close: SVG_close,
3087
- edit: SVG_edit,
3088
- share: SVG_share,
3089
- delete: SVG_delete,
3090
- search: SVG_search,
3091
- upload: SVG_upload,
3092
- loading: SVG_loading,
3093
- next: SVG_next,
3094
- prev: SVG_prev,
3095
- eleme: SVG_eleme,
3096
- elemePlus: SVG_elemePlus,
3097
- chromeFilled: SVG_chromeFilled,
3098
- cpu: SVG_cpu,
3099
- videoPlay: SVG_videoPlay,
3100
- videoPause: SVG_videoPause,
3101
- headset: SVG_headset,
3102
- monitor: SVG_monitor,
3103
- documentCopy: SVG_documentCopy,
3104
- picture: SVG_picture,
3105
- circleClose: SVG_circleClose,
3106
- view: SVG_view,
3107
- hide: SVG_hide,
3108
- keyboard: SVG_keyboard,
3109
- arrowRight: SVG_arrowRight,
3110
- arrowLeft: SVG_arrowLeft,
3111
- },
3115
+ $data: PopsIconData,
3112
3116
  /**
3113
3117
  * 判断是否存在某个icon
3114
3118
  * @param iconName 图标名
@@ -3472,7 +3476,7 @@ define((function () { 'use strict';
3472
3476
  function clickEvent(event) {
3473
3477
  popsDOMUtils.preventEvent(event);
3474
3478
  // 获取该类型实例存储列表
3475
- let targetLayer = PopsLayer[details.type];
3479
+ let targetLayer = PopsLayerData[details.type];
3476
3480
  function originalRun() {
3477
3481
  if (details.config.mask.clickEvent.toClose) {
3478
3482
  /* 关闭 */
@@ -3659,13 +3663,13 @@ define((function () { 'use strict';
3659
3663
  mode: mode,
3660
3664
  guid: guid,
3661
3665
  close() {
3662
- return PopsInstanceUtils.close(mode, PopsLayer[mode], guid, config, animElement);
3666
+ return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
3663
3667
  },
3664
3668
  hide() {
3665
- return PopsInstanceUtils.hide(mode, PopsLayer[mode], guid, config, animElement, maskElement);
3669
+ return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
3666
3670
  },
3667
3671
  show() {
3668
- return PopsInstanceUtils.show(mode, PopsLayer[mode], guid, config, animElement, maskElement);
3672
+ return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
3669
3673
  },
3670
3674
  };
3671
3675
  },
@@ -3687,13 +3691,13 @@ define((function () { 'use strict';
3687
3691
  mode: mode,
3688
3692
  guid: guid,
3689
3693
  close() {
3690
- return PopsInstanceUtils.close(mode, PopsLayer[mode], guid, config, animElement);
3694
+ return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
3691
3695
  },
3692
3696
  hide() {
3693
- return PopsInstanceUtils.hide(mode, PopsLayer[mode], guid, config, animElement, maskElement);
3697
+ return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
3694
3698
  },
3695
3699
  show() {
3696
- return PopsInstanceUtils.show(mode, PopsLayer[mode], guid, config, animElement, maskElement);
3700
+ return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
3697
3701
  },
3698
3702
  };
3699
3703
  },
@@ -3805,20 +3809,20 @@ define((function () { 'use strict';
3805
3809
  if (type === "loading" ||
3806
3810
  type === "tooltip" ||
3807
3811
  type === "rightClickMenu") {
3808
- let layer = PopsLayer[type];
3812
+ let layer = PopsLayerData[type];
3809
3813
  if (layer) {
3810
3814
  PopsInstanceUtils.removeInstance([layer], "", true);
3811
3815
  }
3812
3816
  }
3813
3817
  else {
3814
3818
  PopsInstanceUtils.removeInstance([
3815
- PopsLayer.alert,
3816
- PopsLayer.confirm,
3817
- PopsLayer.prompt,
3818
- PopsLayer.iframe,
3819
- PopsLayer.drawer,
3820
- PopsLayer.folder,
3821
- PopsLayer.panel,
3819
+ PopsLayerData.alert,
3820
+ PopsLayerData.confirm,
3821
+ PopsLayerData.prompt,
3822
+ PopsLayerData.iframe,
3823
+ PopsLayerData.drawer,
3824
+ PopsLayerData.folder,
3825
+ PopsLayerData.panel,
3822
3826
  ], "", true);
3823
3827
  }
3824
3828
  }
@@ -3839,7 +3843,7 @@ define((function () { 'use strict';
3839
3843
  * @param value
3840
3844
  */
3841
3845
  handlePush(type, value) {
3842
- PopsLayer[type].push(value);
3846
+ PopsLayerData[type].push(value);
3843
3847
  },
3844
3848
  };
3845
3849
 
@@ -4761,7 +4765,7 @@ define((function () { 'use strict';
4761
4765
  popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
4762
4766
  event.preventDefault();
4763
4767
  event.stopPropagation();
4764
- PopsInstanceUtils.removeInstance([PopsLayer.iframe], guid, false);
4768
+ PopsInstanceUtils.removeInstance([PopsLayerData.iframe], guid, false);
4765
4769
  if (typeof config?.btn?.close?.callback === "function") {
4766
4770
  config.btn.close.callback(eventDetails, event);
4767
4771
  }
@@ -7059,7 +7063,10 @@ define((function () { 'use strict';
7059
7063
  },
7060
7064
  };
7061
7065
 
7062
- const PanelHandleContentDetails = () => {
7066
+ /**
7067
+ * 处理组件(把组件配置转为组件元素)
7068
+ */
7069
+ const PanelHandlerComponents = () => {
7063
7070
  return {
7064
7071
  /**
7065
7072
  * 左侧的ul容器
@@ -7077,6 +7084,8 @@ define((function () { 'use strict';
7077
7084
  * 元素
7078
7085
  */
7079
7086
  $el: {
7087
+ /** pops主元素 */
7088
+ $pops: null,
7080
7089
  /** 内容 */
7081
7090
  $content: null,
7082
7091
  /** 左侧容器 */
@@ -7089,8 +7098,6 @@ define((function () { 'use strict';
7089
7098
  * @param details
7090
7099
  */
7091
7100
  init(details) {
7092
- // @ts-ignore
7093
- this.$el = null;
7094
7101
  this.$el = {
7095
7102
  ...details.$el,
7096
7103
  };
@@ -7153,11 +7160,12 @@ define((function () { 'use strict';
7153
7160
  * 清空container容器的元素
7154
7161
  */
7155
7162
  clearContainer() {
7163
+ Reflect.deleteProperty(this.$el.$contentSectionContainer, "__formConfig__");
7156
7164
  PopsSafeUtils.setSafeHTML(this.sectionContainerHeaderULElement, "");
7157
7165
  PopsSafeUtils.setSafeHTML(this.sectionContainerULElement, "");
7158
7166
  this.$el.$content
7159
7167
  ?.querySelectorAll("section.pops-panel-deepMenu-container")
7160
- .forEach((ele) => ele.remove());
7168
+ .forEach(($el) => $el.remove());
7161
7169
  },
7162
7170
  /**
7163
7171
  * 清空左侧容器已访问记录
@@ -7165,8 +7173,8 @@ define((function () { 'use strict';
7165
7173
  clearAsideItemIsVisited() {
7166
7174
  this.$el.$contentAside
7167
7175
  .querySelectorAll(".pops-is-visited")
7168
- .forEach((element) => {
7169
- popsDOMUtils.removeClassName(element, "pops-is-visited");
7176
+ .forEach(($el) => {
7177
+ popsDOMUtils.removeClassName($el, "pops-is-visited");
7170
7178
  });
7171
7179
  },
7172
7180
  /**
@@ -7243,34 +7251,33 @@ define((function () { 'use strict';
7243
7251
  * @param asideConfig
7244
7252
  */
7245
7253
  createAsideItem(asideConfig) {
7246
- let liElement = document.createElement("li");
7247
- liElement.id = asideConfig.id;
7248
- // @ts-ignore
7249
- liElement["__forms__"] = asideConfig.forms;
7250
- PopsSafeUtils.setSafeHTML(liElement, asideConfig.title);
7254
+ let $li = document.createElement("li");
7255
+ $li.id = asideConfig.id;
7256
+ Reflect.set($li, "__forms__", asideConfig.forms);
7257
+ PopsSafeUtils.setSafeHTML($li, asideConfig.title);
7251
7258
  /* 处理className */
7252
- this.setElementClassName(liElement, asideConfig.className);
7253
- this.setElementAttributes(liElement, asideConfig.attributes);
7254
- this.setElementProps(liElement, asideConfig.props);
7255
- return liElement;
7259
+ this.setElementClassName($li, asideConfig.className);
7260
+ this.setElementAttributes($li, asideConfig.attributes);
7261
+ this.setElementProps($li, asideConfig.props);
7262
+ return $li;
7256
7263
  },
7257
7264
  /**
7258
- * 创建中间容器的元素<li>
7259
7265
  * type ==> switch
7266
+ * 创建中间容器的元素<li>
7260
7267
  * @param formConfig
7261
7268
  */
7262
7269
  createSectionContainerItem_switch(formConfig) {
7263
- let liElement = document.createElement("li");
7264
- liElement["__formConfig__"] = formConfig;
7265
- this.setElementClassName(liElement, formConfig.className);
7266
- this.setElementAttributes(liElement, formConfig.attributes);
7267
- this.setElementProps(liElement, formConfig.props);
7270
+ let $li = document.createElement("li");
7271
+ Reflect.set($li, "__formConfig__", formConfig);
7272
+ this.setElementClassName($li, formConfig.className);
7273
+ this.setElementAttributes($li, formConfig.attributes);
7274
+ this.setElementProps($li, formConfig.props);
7268
7275
  /* 左边底部的描述的文字 */
7269
7276
  let leftDescriptionText = "";
7270
7277
  if (Boolean(formConfig.description)) {
7271
7278
  leftDescriptionText = /*html*/ `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
7272
7279
  }
7273
- PopsSafeUtils.setSafeHTML(liElement,
7280
+ PopsSafeUtils.setSafeHTML($li,
7274
7281
  /*html*/ `
7275
7282
  <div class="pops-panel-item-left-text">
7276
7283
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -7287,9 +7294,9 @@ define((function () { 'use strict';
7287
7294
  value: Boolean(formConfig.getValue()),
7288
7295
  },
7289
7296
  $ele: {
7290
- switch: liElement.querySelector(".pops-panel-switch"),
7291
- input: liElement.querySelector(".pops-panel-switch__input"),
7292
- core: liElement.querySelector(".pops-panel-switch__core"),
7297
+ switch: $li.querySelector(".pops-panel-switch"),
7298
+ input: $li.querySelector(".pops-panel-switch__input"),
7299
+ core: $li.querySelector(".pops-panel-switch__core"),
7293
7300
  },
7294
7301
  init() {
7295
7302
  this.setStatus(this.$data.value);
@@ -7351,26 +7358,26 @@ define((function () { 'use strict';
7351
7358
  },
7352
7359
  };
7353
7360
  PopsPanelSwitch.init();
7354
- liElement["data-switch"] = PopsPanelSwitch;
7355
- return liElement;
7361
+ Reflect.set($li, "data-switch", PopsPanelSwitch);
7362
+ return $li;
7356
7363
  },
7357
7364
  /**
7358
- * 获取中间容器的元素<li>
7359
7365
  * type ==> slider
7366
+ * 获取中间容器的元素<li>
7360
7367
  * @param formConfig
7361
7368
  */
7362
7369
  createSectionContainerItem_slider(formConfig) {
7363
- let liElement = document.createElement("li");
7364
- liElement["__formConfig__"] = formConfig;
7365
- this.setElementClassName(liElement, formConfig.className);
7366
- this.setElementAttributes(liElement, formConfig.attributes);
7367
- this.setElementProps(liElement, formConfig.props);
7370
+ let $li = document.createElement("li");
7371
+ Reflect.set($li, "__formConfig__", formConfig);
7372
+ this.setElementClassName($li, formConfig.className);
7373
+ this.setElementAttributes($li, formConfig.attributes);
7374
+ this.setElementProps($li, formConfig.props);
7368
7375
  /* 左边底部的描述的文字 */
7369
7376
  let leftDescriptionText = "";
7370
7377
  if (Boolean(formConfig.description)) {
7371
7378
  leftDescriptionText = `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
7372
7379
  }
7373
- PopsSafeUtils.setSafeHTML(liElement,
7380
+ PopsSafeUtils.setSafeHTML($li,
7374
7381
  /*html*/ `
7375
7382
  <div class="pops-panel-item-left-text">
7376
7383
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -7378,11 +7385,11 @@ define((function () { 'use strict';
7378
7385
  <input type="range" min="${formConfig.min}" max="${formConfig.max}">
7379
7386
  </div>
7380
7387
  `);
7381
- let rangeInputElement = liElement.querySelector(".pops-panel-slider input[type=range]");
7388
+ let $rangeInput = $li.querySelector(".pops-panel-slider input[type=range]");
7382
7389
  if (formConfig.step) {
7383
- rangeInputElement.setAttribute("step", formConfig.step.toString());
7390
+ $rangeInput.setAttribute("step", formConfig.step.toString());
7384
7391
  }
7385
- rangeInputElement.value = formConfig.getValue().toString();
7392
+ $rangeInput.value = formConfig.getValue().toString();
7386
7393
  /**
7387
7394
  * 获取提示的内容
7388
7395
  * @param value
@@ -7396,9 +7403,9 @@ define((function () { 'use strict';
7396
7403
  }
7397
7404
  };
7398
7405
  let tooltip = PopsTooltip.init({
7399
- target: rangeInputElement.parentElement,
7406
+ target: $rangeInput.parentElement,
7400
7407
  content: () => {
7401
- return getToolTipContent(rangeInputElement.value);
7408
+ return getToolTipContent($rangeInput.value);
7402
7409
  },
7403
7410
  zIndex: () => {
7404
7411
  return PopsInstanceUtils.getPopsMaxZIndex().zIndex;
@@ -7409,32 +7416,31 @@ define((function () { 'use strict';
7409
7416
  position: "top",
7410
7417
  arrowDistance: 10,
7411
7418
  });
7412
- popsDOMUtils.on(rangeInputElement, ["input", "propertychange"], void 0, function (event) {
7413
- tooltip.toolTip.changeContent(getToolTipContent(rangeInputElement.value));
7419
+ popsDOMUtils.on($rangeInput, ["input", "propertychange"], void 0, function (event) {
7420
+ tooltip.toolTip.changeContent(getToolTipContent($rangeInput.value));
7414
7421
  if (typeof formConfig.callback === "function") {
7415
- formConfig.callback(event, event.target.value);
7422
+ formConfig.callback(event, $rangeInput.valueAsNumber);
7416
7423
  }
7417
7424
  });
7418
- return liElement;
7425
+ return $li;
7419
7426
  },
7420
7427
  /**
7421
- * 获取中间容器的元素<li>
7422
7428
  * type ==> slider
7429
+ * 获取中间容器的元素<li>
7423
7430
  * @param formConfig
7424
7431
  */
7425
7432
  createSectionContainerItem_slider_new(formConfig) {
7426
- let liElement = document.createElement("li");
7427
- // @ts-ignore
7428
- liElement["__formConfig__"] = formConfig;
7429
- this.setElementClassName(liElement, formConfig.className);
7430
- this.setElementAttributes(liElement, formConfig.attributes);
7431
- this.setElementProps(liElement, formConfig.props);
7433
+ let $li = document.createElement("li");
7434
+ Reflect.set($li, "__formConfig__", formConfig);
7435
+ this.setElementClassName($li, formConfig.className);
7436
+ this.setElementAttributes($li, formConfig.attributes);
7437
+ this.setElementProps($li, formConfig.props);
7432
7438
  /* 左边底部的描述的文字 */
7433
7439
  let leftDescriptionText = "";
7434
7440
  if (Boolean(formConfig.description)) {
7435
7441
  leftDescriptionText = /*html*/ `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
7436
7442
  }
7437
- PopsSafeUtils.setSafeHTML(liElement,
7443
+ PopsSafeUtils.setSafeHTML($li,
7438
7444
  /*html*/ `
7439
7445
  <div class="pops-panel-item-left-text" style="flex: 1;">
7440
7446
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -7509,11 +7515,11 @@ define((function () { 'use strict';
7509
7515
  tooltip: null,
7510
7516
  },
7511
7517
  $ele: {
7512
- slider: liElement.querySelector(".pops-slider"),
7513
- runAway: liElement.querySelector(".pops-slider__runway"),
7514
- bar: liElement.querySelector(".pops-slider__bar"),
7515
- buttonWrapper: liElement.querySelector(".pops-slider__button-wrapper"),
7516
- button: liElement.querySelector(".pops-slider__button"),
7518
+ slider: $li.querySelector(".pops-slider"),
7519
+ runAway: $li.querySelector(".pops-slider__runway"),
7520
+ bar: $li.querySelector(".pops-slider__bar"),
7521
+ buttonWrapper: $li.querySelector(".pops-slider__button-wrapper"),
7522
+ button: $li.querySelector(".pops-slider__button"),
7517
7523
  },
7518
7524
  $interval: {
7519
7525
  isCheck: false,
@@ -7579,14 +7585,10 @@ define((function () { 'use strict';
7579
7585
  this.$ele.slider.setAttribute("data-max", this.max.toString());
7580
7586
  this.$ele.slider.setAttribute("data-value", this.value.toString());
7581
7587
  this.$ele.slider.setAttribute("data-step", this.step.toString());
7582
- // @ts-ignore
7583
- this.$ele.slider["data-min"] = this.min;
7584
- // @ts-ignore
7585
- this.$ele.slider["data-max"] = this.max;
7586
- // @ts-ignore
7587
- this.$ele.slider["data-value"] = this.value;
7588
- // @ts-ignore
7589
- this.$ele.slider["data-step"] = this.step;
7588
+ Reflect.set(this.$ele.slider, "data-min", this.min);
7589
+ Reflect.set(this.$ele.slider, "data-max", this.max);
7590
+ Reflect.set(this.$ele.slider, "data-value", this.value);
7591
+ Reflect.set(this.$ele.slider, "data-step", this.step);
7590
7592
  },
7591
7593
  /**
7592
7594
  * 初始化滑块的总长度的数据(px)
@@ -7606,7 +7608,7 @@ define((function () { 'use strict';
7606
7608
  let widthPx = 0;
7607
7609
  for (let stepValue = this.min; stepValue <= this.max; stepValue += this.step) {
7608
7610
  let value = this.formatValue(stepValue);
7609
- let info = {};
7611
+ let info;
7610
7612
  if (value === this.min) {
7611
7613
  /* 起始 */
7612
7614
  info = {
@@ -7649,7 +7651,7 @@ define((function () { 'use strict';
7649
7651
  let widthPx = 0;
7650
7652
  for (let stepValue = this.min; stepValue <= this.max; stepValue = PopsMathFloatUtils.add(stepValue, this.step)) {
7651
7653
  let value = this.formatValue(stepValue);
7652
- let info = {};
7654
+ let info;
7653
7655
  if (value === this.min) {
7654
7656
  /* 起始 */
7655
7657
  info = {
@@ -7807,7 +7809,7 @@ define((function () { 'use strict';
7807
7809
  event.target !== this.$ele.bar) {
7808
7810
  return;
7809
7811
  }
7810
- let clickX = parseFloat(event.offsetX);
7812
+ let clickX = parseFloat(event.offsetX.toString());
7811
7813
  this.dragStartCallBack();
7812
7814
  this.dragMoveCallBack(event, clickX, this.value);
7813
7815
  this.dragEndCallBack(clickX);
@@ -7960,7 +7962,7 @@ define((function () { 'use strict';
7960
7962
  return formConfig.getToolTipContent(PopsPanelSlider.value);
7961
7963
  }
7962
7964
  else {
7963
- return PopsPanelSlider.value;
7965
+ return PopsPanelSlider.value.toString();
7964
7966
  }
7965
7967
  }
7966
7968
  let tooltip = PopsTooltip.init({
@@ -8004,20 +8006,20 @@ define((function () { 'use strict';
8004
8006
  },
8005
8007
  };
8006
8008
  PopsPanelSlider.init();
8007
- liElement["data-slider"] = PopsPanelSlider;
8008
- return liElement;
8009
+ Reflect.set($li, "data-slider", PopsPanelSlider);
8010
+ return $li;
8009
8011
  },
8010
8012
  /**
8011
- * 获取中间容器的元素<li>
8012
8013
  * type ==> input
8014
+ * 获取中间容器的元素<li>
8013
8015
  * @param formConfig
8014
8016
  */
8015
8017
  createSectionContainerItem_input(formConfig) {
8016
- let liElement = document.createElement("li");
8017
- liElement["__formConfig__"] = formConfig;
8018
- this.setElementClassName(liElement, formConfig.className);
8019
- this.setElementAttributes(liElement, formConfig.attributes);
8020
- this.setElementProps(liElement, formConfig.props);
8018
+ let $li = document.createElement("li");
8019
+ Reflect.set($li, "__formConfig__", formConfig);
8020
+ this.setElementClassName($li, formConfig.className);
8021
+ this.setElementAttributes($li, formConfig.attributes);
8022
+ this.setElementProps($li, formConfig.props);
8021
8023
  let inputType = "text";
8022
8024
  if (formConfig.isPassword) {
8023
8025
  inputType = "password";
@@ -8030,7 +8032,7 @@ define((function () { 'use strict';
8030
8032
  if (Boolean(formConfig.description)) {
8031
8033
  leftDescriptionText = `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
8032
8034
  }
8033
- PopsSafeUtils.setSafeHTML(liElement,
8035
+ PopsSafeUtils.setSafeHTML($li,
8034
8036
  /*html*/ `
8035
8037
  <div class="pops-panel-item-left-text">
8036
8038
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -8041,8 +8043,8 @@ define((function () { 'use strict';
8041
8043
  const PopsPanelInput = {
8042
8044
  [Symbol.toStringTag]: "PopsPanelInput",
8043
8045
  $ele: {
8044
- panelInput: liElement.querySelector(".pops-panel-input"),
8045
- input: liElement.querySelector("input"),
8046
+ panelInput: $li.querySelector(".pops-panel-input"),
8047
+ input: $li.querySelector("input"),
8046
8048
  inputSpanIcon: document.createElement("span"),
8047
8049
  inputSpanIconInner: null,
8048
8050
  icon: null,
@@ -8071,7 +8073,7 @@ define((function () { 'use strict';
8071
8073
  this.disable();
8072
8074
  }
8073
8075
  if (typeof formConfig.handlerCallBack === "function") {
8074
- formConfig.handlerCallBack(liElement, this.$ele.input);
8076
+ formConfig.handlerCallBack($li, this.$ele.input);
8075
8077
  }
8076
8078
  },
8077
8079
  /**
@@ -8206,26 +8208,26 @@ define((function () { 'use strict';
8206
8208
  },
8207
8209
  };
8208
8210
  PopsPanelInput.init();
8209
- liElement["data-input"] = PopsPanelInput;
8210
- return liElement;
8211
+ Reflect.set($li, "data-input", PopsPanelInput);
8212
+ return $li;
8211
8213
  },
8212
8214
  /**
8213
- * 获取中间容器的元素<li>
8214
8215
  * type ==> textarea
8216
+ * 获取中间容器的元素<li>
8215
8217
  * @param formConfig
8216
8218
  */
8217
8219
  createSectionContainerItem_textarea(formConfig) {
8218
- let liElement = document.createElement("li");
8219
- liElement["__formConfig__"] = formConfig;
8220
- this.setElementClassName(liElement, formConfig.className);
8221
- this.setElementAttributes(liElement, formConfig.attributes);
8222
- this.setElementProps(liElement, formConfig.props);
8220
+ let $li = document.createElement("li");
8221
+ Reflect.set($li, "__formConfig__", formConfig);
8222
+ this.setElementClassName($li, formConfig.className);
8223
+ this.setElementAttributes($li, formConfig.attributes);
8224
+ this.setElementProps($li, formConfig.props);
8223
8225
  /* 左边底部的描述的文字 */
8224
8226
  let leftDescriptionText = "";
8225
8227
  if (Boolean(formConfig.description)) {
8226
8228
  leftDescriptionText = `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
8227
8229
  }
8228
- PopsSafeUtils.setSafeHTML(liElement,
8230
+ PopsSafeUtils.setSafeHTML($li,
8229
8231
  /*html*/ `
8230
8232
  <div class="pops-panel-item-left-text">
8231
8233
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -8236,8 +8238,8 @@ define((function () { 'use strict';
8236
8238
  const PopsPanelTextArea = {
8237
8239
  [Symbol.toStringTag]: "PopsPanelTextArea",
8238
8240
  $ele: {
8239
- panelTextarea: liElement.querySelector(".pops-panel-textarea"),
8240
- textarea: liElement.querySelector(".pops-panel-textarea textarea"),
8241
+ panelTextarea: $li.querySelector(".pops-panel-textarea"),
8242
+ textarea: $li.querySelector(".pops-panel-textarea textarea"),
8241
8243
  },
8242
8244
  $data: {
8243
8245
  value: formConfig.getValue(),
@@ -8269,35 +8271,36 @@ define((function () { 'use strict';
8269
8271
  */
8270
8272
  setChangeEvent() {
8271
8273
  popsDOMUtils.on(this.$ele.textarea, ["input", "propertychange"], void 0, (event) => {
8272
- this.$data.value = event.target.value;
8274
+ let value = this.$ele.textarea.value;
8275
+ this.$data.value = value;
8273
8276
  if (typeof formConfig.callback === "function") {
8274
- formConfig.callback(event, event.target.value);
8277
+ formConfig.callback(event, value);
8275
8278
  }
8276
8279
  });
8277
8280
  },
8278
8281
  };
8279
8282
  PopsPanelTextArea.init();
8280
- liElement["data-textarea"] = PopsPanelTextArea;
8281
- return liElement;
8283
+ Reflect.set($li, "data-textarea", PopsPanelTextArea);
8284
+ return $li;
8282
8285
  },
8283
8286
  /**
8284
- * 获取中间容器的元素<li>
8285
8287
  * type ==> select
8288
+ * 获取中间容器的元素<li>
8286
8289
  * @param formConfig
8287
8290
  */
8288
8291
  createSectionContainerItem_select(formConfig) {
8289
8292
  const that = this;
8290
- let liElement = document.createElement("li");
8291
- liElement["__formConfig__"] = formConfig;
8292
- this.setElementClassName(liElement, formConfig.className);
8293
- this.setElementAttributes(liElement, formConfig.attributes);
8294
- this.setElementProps(liElement, formConfig.props);
8293
+ let $li = document.createElement("li");
8294
+ Reflect.set($li, "__formConfig__", formConfig);
8295
+ this.setElementClassName($li, formConfig.className);
8296
+ this.setElementAttributes($li, formConfig.attributes);
8297
+ this.setElementProps($li, formConfig.props);
8295
8298
  /* 左边底部的描述的文字 */
8296
8299
  let leftDescriptionText = "";
8297
8300
  if (Boolean(formConfig.description)) {
8298
8301
  leftDescriptionText = /*html*/ `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
8299
8302
  }
8300
- PopsSafeUtils.setSafeHTML(liElement,
8303
+ PopsSafeUtils.setSafeHTML($li,
8301
8304
  /*html*/ `
8302
8305
  <div class="pops-panel-item-left-text">
8303
8306
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -8308,8 +8311,8 @@ define((function () { 'use strict';
8308
8311
  const PopsPanelSelect = {
8309
8312
  [Symbol.toStringTag]: "PopsPanelSelect",
8310
8313
  $ele: {
8311
- panelSelect: liElement.querySelector(".pops-panel-select"),
8312
- select: liElement.querySelector(".pops-panel-select select"),
8314
+ panelSelect: $li.querySelector(".pops-panel-select"),
8315
+ select: $li.querySelector(".pops-panel-select select"),
8313
8316
  },
8314
8317
  $eleKey: {
8315
8318
  disable: "__disable__",
@@ -8429,7 +8432,7 @@ define((function () { 'use strict';
8429
8432
  */
8430
8433
  setChangeEvent() {
8431
8434
  popsDOMUtils.on(this.$ele.select, "change", void 0, (event) => {
8432
- let $isSelectedElement = event.target[event.target.selectedIndex];
8435
+ let $isSelectedElement = this.$ele.select[this.$ele.select.selectedIndex];
8433
8436
  let selectInfo = this.getSelectOptionInfo($isSelectedElement);
8434
8437
  this.setSelectOptionsDisableStatus();
8435
8438
  if (typeof formConfig.callback === "function") {
@@ -8442,9 +8445,9 @@ define((function () { 'use strict';
8442
8445
  /* 如果成功创建,加入到中间容器中 */
8443
8446
  let childUListClassName = "pops-panel-select-child-forms";
8444
8447
  // 移除旧的元素
8445
- while (liElement.nextElementSibling) {
8446
- if (liElement.nextElementSibling.classList.contains(childUListClassName)) {
8447
- liElement.nextElementSibling.remove();
8448
+ while ($li.nextElementSibling) {
8449
+ if ($li.nextElementSibling.classList.contains(childUListClassName)) {
8450
+ $li.nextElementSibling.remove();
8448
8451
  }
8449
8452
  else {
8450
8453
  break;
@@ -8452,7 +8455,7 @@ define((function () { 'use strict';
8452
8455
  }
8453
8456
  let $childUList = document.createElement("ul");
8454
8457
  $childUList.className = childUListClassName;
8455
- popsDOMUtils.after(liElement, $childUList);
8458
+ popsDOMUtils.after($li, $childUList);
8456
8459
  that.uListContainerAddItem(formConfig, {
8457
8460
  ulElement: $childUList,
8458
8461
  });
@@ -8472,26 +8475,26 @@ define((function () { 'use strict';
8472
8475
  },
8473
8476
  };
8474
8477
  PopsPanelSelect.init();
8475
- Reflect.set(liElement, "data-select", PopsPanelSelect);
8476
- return liElement;
8478
+ Reflect.set($li, "data-select", PopsPanelSelect);
8479
+ return $li;
8477
8480
  },
8478
8481
  /**
8479
- * 获取中间容器的元素<li>
8480
8482
  * type ==> select-multiple
8483
+ * 获取中间容器的元素<li>
8481
8484
  * @param formConfig
8482
8485
  */
8483
8486
  createSectionContainerItem_select_multiple_new(formConfig) {
8484
- let liElement = document.createElement("li");
8485
- Reflect.set(liElement, "__formConfig__", formConfig);
8486
- this.setElementClassName(liElement, formConfig.className);
8487
- this.setElementAttributes(liElement, formConfig.attributes);
8488
- this.setElementProps(liElement, formConfig.props);
8487
+ let $li = document.createElement("li");
8488
+ Reflect.set($li, "__formConfig__", formConfig);
8489
+ this.setElementClassName($li, formConfig.className);
8490
+ this.setElementAttributes($li, formConfig.attributes);
8491
+ this.setElementProps($li, formConfig.props);
8489
8492
  /* 左边底部的描述的文字 */
8490
8493
  let leftDescriptionText = "";
8491
8494
  if (Boolean(formConfig.description)) {
8492
8495
  leftDescriptionText = /*html*/ `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
8493
8496
  }
8494
- PopsSafeUtils.setSafeHTML(liElement,
8497
+ PopsSafeUtils.setSafeHTML($li,
8495
8498
  /*html*/ `
8496
8499
  <div class="pops-panel-item-left-text">
8497
8500
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -8566,15 +8569,14 @@ define((function () { 'use strict';
8566
8569
  },
8567
8570
  /** 初始化$el变量 */
8568
8571
  inintEl() {
8569
- this.$el.$container = liElement.querySelector(".pops-panel-select-multiple");
8570
- this.$el.$wrapper = liElement.querySelector(".el-select__wrapper");
8571
- this.$el.$section = liElement.querySelector(".el-select__selection");
8572
- this.$el.$selectedInputWrapper = liElement.querySelector(".el-select__selected-item.el-select__input-wrapper");
8573
- this.$el.$selectedPlaceHolderWrapper =
8574
- liElement.querySelector(".el-select__selected-item.el-select__placeholder");
8572
+ this.$el.$container = $li.querySelector(".pops-panel-select-multiple");
8573
+ this.$el.$wrapper = $li.querySelector(".el-select__wrapper");
8574
+ this.$el.$section = $li.querySelector(".el-select__selection");
8575
+ this.$el.$selectedInputWrapper = $li.querySelector(".el-select__selected-item.el-select__input-wrapper");
8576
+ this.$el.$selectedPlaceHolderWrapper = $li.querySelector(".el-select__selected-item.el-select__placeholder");
8575
8577
  this.$el.$suffix =
8576
- liElement.querySelector(".el-select__suffix");
8577
- this.$el.$suffixIcon = liElement.querySelector(".el-select__suffix .el-icon");
8578
+ $li.querySelector(".el-select__suffix");
8579
+ this.$el.$suffixIcon = $li.querySelector(".el-select__suffix .el-icon");
8578
8580
  // 先把手动输入框隐藏
8579
8581
  this.hideInputWrapper();
8580
8582
  },
@@ -9132,26 +9134,26 @@ define((function () { 'use strict';
9132
9134
  },
9133
9135
  };
9134
9136
  PopsPanelSelectMultiple.init();
9135
- Reflect.set(liElement, "data-select-multiple", PopsPanelSelectMultiple);
9136
- return liElement;
9137
+ Reflect.set($li, "data-select-multiple", PopsPanelSelectMultiple);
9138
+ return $li;
9137
9139
  },
9138
9140
  /**
9139
- * 获取中间容器的元素<li>
9140
9141
  * type ==> button
9142
+ * 获取中间容器的元素<li>
9141
9143
  * @param formConfig
9142
9144
  */
9143
9145
  createSectionContainerItem_button(formConfig) {
9144
- let liElement = document.createElement("li");
9145
- liElement["__formConfig__"] = formConfig;
9146
- this.setElementClassName(liElement, formConfig.className);
9147
- this.setElementAttributes(liElement, formConfig.attributes);
9148
- this.setElementProps(liElement, formConfig.props);
9146
+ let $li = document.createElement("li");
9147
+ Reflect.set($li, "__formConfig__", formConfig);
9148
+ this.setElementClassName($li, formConfig.className);
9149
+ this.setElementAttributes($li, formConfig.attributes);
9150
+ this.setElementProps($li, formConfig.props);
9149
9151
  /* 左边底部的描述的文字 */
9150
9152
  let leftDescriptionText = "";
9151
9153
  if (Boolean(formConfig.description)) {
9152
9154
  leftDescriptionText = /*html*/ `<p class="pops-panel-item-left-desc-text">${formConfig.description}</p>`;
9153
9155
  }
9154
- PopsSafeUtils.setSafeHTML(liElement,
9156
+ PopsSafeUtils.setSafeHTML($li,
9155
9157
  /*html*/ `
9156
9158
  <div class="pops-panel-item-left-text">
9157
9159
  <p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
@@ -9165,10 +9167,10 @@ define((function () { 'use strict';
9165
9167
  const PopsPanelButton = {
9166
9168
  [Symbol.toStringTag]: "PopsPanelButton",
9167
9169
  $ele: {
9168
- panelButton: liElement.querySelector(".pops-panel-button"),
9169
- button: liElement.querySelector(".pops-panel-button .pops-panel-button_inner"),
9170
- icon: liElement.querySelector(".pops-panel-button .pops-bottom-icon"),
9171
- spanText: liElement.querySelector(".pops-panel-button .pops-panel-button-text"),
9170
+ panelButton: $li.querySelector(".pops-panel-button"),
9171
+ button: $li.querySelector(".pops-panel-button .pops-panel-button_inner"),
9172
+ icon: $li.querySelector(".pops-panel-button .pops-bottom-icon"),
9173
+ spanText: $li.querySelector(".pops-panel-button .pops-panel-button-text"),
9172
9174
  },
9173
9175
  $data: {},
9174
9176
  init() {
@@ -9281,10 +9283,11 @@ define((function () { 'use strict';
9281
9283
  },
9282
9284
  };
9283
9285
  PopsPanelButton.init();
9284
- liElement["data-button"] = PopsPanelButton;
9285
- return liElement;
9286
+ Reflect.set($li, "data-button", PopsPanelButton);
9287
+ return $li;
9286
9288
  },
9287
9289
  /**
9290
+ * type ==> deepMenu
9288
9291
  * 获取深层容器的元素<li>
9289
9292
  * @param formConfig
9290
9293
  */
@@ -9292,7 +9295,7 @@ define((function () { 'use strict';
9292
9295
  let that = this;
9293
9296
  let $li = document.createElement("li");
9294
9297
  $li.classList.add("pops-panel-deepMenu-nav-item");
9295
- $li["__formConfig__"] = formConfig;
9298
+ Reflect.set($li, "__formConfig__", formConfig);
9296
9299
  this.setElementClassName($li, formConfig.className);
9297
9300
  // 设置属性
9298
9301
  this.setElementAttributes($li, formConfig.attributes);
@@ -9428,6 +9431,7 @@ define((function () { 'use strict';
9428
9431
  let $deepMenuContainer = popsDOMUtils.createElement("section", {
9429
9432
  className: "pops-panel-container pops-panel-deepMenu-container",
9430
9433
  });
9434
+ Reflect.set($deepMenuContainer, "__formConfig__", formConfig);
9431
9435
  let $deepMenuHeaderUL = popsDOMUtils.createElement("ul", {
9432
9436
  className: "pops-panel-deepMenu-container-header-ul",
9433
9437
  });
@@ -9442,13 +9446,13 @@ define((function () { 'use strict';
9442
9446
  className: "pops-panel-deepMenu-container-left-arrow-icon",
9443
9447
  innerHTML: PopsIcon.getIcon("arrowLeft"),
9444
9448
  });
9445
- popsDOMUtils.on($headerLeftArrow, "click", void 0, (event) => {
9446
- event?.preventDefault();
9447
- event?.stopPropagation();
9449
+ popsDOMUtils.on($headerLeftArrow, "click", (event) => {
9450
+ popsDOMUtils.preventEvent(event);
9448
9451
  // 返回上一层菜单
9449
- let $prev = $deepMenuContainer.previousElementSibling;
9452
+ let $prev = ($deepMenuContainer.previousElementSibling);
9450
9453
  popsDOMUtils.cssShow($prev);
9451
9454
  $deepMenuContainer.remove();
9455
+ that.triggerRenderRightContainer($prev);
9452
9456
  }, {
9453
9457
  once: true,
9454
9458
  });
@@ -9471,6 +9475,7 @@ define((function () { 'use strict';
9471
9475
  sectionBodyContainer: $deepMenuBodyUL,
9472
9476
  });
9473
9477
  }
9478
+ that.triggerRenderRightContainer($deepMenuContainer);
9474
9479
  },
9475
9480
  /** 设置项的点击事件 */
9476
9481
  setLiClickEvent() {
@@ -9486,22 +9491,22 @@ define((function () { 'use strict';
9486
9491
  },
9487
9492
  };
9488
9493
  PopsPanelDeepMenu.init();
9489
- $li["data-deepMenu"] = PopsPanelDeepMenu;
9494
+ Reflect.set($li, "data-deepMenu", PopsPanelDeepMenu);
9490
9495
  return $li;
9491
9496
  },
9492
9497
  /**
9493
- * 获取中间容器的元素<li>
9494
9498
  * type ===> own
9499
+ * 获取中间容器的元素<li>
9495
9500
  * @param formConfig
9496
9501
  */
9497
9502
  createSectionContainerItem_own(formConfig) {
9498
- let liElement = document.createElement("li");
9499
- liElement["__formConfig__"] = formConfig;
9503
+ let $li = document.createElement("li");
9504
+ Reflect.set($li, "__formConfig__", formConfig);
9500
9505
  if (formConfig.className) {
9501
- liElement.className = formConfig.className;
9506
+ $li.className = formConfig.className;
9502
9507
  }
9503
- liElement = formConfig.getLiElementCallBack(liElement);
9504
- return liElement;
9508
+ $li = formConfig.getLiElementCallBack($li);
9509
+ return $li;
9505
9510
  },
9506
9511
  /**
9507
9512
  * 获取中间容器的元素<li>
@@ -9622,6 +9627,17 @@ define((function () { 'use strict';
9622
9627
  });
9623
9628
  }
9624
9629
  },
9630
+ /**
9631
+ * 触发触发渲染右侧容器的事件
9632
+ */
9633
+ triggerRenderRightContainer($container) {
9634
+ let __formConfig__ = Reflect.get($container, "__formConfig__");
9635
+ this.$el.$pops.dispatchEvent(new CustomEvent("pops:renderRightContainer", {
9636
+ detail: {
9637
+ formConfig: __formConfig__,
9638
+ },
9639
+ }));
9640
+ },
9625
9641
  /**
9626
9642
  *
9627
9643
  * @param formConfig
@@ -9648,6 +9664,8 @@ define((function () { 'use strict';
9648
9664
  const that = this;
9649
9665
  popsDOMUtils.on(asideLiElement, "click", void 0, (event) => {
9650
9666
  this.clearContainer();
9667
+ let rightContainerFormConfig = Reflect.get(asideLiElement, "__forms__");
9668
+ Reflect.set(that.$el.$contentSectionContainer, "__formConfig__", rightContainerFormConfig);
9651
9669
  popsDOMUtils.cssShow(that.$el.$contentSectionContainer);
9652
9670
  this.clearAsideItemIsVisited();
9653
9671
  this.setAsideItemIsVisited(asideLiElement);
@@ -9655,20 +9673,19 @@ define((function () { 'use strict';
9655
9673
  let headerTitleText = asideConfig.headerTitle ?? asideConfig.title;
9656
9674
  if (typeof headerTitleText === "string" &&
9657
9675
  headerTitleText.trim() !== "") {
9658
- let containerHeaderTitleLIElement = document.createElement("li");
9659
- containerHeaderTitleLIElement["__asideConfig__"] =
9660
- asideConfig;
9661
- PopsSafeUtils.setSafeHTML(containerHeaderTitleLIElement, headerTitleText);
9662
- this.sectionContainerHeaderULElement.appendChild(containerHeaderTitleLIElement);
9663
- }
9664
- let __forms__ = asideLiElement["__forms__"];
9665
- __forms__.forEach((formConfig) => {
9676
+ let $containerHeaderTitle = document.createElement("li");
9677
+ Reflect.set($containerHeaderTitle, "__asideConfig__", asideConfig);
9678
+ PopsSafeUtils.setSafeHTML($containerHeaderTitle, headerTitleText);
9679
+ this.sectionContainerHeaderULElement.appendChild($containerHeaderTitle);
9680
+ }
9681
+ rightContainerFormConfig.forEach((formConfig) => {
9666
9682
  this.createSectionContainerItem_forms(formConfig);
9667
9683
  });
9668
9684
  if (typeof asideConfig.callback === "function") {
9669
9685
  /* 执行回调 */
9670
9686
  asideConfig.callback(event, this.sectionContainerHeaderULElement, this.sectionContainerULElement);
9671
9687
  }
9688
+ that.triggerRenderRightContainer(that.$el.$contentSectionContainer);
9672
9689
  });
9673
9690
  },
9674
9691
  };
@@ -9758,13 +9775,14 @@ define((function () { 'use strict';
9758
9775
  if ($mask != null) {
9759
9776
  $anim.after($mask);
9760
9777
  }
9761
- let panelHandleContentDetails = PanelHandleContentDetails();
9778
+ let panelHandlerComponents = PanelHandlerComponents();
9762
9779
  /**
9763
9780
  * 处理内部配置
9764
9781
  */
9765
- panelHandleContentDetails.init({
9782
+ panelHandlerComponents.init({
9766
9783
  config: config,
9767
9784
  $el: {
9785
+ $pops: $pops,
9768
9786
  $content: $content,
9769
9787
  $contentAside: $contentAside,
9770
9788
  $contentSectionContainer: $contentSectionContainer,
@@ -9789,7 +9807,15 @@ define((function () { 'use strict';
9789
9807
  });
9790
9808
  }
9791
9809
  let result = PopsHandler.handleResultDetails(eventDetails);
9792
- return result;
9810
+ return {
9811
+ ...result,
9812
+ addEventListener: (event, listener, options) => {
9813
+ $pops.addEventListener(event, listener, options);
9814
+ },
9815
+ removeEventListener: (event, listener, options) => {
9816
+ $pops.removeEventListener(event, listener, options);
9817
+ },
9818
+ };
9793
9819
  },
9794
9820
  };
9795
9821
 
@@ -11033,14 +11059,14 @@ define((function () { 'use strict';
11033
11059
  /** 配置 */
11034
11060
  config = {
11035
11061
  /** 版本号 */
11036
- version: "2025.6.18",
11062
+ version: "2025.7.1",
11037
11063
  cssText: PopsCSS,
11038
11064
  /** icon图标的svg代码 */
11039
11065
  iconSVG: PopsIcon.$data,
11040
11066
  /** 当前已配置的动画@keyframes名字映射(初始化时生成) */
11041
11067
  animation: PopsAnimation.$data,
11042
11068
  /** 存储已创建的元素 */
11043
- layer: PopsLayer,
11069
+ layer: PopsLayerData,
11044
11070
  /** 禁止滚动 */
11045
11071
  forbiddenScroll: {
11046
11072
  event(event) {
@@ -11056,7 +11082,7 @@ define((function () { 'use strict';
11056
11082
  /** pops处理float类型使用的工具类 */
11057
11083
  MathFloatUtils: PopsMathFloatUtils,
11058
11084
  /** pops.panel中用于处理各个类型的工具 */
11059
- panelHandleContentUtils: PanelHandleContentDetails,
11085
+ PanelHandlerComponents: PanelHandlerComponents,
11060
11086
  };
11061
11087
  init() { }
11062
11088
  /**