web-win-vue 0.3.1 → 0.4.0

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