web-win-vue 0.4.0 → 0.4.2
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 +166 -163
- package/web-win-vue.umd.js +11 -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-9fb805ed]{-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-9fb805ed]{z-index:999;transform-origin:0 var(--33346aea);-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:#ebebeb;position:absolute;top:var(--6cac650b)}.list-box li[data-v-9fb805ed]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px)}.list-box li.active[data-v-9fb805ed]{background:var(--sb-hover-bg, #6db9f3)}.list-box li[data-v-9fb805ed]:hover{background:var(--sb-hover-bg, #cecece)}.list-box li.active[data-v-9fb805ed]:hover{background:var(--sb-hover-bg, #6db9f3)}.icon[data-v-9fb805ed]{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-9fb805ed]{color:var(--sb-label-color, #333);white-space:nowrap;font-size:16px}@media (prefers-color-scheme: dark){.list-box[data-v-9fb805ed]{-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-9fb805ed]{position:relative;display:flex;align-items:center;padding:var(--sb-pad, 10px 16px);transition:background .2s}.list-box li[data-v-9fb805ed]:hover{background:var(--sb-hover-bg, #252525)}.icon[data-v-9fb805ed]{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-9fb805ed]{color:var(--sb-label-color, #ffffff);white-space:nowrap;font-size:16px}.title[data-v-9fb805ed]{color:#fff}}.v-enter-active[data-v-9fb805ed],.v-leave-active[data-v-9fb805ed]{transition:all .15s cubic-bezier(.05,-.01,0,1)}.v-enter-from[data-v-9fb805ed],.v-leave-to[data-v-9fb805ed]{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-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)}
|
package/web-win-vue.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
const
|
|
1
|
+
import { createElementBlock as r, openBlock as u, renderSlot as C, defineComponent as g, ref as c, createElementVNode as a, createVNode as b, toDisplayString as h, Fragment as k, renderList as T, normalizeClass as y, normalizeStyle as S, watch as G, Transition as L, withCtx as M, createCommentVNode as B, withDirectives as $, vShow as R, onMounted as Z, nextTick as j, createBlock as P, unref as p, vModelCheckbox as J, vModelRadio as K, useCssVars as Q } from "vue";
|
|
2
|
+
const _ = (e, o) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [l,
|
|
5
|
-
t[l] =
|
|
4
|
+
for (const [l, s] of o)
|
|
5
|
+
t[l] = s;
|
|
6
6
|
return t;
|
|
7
|
-
},
|
|
7
|
+
}, A = {
|
|
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;`), (o, t) => (
|
|
13
|
-
|
|
12
|
+
text-shadow: 0 1px 0 #0078d7;`), (o, t) => (u(), r("button", null, [
|
|
13
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
14
14
|
]));
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, X = /* @__PURE__ */ _(A, [["__scopeId", "data-v-85a8a3fa"]]), ee = ["value", "placeholder"], I = /* @__PURE__ */ g({
|
|
17
17
|
__name: "webwin-inputbox",
|
|
18
18
|
props: { value: String, placeholder: String },
|
|
19
19
|
setup(e) {
|
|
@@ -21,24 +21,24 @@ const g = (e, o) => {
|
|
|
21
21
|
color: #0078d7;
|
|
22
22
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
23
23
|
const o = e, t = c(o.value), l = c(o.placeholder);
|
|
24
|
-
return (
|
|
24
|
+
return (s, n) => (u(), r("input", {
|
|
25
25
|
type: "text",
|
|
26
26
|
name: "fname",
|
|
27
27
|
class: "uwpinput",
|
|
28
28
|
value: t.value,
|
|
29
29
|
placeholder: l.value,
|
|
30
|
-
onChange:
|
|
31
|
-
}, null, 40,
|
|
30
|
+
onChange: n[0] || (n[0] = (i) => s.$emit("@change", i))
|
|
31
|
+
}, null, 40, ee));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), te = { class: "side-bar" }, oe = { style: { width: "var(--sb-width, 350px)", margin: "auto" } }, ne = {
|
|
34
34
|
style: { "margin-top": "26px", "margin-bottom": "26px", "margin-left": "18px" },
|
|
35
35
|
class: "title"
|
|
36
|
-
},
|
|
36
|
+
}, le = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, se = ["onClick"], ae = {
|
|
37
37
|
class: "icon",
|
|
38
38
|
viewBox: "0 0 24 24",
|
|
39
39
|
fill: "currentColor",
|
|
40
40
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
41
|
+
}, ie = ["d"], ce = { class: "label" }, ue = {
|
|
42
42
|
__name: "webwin-item",
|
|
43
43
|
props: {
|
|
44
44
|
items: { type: Array, required: !0 },
|
|
@@ -49,7 +49,7 @@ const g = (e, o) => {
|
|
|
49
49
|
setup(e) {
|
|
50
50
|
return console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
51
51
|
color: #0078d7;
|
|
52
|
-
text-shadow: 0 1px 0 #0078d7;`), (o, t) => (
|
|
52
|
+
text-shadow: 0 1px 0 #0078d7;`), (o, t) => (u(), r("ul", te, [
|
|
53
53
|
a("div", null, [
|
|
54
54
|
t[0] || (t[0] = a("li", { style: { "margin-top": "24px" } }, [
|
|
55
55
|
a("svg", {
|
|
@@ -66,32 +66,32 @@ const g = (e, o) => {
|
|
|
66
66
|
]),
|
|
67
67
|
a("span", { class: "label" }, "主页")
|
|
68
68
|
], -1)),
|
|
69
|
-
a("div",
|
|
70
|
-
b(
|
|
69
|
+
a("div", oe, [
|
|
70
|
+
b(I, {
|
|
71
71
|
placeholder: "查找",
|
|
72
72
|
style: { "margin-top": "6px", width: "320px" }
|
|
73
73
|
})
|
|
74
74
|
]),
|
|
75
|
-
a("h3",
|
|
75
|
+
a("h3", ne, h(e.title), 1)
|
|
76
76
|
]),
|
|
77
|
-
a("div",
|
|
78
|
-
(
|
|
79
|
-
key:
|
|
80
|
-
class:
|
|
81
|
-
onClick: (
|
|
77
|
+
a("div", le, [
|
|
78
|
+
(u(!0), r(k, null, T(e.items, (l, s) => (u(), r("li", {
|
|
79
|
+
key: s,
|
|
80
|
+
class: y({ active: s === e.modelValue }),
|
|
81
|
+
onClick: (n) => o.$emit("update:modelValue", s)
|
|
82
82
|
}, [
|
|
83
83
|
t[1] || (t[1] = a("span", { class: "indicator" }, null, -1)),
|
|
84
|
-
(
|
|
84
|
+
(u(), r("svg", ae, [
|
|
85
85
|
a("path", {
|
|
86
86
|
d: l.icon
|
|
87
|
-
}, null, 8,
|
|
87
|
+
}, null, 8, ie)
|
|
88
88
|
])),
|
|
89
|
-
a("span",
|
|
90
|
-
], 10,
|
|
89
|
+
a("span", ce, h(l.name), 1)
|
|
90
|
+
], 10, se))), 128))
|
|
91
91
|
])
|
|
92
92
|
]));
|
|
93
93
|
}
|
|
94
|
-
},
|
|
94
|
+
}, N = /* @__PURE__ */ _(ue, [["__scopeId", "data-v-cbab5da9"]]);
|
|
95
95
|
console.log("%c✨Welcome to Web-Win-Vue-Tile✨", `
|
|
96
96
|
color: #0078d7;
|
|
97
97
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
@@ -151,86 +151,86 @@ const re = {
|
|
|
151
151
|
this.isHovered = !1, this.glowOpacity = 0;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
},
|
|
154
|
+
}, de = { class: "tile-content" }, me = { class: "tile-icon" }, pe = {
|
|
155
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
156
|
viewBox: "0 0 24 24",
|
|
157
157
|
width: "24",
|
|
158
158
|
height: "24"
|
|
159
|
-
},
|
|
160
|
-
function
|
|
161
|
-
return
|
|
162
|
-
class:
|
|
163
|
-
style:
|
|
164
|
-
onMousemove: o[0] || (o[0] = (...i) =>
|
|
165
|
-
onMouseenter: o[1] || (o[1] = (i) =>
|
|
166
|
-
onMouseleave: o[2] || (o[2] = (...i) =>
|
|
159
|
+
}, he = ["d"], ve = { class: "tile-title" };
|
|
160
|
+
function we(e, o, t, l, s, n) {
|
|
161
|
+
return u(), r("div", {
|
|
162
|
+
class: y(["tile", t.size]),
|
|
163
|
+
style: S(n.tileStyle),
|
|
164
|
+
onMousemove: o[0] || (o[0] = (...i) => n.handleMouseMove && n.handleMouseMove(...i)),
|
|
165
|
+
onMouseenter: o[1] || (o[1] = (i) => s.isHovered = !0),
|
|
166
|
+
onMouseleave: o[2] || (o[2] = (...i) => n.handleMouseLeave && n.handleMouseLeave(...i))
|
|
167
167
|
}, [
|
|
168
|
-
a("div",
|
|
169
|
-
a("div",
|
|
170
|
-
|
|
171
|
-
(
|
|
168
|
+
a("div", de, [
|
|
169
|
+
a("div", me, [
|
|
170
|
+
C(e.$slots, "icon", {}, () => [
|
|
171
|
+
(u(), r("svg", pe, [
|
|
172
172
|
a("path", {
|
|
173
173
|
fill: "white",
|
|
174
174
|
d: t.icon
|
|
175
|
-
}, null, 8,
|
|
175
|
+
}, null, 8, he)
|
|
176
176
|
]))
|
|
177
177
|
], !0)
|
|
178
178
|
]),
|
|
179
|
-
a("div",
|
|
179
|
+
a("div", ve, h(t.title), 1)
|
|
180
180
|
]),
|
|
181
181
|
a("div", {
|
|
182
182
|
class: "glow-border",
|
|
183
|
-
style:
|
|
183
|
+
style: S(n.glowStyle)
|
|
184
184
|
}, null, 4),
|
|
185
185
|
a("div", {
|
|
186
186
|
class: "pointer-glow",
|
|
187
|
-
style:
|
|
187
|
+
style: S(n.pointerGlowStyle)
|
|
188
188
|
}, null, 4)
|
|
189
189
|
], 38);
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const Y = /* @__PURE__ */ _(re, [["render", we], ["__scopeId", "data-v-9ae9ef89"]]), _e = { class: "container" }, fe = {
|
|
192
192
|
key: "state0",
|
|
193
193
|
class: "iframe-container"
|
|
194
|
-
}, ge = ["src"],
|
|
194
|
+
}, ge = ["src"], xe = {
|
|
195
195
|
key: "state1",
|
|
196
196
|
class: "iframe-container"
|
|
197
|
-
},
|
|
197
|
+
}, be = ["src"], D = {
|
|
198
198
|
__name: "webwin-tab",
|
|
199
199
|
props: { menu: Array, url: Array },
|
|
200
200
|
setup(e) {
|
|
201
201
|
console.log("%c✨Welcome to Web-Win-Vue-Tab✨", `
|
|
202
202
|
color: #0078d7;
|
|
203
203
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
204
|
-
const o = e, t = c(0), l = c(0),
|
|
205
|
-
return
|
|
206
|
-
console.log("activeIndex changed:",
|
|
207
|
-
}), (
|
|
208
|
-
b(
|
|
204
|
+
const o = e, t = c(0), l = c(0), s = c(o.url[0]);
|
|
205
|
+
return G(t, (n) => {
|
|
206
|
+
console.log("activeIndex changed:", n), console.log("new url:", o.url[n]), s.value = o.url[n], l.value = l.value === 0 ? 1 : 0, console.log("docState:", l.value);
|
|
207
|
+
}), (n, i) => (u(), r("div", _e, [
|
|
208
|
+
b(N, {
|
|
209
209
|
modelValue: t.value,
|
|
210
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
210
|
+
"onUpdate:modelValue": i[0] || (i[0] = (v) => t.value = v),
|
|
211
211
|
items: e.menu,
|
|
212
212
|
class: "item-1"
|
|
213
213
|
}, null, 8, ["modelValue", "items"]),
|
|
214
|
-
b(
|
|
214
|
+
b(L, {
|
|
215
215
|
name: "fade",
|
|
216
216
|
mode: "out-in"
|
|
217
217
|
}, {
|
|
218
|
-
default:
|
|
219
|
-
l.value === 0 ? (
|
|
220
|
-
|
|
221
|
-
[
|
|
218
|
+
default: M(() => [
|
|
219
|
+
l.value === 0 ? (u(), r("div", fe, [
|
|
220
|
+
$(a("iframe", { src: s.value }, null, 8, ge), [
|
|
221
|
+
[R, l.value === 0]
|
|
222
222
|
])
|
|
223
|
-
])) : l.value === 1 ? (
|
|
224
|
-
|
|
225
|
-
[
|
|
223
|
+
])) : l.value === 1 ? (u(), r("div", xe, [
|
|
224
|
+
$(a("iframe", { src: s.value }, null, 8, be), [
|
|
225
|
+
[R, l.value === 1]
|
|
226
226
|
])
|
|
227
|
-
])) :
|
|
227
|
+
])) : B("", !0)
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
})
|
|
231
231
|
]));
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, ye = ["value", "placeholder"], z = /* @__PURE__ */ g({
|
|
234
234
|
__name: "webwin-passwordbox",
|
|
235
235
|
props: { value: String, placeholder: String },
|
|
236
236
|
setup(e) {
|
|
@@ -238,16 +238,16 @@ const X = /* @__PURE__ */ g(re, [["render", ve], ["__scopeId", "data-v-9ae9ef89"
|
|
|
238
238
|
color: #0078d7;
|
|
239
239
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
240
240
|
const o = e, t = c(o.value), l = c(o.placeholder);
|
|
241
|
-
return (
|
|
241
|
+
return (s, n) => (u(), r("input", {
|
|
242
242
|
type: "password",
|
|
243
243
|
name: "fname",
|
|
244
244
|
class: "uwppassword",
|
|
245
245
|
value: t.value,
|
|
246
246
|
placeholder: l.value,
|
|
247
|
-
onChange:
|
|
248
|
-
}, null, 40,
|
|
247
|
+
onChange: n[0] || (n[0] = (i) => s.$emit("@change", i))
|
|
248
|
+
}, null, 40, ye));
|
|
249
249
|
}
|
|
250
|
-
}),
|
|
250
|
+
}), $e = ["data-placeholder"], O = /* @__PURE__ */ g({
|
|
251
251
|
__name: "webwin-richeditbox",
|
|
252
252
|
props: {
|
|
253
253
|
value: { type: String, default: "" },
|
|
@@ -255,51 +255,51 @@ const X = /* @__PURE__ */ g(re, [["render", ve], ["__scopeId", "data-v-9ae9ef89"
|
|
|
255
255
|
},
|
|
256
256
|
emits: ["update:value", "change"],
|
|
257
257
|
setup(e, { emit: o }) {
|
|
258
|
-
const t = e, l = o,
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
const t = e, l = o, s = c(null), n = c(t.placeholder), i = c(t.value);
|
|
259
|
+
Z(() => {
|
|
260
|
+
s.value && (s.value.textContent = t.value || "", i.value = t.value || "");
|
|
261
261
|
});
|
|
262
|
-
const
|
|
263
|
-
if (!
|
|
264
|
-
const m =
|
|
265
|
-
l("update:value", m),
|
|
266
|
-
if (
|
|
267
|
-
const
|
|
268
|
-
|
|
262
|
+
const v = (w) => {
|
|
263
|
+
if (!s.value) return;
|
|
264
|
+
const m = s.value.textContent || "";
|
|
265
|
+
l("update:value", m), j(() => {
|
|
266
|
+
if (s.value) {
|
|
267
|
+
const d = document.createRange(), W = window.getSelection();
|
|
268
|
+
d.selectNodeContents(s.value), d.collapse(!1), W?.removeAllRanges(), W?.addRange(d);
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
}, f = (
|
|
272
|
-
const m =
|
|
271
|
+
}, f = (w) => {
|
|
272
|
+
const m = w.target;
|
|
273
273
|
m.textContent === t.placeholder && (m.textContent = "");
|
|
274
|
-
},
|
|
275
|
-
const m =
|
|
276
|
-
|
|
274
|
+
}, x = (w) => {
|
|
275
|
+
const m = w.target, d = m.textContent || "";
|
|
276
|
+
d !== i.value && (l("change", {
|
|
277
277
|
target: {
|
|
278
|
-
value:
|
|
278
|
+
value: d
|
|
279
279
|
}
|
|
280
|
-
}), i.value =
|
|
280
|
+
}), i.value = d), d.trim() === "" && (m.textContent = "");
|
|
281
281
|
};
|
|
282
|
-
return (
|
|
282
|
+
return (w, m) => (u(), r("div", {
|
|
283
283
|
ref_key: "editableDiv",
|
|
284
|
-
ref:
|
|
284
|
+
ref: s,
|
|
285
285
|
class: "uwprichrditbox",
|
|
286
286
|
contenteditable: "plaintext-only",
|
|
287
|
-
"data-placeholder":
|
|
288
|
-
onInput:
|
|
287
|
+
"data-placeholder": n.value,
|
|
288
|
+
onInput: v,
|
|
289
289
|
onFocus: f,
|
|
290
|
-
onBlur:
|
|
291
|
-
}, null, 40,
|
|
290
|
+
onBlur: x
|
|
291
|
+
}, null, 40, $e));
|
|
292
292
|
}
|
|
293
|
-
}),
|
|
293
|
+
}), Ce = ["src"], ke = {
|
|
294
294
|
class: "n-name",
|
|
295
295
|
style: { display: "inline-block", "margin-left": "6px" }
|
|
296
|
-
},
|
|
296
|
+
}, We = { class: "n-text n-title" }, Ve = { class: "n-vulua" }, H = {
|
|
297
297
|
__name: "webwin-notifications",
|
|
298
298
|
props: { name: String, title: String, text: String, img: String },
|
|
299
299
|
setup(e, { expose: o }) {
|
|
300
300
|
const t = e;
|
|
301
|
-
let l = c(!1),
|
|
302
|
-
const
|
|
301
|
+
let l = c(!1), s = c(t.img);
|
|
302
|
+
const n = () => {
|
|
303
303
|
l.value = !l.value;
|
|
304
304
|
};
|
|
305
305
|
function i() {
|
|
@@ -307,83 +307,83 @@ const X = /* @__PURE__ */ g(re, [["render", ve], ["__scopeId", "data-v-9ae9ef89"
|
|
|
307
307
|
l.value = !1;
|
|
308
308
|
}, 250);
|
|
309
309
|
}
|
|
310
|
-
return o({ showNotification:
|
|
310
|
+
return o({ showNotification: n }), console.log("%c✨Welcome to Web-Win-Vue-Notifications✨", `
|
|
311
311
|
color: #0078d7;
|
|
312
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
313
|
-
default:
|
|
314
|
-
|
|
312
|
+
text-shadow: 0 1px 0 #0078d7;`), (v, f) => (u(), P(L, { name: "slide-fade" }, {
|
|
313
|
+
default: M(() => [
|
|
314
|
+
p(l) ? (u(), r("div", {
|
|
315
315
|
key: 0,
|
|
316
316
|
class: "Notification",
|
|
317
317
|
onClick: i
|
|
318
318
|
}, [
|
|
319
319
|
a("img", {
|
|
320
|
-
src:
|
|
320
|
+
src: p(s),
|
|
321
321
|
style: { "object-fit": "contain", "margin-left": "16px", "margin-right": "0px", display: "inline-block", "vertical-align": "middle", width: "16px", height: "16px" }
|
|
322
|
-
}, null, 8,
|
|
323
|
-
a("p",
|
|
324
|
-
a("h4",
|
|
325
|
-
a("p",
|
|
326
|
-
])) :
|
|
322
|
+
}, null, 8, Ce),
|
|
323
|
+
a("p", ke, h(e.name), 1),
|
|
324
|
+
a("h4", We, h(e.title), 1),
|
|
325
|
+
a("p", Ve, h(e.text), 1)
|
|
326
|
+
])) : B("", !0)
|
|
327
327
|
]),
|
|
328
328
|
_: 1
|
|
329
329
|
}));
|
|
330
330
|
}
|
|
331
|
-
},
|
|
331
|
+
}, Se = ["name", "id"], Le = ["for"], Me = /* @__PURE__ */ g({
|
|
332
332
|
__name: "webwin-checkbox",
|
|
333
333
|
props: { name: String, checked: Array },
|
|
334
334
|
setup(e) {
|
|
335
335
|
const o = e, t = c(o.name), l = c(o.checked);
|
|
336
336
|
return console.log("%c✨Welcome to Web-Win-Vue-Checkbox✨", `
|
|
337
337
|
color: #0078d7;
|
|
338
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
339
|
-
|
|
338
|
+
text-shadow: 0 1px 0 #0078d7;`), (s, n) => (u(), r(k, null, [
|
|
339
|
+
$(a("input", {
|
|
340
340
|
type: "checkbox",
|
|
341
341
|
class: "ww-checkbox",
|
|
342
342
|
name: t.value,
|
|
343
343
|
id: t.value,
|
|
344
|
-
"onUpdate:modelValue":
|
|
345
|
-
onClick:
|
|
346
|
-
}, null, 8,
|
|
347
|
-
[
|
|
344
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
345
|
+
onClick: n[1] || (n[1] = (i) => s.$emit("click", i))
|
|
346
|
+
}, null, 8, Se), [
|
|
347
|
+
[J, l.value]
|
|
348
348
|
]),
|
|
349
349
|
a("label", {
|
|
350
350
|
for: t.value,
|
|
351
351
|
class: "ww-checkbox-label"
|
|
352
352
|
}, [
|
|
353
|
-
|
|
354
|
-
], 8,
|
|
353
|
+
C(s.$slots, "default", {}, void 0, !0)
|
|
354
|
+
], 8, Le)
|
|
355
355
|
], 64));
|
|
356
356
|
}
|
|
357
|
-
}),
|
|
357
|
+
}), E = /* @__PURE__ */ _(Me, [["__scopeId", "data-v-c289ea76"]]), Be = ["name", "id"], Ie = ["for"], Ne = /* @__PURE__ */ g({
|
|
358
358
|
__name: "webwin-radio",
|
|
359
359
|
props: { name: String, checked: Array },
|
|
360
360
|
setup(e) {
|
|
361
361
|
const o = e, t = c(o.name), l = c(o.checked);
|
|
362
362
|
return console.log("%c✨Welcome to Web-Win-Vue-radio✨", `
|
|
363
363
|
color: #0078d7;
|
|
364
|
-
text-shadow: 0 1px 0 #0078d7;`), (
|
|
365
|
-
|
|
364
|
+
text-shadow: 0 1px 0 #0078d7;`), (s, n) => (u(), r(k, null, [
|
|
365
|
+
$(a("input", {
|
|
366
366
|
type: "radio",
|
|
367
367
|
class: "ww-radio",
|
|
368
368
|
name: t.value,
|
|
369
369
|
id: t.value,
|
|
370
|
-
"onUpdate:modelValue":
|
|
371
|
-
onClick:
|
|
372
|
-
}, null, 8,
|
|
373
|
-
[
|
|
370
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
371
|
+
onClick: n[1] || (n[1] = (i) => s.$emit("click", i))
|
|
372
|
+
}, null, 8, Be), [
|
|
373
|
+
[K, l.value]
|
|
374
374
|
]),
|
|
375
375
|
a("label", {
|
|
376
376
|
for: t.value,
|
|
377
377
|
class: "ww-radio-label"
|
|
378
378
|
}, [
|
|
379
|
-
|
|
380
|
-
], 8,
|
|
379
|
+
C(s.$slots, "default", {}, void 0, !0)
|
|
380
|
+
], 8, Ie)
|
|
381
381
|
], 64));
|
|
382
382
|
}
|
|
383
|
-
}),
|
|
383
|
+
}), F = /* @__PURE__ */ _(Ne, [["__scopeId", "data-v-78978c8c"]]), Re = { style: { position: "relative" } }, Te = {
|
|
384
384
|
key: 0,
|
|
385
385
|
class: "list-box"
|
|
386
|
-
},
|
|
386
|
+
}, Xe = { style: { overflow: "auto", height: "calc( 100% - 240px )" } }, Ye = ["onClick"], De = { class: "label" }, ze = {
|
|
387
387
|
__name: "webwin-listbox",
|
|
388
388
|
props: {
|
|
389
389
|
items: { type: Array, required: !0 },
|
|
@@ -392,60 +392,63 @@ const X = /* @__PURE__ */ g(re, [["render", ve], ["__scopeId", "data-v-9ae9ef89"
|
|
|
392
392
|
},
|
|
393
393
|
emits: ["update"],
|
|
394
394
|
setup(e, { emit: o }) {
|
|
395
|
-
|
|
396
|
-
"
|
|
397
|
-
"
|
|
395
|
+
Q((d) => ({
|
|
396
|
+
"4c8120fa": p(x) + "px",
|
|
397
|
+
"1ae8acfb": p(f) + "px"
|
|
398
398
|
})), console.log("%c✨Welcome to Web-Win-Vue-Item✨", `
|
|
399
399
|
color: #0078d7;
|
|
400
400
|
text-shadow: 0 1px 0 #0078d7;`);
|
|
401
401
|
const t = e, l = o;
|
|
402
|
-
let n = c(!1),
|
|
403
|
-
function
|
|
404
|
-
n.value = !1, s.value =
|
|
405
|
-
|
|
406
|
-
},
|
|
402
|
+
let s = c(""), n = c(!1), i = c(t.modelValue), v = c(t.title), f = c(0), x = c(0);
|
|
403
|
+
function w(d) {
|
|
404
|
+
n.value = !1, s.value = "", i.value = d, v.value = t.items[d].name, l("update", d), setTimeout(() => {
|
|
405
|
+
f.value = d * -35, x.value = d * 35 + 17.5;
|
|
406
|
+
}, 100);
|
|
407
|
+
}
|
|
408
|
+
function m() {
|
|
409
|
+
n.value = !n.value, s.value = n.value ? "active" : "";
|
|
407
410
|
}
|
|
408
|
-
return (d,
|
|
411
|
+
return (d, W) => (u(), r("div", Re, [
|
|
409
412
|
a("div", {
|
|
410
|
-
class: "list-box-button",
|
|
411
|
-
onClick: m
|
|
412
|
-
},
|
|
413
|
-
b(
|
|
414
|
-
default:
|
|
415
|
-
|
|
416
|
-
a("div",
|
|
417
|
-
(
|
|
418
|
-
key:
|
|
419
|
-
class:
|
|
420
|
-
onClick: (
|
|
413
|
+
class: y(["list-box-button", p(s)]),
|
|
414
|
+
onClick: m
|
|
415
|
+
}, h(p(v)), 3),
|
|
416
|
+
b(L, null, {
|
|
417
|
+
default: M(() => [
|
|
418
|
+
p(n) ? (u(), r("ul", Te, [
|
|
419
|
+
a("div", Xe, [
|
|
420
|
+
(u(!0), r(k, null, T(e.items, (q, V) => (u(), r("li", {
|
|
421
|
+
key: V,
|
|
422
|
+
class: y({ active: V === p(i) }),
|
|
423
|
+
onClick: (He) => w(V)
|
|
421
424
|
}, [
|
|
422
|
-
a("span",
|
|
423
|
-
], 10,
|
|
425
|
+
a("span", De, h(q.name), 1)
|
|
426
|
+
], 10, Ye))), 128))
|
|
424
427
|
])
|
|
425
|
-
])) :
|
|
428
|
+
])) : B("", !0)
|
|
426
429
|
]),
|
|
427
430
|
_: 1
|
|
428
431
|
})
|
|
429
432
|
]));
|
|
430
433
|
}
|
|
431
|
-
},
|
|
434
|
+
}, U = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-5fe19256"]]), Oe = [U, F, E, X, N, Y, D, I, z, O, H], Fe = {
|
|
432
435
|
install(e) {
|
|
433
|
-
|
|
434
|
-
e.component("winbutton",
|
|
436
|
+
Oe.forEach((o) => {
|
|
437
|
+
e.component("winbutton", X), e.component("winitem", N), e.component("wintile", Y), e.component("wintab", D), e.component("wininputbox", I), e.component("winpasswordbox", z), e.component("winricheditbox", O), e.component("winnotifications", H), e.component("wincheckbox", E), e.component("winradio", F), e.component("winlistbox", U);
|
|
435
438
|
});
|
|
436
439
|
}
|
|
437
440
|
};
|
|
438
441
|
export {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
442
|
+
Fe as default,
|
|
443
|
+
X as winbutton,
|
|
444
|
+
E as wincheckbox,
|
|
445
|
+
I as wininputbox,
|
|
446
|
+
N as winitem,
|
|
447
|
+
U as winlistbox,
|
|
448
|
+
H as winnotifications,
|
|
449
|
+
z as winpasswordbox,
|
|
450
|
+
F as winradio,
|
|
451
|
+
O as winricheditbox,
|
|
452
|
+
D as wintab,
|
|
453
|
+
Y as wintile
|
|
451
454
|
};
|
package/web-win-vue.umd.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s["web-win-vue"]={},s.Vue))})(this,(function(s,e){"use strict";const u=(t,n)=>{const o=t.__vccOpts||t;for(const[a,i]of n)o[a]=i;return o},g=u({__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;`),(n,o)=>(e.openBlock(),e.createElementBlock("button",null,[e.renderSlot(n.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-85a8a3fa"]]),
|
|
3
|
+
text-shadow: 0 1px 0 #0078d7;`),(n,o)=>(e.openBlock(),e.createElementBlock("button",null,[e.renderSlot(n.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-85a8a3fa"]]),S=["value","placeholder"],f=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 n=t,o=e.ref(n.value),a=e.ref(n.placeholder);return(l
|
|
5
|
+
text-shadow: 0 1px 0 #0078d7;`);const n=t,o=e.ref(n.value),a=e.ref(n.placeholder);return(i,l)=>(e.openBlock(),e.createElementBlock("input",{type:"text",name:"fname",class:"uwpinput",value:o.value,placeholder:a.value,onChange:l[0]||(l[0]=c=>i.$emit("@change",c))},null,40,S))}}),W={class:"side-bar"},L={style:{width:"var(--sb-width, 350px)",margin:"auto"}},M={style:{"margin-top":"26px","margin-bottom":"26px","margin-left":"18px"},class:"title"},D={style:{overflow:"auto",height:"calc( 100% - 240px )"}},T=["onClick"],I={class:"icon",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},z=["d"],R={class:"label"},w=u({__name:"webwin-item",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"Menu"}},emits:["update:modelValue"],setup(t){return console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
6
6
|
color: #0078d7;
|
|
7
|
-
text-shadow: 0 1px 0 #0078d7;`),(n,o)=>(e.openBlock(),e.createElementBlock("ul",
|
|
7
|
+
text-shadow: 0 1px 0 #0078d7;`),(n,o)=>(e.openBlock(),e.createElementBlock("ul",W,[e.createElementVNode("div",null,[o[0]||(o[0]=e.createElementVNode("li",{style:{"margin-top":"24px"}},[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 "})]),e.createElementVNode("span",{class:"label"},"主页")],-1)),e.createElementVNode("div",L,[e.createVNode(f,{placeholder:"查找",style:{"margin-top":"6px",width:"320px"}})]),e.createElementVNode("h3",M,e.toDisplayString(t.title),1)]),e.createElementVNode("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(a,i)=>(e.openBlock(),e.createElementBlock("li",{key:i,class:e.normalizeClass({active:i===t.modelValue}),onClick:l=>n.$emit("update:modelValue",i)},[o[1]||(o[1]=e.createElementVNode("span",{class:"indicator"},null,-1)),(e.openBlock(),e.createElementBlock("svg",I,[e.createElementVNode("path",{d:a.icon},null,8,z)])),e.createElementVNode("span",R,e.toDisplayString(a.name),1)],10,T))),128))])]))}},[["__scopeId","data-v-cbab5da9"]]);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 X={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 n=t.currentTarget.getBoundingClientRect();this.mouseX=t.clientX-n.left,this.mouseY=t.clientY-n.top;const o=Math.min(this.mouseX,n.width-this.mouseX,this.mouseY,n.height-this.mouseY),a=this.glowRadius;this.glowOpacity=Math.max(0,(a-o)/a)},handleMouseLeave(){this.isHovered=!1,this.glowOpacity=0}}},Y={class:"tile-content"},F={class:"tile-icon"},O={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},H=["d"],j={class:"tile-title"};function q(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tile",o.size]),style:e.normalizeStyle(l.tileStyle),onMousemove:n[0]||(n[0]=(...c)=>l.handleMouseMove&&l.handleMouseMove(...c)),onMouseenter:n[1]||(n[1]=c=>i.isHovered=!0),onMouseleave:n[2]||(n[2]=(...c)=>l.handleMouseLeave&&l.handleMouseLeave(...c))},[e.createElementVNode("div",Y,[e.createElementVNode("div",F,[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createElementBlock("svg",O,[e.createElementVNode("path",{fill:"white",d:o.icon},null,8,H)]))],!0)]),e.createElementVNode("div",j,e.toDisplayString(o.title),1)]),e.createElementVNode("div",{class:"glow-border",style:e.normalizeStyle(l.glowStyle)},null,4),e.createElementVNode("div",{class:"pointer-glow",style:e.normalizeStyle(l.pointerGlowStyle)},null,4)],38)}const b=u(X,[["render",q],["__scopeId","data-v-9ae9ef89"]]),U={class:"container"},G={key:"state0",class:"iframe-container"},P=["src"],Z={key:"state1",class:"iframe-container"},J=["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 n=t,o=e.ref(0),a=e.ref(0),
|
|
11
|
+
text-shadow: 0 1px 0 #0078d7;`);const n=t,o=e.ref(0),a=e.ref(0),i=e.ref(n.url[0]);return e.watch(o,l=>{console.log("activeIndex changed:",l),console.log("new url:",n.url[l]),i.value=n.url[l],a.value=a.value===0?1:0,console.log("docState:",a.value)}),(l,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(w,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=m=>o.value=m),items:t.menu,class:"item-1"},null,8,["modelValue","items"]),e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[a.value===0?(e.openBlock(),e.createElementBlock("div",G,[e.withDirectives(e.createElementVNode("iframe",{src:i.value},null,8,P),[[e.vShow,a.value===0]])])):a.value===1?(e.openBlock(),e.createElementBlock("div",Z,[e.withDirectives(e.createElementVNode("iframe",{src:i.value},null,8,J),[[e.vShow,a.value===1]])])):e.createCommentVNode("",!0)]),_:1})]))}},K=["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 n=t,o=e.ref(n.value),a=e.ref(n.placeholder);return(l
|
|
13
|
+
text-shadow: 0 1px 0 #0078d7;`);const n=t,o=e.ref(n.value),a=e.ref(n.placeholder);return(i,l)=>(e.openBlock(),e.createElementBlock("input",{type:"password",name:"fname",class:"uwppassword",value:o.value,placeholder:a.value,onChange:l[0]||(l[0]=c=>i.$emit("@change",c))},null,40,K))}}),Q=["data-placeholder"],y=e.defineComponent({__name:"webwin-richeditbox",props:{value:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","change"],setup(t,{emit:n}){const o=t,a=n,i=e.ref(null),l=e.ref(o.placeholder),c=e.ref(o.value);e.onMounted(()=>{i.value&&(i.value.textContent=o.value||"",c.value=o.value||"")});const m=p=>{if(!i.value)return;const d=i.value.textContent||"";a("update:value",d),e.nextTick(()=>{if(i.value){const r=document.createRange(),$=window.getSelection();r.selectNodeContents(i.value),r.collapse(!1),$?.removeAllRanges(),$?.addRange(r)}})},h=p=>{const d=p.target;d.textContent===o.placeholder&&(d.textContent="")},_=p=>{const d=p.target,r=d.textContent||"";r!==c.value&&(a("change",{target:{value:r}}),c.value=r),r.trim()===""&&(d.textContent="")};return(p,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"editableDiv",ref:i,class:"uwprichrditbox",contenteditable:"plaintext-only","data-placeholder":l.value,onInput:m,onFocus:h,onBlur:_},null,40,Q))}}),A=["src"],v={class:"n-name",style:{display:"inline-block","margin-left":"6px"}},ee={class:"n-text n-title"},te={class:"n-vulua"},V={__name:"webwin-notifications",props:{name:String,title:String,text:String,img:String},setup(t,{expose:n}){const o=t;let a=e.ref(!1),i=e.ref(o.img);const l=()=>{a.value=!a.value};function c(){a.value&&setTimeout(()=>{a.value=!1},250)}return n({showNotification:l}),console.log("%c✨Welcome to Web-Win-Vue-Notifications✨",`
|
|
14
14
|
color: #0078d7;
|
|
15
|
-
text-shadow: 0 1px 0 #0078d7;`),(
|
|
15
|
+
text-shadow: 0 1px 0 #0078d7;`),(m,h)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"Notification",onClick:c},[e.createElementVNode("img",{src:e.unref(i),style:{"object-fit":"contain","margin-left":"16px","margin-right":"0px",display:"inline-block","vertical-align":"middle",width:"16px",height:"16px"}},null,8,A),e.createElementVNode("p",v,e.toDisplayString(t.name),1),e.createElementVNode("h4",ee,e.toDisplayString(t.title),1),e.createElementVNode("p",te,e.toDisplayString(t.text),1)])):e.createCommentVNode("",!0)]),_:1}))}},oe=["name","id"],ne=["for"],C=u(e.defineComponent({__name:"webwin-checkbox",props:{name:String,checked:Array},setup(t){const n=t,o=e.ref(n.name),a=e.ref(n.checked);return console.log("%c✨Welcome to Web-Win-Vue-Checkbox✨",`
|
|
16
16
|
color: #0078d7;
|
|
17
|
-
text-shadow: 0 1px 0 #0078d7;`),(l
|
|
17
|
+
text-shadow: 0 1px 0 #0078d7;`),(i,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"ww-checkbox",name:o.value,id:o.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),onClick:l[1]||(l[1]=c=>i.$emit("click",c))},null,8,oe),[[e.vModelCheckbox,a.value]]),e.createElementVNode("label",{for:o.value,class:"ww-checkbox-label"},[e.renderSlot(i.$slots,"default",{},void 0,!0)],8,ne)],64))}}),[["__scopeId","data-v-c289ea76"]]),le=["name","id"],ae=["for"],B=u(e.defineComponent({__name:"webwin-radio",props:{name:String,checked:Array},setup(t){const n=t,o=e.ref(n.name),a=e.ref(n.checked);return console.log("%c✨Welcome to Web-Win-Vue-radio✨",`
|
|
18
18
|
color: #0078d7;
|
|
19
|
-
text-shadow: 0 1px 0 #0078d7;`),(l
|
|
19
|
+
text-shadow: 0 1px 0 #0078d7;`),(i,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("input",{type:"radio",class:"ww-radio",name:o.value,id:o.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),onClick:l[1]||(l[1]=c=>i.$emit("click",c))},null,8,le),[[e.vModelRadio,a.value]]),e.createElementVNode("label",{for:o.value,class:"ww-radio-label"},[e.renderSlot(i.$slots,"default",{},void 0,!0)],8,ae)],64))}}),[["__scopeId","data-v-78978c8c"]]),ie={style:{position:"relative"}},ce={key:0,class:"list-box"},se={style:{overflow:"auto",height:"calc( 100% - 240px )"}},re=["onClick"],de={class:"label"},E=u({__name:"webwin-listbox",props:{items:{type:Array,required:!0},modelValue:{type:Number,default:0},title:{type:String,default:"itembox"}},emits:["update"],setup(t,{emit:n}){e.useCssVars(r=>({"4c8120fa":e.unref(_)+"px","1ae8acfb":e.unref(h)+"px"})),console.log("%c✨Welcome to Web-Win-Vue-Item✨",`
|
|
20
20
|
color: #0078d7;
|
|
21
|
-
text-shadow: 0 1px 0 #0078d7;`);const o=t,a=n;let l=e.ref(!1),
|
|
21
|
+
text-shadow: 0 1px 0 #0078d7;`);const o=t,a=n;let i=e.ref(""),l=e.ref(!1),c=e.ref(o.modelValue),m=e.ref(o.title),h=e.ref(0),_=e.ref(0);function p(r){l.value=!1,i.value="",c.value=r,m.value=o.items[r].name,a("update",r),setTimeout(()=>{h.value=r*-35,_.value=r*35+17.5},100)}function d(){l.value=!l.value,i.value=l.value?"active":""}return(r,$)=>(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",{class:e.normalizeClass(["list-box-button",e.unref(i)]),onClick:d},e.toDisplayString(e.unref(m)),3),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(l)?(e.openBlock(),e.createElementBlock("ul",ce,[e.createElementVNode("div",se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(ue,N)=>(e.openBlock(),e.createElementBlock("li",{key:N,class:e.normalizeClass({active:N===e.unref(c)}),onClick:be=>p(N)},[e.createElementVNode("span",de,e.toDisplayString(ue.name),1)],10,re))),128))])])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-5fe19256"]]),me=[E,B,C,g,w,b,x,f,k,y,V],pe={install(t){me.forEach(n=>{t.component("winbutton",g),t.component("winitem",w),t.component("wintile",b),t.component("wintab",x),t.component("wininputbox",f),t.component("winpasswordbox",k),t.component("winricheditbox",y),t.component("winnotifications",V),t.component("wincheckbox",C),t.component("winradio",B),t.component("winlistbox",E)})}};s.default=pe,s.winbutton=g,s.wincheckbox=C,s.wininputbox=f,s.winitem=w,s.winlistbox=E,s.winnotifications=V,s.winpasswordbox=k,s.winradio=B,s.winricheditbox=y,s.wintab=x,s.wintile=b,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|