@whitesev/pops 1.4.0 → 1.5.0

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 (105) hide show
  1. package/dist/index.amd.js.map +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.iife.js.map +1 -1
  5. package/dist/index.system.js.map +1 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/package.json +50 -48
  8. package/src/Config.ts +3 -0
  9. package/src/Core.ts +45 -0
  10. package/src/Pops.ts +340 -0
  11. package/src/components/alert/index.css +45 -0
  12. package/src/components/alert/index.ts +216 -0
  13. package/src/components/alert/indexType.ts +30 -0
  14. package/src/components/confirm/index.css +45 -0
  15. package/src/components/confirm/index.ts +264 -0
  16. package/src/components/confirm/indexType.ts +17 -0
  17. package/src/components/drawer/index.css +47 -0
  18. package/src/components/drawer/index.ts +338 -0
  19. package/src/components/drawer/indexType.ts +53 -0
  20. package/src/components/folder/folderIcon.ts +28 -0
  21. package/src/components/folder/index.css +291 -0
  22. package/src/components/folder/index.ts +1111 -0
  23. package/src/components/folder/indexType.ts +87 -0
  24. package/src/components/iframe/index.css +90 -0
  25. package/src/components/iframe/index.ts +415 -0
  26. package/src/components/iframe/indexType.ts +144 -0
  27. package/src/components/loading/index.css +60 -0
  28. package/src/components/loading/index.ts +123 -0
  29. package/src/components/loading/indexType.ts +31 -0
  30. package/src/components/panel/buttonType.ts +60 -0
  31. package/src/components/panel/commonType.ts +50 -0
  32. package/src/components/panel/deepMenuType.ts +59 -0
  33. package/src/components/panel/formsType.ts +32 -0
  34. package/src/components/panel/index.css +754 -0
  35. package/src/components/panel/index.ts +2435 -0
  36. package/src/components/panel/indexType.ts +107 -0
  37. package/src/components/panel/inputType.ts +65 -0
  38. package/src/components/panel/ownType.ts +28 -0
  39. package/src/components/panel/selectType.ts +80 -0
  40. package/src/components/panel/sliderType.ts +59 -0
  41. package/src/components/panel/switchType.ts +43 -0
  42. package/src/components/panel/textareaType.ts +54 -0
  43. package/src/components/prompt/index.css +60 -0
  44. package/src/components/prompt/index.ts +293 -0
  45. package/src/components/prompt/indexType.ts +47 -0
  46. package/src/components/rightClickMenu/index.ts +729 -0
  47. package/src/components/rightClickMenu/indexType.ts +89 -0
  48. package/src/components/searchSuggestion/index.css +0 -0
  49. package/src/components/searchSuggestion/index.ts +656 -0
  50. package/src/components/searchSuggestion/indexType.ts +238 -0
  51. package/src/components/tooltip/index.css +171 -0
  52. package/src/components/tooltip/index.ts +358 -0
  53. package/src/components/tooltip/indexType.ts +95 -0
  54. package/src/css/animation.css +2240 -0
  55. package/src/css/button.css +290 -0
  56. package/src/css/common.css +24 -0
  57. package/src/css/index.css +135 -0
  58. package/src/css/ninePalaceGridPosition.css +50 -0
  59. package/src/css/scrollbar.css +18 -0
  60. package/src/handler/PopsElementHandler.ts +353 -0
  61. package/src/handler/PopsHandler.ts +659 -0
  62. package/src/svg/arrowLeft.svg +4 -0
  63. package/src/svg/arrowRight.svg +4 -0
  64. package/src/svg/chromeFilled.svg +14 -0
  65. package/src/svg/circleClose.svg +8 -0
  66. package/src/svg/close.svg +5 -0
  67. package/src/svg/cpu.svg +8 -0
  68. package/src/svg/delete.svg +5 -0
  69. package/src/svg/documentCopy.svg +5 -0
  70. package/src/svg/edit.svg +8 -0
  71. package/src/svg/eleme.svg +5 -0
  72. package/src/svg/elemePlus.svg +5 -0
  73. package/src/svg/headset.svg +5 -0
  74. package/src/svg/hide.svg +8 -0
  75. package/src/svg/keyboard.svg +8 -0
  76. package/src/svg/loading.svg +5 -0
  77. package/src/svg/max.svg +5 -0
  78. package/src/svg/min.svg +5 -0
  79. package/src/svg/mise.svg +5 -0
  80. package/src/svg/monitor.svg +5 -0
  81. package/src/svg/next.svg +5 -0
  82. package/src/svg/picture.svg +8 -0
  83. package/src/svg/prev.svg +5 -0
  84. package/src/svg/search.svg +5 -0
  85. package/src/svg/share.svg +5 -0
  86. package/src/svg/upload.svg +5 -0
  87. package/src/svg/videoPause.svg +5 -0
  88. package/src/svg/videoPlay.svg +5 -0
  89. package/src/svg/view.svg +5 -0
  90. package/src/types/PopsDOMUtilsEventType.d.ts +246 -0
  91. package/src/types/animation.d.ts +19 -0
  92. package/src/types/button.d.ts +226 -0
  93. package/src/types/components.d.ts +197 -0
  94. package/src/types/event.d.ts +62 -0
  95. package/src/types/global.d.ts +11 -0
  96. package/src/types/icon.d.ts +32 -0
  97. package/src/types/layer.d.ts +20 -0
  98. package/src/types/main.d.ts +136 -0
  99. package/src/types/mask.d.ts +35 -0
  100. package/src/types/position.d.ts +60 -0
  101. package/src/utils/AnyTouch.js +1394 -0
  102. package/src/utils/PopsDOMUtils.ts +2013 -0
  103. package/src/utils/PopsInstanceUtils.ts +685 -0
  104. package/src/utils/PopsMathUtils.ts +77 -0
  105. package/src/utils/PopsUtils.ts +380 -0
package/package.json CHANGED
@@ -1,48 +1,50 @@
1
- {
2
- "name": "@whitesev/pops",
3
- "version": "1.4.0",
4
- "description": "弹窗库",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/node/index.esm.js",
7
- "types": "dist/types/index.d.ts",
8
- "jsdelivr": "dist/index.umd.js",
9
- "exports": {
10
- "./package.json": "./package.json",
11
- ".": {
12
- "import": "./dist/index.esm.js",
13
- "require": "./dist/index.cjs.js",
14
- "types": "./dist/types/index.d.ts"
15
- }
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "scripts": {
21
- "build": "rollup --config"
22
- },
23
- "publishConfig": {
24
- "registry": "https://registry.npmjs.org/"
25
- },
26
- "keywords": [
27
- "typescript",
28
- "pops",
29
- "dialog",
30
- "弹窗",
31
- "TamperMonkey",
32
- "VioletMonkey",
33
- "ScriptCat"
34
- ],
35
- "author": "WhiteSev",
36
- "license": "MIT",
37
- "dependencies": {
38
- "@rollup/plugin-commonjs": "^25.0.8",
39
- "@rollup/plugin-node-resolve": "^15.2.3",
40
- "@rollup/plugin-typescript": "^11.1.6",
41
- "rollup-plugin-clear": "^2.0.7",
42
- "tslib": "^2.6.2"
43
- },
44
- "devDependencies": {
45
- "rollup-plugin-import-css": "^3.5.0",
46
- "typescript": "^5.4.5"
47
- }
48
- }
1
+ {
2
+ "name": "@whitesev/pops",
3
+ "version": "1.5.0",
4
+ "description": "弹窗库",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "jsdelivr": "dist/index.umd.js",
9
+ "exports": {
10
+ "./dist/*": "./dist/*",
11
+ "./package.json": "./package.json",
12
+ ".": {
13
+ "import": "./dist/index.esm.js",
14
+ "require": "./dist/index.cjs.js",
15
+ "types": "./dist/types/index.d.ts"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "src"
21
+ ],
22
+ "publishConfig": {
23
+ "registry": "https://registry.npmjs.org/"
24
+ },
25
+ "keywords": [
26
+ "typescript",
27
+ "pops",
28
+ "dialog",
29
+ "弹窗",
30
+ "TamperMonkey",
31
+ "VioletMonkey",
32
+ "ScriptCat"
33
+ ],
34
+ "author": "WhiteSev",
35
+ "license": "MIT",
36
+ "dependencies": {
37
+ "@rollup/plugin-commonjs": "^25.0.8",
38
+ "@rollup/plugin-node-resolve": "^15.2.3",
39
+ "@rollup/plugin-typescript": "^11.1.6",
40
+ "rollup-plugin-clear": "^2.0.7",
41
+ "tslib": "^2.6.2"
42
+ },
43
+ "devDependencies": {
44
+ "rollup-plugin-import-css": "^3.5.0",
45
+ "typescript": "^5.4.5"
46
+ },
47
+ "scripts": {
48
+ "build": "rollup --config"
49
+ }
50
+ }
package/src/Config.ts ADDED
@@ -0,0 +1,3 @@
1
+ export const SymbolEvents = Symbol(
2
+ "events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
3
+ );
package/src/Core.ts ADDED
@@ -0,0 +1,45 @@
1
+ const PopsCoreDefaultEnv: PopsCoreOption = {
2
+ document: document,
3
+ window: window,
4
+ globalThis: globalThis,
5
+ self: self,
6
+ };
7
+ const PopsCoreEnv: PopsCoreOption = {
8
+ document: document,
9
+ window: window,
10
+ globalThis: globalThis,
11
+ self: self,
12
+ };
13
+
14
+ export interface PopsCoreOption {
15
+ document: Document;
16
+ window: Window;
17
+ globalThis: typeof globalThis;
18
+ self: typeof globalThis;
19
+ }
20
+
21
+ export const PopsCore = {
22
+ init(option?: PopsCoreOption) {
23
+ if (!option) {
24
+ option = Object.assign({}, PopsCoreDefaultEnv);
25
+ }
26
+ Object.assign(PopsCoreEnv, option);
27
+ },
28
+ get document() {
29
+ return PopsCoreEnv.document;
30
+ },
31
+ get window() {
32
+ return PopsCoreEnv.window;
33
+ },
34
+ get globalThis() {
35
+ return PopsCoreEnv.globalThis;
36
+ },
37
+ get self() {
38
+ return PopsCoreEnv.self;
39
+ },
40
+ };
41
+ export const OriginPrototype = {
42
+ Object: {
43
+ defineProperty: Object.defineProperty,
44
+ },
45
+ };
package/src/Pops.ts ADDED
@@ -0,0 +1,340 @@
1
+ import { popsDOMUtils } from "./utils/PopsDOMUtils";
2
+ import { PopsInstanceUtils } from "./utils/PopsInstanceUtils";
3
+ import { popsUtils } from "./utils/PopsUtils";
4
+ import indexCSS from "./css/index.css";
5
+ import ninePalaceGridPositionCSS from "./css/ninePalaceGridPosition.css";
6
+ import scrollbarCSS from "./css/scrollbar.css";
7
+ import buttonCSS from "./css/button.css";
8
+ import commonCSS from "./css/common.css";
9
+ import animCSS from "./css/animation.css";
10
+ import alertCSS from "./components/alert/index.css";
11
+ import confirmCSS from "./components/confirm/index.css";
12
+ import promptCSS from "./components/prompt/index.css";
13
+ import loadingCSS from "./components/loading/index.css";
14
+ import iframeCSS from "./components/iframe/index.css";
15
+ import tooltipCSS from "./components/tooltip/index.css";
16
+ import drawerCSS from "./components/drawer/index.css";
17
+ import folderCSS from "./components/folder/index.css";
18
+ import panelCSS from "./components/panel/index.css";
19
+ import SVG_min from "./svg/min.svg";
20
+ import SVG_mise from "./svg/mise.svg";
21
+ import SVG_max from "./svg/max.svg";
22
+ import SVG_close from "./svg/close.svg";
23
+ import SVG_edit from "./svg/edit.svg";
24
+ import SVG_share from "./svg/share.svg";
25
+ import SVG_delete from "./svg/delete.svg";
26
+ import SVG_search from "./svg/search.svg";
27
+ import SVG_upload from "./svg/upload.svg";
28
+ import SVG_loading from "./svg/loading.svg";
29
+ import SVG_next from "./svg/next.svg";
30
+ import SVG_prev from "./svg/prev.svg";
31
+ import SVG_eleme from "./svg/eleme.svg";
32
+ import SVG_elemePlus from "./svg/elemePlus.svg";
33
+ import SVG_chromeFilled from "./svg/chromeFilled.svg";
34
+ import SVG_cpu from "./svg/cpu.svg";
35
+ import SVG_videoPlay from "./svg/videoPlay.svg";
36
+ import SVG_videoPause from "./svg/videoPause.svg";
37
+ import SVG_headset from "./svg/headset.svg";
38
+ import SVG_monitor from "./svg/monitor.svg";
39
+ import SVG_documentCopy from "./svg/documentCopy.svg";
40
+ import SVG_picture from "./svg/picture.svg";
41
+ import SVG_circleClose from "./svg/circleClose.svg";
42
+ import SVG_view from "./svg/view.svg";
43
+ import SVG_hide from "./svg/hide.svg";
44
+ import SVG_keyboard from "./svg/keyboard.svg";
45
+ import SVG_arrowRight from "./svg/arrowRight.svg";
46
+ import SVG_arrowLeft from "./svg/arrowLeft.svg";
47
+ import { PopsCore } from "./Core";
48
+ import { PopsLayerMode } from "./types/main";
49
+ import { PopsAlert } from "./components/alert";
50
+ import type { PopsAlertDetails } from "./components/alert/indexType";
51
+ import { PopsConfirm } from "./components/confirm";
52
+ import type { PopsConfirmDetails } from "./components/confirm/indexType";
53
+ import type { PopsLayerCommonConfig } from "./types/layer";
54
+ import type { PopsPromptDetails } from "./components/prompt/indexType";
55
+ import { PopsPrompt } from "./components/prompt";
56
+ import type { PopsLoadingDetails } from "./components/loading/indexType";
57
+ import { PopsLoading } from "./components/loading";
58
+ import type { PopsIframeDetails } from "./components/iframe/indexType";
59
+ import { PopsIframe } from "./components/iframe";
60
+ import type { PopsToolTipDetails } from "./components/tooltip/indexType";
61
+ import { PopsTooltip } from "./components/tooltip";
62
+ import { PopsDrawer } from "./components/drawer";
63
+ import type { PopsDrawerDetails } from "./components/drawer/indexType";
64
+ import type { PopsFolderDetails } from "./components/folder/indexType";
65
+ import { PopsFolder } from "./components/folder";
66
+ import type { PopsEventDetails } from "./types/event";
67
+ import type { PopsPanelDetails } from "./components/panel/indexType";
68
+ import { PopsPanel } from "./components/panel";
69
+ import { PopsRightClickMenu } from "./components/rightClickMenu";
70
+ import type { PopsRightClickMenuDetails } from "./components/rightClickMenu/indexType";
71
+ import type { PopsIcon } from "./types/icon";
72
+ import type {
73
+ PopsSearchSuggestionDetails,
74
+ PopsSearchSuggestionResult,
75
+ } from "./components/searchSuggestion/indexType";
76
+ import { PopsSearchSuggestion } from "./components/searchSuggestion";
77
+ import { PopsMathFloatUtils } from "./utils/PopsMathUtils";
78
+
79
+ class Pops {
80
+ /** 配置 */
81
+ config = {
82
+ /** 版本号 */
83
+ version: "2024.7.20",
84
+ cssText: {
85
+ /** 主CSS */
86
+ index: indexCSS,
87
+ /** 九宫格位置CSS */
88
+ ninePalaceGridPosition: ninePalaceGridPositionCSS,
89
+ /** 滚动条CSS */
90
+ scrollbar: scrollbarCSS,
91
+ /** 按钮CSS */
92
+ button: buttonCSS,
93
+ /** 通用的CSS */
94
+ common: commonCSS,
95
+ /** 动画 */
96
+ anim: animCSS,
97
+ /** pops.alert */
98
+ alertCSS: alertCSS,
99
+ /** pops.cponfirm */
100
+ confirmCSS: confirmCSS,
101
+ /** pops.prompt */
102
+ promptCSS: promptCSS,
103
+ /** pops.loading */
104
+ loadingCSS: loadingCSS,
105
+ /** pops.iframe */
106
+ iframeCSS: iframeCSS,
107
+ /** pops.tooltip */
108
+ tooltipCSS: tooltipCSS,
109
+ /** pops.drawer */
110
+ drawerCSS: drawerCSS,
111
+ /** pops.folder */
112
+ folderCSS: folderCSS,
113
+ /** pops.folder */
114
+ panelCSS: panelCSS,
115
+ },
116
+ /** icon图标的svg代码 */
117
+ iconSVG: {
118
+ min: SVG_min,
119
+ mise: SVG_mise,
120
+ max: SVG_max,
121
+ close: SVG_close,
122
+ edit: SVG_edit,
123
+ share: SVG_share,
124
+ delete: SVG_delete,
125
+ search: SVG_search,
126
+ upload: SVG_upload,
127
+ loading: SVG_loading,
128
+ next: SVG_next,
129
+ prev: SVG_prev,
130
+ eleme: SVG_eleme,
131
+ elemePlus: SVG_elemePlus,
132
+ chromeFilled: SVG_chromeFilled,
133
+ cpu: SVG_cpu,
134
+ videoPlay: SVG_videoPlay,
135
+ videoPause: SVG_videoPause,
136
+ headset: SVG_headset,
137
+ monitor: SVG_monitor,
138
+ documentCopy: SVG_documentCopy,
139
+ picture: SVG_picture,
140
+ circleClose: SVG_circleClose,
141
+ view: SVG_view,
142
+ hide: SVG_hide,
143
+ keyboard: SVG_keyboard,
144
+ arrowRight: SVG_arrowRight,
145
+ arrowLeft: SVG_arrowLeft,
146
+ } as {
147
+ [key in PopsIcon]: string;
148
+ },
149
+ /** 当前已配置的动画@keyframes名字映射(初始化时生成) */
150
+ animation: {} as {
151
+ [key: string]: CSSKeyframesRule;
152
+ },
153
+ /** 是否初始化 */
154
+ isInit: false,
155
+ /** 存储已创建的元素 */
156
+ layer: {
157
+ alert: [],
158
+ confirm: [],
159
+ prompt: [],
160
+ loading: [],
161
+ iframe: [],
162
+ tooltip: [],
163
+ drawer: [],
164
+ folder: [],
165
+ panel: [],
166
+ } as any as {
167
+ [key in PopsLayerMode]: PopsLayerCommonConfig[];
168
+ },
169
+ /** 禁止滚动 */
170
+ forbiddenScroll: {
171
+ event(event: Event) {
172
+ return popsDOMUtils.preventEvent(event);
173
+ },
174
+ },
175
+ /** pops使用的工具类 */
176
+ Utils: popsUtils,
177
+ /** pops使用的DOM工具类 */
178
+ DOMUtils: popsDOMUtils,
179
+ /** pops创建的实例使用的工具类 */
180
+ InstanceUtils: PopsInstanceUtils,
181
+ /** pops处理float类型使用的工具类 */
182
+ MathFloatUtils: PopsMathFloatUtils,
183
+ };
184
+ constructor() {}
185
+ init() {
186
+ if (!this.config.isInit) {
187
+ /* 处理获取当前所有的动画名 */
188
+ this.config.isInit = true;
189
+ let animationStyle = document.createElement("style");
190
+ animationStyle.innerHTML = this.config.cssText.anim;
191
+ popsDOMUtils.appendHead(animationStyle);
192
+ this.config.animation = null as any;
193
+ this.config.animation = PopsInstanceUtils.getKeyFrames(
194
+ animationStyle.sheet!
195
+ );
196
+ setTimeout(() => {
197
+ animationStyle.remove();
198
+ }, 50);
199
+ }
200
+ }
201
+ /**
202
+ * 释放原有的pops控制权
203
+ * @example
204
+ * let pops = window.pops.noConflict()
205
+ */
206
+ noConflict() {
207
+ if (typeof (PopsCore.globalThis as any).pops === "object") {
208
+ popsUtils.delete(PopsCore.globalThis, "pops");
209
+ }
210
+ if (
211
+ typeof unsafeWindow === "object" &&
212
+ unsafeWindow != null &&
213
+ typeof (unsafeWindow as any).pops === "object"
214
+ ) {
215
+ popsUtils.delete(unsafeWindow, "pops");
216
+ }
217
+ return new Pops();
218
+ }
219
+ /**
220
+ * 通过navigator.userAgent判断是否是手机访问
221
+ * @param userAgent
222
+ */
223
+ isPhone(userAgent = PopsCore.globalThis.navigator.userAgent): boolean {
224
+ return Boolean(/(iPhone|iPad|iPod|iOS|Android)/i.test(userAgent));
225
+ }
226
+ /**
227
+ * 普通信息框
228
+ * @param details 配置
229
+ */
230
+ alert = (details: PopsAlertDetails) => {
231
+ return new PopsAlert(details) as PopsEventDetails;
232
+ };
233
+
234
+ /**
235
+ * 询问框
236
+ * @param details 配置
237
+ */
238
+ confirm = (details: PopsConfirmDetails) => {
239
+ return new PopsConfirm(details) as PopsEventDetails;
240
+ };
241
+
242
+ /**
243
+ * 输入框
244
+ * @param details 配置
245
+ */
246
+ prompt = (details: PopsPromptDetails) => {
247
+ return new PopsPrompt(details) as PopsEventDetails;
248
+ };
249
+
250
+ /**
251
+ * 加载层
252
+ * @param details 配置
253
+ */
254
+ loading = (details: PopsLoadingDetails) => {
255
+ return new PopsLoading(details) as Omit<
256
+ PopsEventDetails,
257
+ "$shadowContainer" | "$shadowRoot"
258
+ >;
259
+ };
260
+
261
+ /**
262
+ * iframe层
263
+ * @param details 配置
264
+ */
265
+ iframe = (details: PopsIframeDetails) => {
266
+ return new PopsIframe(details) as PopsEventDetails & {
267
+ iframeElement: HTMLIFrameElement;
268
+ };
269
+ };
270
+
271
+ /**
272
+ * 提示框
273
+ * @param details 配置
274
+ */
275
+ tooltip = (details: PopsToolTipDetails) => {
276
+ return new PopsTooltip(details) as
277
+ | {
278
+ guid: string;
279
+ config: Required<PopsToolTipDetails>;
280
+ toolTipNode: HTMLDivElement;
281
+ show: () => void;
282
+ close: () => void;
283
+ }
284
+ | {
285
+ $shadowContainer: HTMLDivElement;
286
+ $shadowRoot: ShadowRoot;
287
+ guid: string;
288
+ config: Required<PopsToolTipDetails>;
289
+ toolTipNode: HTMLDivElement;
290
+ show: () => void;
291
+ close: () => void;
292
+ off: () => void;
293
+ on: () => void;
294
+ };
295
+ };
296
+
297
+ /**
298
+ * 抽屉
299
+ * @param details 配置
300
+ */
301
+ drawer = (details: PopsDrawerDetails) => {
302
+ return new PopsDrawer(details) as PopsEventDetails;
303
+ };
304
+
305
+ /**
306
+ * 文件夹
307
+ * @param details 配置
308
+ */
309
+ folder = (details: PopsFolderDetails) => {
310
+ return new PopsFolder(details) as PopsEventDetails;
311
+ };
312
+
313
+ /**
314
+ * 配置面板
315
+ * @param details 配置
316
+ */
317
+ panel = (details: PopsPanelDetails) => {
318
+ return new PopsPanel(details) as PopsEventDetails;
319
+ };
320
+
321
+ /**
322
+ * 右键菜单
323
+ * @param details 配置
324
+ */
325
+ rightClickMenu = (details: PopsRightClickMenuDetails) => {
326
+ return new PopsRightClickMenu(details) as PopsEventDetails;
327
+ };
328
+
329
+ /**
330
+ * 搜索建议
331
+ * @param details 配置
332
+ */
333
+ searchSuggestion = <T = any>(details: PopsSearchSuggestionDetails<T>) => {
334
+ return new PopsSearchSuggestion(details) as PopsSearchSuggestionResult<T>;
335
+ };
336
+ }
337
+
338
+ const pops = new Pops();
339
+
340
+ export { pops };
@@ -0,0 +1,45 @@
1
+ .pops[type-value] .pops-alert-title {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ }
6
+ .pops[type-value="alert"] .pops-alert-title {
7
+ width: 100%;
8
+ height: var(--container-title-height);
9
+ border-bottom: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
10
+ }
11
+ .pops[type-value="alert"] .pops-alert-title p[pops] {
12
+ width: 100%;
13
+ overflow: hidden;
14
+ color: rgb(51, 51, 51);
15
+ text-indent: 15px;
16
+ text-overflow: ellipsis;
17
+ white-space: nowrap;
18
+ font-weight: 500;
19
+ line-height: var(--container-title-height);
20
+ }
21
+ .pops[type-value="alert"] .pops-alert-content p[pops] {
22
+ padding: 5px 10px;
23
+ color: rgb(51, 51, 51);
24
+ text-indent: 15px;
25
+ }
26
+ .pops[type-value="alert"] .pops-alert-content {
27
+ width: 100%;
28
+ height: calc(
29
+ 100% - var(--container-title-height) - var(--container-bottom-btn-height)
30
+ );
31
+ overflow: auto;
32
+ word-break: break-word;
33
+ }
34
+ .pops[type-value="alert"] .pops-alert-btn {
35
+ position: absolute;
36
+ bottom: 0;
37
+ display: flex;
38
+ padding: 10px 10px 10px 10px;
39
+ width: 100%;
40
+ height: var(--container-bottom-btn-height);
41
+ border-top: 1px solid rgb(229, 229, 229, var(--pops-bd-opacity));
42
+ text-align: right;
43
+ line-height: var(--container-bottom-btn-height);
44
+ align-items: center;
45
+ }