web-win-vue 0.4.2 → 0.4.3
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/package.json +1 -1
- package/web-win-vue.css +1 -1
- package/web-win-vue.mjs +233 -208
- package/web-win-vue.umd.js +13 -11
package/package.json
CHANGED
package/web-win-vue.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
button[data-v-85a8a3fa]{vertical-align:middle;line-height:16.67px;min-height:16.67px;padding:10px 20px;background:var(--primary-color, #CCCCCC);color:#000;border:none;cursor:default;font-size:16px;filter:blur(0px);transition:filter .3s ease;transform:scale(1);transition:transform .3s ease}button[data-v-85a8a3fa]:active{cursor:default;transition:opacity .3s ease;transform:scale(.97);filter:blur(.5px);outline:0px solid #999999;background:var(--primary-color, #999999)}button[data-v-85a8a3fa]:hover{cursor:default;outline:2.75px solid #999999;outline-offset:-2.75px}button[data-v-85a8a3fa]:disabled{transition:opacity 0s ease;transform:scale(1);filter:blur(0);outline:0px solid #7A7A7A;color:#919191;background:#ccc;cursor:not-allowed}.uwpinput{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px}.uwpinput:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwpinput:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.uwpinput{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.side-bar[data-v-cbab5da9]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px)}.side-bar li[data-v-cbab5da9]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.side-bar li[data-v-cbab5da9]:hover{background:var(--sb-hover-bg, #cecece)}.indicator[data-v-cbab5da9]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.side-bar li.active .indicator[data-v-cbab5da9]{transform:scaleY(1)}.icon[data-v-cbab5da9]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #333);flex-shrink:0}.label[data-v-cbab5da9]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.side-bar[data-v-cbab5da9]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px);background:var(--sb-hover-bg, #1b1b1b)}.side-bar li[data-v-cbab5da9]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.side-bar li[data-v-cbab5da9]:hover{background:var(--sb-hover-bg, #252525)}.indicator[data-v-cbab5da9]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.side-bar li.active .indicator[data-v-cbab5da9]{transform:scaleY(1)}.icon[data-v-cbab5da9]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #ffffff);flex-shrink:0}.label[data-v-cbab5da9]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.title[data-v-cbab5da9]{color:#fff}}.tile[data-v-9ae9ef89]{--tile-color: #0078d7;--glow-color: rgba(255, 255, 255, .459);--glow-radius: 20px;position:relative;background-color:var(--tile-color);color:#fff;overflow:hidden;transition:all .25s cubic-bezier(.78,.12,0,1.01)}.tile.small[data-v-9ae9ef89]{width:70px;height:70px}.tile.medium[data-v-9ae9ef89]{width:150px;height:150px}.tile.wide[data-v-9ae9ef89]{width:310px;height:150px}.tile.large[data-v-9ae9ef89]{width:310px;height:310px}.tile-content[data-v-9ae9ef89]{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px}.tile-icon[data-v-9ae9ef89]{font-size:24px;margin-bottom:8px}.tile-title[data-v-9ae9ef89]{-webkit-user-select:none;user-select:none;font-size:12px;font-weight:700;position:absolute;bottom:26px;left:8px}.glow-border[data-v-9ae9ef89]{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(circle at var(--x) var(--y),var(--glow-color) 0%,transparent var(--glow-radius));-webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;padding:4px;transition:opacity .2s ease}.pointer-glow[data-v-9ae9ef89]{position:absolute;top:calc(var(--y) - 50px);left:calc(var(--x) - 50px);width:100px;height:100px;border-radius:60%;background:radial-gradient(circle,var(--glow-color) 0%,transparent 70%);pointer-events:none;z-index:1;transition:opacity .3s ease}.tile[data-v-9ae9ef89]:active{transform:scale(.9)}.item-1{display:inline-block;background-color:#e6e6e6}iframe{border:none;display:inline-block;width:100%;height:100%;background-color:#fff}.iframe-container{width:calc(100% - 380px);height:100%;position:relative;display:inline-block}.container{display:flex;height:calc(100% - .9px);background-color:#fff}.fade-enter-active{transition:all .35s ease}.fade-enter-from{opacity:0;transform:translateY(150px)}iframe::-webkit-scrollbar{width:4px;height:16px;background-color:#e6e6e6}iframe::-webkit-scrollbar-track{border-radius:0;background-color:#fff0}iframe::-webkit-scrollbar-thumb{border-radius:0;background-color:#818181}.uwppassword{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px}.uwppassword:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwppassword:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.uwppassword{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.uwprichrditbox{resize:none;vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;font-size:18px;height:auto;cursor:text;padding:9.5px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px;vertical-align:top;white-space:pre-wrap}.uwprichrditbox:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwprichrditbox:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}.uwprichrditbox[data-placeholder]:empty:before{content:attr(data-placeholder);color:#666}@media (prefers-color-scheme: dark){.uwprichrditbox{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.Notification{border:rgba(163,163,163,0) 4px solid;-webkit-user-select:none;user-select:none;position:fixed;bottom:45px;right:12px;width:400px;height:150px;background-color:#141414f2;transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-enter-active{transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-leave-active{transition:all .55s cubic-bezier(.6,0,0,1)}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(480px)}.n-text{color:#fff;margin-left:16px}.n-title{margin-top:-2.5px}.n-vulua{margin-left:16px;color:#a3a3a3;margin-top:-18px}.Notification:hover{border:#5f5f5f 4px solid}.Notification:active{transform:scale(.925)}.n-name{color:#fff}.ww-checkbox[type=checkbox][data-v-c289ea76]{position:absolute;opacity:0}.ww-checkbox-label[data-v-c289ea76]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none}.ww-checkbox-label[data-v-c289ea76]{display:flex;align-items:center}.ww-checkbox[type=checkbox]:checked+.ww-checkbox-label[data-v-c289ea76]:before{background-color:#0077d7;border-color:#0077d7;content:"√";color:#fff;line-height:1.25em;font-size:1.1em;text-align:center}.ww-checkbox-label[data-v-c289ea76]:hover:before,.ww-checkbox[type=checkbox]:focus+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#0077d7}.ww-checkbox[type=checkbox]:not(:checked):hover+.ww-checkbox-label[data-v-c289ea76]:before,.ww-checkbox[type=checkbox]:not(:checked):focus+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#0077d7}.ww-checkbox[type=checkbox]:checked:hover+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#000}.ww-radio[type=radio][data-v-78978c8c]{position:absolute;opacity:0}.ww-radio-label[data-v-78978c8c]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none;border-radius:50px}.ww-radio-label[data-v-78978c8c]{display:flex;align-items:center}.ww-radio[type=radio]:checked+.ww-radio-label[data-v-78978c8c]:before{background-color:#0077d7;border-color:#0077d7;color:#fff;box-shadow:inset 0 0 0 2px #fff;line-height:1.25em;font-size:1.1em;text-align:center}.ww-radio-label[data-v-78978c8c]:hover:before,.ww-radio[type=radio]:focus+.ww-radio-label[data-v-78978c8c]:before{border-color:#0077d7}.ww-radio[type=radio]:not(:checked):hover+.ww-radio-label[data-v-78978c8c]:before,.ww-radio[type=radio]:not(:checked):focus+.ww-radio-label[data-v-78978c8c]:before{border-color:#0077d7}.ww-radio[type=radio]:checked:hover+.ww-radio-label[data-v-78978c8c]:before{border-color:#000}.list-box-button[data-v-5fe19256]{z-index:999;-webkit-user-select:none;user-select:none;resize:none;vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;height:17px;font-size:18px;cursor:default;padding:9px 15px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px;vertical-align:top;white-space:pre-wrap;position:relative}.list-box[data-v-5fe19256]{z-index:1;transform-origin:0 var(--4c8120fa);-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 330px);font-size:var(--sb-fs, 14px);background-color:#ebebebe5;position:absolute;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);box-shadow:0 0 30px #00000080;top:var(--1ae8acfb)}.list-box li[data-v-5fe19256]{height:15px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:all .15s cubic-bezier(.05,-.01,0,1)}.list-box li[data-v-5fe19256]:active{transform:scale(.975)}.list-box li.active[data-v-5fe19256]{background:var(--sb-hover-bg, #6db9f3)}.list-box-button.active[data-v-5fe19256]{background:var(--sb-hover-bg, #6db9f3);outline:2.75px solid #6db9f3}.list-box li[data-v-5fe19256]:hover{background:var(--sb-hover-bg, #cecece)}.list-box li.active[data-v-5fe19256]:hover{background:var(--sb-hover-bg, #6db9f3)}.icon[data-v-5fe19256]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #333);flex-shrink:0}.label[data-v-5fe19256]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.list-box[data-v-5fe19256]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px);background:var(--sb-hover-bg, #1b1b1b)}.list-box li[data-v-5fe19256]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.list-box li[data-v-5fe19256]:hover{background:var(--sb-hover-bg, #252525)}.icon[data-v-5fe19256]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #ffffff);flex-shrink:0}.label[data-v-5fe19256]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.title[data-v-5fe19256]{color:#fff}}.v-enter-active[data-v-5fe19256]{box-shadow:0 0 30px #00000080;transition:all .15s cubic-bezier(.05,-.01,0,1)}.v-leave-active[data-v-5fe19256]{box-shadow:0 0 30px #0000;transition:all 75ms cubic-bezier(.05,-.01,0,1)}.v-enter-from[data-v-5fe19256],.v-leave-to[data-v-5fe19256]{transform:scaleY(0)}
|
|
1
|
+
button[data-v-85a8a3fa]{vertical-align:middle;line-height:16.67px;min-height:16.67px;padding:10px 20px;background:var(--primary-color, #CCCCCC);color:#000;border:none;cursor:default;font-size:16px;filter:blur(0px);transition:filter .3s ease;transform:scale(1);transition:transform .3s ease}button[data-v-85a8a3fa]:active{cursor:default;transition:opacity .3s ease;transform:scale(.97);filter:blur(.5px);outline:0px solid #999999;background:var(--primary-color, #999999)}button[data-v-85a8a3fa]:hover{cursor:default;outline:2.75px solid #999999;outline-offset:-2.75px}button[data-v-85a8a3fa]:disabled{transition:opacity 0s ease;transform:scale(1);filter:blur(0);outline:0px solid #7A7A7A;color:#919191;background:#ccc;cursor:not-allowed}.uwpinput{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px}.uwpinput:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwpinput:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.uwpinput{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.side-bar[data-v-d26944f3]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:380px;font-size:var(--sb-fs, 14px);transition:width .15s cubic-bezier(0,.5,0,1);overflow:hidden}.side-bar.folded[data-v-d26944f3]{width:50px;overflow-x:hidden}.title.folded[data-v-d26944f3]{opacity:0}.title[data-v-d26944f3]{transition:all .1s ease}.side-bar li[data-v-d26944f3]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px)}.side-bar li[data-v-d26944f3]:hover{background:var(--sb-hover-bg, #cecece)}.label.folded[data-v-d26944f3]{opacity:0}.indicator[data-v-d26944f3]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.side-bar li.active .indicator[data-v-d26944f3]{transform:scaleY(1)}.icon[data-v-d26944f3]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #333);flex-shrink:0}.label[data-v-d26944f3]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.side-bar[data-v-d26944f3]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px);background:var(--sb-hover-bg, #1b1b1b)}.side-bar li[data-v-d26944f3]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.side-bar li[data-v-d26944f3]:hover{background:var(--sb-hover-bg, #252525)}.indicator[data-v-d26944f3]{position:absolute;left:0;top:50%;margin-top:-12.5px;bottom:0;width:var(--sb-indicator-width, 3px);background:var(--sb-indicator-color, #006fd0);transform:scaleY(0);height:26px;line-height:100px;width:4px}.side-bar li.active .indicator[data-v-d26944f3]{transform:scaleY(1)}.icon[data-v-d26944f3]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #ffffff);flex-shrink:0}.label[data-v-d26944f3]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.title[data-v-d26944f3]{color:#fff}}.tile[data-v-9ae9ef89]{--tile-color: #0078d7;--glow-color: rgba(255, 255, 255, .459);--glow-radius: 20px;position:relative;background-color:var(--tile-color);color:#fff;overflow:hidden;transition:all .25s cubic-bezier(.78,.12,0,1.01)}.tile.small[data-v-9ae9ef89]{width:70px;height:70px}.tile.medium[data-v-9ae9ef89]{width:150px;height:150px}.tile.wide[data-v-9ae9ef89]{width:310px;height:150px}.tile.large[data-v-9ae9ef89]{width:310px;height:310px}.tile-content[data-v-9ae9ef89]{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px}.tile-icon[data-v-9ae9ef89]{font-size:24px;margin-bottom:8px}.tile-title[data-v-9ae9ef89]{-webkit-user-select:none;user-select:none;font-size:12px;font-weight:700;position:absolute;bottom:26px;left:8px}.glow-border[data-v-9ae9ef89]{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(circle at var(--x) var(--y),var(--glow-color) 0%,transparent var(--glow-radius));-webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;padding:4px;transition:opacity .2s ease}.pointer-glow[data-v-9ae9ef89]{position:absolute;top:calc(var(--y) - 50px);left:calc(var(--x) - 50px);width:100px;height:100px;border-radius:60%;background:radial-gradient(circle,var(--glow-color) 0%,transparent 70%);pointer-events:none;z-index:1;transition:opacity .3s ease}.tile[data-v-9ae9ef89]:active{transform:scale(.9)}.item-1{display:inline-block;background-color:#e6e6e6}iframe{border:none;display:inline-block;width:100%;height:100%;background-color:#fff}.iframe-container{width:calc(100% - 380px);height:100%;position:relative;display:inline-block}.container{display:flex;height:calc(100% - .9px);background-color:#fff}.fade-enter-active{transition:all .35s ease}.fade-enter-from{opacity:0;transform:translateY(150px)}iframe::-webkit-scrollbar{width:4px;height:16px;background-color:#e6e6e6}iframe::-webkit-scrollbar-track{border-radius:0;background-color:#fff0}iframe::-webkit-scrollbar-thumb{border-radius:0;background-color:#818181}.uwppassword{vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;height:18px;padding:10px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px}.uwppassword:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwppassword:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}@media (prefers-color-scheme: dark){.uwppassword{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.uwprichrditbox{resize:none;vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;line-height:18px;font-size:18px;height:auto;cursor:text;padding:9.5px 14px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px;vertical-align:top;white-space:pre-wrap}.uwprichrditbox:focus{outline:2.75px solid #0078D4;outline-offset:-2.75px}.uwprichrditbox:disabled{background-color:#ccc;outline:2.75px solid #CCCCCC;cursor:not-allowed;color:#7a7a7a}.uwprichrditbox[data-placeholder]:empty:before{content:attr(data-placeholder);color:#666}@media (prefers-color-scheme: dark){.uwprichrditbox{color:#919191;background:var(--primary-color, rgb(0, 0, 0))}}.Notification{border:rgba(163,163,163,0) 4px solid;-webkit-user-select:none;user-select:none;position:fixed;bottom:45px;right:12px;width:400px;height:150px;background-color:#141414f2;transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-enter-active{transition:all .4s cubic-bezier(0,.6,0,1)}.slide-fade-leave-active{transition:all .55s cubic-bezier(.6,0,0,1)}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(480px)}.n-text{color:#fff;margin-left:16px}.n-title{margin-top:-2.5px}.n-vulua{margin-left:16px;color:#a3a3a3;margin-top:-18px}.Notification:hover{border:#5f5f5f 4px solid}.Notification:active{transform:scale(.925)}.n-name{color:#fff}.ww-checkbox[type=checkbox][data-v-c289ea76]{position:absolute;opacity:0}.ww-checkbox-label[data-v-c289ea76]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none}.ww-checkbox-label[data-v-c289ea76]{display:flex;align-items:center}.ww-checkbox[type=checkbox]:checked+.ww-checkbox-label[data-v-c289ea76]:before{background-color:#0077d7;border-color:#0077d7;content:"√";color:#fff;line-height:1.25em;font-size:1.1em;text-align:center}.ww-checkbox-label[data-v-c289ea76]:hover:before,.ww-checkbox[type=checkbox]:focus+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#0077d7}.ww-checkbox[type=checkbox]:not(:checked):hover+.ww-checkbox-label[data-v-c289ea76]:before,.ww-checkbox[type=checkbox]:not(:checked):focus+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#0077d7}.ww-checkbox[type=checkbox]:checked:hover+.ww-checkbox-label[data-v-c289ea76]:before{border-color:#000}.ww-radio[type=radio][data-v-78978c8c]{position:absolute;opacity:0}.ww-radio-label[data-v-78978c8c]:before{--length: 1.1em;content:"";display:inline-block;width:var(--length);height:var(--length);font-size:1.1em;border:2.5px solid black;margin-right:6px;-webkit-user-select:none;user-select:none;border-radius:50px}.ww-radio-label[data-v-78978c8c]{display:flex;align-items:center}.ww-radio[type=radio]:checked+.ww-radio-label[data-v-78978c8c]:before{background-color:#0077d7;border-color:#0077d7;color:#fff;box-shadow:inset 0 0 0 2px #fff;line-height:1.25em;font-size:1.1em;text-align:center}.ww-radio-label[data-v-78978c8c]:hover:before,.ww-radio[type=radio]:focus+.ww-radio-label[data-v-78978c8c]:before{border-color:#0077d7}.ww-radio[type=radio]:not(:checked):hover+.ww-radio-label[data-v-78978c8c]:before,.ww-radio[type=radio]:not(:checked):focus+.ww-radio-label[data-v-78978c8c]:before{border-color:#0077d7}.ww-radio[type=radio]:checked:hover+.ww-radio-label[data-v-78978c8c]:before{border-color:#000}.list-box-button[data-v-5fe19256]{z-index:999;-webkit-user-select:none;user-select:none;resize:none;vertical-align:middle;display:inline-block;min-width:300px;outline:2.75px solid #999999;outline-offset:-2.75px;height:17px;font-size:18px;cursor:default;padding:9px 15px;background:var(--primary-color, rgb(255, 255, 255));color:#000;border:none;font-size:16px;vertical-align:top;white-space:pre-wrap;position:relative}.list-box[data-v-5fe19256]{z-index:1;transform-origin:0 var(--4c8120fa);-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 330px);font-size:var(--sb-fs, 14px);background-color:#ebebebe5;position:absolute;-webkit-backdrop-filter:blur(12.5px);backdrop-filter:blur(12.5px);box-shadow:0 0 30px #00000080;top:var(--1ae8acfb)}.list-box li[data-v-5fe19256]{height:15px;position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:all .15s cubic-bezier(.05,-.01,0,1)}.list-box li[data-v-5fe19256]:active{transform:scale(.975)}.list-box li.active[data-v-5fe19256]{background:var(--sb-hover-bg, #6db9f3)}.list-box-button.active[data-v-5fe19256]{background:var(--sb-hover-bg, #6db9f3);outline:2.75px solid #6db9f3}.list-box li[data-v-5fe19256]:hover{background:var(--sb-hover-bg, #cecece)}.list-box li.active[data-v-5fe19256]:hover{background:var(--sb-hover-bg, #6db9f3)}.icon[data-v-5fe19256]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #333);flex-shrink:0}.label[data-v-5fe19256]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.list-box[data-v-5fe19256]{-webkit-user-select:none;user-select:none;list-style:none;margin:0;padding:0;width:var(--sb-width, 380px);font-size:var(--sb-fs, 14px);background:var(--sb-hover-bg, #1b1b1b)}.list-box li[data-v-5fe19256]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.list-box li[data-v-5fe19256]:hover{background:var(--sb-hover-bg, #252525)}.icon[data-v-5fe19256]{width:var(--sb-icon-size, 20px);height:var(--sb-icon-size, 38px);margin-right:var(--sb-icon-mr, 12px);color:var(--sb-icon-color, #ffffff);flex-shrink:0}.label[data-v-5fe19256]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.title[data-v-5fe19256]{color:#fff}}.v-enter-active[data-v-5fe19256]{box-shadow:0 0 30px #00000080;transition:all .15s cubic-bezier(.05,-.01,0,1)}.v-leave-active[data-v-5fe19256]{box-shadow:0 0 30px #0000;transition:all 75ms cubic-bezier(.05,-.01,0,1)}.v-enter-from[data-v-5fe19256],.v-leave-to[data-v-5fe19256]{transform:scaleY(0)}.progress-bar[data-v-d1bcd074]{width:100%;height:5px;background-color:#e0e0e0}.progress[data-v-d1bcd074]{background-color:#006fd0;height:5px;transition:width .3s ease}
|
package/web-win-vue.mjs
CHANGED
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { createElementBlock as u, openBlock as r, renderSlot as C, defineComponent as x, ref as c, normalizeClass as h, unref as m, createElementVNode as i, toDisplayString as w, Fragment as k, renderList as R, normalizeStyle as y, watch as P, createVNode as S, Transition as L, withCtx as M, createCommentVNode as B, withDirectives as $, vShow as N, onMounted as Z, nextTick as j, createBlock as J, vModelCheckbox as K, vModelRadio as Q, useCssVars as A } from "vue";
|
|
2
|
+
const g = (e, t) => {
|
|
3
|
+
const n = e.__vccOpts || e;
|
|
4
|
+
for (const [s, l] of t)
|
|
5
|
+
n[s] = l;
|
|
6
|
+
return n;
|
|
7
|
+
}, ee = {
|
|
8
8
|
__name: "webwin-button",
|
|
9
9
|
setup(e) {
|
|
10
10
|
return console.log("%c✨Welcome to Web-Win-Vue-Button✨", `
|
|
11
11
|
color: #0078d7;
|
|
12
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
13
|
-
C(
|
|
12
|
+
text-shadow: 0 1px 0 #0078d7;`), (t, n) => (r(), u("button", null, [
|
|
13
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
14
14
|
]));
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, T = /* @__PURE__ */ g(ee, [["__scopeId", "data-v-85a8a3fa"]]), te = ["value", "placeholder"], X = /* @__PURE__ */ x({
|
|
17
17
|
__name: "webwin-inputbox",
|
|
18
18
|
props: { value: String, placeholder: String },
|
|
19
19
|
setup(e) {
|
|
20
20
|
console.log("%c✨Welcome to Web-Win-Vue-InputBox✨", `
|
|
21
21
|
color: #0078d7;
|
|
22
22
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
23
|
-
const
|
|
24
|
-
return (
|
|
23
|
+
const t = e, n = c(t.value), s = c(t.placeholder);
|
|
24
|
+
return (l, o) => (r(), u("input", {
|
|
25
25
|
type: "text",
|
|
26
26
|
name: "fname",
|
|
27
27
|
class: "uwpinput",
|
|
28
|
-
value:
|
|
29
|
-
placeholder:
|
|
30
|
-
onChange:
|
|
31
|
-
}, null, 40,
|
|
28
|
+
value: n.value,
|
|
29
|
+
placeholder: s.value,
|
|
30
|
+
onChange: o[0] || (o[0] = (a) => l.$emit("@change", a))
|
|
31
|
+
}, null, 40, te));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
style: { "margin-top": "26px", "margin-bottom": "26px", "margin-left": "18px" },
|
|
35
|
-
class: "title"
|
|
36
|
-
}, le = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, se = ["onClick"], ae = {
|
|
33
|
+
}), oe = { style: { overflow: "auto", height: "calc( 100% - 240px )", "overflow-x": "hidden" } }, ne = ["onClick"], le = {
|
|
37
34
|
class: "icon",
|
|
38
35
|
viewBox: "0 0 24 24",
|
|
39
36
|
fill: "currentColor",
|
|
40
37
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
38
|
+
}, se = ["d"], ae = {
|
|
42
39
|
__name: "webwin-item",
|
|
43
40
|
props: {
|
|
44
41
|
items: { type: Array, required: !0 },
|
|
@@ -47,55 +44,67 @@ const _ = (e, o) => {
|
|
|
47
44
|
},
|
|
48
45
|
emits: ["update:modelValue"],
|
|
49
46
|
setup(e) {
|
|
50
|
-
|
|
47
|
+
console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
51
48
|
color: #0078d7;
|
|
52
|
-
text-shadow: 0 1px 0 #0078d7;`)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
text-shadow: 0 1px 0 #0078d7;`);
|
|
50
|
+
let t = c("");
|
|
51
|
+
function n() {
|
|
52
|
+
t.value === "" ? t.value = "folded" : t.value = "";
|
|
53
|
+
}
|
|
54
|
+
return (s, l) => (r(), u("ul", {
|
|
55
|
+
class: h(["side-bar", m(t)])
|
|
56
|
+
}, [
|
|
57
|
+
i("div", null, [
|
|
58
|
+
i("li", {
|
|
59
|
+
style: { "margin-top": "24px" },
|
|
60
|
+
onClick: n
|
|
61
|
+
}, [
|
|
62
|
+
l[0] || (l[0] = i("svg", {
|
|
56
63
|
class: "icon",
|
|
57
64
|
viewBox: "0 0 24 24",
|
|
58
65
|
fill: "currentColor",
|
|
59
66
|
"aria-hidden": "true"
|
|
60
67
|
}, [
|
|
61
|
-
|
|
68
|
+
i("path", {
|
|
62
69
|
xmlns: "http://www.w3.org/2000/svg",
|
|
63
70
|
style: { stroke: "none", "fill-rule": "nonzero", fill: "rgb(0%,0%,0%)", "fill-opacity": "1" },
|
|
64
71
|
d: "M 0.863281 14.628906 L 2.898438 14.628906 L 2.898438 22.773438 C 2.898438 23.253906 3.292969 23.648438 3.773438 23.648438 L 9.734375 23.648438 C 10.214844 23.648438 10.609375 23.253906 10.609375 22.773438 L 10.609375 16.8125 L 14.246094 16.8125 L 14.246094 22.773438 C 14.246094 23.253906 14.636719 23.648438 15.117188 23.648438 L 20.789062 23.648438 C 21.269531 23.648438 21.664062 23.253906 21.664062 22.773438 L 21.664062 14.628906 L 24.136719 14.628906 C 24.484375 14.628906 24.804688 14.410156 24.9375 14.089844 C 25.066406 13.769531 24.992188 13.394531 24.746094 13.144531 L 13.371094 1.609375 C 13.039062 1.277344 12.484375 1.261719 12.152344 1.597656 L 0.265625 13.132812 C 0.00390625 13.378906 -0.0664062 13.757812 0.0625 14.089844 C 0.195312 14.425781 0.515625 14.628906 0.863281 14.628906 Z M 12.734375 3.457031 L 22.042969 12.882812 L 20.789062 12.882812 C 20.308594 12.882812 19.917969 13.277344 19.917969 13.757812 L 19.917969 21.902344 L 15.992188 21.902344 L 15.992188 15.9375 C 15.992188 15.457031 15.597656 15.066406 15.117188 15.066406 L 9.734375 15.066406 C 9.257812 15.066406 8.863281 15.457031 8.863281 15.9375 L 8.863281 21.902344 L 4.644531 21.902344 L 4.644531 13.757812 C 4.644531 13.277344 4.253906 12.882812 3.773438 12.882812 L 3.015625 12.882812 Z M 12.734375 3.457031 "
|
|
65
72
|
})
|
|
66
|
-
]),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
b(I, {
|
|
71
|
-
placeholder: "查找",
|
|
72
|
-
style: { "margin-top": "6px", width: "320px" }
|
|
73
|
-
})
|
|
73
|
+
], -1)),
|
|
74
|
+
i("span", {
|
|
75
|
+
class: h(["label", m(t)])
|
|
76
|
+
}, "折叠", 2)
|
|
74
77
|
]),
|
|
75
|
-
|
|
78
|
+
l[1] || (l[1] = i("div", { style: { width: "var(--sb-width, 350px)", margin: "auto" } }, null, -1)),
|
|
79
|
+
i("h3", {
|
|
80
|
+
style: { "margin-top": "26px", "margin-bottom": "26px", "margin-left": "18px" },
|
|
81
|
+
class: h(["title", m(t)])
|
|
82
|
+
}, w(e.title), 3)
|
|
76
83
|
]),
|
|
77
|
-
|
|
78
|
-
(
|
|
79
|
-
key:
|
|
80
|
-
class:
|
|
81
|
-
onClick: (
|
|
84
|
+
i("div", oe, [
|
|
85
|
+
(r(!0), u(k, null, R(e.items, (o, a) => (r(), u("li", {
|
|
86
|
+
key: a,
|
|
87
|
+
class: h({ active: a === e.modelValue }),
|
|
88
|
+
onClick: (v) => s.$emit("update:modelValue", a)
|
|
82
89
|
}, [
|
|
83
|
-
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
d:
|
|
87
|
-
}, null, 8,
|
|
90
|
+
l[2] || (l[2] = i("span", { class: "indicator" }, null, -1)),
|
|
91
|
+
(r(), u("svg", le, [
|
|
92
|
+
i("path", {
|
|
93
|
+
d: o.icon
|
|
94
|
+
}, null, 8, se)
|
|
88
95
|
])),
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
i("span", {
|
|
97
|
+
class: h(["label", m(t)])
|
|
98
|
+
}, w(o.name), 3)
|
|
99
|
+
], 10, ne))), 128))
|
|
91
100
|
])
|
|
92
|
-
]));
|
|
101
|
+
], 2));
|
|
93
102
|
}
|
|
94
|
-
},
|
|
103
|
+
}, I = /* @__PURE__ */ g(ae, [["__scopeId", "data-v-d26944f3"]]);
|
|
95
104
|
console.log("%c✨Welcome to Web-Win-Vue-Tile✨", `
|
|
96
105
|
color: #0078d7;
|
|
97
106
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
98
|
-
const
|
|
107
|
+
const ie = {
|
|
99
108
|
props: {
|
|
100
109
|
size: { default: "medium" },
|
|
101
110
|
color: { default: "#0078d7" },
|
|
@@ -137,92 +146,92 @@ const re = {
|
|
|
137
146
|
},
|
|
138
147
|
methods: {
|
|
139
148
|
handleMouseMove(e) {
|
|
140
|
-
const
|
|
141
|
-
this.mouseX = e.clientX -
|
|
142
|
-
const
|
|
149
|
+
const t = e.currentTarget.getBoundingClientRect();
|
|
150
|
+
this.mouseX = e.clientX - t.left, this.mouseY = e.clientY - t.top;
|
|
151
|
+
const n = Math.min(
|
|
143
152
|
this.mouseX,
|
|
144
|
-
|
|
153
|
+
t.width - this.mouseX,
|
|
145
154
|
this.mouseY,
|
|
146
|
-
|
|
147
|
-
),
|
|
148
|
-
this.glowOpacity = Math.max(0, (
|
|
155
|
+
t.height - this.mouseY
|
|
156
|
+
), s = this.glowRadius;
|
|
157
|
+
this.glowOpacity = Math.max(0, (s - n) / s);
|
|
149
158
|
},
|
|
150
159
|
handleMouseLeave() {
|
|
151
160
|
this.isHovered = !1, this.glowOpacity = 0;
|
|
152
161
|
}
|
|
153
162
|
}
|
|
154
|
-
},
|
|
163
|
+
}, ce = { class: "tile-content" }, re = { class: "tile-icon" }, ue = {
|
|
155
164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
165
|
viewBox: "0 0 24 24",
|
|
157
166
|
width: "24",
|
|
158
167
|
height: "24"
|
|
159
|
-
},
|
|
160
|
-
function
|
|
161
|
-
return
|
|
162
|
-
class:
|
|
163
|
-
style:
|
|
164
|
-
onMousemove:
|
|
165
|
-
onMouseenter:
|
|
166
|
-
onMouseleave:
|
|
168
|
+
}, de = ["d"], me = { class: "tile-title" };
|
|
169
|
+
function pe(e, t, n, s, l, o) {
|
|
170
|
+
return r(), u("div", {
|
|
171
|
+
class: h(["tile", n.size]),
|
|
172
|
+
style: y(o.tileStyle),
|
|
173
|
+
onMousemove: t[0] || (t[0] = (...a) => o.handleMouseMove && o.handleMouseMove(...a)),
|
|
174
|
+
onMouseenter: t[1] || (t[1] = (a) => l.isHovered = !0),
|
|
175
|
+
onMouseleave: t[2] || (t[2] = (...a) => o.handleMouseLeave && o.handleMouseLeave(...a))
|
|
167
176
|
}, [
|
|
168
|
-
|
|
169
|
-
|
|
177
|
+
i("div", ce, [
|
|
178
|
+
i("div", re, [
|
|
170
179
|
C(e.$slots, "icon", {}, () => [
|
|
171
|
-
(
|
|
172
|
-
|
|
180
|
+
(r(), u("svg", ue, [
|
|
181
|
+
i("path", {
|
|
173
182
|
fill: "white",
|
|
174
|
-
d:
|
|
175
|
-
}, null, 8,
|
|
183
|
+
d: n.icon
|
|
184
|
+
}, null, 8, de)
|
|
176
185
|
]))
|
|
177
186
|
], !0)
|
|
178
187
|
]),
|
|
179
|
-
|
|
188
|
+
i("div", me, w(n.title), 1)
|
|
180
189
|
]),
|
|
181
|
-
|
|
190
|
+
i("div", {
|
|
182
191
|
class: "glow-border",
|
|
183
|
-
style:
|
|
192
|
+
style: y(o.glowStyle)
|
|
184
193
|
}, null, 4),
|
|
185
|
-
|
|
194
|
+
i("div", {
|
|
186
195
|
class: "pointer-glow",
|
|
187
|
-
style:
|
|
196
|
+
style: y(o.pointerGlowStyle)
|
|
188
197
|
}, null, 4)
|
|
189
198
|
], 38);
|
|
190
199
|
}
|
|
191
|
-
const Y = /* @__PURE__ */
|
|
200
|
+
const Y = /* @__PURE__ */ g(ie, [["render", pe], ["__scopeId", "data-v-9ae9ef89"]]), ve = { class: "container" }, he = {
|
|
192
201
|
key: "state0",
|
|
193
202
|
class: "iframe-container"
|
|
194
|
-
},
|
|
203
|
+
}, we = ["src"], _e = {
|
|
195
204
|
key: "state1",
|
|
196
205
|
class: "iframe-container"
|
|
197
|
-
},
|
|
206
|
+
}, ge = ["src"], D = {
|
|
198
207
|
__name: "webwin-tab",
|
|
199
208
|
props: { menu: Array, url: Array },
|
|
200
209
|
setup(e) {
|
|
201
210
|
console.log("%c✨Welcome to Web-Win-Vue-Tab✨", `
|
|
202
211
|
color: #0078d7;
|
|
203
212
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
204
|
-
const
|
|
205
|
-
return
|
|
206
|
-
console.log("activeIndex changed:",
|
|
207
|
-
}), (
|
|
208
|
-
|
|
209
|
-
modelValue:
|
|
210
|
-
"onUpdate:modelValue":
|
|
213
|
+
const t = e, n = c(0), s = c(0), l = c(t.url[0]);
|
|
214
|
+
return P(n, (o) => {
|
|
215
|
+
console.log("activeIndex changed:", o), console.log("new url:", t.url[o]), l.value = t.url[o], s.value = s.value === 0 ? 1 : 0, console.log("docState:", s.value);
|
|
216
|
+
}), (o, a) => (r(), u("div", ve, [
|
|
217
|
+
S(I, {
|
|
218
|
+
modelValue: n.value,
|
|
219
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => n.value = v),
|
|
211
220
|
items: e.menu,
|
|
212
221
|
class: "item-1"
|
|
213
222
|
}, null, 8, ["modelValue", "items"]),
|
|
214
|
-
|
|
223
|
+
S(L, {
|
|
215
224
|
name: "fade",
|
|
216
225
|
mode: "out-in"
|
|
217
226
|
}, {
|
|
218
227
|
default: M(() => [
|
|
219
|
-
|
|
220
|
-
$(
|
|
221
|
-
[
|
|
228
|
+
s.value === 0 ? (r(), u("div", he, [
|
|
229
|
+
$(i("iframe", { src: l.value }, null, 8, we), [
|
|
230
|
+
[N, s.value === 0]
|
|
222
231
|
])
|
|
223
|
-
])) :
|
|
224
|
-
$(
|
|
225
|
-
[
|
|
232
|
+
])) : s.value === 1 ? (r(), u("div", _e, [
|
|
233
|
+
$(i("iframe", { src: l.value }, null, 8, ge), [
|
|
234
|
+
[N, s.value === 1]
|
|
226
235
|
])
|
|
227
236
|
])) : B("", !0)
|
|
228
237
|
]),
|
|
@@ -230,160 +239,160 @@ const Y = /* @__PURE__ */ _(re, [["render", we], ["__scopeId", "data-v-9ae9ef89"
|
|
|
230
239
|
})
|
|
231
240
|
]));
|
|
232
241
|
}
|
|
233
|
-
},
|
|
242
|
+
}, fe = ["value", "placeholder"], z = /* @__PURE__ */ x({
|
|
234
243
|
__name: "webwin-passwordbox",
|
|
235
244
|
props: { value: String, placeholder: String },
|
|
236
245
|
setup(e) {
|
|
237
246
|
console.log("%c✨Welcome to Web-Win-Vue-PasswordBox✨", `
|
|
238
247
|
color: #0078d7;
|
|
239
248
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
240
|
-
const
|
|
241
|
-
return (
|
|
249
|
+
const t = e, n = c(t.value), s = c(t.placeholder);
|
|
250
|
+
return (l, o) => (r(), u("input", {
|
|
242
251
|
type: "password",
|
|
243
252
|
name: "fname",
|
|
244
253
|
class: "uwppassword",
|
|
245
|
-
value:
|
|
246
|
-
placeholder:
|
|
247
|
-
onChange:
|
|
248
|
-
}, null, 40,
|
|
254
|
+
value: n.value,
|
|
255
|
+
placeholder: s.value,
|
|
256
|
+
onChange: o[0] || (o[0] = (a) => l.$emit("@change", a))
|
|
257
|
+
}, null, 40, fe));
|
|
249
258
|
}
|
|
250
|
-
}),
|
|
259
|
+
}), xe = ["data-placeholder"], O = /* @__PURE__ */ x({
|
|
251
260
|
__name: "webwin-richeditbox",
|
|
252
261
|
props: {
|
|
253
262
|
value: { type: String, default: "" },
|
|
254
263
|
placeholder: { type: String, default: "" }
|
|
255
264
|
},
|
|
256
265
|
emits: ["update:value", "change"],
|
|
257
|
-
setup(e, { emit:
|
|
258
|
-
const
|
|
266
|
+
setup(e, { emit: t }) {
|
|
267
|
+
const n = e, s = t, l = c(null), o = c(n.placeholder), a = c(n.value);
|
|
259
268
|
Z(() => {
|
|
260
|
-
|
|
269
|
+
l.value && (l.value.textContent = n.value || "", a.value = n.value || "");
|
|
261
270
|
});
|
|
262
|
-
const v = (
|
|
263
|
-
if (!
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
if (
|
|
271
|
+
const v = (_) => {
|
|
272
|
+
if (!l.value) return;
|
|
273
|
+
const p = l.value.textContent || "";
|
|
274
|
+
s("update:value", p), j(() => {
|
|
275
|
+
if (l.value) {
|
|
267
276
|
const d = document.createRange(), W = window.getSelection();
|
|
268
|
-
d.selectNodeContents(
|
|
277
|
+
d.selectNodeContents(l.value), d.collapse(!1), W?.removeAllRanges(), W?.addRange(d);
|
|
269
278
|
}
|
|
270
279
|
});
|
|
271
|
-
}, f = (
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
const
|
|
276
|
-
d !==
|
|
280
|
+
}, f = (_) => {
|
|
281
|
+
const p = _.target;
|
|
282
|
+
p.textContent === n.placeholder && (p.textContent = "");
|
|
283
|
+
}, b = (_) => {
|
|
284
|
+
const p = _.target, d = p.textContent || "";
|
|
285
|
+
d !== a.value && (s("change", {
|
|
277
286
|
target: {
|
|
278
287
|
value: d
|
|
279
288
|
}
|
|
280
|
-
}),
|
|
289
|
+
}), a.value = d), d.trim() === "" && (p.textContent = "");
|
|
281
290
|
};
|
|
282
|
-
return (
|
|
291
|
+
return (_, p) => (r(), u("div", {
|
|
283
292
|
ref_key: "editableDiv",
|
|
284
|
-
ref:
|
|
293
|
+
ref: l,
|
|
285
294
|
class: "uwprichrditbox",
|
|
286
295
|
contenteditable: "plaintext-only",
|
|
287
|
-
"data-placeholder":
|
|
296
|
+
"data-placeholder": o.value,
|
|
288
297
|
onInput: v,
|
|
289
298
|
onFocus: f,
|
|
290
|
-
onBlur:
|
|
291
|
-
}, null, 40,
|
|
299
|
+
onBlur: b
|
|
300
|
+
}, null, 40, xe));
|
|
292
301
|
}
|
|
293
|
-
}),
|
|
302
|
+
}), be = ["src"], ye = {
|
|
294
303
|
class: "n-name",
|
|
295
304
|
style: { display: "inline-block", "margin-left": "6px" }
|
|
296
|
-
},
|
|
305
|
+
}, $e = { class: "n-text n-title" }, Ce = { class: "n-vulua" }, F = {
|
|
297
306
|
__name: "webwin-notifications",
|
|
298
307
|
props: { name: String, title: String, text: String, img: String },
|
|
299
|
-
setup(e, { expose:
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
const
|
|
303
|
-
|
|
308
|
+
setup(e, { expose: t }) {
|
|
309
|
+
const n = e;
|
|
310
|
+
let s = c(!1), l = c(n.img);
|
|
311
|
+
const o = () => {
|
|
312
|
+
s.value = !s.value;
|
|
304
313
|
};
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
|
|
314
|
+
function a() {
|
|
315
|
+
s.value && setTimeout(() => {
|
|
316
|
+
s.value = !1;
|
|
308
317
|
}, 250);
|
|
309
318
|
}
|
|
310
|
-
return
|
|
319
|
+
return t({ showNotification: o }), console.log("%c✨Welcome to Web-Win-Vue-Notifications✨", `
|
|
311
320
|
color: #0078d7;
|
|
312
|
-
text-shadow: 0 1px 0 #0078d7;`), (v, f) => (
|
|
321
|
+
text-shadow: 0 1px 0 #0078d7;`), (v, f) => (r(), J(L, { name: "slide-fade" }, {
|
|
313
322
|
default: M(() => [
|
|
314
|
-
|
|
323
|
+
m(s) ? (r(), u("div", {
|
|
315
324
|
key: 0,
|
|
316
325
|
class: "Notification",
|
|
317
|
-
onClick:
|
|
326
|
+
onClick: a
|
|
318
327
|
}, [
|
|
319
|
-
|
|
320
|
-
src:
|
|
328
|
+
i("img", {
|
|
329
|
+
src: m(l),
|
|
321
330
|
style: { "object-fit": "contain", "margin-left": "16px", "margin-right": "0px", display: "inline-block", "vertical-align": "middle", width: "16px", height: "16px" }
|
|
322
|
-
}, null, 8,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
331
|
+
}, null, 8, be),
|
|
332
|
+
i("p", ye, w(e.name), 1),
|
|
333
|
+
i("h4", $e, w(e.title), 1),
|
|
334
|
+
i("p", Ce, w(e.text), 1)
|
|
326
335
|
])) : B("", !0)
|
|
327
336
|
]),
|
|
328
337
|
_: 1
|
|
329
338
|
}));
|
|
330
339
|
}
|
|
331
|
-
},
|
|
340
|
+
}, ke = ["name", "id"], We = ["for"], Ve = /* @__PURE__ */ x({
|
|
332
341
|
__name: "webwin-checkbox",
|
|
333
342
|
props: { name: String, checked: Array },
|
|
334
343
|
setup(e) {
|
|
335
|
-
const
|
|
344
|
+
const t = e, n = c(t.name), s = c(t.checked);
|
|
336
345
|
return console.log("%c✨Welcome to Web-Win-Vue-Checkbox✨", `
|
|
337
346
|
color: #0078d7;
|
|
338
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
339
|
-
$(
|
|
347
|
+
text-shadow: 0 1px 0 #0078d7;`), (l, o) => (r(), u(k, null, [
|
|
348
|
+
$(i("input", {
|
|
340
349
|
type: "checkbox",
|
|
341
350
|
class: "ww-checkbox",
|
|
342
|
-
name:
|
|
343
|
-
id:
|
|
344
|
-
"onUpdate:modelValue":
|
|
345
|
-
onClick:
|
|
346
|
-
}, null, 8,
|
|
347
|
-
[
|
|
351
|
+
name: n.value,
|
|
352
|
+
id: n.value,
|
|
353
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
|
354
|
+
onClick: o[1] || (o[1] = (a) => l.$emit("click", a))
|
|
355
|
+
}, null, 8, ke), [
|
|
356
|
+
[K, s.value]
|
|
348
357
|
]),
|
|
349
|
-
|
|
350
|
-
for:
|
|
358
|
+
i("label", {
|
|
359
|
+
for: n.value,
|
|
351
360
|
class: "ww-checkbox-label"
|
|
352
361
|
}, [
|
|
353
|
-
C(
|
|
354
|
-
], 8,
|
|
362
|
+
C(l.$slots, "default", {}, void 0, !0)
|
|
363
|
+
], 8, We)
|
|
355
364
|
], 64));
|
|
356
365
|
}
|
|
357
|
-
}),
|
|
366
|
+
}), H = /* @__PURE__ */ g(Ve, [["__scopeId", "data-v-c289ea76"]]), Se = ["name", "id"], Le = ["for"], Me = /* @__PURE__ */ x({
|
|
358
367
|
__name: "webwin-radio",
|
|
359
368
|
props: { name: String, checked: Array },
|
|
360
369
|
setup(e) {
|
|
361
|
-
const
|
|
370
|
+
const t = e, n = c(t.name), s = c(t.checked);
|
|
362
371
|
return console.log("%c✨Welcome to Web-Win-Vue-radio✨", `
|
|
363
372
|
color: #0078d7;
|
|
364
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
365
|
-
$(
|
|
373
|
+
text-shadow: 0 1px 0 #0078d7;`), (l, o) => (r(), u(k, null, [
|
|
374
|
+
$(i("input", {
|
|
366
375
|
type: "radio",
|
|
367
376
|
class: "ww-radio",
|
|
368
|
-
name:
|
|
369
|
-
id:
|
|
370
|
-
"onUpdate:modelValue":
|
|
371
|
-
onClick:
|
|
372
|
-
}, null, 8,
|
|
373
|
-
[
|
|
377
|
+
name: n.value,
|
|
378
|
+
id: n.value,
|
|
379
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
|
380
|
+
onClick: o[1] || (o[1] = (a) => l.$emit("click", a))
|
|
381
|
+
}, null, 8, Se), [
|
|
382
|
+
[Q, s.value]
|
|
374
383
|
]),
|
|
375
|
-
|
|
376
|
-
for:
|
|
384
|
+
i("label", {
|
|
385
|
+
for: n.value,
|
|
377
386
|
class: "ww-radio-label"
|
|
378
387
|
}, [
|
|
379
|
-
C(
|
|
380
|
-
], 8,
|
|
388
|
+
C(l.$slots, "default", {}, void 0, !0)
|
|
389
|
+
], 8, Le)
|
|
381
390
|
], 64));
|
|
382
391
|
}
|
|
383
|
-
}),
|
|
392
|
+
}), E = /* @__PURE__ */ g(Me, [["__scopeId", "data-v-78978c8c"]]), Be = { style: { position: "relative" } }, Ie = {
|
|
384
393
|
key: 0,
|
|
385
394
|
class: "list-box"
|
|
386
|
-
},
|
|
395
|
+
}, Ne = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, Re = ["onClick"], Te = { class: "label" }, Xe = {
|
|
387
396
|
__name: "webwin-listbox",
|
|
388
397
|
props: {
|
|
389
398
|
items: { type: Array, required: !0 },
|
|
@@ -391,39 +400,39 @@ const Y = /* @__PURE__ */ _(re, [["render", we], ["__scopeId", "data-v-9ae9ef89"
|
|
|
391
400
|
title: { type: String, default: "itembox" }
|
|
392
401
|
},
|
|
393
402
|
emits: ["update"],
|
|
394
|
-
setup(e, { emit:
|
|
395
|
-
|
|
396
|
-
"4c8120fa":
|
|
397
|
-
"1ae8acfb":
|
|
403
|
+
setup(e, { emit: t }) {
|
|
404
|
+
A((d) => ({
|
|
405
|
+
"4c8120fa": m(b) + "px",
|
|
406
|
+
"1ae8acfb": m(f) + "px"
|
|
398
407
|
})), console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
399
408
|
color: #0078d7;
|
|
400
409
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
401
|
-
const
|
|
402
|
-
let
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
f.value = d * -35,
|
|
410
|
+
const n = e, s = t;
|
|
411
|
+
let l = c(""), o = c(!1), a = c(n.modelValue), v = c(n.title), f = c(0), b = c(0);
|
|
412
|
+
function _(d) {
|
|
413
|
+
o.value = !1, l.value = "", a.value = d, v.value = n.items[d].name, s("update", d), setTimeout(() => {
|
|
414
|
+
f.value = d * -35, b.value = d * 35 + 17.5;
|
|
406
415
|
}, 100);
|
|
407
416
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
417
|
+
function p() {
|
|
418
|
+
o.value = !o.value, l.value = o.value ? "active" : "";
|
|
410
419
|
}
|
|
411
|
-
return (d, W) => (
|
|
412
|
-
|
|
413
|
-
class:
|
|
414
|
-
onClick:
|
|
415
|
-
},
|
|
416
|
-
|
|
420
|
+
return (d, W) => (r(), u("div", Be, [
|
|
421
|
+
i("div", {
|
|
422
|
+
class: h(["list-box-button", m(l)]),
|
|
423
|
+
onClick: p
|
|
424
|
+
}, w(m(v)), 3),
|
|
425
|
+
S(L, null, {
|
|
417
426
|
default: M(() => [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
(
|
|
427
|
+
m(o) ? (r(), u("ul", Ie, [
|
|
428
|
+
i("div", Ne, [
|
|
429
|
+
(r(!0), u(k, null, R(e.items, (G, V) => (r(), u("li", {
|
|
421
430
|
key: V,
|
|
422
|
-
class:
|
|
423
|
-
onClick: (
|
|
431
|
+
class: h({ active: V === m(a) }),
|
|
432
|
+
onClick: (Oe) => _(V)
|
|
424
433
|
}, [
|
|
425
|
-
|
|
426
|
-
], 10,
|
|
434
|
+
i("span", Te, w(G.name), 1)
|
|
435
|
+
], 10, Re))), 128))
|
|
427
436
|
])
|
|
428
437
|
])) : B("", !0)
|
|
429
438
|
]),
|
|
@@ -431,23 +440,39 @@ const Y = /* @__PURE__ */ _(re, [["render", we], ["__scopeId", "data-v-9ae9ef89"
|
|
|
431
440
|
})
|
|
432
441
|
]));
|
|
433
442
|
}
|
|
434
|
-
}, U = /* @__PURE__ */
|
|
443
|
+
}, U = /* @__PURE__ */ g(Xe, [["__scopeId", "data-v-5fe19256"]]), Ye = { class: "progress-bar" }, De = {
|
|
444
|
+
__name: "webwin-progressbar",
|
|
445
|
+
props: {
|
|
446
|
+
progress: { type: Number, default: 0 }
|
|
447
|
+
},
|
|
448
|
+
setup(e) {
|
|
449
|
+
return console.log("%c✨Welcome to Web-Win-Vue-ProgressBar✨", `
|
|
450
|
+
color: #0078d7;
|
|
451
|
+
text-shadow: 0 1px 0 #0078d7;`), (t, n) => (r(), u("div", Ye, [
|
|
452
|
+
i("div", {
|
|
453
|
+
class: "progress",
|
|
454
|
+
style: y({ width: e.progress + "%" })
|
|
455
|
+
}, null, 4)
|
|
456
|
+
]));
|
|
457
|
+
}
|
|
458
|
+
}, q = /* @__PURE__ */ g(De, [["__scopeId", "data-v-d1bcd074"]]), ze = [q, U, E, H, T, I, Y, D, X, z, O, F], He = {
|
|
435
459
|
install(e) {
|
|
436
|
-
|
|
437
|
-
e.component("winbutton",
|
|
460
|
+
ze.forEach((t) => {
|
|
461
|
+
e.component("winbutton", T), e.component("winitem", I), e.component("wintile", Y), e.component("wintab", D), e.component("wininputbox", X), e.component("winpasswordbox", z), e.component("winricheditbox", O), e.component("winnotifications", F), e.component("wincheckbox", H), e.component("winradio", E), e.component("winlistbox", U), e.component("winprogressbar", q);
|
|
438
462
|
});
|
|
439
463
|
}
|
|
440
464
|
};
|
|
441
465
|
export {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
466
|
+
He as default,
|
|
467
|
+
T as winbutton,
|
|
468
|
+
H as wincheckbox,
|
|
469
|
+
X as wininputbox,
|
|
470
|
+
I as winitem,
|
|
447
471
|
U as winlistbox,
|
|
448
|
-
|
|
472
|
+
F as winnotifications,
|
|
449
473
|
z as winpasswordbox,
|
|
450
|
-
|
|
474
|
+
q as winprogressbar,
|
|
475
|
+
E as winradio,
|
|
451
476
|
O as winricheditbox,
|
|
452
477
|
D as wintab,
|
|
453
478
|
Y as wintile
|
package/web-win-vue.umd.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c["web-win-vue"]={},c.Vue))})(this,(function(c,e){"use strict";const p=(t,o)=>{const l=t.__vccOpts||t;for(const[s,a]of o)l[s]=a;return l},_=p({__name:"webwin-button",setup(t){return console.log("%c✨Welcome to Web-Win-Vue-Button✨",`
|
|
2
2
|
color: #0078d7;
|
|
3
|
-
text-shadow: 0 1px 0 #0078d7;`),(
|
|
3
|
+
text-shadow: 0 1px 0 #0078d7;`),(o,l)=>(e.openBlock(),e.createElementBlock("button",null,[e.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-85a8a3fa"]]),W=["value","placeholder"],g=e.defineComponent({__name:"webwin-inputbox",props:{value:String,placeholder:String},setup(t){console.log("%c✨Welcome to Web-Win-Vue-InputBox✨",`
|
|
4
4
|
color: #0078d7;
|
|
5
|
-
text-shadow: 0 1px 0 #0078d7;`);const
|
|
5
|
+
text-shadow: 0 1px 0 #0078d7;`);const o=t,l=e.ref(o.value),s=e.ref(o.placeholder);return(a,n)=>(e.openBlock(),e.createElementBlock("input",{type:"text",name:"fname",class:"uwpinput",value:l.value,placeholder:s.value,onChange:n[0]||(n[0]=i=>a.$emit("@change",i))},null,40,W))}}),L={style:{overflow:"auto",height:"calc( 100% - 240px )","overflow-x":"hidden"}},M=["onClick"],D={class:"icon",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},z=["d"],h=p({__name:"webwin-item",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"Menu"}},emits:["update:modelValue"],setup(t){console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
6
6
|
color: #0078d7;
|
|
7
|
-
text-shadow: 0 1px 0 #0078d7;`)
|
|
7
|
+
text-shadow: 0 1px 0 #0078d7;`);let o=e.ref("");function l(){o.value===""?o.value="folded":o.value=""}return(s,a)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(["side-bar",e.unref(o)])},[e.createElementVNode("div",null,[e.createElementVNode("li",{style:{"margin-top":"24px"},onClick:l},[a[0]||(a[0]=e.createElementVNode("svg",{class:"icon",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{xmlns:"http://www.w3.org/2000/svg",style:{stroke:"none","fill-rule":"nonzero",fill:"rgb(0%,0%,0%)","fill-opacity":"1"},d:"M 0.863281 14.628906 L 2.898438 14.628906 L 2.898438 22.773438 C 2.898438 23.253906 3.292969 23.648438 3.773438 23.648438 L 9.734375 23.648438 C 10.214844 23.648438 10.609375 23.253906 10.609375 22.773438 L 10.609375 16.8125 L 14.246094 16.8125 L 14.246094 22.773438 C 14.246094 23.253906 14.636719 23.648438 15.117188 23.648438 L 20.789062 23.648438 C 21.269531 23.648438 21.664062 23.253906 21.664062 22.773438 L 21.664062 14.628906 L 24.136719 14.628906 C 24.484375 14.628906 24.804688 14.410156 24.9375 14.089844 C 25.066406 13.769531 24.992188 13.394531 24.746094 13.144531 L 13.371094 1.609375 C 13.039062 1.277344 12.484375 1.261719 12.152344 1.597656 L 0.265625 13.132812 C 0.00390625 13.378906 -0.0664062 13.757812 0.0625 14.089844 C 0.195312 14.425781 0.515625 14.628906 0.863281 14.628906 Z M 12.734375 3.457031 L 22.042969 12.882812 L 20.789062 12.882812 C 20.308594 12.882812 19.917969 13.277344 19.917969 13.757812 L 19.917969 21.902344 L 15.992188 21.902344 L 15.992188 15.9375 C 15.992188 15.457031 15.597656 15.066406 15.117188 15.066406 L 9.734375 15.066406 C 9.257812 15.066406 8.863281 15.457031 8.863281 15.9375 L 8.863281 21.902344 L 4.644531 21.902344 L 4.644531 13.757812 C 4.644531 13.277344 4.253906 12.882812 3.773438 12.882812 L 3.015625 12.882812 Z M 12.734375 3.457031 "})],-1)),e.createElementVNode("span",{class:e.normalizeClass(["label",e.unref(o)])},"折叠",2)]),a[1]||(a[1]=e.createElementVNode("div",{style:{width:"var(--sb-width, 350px)",margin:"auto"}},null,-1)),e.createElementVNode("h3",{style:{"margin-top":"26px","margin-bottom":"26px","margin-left":"18px"},class:e.normalizeClass(["title",e.unref(o)])},e.toDisplayString(t.title),3)]),e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(n,i)=>(e.openBlock(),e.createElementBlock("li",{key:i,class:e.normalizeClass({active:i===t.modelValue}),onClick:m=>s.$emit("update:modelValue",i)},[a[2]||(a[2]=e.createElementVNode("span",{class:"indicator"},null,-1)),(e.openBlock(),e.createElementBlock("svg",D,[e.createElementVNode("path",{d:n.icon},null,8,z)])),e.createElementVNode("span",{class:e.normalizeClass(["label",e.unref(o)])},e.toDisplayString(n.name),3)],10,M))),128))])],2))}},[["__scopeId","data-v-d26944f3"]]);console.log("%c✨Welcome to Web-Win-Vue-Tile✨",`
|
|
8
8
|
color: #0078d7;
|
|
9
|
-
text-shadow: 0 1px 0 #0078d7;`);const
|
|
9
|
+
text-shadow: 0 1px 0 #0078d7;`);const I={props:{size:{default:"medium"},color:{default:"#0078d7"},title:{default:"App"},icon:{default:""},glowColor:{default:"rgba(255,255,255,0.5)"},glowRadius:{default:60}},data(){return{isHovered:!1,mouseX:0,mouseY:0,glowOpacity:0}},computed:{tileStyle(){return{"--tile-color":this.color,"--glow-color":this.glowColor,"--glow-radius":`${this.glowRadius}px`}},glowStyle(){return{"--x":`${this.mouseX}px`,"--y":`${this.mouseY}px`,opacity:this.glowOpacity}},pointerGlowStyle(){return{"--x":`${this.mouseX}px`,"--y":`${this.mouseY}px`,opacity:this.isHovered?1:0}}},methods:{handleMouseMove(t){const o=t.currentTarget.getBoundingClientRect();this.mouseX=t.clientX-o.left,this.mouseY=t.clientY-o.top;const l=Math.min(this.mouseX,o.width-this.mouseX,this.mouseY,o.height-this.mouseY),s=this.glowRadius;this.glowOpacity=Math.max(0,(s-l)/s)},handleMouseLeave(){this.isHovered=!1,this.glowOpacity=0}}},T={class:"tile-content"},R={class:"tile-icon"},F={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},X=["d"],Y={class:"tile-title"};function O(t,o,l,s,a,n){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tile",l.size]),style:e.normalizeStyle(n.tileStyle),onMousemove:o[0]||(o[0]=(...i)=>n.handleMouseMove&&n.handleMouseMove(...i)),onMouseenter:o[1]||(o[1]=i=>a.isHovered=!0),onMouseleave:o[2]||(o[2]=(...i)=>n.handleMouseLeave&&n.handleMouseLeave(...i))},[e.createElementVNode("div",T,[e.createElementVNode("div",R,[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createElementBlock("svg",F,[e.createElementVNode("path",{fill:"white",d:l.icon},null,8,X)]))],!0)]),e.createElementVNode("div",Y,e.toDisplayString(l.title),1)]),e.createElementVNode("div",{class:"glow-border",style:e.normalizeStyle(n.glowStyle)},null,4),e.createElementVNode("div",{class:"pointer-glow",style:e.normalizeStyle(n.pointerGlowStyle)},null,4)],38)}const b=p(I,[["render",O],["__scopeId","data-v-9ae9ef89"]]),H={class:"container"},j={key:"state0",class:"iframe-container"},q=["src"],P={key:"state1",class:"iframe-container"},U=["src"],x={__name:"webwin-tab",props:{menu:Array,url:Array},setup(t){console.log("%c✨Welcome to Web-Win-Vue-Tab✨",`
|
|
10
10
|
color: #0078d7;
|
|
11
|
-
text-shadow: 0 1px 0 #0078d7;`);const
|
|
11
|
+
text-shadow: 0 1px 0 #0078d7;`);const o=t,l=e.ref(0),s=e.ref(0),a=e.ref(o.url[0]);return e.watch(l,n=>{console.log("activeIndex changed:",n),console.log("new url:",o.url[n]),a.value=o.url[n],s.value=s.value===0?1:0,console.log("docState:",s.value)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(h,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=m=>l.value=m),items:t.menu,class:"item-1"},null,8,["modelValue","items"]),e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[s.value===0?(e.openBlock(),e.createElementBlock("div",j,[e.withDirectives(e.createElementVNode("iframe",{src:a.value},null,8,q),[[e.vShow,s.value===0]])])):s.value===1?(e.openBlock(),e.createElementBlock("div",P,[e.withDirectives(e.createElementVNode("iframe",{src:a.value},null,8,U),[[e.vShow,s.value===1]])])):e.createCommentVNode("",!0)]),_:1})]))}},G=["value","placeholder"],k=e.defineComponent({__name:"webwin-passwordbox",props:{value:String,placeholder:String},setup(t){console.log("%c✨Welcome to Web-Win-Vue-PasswordBox✨",`
|
|
12
12
|
color: #0078d7;
|
|
13
|
-
text-shadow: 0 1px 0 #0078d7;`);const
|
|
13
|
+
text-shadow: 0 1px 0 #0078d7;`);const o=t,l=e.ref(o.value),s=e.ref(o.placeholder);return(a,n)=>(e.openBlock(),e.createElementBlock("input",{type:"password",name:"fname",class:"uwppassword",value:l.value,placeholder:s.value,onChange:n[0]||(n[0]=i=>a.$emit("@change",i))},null,40,G))}}),Z=["data-placeholder"],y=e.defineComponent({__name:"webwin-richeditbox",props:{value:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","change"],setup(t,{emit:o}){const l=t,s=o,a=e.ref(null),n=e.ref(l.placeholder),i=e.ref(l.value);e.onMounted(()=>{a.value&&(a.value.textContent=l.value||"",i.value=l.value||"")});const m=f=>{if(!a.value)return;const d=a.value.textContent||"";s("update:value",d),e.nextTick(()=>{if(a.value){const r=document.createRange(),N=window.getSelection();r.selectNodeContents(a.value),r.collapse(!1),N?.removeAllRanges(),N?.addRange(r)}})},u=f=>{const d=f.target;d.textContent===l.placeholder&&(d.textContent="")},w=f=>{const d=f.target,r=d.textContent||"";r!==i.value&&(s("change",{target:{value:r}}),i.value=r),r.trim()===""&&(d.textContent="")};return(f,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"editableDiv",ref:a,class:"uwprichrditbox",contenteditable:"plaintext-only","data-placeholder":n.value,onInput:m,onFocus:u,onBlur:w},null,40,Z))}}),J=["src"],K={class:"n-name",style:{display:"inline-block","margin-left":"6px"}},Q={class:"n-text n-title"},A={class:"n-vulua"},V={__name:"webwin-notifications",props:{name:String,title:String,text:String,img:String},setup(t,{expose:o}){const l=t;let s=e.ref(!1),a=e.ref(l.img);const n=()=>{s.value=!s.value};function i(){s.value&&setTimeout(()=>{s.value=!1},250)}return o({showNotification:n}),console.log("%c✨Welcome to Web-Win-Vue-Notifications✨",`
|
|
14
14
|
color: #0078d7;
|
|
15
|
-
text-shadow: 0 1px 0 #0078d7;`),(m,
|
|
15
|
+
text-shadow: 0 1px 0 #0078d7;`),(m,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"Notification",onClick:i},[e.createElementVNode("img",{src:e.unref(a),style:{"object-fit":"contain","margin-left":"16px","margin-right":"0px",display:"inline-block","vertical-align":"middle",width:"16px",height:"16px"}},null,8,J),e.createElementVNode("p",K,e.toDisplayString(t.name),1),e.createElementVNode("h4",Q,e.toDisplayString(t.title),1),e.createElementVNode("p",A,e.toDisplayString(t.text),1)])):e.createCommentVNode("",!0)]),_:1}))}},v=["name","id"],ee=["for"],C=p(e.defineComponent({__name:"webwin-checkbox",props:{name:String,checked:Array},setup(t){const o=t,l=e.ref(o.name),s=e.ref(o.checked);return console.log("%c✨Welcome to Web-Win-Vue-Checkbox✨",`
|
|
16
16
|
color: #0078d7;
|
|
17
|
-
text-shadow: 0 1px 0 #0078d7;`),(
|
|
17
|
+
text-shadow: 0 1px 0 #0078d7;`),(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"ww-checkbox",name:l.value,id:l.value,"onUpdate:modelValue":n[0]||(n[0]=i=>s.value=i),onClick:n[1]||(n[1]=i=>a.$emit("click",i))},null,8,v),[[e.vModelCheckbox,s.value]]),e.createElementVNode("label",{for:l.value,class:"ww-checkbox-label"},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,ee)],64))}}),[["__scopeId","data-v-c289ea76"]]),te=["name","id"],oe=["for"],B=p(e.defineComponent({__name:"webwin-radio",props:{name:String,checked:Array},setup(t){const o=t,l=e.ref(o.name),s=e.ref(o.checked);return console.log("%c✨Welcome to Web-Win-Vue-radio✨",`
|
|
18
18
|
color: #0078d7;
|
|
19
|
-
text-shadow: 0 1px 0 #0078d7;`),(
|
|
19
|
+
text-shadow: 0 1px 0 #0078d7;`),(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"radio",class:"ww-radio",name:l.value,id:l.value,"onUpdate:modelValue":n[0]||(n[0]=i=>s.value=i),onClick:n[1]||(n[1]=i=>a.$emit("click",i))},null,8,te),[[e.vModelRadio,s.value]]),e.createElementVNode("label",{for:l.value,class:"ww-radio-label"},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,oe)],64))}}),[["__scopeId","data-v-78978c8c"]]),ne={style:{position:"relative"}},le={key:0,class:"list-box"},ae={style:{overflow:"auto",height:"calc( 100% - 240px )"}},se=["onClick"],ie={class:"label"},E=p({__name:"webwin-listbox",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"itembox"}},emits:["update"],setup(t,{emit:o}){e.useCssVars(r=>({"4c8120fa":e.unref(w)+"px","1ae8acfb":e.unref(u)+"px"})),console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
20
20
|
color: #0078d7;
|
|
21
|
-
text-shadow: 0 1px 0 #0078d7;`);const
|
|
21
|
+
text-shadow: 0 1px 0 #0078d7;`);const l=t,s=o;let a=e.ref(""),n=e.ref(!1),i=e.ref(l.modelValue),m=e.ref(l.title),u=e.ref(0),w=e.ref(0);function f(r){n.value=!1,a.value="",i.value=r,m.value=l.items[r].name,s("update",r),setTimeout(()=>{u.value=r*-35,w.value=r*35+17.5},100)}function d(){n.value=!n.value,a.value=n.value?"active":""}return(r,N)=>(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:e.normalizeClass(["list-box-button",e.unref(a)]),onClick:d},e.toDisplayString(e.unref(m)),3),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createElementBlock("ul",le,[e.createElementVNode("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(me,S)=>(e.openBlock(),e.createElementBlock("li",{key:S,class:e.normalizeClass({active:S===e.unref(i)}),onClick:ge=>f(S)},[e.createElementVNode("span",ie,e.toDisplayString(me.name),1)],10,se))),128))])])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-5fe19256"]]),ce={class:"progress-bar"},$=p({__name:"webwin-progressbar",props:{progress:{type:Number,default:0}},setup(t){return console.log("%c✨Welcome to Web-Win-Vue-ProgressBar✨",`
|
|
22
|
+
color: #0078d7;
|
|
23
|
+
text-shadow: 0 1px 0 #0078d7;`),(o,l)=>(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"progress",style:e.normalizeStyle({width:t.progress+"%"})},null,4)]))}},[["__scopeId","data-v-d1bcd074"]]),re=[$,E,B,C,_,h,b,x,g,k,y,V],de={install(t){re.forEach(o=>{t.component("winbutton",_),t.component("winitem",h),t.component("wintile",b),t.component("wintab",x),t.component("wininputbox",g),t.component("winpasswordbox",k),t.component("winricheditbox",y),t.component("winnotifications",V),t.component("wincheckbox",C),t.component("winradio",B),t.component("winlistbox",E),t.component("winprogressbar",$)})}};c.default=de,c.winbutton=_,c.wincheckbox=C,c.wininputbox=g,c.winitem=h,c.winlistbox=E,c.winnotifications=V,c.winpasswordbox=k,c.winprogressbar=$,c.winradio=B,c.winricheditbox=y,c.wintab=x,c.wintile=b,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|