@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
@@ -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,21 +207,23 @@ 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;
214
214
  $el: {
215
- $content: HTMLDivElement;
216
- $contentAside: HTMLDivElement;
217
- $contentSectionContainer: HTMLDivElement;
215
+ $pops: HTMLElement;
216
+ $content: HTMLElement;
217
+ $contentAside: HTMLElement;
218
+ $contentSectionContainer: HTMLElement;
218
219
  };
219
220
  init(details: {
220
221
  config: Required<PopsPanelDetails>;
221
222
  $el: {
222
- $content: HTMLDivElement;
223
- $contentAside: HTMLDivElement;
224
- $contentSectionContainer: HTMLDivElement;
223
+ $pops: HTMLElement;
224
+ $content: HTMLElement;
225
+ $contentAside: HTMLElement;
226
+ $contentSectionContainer: HTMLElement;
225
227
  };
226
228
  }): void;
227
229
  clearContainer(): void;
@@ -230,21 +232,22 @@ declare class Pops {
230
232
  setElementAttributes(element: HTMLElement, attributes?: any): void;
231
233
  setElementProps(element: HTMLElement, props?: any): void;
232
234
  setElementClassName(element: HTMLElement, className?: string | string[] | (() => string | string[])): void;
233
- createAsideItem(asideConfig: import("./components/panel/indexType").PopsPanelContentConfig): HTMLLIElement;
234
- createSectionContainerItem_switch(formConfig: import("./components/panel/switchType").PopsPanelSwitchDetails): HTMLLIElement;
235
- createSectionContainerItem_slider(formConfig: import("./components/panel/sliderType").PopsPanelSliderDetails): HTMLLIElement;
236
- createSectionContainerItem_slider_new(formConfig: import("./components/panel/sliderType").PopsPanelSliderDetails): HTMLLIElement;
237
- createSectionContainerItem_input(formConfig: import("./components/panel/inputType").PopsPanelInputDetails): HTMLLIElement;
238
- createSectionContainerItem_textarea(formConfig: import("./components/panel/textareaType").PopsPanelTextAreaDetails): HTMLLIElement;
239
- createSectionContainerItem_select(formConfig: import("./components/panel/selectType").PopsPanelSelectDetails<any>): HTMLLIElement;
240
- createSectionContainerItem_select_multiple_new(formConfig: import("./components/panel/selectMultipleType").PopsPanelSelectMultipleDetails<any>): HTMLLIElement;
241
- createSectionContainerItem_button(formConfig: import("./components/panel/buttonType").PopsPanelButtonDetails): HTMLLIElement;
242
- createSectionContainerItem_deepMenu(formConfig: import("./components/panel/deepMenuType").PopsPanelDeepMenuDetails): HTMLLIElement;
243
- createSectionContainerItem_own(formConfig: import("./components/panel/ownType").PopsPanelOwnDetails): HTMLLIElement;
244
- createSectionContainerItem(formConfig: import("./components/panel/indexType").PopsPanelFormsTotalDetails): HTMLLIElement | undefined;
245
- createSectionContainerItem_forms(formConfig: import("./components/panel/indexType").PopsPanelContentConfig | import("./components/panel/formsType").PopsPanelFormsDetails): void;
246
- uListContainerAddItem(formConfig: import("./components/panel/indexType").PopsPanelFormsTotalDetails, containerOptions: Omit<import("./components/panel/commonType").PopsPanelRightAsideContainerOptions, "target">): void;
247
- setAsideItemClickEvent(asideLiElement: HTMLElement, asideConfig: import("./components/panel/indexType").PopsPanelContentConfig): 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
+ triggerRenderRightContainer($container: HTMLElement): 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;
248
251
  };
249
252
  };
250
253
  init(): void;
@@ -266,11 +269,11 @@ declare class Pops {
266
269
  config: {
267
270
  style?: string | (() => string) | null;
268
271
  zIndex?: (number | (() => number) | null) | (string | (() => string) | null);
269
- } & Partial<import("./types/components").PopsCommonConfig>;
272
+ } & Partial<import("./types/components").PopsCommonConfig> & Partial<import("./types/components").PopsDragConfig>;
270
273
  setGlobalConfig(config: {
271
274
  style?: string | (() => string) | null;
272
275
  zIndex?: (number | (() => number) | null) | (string | (() => string) | null);
273
- } & Partial<import("./types/components").PopsCommonConfig>): void;
276
+ } & Partial<import("./types/components").PopsCommonConfig> & Partial<import("./types/components").PopsDragConfig>): void;
274
277
  getGlobalConfig(): {
275
278
  style?: string | undefined;
276
279
  zIndex?: string | number | undefined;
@@ -284,6 +287,11 @@ declare class Pops {
284
287
  mask?: import("./types/mask").PopsMaskDetails | undefined;
285
288
  forbiddenScroll?: boolean | undefined;
286
289
  beforeAppendToPageCallBack?: void;
290
+ drag?: boolean | undefined;
291
+ dragLimit?: boolean | undefined;
292
+ dragExtraDistance?: number | undefined;
293
+ dragMoveCallBack?: void;
294
+ dragEndCallBack?: void;
287
295
  };
288
296
  };
289
297
  /**
@@ -323,7 +331,7 @@ declare class Pops {
323
331
  target: HTMLElement;
324
332
  content: string | (() => string);
325
333
  isDiffContent: boolean;
326
- position: import("./components/tooltip/indexType").PopsTooltipPosition;
334
+ position: import("./components/tooltip/types/index").PopsTooltipPosition;
327
335
  className: string;
328
336
  isFixed: boolean;
329
337
  alwaysShow: boolean;
@@ -381,7 +389,21 @@ declare class Pops {
381
389
  * 配置面板
382
390
  * @param details 配置
383
391
  */
384
- panel: (details: PopsPanelDetails) => Omit<import("./types/event").PopsEventDetails, "function" | "type">;
392
+ panel: (details: PopsPanelDetails) => {
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;
395
+ close: () => Promise<void>;
396
+ hide: () => Promise<void>;
397
+ show: () => Promise<void>;
398
+ guid: string;
399
+ $shadowContainer: HTMLDivElement;
400
+ $shadowRoot: ShadowRoot | HTMLElement;
401
+ element: HTMLDivElement;
402
+ animElement: HTMLDivElement;
403
+ popsElement: HTMLDivElement;
404
+ maskElement?: HTMLDivElement | undefined;
405
+ mode: import("./types/main").PopsMode;
406
+ };
385
407
  /**
386
408
  * 右键菜单
387
409
  * @param details 配置
@@ -389,7 +411,7 @@ declare class Pops {
389
411
  rightClickMenu: (details: PopsRightClickMenuDetails) => {
390
412
  guid: string;
391
413
  config: {
392
- target: Node | HTMLElement | {
414
+ target: HTMLElement | Node | {
393
415
  addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean) => void;
394
416
  dispatchEvent: (event: Event) => boolean;
395
417
  removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean) => void;
@@ -21051,7 +21073,7 @@ declare class Pops {
21051
21073
  * @param details 配置
21052
21074
  */
21053
21075
  searchSuggestion: <T = any>(details: PopsSearchSuggestionDetails<T>) => {
21054
- selfDocument: Document | ShadowRoot | (Document | ShadowRoot)[];
21076
+ selfDocument: ShadowRoot | Document | (ShadowRoot | Document)[];
21055
21077
  $el: {
21056
21078
  root: HTMLElement;
21057
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
  */
@@ -27,12 +30,14 @@ export declare const PanelHandleContentDetails: () => {
27
30
  * 元素
28
31
  */
29
32
  $el: {
33
+ /** pops主元素 */
34
+ $pops: HTMLElement;
30
35
  /** 内容 */
31
- $content: HTMLDivElement;
36
+ $content: HTMLElement;
32
37
  /** 左侧容器 */
33
- $contentAside: HTMLDivElement;
38
+ $contentAside: HTMLElement;
34
39
  /** 右侧容器 */
35
- $contentSectionContainer: HTMLDivElement;
40
+ $contentSectionContainer: HTMLElement;
36
41
  };
37
42
  /**
38
43
  * 初始化
@@ -41,9 +46,10 @@ export declare const PanelHandleContentDetails: () => {
41
46
  init(details: {
42
47
  config: Required<PopsPanelDetails>;
43
48
  $el: {
44
- $content: HTMLDivElement;
45
- $contentAside: HTMLDivElement;
46
- $contentSectionContainer: HTMLDivElement;
49
+ $pops: HTMLElement;
50
+ $content: HTMLElement;
51
+ $contentAside: HTMLElement;
52
+ $contentSectionContainer: HTMLElement;
47
53
  };
48
54
  }): void;
49
55
  /**
@@ -83,61 +89,62 @@ export declare const PanelHandleContentDetails: () => {
83
89
  */
84
90
  createAsideItem(asideConfig: PopsPanelContentConfig): HTMLLIElement;
85
91
  /**
86
- * 创建中间容器的元素<li>
87
92
  * type ==> switch
93
+ * 创建中间容器的元素<li>
88
94
  * @param formConfig
89
95
  */
90
96
  createSectionContainerItem_switch(formConfig: PopsPanelSwitchDetails): HTMLLIElement;
91
97
  /**
92
- * 获取中间容器的元素<li>
93
98
  * type ==> slider
99
+ * 获取中间容器的元素<li>
94
100
  * @param formConfig
95
101
  */
96
102
  createSectionContainerItem_slider(formConfig: PopsPanelSliderDetails): HTMLLIElement;
97
103
  /**
98
- * 获取中间容器的元素<li>
99
104
  * type ==> slider
105
+ * 获取中间容器的元素<li>
100
106
  * @param formConfig
101
107
  */
102
108
  createSectionContainerItem_slider_new(formConfig: PopsPanelSliderDetails): HTMLLIElement;
103
109
  /**
104
- * 获取中间容器的元素<li>
105
110
  * type ==> input
111
+ * 获取中间容器的元素<li>
106
112
  * @param formConfig
107
113
  */
108
114
  createSectionContainerItem_input(formConfig: PopsPanelInputDetails): HTMLLIElement;
109
115
  /**
110
- * 获取中间容器的元素<li>
111
116
  * type ==> textarea
117
+ * 获取中间容器的元素<li>
112
118
  * @param formConfig
113
119
  */
114
120
  createSectionContainerItem_textarea(formConfig: PopsPanelTextAreaDetails): HTMLLIElement;
115
121
  /**
116
- * 获取中间容器的元素<li>
117
122
  * type ==> select
123
+ * 获取中间容器的元素<li>
118
124
  * @param formConfig
119
125
  */
120
126
  createSectionContainerItem_select(formConfig: PopsPanelSelectDetails<any>): HTMLLIElement;
121
127
  /**
122
- * 获取中间容器的元素<li>
123
128
  * type ==> select-multiple
129
+ * 获取中间容器的元素<li>
124
130
  * @param formConfig
125
131
  */
126
132
  createSectionContainerItem_select_multiple_new(formConfig: PopsPanelSelectMultipleDetails<any>): HTMLLIElement;
127
133
  /**
128
- * 获取中间容器的元素<li>
129
134
  * type ==> button
135
+ * 获取中间容器的元素<li>
130
136
  * @param formConfig
131
137
  */
132
138
  createSectionContainerItem_button(formConfig: PopsPanelButtonDetails): HTMLLIElement;
133
139
  /**
140
+ * type ==> deepMenu
134
141
  * 获取深层容器的元素<li>
135
142
  * @param formConfig
136
143
  */
137
144
  createSectionContainerItem_deepMenu(formConfig: PopsPanelDeepMenuDetails): HTMLLIElement;
138
145
  /**
139
- * 获取中间容器的元素<li>
140
146
  * type ===> own
147
+ * 获取中间容器的元素<li>
141
148
  * @param formConfig
142
149
  */
143
150
  createSectionContainerItem_own(formConfig: PopsPanelOwnDetails): HTMLLIElement;
@@ -152,6 +159,10 @@ export declare const PanelHandleContentDetails: () => {
152
159
  * @param formConfig
153
160
  */
154
161
  createSectionContainerItem_forms(formConfig: PopsPanelContentConfig | PopsPanelFormsDetails): void;
162
+ /**
163
+ * 触发触发渲染右侧容器的事件
164
+ */
165
+ triggerRenderRightContainer($container: HTMLElement): void;
155
166
  /**
156
167
  *
157
168
  * @param formConfig
@@ -1,4 +1,18 @@
1
- import type { PopsPanelDetails } from "./indexType";
1
+ import type { PopsPanelDetails, PopsPanelEventType } from "./types";
2
2
  export declare const PopsPanel: {
3
- init(details: PopsPanelDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
3
+ init(details: PopsPanelDetails): {
4
+ addEventListener: <K extends keyof PopsPanelEventType>(event: K, listener: (evt: CustomEvent<PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
5
+ removeEventListener: <K extends keyof PopsPanelEventType>(event: K, listener: (evt: CustomEvent<PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
6
+ close: () => Promise<void>;
7
+ hide: () => Promise<void>;
8
+ show: () => Promise<void>;
9
+ guid: string;
10
+ $shadowContainer: HTMLDivElement;
11
+ $shadowRoot: ShadowRoot | HTMLElement;
12
+ element: HTMLDivElement;
13
+ animElement: HTMLDivElement;
14
+ popsElement: HTMLDivElement;
15
+ maskElement?: HTMLDivElement | undefined;
16
+ mode: import("../../types/main").PopsMode;
17
+ };
4
18
  };
@@ -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
  * 自定义的