@whitesev/pops 2.2.1 → 2.2.2

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 (34) hide show
  1. package/dist/index.amd.js +256 -257
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +256 -257
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +256 -257
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +256 -257
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +256 -257
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +256 -257
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +1 -1
  14. package/dist/types/src/components/panel/index.d.ts +2 -1
  15. package/dist/types/src/components/searchSuggestion/index.d.ts +1 -1
  16. package/dist/types/src/handler/PopsElementHandler.d.ts +6 -6
  17. package/dist/types/src/handler/PopsHandler.d.ts +3 -3
  18. package/dist/types/src/types/components.d.ts +5 -5
  19. package/dist/types/src/types/main.d.ts +34 -31
  20. package/package.json +1 -1
  21. package/src/components/alert/index.ts +15 -15
  22. package/src/components/confirm/index.ts +16 -15
  23. package/src/components/drawer/index.ts +16 -15
  24. package/src/components/folder/index.ts +141 -152
  25. package/src/components/iframe/index.ts +14 -13
  26. package/src/components/panel/index.ts +19 -18
  27. package/src/components/prompt/index.ts +15 -14
  28. package/src/components/rightClickMenu/index.ts +17 -16
  29. package/src/components/searchSuggestion/index.ts +21 -20
  30. package/src/components/tooltip/index.ts +3 -2
  31. package/src/handler/PopsElementHandler.ts +18 -18
  32. package/src/handler/PopsHandler.ts +13 -7
  33. package/src/types/components.d.ts +5 -5
  34. package/src/types/main.d.ts +34 -31
@@ -21,17 +21,17 @@ export interface PopsTitleConfig {
21
21
  */
22
22
  text?: string;
23
23
  /**
24
- * 文字的位置
24
+ * 标题文字的位置
25
25
  * @default "left"
26
26
  */
27
27
  position?: PopsTextAlign;
28
28
  /**
29
- * 文字是否是html
29
+ * 标题文字是否是html
30
30
  * @default false
31
31
  */
32
32
  html?: boolean;
33
33
  /**
34
- * 文字的自定义CSS
34
+ * 自定义CSS
35
35
  */
36
36
  style?: string;
37
37
  };
@@ -47,12 +47,12 @@ export interface PopsContentConfig {
47
47
  */
48
48
  text?: string;
49
49
  /**
50
- * 文字是否是html
50
+ * 内容文字是否是html
51
51
  * @default false
52
52
  */
53
53
  html?: boolean;
54
54
  /**
55
- * 文字的自定义CSS
55
+ * 自定义CSS
56
56
  */
57
57
  style?: string;
58
58
  };
@@ -16,12 +16,13 @@ import type { PopsPanelTextAreaDetails } from "../components/panel/types/compone
16
16
  import type { PopsPromptDetails } from "../components/prompt/types/index";
17
17
  import { PopsRightClickMenuDetails } from "../components/rightClickMenu/types";
18
18
  import { PopsToolTipDetails } from "../components/tooltip/types/index";
19
+ import type { PopsSearchSuggestionDetails } from "../components/searchSuggestion/types";
19
20
 
20
21
  export interface PopsUtilsOwnObject<V extends any> {
21
22
  [key: string]: V | PopsUtilsOwnObject<V>;
22
23
  }
23
24
 
24
- /** pops的所有类型配置 10个 */
25
+ /** pops所有的类型配置 11个*/
25
26
  export interface PopsDetails {
26
27
  alert: PopsAlertDetails;
27
28
  confirm: PopsConfirmDetails;
@@ -33,53 +34,55 @@ export interface PopsDetails {
33
34
  folder: PopsFolderDetails;
34
35
  panel: PopsPanelDetails;
35
36
  rightClickMenu: PopsRightClickMenuDetails;
37
+ searchSuggestion: PopsSearchSuggestionDetails;
36
38
  }
37
39
 
38
- /** pops所有的类型 10个 */
40
+ /** pops的类型 */
39
41
  export type PopsType = keyof PopsDetails;
40
42
 
41
- /** 存储实例的类型 10个 */
42
- export type PopsInstStoreType = PopsType;
43
+ /** pops中支持only的配置 */
44
+ export type PopsSupportOnlyDetails = Omit<PopsDetails, "searchSuggestion">;
45
+
46
+ /** 存储实例的类型 */
47
+ export type PopsInstStoreType = keyof Omit<PopsDetails, "searchSuggestion">;
43
48
 
44
49
  /** pops弹窗支持动画元素的配置 8个 */
45
- export type PopsSupportAnim = Omit<PopsDetails, "tooltip" | "rightClickMenu">;
50
+ export type PopsSupportAnimDetails = Omit<
51
+ PopsDetails,
52
+ "tooltip" | "rightClickMenu" | "searchSuggestion"
53
+ >;
46
54
 
47
55
  /** pops弹窗支持动画元素的类型 */
48
- export type PopsSupportAnimType = keyof PopsSupportAnim;
56
+ export type PopsSupportAnimDetailsType = keyof PopsSupportAnimDetails;
49
57
 
50
58
  /** pops弹窗支持标题栏的配置 */
51
- export interface PopsSupportHeaderTitle {
52
- alert: PopsAlertDetails;
53
- confirm: PopsConfirmDetails;
54
- prompt: PopsPromptDetails;
55
- iframe: PopsIframeDetails;
56
- drawer: PopsDrawerDetails;
57
- folder: PopsFolderDetails;
58
- panel: PopsPanelDetails;
59
- }
59
+ export type PopsSupportHeaderTitleDetails = Pick<
60
+ PopsDetails,
61
+ "alert" | "confirm" | "prompt" | "iframe" | "drawer" | "folder" | "panel"
62
+ >;
63
+
60
64
  /** pops弹窗支持标题栏的类型 */
61
- export type PopsTypeSupportHeaderTitle = keyof PopsSupportHeaderTitle;
65
+ export type PopsSupportHeaderTitleDetailsType =
66
+ keyof PopsSupportHeaderTitleDetails;
62
67
 
63
68
  /** pops支持底部按钮的配置 */
64
- export interface PopsSupportBottomBtn {
65
- alert: PopsAlertDetails;
66
- confirm: PopsConfirmDetails;
67
- prompt: PopsPromptDetails;
68
- drawer: PopsDrawerDetails;
69
- }
69
+ export type PopsSupportBottomBtnDetails = Pick<
70
+ PopsDetails,
71
+ "alert" | "confirm" | "prompt" | "drawer"
72
+ >;
73
+
70
74
  /** pops支持底部按钮的类型 */
71
- export type PopsTypeSupportBottomBtn = keyof PopsSupportHeaderTitle;
75
+ export type PopsSupportBottomBtnDetailsType =
76
+ keyof PopsSupportHeaderTitleDetails;
72
77
 
73
78
  /** pops支持中间内容的配置 */
74
- export interface PopsSupportContent {
75
- alert: PopsAlertDetails;
76
- confirm: PopsConfirmDetails;
77
- prompt: PopsPromptDetails;
78
- drawer: PopsDrawerDetails;
79
- loading: PopsLoadingDetails;
80
- }
79
+ export type PopsSupportContentDetails = Pick<
80
+ PopsDetails,
81
+ "alert" | "confirm" | "prompt" | "drawer" | "loading"
82
+ >;
83
+
81
84
  /** pops支持中间内容的类型 */
82
- export type PopsTypeSupportContent = keyof PopsSupportContent;
85
+ export type PopsSupportContentDetailsType = keyof PopsSupportContentDetails;
83
86
 
84
87
  /** panel的各种类型的配置项 */
85
88
  export type PopsPanelFormsTotalDetails =