@whitesev/pops 2.0.2 → 2.0.4
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 +217 -328
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +217 -328
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +217 -328
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +217 -328
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +217 -328
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +217 -328
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +3 -3
- package/dist/types/src/components/searchSuggestion/indexType.d.ts +1 -1
- package/dist/types/src/handler/PopsElementHandler.d.ts +4 -4
- package/dist/types/src/types/event.d.ts +3 -3
- package/dist/types/src/types/mask.d.ts +1 -1
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +3 -3
- package/package.json +1 -1
- package/src/Pops.ts +1 -1
- package/src/components/alert/index.ts +13 -20
- package/src/components/confirm/index.ts +10 -20
- package/src/components/drawer/index.ts +11 -26
- package/src/components/folder/index.ts +11 -20
- package/src/components/iframe/index.ts +14 -23
- package/src/components/loading/index.ts +10 -9
- package/src/components/panel/PanelHandleContentDetails.ts +14 -36
- package/src/components/panel/index.ts +7 -11
- package/src/components/prompt/index.ts +16 -23
- package/src/components/rightClickMenu/index.ts +9 -7
- package/src/components/searchSuggestion/index.ts +8 -13
- package/src/components/searchSuggestion/indexType.ts +1 -1
- package/src/handler/PopsElementHandler.ts +33 -72
- package/src/handler/PopsHandler.ts +9 -11
- package/src/types/event.d.ts +3 -3
- package/src/types/mask.d.ts +1 -1
- package/src/utils/PopsDOMUtils.ts +21 -19
- package/src/utils/PopsInstanceUtils.ts +120 -96
package/dist/index.system.js
CHANGED
|
@@ -1224,30 +1224,32 @@ System.register('pops', [], (function (exports) {
|
|
|
1224
1224
|
if (element == null) {
|
|
1225
1225
|
return;
|
|
1226
1226
|
}
|
|
1227
|
+
let setStyleProperty = (propertyName, propertyValue) => {
|
|
1228
|
+
if (typeof propertyValue === "string" &&
|
|
1229
|
+
propertyValue.trim().endsWith("!important")) {
|
|
1230
|
+
propertyValue = propertyValue
|
|
1231
|
+
.trim()
|
|
1232
|
+
.replace(/!important$/gi, "")
|
|
1233
|
+
.trim();
|
|
1234
|
+
element.style.setProperty(propertyName, propertyValue, "important");
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
propertyValue = handlePixe(propertyName, propertyValue);
|
|
1238
|
+
element.style.setProperty(propertyName, propertyValue);
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1227
1241
|
if (typeof property === "string") {
|
|
1228
1242
|
if (value == null) {
|
|
1229
1243
|
return getComputedStyle(element).getPropertyValue(property);
|
|
1230
1244
|
}
|
|
1231
1245
|
else {
|
|
1232
|
-
|
|
1233
|
-
element.style.setProperty(property, value, "important");
|
|
1234
|
-
}
|
|
1235
|
-
else {
|
|
1236
|
-
value = handlePixe(property, value);
|
|
1237
|
-
element.style.setProperty(property, value);
|
|
1238
|
-
}
|
|
1246
|
+
setStyleProperty(property, value);
|
|
1239
1247
|
}
|
|
1240
1248
|
}
|
|
1241
1249
|
else if (typeof property === "object") {
|
|
1242
1250
|
for (let prop in property) {
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
element.style.setProperty(prop, property[prop], "important");
|
|
1246
|
-
}
|
|
1247
|
-
else {
|
|
1248
|
-
property[prop] = handlePixe(prop, property[prop]);
|
|
1249
|
-
element.style.setProperty(prop, property[prop]);
|
|
1250
|
-
}
|
|
1251
|
+
let value = property[prop];
|
|
1252
|
+
setStyleProperty(prop, value);
|
|
1251
1253
|
}
|
|
1252
1254
|
}
|
|
1253
1255
|
}
|
|
@@ -1906,31 +1908,37 @@ System.register('pops', [], (function (exports) {
|
|
|
1906
1908
|
* @param maskElement
|
|
1907
1909
|
*/
|
|
1908
1910
|
hide(popsType, layerConfigList, guid, config, animElement, maskElement) {
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1911
|
+
return new Promise((resolve) => {
|
|
1912
|
+
let popsElement = animElement.querySelector(".pops[type-value]");
|
|
1913
|
+
if (popsType === "drawer") {
|
|
1914
|
+
let drawerConfig = config;
|
|
1915
|
+
setTimeout(() => {
|
|
1916
|
+
maskElement.style.setProperty("display", "none");
|
|
1917
|
+
if (["top", "bottom"].includes(drawerConfig.direction)) {
|
|
1918
|
+
popsElement.style.setProperty("height", "0");
|
|
1919
|
+
}
|
|
1920
|
+
else if (["left", "right"].includes(drawerConfig.direction)) {
|
|
1921
|
+
popsElement.style.setProperty("width", "0");
|
|
1922
|
+
}
|
|
1923
|
+
else {
|
|
1924
|
+
console.error("未知direction:", drawerConfig.direction);
|
|
1925
|
+
}
|
|
1926
|
+
resolve();
|
|
1927
|
+
}, drawerConfig.closeDelay);
|
|
1928
|
+
}
|
|
1929
|
+
else {
|
|
1930
|
+
let findLayerIns = layerConfigList.find((layerConfigItem) => layerConfigItem.guid === guid);
|
|
1931
|
+
if (findLayerIns) {
|
|
1928
1932
|
/* 存在动画 */
|
|
1933
|
+
let layerConfigItem = findLayerIns;
|
|
1929
1934
|
layerConfigItem.animElement.style.width = "100%";
|
|
1930
1935
|
layerConfigItem.animElement.style.height = "100%";
|
|
1931
1936
|
layerConfigItem.animElement.style["animation-name"] =
|
|
1932
1937
|
layerConfigItem.animElement.getAttribute("anim") + "-reverse";
|
|
1933
1938
|
if (pops.config.animation.hasOwnProperty(layerConfigItem.animElement.style["animation-name"])) {
|
|
1939
|
+
/**
|
|
1940
|
+
* 动画结束的回调
|
|
1941
|
+
*/
|
|
1934
1942
|
function animationendCallBack() {
|
|
1935
1943
|
layerConfigItem.animElement.style.display = "none";
|
|
1936
1944
|
if (layerConfigItem.maskElement) {
|
|
@@ -1939,6 +1947,7 @@ System.register('pops', [], (function (exports) {
|
|
|
1939
1947
|
popsDOMUtils.off(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
1940
1948
|
capture: true,
|
|
1941
1949
|
});
|
|
1950
|
+
resolve();
|
|
1942
1951
|
}
|
|
1943
1952
|
popsDOMUtils.on(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
1944
1953
|
capture: true,
|
|
@@ -1949,11 +1958,11 @@ System.register('pops', [], (function (exports) {
|
|
|
1949
1958
|
if (layerConfigItem.maskElement) {
|
|
1950
1959
|
layerConfigItem.maskElement.style.display = "none";
|
|
1951
1960
|
}
|
|
1961
|
+
resolve();
|
|
1952
1962
|
}
|
|
1953
|
-
return;
|
|
1954
1963
|
}
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1964
|
+
}
|
|
1965
|
+
});
|
|
1957
1966
|
},
|
|
1958
1967
|
/**
|
|
1959
1968
|
* 显示
|
|
@@ -1965,27 +1974,30 @@ System.register('pops', [], (function (exports) {
|
|
|
1965
1974
|
* @param maskElement
|
|
1966
1975
|
*/
|
|
1967
1976
|
show(popsType, layerConfigList, guid, config, animElement, maskElement) {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1977
|
+
return new Promise((resolve) => {
|
|
1978
|
+
let popsElement = animElement.querySelector(".pops[type-value]");
|
|
1979
|
+
if (popsType === "drawer") {
|
|
1980
|
+
let drawerConfig = config;
|
|
1981
|
+
setTimeout(() => {
|
|
1982
|
+
popsDOMUtils.css(maskElement, "display", "");
|
|
1983
|
+
let direction = drawerConfig.direction;
|
|
1984
|
+
let size = drawerConfig.size.toString();
|
|
1985
|
+
if (["top", "bottom"].includes(direction)) {
|
|
1986
|
+
popsElement.style.setProperty("height", size);
|
|
1987
|
+
}
|
|
1988
|
+
else if (["left", "right"].includes(direction)) {
|
|
1989
|
+
popsElement.style.setProperty("width", size);
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
console.error("未知direction:", direction);
|
|
1993
|
+
}
|
|
1994
|
+
resolve();
|
|
1995
|
+
}, drawerConfig.openDelay);
|
|
1996
|
+
}
|
|
1997
|
+
else {
|
|
1998
|
+
let findLayerIns = layerConfigList.find((layerConfigItem) => layerConfigItem.guid === guid);
|
|
1999
|
+
if (findLayerIns) {
|
|
2000
|
+
let layerConfigItem = findLayerIns;
|
|
1989
2001
|
layerConfigItem.animElement.style.width = "";
|
|
1990
2002
|
layerConfigItem.animElement.style.height = "";
|
|
1991
2003
|
layerConfigItem.animElement.style["animation-name"] =
|
|
@@ -1993,14 +2005,18 @@ System.register('pops', [], (function (exports) {
|
|
|
1993
2005
|
.animElement.getAttribute("anim")
|
|
1994
2006
|
.replace("-reverse", "");
|
|
1995
2007
|
if (pops.config.animation.hasOwnProperty(layerConfigItem.animElement.style["animation-name"])) {
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
}
|
|
2008
|
+
/**
|
|
2009
|
+
* 动画结束的回调
|
|
2010
|
+
*/
|
|
2000
2011
|
function animationendCallBack() {
|
|
2001
2012
|
popsDOMUtils.off(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
2002
2013
|
capture: true,
|
|
2003
2014
|
});
|
|
2015
|
+
resolve();
|
|
2016
|
+
}
|
|
2017
|
+
layerConfigItem.animElement.style.display = "";
|
|
2018
|
+
if (layerConfigItem.maskElement) {
|
|
2019
|
+
layerConfigItem.maskElement.style.display = "";
|
|
2004
2020
|
}
|
|
2005
2021
|
popsDOMUtils.on(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
2006
2022
|
capture: true,
|
|
@@ -2011,11 +2027,11 @@ System.register('pops', [], (function (exports) {
|
|
|
2011
2027
|
if (layerConfigItem.maskElement) {
|
|
2012
2028
|
layerConfigItem.maskElement.style.display = "";
|
|
2013
2029
|
}
|
|
2030
|
+
resolve();
|
|
2014
2031
|
}
|
|
2015
2032
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
}
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2019
2035
|
},
|
|
2020
2036
|
/**
|
|
2021
2037
|
* 关闭
|
|
@@ -2026,50 +2042,57 @@ System.register('pops', [], (function (exports) {
|
|
|
2026
2042
|
* @param animElement
|
|
2027
2043
|
*/
|
|
2028
2044
|
close(popsType, layerConfigList, guid, config, animElement) {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
function
|
|
2036
|
-
|
|
2045
|
+
return new Promise((resolve) => {
|
|
2046
|
+
let popsElement = animElement.querySelector(".pops[type-value]");
|
|
2047
|
+
let drawerConfig = config;
|
|
2048
|
+
/**
|
|
2049
|
+
* 动画结束事件
|
|
2050
|
+
*/
|
|
2051
|
+
function transitionendEvent() {
|
|
2052
|
+
/**
|
|
2053
|
+
* 弹窗已关闭的回调
|
|
2054
|
+
*/
|
|
2055
|
+
function closeCallBack(event) {
|
|
2056
|
+
if (event.propertyName !== "transform") {
|
|
2057
|
+
return;
|
|
2058
|
+
}
|
|
2059
|
+
popsDOMUtils.off(popsElement, popsDOMUtils.getTransitionEndNameList(), void 0, closeCallBack);
|
|
2060
|
+
PopsInstanceUtils.removeInstance([layerConfigList], guid);
|
|
2061
|
+
resolve();
|
|
2062
|
+
}
|
|
2063
|
+
/* 监听过渡结束 */
|
|
2064
|
+
popsDOMUtils.on(popsElement, popsDOMUtils.getTransitionEndNameList(), closeCallBack);
|
|
2065
|
+
let popsTransForm = getComputedStyle(popsElement).transform;
|
|
2066
|
+
if (popsTransForm !== "none") {
|
|
2067
|
+
popsDOMUtils.trigger(popsElement, popsDOMUtils.getTransitionEndNameList(), void 0, true);
|
|
2037
2068
|
return;
|
|
2038
2069
|
}
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
}
|
|
2055
|
-
else if (["left"].includes(drawerConfig.direction)) {
|
|
2056
|
-
popsElement.style.setProperty("transform", "translateX(-100%)");
|
|
2070
|
+
if (["top"].includes(drawerConfig.direction)) {
|
|
2071
|
+
popsElement.style.setProperty("transform", "translateY(-100%)");
|
|
2072
|
+
}
|
|
2073
|
+
else if (["bottom"].includes(drawerConfig.direction)) {
|
|
2074
|
+
popsElement.style.setProperty("transform", "translateY(100%)");
|
|
2075
|
+
}
|
|
2076
|
+
else if (["left"].includes(drawerConfig.direction)) {
|
|
2077
|
+
popsElement.style.setProperty("transform", "translateX(-100%)");
|
|
2078
|
+
}
|
|
2079
|
+
else if (["right"].includes(drawerConfig.direction)) {
|
|
2080
|
+
popsElement.style.setProperty("transform", "translateX(100%)");
|
|
2081
|
+
}
|
|
2082
|
+
else {
|
|
2083
|
+
console.error("未知direction:", drawerConfig.direction);
|
|
2084
|
+
}
|
|
2057
2085
|
}
|
|
2058
|
-
|
|
2059
|
-
|
|
2086
|
+
if (popsType === "drawer") {
|
|
2087
|
+
setTimeout(() => {
|
|
2088
|
+
transitionendEvent();
|
|
2089
|
+
}, drawerConfig.closeDelay);
|
|
2060
2090
|
}
|
|
2061
2091
|
else {
|
|
2062
|
-
|
|
2092
|
+
PopsInstanceUtils.removeInstance([layerConfigList], guid);
|
|
2093
|
+
resolve();
|
|
2063
2094
|
}
|
|
2064
|
-
}
|
|
2065
|
-
if (popsType === "drawer") {
|
|
2066
|
-
setTimeout(() => {
|
|
2067
|
-
transitionendEvent();
|
|
2068
|
-
}, drawerConfig.closeDelay);
|
|
2069
|
-
}
|
|
2070
|
-
else {
|
|
2071
|
-
PopsInstanceUtils.removeInstance([layerConfigList], guid);
|
|
2072
|
-
}
|
|
2095
|
+
});
|
|
2073
2096
|
},
|
|
2074
2097
|
/**
|
|
2075
2098
|
* 拖拽元素
|
|
@@ -2474,7 +2497,7 @@ System.register('pops', [], (function (exports) {
|
|
|
2474
2497
|
if (style.startsWith(";")) {
|
|
2475
2498
|
style = style.replace(";", "");
|
|
2476
2499
|
}
|
|
2477
|
-
return `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
2500
|
+
return /*html*/ `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
2478
2501
|
},
|
|
2479
2502
|
/**
|
|
2480
2503
|
* 获取动画层HTML
|
|
@@ -2502,23 +2525,10 @@ System.register('pops', [], (function (exports) {
|
|
|
2502
2525
|
}
|
|
2503
2526
|
let hasBottomBtn = bottomBtnHTML.trim() === "" ? false : true;
|
|
2504
2527
|
return /*html*/ `
|
|
2505
|
-
<div
|
|
2506
|
-
class="pops-anim"
|
|
2507
|
-
anim="${__config.animation || ""}"
|
|
2508
|
-
style="${popsAnimStyle}"
|
|
2509
|
-
data-guid="${guid}">
|
|
2510
|
-
${config.style != null
|
|
2528
|
+
<div class="pops-anim" anim="${__config.animation || ""}" style="${popsAnimStyle}" data-guid="${guid}">${config.style != null
|
|
2511
2529
|
? `<style tyle="text/css">${config.style}</style>`
|
|
2512
2530
|
: ""}
|
|
2513
|
-
<div
|
|
2514
|
-
class="pops ${config.class || ""}"
|
|
2515
|
-
data-bottom-btn="${hasBottomBtn}"
|
|
2516
|
-
type-value="${type}"
|
|
2517
|
-
style="${popsStyle}"
|
|
2518
|
-
position="${popsPosition}"
|
|
2519
|
-
data-guid="${guid}">
|
|
2520
|
-
${html}
|
|
2521
|
-
</div>
|
|
2531
|
+
<div class="pops ${config.class || ""}" data-bottom-btn="${hasBottomBtn}" type-value="${type}" style="${popsStyle}" position="${popsPosition}" data-guid="${guid}">${html}</div>
|
|
2522
2532
|
</div>`;
|
|
2523
2533
|
},
|
|
2524
2534
|
/**
|
|
@@ -2543,22 +2553,20 @@ System.register('pops', [], (function (exports) {
|
|
|
2543
2553
|
let topRightButtonHTML = "";
|
|
2544
2554
|
__config_iframe.topRightButton.split("|").forEach((item) => {
|
|
2545
2555
|
item = item.toLowerCase();
|
|
2546
|
-
topRightButtonHTML += `
|
|
2556
|
+
topRightButtonHTML += /*html*/ `
|
|
2547
2557
|
<button class="pops-header-control" type="${item}">
|
|
2548
2558
|
<i class="pops-icon">${pops.config.iconSVG[item]}</i>
|
|
2549
2559
|
</button>`;
|
|
2550
2560
|
});
|
|
2551
|
-
resultHTML = `
|
|
2552
|
-
<div class="pops-header-controls" data-margin
|
|
2553
|
-
${topRightButtonHTML}
|
|
2554
|
-
</div>`;
|
|
2561
|
+
resultHTML = /*html*/ `
|
|
2562
|
+
<div class="pops-header-controls" data-margin>${topRightButtonHTML}</div>`;
|
|
2555
2563
|
}
|
|
2556
2564
|
else {
|
|
2557
2565
|
if (__config_confirm.btn?.close?.enable) {
|
|
2558
|
-
closeHTML = `
|
|
2566
|
+
closeHTML = /*html*/ `
|
|
2559
2567
|
<div class="pops-header-controls">
|
|
2560
2568
|
<button class="pops-header-control" type="close" data-header>
|
|
2561
|
-
|
|
2569
|
+
<i class="pops-icon">${pops.config.iconSVG["close"]}</i>
|
|
2562
2570
|
</button>
|
|
2563
2571
|
</div>`;
|
|
2564
2572
|
}
|
|
@@ -2615,20 +2623,15 @@ System.register('pops', [], (function (exports) {
|
|
|
2615
2623
|
iconHTML = okIcon;
|
|
2616
2624
|
}
|
|
2617
2625
|
iconHTML = iconHTML || "";
|
|
2618
|
-
okIconHTML =
|
|
2619
|
-
<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">
|
|
2620
|
-
${iconHTML}
|
|
2621
|
-
</i>`;
|
|
2626
|
+
okIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">${iconHTML}</i>`;
|
|
2622
2627
|
}
|
|
2623
|
-
okHTML = `
|
|
2628
|
+
okHTML = /*html*/ `
|
|
2624
2629
|
<button
|
|
2625
2630
|
class="pops-${type}-btn-ok ${okButtonSizeClassName}"
|
|
2626
2631
|
type="${__config_confirm.btn.ok?.type}"
|
|
2627
2632
|
data-has-icon="${(__config_confirm.btn.ok.icon || "") !== ""}"
|
|
2628
2633
|
data-rightIcon="${__config_confirm.btn.ok?.rightIcon}"
|
|
2629
|
-
>
|
|
2630
|
-
${okIconHTML}
|
|
2631
|
-
<span>${config.btn.ok.text}</span>
|
|
2634
|
+
>${okIconHTML}<span>${config.btn.ok.text}</span>
|
|
2632
2635
|
</button>`;
|
|
2633
2636
|
}
|
|
2634
2637
|
if (__config_confirm.btn?.cancel?.enable) {
|
|
@@ -2654,20 +2657,15 @@ System.register('pops', [], (function (exports) {
|
|
|
2654
2657
|
iconHTML = cancelIcon;
|
|
2655
2658
|
}
|
|
2656
2659
|
iconHTML = iconHTML || "";
|
|
2657
|
-
cancelIconHTML =
|
|
2658
|
-
<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">
|
|
2659
|
-
${iconHTML}
|
|
2660
|
-
</i>`;
|
|
2660
|
+
cancelIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">${iconHTML}</i>`;
|
|
2661
2661
|
}
|
|
2662
|
-
cancelHTML = `
|
|
2662
|
+
cancelHTML = /*html*/ `
|
|
2663
2663
|
<button
|
|
2664
2664
|
class="pops-${type}-btn-cancel ${cancelButtonSizeClassName}"
|
|
2665
2665
|
type="${__config_confirm.btn.cancel.type}"
|
|
2666
2666
|
data-has-icon="${(__config_confirm.btn.cancel.icon || "") !== ""}"
|
|
2667
2667
|
data-rightIcon="${__config_confirm.btn.cancel.rightIcon}"
|
|
2668
|
-
>
|
|
2669
|
-
${cancelIconHTML}
|
|
2670
|
-
<span>${__config_confirm.btn.cancel.text}</span>
|
|
2668
|
+
>${cancelIconHTML}<span>${__config_confirm.btn.cancel.text}</span>
|
|
2671
2669
|
</button>`;
|
|
2672
2670
|
}
|
|
2673
2671
|
if (__config_confirm.btn?.other?.enable) {
|
|
@@ -2690,20 +2688,15 @@ System.register('pops', [], (function (exports) {
|
|
|
2690
2688
|
iconHTML = pops.config.iconSVG[otherIcon];
|
|
2691
2689
|
}
|
|
2692
2690
|
iconHTML = iconHTML || "";
|
|
2693
|
-
otherIconHTML =
|
|
2694
|
-
<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">
|
|
2695
|
-
${iconHTML}
|
|
2696
|
-
</i>`;
|
|
2691
|
+
otherIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">${iconHTML}</i>`;
|
|
2697
2692
|
}
|
|
2698
|
-
ohterHTML = `
|
|
2693
|
+
ohterHTML = /*html*/ `
|
|
2699
2694
|
<button
|
|
2700
2695
|
class="pops-${type}-btn-other ${otherButtonSizeClassName}"
|
|
2701
2696
|
type="${__config_confirm.btn.other.type}"
|
|
2702
2697
|
data-has-icon="${(__config_confirm.btn.other.icon || "") !== ""}"
|
|
2703
2698
|
data-rightIcon="${__config_confirm.btn.other.rightIcon}"
|
|
2704
|
-
>
|
|
2705
|
-
${otherIconHTML}
|
|
2706
|
-
<span>${__config_confirm.btn.other.text}</span>
|
|
2699
|
+
>${otherIconHTML}<span>${__config_confirm.btn.other.text}</span>
|
|
2707
2700
|
</button>`;
|
|
2708
2701
|
}
|
|
2709
2702
|
if (__config_confirm.btn.merge) {
|
|
@@ -2714,33 +2707,22 @@ System.register('pops', [], (function (exports) {
|
|
|
2714
2707
|
else {
|
|
2715
2708
|
flexStyle += "flex-direction: row;";
|
|
2716
2709
|
}
|
|
2717
|
-
resultHTML = `
|
|
2718
|
-
<div class="pops-${type}-btn" style="${btnStyle}"
|
|
2719
|
-
${ohterHTML}
|
|
2720
|
-
<div
|
|
2710
|
+
resultHTML = /*html*/ `
|
|
2711
|
+
<div class="pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
|
|
2721
2712
|
class="pops-${type}-btn-merge"
|
|
2722
|
-
style="${flexStyle}">
|
|
2723
|
-
${okHTML}
|
|
2724
|
-
${cancelHTML}
|
|
2725
|
-
</div>
|
|
2713
|
+
style="${flexStyle}">${okHTML}${cancelHTML}</div>
|
|
2726
2714
|
</div>
|
|
2727
2715
|
`;
|
|
2728
2716
|
}
|
|
2729
2717
|
else {
|
|
2730
|
-
resultHTML =
|
|
2731
|
-
<div class="pops-${type}-btn" style="${btnStyle}">
|
|
2732
|
-
${okHTML}
|
|
2733
|
-
${cancelHTML}
|
|
2734
|
-
${ohterHTML}
|
|
2735
|
-
</div>
|
|
2736
|
-
`;
|
|
2718
|
+
resultHTML = /*html*/ `<div class="pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
|
|
2737
2719
|
}
|
|
2738
2720
|
return resultHTML;
|
|
2739
2721
|
},
|
|
2740
2722
|
/**
|
|
2741
2723
|
* 获取标题style
|
|
2742
|
-
* @param type
|
|
2743
|
-
* @param config
|
|
2724
|
+
* @param type 弹窗类型
|
|
2725
|
+
* @param config 弹窗配置
|
|
2744
2726
|
*/
|
|
2745
2727
|
getHeaderStyle(type, config) {
|
|
2746
2728
|
return {
|
|
@@ -2750,8 +2732,8 @@ System.register('pops', [], (function (exports) {
|
|
|
2750
2732
|
},
|
|
2751
2733
|
/**
|
|
2752
2734
|
* 获取内容style
|
|
2753
|
-
* @param type
|
|
2754
|
-
* @param config
|
|
2735
|
+
* @param type 弹窗类型
|
|
2736
|
+
* @param config 弹窗配置
|
|
2755
2737
|
*/
|
|
2756
2738
|
getContentStyle(type, config) {
|
|
2757
2739
|
return {
|
|
@@ -2839,11 +2821,11 @@ System.register('pops', [], (function (exports) {
|
|
|
2839
2821
|
function originalRun() {
|
|
2840
2822
|
if (details.config.mask.clickEvent.toClose) {
|
|
2841
2823
|
/* 关闭 */
|
|
2842
|
-
PopsInstanceUtils.close(details.type, targetLayer, details.guid, details.config, details.animElement);
|
|
2824
|
+
return PopsInstanceUtils.close(details.type, targetLayer, details.guid, details.config, details.animElement);
|
|
2843
2825
|
}
|
|
2844
2826
|
else if (details.config.mask.clickEvent.toHide) {
|
|
2845
2827
|
/* 隐藏 */
|
|
2846
|
-
PopsInstanceUtils.hide(details.type, targetLayer, details.guid, details.config, details.animElement, result.maskElement);
|
|
2828
|
+
return PopsInstanceUtils.hide(details.type, targetLayer, details.guid, details.config, details.animElement, result.maskElement);
|
|
2847
2829
|
}
|
|
2848
2830
|
}
|
|
2849
2831
|
if (typeof details.config.mask.clickCallBack === "function") {
|
|
@@ -3022,13 +3004,13 @@ System.register('pops', [], (function (exports) {
|
|
|
3022
3004
|
mode: mode,
|
|
3023
3005
|
guid: guid,
|
|
3024
3006
|
close() {
|
|
3025
|
-
PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3007
|
+
return PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3026
3008
|
},
|
|
3027
3009
|
hide() {
|
|
3028
|
-
PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3010
|
+
return PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3029
3011
|
},
|
|
3030
3012
|
show() {
|
|
3031
|
-
PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3013
|
+
return PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3032
3014
|
},
|
|
3033
3015
|
};
|
|
3034
3016
|
},
|
|
@@ -3050,13 +3032,13 @@ System.register('pops', [], (function (exports) {
|
|
|
3050
3032
|
mode: mode,
|
|
3051
3033
|
guid: guid,
|
|
3052
3034
|
close() {
|
|
3053
|
-
PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3035
|
+
return PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3054
3036
|
},
|
|
3055
3037
|
hide() {
|
|
3056
|
-
PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3038
|
+
return PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3057
3039
|
},
|
|
3058
3040
|
show() {
|
|
3059
|
-
PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3041
|
+
return PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3060
3042
|
},
|
|
3061
3043
|
};
|
|
3062
3044
|
},
|
|
@@ -3295,21 +3277,12 @@ System.register('pops', [], (function (exports) {
|
|
|
3295
3277
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3296
3278
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3297
3279
|
/*html*/ `
|
|
3298
|
-
<div
|
|
3299
|
-
class="pops-alert-title"
|
|
3300
|
-
style="text-align: ${config.title.position};
|
|
3301
|
-
${headerStyle}">
|
|
3302
|
-
${config.title.html
|
|
3280
|
+
<div class="pops-alert-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3303
3281
|
? config.title.text
|
|
3304
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3305
|
-
|
|
3306
|
-
</div>
|
|
3307
|
-
<div class="pops-alert-content" style="${contentStyle}">
|
|
3308
|
-
${config.content.html
|
|
3282
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3283
|
+
<div class="pops-alert-content" style="${contentStyle}">${config.content.html
|
|
3309
3284
|
? config.content.text
|
|
3310
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
3311
|
-
</div>
|
|
3312
|
-
${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3285
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3313
3286
|
/**
|
|
3314
3287
|
* 弹窗的主元素,包括动画层
|
|
3315
3288
|
*/
|
|
@@ -3486,22 +3459,12 @@ System.register('pops', [], (function (exports) {
|
|
|
3486
3459
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3487
3460
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3488
3461
|
/*html*/ `
|
|
3489
|
-
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}"
|
|
3490
|
-
${config.title.html
|
|
3462
|
+
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3491
3463
|
? config.title.text
|
|
3492
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3493
|
-
|
|
3494
|
-
</div>
|
|
3495
|
-
<div class="pops-confirm-content" style="${contentStyle}">
|
|
3496
|
-
${config.content.html
|
|
3464
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3465
|
+
<div class="pops-confirm-content" style="${contentStyle}">${config.content.html
|
|
3497
3466
|
? config.content.text
|
|
3498
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
3499
|
-
|
|
3500
|
-
</div>
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
${bottomBtnHTML}
|
|
3504
|
-
`, bottomBtnHTML, zIndex);
|
|
3467
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3505
3468
|
/**
|
|
3506
3469
|
* 弹窗的主元素,包括动画层
|
|
3507
3470
|
*/
|
|
@@ -3683,14 +3646,10 @@ System.register('pops', [], (function (exports) {
|
|
|
3683
3646
|
let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3684
3647
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3685
3648
|
/*html*/ `
|
|
3686
|
-
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}"
|
|
3687
|
-
${config.title.html
|
|
3649
|
+
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3688
3650
|
? config.title.text
|
|
3689
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3690
|
-
${
|
|
3691
|
-
</div>
|
|
3692
|
-
<div class="pops-prompt-content" style="${contentPStyle}">
|
|
3693
|
-
${config.content.row
|
|
3651
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3652
|
+
<div class="pops-prompt-content" style="${contentPStyle}">${config.content.row
|
|
3694
3653
|
? '<textarea pops="" placeholder="' +
|
|
3695
3654
|
config.content.placeholder +
|
|
3696
3655
|
'"></textarea>'
|
|
@@ -3698,10 +3657,7 @@ System.register('pops', [], (function (exports) {
|
|
|
3698
3657
|
config.content.placeholder +
|
|
3699
3658
|
'" type="' +
|
|
3700
3659
|
(config.content.password ? "password" : "text") +
|
|
3701
|
-
'">'}
|
|
3702
|
-
</div>
|
|
3703
|
-
${bottomBtnHTML}
|
|
3704
|
-
`, bottomBtnHTML, zIndex);
|
|
3660
|
+
'">'}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3705
3661
|
/**
|
|
3706
3662
|
* 弹窗的主元素,包括动画层
|
|
3707
3663
|
*/
|
|
@@ -3814,9 +3770,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3814
3770
|
let { contentPStyle } = PopsElementHandler.getContentStyle("loading", config);
|
|
3815
3771
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3816
3772
|
/*html*/ `
|
|
3817
|
-
<div class="pops-loading-content"
|
|
3818
|
-
|
|
3819
|
-
? `
|
|
3773
|
+
<div class="pops-loading-content">${config.addIndexCSS
|
|
3774
|
+
? /*html*/ `
|
|
3820
3775
|
<style data-model-name="index">${pops.config.cssText.index}</style>
|
|
3821
3776
|
<style data-model-name="anim">${pops.config.cssText.anim}</style>
|
|
3822
3777
|
<style data-model-name="common">${pops.config.cssText.common}</style>
|
|
@@ -3826,9 +3781,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3826
3781
|
${pops.config.cssText.loadingCSS}
|
|
3827
3782
|
</style>
|
|
3828
3783
|
${config.style != null ? `<style>${config.style}</style>` : ""}
|
|
3829
|
-
|
|
3830
|
-
</div
|
|
3831
|
-
`, "", zIndex);
|
|
3784
|
+
<p pops style="${contentPStyle}">${config.content.text}</p>
|
|
3785
|
+
</div>`, "", zIndex);
|
|
3832
3786
|
/**
|
|
3833
3787
|
* 弹窗的主元素,包括动画层
|
|
3834
3788
|
*/
|
|
@@ -3852,6 +3806,9 @@ System.register('pops', [], (function (exports) {
|
|
|
3852
3806
|
maskHTML: maskHTML,
|
|
3853
3807
|
});
|
|
3854
3808
|
$mask = _handleMask_.maskElement;
|
|
3809
|
+
// 遮罩层必须是跟随主内容
|
|
3810
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3811
|
+
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3855
3812
|
elementList.push($mask);
|
|
3856
3813
|
}
|
|
3857
3814
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3962,27 +3919,16 @@ System.register('pops', [], (function (exports) {
|
|
|
3962
3919
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
3963
3920
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3964
3921
|
/*html*/ `
|
|
3965
|
-
<div
|
|
3966
|
-
class="pops-iframe-title"
|
|
3967
|
-
style="text-align: ${config.title.position};${headerStyle}"
|
|
3968
|
-
>
|
|
3969
|
-
${config.title.html
|
|
3922
|
+
<div class="pops-iframe-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3970
3923
|
? titleText
|
|
3971
|
-
: `<p pops style="${headerPStyle}">${titleText}</p>`}
|
|
3972
|
-
|
|
3973
|
-
</div>
|
|
3974
|
-
<div class="pops-iframe-content">
|
|
3924
|
+
: `<p pops style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
|
|
3925
|
+
<div class="pops-iframe-content">
|
|
3975
3926
|
<div class="pops-iframe-content-global-loading"></div>
|
|
3976
|
-
<iframe
|
|
3977
|
-
src="${config.url}"
|
|
3978
|
-
pops
|
|
3979
|
-
${config.sandbox
|
|
3927
|
+
<iframe src="${config.url}" pops ${config.sandbox
|
|
3980
3928
|
? "sandbox='allow-forms allow-same-origin allow-scripts'"
|
|
3981
3929
|
: ""}>
|
|
3982
3930
|
</iframe>
|
|
3983
|
-
|
|
3984
|
-
${config.loading.enable ? iframeLoadingHTML : ""}
|
|
3985
|
-
`, "", zIndex);
|
|
3931
|
+
</div>${config.loading.enable ? iframeLoadingHTML : ""}`, "", zIndex);
|
|
3986
3932
|
/**
|
|
3987
3933
|
* 弹窗的主元素,包括动画层
|
|
3988
3934
|
*/
|
|
@@ -4288,29 +4234,14 @@ System.register('pops', [], (function (exports) {
|
|
|
4288
4234
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4289
4235
|
/*html*/ `
|
|
4290
4236
|
${config.title.enable
|
|
4291
|
-
? `
|
|
4292
|
-
<div class="pops-${PopsType}-title" style="${headerStyle}"
|
|
4293
|
-
${config.title.html
|
|
4237
|
+
? /*html*/ `
|
|
4238
|
+
<div class="pops-${PopsType}-title" style="${headerStyle}">${config.title.html
|
|
4294
4239
|
? config.title.text
|
|
4295
|
-
: `<p
|
|
4296
|
-
pops
|
|
4297
|
-
style="
|
|
4298
|
-
width: 100%;
|
|
4299
|
-
text-align: ${config.title.position};
|
|
4300
|
-
${headerPStyle}">${config.title.text}</p>`}
|
|
4301
|
-
${headerBtnHTML}
|
|
4302
|
-
</div>
|
|
4303
|
-
`
|
|
4240
|
+
: /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
|
|
4304
4241
|
: ""}
|
|
4305
|
-
|
|
4306
|
-
<div class="pops-${PopsType}-content" style="${contentStyle}">
|
|
4307
|
-
${config.content.html
|
|
4242
|
+
<div class="pops-${PopsType}-content" style="${contentStyle}">${config.content.html
|
|
4308
4243
|
? config.content.text
|
|
4309
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
4310
|
-
</div>
|
|
4311
|
-
|
|
4312
|
-
${bottomBtnHTML}
|
|
4313
|
-
`, bottomBtnHTML, zIndex);
|
|
4244
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4314
4245
|
/**
|
|
4315
4246
|
* 弹窗的主元素,包括动画层
|
|
4316
4247
|
*/
|
|
@@ -4692,14 +4623,12 @@ System.register('pops', [], (function (exports) {
|
|
|
4692
4623
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4693
4624
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
4694
4625
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4695
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4696
|
-
|
|
4697
|
-
|
|
4626
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4627
|
+
/*html*/ `
|
|
4628
|
+
<div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
4698
4629
|
? config.title.text
|
|
4699
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
4700
|
-
|
|
4701
|
-
</div>
|
|
4702
|
-
<div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
|
|
4630
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
4631
|
+
<div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
|
|
4703
4632
|
<div class="pops-folder-list">
|
|
4704
4633
|
<div class="pops-folder-file-list-breadcrumb">
|
|
4705
4634
|
<div class="pops-folder-file-list-breadcrumb-primary">
|
|
@@ -4711,7 +4640,6 @@ System.register('pops', [], (function (exports) {
|
|
|
4711
4640
|
<div class="pops-folder-list-table__header-div">
|
|
4712
4641
|
<table class="pops-folder-list-table__header">
|
|
4713
4642
|
<colgroup>
|
|
4714
|
-
<!-- <col width="8%"> --!>
|
|
4715
4643
|
<col width="52%">
|
|
4716
4644
|
<col width="24%">
|
|
4717
4645
|
<col width="16%">
|
|
@@ -4782,7 +4710,6 @@ System.register('pops', [], (function (exports) {
|
|
|
4782
4710
|
<div class="pops-folder-list-table__body-div">
|
|
4783
4711
|
<table class="pops-folder-list-table__body">
|
|
4784
4712
|
<colgroup>
|
|
4785
|
-
<!-- <col width="8%"> --!>
|
|
4786
4713
|
${pops.isPhone()
|
|
4787
4714
|
? `<col width="100%">`
|
|
4788
4715
|
: `
|
|
@@ -4797,9 +4724,7 @@ System.register('pops', [], (function (exports) {
|
|
|
4797
4724
|
</table>
|
|
4798
4725
|
</div>
|
|
4799
4726
|
</div>
|
|
4800
|
-
</div
|
|
4801
|
-
${bottomBtnHTML}
|
|
4802
|
-
`, bottomBtnHTML, zIndex);
|
|
4727
|
+
</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4803
4728
|
/**
|
|
4804
4729
|
* 弹窗的主元素,包括动画层
|
|
4805
4730
|
*/
|
|
@@ -4980,9 +4905,7 @@ System.register('pops', [], (function (exports) {
|
|
|
4980
4905
|
<div class="pops-folder-list-file-name pops-mobile-folder-list-file-name cursor-p">
|
|
4981
4906
|
<img src="${fileIcon}" alt="${fileType}" class="pops-folder-list-file-icon u-file-icon u-file-icon--list">
|
|
4982
4907
|
<div>
|
|
4983
|
-
<a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">
|
|
4984
|
-
${fileName}
|
|
4985
|
-
</a>
|
|
4908
|
+
<a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">${fileName}</a>
|
|
4986
4909
|
<span>${latestTime} ${fileSize}</span>
|
|
4987
4910
|
</div>
|
|
4988
4911
|
</div>
|
|
@@ -6125,9 +6048,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6125
6048
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6126
6049
|
/*html*/ `
|
|
6127
6050
|
<div class="pops-panel-item-left-text">
|
|
6128
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6129
|
-
${leftDescriptionText}
|
|
6130
|
-
</div>
|
|
6051
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6131
6052
|
<div class="pops-panel-switch">
|
|
6132
6053
|
<input class="pops-panel-switch__input" type="checkbox">
|
|
6133
6054
|
<span class="pops-panel-switch__core">
|
|
@@ -6227,9 +6148,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6227
6148
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6228
6149
|
/*html*/ `
|
|
6229
6150
|
<div class="pops-panel-item-left-text">
|
|
6230
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6231
|
-
${leftDescriptionText}
|
|
6232
|
-
</div>
|
|
6151
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6233
6152
|
<div class="pops-panel-slider">
|
|
6234
6153
|
<input type="range" min="${formConfig.min}" max="${formConfig.max}">
|
|
6235
6154
|
</div>
|
|
@@ -6292,9 +6211,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6292
6211
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6293
6212
|
/*html*/ `
|
|
6294
6213
|
<div class="pops-panel-item-left-text" style="flex: 1;">
|
|
6295
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6296
|
-
${leftDescriptionText}
|
|
6297
|
-
</div>
|
|
6214
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6298
6215
|
<div class="pops-slider pops-slider-width">
|
|
6299
6216
|
<div class="pops-slider__runway">
|
|
6300
6217
|
<div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
|
|
@@ -6855,9 +6772,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6855
6772
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6856
6773
|
/*html*/ `
|
|
6857
6774
|
<div class="pops-panel-item-left-text">
|
|
6858
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6859
|
-
${leftDescriptionText}
|
|
6860
|
-
</div>
|
|
6775
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6861
6776
|
<div class="pops-panel-input pops-user-select-none">
|
|
6862
6777
|
<input type="${inputType}" placeholder="${formConfig.placeholder}">
|
|
6863
6778
|
</div>
|
|
@@ -7052,12 +6967,9 @@ System.register('pops', [], (function (exports) {
|
|
|
7052
6967
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7053
6968
|
/*html*/ `
|
|
7054
6969
|
<div class="pops-panel-item-left-text">
|
|
7055
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7056
|
-
${leftDescriptionText}
|
|
7057
|
-
</div>
|
|
6970
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7058
6971
|
<div class="pops-panel-textarea">
|
|
7059
|
-
<textarea placeholder="${formConfig.placeholder ?? ""}">
|
|
7060
|
-
</textarea>
|
|
6972
|
+
<textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
|
|
7061
6973
|
</div>
|
|
7062
6974
|
`);
|
|
7063
6975
|
const PopsPanelTextArea = {
|
|
@@ -7127,9 +7039,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7127
7039
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7128
7040
|
/*html*/ `
|
|
7129
7041
|
<div class="pops-panel-item-left-text">
|
|
7130
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7131
|
-
${leftDescriptionText}
|
|
7132
|
-
</div>
|
|
7042
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7133
7043
|
<div class="pops-panel-select pops-user-select-none">
|
|
7134
7044
|
<select></select>
|
|
7135
7045
|
</div>
|
|
@@ -7323,9 +7233,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7323
7233
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7324
7234
|
/*html*/ `
|
|
7325
7235
|
<div class="pops-panel-item-left-text">
|
|
7326
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7327
|
-
${leftDescriptionText}
|
|
7328
|
-
</div>
|
|
7236
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7329
7237
|
<div class="pops-panel-select-multiple">
|
|
7330
7238
|
<div class="el-select__wrapper">
|
|
7331
7239
|
<div class="el-select__selection">
|
|
@@ -7618,9 +7526,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7618
7526
|
function createSelectItemElement(dataInfo) {
|
|
7619
7527
|
let $item = popsDOMUtils.createElement("li", {
|
|
7620
7528
|
className: "select-item",
|
|
7621
|
-
innerHTML: /*html*/
|
|
7622
|
-
<span>${dataInfo.text}</span>
|
|
7623
|
-
`,
|
|
7529
|
+
innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
|
|
7624
7530
|
});
|
|
7625
7531
|
Reflect.set($item, "data-info", dataInfo);
|
|
7626
7532
|
return $item;
|
|
@@ -7882,9 +7788,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7882
7788
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7883
7789
|
/*html*/ `
|
|
7884
7790
|
<div class="pops-panel-item-left-text">
|
|
7885
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7886
|
-
${leftDescriptionText}
|
|
7887
|
-
</div>
|
|
7791
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7888
7792
|
<div class="pops-panel-button">
|
|
7889
7793
|
<button class="pops-panel-button_inner">
|
|
7890
7794
|
<i class="pops-bottom-icon"></i>
|
|
@@ -8049,13 +7953,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8049
7953
|
PopsSafeUtils.setSafeHTML($li,
|
|
8050
7954
|
/*html*/ `
|
|
8051
7955
|
<div class="pops-panel-item-left-text">
|
|
8052
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
8053
|
-
|
|
8054
|
-
</div>
|
|
8055
|
-
<div class="pops-panel-deepMenu">
|
|
8056
|
-
${rightText}
|
|
8057
|
-
${arrowRightIconHTML}
|
|
8058
|
-
</div>
|
|
7956
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7957
|
+
<div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
|
|
8059
7958
|
`);
|
|
8060
7959
|
const PopsPanelDeepMenu = {
|
|
8061
7960
|
[Symbol.toStringTag]: "PopsPanelDeepMenu",
|
|
@@ -8438,15 +8337,9 @@ System.register('pops', [], (function (exports) {
|
|
|
8438
8337
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
8439
8338
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
8440
8339
|
/*html*/ `
|
|
8441
|
-
<div
|
|
8442
|
-
class="pops-${PopsType}-title"
|
|
8443
|
-
style="text-align: ${config.title.position};
|
|
8444
|
-
${headerStyle}">
|
|
8445
|
-
${config.title.html
|
|
8340
|
+
<div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
8446
8341
|
? config.title.text
|
|
8447
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
8448
|
-
${headerBtnHTML}
|
|
8449
|
-
</div>
|
|
8342
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
8450
8343
|
<div class="pops-${PopsType}-content">
|
|
8451
8344
|
<aside class="pops-${PopsType}-aside">
|
|
8452
8345
|
<ul></ul>
|
|
@@ -8991,7 +8884,8 @@ System.register('pops', [], (function (exports) {
|
|
|
8991
8884
|
/* 判断有无图标,有就添加进去 */
|
|
8992
8885
|
if (typeof item.icon === "string" && item.icon.trim() !== "") {
|
|
8993
8886
|
let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
|
|
8994
|
-
let iconElement = popsUtils.parseTextToDOM(
|
|
8887
|
+
let iconElement = popsUtils.parseTextToDOM(
|
|
8888
|
+
/*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
|
|
8995
8889
|
menuLiElement.appendChild(iconElement);
|
|
8996
8890
|
}
|
|
8997
8891
|
/* 插入文字 */
|
|
@@ -9008,7 +8902,9 @@ System.register('pops', [], (function (exports) {
|
|
|
9008
8902
|
return;
|
|
9009
8903
|
}
|
|
9010
8904
|
function removeElement(element) {
|
|
9011
|
-
element
|
|
8905
|
+
element
|
|
8906
|
+
.querySelectorAll("ul li")
|
|
8907
|
+
.forEach((ele) => {
|
|
9012
8908
|
if (ele?.__menuData__?.child) {
|
|
9013
8909
|
removeElement(ele.__menuData__.child);
|
|
9014
8910
|
}
|
|
@@ -9225,9 +9121,7 @@ System.register('pops', [], (function (exports) {
|
|
|
9225
9121
|
<style data-dynamic="true">
|
|
9226
9122
|
${this.getDynamicCSS()}
|
|
9227
9123
|
</style>
|
|
9228
|
-
<ul class="pops-${PopsType}-search-suggestion-hint">
|
|
9229
|
-
${config.toSearhNotResultHTML}
|
|
9230
|
-
</ul>
|
|
9124
|
+
<ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
|
|
9231
9125
|
`,
|
|
9232
9126
|
}, {
|
|
9233
9127
|
"data-guid": guid,
|
|
@@ -9306,12 +9200,7 @@ System.register('pops', [], (function (exports) {
|
|
|
9306
9200
|
className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
|
|
9307
9201
|
"data-index": index,
|
|
9308
9202
|
"data-value": SearchSuggestion.getItemDataValue(data),
|
|
9309
|
-
innerHTML:
|
|
9310
|
-
${config.getItemHTML(data)}
|
|
9311
|
-
${config.deleteIcon.enable
|
|
9312
|
-
? SearchSuggestion.getDeleteIconHTML()
|
|
9313
|
-
: ""}
|
|
9314
|
-
`,
|
|
9203
|
+
innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
|
|
9315
9204
|
});
|
|
9316
9205
|
},
|
|
9317
9206
|
/**
|
|
@@ -10194,7 +10083,7 @@ System.register('pops', [], (function (exports) {
|
|
|
10194
10083
|
/** 配置 */
|
|
10195
10084
|
config = {
|
|
10196
10085
|
/** 版本号 */
|
|
10197
|
-
version: "2025.
|
|
10086
|
+
version: "2025.5.12",
|
|
10198
10087
|
cssText: {
|
|
10199
10088
|
/** 主CSS */
|
|
10200
10089
|
index: indexCSS,
|