@whitesev/pops 4.2.3 → 4.2.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 +56 -1
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +56 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +56 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +56 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +56 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +56 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/Pops.d.ts +19 -0
- package/dist/types/src/PopsCSS.d.ts +12 -0
- package/dist/types/src/components/tooltip/index.d.ts +18 -0
- package/package.json +14 -14
- package/src/PopsCSS.ts +13 -0
- package/src/components/alert/index.ts +4 -0
- package/src/components/confirm/index.ts +4 -0
- package/src/components/drawer/index.ts +4 -0
- package/src/components/folder/index.ts +4 -0
- package/src/components/iframe/index.ts +4 -0
- package/src/components/loading/index.ts +1 -0
- package/src/components/panel/index.ts +4 -0
- package/src/components/prompt/index.ts +4 -0
- package/src/components/rightClickMenu/index.ts +4 -0
- package/src/components/searchSuggestion/index.ts +4 -0
- package/src/components/tooltip/index.ts +4 -0
- package/src/css/skeleton.css +43 -0
package/dist/index.system.js
CHANGED
|
@@ -3,7 +3,7 @@ System.register('pops', [], (function (exports) {
|
|
|
3
3
|
return {
|
|
4
4
|
execute: (function () {
|
|
5
5
|
|
|
6
|
-
const version = "4.2.
|
|
6
|
+
const version = "4.2.4";
|
|
7
7
|
|
|
8
8
|
const GlobalConfig = {
|
|
9
9
|
config: {},
|
|
@@ -3006,6 +3006,8 @@ System.register('pops', [], (function (exports) {
|
|
|
3006
3006
|
|
|
3007
3007
|
var panelComponents_Select_CSS = ".pops {\n max-height: 300px;\n}\n.select-container {\n --el-font-size-base: 14px;\n --el-text-color-regular: #606266;\n --el-color-primary: #409eff;\n --el-fill-color-light: #f5f7fa;\n --el-disable-color: #a8abb2;\n}\n.select-item {\n cursor: pointer;\n font-size: var(--el-font-size-base);\n padding: 0 20px 0 20px;\n position: relative;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--el-text-color-regular);\n min-height: 34px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n box-sizing: border-box;\n}\n.select-item[aria-disabled],\n.select-item[disabled] {\n cursor: not-allowed;\n color: var(--el-disable-color);\n background: unset;\n}\n.select-item:hover {\n background-color: var(--el-fill-color-light);\n}\n.select-item.select-item-is-selected:has(.pops-panel-input input) {\n background-color: #e7e7e7;\n}\n.select-item.select-item-is-selected {\n color: var(--el-color-primary);\n font-weight: 700;\n}\n.select-item.select-item-is-selected:not(:has(.pops-panel-input))::after {\n content: \"\";\n position: absolute;\n top: 50%;\n right: 12px;\n border-top: none;\n border-right: none;\n background-repeat: no-repeat;\n background-position: center;\n background-color: var(--el-color-primary);\n mask: url(\"data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat;\n mask-size: 100% 100%;\n -webkit-mask: url(\"data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat;\n -webkit-mask-size: 100% 100%;\n transform: translateY(-50%);\n width: 12px;\n height: 12px;\n}\n\n.select-item .pops-panel-input {\n width: 100%;\n margin: 5px 0px;\n}\n.select-item .pops-panel-input:has(.pops-panel-input-valid-error) {\n margin-bottom: 0px;\n}\n\n.select-item .select-item-text {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n@media (prefers-color-scheme: dark) {\n .select-container {\n --el-text-color-regular: #f2f2f2;\n --el-disable-color: #8d9095;\n --el-fill-color-light: #262727;\n }\n}\n";
|
|
3008
3008
|
|
|
3009
|
+
var skeletonCSS = ".pops-skeleton-item {\n --el-skeleton-color: #f0f2f5;\n --el-skeleton-to-color: #e6e8eb;\n width: 100%;\n height: 18px;\n border-radius: 4px;\n background: var(--el-skeleton-color);\n display: inline-block;\n}\n.pops-skeleton-item[data-circle] {\n border-radius: 50%;\n}\n.pops-skeleton-item[data-img] {\n width: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 0px;\n}\n.pops-skeleton-item[data-img] svg {\n color: #dcdfe6;\n fill: currentcolor;\n width: 22%;\n height: 22%;\n}\n.pops-skeleton-item[data-animated] {\n background: linear-gradient(\n 90deg,\n var(--el-skeleton-color) 25%,\n var(--el-skeleton-to-color) 37%,\n var(--el-skeleton-color) 63%\n );\n background-size: 400% 100%;\n animation: pops-el-skeleton-loading 1.4s ease infinite;\n}\n@keyframes pops-el-skeleton-loading {\n 0% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0 50%;\n }\n}\n";
|
|
3010
|
+
|
|
3009
3011
|
const PopsCSS = {
|
|
3010
3012
|
/** 主CSS */
|
|
3011
3013
|
index: indexCSS,
|
|
@@ -3041,6 +3043,18 @@ System.register('pops', [], (function (exports) {
|
|
|
3041
3043
|
rightClickMenu: rightClickMenuCSS,
|
|
3042
3044
|
/** pops.panel的select组件 */
|
|
3043
3045
|
panelComponents_Select: panelComponents_Select_CSS,
|
|
3046
|
+
/**
|
|
3047
|
+
* pops.skeleton
|
|
3048
|
+
*
|
|
3049
|
+
* 需要设置元素className为`pops-skeleton-item`
|
|
3050
|
+
*
|
|
3051
|
+
* 支持以下属性
|
|
3052
|
+
*
|
|
3053
|
+
* + `data-animated`: 加载中的动画
|
|
3054
|
+
* + `data-circle`: 圆形
|
|
3055
|
+
* + `data-img`: 头像图片,需要在它内部添加图片的svg `PopsIcon.getIcon("picture")`
|
|
3056
|
+
*/
|
|
3057
|
+
skeletonCSS: skeletonCSS,
|
|
3044
3058
|
};
|
|
3045
3059
|
|
|
3046
3060
|
const PopsAnimation = {
|
|
@@ -4414,6 +4428,10 @@ System.register('pops', [], (function (exports) {
|
|
|
4414
4428
|
name: "common",
|
|
4415
4429
|
css: PopsCSS.common,
|
|
4416
4430
|
},
|
|
4431
|
+
{
|
|
4432
|
+
name: "skeleton",
|
|
4433
|
+
css: PopsCSS.skeletonCSS,
|
|
4434
|
+
},
|
|
4417
4435
|
{
|
|
4418
4436
|
name: "alertCSS",
|
|
4419
4437
|
css: PopsCSS.alertCSS,
|
|
@@ -4622,6 +4640,10 @@ System.register('pops', [], (function (exports) {
|
|
|
4622
4640
|
name: "common",
|
|
4623
4641
|
css: PopsCSS.common,
|
|
4624
4642
|
},
|
|
4643
|
+
{
|
|
4644
|
+
name: "skeleton",
|
|
4645
|
+
css: PopsCSS.skeletonCSS,
|
|
4646
|
+
},
|
|
4625
4647
|
{
|
|
4626
4648
|
name: "confirmCSS",
|
|
4627
4649
|
css: PopsCSS.confirmCSS,
|
|
@@ -4830,6 +4852,10 @@ System.register('pops', [], (function (exports) {
|
|
|
4830
4852
|
name: "common",
|
|
4831
4853
|
css: PopsCSS.common,
|
|
4832
4854
|
},
|
|
4855
|
+
{
|
|
4856
|
+
name: "skeleton",
|
|
4857
|
+
css: PopsCSS.skeletonCSS,
|
|
4858
|
+
},
|
|
4833
4859
|
{
|
|
4834
4860
|
name: "drawerCSS",
|
|
4835
4861
|
css: PopsCSS.drawerCSS,
|
|
@@ -5039,6 +5065,7 @@ System.register('pops', [], (function (exports) {
|
|
|
5039
5065
|
<style data-model-name="index">${PopsCSS.index}</style>
|
|
5040
5066
|
<style data-model-name="anim">${PopsCSS.anim}</style>
|
|
5041
5067
|
<style data-model-name="common">${PopsCSS.common}</style>
|
|
5068
|
+
<style data-model-name="skeleton">${PopsCSS.skeletonCSS}</style>
|
|
5042
5069
|
`
|
|
5043
5070
|
: ""}
|
|
5044
5071
|
<style data-model-name="loadingCSS">
|
|
@@ -5315,6 +5342,10 @@ System.register('pops', [], (function (exports) {
|
|
|
5315
5342
|
name: "common",
|
|
5316
5343
|
css: PopsCSS.common,
|
|
5317
5344
|
},
|
|
5345
|
+
{
|
|
5346
|
+
name: "skeleton",
|
|
5347
|
+
css: PopsCSS.skeletonCSS,
|
|
5348
|
+
},
|
|
5318
5349
|
{
|
|
5319
5350
|
name: "folderCSS",
|
|
5320
5351
|
css: PopsCSS.folderCSS,
|
|
@@ -6252,6 +6283,10 @@ System.register('pops', [], (function (exports) {
|
|
|
6252
6283
|
name: "common",
|
|
6253
6284
|
css: PopsCSS.common,
|
|
6254
6285
|
},
|
|
6286
|
+
{
|
|
6287
|
+
name: "skeleton",
|
|
6288
|
+
css: PopsCSS.skeletonCSS,
|
|
6289
|
+
},
|
|
6255
6290
|
{
|
|
6256
6291
|
name: "iframeCSS",
|
|
6257
6292
|
css: PopsCSS.iframeCSS,
|
|
@@ -7951,6 +7986,10 @@ System.register('pops', [], (function (exports) {
|
|
|
7951
7986
|
name: "common",
|
|
7952
7987
|
css: PopsCSS.common,
|
|
7953
7988
|
},
|
|
7989
|
+
{
|
|
7990
|
+
name: "skeleton",
|
|
7991
|
+
css: PopsCSS.skeletonCSS,
|
|
7992
|
+
},
|
|
7954
7993
|
{
|
|
7955
7994
|
name: "tooltipCSS",
|
|
7956
7995
|
css: PopsCSS.tooltipCSS,
|
|
@@ -11833,6 +11872,10 @@ System.register('pops', [], (function (exports) {
|
|
|
11833
11872
|
name: "common",
|
|
11834
11873
|
css: PopsCSS.common,
|
|
11835
11874
|
},
|
|
11875
|
+
{
|
|
11876
|
+
name: "skeleton",
|
|
11877
|
+
css: PopsCSS.skeletonCSS,
|
|
11878
|
+
},
|
|
11836
11879
|
{
|
|
11837
11880
|
name: "panelCSS",
|
|
11838
11881
|
css: PopsCSS.panelCSS,
|
|
@@ -12097,6 +12140,10 @@ System.register('pops', [], (function (exports) {
|
|
|
12097
12140
|
name: "common",
|
|
12098
12141
|
css: PopsCSS.common,
|
|
12099
12142
|
},
|
|
12143
|
+
{
|
|
12144
|
+
name: "skeleton",
|
|
12145
|
+
css: PopsCSS.skeletonCSS,
|
|
12146
|
+
},
|
|
12100
12147
|
{
|
|
12101
12148
|
name: "promptCSS",
|
|
12102
12149
|
css: PopsCSS.promptCSS,
|
|
@@ -12322,6 +12369,10 @@ System.register('pops', [], (function (exports) {
|
|
|
12322
12369
|
name: "common",
|
|
12323
12370
|
css: PopsCSS.common,
|
|
12324
12371
|
},
|
|
12372
|
+
{
|
|
12373
|
+
name: "skeleton",
|
|
12374
|
+
css: PopsCSS.skeletonCSS,
|
|
12375
|
+
},
|
|
12325
12376
|
{
|
|
12326
12377
|
name: "rightClickMenu",
|
|
12327
12378
|
css: PopsCSS.rightClickMenu,
|
|
@@ -12960,6 +13011,10 @@ System.register('pops', [], (function (exports) {
|
|
|
12960
13011
|
name: "common",
|
|
12961
13012
|
css: PopsCSS.common,
|
|
12962
13013
|
},
|
|
13014
|
+
{
|
|
13015
|
+
name: "skeleton",
|
|
13016
|
+
css: PopsCSS.skeletonCSS,
|
|
13017
|
+
},
|
|
12963
13018
|
]);
|
|
12964
13019
|
// 添加自定义style
|
|
12965
13020
|
PopsElementHandler.addStyle($shadowRoot, config.style);
|