@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.
- package/dist/index.amd.js +72 -64
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +72 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +72 -64
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +72 -64
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +72 -64
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +72 -64
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/GlobalConfig.d.ts +7 -2
- package/dist/types/src/Pops.d.ts +39 -34
- package/dist/types/src/{Core.d.ts → PopsCore.d.ts} +4 -3
- package/dist/types/src/PopsIcon.d.ts +30 -2
- package/dist/types/src/PopsLayer.d.ts +3 -1
- package/dist/types/src/components/alert/config.d.ts +1 -1
- package/dist/types/src/components/alert/index.d.ts +1 -1
- package/dist/types/src/components/alert/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/confirm/config.d.ts +1 -1
- package/dist/types/src/components/confirm/index.d.ts +1 -1
- package/dist/types/src/components/confirm/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/drawer/config.d.ts +1 -1
- package/dist/types/src/components/drawer/index.d.ts +1 -1
- package/dist/types/src/components/drawer/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/folder/config.d.ts +1 -1
- package/dist/types/src/components/folder/index.d.ts +1 -1
- package/dist/types/src/components/folder/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/iframe/config.d.ts +1 -1
- package/dist/types/src/components/iframe/index.d.ts +1 -1
- package/dist/types/src/components/iframe/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/loading/config.d.ts +1 -1
- package/dist/types/src/components/loading/index.d.ts +1 -1
- package/dist/types/src/components/loading/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/panel/config.d.ts +1 -1
- package/dist/types/src/components/panel/{PanelHandleContentDetails.d.ts → handlerComponents.d.ts} +16 -13
- package/dist/types/src/components/panel/index.d.ts +1 -1
- package/dist/types/src/components/panel/{buttonType.d.ts → types/components-button.d.ts} +3 -3
- package/dist/types/src/components/panel/{commonType.d.ts → types/components-common.d.ts} +2 -2
- package/dist/types/src/components/panel/{deepMenuType.d.ts → types/components-deepMenu.d.ts} +3 -3
- package/dist/types/src/components/panel/{formsType.d.ts → types/components-forms.d.ts} +2 -2
- package/dist/types/src/components/panel/{inputType.d.ts → types/components-input.d.ts} +1 -1
- package/dist/types/src/components/panel/{ownType.d.ts → types/components-own.d.ts} +1 -1
- package/dist/types/src/components/panel/{selectType.d.ts → types/components-select.d.ts} +3 -3
- package/dist/types/src/components/panel/{selectMultipleType.d.ts → types/components-selectMultiple.d.ts} +2 -2
- package/dist/types/src/components/panel/{sliderType.d.ts → types/components-slider.d.ts} +1 -1
- package/dist/types/src/components/panel/{switchType.d.ts → types/components-switch.d.ts} +1 -1
- package/dist/types/src/components/panel/{textareaType.d.ts → types/components-textarea.d.ts} +1 -1
- package/dist/types/src/components/panel/{indexType.d.ts → types/index.d.ts} +12 -12
- package/dist/types/src/components/prompt/config.d.ts +1 -1
- package/dist/types/src/components/prompt/index.d.ts +1 -1
- package/dist/types/src/components/prompt/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/rightClickMenu/config.d.ts +1 -1
- package/dist/types/src/components/rightClickMenu/index.d.ts +2 -2
- package/dist/types/src/components/rightClickMenu/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/searchSuggestion/config.d.ts +1 -1
- package/dist/types/src/components/searchSuggestion/index.d.ts +2 -2
- package/dist/types/src/components/searchSuggestion/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/tooltip/config.d.ts +1 -1
- package/dist/types/src/components/tooltip/index.d.ts +2 -2
- package/dist/types/src/components/tooltip/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/handler/PopsHandler.d.ts +8 -8
- package/dist/types/src/types/event.d.ts +1 -1
- package/dist/types/src/types/main.d.ts +18 -18
- package/dist/types/src/types/mask.d.ts +7 -7
- package/dist/types/src/{Config.d.ts → utils/PopsDOMUtilsEventsConfig.d.ts} +3 -0
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
- package/package.json +1 -1
- package/src/GlobalConfig.ts +6 -5
- package/src/Pops.ts +17 -17
- package/src/{Core.ts → PopsCore.ts} +13 -14
- package/src/PopsIcon.ts +34 -32
- package/src/PopsLayer.ts +8 -7
- package/src/components/alert/config.ts +1 -1
- package/src/components/alert/index.ts +1 -1
- package/src/components/alert/{indexType.ts → types/index.ts} +2 -2
- package/src/components/confirm/config.ts +1 -1
- package/src/components/confirm/index.ts +1 -1
- package/src/components/confirm/{indexType.ts → types/index.ts} +1 -1
- package/src/components/drawer/config.ts +1 -1
- package/src/components/drawer/index.ts +1 -1
- package/src/components/drawer/{indexType.ts → types/index.ts} +1 -1
- package/src/components/folder/config.ts +1 -1
- package/src/components/folder/index.ts +1 -1
- package/src/components/folder/{indexType.ts → types/index.ts} +1 -1
- package/src/components/iframe/config.ts +1 -1
- package/src/components/iframe/index.ts +4 -4
- package/src/components/iframe/{indexType.ts → types/index.ts} +2 -2
- package/src/components/loading/config.ts +1 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/{indexType.ts → types/index.ts} +1 -1
- package/src/components/panel/config.ts +1 -1
- package/src/components/panel/{PanelHandleContentDetails.ts → handlerComponents.ts} +17 -14
- package/src/components/panel/index.ts +4 -4
- package/src/components/panel/{buttonType.ts → types/components-button.ts} +5 -4
- package/src/components/panel/{commonType.ts → types/components-common.ts} +2 -2
- package/src/components/panel/{deepMenuType.ts → types/components-deepMenu.ts} +3 -3
- package/src/components/panel/{formsType.ts → types/components-forms.ts} +2 -2
- package/src/components/panel/{inputType.ts → types/components-input.ts} +1 -1
- package/src/components/panel/{ownType.ts → types/components-own.ts} +1 -1
- package/src/components/panel/{selectType.ts → types/components-select.ts} +3 -3
- package/src/components/panel/{selectMultipleType.ts → types/components-selectMultiple.ts} +2 -2
- package/src/components/panel/{sliderType.ts → types/components-slider.ts} +1 -1
- package/src/components/panel/{switchType.ts → types/components-switch.ts} +1 -1
- package/src/components/panel/{textareaType.ts → types/components-textarea.ts} +1 -1
- package/src/components/panel/{indexType.ts → types/index.ts} +12 -12
- package/src/components/prompt/config.ts +1 -1
- package/src/components/prompt/index.ts +1 -1
- package/src/components/prompt/{indexType.ts → types/index.ts} +1 -1
- package/src/components/rightClickMenu/config.ts +1 -1
- package/src/components/rightClickMenu/index.ts +2 -2
- package/src/components/rightClickMenu/{indexType.ts → types/index.ts} +2 -2
- package/src/components/searchSuggestion/config.ts +1 -1
- package/src/components/searchSuggestion/index.ts +1 -1
- package/src/components/searchSuggestion/{indexType.ts → types/index.ts} +1 -1
- package/src/components/tooltip/config.ts +1 -1
- package/src/components/tooltip/index.ts +1 -1
- package/src/components/tooltip/{indexType.ts → types/index.ts} +1 -1
- package/src/handler/PopsElementHandler.ts +3 -3
- package/src/handler/PopsHandler.ts +26 -26
- package/src/types/event.d.ts +1 -1
- package/src/types/main.d.ts +18 -18
- package/src/types/mask.d.ts +7 -7
- package/src/utils/PopsDOMUtils.ts +2 -2
- package/src/{Config.ts → utils/PopsDOMUtilsEventsConfig.ts} +3 -0
- package/src/utils/PopsInstanceUtils.ts +12 -12
- package/src/utils/PopsUtils.ts +1 -1
package/dist/index.system.js
CHANGED
|
@@ -3,14 +3,18 @@ System.register('pops', [], (function (exports) {
|
|
|
3
3
|
return {
|
|
4
4
|
execute: (function () {
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* 存储在元素属性上的事件名
|
|
8
|
+
*/
|
|
6
9
|
const SymbolEvents = Symbol("events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1));
|
|
7
10
|
|
|
8
|
-
const
|
|
11
|
+
const PopsCoreDefaultEnv = {
|
|
9
12
|
document: document,
|
|
10
13
|
window: window,
|
|
11
14
|
globalThis: globalThis,
|
|
12
15
|
self: self,
|
|
13
16
|
};
|
|
17
|
+
const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
|
|
14
18
|
const PopsCore = {
|
|
15
19
|
get document() {
|
|
16
20
|
return PopsCoreEnv.document;
|
|
@@ -2230,17 +2234,18 @@ System.register('pops', [], (function (exports) {
|
|
|
2230
2234
|
}
|
|
2231
2235
|
const popsDOMUtils = new PopsDOMUtils();
|
|
2232
2236
|
|
|
2233
|
-
const
|
|
2237
|
+
const PopsLayerData = {
|
|
2234
2238
|
alert: [],
|
|
2235
2239
|
confirm: [],
|
|
2236
|
-
prompt: [],
|
|
2237
|
-
loading: [],
|
|
2238
|
-
iframe: [],
|
|
2239
|
-
tooltip: [],
|
|
2240
2240
|
drawer: [],
|
|
2241
2241
|
folder: [],
|
|
2242
|
+
iframe: [],
|
|
2243
|
+
loading: [],
|
|
2242
2244
|
panel: [],
|
|
2245
|
+
prompt: [],
|
|
2243
2246
|
rightClickMenu: [],
|
|
2247
|
+
// 没有 searchSuggestion
|
|
2248
|
+
tooltip: [],
|
|
2244
2249
|
};
|
|
2245
2250
|
|
|
2246
2251
|
var indexCSS = "@charset \"utf-8\";\r\n.pops * {\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\t-webkit-tap-highlight-color: transparent;\r\n\t/* 代替::-webkit-scrollbar */\r\n\tscrollbar-width: thin;\r\n}\r\n.pops {\r\n\t--pops-bg-opacity: 1;\r\n\t--pops-bd-opacity: 1;\r\n\t--pops-font-size: 16px;\r\n\tinterpolate-size: allow-keywords;\r\n}\r\n.pops-mask {\r\n\t--pops-mask-bg-opacity: 0.4;\r\n}\r\n.pops {\r\n\tbackground-color: rgb(255, 255, 255, var(--pops-bg-opacity));\r\n\tborder-radius: 4px;\r\n\tborder: 1px solid rgb(235, 238, 245, var(--pops-bd-opacity));\r\n\tfont-size: var(--pops-font-size);\r\n\tline-height: normal;\r\n\tbox-shadow: 0 0 12px rgba(0, 0, 0, 0.12);\r\n\tbox-sizing: border-box;\r\n\toverflow: hidden;\r\n\ttransition: all 0.35s;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n.pops-anim {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n.pops-anim[anim=\"\"] {\r\n\ttop: unset;\r\n\tright: unset;\r\n\tbottom: unset;\r\n\tleft: unset;\r\n\twidth: unset;\r\n\theight: unset;\r\n\ttransition: none;\r\n}\r\n/* 底部图标动画和样式 */\r\n.pops i.pops-bottom-icon[is-loading=\"true\"] {\r\n\tanimation: rotating 2s linear infinite;\r\n}\r\n.pops i.pops-bottom-icon {\r\n\theight: 1em;\r\n\twidth: 1em;\r\n\tline-height: normal;\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tfill: currentColor;\r\n\tcolor: inherit;\r\n\tfont-size: inherit;\r\n}\r\n\r\n/* 遮罩层样式 */\r\n.pops-mask {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tborder: 0;\r\n\tborder-radius: 0;\r\n\tbackground-color: rgba(0, 0, 0, var(--pops-mask-bg-opacity));\r\n\tbox-shadow: none;\r\n\ttransition: none;\r\n}\r\n\r\n.pops-header-controls button.pops-header-control[type][data-header] {\r\n\tfloat: right;\r\n\tmargin: 0 0;\r\n\toutline: 0;\r\n\tborder: 0;\r\n\tborder-color: rgb(136, 136, 136, var(--pops-bd-opacity));\r\n\tbackground-color: transparent;\r\n\tcolor: #888;\r\n\tcursor: pointer;\r\n}\r\n.pops-header-controls button.pops-header-control[type=\"max\"],\r\n.pops-header-controls button.pops-header-control[type=\"mise\"],\r\n.pops-header-controls button.pops-header-control[type=\"min\"] {\r\n\toutline: 0 !important;\r\n\tborder: 0;\r\n\tborder-color: rgb(136, 136, 136, var(--pops-bd-opacity));\r\n\tbackground-color: transparent;\r\n\tcolor: rgb(136, 136, 136);\r\n\tcursor: pointer;\r\n\ttransition: all 0.3s ease-in-out;\r\n}\r\nbutton.pops-header-control i {\r\n\tcolor: rgb(144, 147, 153);\r\n\tfont-size: inherit;\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tfill: currentColor;\r\n}\r\nbutton.pops-header-control svg {\r\n\theight: 1.25em;\r\n\twidth: 1.25em;\r\n}\r\nbutton.pops-header-control {\r\n\tright: 15px;\r\n\tpadding: 0;\r\n\tborder: none;\r\n\toutline: 0;\r\n\tbackground: 0 0;\r\n\tcursor: pointer;\r\n\tposition: unset;\r\n\tline-height: normal;\r\n}\r\nbutton.pops-header-control i:hover {\r\n\tcolor: rgb(64, 158, 255);\r\n}\r\n.pops-header-controls[data-margin] button.pops-header-control {\r\n\tmargin: 0 6px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n.pops[type-value] .pops-header-controls {\r\n\tdisplay: flex;\r\n\tgap: 6px;\r\n}\r\n\r\n/* 标题禁止选中文字 */\r\n.pops [class^=\"pops\"][class*=\"-title\"] p[pops] {\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n/* <code> */\r\n.pops code {\r\n\tfont-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\r\n\tfont-size: 0.85em;\r\n\tcolor: #000;\r\n\tbackground-color: #f0f0f0;\r\n\tborder-radius: 3px;\r\n\tborder: 0;\r\n\tpadding: 0.2em 0;\r\n\twhite-space: normal;\r\n\tbackground: #f5f5f5;\r\n\ttext-wrap: wrap;\r\n\ttext-align: left;\r\n\tword-spacing: normal;\r\n\tword-break: normal;\r\n\tword-wrap: normal;\r\n\tline-height: 1.4;\r\n\t-moz-tab-size: 8;\r\n\t-o-tab-size: 8;\r\n\ttab-size: 8;\r\n\t-webkit-hyphens: none;\r\n\t-moz-hyphens: none;\r\n\t-ms-hyphens: none;\r\n\thyphens: none;\r\n\tdirection: ltr;\r\n}\r\n\r\n.pops code::before,\r\n.pops code::after {\r\n\tletter-spacing: -0.2em;\r\n\tcontent: \"\\00a0\";\r\n}\r\n";
|
|
@@ -2435,8 +2440,8 @@ System.register('pops', [], (function (exports) {
|
|
|
2435
2440
|
function isVisibleNode($css) {
|
|
2436
2441
|
return $css.position !== "static" && $css.display !== "none";
|
|
2437
2442
|
}
|
|
2438
|
-
Object.keys(
|
|
2439
|
-
let layerList =
|
|
2443
|
+
Object.keys(PopsLayerData).forEach((layerName) => {
|
|
2444
|
+
let layerList = PopsLayerData[layerName];
|
|
2440
2445
|
for (let index = 0; index < layerList.length; index++) {
|
|
2441
2446
|
const layer = layerList[index];
|
|
2442
2447
|
let nodeStyle = window.getComputedStyle(layer.animElement);
|
|
@@ -2984,8 +2989,7 @@ System.register('pops', [], (function (exports) {
|
|
|
2984
2989
|
let style = configValue == null
|
|
2985
2990
|
? ""
|
|
2986
2991
|
: typeof configValue === "function"
|
|
2987
|
-
?
|
|
2988
|
-
configValue()
|
|
2992
|
+
? configValue()
|
|
2989
2993
|
: configValue;
|
|
2990
2994
|
if (typeof style === "string") {
|
|
2991
2995
|
result.style = style;
|
|
@@ -2999,7 +3003,7 @@ System.register('pops', [], (function (exports) {
|
|
|
2999
3003
|
? configValue()
|
|
3000
3004
|
: configValue;
|
|
3001
3005
|
if (typeof zIndex === "string") {
|
|
3002
|
-
let newIndex = (zIndex =
|
|
3006
|
+
let newIndex = (zIndex = Number(zIndex));
|
|
3003
3007
|
if (!isNaN(newIndex)) {
|
|
3004
3008
|
result.zIndex = newIndex;
|
|
3005
3009
|
}
|
|
@@ -3080,37 +3084,38 @@ System.register('pops', [], (function (exports) {
|
|
|
3080
3084
|
|
|
3081
3085
|
var SVG_arrowLeft = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\">\r\n\t<path\r\n\t\td=\"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z\"></path>\r\n</svg>\r\n";
|
|
3082
3086
|
|
|
3087
|
+
const PopsIconData = {
|
|
3088
|
+
min: SVG_min,
|
|
3089
|
+
mise: SVG_mise,
|
|
3090
|
+
max: SVG_max,
|
|
3091
|
+
close: SVG_close,
|
|
3092
|
+
edit: SVG_edit,
|
|
3093
|
+
share: SVG_share,
|
|
3094
|
+
delete: SVG_delete,
|
|
3095
|
+
search: SVG_search,
|
|
3096
|
+
upload: SVG_upload,
|
|
3097
|
+
loading: SVG_loading,
|
|
3098
|
+
next: SVG_next,
|
|
3099
|
+
prev: SVG_prev,
|
|
3100
|
+
eleme: SVG_eleme,
|
|
3101
|
+
elemePlus: SVG_elemePlus,
|
|
3102
|
+
chromeFilled: SVG_chromeFilled,
|
|
3103
|
+
cpu: SVG_cpu,
|
|
3104
|
+
videoPlay: SVG_videoPlay,
|
|
3105
|
+
videoPause: SVG_videoPause,
|
|
3106
|
+
headset: SVG_headset,
|
|
3107
|
+
monitor: SVG_monitor,
|
|
3108
|
+
documentCopy: SVG_documentCopy,
|
|
3109
|
+
picture: SVG_picture,
|
|
3110
|
+
circleClose: SVG_circleClose,
|
|
3111
|
+
view: SVG_view,
|
|
3112
|
+
hide: SVG_hide,
|
|
3113
|
+
keyboard: SVG_keyboard,
|
|
3114
|
+
arrowRight: SVG_arrowRight,
|
|
3115
|
+
arrowLeft: SVG_arrowLeft,
|
|
3116
|
+
};
|
|
3083
3117
|
const PopsIcon = {
|
|
3084
|
-
$data:
|
|
3085
|
-
min: SVG_min,
|
|
3086
|
-
mise: SVG_mise,
|
|
3087
|
-
max: SVG_max,
|
|
3088
|
-
close: SVG_close,
|
|
3089
|
-
edit: SVG_edit,
|
|
3090
|
-
share: SVG_share,
|
|
3091
|
-
delete: SVG_delete,
|
|
3092
|
-
search: SVG_search,
|
|
3093
|
-
upload: SVG_upload,
|
|
3094
|
-
loading: SVG_loading,
|
|
3095
|
-
next: SVG_next,
|
|
3096
|
-
prev: SVG_prev,
|
|
3097
|
-
eleme: SVG_eleme,
|
|
3098
|
-
elemePlus: SVG_elemePlus,
|
|
3099
|
-
chromeFilled: SVG_chromeFilled,
|
|
3100
|
-
cpu: SVG_cpu,
|
|
3101
|
-
videoPlay: SVG_videoPlay,
|
|
3102
|
-
videoPause: SVG_videoPause,
|
|
3103
|
-
headset: SVG_headset,
|
|
3104
|
-
monitor: SVG_monitor,
|
|
3105
|
-
documentCopy: SVG_documentCopy,
|
|
3106
|
-
picture: SVG_picture,
|
|
3107
|
-
circleClose: SVG_circleClose,
|
|
3108
|
-
view: SVG_view,
|
|
3109
|
-
hide: SVG_hide,
|
|
3110
|
-
keyboard: SVG_keyboard,
|
|
3111
|
-
arrowRight: SVG_arrowRight,
|
|
3112
|
-
arrowLeft: SVG_arrowLeft,
|
|
3113
|
-
},
|
|
3118
|
+
$data: PopsIconData,
|
|
3114
3119
|
/**
|
|
3115
3120
|
* 判断是否存在某个icon
|
|
3116
3121
|
* @param iconName 图标名
|
|
@@ -3474,7 +3479,7 @@ System.register('pops', [], (function (exports) {
|
|
|
3474
3479
|
function clickEvent(event) {
|
|
3475
3480
|
popsDOMUtils.preventEvent(event);
|
|
3476
3481
|
// 获取该类型实例存储列表
|
|
3477
|
-
let targetLayer =
|
|
3482
|
+
let targetLayer = PopsLayerData[details.type];
|
|
3478
3483
|
function originalRun() {
|
|
3479
3484
|
if (details.config.mask.clickEvent.toClose) {
|
|
3480
3485
|
/* 关闭 */
|
|
@@ -3661,13 +3666,13 @@ System.register('pops', [], (function (exports) {
|
|
|
3661
3666
|
mode: mode,
|
|
3662
3667
|
guid: guid,
|
|
3663
3668
|
close() {
|
|
3664
|
-
return PopsInstanceUtils.close(mode,
|
|
3669
|
+
return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
|
|
3665
3670
|
},
|
|
3666
3671
|
hide() {
|
|
3667
|
-
return PopsInstanceUtils.hide(mode,
|
|
3672
|
+
return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3668
3673
|
},
|
|
3669
3674
|
show() {
|
|
3670
|
-
return PopsInstanceUtils.show(mode,
|
|
3675
|
+
return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3671
3676
|
},
|
|
3672
3677
|
};
|
|
3673
3678
|
},
|
|
@@ -3689,13 +3694,13 @@ System.register('pops', [], (function (exports) {
|
|
|
3689
3694
|
mode: mode,
|
|
3690
3695
|
guid: guid,
|
|
3691
3696
|
close() {
|
|
3692
|
-
return PopsInstanceUtils.close(mode,
|
|
3697
|
+
return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
|
|
3693
3698
|
},
|
|
3694
3699
|
hide() {
|
|
3695
|
-
return PopsInstanceUtils.hide(mode,
|
|
3700
|
+
return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3696
3701
|
},
|
|
3697
3702
|
show() {
|
|
3698
|
-
return PopsInstanceUtils.show(mode,
|
|
3703
|
+
return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3699
3704
|
},
|
|
3700
3705
|
};
|
|
3701
3706
|
},
|
|
@@ -3807,20 +3812,20 @@ System.register('pops', [], (function (exports) {
|
|
|
3807
3812
|
if (type === "loading" ||
|
|
3808
3813
|
type === "tooltip" ||
|
|
3809
3814
|
type === "rightClickMenu") {
|
|
3810
|
-
let layer =
|
|
3815
|
+
let layer = PopsLayerData[type];
|
|
3811
3816
|
if (layer) {
|
|
3812
3817
|
PopsInstanceUtils.removeInstance([layer], "", true);
|
|
3813
3818
|
}
|
|
3814
3819
|
}
|
|
3815
3820
|
else {
|
|
3816
3821
|
PopsInstanceUtils.removeInstance([
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3822
|
+
PopsLayerData.alert,
|
|
3823
|
+
PopsLayerData.confirm,
|
|
3824
|
+
PopsLayerData.prompt,
|
|
3825
|
+
PopsLayerData.iframe,
|
|
3826
|
+
PopsLayerData.drawer,
|
|
3827
|
+
PopsLayerData.folder,
|
|
3828
|
+
PopsLayerData.panel,
|
|
3824
3829
|
], "", true);
|
|
3825
3830
|
}
|
|
3826
3831
|
}
|
|
@@ -3841,7 +3846,7 @@ System.register('pops', [], (function (exports) {
|
|
|
3841
3846
|
* @param value
|
|
3842
3847
|
*/
|
|
3843
3848
|
handlePush(type, value) {
|
|
3844
|
-
|
|
3849
|
+
PopsLayerData[type].push(value);
|
|
3845
3850
|
},
|
|
3846
3851
|
};
|
|
3847
3852
|
|
|
@@ -4763,7 +4768,7 @@ System.register('pops', [], (function (exports) {
|
|
|
4763
4768
|
popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
|
|
4764
4769
|
event.preventDefault();
|
|
4765
4770
|
event.stopPropagation();
|
|
4766
|
-
PopsInstanceUtils.removeInstance([
|
|
4771
|
+
PopsInstanceUtils.removeInstance([PopsLayerData.iframe], guid, false);
|
|
4767
4772
|
if (typeof config?.btn?.close?.callback === "function") {
|
|
4768
4773
|
config.btn.close.callback(eventDetails, event);
|
|
4769
4774
|
}
|
|
@@ -7061,7 +7066,10 @@ System.register('pops', [], (function (exports) {
|
|
|
7061
7066
|
},
|
|
7062
7067
|
};
|
|
7063
7068
|
|
|
7064
|
-
|
|
7069
|
+
/**
|
|
7070
|
+
* 处理组件(把组件配置转为组件元素)
|
|
7071
|
+
*/
|
|
7072
|
+
const PanelHandlerComponents = () => {
|
|
7065
7073
|
return {
|
|
7066
7074
|
/**
|
|
7067
7075
|
* 左侧的ul容器
|
|
@@ -9770,11 +9778,11 @@ System.register('pops', [], (function (exports) {
|
|
|
9770
9778
|
if ($mask != null) {
|
|
9771
9779
|
$anim.after($mask);
|
|
9772
9780
|
}
|
|
9773
|
-
let
|
|
9781
|
+
let panelHandlerComponents = PanelHandlerComponents();
|
|
9774
9782
|
/**
|
|
9775
9783
|
* 处理内部配置
|
|
9776
9784
|
*/
|
|
9777
|
-
|
|
9785
|
+
panelHandlerComponents.init({
|
|
9778
9786
|
config: config,
|
|
9779
9787
|
$el: {
|
|
9780
9788
|
$pops: $pops,
|
|
@@ -11054,14 +11062,14 @@ System.register('pops', [], (function (exports) {
|
|
|
11054
11062
|
/** 配置 */
|
|
11055
11063
|
config = {
|
|
11056
11064
|
/** 版本号 */
|
|
11057
|
-
version: "2025.
|
|
11065
|
+
version: "2025.7.1",
|
|
11058
11066
|
cssText: PopsCSS,
|
|
11059
11067
|
/** icon图标的svg代码 */
|
|
11060
11068
|
iconSVG: PopsIcon.$data,
|
|
11061
11069
|
/** 当前已配置的动画@keyframes名字映射(初始化时生成) */
|
|
11062
11070
|
animation: PopsAnimation.$data,
|
|
11063
11071
|
/** 存储已创建的元素 */
|
|
11064
|
-
layer:
|
|
11072
|
+
layer: PopsLayerData,
|
|
11065
11073
|
/** 禁止滚动 */
|
|
11066
11074
|
forbiddenScroll: {
|
|
11067
11075
|
event(event) {
|
|
@@ -11077,7 +11085,7 @@ System.register('pops', [], (function (exports) {
|
|
|
11077
11085
|
/** pops处理float类型使用的工具类 */
|
|
11078
11086
|
MathFloatUtils: PopsMathFloatUtils,
|
|
11079
11087
|
/** pops.panel中用于处理各个类型的工具 */
|
|
11080
|
-
|
|
11088
|
+
PanelHandlerComponents: PanelHandlerComponents,
|
|
11081
11089
|
};
|
|
11082
11090
|
init() { }
|
|
11083
11091
|
/**
|