@whitesev/pops 2.1.4 → 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 (128) hide show
  1. package/dist/index.amd.js +72 -64
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +72 -64
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +72 -64
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +72 -64
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +72 -64
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +72 -64
  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 +39 -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/event.d.ts +1 -1
  65. package/dist/types/src/types/main.d.ts +18 -18
  66. package/dist/types/src/types/mask.d.ts +7 -7
  67. package/dist/types/src/{Config.d.ts → utils/PopsDOMUtilsEventsConfig.d.ts} +3 -0
  68. package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
  69. package/package.json +1 -1
  70. package/src/GlobalConfig.ts +6 -5
  71. package/src/Pops.ts +17 -17
  72. package/src/{Core.ts → PopsCore.ts} +13 -14
  73. package/src/PopsIcon.ts +34 -32
  74. package/src/PopsLayer.ts +8 -7
  75. package/src/components/alert/config.ts +1 -1
  76. package/src/components/alert/index.ts +1 -1
  77. package/src/components/alert/{indexType.ts → types/index.ts} +2 -2
  78. package/src/components/confirm/config.ts +1 -1
  79. package/src/components/confirm/index.ts +1 -1
  80. package/src/components/confirm/{indexType.ts → types/index.ts} +1 -1
  81. package/src/components/drawer/config.ts +1 -1
  82. package/src/components/drawer/index.ts +1 -1
  83. package/src/components/drawer/{indexType.ts → types/index.ts} +1 -1
  84. package/src/components/folder/config.ts +1 -1
  85. package/src/components/folder/index.ts +1 -1
  86. package/src/components/folder/{indexType.ts → types/index.ts} +1 -1
  87. package/src/components/iframe/config.ts +1 -1
  88. package/src/components/iframe/index.ts +4 -4
  89. package/src/components/iframe/{indexType.ts → types/index.ts} +2 -2
  90. package/src/components/loading/config.ts +1 -1
  91. package/src/components/loading/index.ts +1 -1
  92. package/src/components/loading/{indexType.ts → types/index.ts} +1 -1
  93. package/src/components/panel/config.ts +1 -1
  94. package/src/components/panel/{PanelHandleContentDetails.ts → handlerComponents.ts} +17 -14
  95. package/src/components/panel/index.ts +4 -4
  96. package/src/components/panel/{buttonType.ts → types/components-button.ts} +5 -4
  97. package/src/components/panel/{commonType.ts → types/components-common.ts} +2 -2
  98. package/src/components/panel/{deepMenuType.ts → types/components-deepMenu.ts} +3 -3
  99. package/src/components/panel/{formsType.ts → types/components-forms.ts} +2 -2
  100. package/src/components/panel/{inputType.ts → types/components-input.ts} +1 -1
  101. package/src/components/panel/{ownType.ts → types/components-own.ts} +1 -1
  102. package/src/components/panel/{selectType.ts → types/components-select.ts} +3 -3
  103. package/src/components/panel/{selectMultipleType.ts → types/components-selectMultiple.ts} +2 -2
  104. package/src/components/panel/{sliderType.ts → types/components-slider.ts} +1 -1
  105. package/src/components/panel/{switchType.ts → types/components-switch.ts} +1 -1
  106. package/src/components/panel/{textareaType.ts → types/components-textarea.ts} +1 -1
  107. package/src/components/panel/{indexType.ts → types/index.ts} +12 -12
  108. package/src/components/prompt/config.ts +1 -1
  109. package/src/components/prompt/index.ts +1 -1
  110. package/src/components/prompt/{indexType.ts → types/index.ts} +1 -1
  111. package/src/components/rightClickMenu/config.ts +1 -1
  112. package/src/components/rightClickMenu/index.ts +2 -2
  113. package/src/components/rightClickMenu/{indexType.ts → types/index.ts} +2 -2
  114. package/src/components/searchSuggestion/config.ts +1 -1
  115. package/src/components/searchSuggestion/index.ts +1 -1
  116. package/src/components/searchSuggestion/{indexType.ts → types/index.ts} +1 -1
  117. package/src/components/tooltip/config.ts +1 -1
  118. package/src/components/tooltip/index.ts +1 -1
  119. package/src/components/tooltip/{indexType.ts → types/index.ts} +1 -1
  120. package/src/handler/PopsElementHandler.ts +3 -3
  121. package/src/handler/PopsHandler.ts +26 -26
  122. package/src/types/event.d.ts +1 -1
  123. package/src/types/main.d.ts +18 -18
  124. package/src/types/mask.d.ts +7 -7
  125. package/src/utils/PopsDOMUtils.ts +2 -2
  126. package/src/{Config.ts → utils/PopsDOMUtilsEventsConfig.ts} +3 -0
  127. package/src/utils/PopsInstanceUtils.ts +12 -12
  128. package/src/utils/PopsUtils.ts +1 -1
@@ -1,9 +1,9 @@
1
- import type { PopsCommonConfig } from "./types/components";
1
+ import type { PopsCommonConfig, PopsDragConfig } from "./types/components";
2
2
  type EnterReturnType<T> = null | T | (() => T);
3
3
  type GlobalConfigOption = {
4
4
  style?: EnterReturnType<string>;
5
5
  zIndex?: EnterReturnType<number> | EnterReturnType<string>;
6
- } & Partial<PopsCommonConfig>;
6
+ } & Partial<PopsCommonConfig> & Partial<PopsDragConfig>;
7
7
  export declare const GlobalConfig: {
8
8
  config: GlobalConfigOption;
9
9
  /**
@@ -26,6 +26,11 @@ export declare const GlobalConfig: {
26
26
  mask?: import("./types/mask").PopsMaskDetails | undefined;
27
27
  forbiddenScroll?: boolean | undefined;
28
28
  beforeAppendToPageCallBack?: void;
29
+ drag?: boolean | undefined;
30
+ dragLimit?: boolean | undefined;
31
+ dragExtraDistance?: number | undefined;
32
+ dragMoveCallBack?: void;
33
+ dragEndCallBack?: void;
29
34
  };
30
35
  };
31
36
  export {};
@@ -1,14 +1,14 @@
1
- import type { PopsAlertDetails } from "./components/alert/indexType";
2
- import type { PopsConfirmDetails } from "./components/confirm/indexType";
3
- import type { PopsPromptDetails } from "./components/prompt/indexType";
4
- import type { PopsLoadingDetails } from "./components/loading/indexType";
5
- import type { PopsIframeDetails } from "./components/iframe/indexType";
6
- import type { PopsToolTipDetails } from "./components/tooltip/indexType";
7
- import type { PopsDrawerDetails } from "./components/drawer/indexType";
8
- import type { PopsFolderDetails } from "./components/folder/indexType";
9
- import type { PopsPanelDetails } from "./components/panel/indexType";
10
- import type { PopsRightClickMenuDetails } from "./components/rightClickMenu/indexType";
11
- import type { PopsSearchSuggestionDetails } from "./components/searchSuggestion/indexType";
1
+ import type { PopsAlertDetails } from "./components/alert/types";
2
+ import type { PopsConfirmDetails } from "./components/confirm/types";
3
+ import type { PopsPromptDetails } from "./components/prompt/types/index";
4
+ import type { PopsLoadingDetails } from "./components/loading/types";
5
+ import type { PopsIframeDetails } from "./components/iframe/types";
6
+ import type { PopsToolTipDetails } from "./components/tooltip/types/index";
7
+ import type { PopsDrawerDetails } from "./components/drawer/types";
8
+ import type { PopsFolderDetails } from "./components/folder/types";
9
+ import type { PopsPanelDetails } from "./components/panel/types";
10
+ import type { PopsRightClickMenuDetails } from "./components/rightClickMenu/types";
11
+ import type { PopsSearchSuggestionDetails } from "./components/searchSuggestion/types/index";
12
12
  declare class Pops {
13
13
  /** 配置 */
14
14
  config: {
@@ -207,7 +207,7 @@ declare class Pops {
207
207
  division(number1: number, number2: number): number;
208
208
  };
209
209
  /** pops.panel中用于处理各个类型的工具 */
210
- panelHandleContentUtils: () => {
210
+ PanelHandlerComponents: () => {
211
211
  asideULElement: HTMLUListElement;
212
212
  sectionContainerHeaderULElement: HTMLUListElement;
213
213
  sectionContainerULElement: HTMLUListElement;
@@ -232,22 +232,22 @@ declare class Pops {
232
232
  setElementAttributes(element: HTMLElement, attributes?: any): void;
233
233
  setElementProps(element: HTMLElement, props?: any): void;
234
234
  setElementClassName(element: HTMLElement, className?: string | string[] | (() => string | string[])): void;
235
- createAsideItem(asideConfig: import("./components/panel/indexType").PopsPanelContentConfig): HTMLLIElement;
236
- createSectionContainerItem_switch(formConfig: import("./components/panel/switchType").PopsPanelSwitchDetails): HTMLLIElement;
237
- createSectionContainerItem_slider(formConfig: import("./components/panel/sliderType").PopsPanelSliderDetails): HTMLLIElement;
238
- createSectionContainerItem_slider_new(formConfig: import("./components/panel/sliderType").PopsPanelSliderDetails): HTMLLIElement;
239
- createSectionContainerItem_input(formConfig: import("./components/panel/inputType").PopsPanelInputDetails): HTMLLIElement;
240
- createSectionContainerItem_textarea(formConfig: import("./components/panel/textareaType").PopsPanelTextAreaDetails): HTMLLIElement;
241
- createSectionContainerItem_select(formConfig: import("./components/panel/selectType").PopsPanelSelectDetails<any>): HTMLLIElement;
242
- createSectionContainerItem_select_multiple_new(formConfig: import("./components/panel/selectMultipleType").PopsPanelSelectMultipleDetails<any>): HTMLLIElement;
243
- createSectionContainerItem_button(formConfig: import("./components/panel/buttonType").PopsPanelButtonDetails): HTMLLIElement;
244
- createSectionContainerItem_deepMenu(formConfig: import("./components/panel/deepMenuType").PopsPanelDeepMenuDetails): HTMLLIElement;
245
- createSectionContainerItem_own(formConfig: import("./components/panel/ownType").PopsPanelOwnDetails): HTMLLIElement;
246
- createSectionContainerItem(formConfig: import("./components/panel/indexType").PopsPanelFormsTotalDetails): HTMLLIElement | undefined;
247
- createSectionContainerItem_forms(formConfig: import("./components/panel/indexType").PopsPanelContentConfig | import("./components/panel/formsType").PopsPanelFormsDetails): void;
235
+ createAsideItem(asideConfig: import("./components/panel/types").PopsPanelContentConfig): HTMLLIElement;
236
+ createSectionContainerItem_switch(formConfig: import("./components/panel/types/components-switch").PopsPanelSwitchDetails): HTMLLIElement;
237
+ createSectionContainerItem_slider(formConfig: import("./components/panel/types/components-slider").PopsPanelSliderDetails): HTMLLIElement;
238
+ createSectionContainerItem_slider_new(formConfig: import("./components/panel/types/components-slider").PopsPanelSliderDetails): HTMLLIElement;
239
+ createSectionContainerItem_input(formConfig: import("./components/panel/types/components-input").PopsPanelInputDetails): HTMLLIElement;
240
+ createSectionContainerItem_textarea(formConfig: import("./components/panel/types/components-textarea").PopsPanelTextAreaDetails): HTMLLIElement;
241
+ createSectionContainerItem_select(formConfig: import("./components/panel/types/components-select").PopsPanelSelectDetails<any>): HTMLLIElement;
242
+ createSectionContainerItem_select_multiple_new(formConfig: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDetails<any>): HTMLLIElement;
243
+ createSectionContainerItem_button(formConfig: import("./components/panel/types/components-button").PopsPanelButtonDetails): HTMLLIElement;
244
+ createSectionContainerItem_deepMenu(formConfig: import("./components/panel/types/components-deepMenu").PopsPanelDeepMenuDetails): HTMLLIElement;
245
+ createSectionContainerItem_own(formConfig: import("./components/panel/types/components-own").PopsPanelOwnDetails): HTMLLIElement;
246
+ createSectionContainerItem(formConfig: import("./components/panel/types").PopsPanelFormsTotalDetails): HTMLLIElement | undefined;
247
+ createSectionContainerItem_forms(formConfig: import("./components/panel/types").PopsPanelContentConfig | import("./components/panel/types/components-forms").PopsPanelFormsDetails): void;
248
248
  triggerRenderRightContainer($container: HTMLElement): void;
249
- uListContainerAddItem(formConfig: import("./components/panel/indexType").PopsPanelFormsTotalDetails, containerOptions: Omit<import("./components/panel/commonType").PopsPanelRightAsideContainerOptions, "target">): void;
250
- setAsideItemClickEvent(asideLiElement: HTMLElement, asideConfig: import("./components/panel/indexType").PopsPanelContentConfig): void;
249
+ uListContainerAddItem(formConfig: import("./components/panel/types").PopsPanelFormsTotalDetails, containerOptions: Omit<import("./components/panel/types/components-common").PopsPanelRightAsideContainerOptions, "target">): void;
250
+ setAsideItemClickEvent(asideLiElement: HTMLElement, asideConfig: import("./components/panel/types").PopsPanelContentConfig): void;
251
251
  };
252
252
  };
253
253
  init(): void;
@@ -269,11 +269,11 @@ declare class Pops {
269
269
  config: {
270
270
  style?: string | (() => string) | null;
271
271
  zIndex?: (number | (() => number) | null) | (string | (() => string) | null);
272
- } & Partial<import("./types/components").PopsCommonConfig>;
272
+ } & Partial<import("./types/components").PopsCommonConfig> & Partial<import("./types/components").PopsDragConfig>;
273
273
  setGlobalConfig(config: {
274
274
  style?: string | (() => string) | null;
275
275
  zIndex?: (number | (() => number) | null) | (string | (() => string) | null);
276
- } & Partial<import("./types/components").PopsCommonConfig>): void;
276
+ } & Partial<import("./types/components").PopsCommonConfig> & Partial<import("./types/components").PopsDragConfig>): void;
277
277
  getGlobalConfig(): {
278
278
  style?: string | undefined;
279
279
  zIndex?: string | number | undefined;
@@ -287,6 +287,11 @@ declare class Pops {
287
287
  mask?: import("./types/mask").PopsMaskDetails | undefined;
288
288
  forbiddenScroll?: boolean | undefined;
289
289
  beforeAppendToPageCallBack?: void;
290
+ drag?: boolean | undefined;
291
+ dragLimit?: boolean | undefined;
292
+ dragExtraDistance?: number | undefined;
293
+ dragMoveCallBack?: void;
294
+ dragEndCallBack?: void;
290
295
  };
291
296
  };
292
297
  /**
@@ -326,7 +331,7 @@ declare class Pops {
326
331
  target: HTMLElement;
327
332
  content: string | (() => string);
328
333
  isDiffContent: boolean;
329
- position: import("./components/tooltip/indexType").PopsTooltipPosition;
334
+ position: import("./components/tooltip/types/index").PopsTooltipPosition;
330
335
  className: string;
331
336
  isFixed: boolean;
332
337
  alwaysShow: boolean;
@@ -385,8 +390,8 @@ declare class Pops {
385
390
  * @param details 配置
386
391
  */
387
392
  panel: (details: PopsPanelDetails) => {
388
- addEventListener: <K extends keyof import("./components/panel/indexType").PopsPanelEventType>(event: K, listener: (evt: CustomEvent<import("./components/panel/indexType").PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
389
- removeEventListener: <K extends keyof import("./components/panel/indexType").PopsPanelEventType>(event: K, listener: (evt: CustomEvent<import("./components/panel/indexType").PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
393
+ addEventListener: <K extends keyof import("./components/panel/types").PopsPanelEventType>(event: K, listener: (evt: CustomEvent<import("./components/panel/types").PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
394
+ removeEventListener: <K extends keyof import("./components/panel/types").PopsPanelEventType>(event: K, listener: (evt: CustomEvent<import("./components/panel/types").PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
390
395
  close: () => Promise<void>;
391
396
  hide: () => Promise<void>;
392
397
  show: () => Promise<void>;
@@ -406,7 +411,7 @@ declare class Pops {
406
411
  rightClickMenu: (details: PopsRightClickMenuDetails) => {
407
412
  guid: string;
408
413
  config: {
409
- target: Node | HTMLElement | {
414
+ target: HTMLElement | Node | {
410
415
  addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean) => void;
411
416
  dispatchEvent: (event: Event) => boolean;
412
417
  removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean) => void;
@@ -21068,7 +21073,7 @@ declare class Pops {
21068
21073
  * @param details 配置
21069
21074
  */
21070
21075
  searchSuggestion: <T = any>(details: PopsSearchSuggestionDetails<T>) => {
21071
- selfDocument: Document | ShadowRoot | (Document | ShadowRoot)[];
21076
+ selfDocument: ShadowRoot | Document | (ShadowRoot | Document)[];
21072
21077
  $el: {
21073
21078
  root: HTMLElement;
21074
21079
  $hintULContainer: HTMLUListElement;
@@ -1,18 +1,19 @@
1
- export interface PopsCoreOption {
1
+ interface PopsCoreOption {
2
2
  document: Document;
3
3
  window: Window;
4
4
  globalThis: typeof globalThis;
5
5
  self: typeof globalThis;
6
6
  }
7
- export declare const PopsCore: {
7
+ declare const PopsCore: {
8
8
  init(option?: PopsCoreOption): void;
9
9
  readonly document: Document;
10
10
  readonly window: Window;
11
11
  readonly globalThis: typeof globalThis;
12
12
  readonly self: typeof globalThis;
13
13
  };
14
- export declare const OriginPrototype: {
14
+ declare const OriginPrototype: {
15
15
  Object: {
16
16
  defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
17
17
  };
18
18
  };
19
+ export { PopsCoreOption, PopsCore, OriginPrototype };
@@ -1,6 +1,34 @@
1
- import type { PopsIconType } from "./types/icon";
2
1
  export declare const PopsIcon: {
3
- $data: { [key in PopsIconType]: string; };
2
+ $data: {
3
+ loading: string;
4
+ min: string;
5
+ max: string;
6
+ mise: string;
7
+ close: string;
8
+ edit: string;
9
+ share: string;
10
+ delete: string;
11
+ search: string;
12
+ upload: string;
13
+ next: string;
14
+ prev: string;
15
+ eleme: string;
16
+ elemePlus: string;
17
+ chromeFilled: string;
18
+ cpu: string;
19
+ videoPlay: string;
20
+ videoPause: string;
21
+ headset: string;
22
+ monitor: string;
23
+ documentCopy: string;
24
+ picture: string;
25
+ circleClose: string;
26
+ view: string;
27
+ hide: string;
28
+ keyboard: string;
29
+ arrowRight: string;
30
+ arrowLeft: string;
31
+ };
4
32
  /**
5
33
  * 判断是否存在某个icon
6
34
  * @param iconName 图标名
@@ -1,3 +1,5 @@
1
1
  import type { PopsLayerCommonConfig } from "./types/layer";
2
2
  import type { PopsLayerMode } from "./types/main";
3
- export declare const PopsLayer: { [key in PopsLayerMode]: PopsLayerCommonConfig[]; };
3
+ export declare const PopsLayerData: {
4
+ [key in PopsLayerMode]: PopsLayerCommonConfig[];
5
+ };
@@ -1,2 +1,2 @@
1
- import type { PopsAlertDetails } from "./indexType";
1
+ import type { PopsAlertDetails } from "./types";
2
2
  export declare const PopsAlertConfig: () => DeepRequired<PopsAlertDetails>;
@@ -1,4 +1,4 @@
1
- import type { PopsAlertDetails } from "./indexType";
1
+ import type { PopsAlertDetails } from "./types";
2
2
  export declare const PopsAlert: {
3
3
  init(details: PopsAlertDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
4
4
  };
@@ -1,5 +1,5 @@
1
- import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsButtonConfig } from "../../types/components";
2
- import type { PopsButtonDetails, PopsButtonDetailsAnyType } from "../../types/button";
1
+ import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsButtonConfig } from "../../../types/components";
2
+ import type { PopsButtonDetails, PopsButtonDetailsAnyType } from "../../../types/button";
3
3
  /**
4
4
  * pops.alert
5
5
  */
@@ -1,2 +1,2 @@
1
- import type { PopsConfirmDetails } from "./indexType";
1
+ import type { PopsConfirmDetails } from "./types";
2
2
  export declare const PopsConfirmConfig: () => DeepRequired<PopsConfirmDetails>;
@@ -1,4 +1,4 @@
1
- import type { PopsConfirmDetails } from "./indexType";
1
+ import type { PopsConfirmDetails } from "./types";
2
2
  export declare const PopsConfirm: {
3
3
  init(details: PopsConfirmDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../types/components";
1
+ import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
2
2
  /**
3
3
  * pops.confirm
4
4
  */
@@ -1,2 +1,2 @@
1
- import type { PopsDrawerDetails } from "./indexType";
1
+ import type { PopsDrawerDetails } from "./types";
2
2
  export declare const PopsDrawerConfig: () => DeepRequired<PopsDrawerDetails>;
@@ -1,4 +1,4 @@
1
- import type { PopsDrawerDetails } from "./indexType";
1
+ import type { PopsDrawerDetails } from "./types";
2
2
  export declare const PopsDrawer: {
3
3
  init(details: PopsDrawerDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { PopsTitleConfig, PopsContentConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../types/components";
1
+ import type { PopsTitleConfig, PopsContentConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
2
2
  /**
3
3
  * pops.drawer
4
4
  */
@@ -1,2 +1,2 @@
1
- import type { PopsFolderDetails } from "./indexType";
1
+ import type { PopsFolderDetails } from "./types";
2
2
  export declare const PopsFolderConfig: () => DeepRequired<PopsFolderDetails>;
@@ -1,4 +1,4 @@
1
- import type { PopsFolderDetails } from "./indexType";
1
+ import type { PopsFolderDetails } from "./types";
2
2
  export declare const PopsFolder: {
3
3
  init(details: PopsFolderDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../types/components";
1
+ import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
2
2
  /**
3
3
  * pops.folder的folder配置信息
4
4
  */
@@ -1,2 +1,2 @@
1
- import type { PopsIframeDetails } from "./indexType";
1
+ import type { PopsIframeDetails } from "./types";
2
2
  export declare const PopsIframeConfig: () => DeepRequired<PopsIframeDetails>;
@@ -1,5 +1,5 @@
1
1
  import type { PopsEventDetails } from "../../types/event";
2
- import type { PopsIframeDetails } from "./indexType";
2
+ import type { PopsIframeDetails } from "./types";
3
3
  export declare const PopsIframe: {
4
4
  init(details: PopsIframeDetails): Omit<PopsEventDetails & {
5
5
  iframeElement: HTMLIFrameElement;
@@ -1,5 +1,5 @@
1
- import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../types/components";
2
- import type { PopsEventDetails } from "../../types/event";
1
+ import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../../types/components";
2
+ import type { PopsEventDetails } from "../../../types/event";
3
3
  /**
4
4
  * pops.iframe的按钮的点击回调参数event
5
5
  */
@@ -1,2 +1,2 @@
1
- import type { PopsLoadingDetails } from "./indexType";
1
+ import type { PopsLoadingDetails } from "./types";
2
2
  export declare const PopsLoadingConfig: () => DeepRequired<PopsLoadingDetails>;
@@ -1,4 +1,4 @@
1
- import type { PopsLoadingDetails } from "./indexType";
1
+ import type { PopsLoadingDetails } from "./types";
2
2
  export declare const PopsLoading: {
3
3
  init(details: PopsLoadingDetails): Omit<Omit<import("../../types/event").PopsEventDetails, "$shadowContainer" | "$shadowRoot">, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { PopsCommonConfig, PopsContentConfig } from "../../types/components";
1
+ import type { PopsCommonConfig, PopsContentConfig } from "../../../types/components";
2
2
  /**
3
3
  * pops.loading
4
4
  */
@@ -1,2 +1,2 @@
1
- import type { PopsPanelDetails } from "./indexType";
1
+ import type { PopsPanelDetails } from "./types";
2
2
  export declare const PopsPanelConfig: () => DeepRequired<PopsPanelDetails>;
@@ -1,16 +1,19 @@
1
- import type { PopsPanelButtonDetails } from "./buttonType";
2
- import type { PopsPanelRightAsideContainerOptions } from "./commonType";
3
- import type { PopsPanelDeepMenuDetails } from "./deepMenuType";
4
- import type { PopsPanelFormsDetails } from "./formsType";
5
- import type { PopsPanelContentConfig, PopsPanelDetails, PopsPanelFormsTotalDetails } from "./indexType";
6
- import type { PopsPanelInputDetails } from "./inputType";
7
- import type { PopsPanelOwnDetails } from "./ownType";
8
- import type { PopsPanelSelectMultipleDetails } from "./selectMultipleType";
9
- import type { PopsPanelSelectDetails } from "./selectType";
10
- import type { PopsPanelSliderDetails } from "./sliderType";
11
- import type { PopsPanelSwitchDetails } from "./switchType";
12
- import type { PopsPanelTextAreaDetails } from "./textareaType";
13
- export declare const PanelHandleContentDetails: () => {
1
+ import type { PopsPanelButtonDetails } from "./types/components-button";
2
+ import type { PopsPanelRightAsideContainerOptions } from "./types/components-common";
3
+ import type { PopsPanelDeepMenuDetails } from "./types/components-deepMenu";
4
+ import type { PopsPanelFormsDetails } from "./types/components-forms";
5
+ import type { PopsPanelContentConfig, PopsPanelDetails, PopsPanelFormsTotalDetails } from "./types";
6
+ import type { PopsPanelInputDetails } from "./types/components-input";
7
+ import type { PopsPanelOwnDetails } from "./types/components-own";
8
+ import type { PopsPanelSelectMultipleDetails } from "./types/components-selectMultiple";
9
+ import type { PopsPanelSelectDetails } from "./types/components-select";
10
+ import type { PopsPanelSliderDetails } from "./types/components-slider";
11
+ import type { PopsPanelSwitchDetails } from "./types/components-switch";
12
+ import type { PopsPanelTextAreaDetails } from "./types/components-textarea";
13
+ /**
14
+ * 处理组件(把组件配置转为组件元素)
15
+ */
16
+ export declare const PanelHandlerComponents: () => {
14
17
  /**
15
18
  * 左侧的ul容器
16
19
  */
@@ -1,4 +1,4 @@
1
- import type { PopsPanelDetails, PopsPanelEventType } from "./indexType";
1
+ import type { PopsPanelDetails, PopsPanelEventType } from "./types";
2
2
  export declare const PopsPanel: {
3
3
  init(details: PopsPanelDetails): {
4
4
  addEventListener: <K extends keyof PopsPanelEventType>(event: K, listener: (evt: CustomEvent<PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
@@ -1,6 +1,6 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
2
- import type { PopsButtonStyleType } from "../../types/button";
3
- import type { PopsIconType } from "../../types/icon";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
+ import type { PopsButtonStyleType } from "../../../types/button";
3
+ import type { PopsIconType } from "../../../types/icon";
4
4
  /**
5
5
  * pops.panel的 button
6
6
  */
@@ -1,5 +1,5 @@
1
- import type { PopsPanelFormsDetails } from "./formsType";
2
- import { PopsPanelFormsTotalDetails } from "./indexType";
1
+ import type { PopsPanelFormsDetails } from "./components-forms";
2
+ import { PopsPanelFormsTotalDetails } from ".";
3
3
  /**
4
4
  * 右侧容器的配置
5
5
  */
@@ -1,6 +1,6 @@
1
- import type { PopsPanelFormsTotalDetails } from "./indexType";
2
- import type { PopsPanelFormsDetails } from "./formsType";
3
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsPanelFormsTotalDetails } from ".";
2
+ import type { PopsPanelFormsDetails } from "./components-forms";
3
+ import type { PopsPanelCommonDetails } from "./components-common";
4
4
  /**
5
5
  * pops.panel的 深层菜单
6
6
  */
@@ -1,5 +1,5 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
2
- import type { PopsPanelFormsTotalDetails } from "./indexType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
+ import type { PopsPanelFormsTotalDetails } from ".";
3
3
  /**
4
4
  * pops.panel的 forms
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
2
  /**
3
3
  * pops.panel的 input
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
2
  /**
3
3
  * pops.panel的 own
4
4
  * 自定义的
@@ -1,6 +1,6 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
2
- import type { PopsPanelFormsDetails } from "./formsType";
3
- import type { PopsPanelFormsTotalDetails } from "./indexType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
+ import type { PopsPanelFormsDetails } from "./components-forms";
3
+ import type { PopsPanelFormsTotalDetails } from ".";
4
4
  /**
5
5
  * pops.panel的 select
6
6
  */
@@ -1,5 +1,5 @@
1
- import type { PopsAlertDetails } from "../alert/indexType";
2
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsAlertDetails } from "../../alert/types";
2
+ import type { PopsPanelCommonDetails } from "./components-common";
3
3
  export interface PopsPanelSelectMultipleDataOption<T> {
4
4
  /**
5
5
  * 真正的值
@@ -1,4 +1,4 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
2
  /**
3
3
  * pops.panel的 slider
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
2
  /**
3
3
  * pops.panel的 switch
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { PopsPanelCommonDetails } from "./commonType";
1
+ import type { PopsPanelCommonDetails } from "./components-common";
2
2
  /**
3
3
  * pops.panel的 textarea
4
4
  */
@@ -1,15 +1,15 @@
1
- import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../types/components";
2
- import type { PopsPanelFormsDetails } from "./formsType";
3
- import type { PopsPanelSwitchDetails } from "./switchType";
4
- import type { PopsPanelSliderDetails } from "./sliderType";
5
- import type { PopsPanelInputDetails } from "./inputType";
6
- import type { PopsPanelTextAreaDetails } from "./textareaType";
7
- import type { PopsPanelSelectDetails } from "./selectType";
8
- import type { PopsPanelButtonDetails } from "./buttonType";
9
- import type { PopsPanelDeepMenuDetails } from "./deepMenuType";
10
- import type { PopsPanelOwnDetails } from "./ownType";
11
- import type { PopsHeaderCloseButtonDetails } from "../../types/button";
12
- import { PopsPanelSelectMultipleDetails } from "./selectMultipleType";
1
+ import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../../types/components";
2
+ import type { PopsPanelFormsDetails } from "./components-forms";
3
+ import type { PopsPanelSwitchDetails } from "./components-switch";
4
+ import type { PopsPanelSliderDetails } from "./components-slider";
5
+ import type { PopsPanelInputDetails } from "./components-input";
6
+ import type { PopsPanelTextAreaDetails } from "./components-textarea";
7
+ import type { PopsPanelSelectDetails } from "./components-select";
8
+ import type { PopsPanelButtonDetails } from "./components-button";
9
+ import type { PopsPanelDeepMenuDetails } from "./components-deepMenu";
10
+ import type { PopsPanelOwnDetails } from "./components-own";
11
+ import type { PopsHeaderCloseButtonDetails } from "../../../types/button";
12
+ import { PopsPanelSelectMultipleDetails } from "./components-selectMultiple";
13
13
  /** panel的各种类型的配置项 */
14
14
  export type PopsPanelFormsTotalDetails = PopsPanelSwitchDetails | PopsPanelSliderDetails | PopsPanelInputDetails | PopsPanelTextAreaDetails | PopsPanelSelectDetails<any> | PopsPanelSelectMultipleDetails<any> | PopsPanelButtonDetails | PopsPanelDeepMenuDetails | PopsPanelOwnDetails;
15
15
  /**
@@ -1,2 +1,2 @@
1
- import type { PopsPromptDetails } from "./indexType";
1
+ import type { PopsPromptDetails } from "./types/index";
2
2
  export declare const PopsPromptConfig: () => DeepRequired<PopsPromptDetails>;
@@ -1,4 +1,4 @@
1
- import type { PopsPromptDetails } from "./indexType";
1
+ import type { PopsPromptDetails } from "./types/index";
2
2
  export declare const PopsPrompt: {
3
3
  init(details: PopsPromptDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../types/components";
1
+ import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
2
2
  /**
3
3
  * pops.prompt
4
4
  */
@@ -1,2 +1,2 @@
1
- import type { PopsRightClickMenuDetails } from "./indexType";
1
+ import type { PopsRightClickMenuDetails } from "./types";
2
2
  export declare const rightClickMenuConfig: () => DeepRequired<PopsRightClickMenuDetails>;
@@ -1,9 +1,9 @@
1
- import type { PopsRightClickMenuDetails } from "./indexType";
1
+ import type { PopsRightClickMenuDetails } from "./types";
2
2
  export declare const PopsRightClickMenu: {
3
3
  init(details: PopsRightClickMenuDetails): {
4
4
  guid: string;
5
5
  config: {
6
- target: Node | HTMLElement | {
6
+ target: HTMLElement | Node | {
7
7
  addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean) => void;
8
8
  dispatchEvent: (event: Event) => boolean;
9
9
  removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean) => void;
@@ -1,5 +1,5 @@
1
- import type { PopsCommonConfig } from "../../types/components";
2
- import type { PopsIconType } from "../../types/icon";
1
+ import type { PopsCommonConfig } from "../../../types/components";
2
+ import type { PopsIconType } from "../../../types/icon";
3
3
  /**
4
4
  * pops.rightClickMenu的右键菜单配置
5
5
  */
@@ -1,2 +1,2 @@
1
- import type { PopsSearchSuggestionDetails } from "./indexType";
1
+ import type { PopsSearchSuggestionDetails } from "./types/index";
2
2
  export declare const searchSuggestionConfig: () => DeepRequired<PopsSearchSuggestionDetails>;
@@ -1,10 +1,10 @@
1
- import type { PopsSearchSuggestionDetails } from "./indexType";
1
+ import type { PopsSearchSuggestionDetails } from "./types/index";
2
2
  export declare const PopsSearchSuggestion: {
3
3
  init(details: PopsSearchSuggestionDetails): {
4
4
  /**
5
5
  * 当前的环境,可以是document,可以是shadowroot,默认是document
6
6
  */
7
- selfDocument: Document | ShadowRoot | (Document | ShadowRoot)[];
7
+ selfDocument: ShadowRoot | Document | (ShadowRoot | Document)[];
8
8
  $el: {
9
9
  /** 根元素 */
10
10
  root: HTMLElement;
@@ -1,4 +1,4 @@
1
- import type { PopsCommonConfig } from "../../types/components";
1
+ import type { PopsCommonConfig } from "../../../types/components";
2
2
  /**
3
3
  * 搜索建议悬浮窗
4
4
  * pops.searchSuggestion