@whitesev/pops 2.1.4 → 2.1.6

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 (142) hide show
  1. package/dist/index.amd.js +172 -112
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +172 -112
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +172 -112
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +172 -112
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +172 -112
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +172 -112
  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 +52 -34
  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} +16 -13
  38. package/dist/types/src/components/panel/index.d.ts +1 -1
  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} +12 -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/button.d.ts +5 -39
  65. package/dist/types/src/types/event.d.ts +1 -1
  66. package/dist/types/src/types/main.d.ts +18 -18
  67. package/dist/types/src/types/mask.d.ts +7 -7
  68. package/dist/types/src/{Config.d.ts → utils/PopsDOMUtilsEventsConfig.d.ts} +3 -0
  69. package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
  70. package/package.json +3 -2
  71. package/src/GlobalConfig.ts +6 -5
  72. package/src/Pops.ts +30 -17
  73. package/src/{Core.ts → PopsCore.ts} +13 -14
  74. package/src/PopsIcon.ts +34 -32
  75. package/src/PopsLayer.ts +8 -7
  76. package/src/components/alert/config.ts +1 -1
  77. package/src/components/alert/index.css +0 -47
  78. package/src/components/alert/index.ts +3 -3
  79. package/src/components/alert/{indexType.ts → types/index.ts} +2 -2
  80. package/src/components/confirm/config.ts +1 -1
  81. package/src/components/confirm/index.css +0 -47
  82. package/src/components/confirm/index.ts +5 -5
  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.css +0 -17
  86. package/src/components/drawer/index.ts +3 -4
  87. package/src/components/drawer/{indexType.ts → types/index.ts} +1 -1
  88. package/src/components/folder/config.ts +24 -10
  89. package/src/components/folder/index.css +67 -62
  90. package/src/components/folder/index.ts +5 -5
  91. package/src/components/folder/{indexType.ts → types/index.ts} +1 -1
  92. package/src/components/iframe/config.ts +1 -1
  93. package/src/components/iframe/index.css +3 -33
  94. package/src/components/iframe/index.ts +9 -9
  95. package/src/components/iframe/{indexType.ts → types/index.ts} +2 -2
  96. package/src/components/loading/config.ts +1 -1
  97. package/src/components/loading/index.css +17 -12
  98. package/src/components/loading/index.ts +6 -6
  99. package/src/components/loading/{indexType.ts → types/index.ts} +1 -1
  100. package/src/components/panel/config.ts +1 -1
  101. package/src/components/panel/{PanelHandleContentDetails.ts → handlerComponents.ts} +29 -15
  102. package/src/components/panel/index.css +136 -63
  103. package/src/components/panel/index.ts +6 -6
  104. package/src/components/panel/{buttonType.ts → types/components-button.ts} +5 -4
  105. package/src/components/panel/{commonType.ts → types/components-common.ts} +2 -2
  106. package/src/components/panel/{deepMenuType.ts → types/components-deepMenu.ts} +3 -3
  107. package/src/components/panel/{formsType.ts → types/components-forms.ts} +2 -2
  108. package/src/components/panel/{inputType.ts → types/components-input.ts} +1 -1
  109. package/src/components/panel/{ownType.ts → types/components-own.ts} +1 -1
  110. package/src/components/panel/{selectType.ts → types/components-select.ts} +3 -3
  111. package/src/components/panel/{selectMultipleType.ts → types/components-selectMultiple.ts} +2 -2
  112. package/src/components/panel/{sliderType.ts → types/components-slider.ts} +1 -1
  113. package/src/components/panel/{switchType.ts → types/components-switch.ts} +1 -1
  114. package/src/components/panel/{textareaType.ts → types/components-textarea.ts} +1 -1
  115. package/src/components/panel/{indexType.ts → types/index.ts} +12 -12
  116. package/src/components/prompt/config.ts +1 -1
  117. package/src/components/prompt/index.css +23 -51
  118. package/src/components/prompt/index.ts +7 -7
  119. package/src/components/prompt/{indexType.ts → types/index.ts} +1 -1
  120. package/src/components/rightClickMenu/config.ts +1 -1
  121. package/src/components/rightClickMenu/index.css +14 -3
  122. package/src/components/rightClickMenu/index.ts +2 -2
  123. package/src/components/rightClickMenu/{indexType.ts → types/index.ts} +2 -2
  124. package/src/components/searchSuggestion/config.ts +1 -1
  125. package/src/components/searchSuggestion/index.ts +21 -6
  126. package/src/components/searchSuggestion/{indexType.ts → types/index.ts} +1 -1
  127. package/src/components/tooltip/config.ts +1 -1
  128. package/src/components/tooltip/index.css +39 -19
  129. package/src/components/tooltip/index.ts +1 -1
  130. package/src/components/tooltip/{indexType.ts → types/index.ts} +1 -1
  131. package/src/css/button.css +354 -98
  132. package/src/css/index.css +88 -16
  133. package/src/handler/PopsElementHandler.ts +5 -5
  134. package/src/handler/PopsHandler.ts +26 -26
  135. package/src/types/button.d.ts +5 -39
  136. package/src/types/event.d.ts +1 -1
  137. package/src/types/main.d.ts +18 -18
  138. package/src/types/mask.d.ts +7 -7
  139. package/src/utils/PopsDOMUtils.ts +2 -2
  140. package/src/{Config.ts → utils/PopsDOMUtilsEventsConfig.ts} +3 -0
  141. package/src/utils/PopsInstanceUtils.ts +12 -12
  142. package/src/utils/PopsUtils.ts +1 -1
@@ -1,6 +1,6 @@
1
- import type { PopsAlertDetails } from "../components/alert/indexType";
2
- import type { PopsConfirmDetails } from "../components/confirm/indexType";
3
- import type { PopsIframeDetails } from "../components/iframe/indexType";
1
+ import type { PopsAlertDetails } from "../components/alert/types";
2
+ import type { PopsConfirmDetails } from "../components/confirm/types";
3
+ import type { PopsIframeDetails } from "../components/iframe/types";
4
4
  import type { PopsIconType } from "../types/icon";
5
5
  import type {
6
6
  PopsSupportAnim,
@@ -266,13 +266,13 @@ export const PopsElementHandler = {
266
266
  flexStyle += "flex-direction: row;";
267
267
  }
268
268
  resultHTML = /*html*/ `
269
- <div class="pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
269
+ <div class="pops-botttom-btn-controls pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
270
270
  class="pops-${type}-btn-merge"
271
271
  style="${flexStyle}">${okHTML}${cancelHTML}</div>
272
272
  </div>
273
273
  `;
274
274
  } else {
275
- resultHTML = /*html*/ `<div class="pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
275
+ resultHTML = /*html*/ `<div class="pops-botttom-btn-controls pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
276
276
  }
277
277
  return resultHTML;
278
278
  },
@@ -1,14 +1,14 @@
1
- import type { PopsAlertDetails } from "../components/alert/indexType";
2
- import type { PopsConfirmDetails } from "../components/confirm/indexType";
3
- import type { PopsDrawerDetails } from "../components/drawer/indexType";
4
- import type { PopsFolderDetails } from "../components/folder/indexType";
5
- import type { PopsIframeDetails } from "../components/iframe/indexType";
6
- import type { PopsLoadingDetails } from "../components/loading/indexType";
7
- import type { PopsPanelDetails } from "../components/panel/indexType";
8
- import type { PopsPromptDetails } from "../components/prompt/indexType";
9
- import { PopsCore } from "../Core";
1
+ import type { PopsAlertDetails } from "../components/alert/types";
2
+ import type { PopsConfirmDetails } from "../components/confirm/types";
3
+ import type { PopsDrawerDetails } from "../components/drawer/types";
4
+ import type { PopsFolderDetails } from "../components/folder/types";
5
+ import type { PopsIframeDetails } from "../components/iframe/types";
6
+ import type { PopsLoadingDetails } from "../components/loading/types";
7
+ import type { PopsPanelDetails } from "../components/panel/types";
8
+ import type { PopsPromptDetails } from "../components/prompt/types/index";
9
+ import { PopsCore } from "../PopsCore";
10
10
  import { PopsAnimation } from "../PopsAnimation";
11
- import { PopsLayer } from "../PopsLayer";
11
+ import { PopsLayerData } from "../PopsLayer";
12
12
  import type { PopsCommonConfig } from "../types/components";
13
13
  import { PopsEventDetails, PopsHandlerEventDetails } from "../types/event";
14
14
  import { PopsLayerCommonConfig } from "../types/layer";
@@ -114,7 +114,7 @@ export const PopsHandler = {
114
114
  function clickEvent(event: MouseEvent | PointerEvent) {
115
115
  popsDOMUtils.preventEvent(event);
116
116
  // 获取该类型实例存储列表
117
- let targetLayer = PopsLayer[details.type];
117
+ let targetLayer = PopsLayerData[details.type];
118
118
  function originalRun() {
119
119
  if (details.config.mask!.clickEvent!.toClose) {
120
120
  /* 关闭 */
@@ -403,7 +403,7 @@ export const PopsHandler = {
403
403
  close() {
404
404
  return PopsInstanceUtils.close(
405
405
  mode,
406
- PopsLayer[mode],
406
+ PopsLayerData[mode],
407
407
  guid,
408
408
  config,
409
409
  animElement
@@ -412,7 +412,7 @@ export const PopsHandler = {
412
412
  hide() {
413
413
  return PopsInstanceUtils.hide(
414
414
  mode,
415
- PopsLayer[mode],
415
+ PopsLayerData[mode],
416
416
  guid,
417
417
  config,
418
418
  animElement,
@@ -422,7 +422,7 @@ export const PopsHandler = {
422
422
  show() {
423
423
  return PopsInstanceUtils.show(
424
424
  mode,
425
- PopsLayer[mode],
425
+ PopsLayerData[mode],
426
426
  guid,
427
427
  config,
428
428
  animElement,
@@ -466,7 +466,7 @@ export const PopsHandler = {
466
466
  close() {
467
467
  return PopsInstanceUtils.close(
468
468
  mode,
469
- PopsLayer[mode],
469
+ PopsLayerData[mode],
470
470
  guid,
471
471
  config,
472
472
  animElement
@@ -475,7 +475,7 @@ export const PopsHandler = {
475
475
  hide() {
476
476
  return PopsInstanceUtils.hide(
477
477
  mode,
478
- PopsLayer[mode],
478
+ PopsLayerData[mode],
479
479
  guid,
480
480
  config,
481
481
  animElement,
@@ -485,7 +485,7 @@ export const PopsHandler = {
485
485
  show() {
486
486
  return PopsInstanceUtils.show(
487
487
  mode,
488
- PopsLayer[mode],
488
+ PopsLayerData[mode],
489
489
  guid,
490
490
  config,
491
491
  animElement,
@@ -639,20 +639,20 @@ export const PopsHandler = {
639
639
  type === "tooltip" ||
640
640
  type === "rightClickMenu"
641
641
  ) {
642
- let layer = PopsLayer[type as keyof typeof PopsLayer];
642
+ let layer = PopsLayerData[type as keyof typeof PopsLayerData];
643
643
  if (layer) {
644
644
  PopsInstanceUtils.removeInstance([layer], "", true);
645
645
  }
646
646
  } else {
647
647
  PopsInstanceUtils.removeInstance(
648
648
  [
649
- PopsLayer.alert,
650
- PopsLayer.confirm,
651
- PopsLayer.prompt,
652
- PopsLayer.iframe,
653
- PopsLayer.drawer,
654
- PopsLayer.folder,
655
- PopsLayer.panel,
649
+ PopsLayerData.alert,
650
+ PopsLayerData.confirm,
651
+ PopsLayerData.prompt,
652
+ PopsLayerData.iframe,
653
+ PopsLayerData.drawer,
654
+ PopsLayerData.folder,
655
+ PopsLayerData.panel,
656
656
  ],
657
657
  "",
658
658
  true
@@ -677,6 +677,6 @@ export const PopsHandler = {
677
677
  * @param value
678
678
  */
679
679
  handlePush(type: PopsLayerMode, value: PopsLayerCommonConfig) {
680
- PopsLayer[type].push(value);
680
+ PopsLayerData[type].push(value);
681
681
  },
682
682
  };
@@ -16,7 +16,8 @@ export type PopsButtonStyleType =
16
16
  | "success"
17
17
  | "info"
18
18
  | "warning"
19
- | "danger";
19
+ | "danger"
20
+ | "violet";
20
21
 
21
22
  /**
22
23
  * 按钮大小
@@ -118,48 +119,13 @@ export interface PopsButtonDetails<T = {}> {
118
119
  /**
119
120
  * 按钮配置(匹配任意类型)
120
121
  */
121
- export interface PopsButtonDetailsAnyType<T = {}> {
122
- /**
123
- * 是否启用按钮
124
- */
125
- enable: boolean;
126
- /**
127
- * 图标按钮,如果名字为内置的,则使用内置的,否则为自定义的svg
128
- */
129
- icon: PopsIconType;
130
- /**
131
- * 图标按钮是否放在右边
132
- */
133
- rightIcon: boolean;
134
- /**
135
- * 图标按钮是否是旋转360°
136
- * @default false
137
- */
138
- iconIsLoading: boolean;
139
- /**
140
- * 按钮尺寸大小
141
- * @default ""
142
- */
143
- size: PopsButtonSize;
122
+ export type PopsButtonDetailsAnyType<T = {}> = PopsButtonDetails<T> & {
144
123
  /**
145
124
  * 按钮样式类型
125
+ * @default "default"
146
126
  */
147
127
  type: string;
148
- /**
149
- * 按钮文字
150
- * @default ""
151
- */
152
- text: string;
153
- /**
154
- * 按钮点击的回调
155
- *
156
- * 如果传入该值,那么将不会自动关闭弹窗
157
- */
158
- callback(
159
- eventDetails: PopsHandlerEventDetails & T,
160
- event: PointerEvent | MouseEvent
161
- ): void;
162
- }
128
+ };
163
129
 
164
130
  /** prompt的点击回调 */
165
131
  export interface PopsPromptButtonDetails extends PopsButtonDetails {
@@ -1,4 +1,4 @@
1
- import type { PopsIframeDetails } from "../components/iframe/indexType";
1
+ import type { PopsIframeDetails } from "../components/iframe/types";
2
2
  import type { PopsMode } from "./main";
3
3
 
4
4
  /**
@@ -1,21 +1,21 @@
1
- import type { PopsAlertDetails } from "../components/alert/indexType";
2
- import type { PopsConfirmDetails } from "../components/confirm/indexType";
3
- import type { PopsDrawerDetails } from "../components/drawer/indexType";
4
- import type { PopsFolderDetails } from "../components/folder/indexType";
5
- import type { PopsIframeDetails } from "../components/iframe/indexType";
6
- import type { PopsLoadingDetails } from "../components/loading/indexType";
7
- import type { PopsPanelButtonDetails } from "../components/panel/buttonType";
8
- import type { PopsPanelDeepMenuDetails } from "../components/panel/deepMenuType";
9
- import type { PopsPanelDetails } from "../components/panel/indexType";
10
- import type { PopsPanelInputDetails } from "../components/panel/inputType";
11
- import type { PopsPanelOwnDetails } from "../components/panel/ownType";
12
- import type { PopsPanelSelectDetails } from "../components/panel/selectType";
13
- import type { PopsPanelSliderDetails } from "../components/panel/sliderType";
14
- import type { PopsPanelSwitchDetails } from "../components/panel/switchType";
15
- import type { PopsPanelTextAreaDetails } from "../components/panel/textareaType";
16
- import type { PopsPromptDetails } from "../components/prompt/indexType";
17
- import { PopsRightClickMenuDetails } from "../components/rightClickMenu/indexType";
18
- import { PopsToolTipDetails } from "../components/tooltip/indexType";
1
+ import type { PopsAlertDetails } from "../components/alert/types";
2
+ import type { PopsConfirmDetails } from "../components/confirm/types";
3
+ import type { PopsDrawerDetails } from "../components/drawer/types";
4
+ import type { PopsFolderDetails } from "../components/folder/types";
5
+ import type { PopsIframeDetails } from "../components/iframe/types";
6
+ import type { PopsLoadingDetails } from "../components/loading/types";
7
+ import type { PopsPanelButtonDetails } from "../components/panel/types/components-button";
8
+ import type { PopsPanelDeepMenuDetails } from "../components/panel/types/components-deepMenu";
9
+ import type { PopsPanelDetails } from "../components/panel/types";
10
+ import type { PopsPanelInputDetails } from "../components/panel/types/components-input";
11
+ import type { PopsPanelOwnDetails } from "../components/panel/types/components-own";
12
+ import type { PopsPanelSelectDetails } from "../components/panel/types/components-select";
13
+ import type { PopsPanelSliderDetails } from "../components/panel/types/components-slider";
14
+ import type { PopsPanelSwitchDetails } from "../components/panel/types/components-switch";
15
+ import type { PopsPanelTextAreaDetails } from "../components/panel/types/components-textarea";
16
+ import type { PopsPromptDetails } from "../components/prompt/types/index";
17
+ import { PopsRightClickMenuDetails } from "../components/rightClickMenu/types";
18
+ import { PopsToolTipDetails } from "../components/tooltip/types/index";
19
19
 
20
20
  export interface PopsUtilsOwnObject<V extends any> {
21
21
  [key: string]: V | PopsUtilsOwnObject<V>;
@@ -1,10 +1,10 @@
1
- import type { PopsAlertDetails } from "../components/alert/indexType";
2
- import type { PopsDrawerDetails } from "../components/drawer/indexType";
3
- import type { PopsFolderDetails } from "../components/folder/indexType";
4
- import type { PopsIframeDetails } from "../components/iframe/indexType";
5
- import type { PopsLoadingDetails } from "../components/loading/indexType";
6
- import type { PopsPanelDetails } from "../components/panel/indexType";
7
- import type { PopsPromptDetails } from "../components/prompt/indexType";
1
+ import type { PopsAlertDetails } from "../components/alert/types";
2
+ import type { PopsDrawerDetails } from "../components/drawer/types";
3
+ import type { PopsFolderDetails } from "../components/folder/types";
4
+ import type { PopsIframeDetails } from "../components/iframe/types";
5
+ import type { PopsLoadingDetails } from "../components/loading/types";
6
+ import type { PopsPanelDetails } from "../components/panel/types";
7
+ import type { PopsPromptDetails } from "../components/prompt/types/index";
8
8
 
9
9
  /**
10
10
  * 遮罩层配置
@@ -7,8 +7,8 @@ import type {
7
7
  PopsDOMUtils_Event,
8
8
  PopsDOMUtilsElementEventType,
9
9
  } from "../types/PopsDOMUtilsEventType";
10
- import { SymbolEvents } from "../Config";
11
- import { OriginPrototype, PopsCore } from "../Core";
10
+ import { SymbolEvents } from "./PopsDOMUtilsEventsConfig";
11
+ import { OriginPrototype, PopsCore } from "../PopsCore";
12
12
  import { popsUtils } from "./PopsUtils";
13
13
  import { PopsSafeUtils } from "./PopsSafeUtils";
14
14
 
@@ -1,3 +1,6 @@
1
+ /**
2
+ * 存储在元素属性上的事件名
3
+ */
1
4
  export const SymbolEvents = Symbol(
2
5
  "events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
3
6
  );
@@ -1,17 +1,17 @@
1
- import type { PopsAlertDetails } from "../components/alert/indexType";
2
- import type { PopsConfirmDetails } from "../components/confirm/indexType";
3
- import type { PopsDrawerDetails } from "../components/drawer/indexType";
4
- import type { PopsFolderDetails } from "../components/folder/indexType";
5
- import type { PopsIframeDetails } from "../components/iframe/indexType";
6
- import type { PopsLoadingDetails } from "../components/loading/indexType";
7
- import type { PopsPanelDetails } from "../components/panel/indexType";
8
- import type { PopsPromptDetails } from "../components/prompt/indexType";
1
+ import type { PopsAlertDetails } from "../components/alert/types";
2
+ import type { PopsConfirmDetails } from "../components/confirm/types";
3
+ import type { PopsDrawerDetails } from "../components/drawer/types";
4
+ import type { PopsFolderDetails } from "../components/folder/types";
5
+ import type { PopsIframeDetails } from "../components/iframe/types";
6
+ import type { PopsLoadingDetails } from "../components/loading/types";
7
+ import type { PopsPanelDetails } from "../components/panel/types";
8
+ import type { PopsPromptDetails } from "../components/prompt/types/index";
9
9
  import type { PopsLayerCommonConfig } from "../types/layer";
10
10
  import type { PopsLayerMode } from "../types/main";
11
11
  import { popsDOMUtils } from "./PopsDOMUtils";
12
12
  import { popsUtils } from "./PopsUtils";
13
- import { PopsCore } from "../Core";
14
- import { PopsLayer } from "../PopsLayer";
13
+ import { PopsCore } from "../PopsCore";
14
+ import { PopsLayerData } from "../PopsLayer";
15
15
  import { PopsAnimation } from "../PopsAnimation";
16
16
 
17
17
  export const PopsInstanceUtils = {
@@ -121,8 +121,8 @@ export const PopsInstanceUtils = {
121
121
  function isVisibleNode($css: CSSStyleDeclaration): boolean {
122
122
  return $css.position !== "static" && $css.display !== "none";
123
123
  }
124
- Object.keys(PopsLayer).forEach((layerName) => {
125
- let layerList = PopsLayer[layerName as PopsLayerMode];
124
+ Object.keys(PopsLayerData).forEach((layerName) => {
125
+ let layerList = PopsLayerData[layerName as PopsLayerMode];
126
126
  for (let index = 0; index < layerList.length; index++) {
127
127
  const layer = layerList[index];
128
128
  let nodeStyle = window.getComputedStyle(layer.animElement);
@@ -1,4 +1,4 @@
1
- import { PopsCore } from "../Core";
1
+ import { PopsCore } from "../PopsCore";
2
2
  import type { PopsUtilsOwnObject } from "../types/main";
3
3
  import {
4
4
  clearInterval as WorkerClearInterval,