solely 0.4.3 → 0.4.5

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.
Files changed (34) hide show
  1. package/dist/components/commands/index.d.ts +1 -1
  2. package/dist/components/commands/message/index.cjs +1 -1
  3. package/dist/components/commands/message/index.js +1 -1
  4. package/dist/components/commands/message/style.css.cjs +1 -1
  5. package/dist/components/commands/message/style.css.js +1 -1
  6. package/dist/components/commands/message/types.d.ts +11 -0
  7. package/dist/components/elements/icon/index.cjs +1 -0
  8. package/dist/components/elements/icon/index.d.ts +107 -0
  9. package/dist/components/elements/icon/index.html.cjs +1 -0
  10. package/dist/components/elements/icon/index.html.js +1 -0
  11. package/dist/components/elements/icon/index.js +1 -0
  12. package/dist/components/elements/icon/style.css.cjs +1 -0
  13. package/dist/components/elements/icon/style.css.js +1 -0
  14. package/dist/components/elements/icon/types.d.ts +24 -0
  15. package/dist/components/elements/index.cjs +1 -1
  16. package/dist/components/elements/index.d.ts +4 -0
  17. package/dist/components/elements/index.js +1 -1
  18. package/dist/components/elements/not-found/index.cjs +1 -0
  19. package/dist/components/elements/not-found/index.d.ts +10 -0
  20. package/dist/components/elements/not-found/index.html.cjs +1 -0
  21. package/dist/components/elements/not-found/index.html.js +1 -0
  22. package/dist/components/elements/not-found/index.js +1 -0
  23. package/dist/components/elements/not-found/style.css.cjs +1 -0
  24. package/dist/components/elements/not-found/style.css.js +1 -0
  25. package/dist/components/elements/not-found/types.d.ts +20 -0
  26. package/dist/components/elements/select/option.d.ts +18 -0
  27. package/dist/components/index.cjs +1 -1
  28. package/dist/components/index.js +1 -1
  29. package/dist/icons/bootstrap-icons.svg +1 -0
  30. package/dist/router/router-view.cjs +1 -1
  31. package/dist/router/router-view.d.ts +3 -1
  32. package/dist/router/router-view.js +1 -1
  33. package/dist/router/types.d.ts +4 -0
  34. package/package.json +1 -1
@@ -6,7 +6,7 @@ export { Modal } from './modal';
6
6
  export { Tooltip } from './tooltip';
7
7
  export { Drawer } from './drawer';
8
8
  export { Popconfirm } from './popconfirm';
9
- export type { MessageOptions, MessageInstance, MessageConfig, MessageType } from './message/types';
9
+ export type { MessageOptions, MessageInstance, MessageConfig, MessageType, MessagePlacement } from './message/types';
10
10
  export type { ModalOptions, ModalInstance, ModalConfig, ModalType, ModalButton } from './modal/types';
11
11
  export type { TooltipOptions, TooltipInstance, TooltipConfig, TooltipPlacement, TooltipTrigger } from './tooltip/types';
12
12
  export type { DrawerOptions, DrawerInstance, DrawerConfig, DrawerPlacement } from './drawer/types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils.cjs"),t=require("./style.css.cjs"),n={duration:3e3,maxCount:5,gap:8,top:24};let o,i=null,s=null;const c=new Set,r=[],a={info:"ℹ",success:"✓",warning:"⚠",error:"✕",loading:e.createElement("span",{className:"message__loading-spinner"})};function l(t,n){const o=e.createElement("span",{className:`message__icon message__icon--${n}`});return"string"==typeof t?o.textContent=t:o.appendChild(t.cloneNode(!0)),o}async function d(t){var n;if(!c.has(t)){c.add(t);try{const c=r.findIndex(e=>e.id===t);if(-1===c)return;const l=r[c];l.timer&&(clearTimeout(l.timer),l.timer=void 0),await e.addClosingAnimation(l.element,e.ANIMATION_DURATION.NORMAL),l.element.remove();const d=r.findIndex(e=>e.id===t);-1!==d&&r.splice(d,1);try{null==(n=l.onClose)||n.call(l)}catch(a){console.error("[Solely Message] onClose callback error:",a)}o&&clearTimeout(o),o=window.setTimeout(()=>{0===r.length&&i&&(s&&(s.disconnect(),s=null),i.remove(),i=null),o=void 0},300)}finally{c.delete(t)}}}function p(o){const c=e.generateId(),p=function(){if(!i){i=e.createElement("div",{className:"message-container",styles:{top:`${n.top}px`}});const c=document.documentElement.getAttribute("data-theme");c&&i.setAttribute("data-theme",c),document.body.appendChild(i),e.injectStyle("solely-message-styles",t.default),o=i,s&&s.disconnect(),s=new MutationObserver(()=>{const e=document.documentElement.getAttribute("data-theme");e?o.setAttribute("data-theme",e):o.removeAttribute("data-theme")}),s.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}var o;return i}();r.length>=n.maxCount&&d(r[0].id);const u=function(t,n){const o=t.type||"info",i=!1!==t.showIcon,s=e.createElement("div",{className:`message message--${o}${t.className?` ${t.className}`:""}`,styles:t.style});if(s.setAttribute("role","error"===o||"warning"===o?"alert":"status"),s.setAttribute("aria-live","error"===o||"warning"===o?"assertive":"polite"),i){const e=t.icon?l(t.icon,o):l(a[o],o);s.appendChild(e)}const c=e.createElement("span",{className:"message__content"}),r=e.createElement("span",{className:"message__text"});if("string"==typeof t.content?r.textContent=t.content:t.content instanceof HTMLElement&&r.appendChild(t.content.cloneNode(!0)),c.appendChild(r),t.description){const n=e.createElement("span",{className:"message__description"});"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0)),c.appendChild(n)}if(s.appendChild(c),t.closable){const t=e.createElement("button",{className:"message__close",textContent:"×",attrs:{type:"button","aria-label":"关闭"}});t.onclick=()=>d(n),s.appendChild(t)}return s}(o,c);p.appendChild(u);const m={id:c,element:u,onClose:o.onClose},f=o.duration??n.duration;return f>0&&(m.timer=window.setTimeout(()=>{d(c)},f)),r.push(m),{close:()=>d(c),update:t=>{if("string"==typeof t||t instanceof HTMLElement){const e=u.querySelector(".message__text");return void(e&&(e.innerHTML="","string"==typeof t?e.textContent=t:t instanceof HTMLElement&&e.appendChild(t.cloneNode(!0))))}if(void 0!==t.content){const e=u.querySelector(".message__text");e&&(e.innerHTML="","string"==typeof t.content?e.textContent=t.content:t.content instanceof HTMLElement&&e.appendChild(t.content.cloneNode(!0)))}if(void 0!==t.description){let n=u.querySelector(".message__description");if(!n&&t.description){n=e.createElement("span",{className:"message__description"}),"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0));const o=u.querySelector(".message__content");null==o||o.appendChild(n)}else n&&(t.description?(n.innerHTML="","string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0))):n.remove())}}}}const u={open:p,info:function(e,t){return p({content:e,type:"info",..."number"==typeof t?{duration:t}:t})},success:function(e,t){return p({content:e,type:"success",..."number"==typeof t?{duration:t}:t})},warning:function(e,t){return p({content:e,type:"warning",..."number"==typeof t?{duration:t}:t})},error:function(e,t){return p({content:e,type:"error",..."number"==typeof t?{duration:t}:t})},loading:function(e,t){return p(void 0===t?{content:e,type:"loading",duration:0,closable:!0}:"number"==typeof t?{content:e,type:"loading",duration:t,closable:!0}:{content:e,type:"loading",duration:0,closable:!0,...t})},config:function(e){Object.assign(n,e),void 0!==e.top&&i&&(i.style.top=`${e.top}px`)},destroy:async function(){o&&(clearTimeout(o),o=void 0);const e=[...r];await Promise.all(e.map(e=>d(e.id)))}};exports.Message=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils.cjs"),t=require("./style.css.cjs"),n={duration:3e3,maxCount:5,gap:8,top:24,bottom:24,left:24,right:24,placement:"top"};let o,i=null;const s=new Set,a=[],r={info:"ℹ",success:"✓",warning:"⚠",error:"✕",loading:e.createElement("span",{className:"message__loading-spinner"})},c=new Map;function l(t,n){const o=e.createElement("span",{className:`message__icon message__icon--${n}`});return"string"==typeof t?o.textContent=t:o.appendChild(t.cloneNode(!0)),o}async function p(t){var n;if(!s.has(t)){s.add(t);try{const s=a.findIndex(e=>e.id===t);if(-1===s)return;const l=a[s];l.timer&&(clearTimeout(l.timer),l.timer=void 0),await e.addClosingAnimation(l.element,e.ANIMATION_DURATION.NORMAL),l.element.remove();const p=a.findIndex(e=>e.id===t);-1!==p&&a.splice(p,1);try{null==(n=l.onClose)||n.call(l)}catch(r){console.error("[Solely Message] onClose callback error:",r)}o&&clearTimeout(o),o=window.setTimeout(()=>{0===a.length&&(c.forEach((e,t)=>{0===e.childElementCount&&(e.remove(),c.delete(t))}),0===c.size&&i&&(i.disconnect(),i=null)),o=void 0},300)}finally{s.delete(t)}}}function d(o){const s=e.generateId(),d=o.placement||n.placement,m=function(o=n.placement){const s=o;if(c.has(s))return c.get(s);const a=e.createElement("div",{className:"message-container"}),r={position:"fixed",display:"flex",flexDirection:"column",gap:`${n.gap}px`,pointerEvents:"none",zIndex:"var(--solely-z-index-toast)"};switch(o){case"top":r.top=`${n.top}px`,r.left="50%",r.transform="translateX(-50%)";break;case"topLeft":r.top=`${n.top}px`,r.left=`${n.left}px`,r.alignItems="flex-start";break;case"topRight":r.top=`${n.top}px`,r.right=`${n.right}px`,r.alignItems="flex-end";break;case"bottom":r.bottom=`${n.bottom}px`,r.left="50%",r.transform="translateX(-50%)";break;case"bottomLeft":r.bottom=`${n.bottom}px`,r.left=`${n.left}px`,r.alignItems="flex-start";break;case"bottomRight":r.bottom=`${n.bottom}px`,r.right=`${n.right}px`,r.alignItems="flex-end";break;case"left":r.top="50%",r.left=`${n.left}px`,r.transform="translateY(-50%)",r.alignItems="flex-start";break;case"right":r.top="50%",r.right=`${n.right}px`,r.transform="translateY(-50%)",r.alignItems="flex-end"}Object.assign(a.style,r);const l=document.documentElement.getAttribute("data-theme");return l&&a.setAttribute("data-theme",l),document.body.appendChild(a),e.injectStyle("solely-message-styles",t.default),function(e){i&&i.disconnect(),i=new MutationObserver(()=>{const t=document.documentElement.getAttribute("data-theme");t?e.setAttribute("data-theme",t):e.removeAttribute("data-theme")}),i.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}(a),c.set(s,a),a}(d),u=a.filter(e=>e.placement===d);if(u.length>=n.maxCount){const e=u[0];e&&p(e.id)}const f=function(t,n){const o=t.type||"info",i=!1!==t.showIcon,s=e.createElement("div",{className:`message message--${o}${t.className?` ${t.className}`:""}`,styles:t.style});if(s.setAttribute("role","error"===o||"warning"===o?"alert":"status"),s.setAttribute("aria-live","error"===o||"warning"===o?"assertive":"polite"),i){const e=t.icon?l(t.icon,o):l(r[o],o);s.appendChild(e)}const a=e.createElement("span",{className:"message__content"}),c=e.createElement("span",{className:"message__text"});if("string"==typeof t.content?c.textContent=t.content:t.content instanceof HTMLElement&&c.appendChild(t.content.cloneNode(!0)),a.appendChild(c),t.description){const n=e.createElement("span",{className:"message__description"});"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0)),a.appendChild(n)}if(s.appendChild(a),t.closable){const t=e.createElement("button",{className:"message__close",textContent:"×",attrs:{type:"button","aria-label":"关闭"}});t.onclick=()=>p(n),s.appendChild(t)}return s}(o,s);m.appendChild(f);const g={id:s,element:f,onClose:o.onClose,placement:d},b=o.duration??n.duration;return b>0&&(g.timer=window.setTimeout(()=>{p(s)},b)),a.push(g),{close:()=>p(s),update:t=>{if("string"==typeof t||t instanceof HTMLElement){const e=f.querySelector(".message__text");return void(e&&(e.innerHTML="","string"==typeof t?e.textContent=t:t instanceof HTMLElement&&e.appendChild(t.cloneNode(!0))))}if(void 0!==t.content){const e=f.querySelector(".message__text");e&&(e.innerHTML="","string"==typeof t.content?e.textContent=t.content:t.content instanceof HTMLElement&&e.appendChild(t.content.cloneNode(!0)))}if(void 0!==t.description){let n=f.querySelector(".message__description");if(!n&&t.description){n=e.createElement("span",{className:"message__description"}),"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0));const o=f.querySelector(".message__content");null==o||o.appendChild(n)}else n&&(t.description?(n.innerHTML="","string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0))):n.remove())}}}}const m={open:d,info:function(e,t){return d({content:e,type:"info",..."number"==typeof t?{duration:t}:t})},success:function(e,t){return d({content:e,type:"success",..."number"==typeof t?{duration:t}:t})},warning:function(e,t){return d({content:e,type:"warning",..."number"==typeof t?{duration:t}:t})},error:function(e,t){return d({content:e,type:"error",..."number"==typeof t?{duration:t}:t})},loading:function(e,t){return d(void 0===t?{content:e,type:"loading",duration:0,closable:!0}:"number"==typeof t?{content:e,type:"loading",duration:t,closable:!0}:{content:e,type:"loading",duration:0,closable:!0,...t})},config:function(e){Object.assign(n,e),c.forEach((t,n)=>{void 0!==e.top&&["top","topLeft","topRight"].includes(n)&&(t.style.top=`${e.top}px`),void 0!==e.bottom&&["bottom","bottomLeft","bottomRight"].includes(n)&&(t.style.bottom=`${e.bottom}px`),void 0!==e.left&&["topLeft","bottomLeft","left"].includes(n)&&(t.style.left=`${e.left}px`),void 0!==e.right&&["topRight","bottomRight","right"].includes(n)&&(t.style.right=`${e.right}px`),void 0!==e.gap&&(t.style.gap=`${e.gap}px`)})},destroy:async function(){o&&(clearTimeout(o),o=void 0);const e=[...a];await Promise.all(e.map(e=>p(e.id)))}};exports.Message=m;
@@ -1 +1 @@
1
- import{createElement as e,addClosingAnimation as t,ANIMATION_DURATION as n,generateId as o,injectStyle as i}from"../utils.js";import s from"./style.css.js";const c={duration:3e3,maxCount:5,gap:8,top:24};let r,a=null,l=null;const d=new Set,p=[],u={info:"ℹ",success:"✓",warning:"⚠",error:"✕",loading:e("span",{className:"message__loading-spinner"})};function m(t,n){const o=e("span",{className:`message__icon message__icon--${n}`});return"string"==typeof t?o.textContent=t:o.appendChild(t.cloneNode(!0)),o}async function f(e){var o;if(!d.has(e)){d.add(e);try{const s=p.findIndex(t=>t.id===e);if(-1===s)return;const c=p[s];c.timer&&(clearTimeout(c.timer),c.timer=void 0),await t(c.element,n.NORMAL),c.element.remove();const d=p.findIndex(t=>t.id===e);-1!==d&&p.splice(d,1);try{null==(o=c.onClose)||o.call(c)}catch(i){console.error("[Solely Message] onClose callback error:",i)}r&&clearTimeout(r),r=window.setTimeout(()=>{0===p.length&&a&&(l&&(l.disconnect(),l=null),a.remove(),a=null),r=void 0},300)}finally{d.delete(e)}}}function g(t){const n=o(),r=function(){if(!a){a=e("div",{className:"message-container",styles:{top:`${c.top}px`}});const n=document.documentElement.getAttribute("data-theme");n&&a.setAttribute("data-theme",n),document.body.appendChild(a),i("solely-message-styles",s),t=a,l&&l.disconnect(),l=new MutationObserver(()=>{const e=document.documentElement.getAttribute("data-theme");e?t.setAttribute("data-theme",e):t.removeAttribute("data-theme")}),l.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}var t;return a}();p.length>=c.maxCount&&f(p[0].id);const d=function(t,n){const o=t.type||"info",i=!1!==t.showIcon,s=e("div",{className:`message message--${o}${t.className?` ${t.className}`:""}`,styles:t.style});if(s.setAttribute("role","error"===o||"warning"===o?"alert":"status"),s.setAttribute("aria-live","error"===o||"warning"===o?"assertive":"polite"),i){const e=t.icon?m(t.icon,o):m(u[o],o);s.appendChild(e)}const c=e("span",{className:"message__content"}),r=e("span",{className:"message__text"});if("string"==typeof t.content?r.textContent=t.content:t.content instanceof HTMLElement&&r.appendChild(t.content.cloneNode(!0)),c.appendChild(r),t.description){const n=e("span",{className:"message__description"});"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0)),c.appendChild(n)}if(s.appendChild(c),t.closable){const t=e("button",{className:"message__close",textContent:"×",attrs:{type:"button","aria-label":"关闭"}});t.onclick=()=>f(n),s.appendChild(t)}return s}(t,n);r.appendChild(d);const g={id:n,element:d,onClose:t.onClose},y=t.duration??c.duration;return y>0&&(g.timer=window.setTimeout(()=>{f(n)},y)),p.push(g),{close:()=>f(n),update:t=>{if("string"==typeof t||t instanceof HTMLElement){const e=d.querySelector(".message__text");return void(e&&(e.innerHTML="","string"==typeof t?e.textContent=t:t instanceof HTMLElement&&e.appendChild(t.cloneNode(!0))))}if(void 0!==t.content){const e=d.querySelector(".message__text");e&&(e.innerHTML="","string"==typeof t.content?e.textContent=t.content:t.content instanceof HTMLElement&&e.appendChild(t.content.cloneNode(!0)))}if(void 0!==t.description){let n=d.querySelector(".message__description");if(!n&&t.description){n=e("span",{className:"message__description"}),"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0));const o=d.querySelector(".message__content");null==o||o.appendChild(n)}else n&&(t.description?(n.innerHTML="","string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0))):n.remove())}}}}const y={open:g,info:function(e,t){return g({content:e,type:"info",..."number"==typeof t?{duration:t}:t})},success:function(e,t){return g({content:e,type:"success",..."number"==typeof t?{duration:t}:t})},warning:function(e,t){return g({content:e,type:"warning",..."number"==typeof t?{duration:t}:t})},error:function(e,t){return g({content:e,type:"error",..."number"==typeof t?{duration:t}:t})},loading:function(e,t){return g(void 0===t?{content:e,type:"loading",duration:0,closable:!0}:"number"==typeof t?{content:e,type:"loading",duration:t,closable:!0}:{content:e,type:"loading",duration:0,closable:!0,...t})},config:function(e){Object.assign(c,e),void 0!==e.top&&a&&(a.style.top=`${e.top}px`)},destroy:async function(){r&&(clearTimeout(r),r=void 0);const e=[...p];await Promise.all(e.map(e=>f(e.id)))}};export{y as Message};
1
+ import{createElement as t,addClosingAnimation as e,ANIMATION_DURATION as n,generateId as o,injectStyle as i}from"../utils.js";import s from"./style.css.js";const a={duration:3e3,maxCount:5,gap:8,top:24,bottom:24,left:24,right:24,placement:"top"};let r,c=null;const l=new Set,p=[],d={info:"ℹ",success:"✓",warning:"⚠",error:"✕",loading:t("span",{className:"message__loading-spinner"})},m=new Map;function f(e,n){const o=t("span",{className:`message__icon message__icon--${n}`});return"string"==typeof e?o.textContent=e:o.appendChild(e.cloneNode(!0)),o}async function u(t){var o;if(!l.has(t)){l.add(t);try{const s=p.findIndex(e=>e.id===t);if(-1===s)return;const a=p[s];a.timer&&(clearTimeout(a.timer),a.timer=void 0),await e(a.element,n.NORMAL),a.element.remove();const l=p.findIndex(e=>e.id===t);-1!==l&&p.splice(l,1);try{null==(o=a.onClose)||o.call(a)}catch(i){console.error("[Solely Message] onClose callback error:",i)}r&&clearTimeout(r),r=window.setTimeout(()=>{0===p.length&&(m.forEach((t,e)=>{0===t.childElementCount&&(t.remove(),m.delete(e))}),0===m.size&&c&&(c.disconnect(),c=null)),r=void 0},300)}finally{l.delete(t)}}}function g(e){const n=o(),r=e.placement||a.placement,l=function(e=a.placement){const n=e;if(m.has(n))return m.get(n);const o=t("div",{className:"message-container"}),r={position:"fixed",display:"flex",flexDirection:"column",gap:`${a.gap}px`,pointerEvents:"none",zIndex:"var(--solely-z-index-toast)"};switch(e){case"top":r.top=`${a.top}px`,r.left="50%",r.transform="translateX(-50%)";break;case"topLeft":r.top=`${a.top}px`,r.left=`${a.left}px`,r.alignItems="flex-start";break;case"topRight":r.top=`${a.top}px`,r.right=`${a.right}px`,r.alignItems="flex-end";break;case"bottom":r.bottom=`${a.bottom}px`,r.left="50%",r.transform="translateX(-50%)";break;case"bottomLeft":r.bottom=`${a.bottom}px`,r.left=`${a.left}px`,r.alignItems="flex-start";break;case"bottomRight":r.bottom=`${a.bottom}px`,r.right=`${a.right}px`,r.alignItems="flex-end";break;case"left":r.top="50%",r.left=`${a.left}px`,r.transform="translateY(-50%)",r.alignItems="flex-start";break;case"right":r.top="50%",r.right=`${a.right}px`,r.transform="translateY(-50%)",r.alignItems="flex-end"}Object.assign(o.style,r);const l=document.documentElement.getAttribute("data-theme");return l&&o.setAttribute("data-theme",l),document.body.appendChild(o),i("solely-message-styles",s),function(t){c&&c.disconnect(),c=new MutationObserver(()=>{const e=document.documentElement.getAttribute("data-theme");e?t.setAttribute("data-theme",e):t.removeAttribute("data-theme")}),c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}(o),m.set(n,o),o}(r),g=p.filter(t=>t.placement===r);if(g.length>=a.maxCount){const t=g[0];t&&u(t.id)}const b=function(e,n){const o=e.type||"info",i=!1!==e.showIcon,s=t("div",{className:`message message--${o}${e.className?` ${e.className}`:""}`,styles:e.style});if(s.setAttribute("role","error"===o||"warning"===o?"alert":"status"),s.setAttribute("aria-live","error"===o||"warning"===o?"assertive":"polite"),i){const t=e.icon?f(e.icon,o):f(d[o],o);s.appendChild(t)}const a=t("span",{className:"message__content"}),r=t("span",{className:"message__text"});if("string"==typeof e.content?r.textContent=e.content:e.content instanceof HTMLElement&&r.appendChild(e.content.cloneNode(!0)),a.appendChild(r),e.description){const n=t("span",{className:"message__description"});"string"==typeof e.description?n.textContent=e.description:e.description instanceof HTMLElement&&n.appendChild(e.description.cloneNode(!0)),a.appendChild(n)}if(s.appendChild(a),e.closable){const e=t("button",{className:"message__close",textContent:"×",attrs:{type:"button","aria-label":"关闭"}});e.onclick=()=>u(n),s.appendChild(e)}return s}(e,n);l.appendChild(b);const h={id:n,element:b,onClose:e.onClose,placement:r},y=e.duration??a.duration;return y>0&&(h.timer=window.setTimeout(()=>{u(n)},y)),p.push(h),{close:()=>u(n),update:e=>{if("string"==typeof e||e instanceof HTMLElement){const t=b.querySelector(".message__text");return void(t&&(t.innerHTML="","string"==typeof e?t.textContent=e:e instanceof HTMLElement&&t.appendChild(e.cloneNode(!0))))}if(void 0!==e.content){const t=b.querySelector(".message__text");t&&(t.innerHTML="","string"==typeof e.content?t.textContent=e.content:e.content instanceof HTMLElement&&t.appendChild(e.content.cloneNode(!0)))}if(void 0!==e.description){let n=b.querySelector(".message__description");if(!n&&e.description){n=t("span",{className:"message__description"}),"string"==typeof e.description?n.textContent=e.description:e.description instanceof HTMLElement&&n.appendChild(e.description.cloneNode(!0));const o=b.querySelector(".message__content");null==o||o.appendChild(n)}else n&&(e.description?(n.innerHTML="","string"==typeof e.description?n.textContent=e.description:e.description instanceof HTMLElement&&n.appendChild(e.description.cloneNode(!0))):n.remove())}}}}const b={open:g,info:function(t,e){return g({content:t,type:"info",..."number"==typeof e?{duration:e}:e})},success:function(t,e){return g({content:t,type:"success",..."number"==typeof e?{duration:e}:e})},warning:function(t,e){return g({content:t,type:"warning",..."number"==typeof e?{duration:e}:e})},error:function(t,e){return g({content:t,type:"error",..."number"==typeof e?{duration:e}:e})},loading:function(t,e){return g(void 0===e?{content:t,type:"loading",duration:0,closable:!0}:"number"==typeof e?{content:t,type:"loading",duration:e,closable:!0}:{content:t,type:"loading",duration:0,closable:!0,...e})},config:function(t){Object.assign(a,t),m.forEach((e,n)=>{void 0!==t.top&&["top","topLeft","topRight"].includes(n)&&(e.style.top=`${t.top}px`),void 0!==t.bottom&&["bottom","bottomLeft","bottomRight"].includes(n)&&(e.style.bottom=`${t.bottom}px`),void 0!==t.left&&["topLeft","bottomLeft","left"].includes(n)&&(e.style.left=`${t.left}px`),void 0!==t.right&&["topRight","bottomRight","right"].includes(n)&&(e.style.right=`${t.right}px`),void 0!==t.gap&&(e.style.gap=`${t.gap}px`)})},destroy:async function(){r&&(clearTimeout(r),r=void 0);const t=[...p];await Promise.all(t.map(t=>u(t.id)))}};export{b as Message};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}.message-container{position:fixed;top:var(--solely-spacing-lg);left:50%;transform:translate(-50%);z-index:var(--solely-z-index-toast);display:flex;flex-direction:column;gap:var(--solely-spacing-sm);pointer-events:none}.message{display:inline-flex;align-items:center;gap:var(--solely-spacing-sm);padding:var(--solely-spacing-sm) var(--solely-spacing-md);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border-radius:var(--solely-border-radius-md);box-shadow:var(--solely-shadow-md);pointer-events:auto;animation:message-slide-in var(--solely-transition-duration) var(--solely-transition-timing);transition:opacity var(--solely-transition-duration) var(--solely-transition-timing),transform var(--solely-transition-duration) var(--solely-transition-timing)}.message.is-closing{opacity:0;transform:translateY(-10px);pointer-events:none}.message--info{border-left:4px solid var(--solely-primary)}.message--success{border-left:4px solid var(--solely-success)}.message--warning{border-left:4px solid var(--solely-warning)}.message--error{border-left:4px solid var(--solely-error)}.message--loading{border-left:4px solid var(--solely-primary)}.message__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);flex-shrink:0}.message__icon--info{color:var(--solely-primary)}.message__icon--success{color:var(--solely-success)}.message__icon--warning{color:var(--solely-warning)}.message__icon--error{color:var(--solely-error)}.message__icon--loading{color:var(--solely-primary)}.message__loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:message-spin .8s linear infinite}.message__content{flex:1;min-width:0}.message__text{display:block;font-weight:500}.message__description{display:block;font-size:var(--solely-font-size-sm);color:var(--solely-text-secondary);margin-top:var(--solely-spacing-xs);line-height:var(--solely-line-height-sm)}.message__close{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);margin-left:var(--solely-spacing-sm);padding:0;font-size:var(--solely-font-size-lg);line-height:1;color:var(--solely-text-tertiary);background:none;border:none;border-radius:var(--solely-border-radius-sm);cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);flex-shrink:0}.message__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.message__close:active{color:var(--solely-text-primary)}@keyframes message-slide-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}.message{display:inline-flex;align-items:center;gap:var(--solely-spacing-sm);padding:var(--solely-spacing-sm) var(--solely-spacing-md);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border-radius:var(--solely-border-radius-md);box-shadow:var(--solely-shadow-md);pointer-events:auto;animation:message-slide-in var(--solely-transition-duration) var(--solely-transition-timing);transition:opacity var(--solely-transition-duration) var(--solely-transition-timing),transform var(--solely-transition-duration) var(--solely-transition-timing)}.message.is-closing{opacity:0;transform:translateY(-10px);pointer-events:none}.message--info{border-left:4px solid var(--solely-primary)}.message--success{border-left:4px solid var(--solely-success)}.message--warning{border-left:4px solid var(--solely-warning)}.message--error{border-left:4px solid var(--solely-error)}.message--loading{border-left:4px solid var(--solely-primary)}.message__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);flex-shrink:0}.message__icon--info{color:var(--solely-primary)}.message__icon--success{color:var(--solely-success)}.message__icon--warning{color:var(--solely-warning)}.message__icon--error{color:var(--solely-error)}.message__icon--loading{color:var(--solely-primary)}.message__loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:message-spin .8s linear infinite}.message__content{flex:1;min-width:0}.message__text{display:block;font-weight:500}.message__description{display:block;font-size:var(--solely-font-size-sm);color:var(--solely-text-secondary);margin-top:var(--solely-spacing-xs);line-height:var(--solely-line-height-sm)}.message__close{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);margin-left:var(--solely-spacing-sm);padding:0;font-size:var(--solely-font-size-lg);line-height:1;color:var(--solely-text-tertiary);background:none;border:none;border-radius:var(--solely-border-radius-sm);cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);flex-shrink:0}.message__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.message__close:active{color:var(--solely-text-primary)}@keyframes message-slide-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";
@@ -1 +1 @@
1
- const e="*,*:before,*:after{box-sizing:border-box}.message-container{position:fixed;top:var(--solely-spacing-lg);left:50%;transform:translate(-50%);z-index:var(--solely-z-index-toast);display:flex;flex-direction:column;gap:var(--solely-spacing-sm);pointer-events:none}.message{display:inline-flex;align-items:center;gap:var(--solely-spacing-sm);padding:var(--solely-spacing-sm) var(--solely-spacing-md);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border-radius:var(--solely-border-radius-md);box-shadow:var(--solely-shadow-md);pointer-events:auto;animation:message-slide-in var(--solely-transition-duration) var(--solely-transition-timing);transition:opacity var(--solely-transition-duration) var(--solely-transition-timing),transform var(--solely-transition-duration) var(--solely-transition-timing)}.message.is-closing{opacity:0;transform:translateY(-10px);pointer-events:none}.message--info{border-left:4px solid var(--solely-primary)}.message--success{border-left:4px solid var(--solely-success)}.message--warning{border-left:4px solid var(--solely-warning)}.message--error{border-left:4px solid var(--solely-error)}.message--loading{border-left:4px solid var(--solely-primary)}.message__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);flex-shrink:0}.message__icon--info{color:var(--solely-primary)}.message__icon--success{color:var(--solely-success)}.message__icon--warning{color:var(--solely-warning)}.message__icon--error{color:var(--solely-error)}.message__icon--loading{color:var(--solely-primary)}.message__loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:message-spin .8s linear infinite}.message__content{flex:1;min-width:0}.message__text{display:block;font-weight:500}.message__description{display:block;font-size:var(--solely-font-size-sm);color:var(--solely-text-secondary);margin-top:var(--solely-spacing-xs);line-height:var(--solely-line-height-sm)}.message__close{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);margin-left:var(--solely-spacing-sm);padding:0;font-size:var(--solely-font-size-lg);line-height:1;color:var(--solely-text-tertiary);background:none;border:none;border-radius:var(--solely-border-radius-sm);cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);flex-shrink:0}.message__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.message__close:active{color:var(--solely-text-primary)}@keyframes message-slide-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";export{e as default};
1
+ const e="*,*:before,*:after{box-sizing:border-box}.message{display:inline-flex;align-items:center;gap:var(--solely-spacing-sm);padding:var(--solely-spacing-sm) var(--solely-spacing-md);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border-radius:var(--solely-border-radius-md);box-shadow:var(--solely-shadow-md);pointer-events:auto;animation:message-slide-in var(--solely-transition-duration) var(--solely-transition-timing);transition:opacity var(--solely-transition-duration) var(--solely-transition-timing),transform var(--solely-transition-duration) var(--solely-transition-timing)}.message.is-closing{opacity:0;transform:translateY(-10px);pointer-events:none}.message--info{border-left:4px solid var(--solely-primary)}.message--success{border-left:4px solid var(--solely-success)}.message--warning{border-left:4px solid var(--solely-warning)}.message--error{border-left:4px solid var(--solely-error)}.message--loading{border-left:4px solid var(--solely-primary)}.message__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);flex-shrink:0}.message__icon--info{color:var(--solely-primary)}.message__icon--success{color:var(--solely-success)}.message__icon--warning{color:var(--solely-warning)}.message__icon--error{color:var(--solely-error)}.message__icon--loading{color:var(--solely-primary)}.message__loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:message-spin .8s linear infinite}.message__content{flex:1;min-width:0}.message__text{display:block;font-weight:500}.message__description{display:block;font-size:var(--solely-font-size-sm);color:var(--solely-text-secondary);margin-top:var(--solely-spacing-xs);line-height:var(--solely-line-height-sm)}.message__close{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);margin-left:var(--solely-spacing-sm);padding:0;font-size:var(--solely-font-size-lg);line-height:1;color:var(--solely-text-tertiary);background:none;border:none;border-radius:var(--solely-border-radius-sm);cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);flex-shrink:0}.message__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.message__close:active{color:var(--solely-text-primary)}@keyframes message-slide-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";export{e as default};
@@ -1,4 +1,5 @@
1
1
  export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading';
2
+ export type MessagePlacement = 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'right';
2
3
  export interface MessageOptions {
3
4
  /** 消息内容 */
4
5
  content?: string | HTMLElement;
@@ -20,6 +21,8 @@ export interface MessageOptions {
20
21
  style?: Partial<CSSStyleDeclaration>;
21
22
  /** 关闭时的回调 */
22
23
  onClose?: () => void;
24
+ /** 消息位置,默认 'top' */
25
+ placement?: MessagePlacement;
23
26
  }
24
27
  export interface MessageInstance {
25
28
  /** 手动关闭当前消息 */
@@ -36,4 +39,12 @@ export interface MessageConfig {
36
39
  gap: number;
37
40
  /** 距离顶部的偏移量 */
38
41
  top: number;
42
+ /** 距离底部的偏移量 */
43
+ bottom: number;
44
+ /** 距离左侧的偏移量 */
45
+ left: number;
46
+ /** 距离右侧的偏移量 */
47
+ right: number;
48
+ /** 默认位置 */
49
+ placement: MessagePlacement;
39
50
  }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./style.css.cjs"),e=require("./index.html.cjs"),s=require("../../../runtime/component/base-element.cjs"),n=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;const o=new Map,r=new Map;let i=null;async function a(t){return i||(r.size>0?Promise.resolve():(i=(async()=>{try{const e=await fetch(t),s=await e.text();(new DOMParser).parseFromString(s,"image/svg+xml").querySelectorAll("symbol").forEach(t=>{const e=t.id,s=t.getAttribute("viewBox")||"0 0 16 16",n=t.innerHTML;e&&n&&r.set(e,{viewBox:s,content:n})}),console.info(`[Solely Icon] Loaded ${r.size} icons from sprite`)}catch(e){console.warn("[Solely Icon] Failed to load icon sprite:",e)}})(),i))}function c(t){const e=o.get(t);if(e)return e;const s=r.get(t);return s?s.content:""}function l(t){const e=r.get(t);return e?e.viewBox:"0 0 16 16"}function u(t){return o.has(t)||r.has(t)}exports.SolelyIcon=class extends s.default{getIconContent(){return this.$data.name?c(this.$data.name)||this.getDefaultIcon():""}getViewBox(){return this.$data.name?l(this.$data.name):"0 0 16 16"}getDefaultIcon(){return'<rect x="2" y="2" width="12" height="12" rx="2" fill="none" stroke="currentColor" stroke-width="1.5"/><line x1="6" y1="8" x2="10" y2="8" stroke="currentColor" stroke-width="1.5"/><circle cx="8" cy="11.5" r="0.75" fill="currentColor"/>'}getIconSize(){const t=this.$data.size||"medium",e={small:"12px",medium:"16px",large:"24px"}[t];if(e)return e;const s=Number(t);return!isNaN(s)&&s>0?`${s}px`:String(t)}getSizeStyle(){return`--icon-size: ${this.getIconSize()};`}getSpinStyle(){const t=this.$data.spin;return t?`--spin-direction: ${"counterclockwise"===t?"reverse":"normal"}; --spin-duration: ${this.$data.spinDuration||1}s;`:""}getColorStyle(){const t=this.$data.color;return t?`--icon-color: ${t};`:""}getIconClasses(){const t={icon:!0,"is-spinning":!!this.$data.spin},e=this.$data.size;return"small"!==e&&"medium"!==e&&"large"!==e||(t[`icon--${e}`]=!0),t}hasIcon(){return!(!this.$data.name||!u(this.$data.name)&&!i&&!this.$data.sprite)}updateHostStyles(){this.style.setProperty("--icon-size",this.getIconSize());const t=this.$data.color;t?this.style.setProperty("--icon-color",t):this.style.removeProperty("--icon-color");const e=this.$data.spin;if(e){const t=this.$data.spinDuration||1,s="counterclockwise"===e?"reverse":"normal";this.style.setProperty("--spin-duration",`${t}s`),this.style.setProperty("--spin-direction",s)}else this.style.removeProperty("--spin-duration"),this.style.removeProperty("--spin-direction");this.classList.remove("icon--small","icon--medium","icon--large");const s=this.$data.size;"small"!==s&&"medium"!==s&&"large"!==s||this.classList.add(`icon--${s}`)}async mounted(){this.updateHostStyles();const t=this.$data.sprite;t?(await a(t),this.updateSvgContent()):i?(await i,this.updateSvgContent()):this.updateSvgContent()}updated(){this.updateHostStyles(),this.updateSvgContent()}updateSvgContent(){const t=this.$refs.svgRef;t&&this.hasIcon()&&(t.innerHTML=this.getIconContent())}handleClick(t){if(this.$data.disabled)return t.preventDefault(),void t.stopPropagation()}focus(){var t;null==(t=this.$refs.svgRef)||t.focus()}blur(){var t;null==(t=this.$refs.svgRef)||t.blur()}},exports.SolelyIcon=((t,e)=>{for(var s,n=e,o=t.length-1;o>=0;o--)(s=t[o])&&(n=s(n)||n);return n})([n.CustomElement({tagName:"solely-icon",template:e.default,styles:t.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"name",type:"string",default:""},{name:"size",type:"string",default:"medium"},{name:"color",type:"string",default:""},{name:"spin",type:"string",default:""},{name:"spinDuration",type:"number",default:1},{name:"disabled",type:"boolean",default:!1},{name:"sprite",type:"string",default:""}]})],exports.SolelyIcon),exports.getIcon=c,exports.getIconViewBox=l,exports.getRegisteredIcons=function(){return Array.from(new Set([...o.keys(),...r.keys()]))},exports.hasIcon=u,exports.loadIconSprite=a,exports.registerIcon=function(t,e){o.set(t,e)},exports.registerIcons=function(t){Object.entries(t).forEach(([t,e])=>{o.set(t,e)})};
@@ -0,0 +1,107 @@
1
+ import { BaseElement } from '../../../runtime/component';
2
+ import { IconProps, IconRefs } from './types';
3
+ export declare function loadIconSprite(path: string): Promise<void>;
4
+ /**
5
+ * 设置图标 Sprite 文件路径(自动加载)
6
+ * @param path 相对于 public 目录的路径
7
+ */
8
+ export declare function setIconSpritePath(path: string): void;
9
+ /**
10
+ * 获取 sprite 加载状态
11
+ * @returns 是否正在加载
12
+ */
13
+ export declare function isSpriteLoading(): boolean;
14
+ /**
15
+ * 等待 sprite 加载完成
16
+ * @returns Promise
17
+ */
18
+ export declare function waitForSpriteLoad(): Promise<void>;
19
+ /**
20
+ * 注册图标到全局注册表
21
+ * @param name 图标名称
22
+ * @param svgContent SVG 内容(仅 path 部分或完整 SVG)
23
+ */
24
+ export declare function registerIcon(name: string, svgContent: string): void;
25
+ /**
26
+ * 批量注册图标
27
+ * @param icons 图标对象 { name: svgContent }
28
+ */
29
+ export declare function registerIcons(icons: Record<string, string>): void;
30
+ export declare function getIcon(name: string): string;
31
+ export declare function getIconViewBox(name: string): string;
32
+ /**
33
+ * 检查图标是否已注册
34
+ * @param name 图标名称
35
+ * @returns 是否已注册
36
+ */
37
+ export declare function hasIcon(name: string): boolean;
38
+ /**
39
+ * 获取所有已注册的图标名称
40
+ * @returns 图标名称数组
41
+ */
42
+ export declare function getRegisteredIcons(): string[];
43
+ declare class SolelyIcon extends BaseElement<IconProps, IconRefs> {
44
+ /**
45
+ * 获取图标 SVG 内容
46
+ */
47
+ getIconContent(): string;
48
+ /**
49
+ * 获取图标的 viewBox
50
+ */
51
+ getViewBox(): string;
52
+ private getDefaultIcon;
53
+ /**
54
+ * 获取图标尺寸
55
+ */
56
+ getIconSize(): string;
57
+ /**
58
+ * 获取 CSS 尺寸变量
59
+ */
60
+ getSizeStyle(): string;
61
+ /**
62
+ * 获取旋转样式
63
+ */
64
+ getSpinStyle(): string;
65
+ /**
66
+ * 获取颜色样式
67
+ */
68
+ getColorStyle(): string;
69
+ /**
70
+ * 获取图标类名
71
+ */
72
+ getIconClasses(): Record<string, boolean>;
73
+ /**
74
+ * 是否有有效图标(或正在加载中)
75
+ * 用于模板条件渲染,加载中时返回 true 以创建 SVG 元素
76
+ */
77
+ hasIcon(): boolean;
78
+ /**
79
+ * 更新宿主元素的 CSS 变量(尺寸、颜色、旋转)
80
+ */
81
+ private updateHostStyles;
82
+ /**
83
+ * 组件挂载后更新 SVG 内容
84
+ */
85
+ mounted(): Promise<void>;
86
+ /**
87
+ * 数据变化时更新 SVG 内容
88
+ */
89
+ updated(): void;
90
+ /**
91
+ * 更新 SVG 元素的内容
92
+ */
93
+ private updateSvgContent;
94
+ /**
95
+ * 处理点击事件
96
+ */
97
+ handleClick(event: MouseEvent): void;
98
+ /**
99
+ * 聚焦图标(如果可交互)
100
+ */
101
+ focus(): void;
102
+ /**
103
+ * 失焦图标
104
+ */
105
+ blur(): void;
106
+ }
107
+ export { SolelyIcon };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='<If test="this.hasIcon()">\n <svg\n ref="svgRef"\n class="icon-svg"\n :class="this.getIconClasses()"\n :viewBox="this.getViewBox()"\n fill="currentColor"\n @click="this.handleClick(event)"\n role="img"\n :aria-label="$data.name"\n ></svg>\n</If>\n<Else>\n <span class="icon-placeholder"></span>\n</Else>\n';
@@ -0,0 +1 @@
1
+ const n='<If test="this.hasIcon()">\n <svg\n ref="svgRef"\n class="icon-svg"\n :class="this.getIconClasses()"\n :viewBox="this.getViewBox()"\n fill="currentColor"\n @click="this.handleClick(event)"\n role="img"\n :aria-label="$data.name"\n ></svg>\n</If>\n<Else>\n <span class="icon-placeholder"></span>\n</Else>\n';export{n as default};
@@ -0,0 +1 @@
1
+ import t from"./style.css.js";import e from"./index.html.js";import n from"../../../runtime/component/base-element.js";import{CustomElement as s}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;const i=new Map,o=new Map;let r=null;async function a(t){return r||(o.size>0?Promise.resolve():(r=(async()=>{try{const e=await fetch(t),n=await e.text();(new DOMParser).parseFromString(n,"image/svg+xml").querySelectorAll("symbol").forEach(t=>{const e=t.id,n=t.getAttribute("viewBox")||"0 0 16 16",s=t.innerHTML;e&&s&&o.set(e,{viewBox:n,content:s})}),console.info(`[Solely Icon] Loaded ${o.size} icons from sprite`)}catch(e){console.warn("[Solely Icon] Failed to load icon sprite:",e)}})(),r))}function c(t,e){i.set(t,e)}function l(t){Object.entries(t).forEach(([t,e])=>{i.set(t,e)})}function u(t){const e=i.get(t);if(e)return e;const n=o.get(t);return n?n.content:""}function d(t){const e=o.get(t);return e?e.viewBox:"0 0 16 16"}function p(t){return i.has(t)||o.has(t)}function m(){return Array.from(new Set([...i.keys(),...o.keys()]))}let h=class extends n{getIconContent(){return this.$data.name?u(this.$data.name)||this.getDefaultIcon():""}getViewBox(){return this.$data.name?d(this.$data.name):"0 0 16 16"}getDefaultIcon(){return'<rect x="2" y="2" width="12" height="12" rx="2" fill="none" stroke="currentColor" stroke-width="1.5"/><line x1="6" y1="8" x2="10" y2="8" stroke="currentColor" stroke-width="1.5"/><circle cx="8" cy="11.5" r="0.75" fill="currentColor"/>'}getIconSize(){const t=this.$data.size||"medium",e={small:"12px",medium:"16px",large:"24px"}[t];if(e)return e;const n=Number(t);return!isNaN(n)&&n>0?`${n}px`:String(t)}getSizeStyle(){return`--icon-size: ${this.getIconSize()};`}getSpinStyle(){const t=this.$data.spin;return t?`--spin-direction: ${"counterclockwise"===t?"reverse":"normal"}; --spin-duration: ${this.$data.spinDuration||1}s;`:""}getColorStyle(){const t=this.$data.color;return t?`--icon-color: ${t};`:""}getIconClasses(){const t={icon:!0,"is-spinning":!!this.$data.spin},e=this.$data.size;return"small"!==e&&"medium"!==e&&"large"!==e||(t[`icon--${e}`]=!0),t}hasIcon(){return!(!this.$data.name||!p(this.$data.name)&&!r&&!this.$data.sprite)}updateHostStyles(){this.style.setProperty("--icon-size",this.getIconSize());const t=this.$data.color;t?this.style.setProperty("--icon-color",t):this.style.removeProperty("--icon-color");const e=this.$data.spin;if(e){const t=this.$data.spinDuration||1,n="counterclockwise"===e?"reverse":"normal";this.style.setProperty("--spin-duration",`${t}s`),this.style.setProperty("--spin-direction",n)}else this.style.removeProperty("--spin-duration"),this.style.removeProperty("--spin-direction");this.classList.remove("icon--small","icon--medium","icon--large");const n=this.$data.size;"small"!==n&&"medium"!==n&&"large"!==n||this.classList.add(`icon--${n}`)}async mounted(){this.updateHostStyles();const t=this.$data.sprite;t?(await a(t),this.updateSvgContent()):r?(await r,this.updateSvgContent()):this.updateSvgContent()}updated(){this.updateHostStyles(),this.updateSvgContent()}updateSvgContent(){const t=this.$refs.svgRef;t&&this.hasIcon()&&(t.innerHTML=this.getIconContent())}handleClick(t){if(this.$data.disabled)return t.preventDefault(),void t.stopPropagation()}focus(){var t;null==(t=this.$refs.svgRef)||t.focus()}blur(){var t;null==(t=this.$refs.svgRef)||t.blur()}};h=((t,e)=>{for(var n,s=e,i=t.length-1;i>=0;i--)(n=t[i])&&(s=n(s)||s);return s})([s({tagName:"solely-icon",template:e,styles:t,shadowDOM:{use:!0,mode:"open"},props:[{name:"name",type:"string",default:""},{name:"size",type:"string",default:"medium"},{name:"color",type:"string",default:""},{name:"spin",type:"string",default:""},{name:"spinDuration",type:"number",default:1},{name:"disabled",type:"boolean",default:!1},{name:"sprite",type:"string",default:""}]})],h);export{h as SolelyIcon,u as getIcon,d as getIconViewBox,m as getRegisteredIcons,p as hasIcon,a as loadIconSprite,c as registerIcon,l as registerIcons};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default=":host{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-size, 16px);height:var(--icon-size, 16px);color:var(--icon-color, currentColor);font-size:var(--icon-size, 16px);line-height:1;vertical-align:middle}:host([hidden]){display:none!important}.icon-svg{width:100%;height:100%;fill:currentColor;transition:transform var(--solely-transition-duration, .2s) var(--solely-transition-timing, ease)}:host(.icon--small){--icon-size: 12px}:host(.icon--medium){--icon-size: 16px}:host(.icon--large){--icon-size: 24px}.is-spinning{animation:icon-spin var(--spin-duration, 1s) linear infinite;animation-direction:var(--spin-direction, normal)}@keyframes icon-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([disabled]){cursor:not-allowed;opacity:var(--solely-disabled-opacity, .6)}.icon-placeholder{display:inline-block;width:100%;height:100%}.icon-svg:not([disabled]){cursor:pointer}.icon-svg:not([disabled]):hover{opacity:.8}";
@@ -0,0 +1 @@
1
+ const i=":host{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-size, 16px);height:var(--icon-size, 16px);color:var(--icon-color, currentColor);font-size:var(--icon-size, 16px);line-height:1;vertical-align:middle}:host([hidden]){display:none!important}.icon-svg{width:100%;height:100%;fill:currentColor;transition:transform var(--solely-transition-duration, .2s) var(--solely-transition-timing, ease)}:host(.icon--small){--icon-size: 12px}:host(.icon--medium){--icon-size: 16px}:host(.icon--large){--icon-size: 24px}.is-spinning{animation:icon-spin var(--spin-duration, 1s) linear infinite;animation-direction:var(--spin-direction, normal)}@keyframes icon-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([disabled]){cursor:not-allowed;opacity:var(--solely-disabled-opacity, .6)}.icon-placeholder{display:inline-block;width:100%;height:100%}.icon-svg:not([disabled]){cursor:pointer}.icon-svg:not([disabled]):hover{opacity:.8}";export{i as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Solely Icon 组件类型定义
3
+ */
4
+ export type IconSize = 'small' | 'medium' | 'large' | number;
5
+ export type IconSpin = 'clockwise' | 'counterclockwise' | false;
6
+ export interface IconProps {
7
+ /** 图标名称 */
8
+ name?: string;
9
+ /** 图标尺寸 */
10
+ size?: IconSize;
11
+ /** 图标颜色,支持 CSS 变量或具体颜色值 */
12
+ color?: string;
13
+ /** 是否旋转 */
14
+ spin?: IconSpin;
15
+ /** 旋转速度(秒/圈) */
16
+ spinDuration?: number;
17
+ /** 是否禁用 */
18
+ disabled?: boolean;
19
+ /** SVG Sprite 文件路径 */
20
+ sprite?: string;
21
+ }
22
+ export interface IconRefs extends Record<string, Element> {
23
+ svgRef: SVGSVGElement;
24
+ }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./button/index.cjs"),r=require("./input/index.cjs"),t=require("./fab/index.cjs"),l=require("./card/index.cjs"),o=require("./tag/index.cjs"),i=require("./badge/index.cjs"),n=require("./alert/index.cjs"),y=require("./switch/index.cjs"),d=require("./checkbox/index.cjs"),p=require("./radio/index.cjs"),b=require("./select/index.cjs"),c=require("./progress/index.cjs"),s=require("./divider/index.cjs"),a=require("./tabs/index.cjs"),u=require("./table/index.cjs"),S=require("./skeleton/index.cjs"),x=require("./empty/index.cjs"),j=require("./pagination/index.cjs"),g=require("./breadcrumb/index.cjs"),m=require("./steps/index.cjs"),P=require("./timeline/index.cjs"),f=require("./backtop/index.cjs"),O=require("./upload/index.cjs"),q=require("./rate/index.cjs"),T=require("./slider/index.cjs"),k=require("./tree/index.cjs"),B=require("./coordinate-input/index.cjs");Object.defineProperty(exports,"SolelyButton",{enumerable:!0,get:()=>e.SolelyButton}),Object.defineProperty(exports,"SolelyInput",{enumerable:!0,get:()=>r.SolelyInput}),Object.defineProperty(exports,"SolelyFab",{enumerable:!0,get:()=>t.SolelyFab}),Object.defineProperty(exports,"SolelyCard",{enumerable:!0,get:()=>l.SolelyCard}),Object.defineProperty(exports,"SolelyTag",{enumerable:!0,get:()=>o.SolelyTag}),Object.defineProperty(exports,"SolelyBadge",{enumerable:!0,get:()=>i.SolelyBadge}),Object.defineProperty(exports,"SolelyAlert",{enumerable:!0,get:()=>n.SolelyAlert}),Object.defineProperty(exports,"SolelySwitch",{enumerable:!0,get:()=>y.SolelySwitch}),Object.defineProperty(exports,"SolelyCheckbox",{enumerable:!0,get:()=>d.SolelyCheckbox}),Object.defineProperty(exports,"SolelyRadio",{enumerable:!0,get:()=>p.SolelyRadio}),Object.defineProperty(exports,"SolelySelect",{enumerable:!0,get:()=>b.SolelySelect}),Object.defineProperty(exports,"SolelyProgress",{enumerable:!0,get:()=>c.SolelyProgress}),Object.defineProperty(exports,"SolelyDivider",{enumerable:!0,get:()=>s.SolelyDivider}),Object.defineProperty(exports,"SolelyTabs",{enumerable:!0,get:()=>a.SolelyTabs}),Object.defineProperty(exports,"SolelyTable",{enumerable:!0,get:()=>u.SolelyTable}),Object.defineProperty(exports,"SolelySkeleton",{enumerable:!0,get:()=>S.SolelySkeleton}),Object.defineProperty(exports,"SolelyEmpty",{enumerable:!0,get:()=>x.SolelyEmpty}),Object.defineProperty(exports,"SolelyPagination",{enumerable:!0,get:()=>j.SolelyPagination}),Object.defineProperty(exports,"SolelyBreadcrumb",{enumerable:!0,get:()=>g.SolelyBreadcrumb}),Object.defineProperty(exports,"SolelySteps",{enumerable:!0,get:()=>m.SolelySteps}),Object.defineProperty(exports,"SolelyTimeline",{enumerable:!0,get:()=>P.SolelyTimeline}),Object.defineProperty(exports,"SolelyBackTop",{enumerable:!0,get:()=>f.SolelyBackTop}),Object.defineProperty(exports,"SolelyUpload",{enumerable:!0,get:()=>O.SolelyUpload}),Object.defineProperty(exports,"SolelyRate",{enumerable:!0,get:()=>q.SolelyRate}),Object.defineProperty(exports,"SolelySlider",{enumerable:!0,get:()=>T.SolelySlider}),Object.defineProperty(exports,"SolelyTree",{enumerable:!0,get:()=>k.SolelyTree}),Object.defineProperty(exports,"SolelyCoordinateInput",{enumerable:!0,get:()=>B.SolelyCoordinateInput});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./button/index.cjs"),r=require("./icon/index.cjs"),t=require("./input/index.cjs"),o=require("./fab/index.cjs"),l=require("./card/index.cjs"),n=require("./tag/index.cjs"),i=require("./badge/index.cjs"),s=require("./alert/index.cjs"),c=require("./switch/index.cjs"),y=require("./checkbox/index.cjs"),d=require("./radio/index.cjs"),p=require("./select/index.cjs"),b=require("./progress/index.cjs"),u=require("./divider/index.cjs"),a=require("./tabs/index.cjs"),S=require("./table/index.cjs"),x=require("./skeleton/index.cjs"),j=require("./empty/index.cjs"),g=require("./pagination/index.cjs"),m=require("./breadcrumb/index.cjs"),P=require("./steps/index.cjs"),f=require("./timeline/index.cjs"),O=require("./backtop/index.cjs"),q=require("./upload/index.cjs"),I=require("./rate/index.cjs"),T=require("./slider/index.cjs"),k=require("./tree/index.cjs"),h=require("./coordinate-input/index.cjs"),B=require("./not-found/index.cjs");Object.defineProperty(exports,"SolelyButton",{enumerable:!0,get:()=>e.SolelyButton}),Object.defineProperty(exports,"SolelyIcon",{enumerable:!0,get:()=>r.SolelyIcon}),exports.getIcon=r.getIcon,exports.getRegisteredIcons=r.getRegisteredIcons,exports.hasIcon=r.hasIcon,exports.registerIcon=r.registerIcon,exports.registerIcons=r.registerIcons,Object.defineProperty(exports,"SolelyInput",{enumerable:!0,get:()=>t.SolelyInput}),Object.defineProperty(exports,"SolelyFab",{enumerable:!0,get:()=>o.SolelyFab}),Object.defineProperty(exports,"SolelyCard",{enumerable:!0,get:()=>l.SolelyCard}),Object.defineProperty(exports,"SolelyTag",{enumerable:!0,get:()=>n.SolelyTag}),Object.defineProperty(exports,"SolelyBadge",{enumerable:!0,get:()=>i.SolelyBadge}),Object.defineProperty(exports,"SolelyAlert",{enumerable:!0,get:()=>s.SolelyAlert}),Object.defineProperty(exports,"SolelySwitch",{enumerable:!0,get:()=>c.SolelySwitch}),Object.defineProperty(exports,"SolelyCheckbox",{enumerable:!0,get:()=>y.SolelyCheckbox}),Object.defineProperty(exports,"SolelyRadio",{enumerable:!0,get:()=>d.SolelyRadio}),Object.defineProperty(exports,"SolelySelect",{enumerable:!0,get:()=>p.SolelySelect}),Object.defineProperty(exports,"SolelyProgress",{enumerable:!0,get:()=>b.SolelyProgress}),Object.defineProperty(exports,"SolelyDivider",{enumerable:!0,get:()=>u.SolelyDivider}),Object.defineProperty(exports,"SolelyTabs",{enumerable:!0,get:()=>a.SolelyTabs}),Object.defineProperty(exports,"SolelyTable",{enumerable:!0,get:()=>S.SolelyTable}),Object.defineProperty(exports,"SolelySkeleton",{enumerable:!0,get:()=>x.SolelySkeleton}),Object.defineProperty(exports,"SolelyEmpty",{enumerable:!0,get:()=>j.SolelyEmpty}),Object.defineProperty(exports,"SolelyPagination",{enumerable:!0,get:()=>g.SolelyPagination}),Object.defineProperty(exports,"SolelyBreadcrumb",{enumerable:!0,get:()=>m.SolelyBreadcrumb}),Object.defineProperty(exports,"SolelySteps",{enumerable:!0,get:()=>P.SolelySteps}),Object.defineProperty(exports,"SolelyTimeline",{enumerable:!0,get:()=>f.SolelyTimeline}),Object.defineProperty(exports,"SolelyBackTop",{enumerable:!0,get:()=>O.SolelyBackTop}),Object.defineProperty(exports,"SolelyUpload",{enumerable:!0,get:()=>q.SolelyUpload}),Object.defineProperty(exports,"SolelyRate",{enumerable:!0,get:()=>I.SolelyRate}),Object.defineProperty(exports,"SolelySlider",{enumerable:!0,get:()=>T.SolelySlider}),Object.defineProperty(exports,"SolelyTree",{enumerable:!0,get:()=>k.SolelyTree}),Object.defineProperty(exports,"SolelyCoordinateInput",{enumerable:!0,get:()=>h.SolelyCoordinateInput}),Object.defineProperty(exports,"SolelyNotFound",{enumerable:!0,get:()=>B.SolelyNotFound});
@@ -2,6 +2,7 @@
2
2
  * Solely 组件库 - 自定义元素组件统一导出
3
3
  */
4
4
  export { SolelyButton } from './button';
5
+ export { SolelyIcon, registerIcon, registerIcons, getIcon, hasIcon, getRegisteredIcons } from './icon';
5
6
  export { SolelyInput } from './input';
6
7
  export { SolelyFab } from './fab';
7
8
  export { SolelyCard } from './card';
@@ -28,7 +29,9 @@ export { SolelyRate } from './rate';
28
29
  export { SolelySlider } from './slider';
29
30
  export { SolelyTree } from './tree';
30
31
  export { SolelyCoordinateInput } from './coordinate-input';
32
+ export { SolelyNotFound } from './not-found';
31
33
  export type { ButtonProps, ButtonType, ButtonSize, ButtonShape } from './button/types';
34
+ export type { IconProps, IconSize, IconSpin, IconRefs } from './icon/types';
32
35
  export type { InputProps, InputType, InputSize } from './input/types';
33
36
  export type { FabProps, FabPosition, FabSize, FabShape } from './fab/types';
34
37
  export type { CardProps, CardSize } from './card/types';
@@ -55,3 +58,4 @@ export type { RateProps } from './rate/types';
55
58
  export type { SliderProps } from './slider/types';
56
59
  export type { TreeProps, TreeNode } from './tree/types';
57
60
  export type { CoordinateInputProps, CoordinateType, DMS, Coordinate, DMSCoordinate } from './coordinate-input/types';
61
+ export type { NotFoundProps } from './not-found/types';
@@ -1 +1 @@
1
- import{SolelyButton as r}from"./button/index.js";import{SolelyInput as i}from"./input/index.js";import{SolelyFab as o}from"./fab/index.js";import{SolelyCard as m}from"./card/index.js";import{SolelyTag as e}from"./tag/index.js";import{SolelyBadge as t}from"./badge/index.js";import{SolelyAlert as d}from"./alert/index.js";import{SolelySwitch as p}from"./switch/index.js";import{SolelyCheckbox as s}from"./checkbox/index.js";import{SolelyRadio as n}from"./radio/index.js";import{SolelySelect as x}from"./select/index.js";import{SolelyProgress as f}from"./progress/index.js";import{SolelyDivider as j}from"./divider/index.js";import{SolelyTabs as a}from"./tabs/index.js";import{SolelyTable as b}from"./table/index.js";import{SolelySkeleton as c}from"./skeleton/index.js";import{SolelyEmpty as l}from"./empty/index.js";import{SolelyPagination as u}from"./pagination/index.js";import{SolelyBreadcrumb as g}from"./breadcrumb/index.js";import{SolelySteps as k}from"./steps/index.js";import{SolelyTimeline as h}from"./timeline/index.js";import{SolelyBackTop as v}from"./backtop/index.js";import{SolelyUpload as w}from"./upload/index.js";import{SolelyRate as y}from"./rate/index.js";import{SolelySlider as q}from"./slider/index.js";import{SolelyTree as z}from"./tree/index.js";import{SolelyCoordinateInput as A}from"./coordinate-input/index.js";export{d as SolelyAlert,v as SolelyBackTop,t as SolelyBadge,g as SolelyBreadcrumb,r as SolelyButton,m as SolelyCard,s as SolelyCheckbox,A as SolelyCoordinateInput,j as SolelyDivider,l as SolelyEmpty,o as SolelyFab,i as SolelyInput,u as SolelyPagination,f as SolelyProgress,n as SolelyRadio,y as SolelyRate,x as SolelySelect,c as SolelySkeleton,q as SolelySlider,k as SolelySteps,p as SolelySwitch,b as SolelyTable,a as SolelyTabs,e as SolelyTag,h as SolelyTimeline,z as SolelyTree,w as SolelyUpload};
1
+ import{SolelyButton as o}from"./button/index.js";import{SolelyIcon as i,getIcon as r,getRegisteredIcons as m,hasIcon as e,registerIcon as t,registerIcons as n}from"./icon/index.js";import{SolelyInput as d}from"./input/index.js";import{SolelyFab as p}from"./fab/index.js";import{SolelyCard as s}from"./card/index.js";import{SolelyTag as f}from"./tag/index.js";import{SolelyBadge as x}from"./badge/index.js";import{SolelyAlert as j}from"./alert/index.js";import{SolelySwitch as a}from"./switch/index.js";import{SolelyCheckbox as b}from"./checkbox/index.js";import{SolelyRadio as c}from"./radio/index.js";import{SolelySelect as l}from"./select/index.js";import{SolelyProgress as u}from"./progress/index.js";import{SolelyDivider as g}from"./divider/index.js";import{SolelyTabs as k}from"./tabs/index.js";import{SolelyTable as h}from"./table/index.js";import{SolelySkeleton as v}from"./skeleton/index.js";import{SolelyEmpty as w}from"./empty/index.js";import{SolelyPagination as y}from"./pagination/index.js";import{SolelyBreadcrumb as q}from"./breadcrumb/index.js";import{SolelySteps as z}from"./steps/index.js";import{SolelyTimeline as A}from"./timeline/index.js";import{SolelyBackTop as B}from"./backtop/index.js";import{SolelyUpload as C}from"./upload/index.js";import{SolelyRate as D}from"./rate/index.js";import{SolelySlider as E}from"./slider/index.js";import{SolelyTree as F}from"./tree/index.js";import{SolelyCoordinateInput as G}from"./coordinate-input/index.js";import{SolelyNotFound as H}from"./not-found/index.js";export{j as SolelyAlert,B as SolelyBackTop,x as SolelyBadge,q as SolelyBreadcrumb,o as SolelyButton,s as SolelyCard,b as SolelyCheckbox,G as SolelyCoordinateInput,g as SolelyDivider,w as SolelyEmpty,p as SolelyFab,i as SolelyIcon,d as SolelyInput,H as SolelyNotFound,y as SolelyPagination,u as SolelyProgress,c as SolelyRadio,D as SolelyRate,l as SolelySelect,v as SolelySkeleton,E as SolelySlider,z as SolelySteps,a as SolelySwitch,h as SolelyTable,k as SolelyTabs,f as SolelyTag,A as SolelyTimeline,F as SolelyTree,C as SolelyUpload,r as getIcon,m as getRegisteredIcons,e as hasIcon,t as registerIcon,n as registerIcons};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.css.cjs"),t=require("./index.html.cjs"),o=require("../../../runtime/component/base-element.cjs"),n=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyNotFound=class extends o.default{handleBack(){const e=this.$data.backUrl||"/";if("undefined"!=typeof window){const t=window.__SOLELY_ROUTER__;t?t.push(e):window.location.href=e}}},exports.SolelyNotFound=((e,t)=>{for(var o,n=t,r=e.length-1;r>=0;r--)(o=e[r])&&(n=o(n)||n);return n})([n.CustomElement({tagName:"solely-not-found",template:t.default,styles:e.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"title",type:"string",default:"404"},{name:"subtitle",type:"string",default:"抱歉,您访问的页面不存在"},{name:"description",type:"string",default:"请检查网址是否正确,或点击下方按钮返回首页"},{name:"backText",type:"string",default:"返回首页"},{name:"backUrl",type:"string",default:"/"},{name:"embedded",type:"boolean",default:!1}]})],exports.SolelyNotFound);
@@ -0,0 +1,10 @@
1
+ import { BaseElement } from '../../../runtime/component';
2
+ import { NotFoundProps } from './types';
3
+ declare class SolelyNotFound extends BaseElement<NotFoundProps> {
4
+ /**
5
+ * 处理返回按钮点击
6
+ */
7
+ handleBack(): void;
8
+ }
9
+ export default SolelyNotFound;
10
+ export { SolelyNotFound };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='<div class="not-found" :class="{ \'not-found--embedded\': $data.embedbed }">\n <div class="not-found__container">\n \x3c!-- 404 数字动画 --\x3e\n <div class="not-found__numbers">\n <span class="not-found__number">4</span>\n <div class="not-found__icon-wrapper">\n <svg class="not-found__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <circle cx="12" cy="12" r="10"></circle>\n <line x1="12" y1="8" x2="12" y2="12"></line>\n <line x1="12" y1="16" x2="12.01" y2="16"></line>\n </svg>\n </div>\n <span class="not-found__number">4</span>\n </div>\n\n \x3c!-- 文字内容 --\x3e\n <h1 class="not-found__title">{{ $data.title }}</h1>\n <h2 class="not-found__subtitle">{{ $data.subtitle }}</h2>\n <p class="not-found__description">{{ $data.description }}</p>\n\n \x3c!-- 返回按钮 --\x3e\n <button class="not-found__button" @click="this.handleBack()">\n <svg class="not-found__button-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <line x1="19" y1="12" x2="5" y2="12"></line>\n <polyline points="12 19 5 12 12 5"></polyline>\n </svg>\n {{ $data.backText }}\n </button>\n </div>\n\n \x3c!-- 装饰性背景元素 --\x3e\n <div class="not-found__bg-decoration not-found__bg-decoration--1"></div>\n <div class="not-found__bg-decoration not-found__bg-decoration--2"></div>\n <div class="not-found__bg-decoration not-found__bg-decoration--3"></div>\n</div>\n';
@@ -0,0 +1 @@
1
+ const n='<div class="not-found" :class="{ \'not-found--embedded\': $data.embedbed }">\n <div class="not-found__container">\n \x3c!-- 404 数字动画 --\x3e\n <div class="not-found__numbers">\n <span class="not-found__number">4</span>\n <div class="not-found__icon-wrapper">\n <svg class="not-found__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <circle cx="12" cy="12" r="10"></circle>\n <line x1="12" y1="8" x2="12" y2="12"></line>\n <line x1="12" y1="16" x2="12.01" y2="16"></line>\n </svg>\n </div>\n <span class="not-found__number">4</span>\n </div>\n\n \x3c!-- 文字内容 --\x3e\n <h1 class="not-found__title">{{ $data.title }}</h1>\n <h2 class="not-found__subtitle">{{ $data.subtitle }}</h2>\n <p class="not-found__description">{{ $data.description }}</p>\n\n \x3c!-- 返回按钮 --\x3e\n <button class="not-found__button" @click="this.handleBack()">\n <svg class="not-found__button-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">\n <line x1="19" y1="12" x2="5" y2="12"></line>\n <polyline points="12 19 5 12 12 5"></polyline>\n </svg>\n {{ $data.backText }}\n </button>\n </div>\n\n \x3c!-- 装饰性背景元素 --\x3e\n <div class="not-found__bg-decoration not-found__bg-decoration--1"></div>\n <div class="not-found__bg-decoration not-found__bg-decoration--2"></div>\n <div class="not-found__bg-decoration not-found__bg-decoration--3"></div>\n</div>\n';export{n as default};
@@ -0,0 +1 @@
1
+ import e from"./style.css.js";import t from"./index.html.js";import n from"../../../runtime/component/base-element.js";import{CustomElement as o}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let r=class extends n{handleBack(){const e=this.$data.backUrl||"/";if("undefined"!=typeof window){const t=window.__SOLELY_ROUTER__;t?t.push(e):window.location.href=e}}};r=((e,t)=>{for(var n,o=t,r=e.length-1;r>=0;r--)(n=e[r])&&(o=n(o)||o);return o})([o({tagName:"solely-not-found",template:t,styles:e,shadowDOM:{use:!0,mode:"open"},props:[{name:"title",type:"string",default:"404"},{name:"subtitle",type:"string",default:"抱歉,您访问的页面不存在"},{name:"description",type:"string",default:"请检查网址是否正确,或点击下方按钮返回首页"},{name:"backText",type:"string",default:"返回首页"},{name:"backUrl",type:"string",default:"/"},{name:"embedded",type:"boolean",default:!1}]})],r);export{r as SolelyNotFound};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='*,*:before,*:after{box-sizing:border-box}:host{display:flex;width:100%;min-height:100vh;align-items:center;justify-content:center;font-family:var(--solely-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);background:linear-gradient(135deg,#f5f7fa,#c3cfe2);position:relative;overflow:hidden}.not-found{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--solely-spacing-xl, 32px);position:relative;z-index:1}.not-found__container{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:500px;animation:fadeInUp .6s ease-out}.not-found__numbers{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px}.not-found__number{font-size:120px;font-weight:800;line-height:1;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:float 3s ease-in-out infinite;text-shadow:none}.not-found__number:first-child{animation-delay:0s}.not-found__number:last-child{animation-delay:.5s}.not-found__icon-wrapper{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ff6b6b,#ee5a6f);border-radius:50%;animation:pulse 2s ease-in-out infinite,float 3s ease-in-out infinite;animation-delay:.25s,.25s;box-shadow:0 8px 32px #ee5a6f4d}.not-found__icon{width:40px;height:40px;color:#fff}.not-found__title{font-size:48px;font-weight:700;color:var(--solely-text-primary, #262626);margin:0 0 8px;line-height:1.2}.not-found__subtitle{font-size:20px;font-weight:500;color:var(--solely-text-secondary, #595959);margin:0 0 16px;line-height:1.4}.not-found__description{font-size:14px;color:var(--solely-text-tertiary, #8c8c8c);margin:0 0 32px;line-height:1.6;max-width:400px}.not-found__button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 28px;font-size:15px;font-weight:500;color:#fff;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);border:none;border-radius:22px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #1890ff4d;outline:none}.not-found__button:hover{transform:translateY(-2px);box-shadow:0 6px 24px #1890ff66}.not-found__button:active{transform:translateY(0)}.not-found__button-icon{width:18px;height:18px;transition:transform .3s ease}.not-found__button:hover .not-found__button-icon{transform:translate(-3px)}.not-found__bg-decoration{position:absolute;border-radius:50%;opacity:.1;pointer-events:none}.not-found__bg-decoration--1{width:300px;height:300px;background:var(--solely-primary, #1890ff);top:-100px;right:-100px;animation:float 8s ease-in-out infinite}.not-found__bg-decoration--2{width:200px;height:200px;background:#ff6b6b;bottom:-50px;left:-50px;animation:float 6s ease-in-out infinite reverse}.not-found__bg-decoration--3{width:150px;height:150px;background:#52c41a;top:50%;right:10%;animation:float 10s ease-in-out infinite;animation-delay:-2s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media (max-width: 576px){.not-found__number{font-size:80px}.not-found__icon-wrapper{width:60px;height:60px}.not-found__icon{width:30px;height:30px}.not-found__title{font-size:36px}.not-found__subtitle{font-size:18px}.not-found__description{font-size:13px}.not-found__numbers{gap:12px}}:host([embedded]){min-height:auto;background:var(--docs-bg-secondary, #f5f5f5)}.not-found--embedded{padding:var(--solely-spacing-lg, 24px)}.not-found--embedded .not-found__container{max-width:400px;animation:fadeInUp .4s ease-out}.not-found--embedded .not-found__number{font-size:64px}.not-found--embedded .not-found__icon-wrapper{width:48px;height:48px;box-shadow:0 4px 16px #ee5a6f33}.not-found--embedded .not-found__icon{width:24px;height:24px}.not-found--embedded .not-found__title{font-size:28px;margin-bottom:4px}.not-found--embedded .not-found__subtitle{font-size:16px;margin-bottom:12px}.not-found--embedded .not-found__description{font-size:13px;margin-bottom:20px}.not-found--embedded .not-found__button{height:36px;padding:0 20px;font-size:13px;border-radius:18px;box-shadow:0 2px 8px #1890ff40}.not-found--embedded .not-found__button-icon{width:14px;height:14px}.not-found--embedded .not-found__numbers{gap:10px;margin-bottom:16px}.not-found--embedded .not-found__bg-decoration{display:none}';
@@ -0,0 +1 @@
1
+ const n='*,*:before,*:after{box-sizing:border-box}:host{display:flex;width:100%;min-height:100vh;align-items:center;justify-content:center;font-family:var(--solely-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);background:linear-gradient(135deg,#f5f7fa,#c3cfe2);position:relative;overflow:hidden}.not-found{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--solely-spacing-xl, 32px);position:relative;z-index:1}.not-found__container{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:500px;animation:fadeInUp .6s ease-out}.not-found__numbers{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px}.not-found__number{font-size:120px;font-weight:800;line-height:1;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:float 3s ease-in-out infinite;text-shadow:none}.not-found__number:first-child{animation-delay:0s}.not-found__number:last-child{animation-delay:.5s}.not-found__icon-wrapper{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ff6b6b,#ee5a6f);border-radius:50%;animation:pulse 2s ease-in-out infinite,float 3s ease-in-out infinite;animation-delay:.25s,.25s;box-shadow:0 8px 32px #ee5a6f4d}.not-found__icon{width:40px;height:40px;color:#fff}.not-found__title{font-size:48px;font-weight:700;color:var(--solely-text-primary, #262626);margin:0 0 8px;line-height:1.2}.not-found__subtitle{font-size:20px;font-weight:500;color:var(--solely-text-secondary, #595959);margin:0 0 16px;line-height:1.4}.not-found__description{font-size:14px;color:var(--solely-text-tertiary, #8c8c8c);margin:0 0 32px;line-height:1.6;max-width:400px}.not-found__button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 28px;font-size:15px;font-weight:500;color:#fff;background:linear-gradient(135deg,var(--solely-primary, #1890ff) 0%,var(--solely-primary-hover, #40a9ff) 100%);border:none;border-radius:22px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #1890ff4d;outline:none}.not-found__button:hover{transform:translateY(-2px);box-shadow:0 6px 24px #1890ff66}.not-found__button:active{transform:translateY(0)}.not-found__button-icon{width:18px;height:18px;transition:transform .3s ease}.not-found__button:hover .not-found__button-icon{transform:translate(-3px)}.not-found__bg-decoration{position:absolute;border-radius:50%;opacity:.1;pointer-events:none}.not-found__bg-decoration--1{width:300px;height:300px;background:var(--solely-primary, #1890ff);top:-100px;right:-100px;animation:float 8s ease-in-out infinite}.not-found__bg-decoration--2{width:200px;height:200px;background:#ff6b6b;bottom:-50px;left:-50px;animation:float 6s ease-in-out infinite reverse}.not-found__bg-decoration--3{width:150px;height:150px;background:#52c41a;top:50%;right:10%;animation:float 10s ease-in-out infinite;animation-delay:-2s}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media (max-width: 576px){.not-found__number{font-size:80px}.not-found__icon-wrapper{width:60px;height:60px}.not-found__icon{width:30px;height:30px}.not-found__title{font-size:36px}.not-found__subtitle{font-size:18px}.not-found__description{font-size:13px}.not-found__numbers{gap:12px}}:host([embedded]){min-height:auto;background:var(--docs-bg-secondary, #f5f5f5)}.not-found--embedded{padding:var(--solely-spacing-lg, 24px)}.not-found--embedded .not-found__container{max-width:400px;animation:fadeInUp .4s ease-out}.not-found--embedded .not-found__number{font-size:64px}.not-found--embedded .not-found__icon-wrapper{width:48px;height:48px;box-shadow:0 4px 16px #ee5a6f33}.not-found--embedded .not-found__icon{width:24px;height:24px}.not-found--embedded .not-found__title{font-size:28px;margin-bottom:4px}.not-found--embedded .not-found__subtitle{font-size:16px;margin-bottom:12px}.not-found--embedded .not-found__description{font-size:13px;margin-bottom:20px}.not-found--embedded .not-found__button{height:36px;padding:0 20px;font-size:13px;border-radius:18px;box-shadow:0 2px 8px #1890ff40}.not-found--embedded .not-found__button-icon{width:14px;height:14px}.not-found--embedded .not-found__numbers{gap:10px;margin-bottom:16px}.not-found--embedded .not-found__bg-decoration{display:none}';export{n as default};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Solely NotFound 组件类型定义
3
+ */
4
+ /**
5
+ * NotFound 组件属性接口
6
+ */
7
+ export interface NotFoundProps {
8
+ /** 主标题,默认为 404 */
9
+ title?: string;
10
+ /** 副标题,默认为"抱歉,您访问的页面不存在" */
11
+ subtitle?: string;
12
+ /** 描述文字 */
13
+ description?: string;
14
+ /** 返回按钮文字,默认为"返回首页" */
15
+ backText?: string;
16
+ /** 返回链接地址,默认为 / */
17
+ backUrl?: string;
18
+ /** 是否为嵌入模式(用于文档演示等场景),默认 false */
19
+ embedded?: boolean;
20
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseElement } from '../../../runtime/component';
2
+ declare class SelectOption extends BaseElement<{
3
+ value: string;
4
+ label: string;
5
+ disabled: boolean;
6
+ }> {
7
+ /**
8
+ * 获取选项值
9
+ */
10
+ getOptionData(): {
11
+ value: string;
12
+ label: string;
13
+ disabled: boolean;
14
+ element: SelectOption;
15
+ };
16
+ }
17
+ export default SelectOption;
18
+ export { SelectOption };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme/index.cjs"),r=require("./elements/button/index.cjs"),t=require("./elements/input/index.cjs"),l=require("./elements/fab/index.cjs"),o=require("./elements/card/index.cjs"),n=require("./elements/tag/index.cjs"),s=require("./elements/badge/index.cjs"),i=require("./elements/alert/index.cjs"),a=require("./elements/switch/index.cjs"),p=require("./elements/checkbox/index.cjs"),c=require("./elements/radio/index.cjs"),d=require("./elements/select/index.cjs"),m=require("./elements/progress/index.cjs"),y=require("./elements/divider/index.cjs"),x=require("./elements/tabs/index.cjs"),u=require("./elements/table/index.cjs"),b=require("./elements/skeleton/index.cjs"),S=require("./elements/empty/index.cjs"),j=require("./elements/pagination/index.cjs"),g=require("./elements/breadcrumb/index.cjs"),P=require("./elements/steps/index.cjs"),f=require("./elements/timeline/index.cjs"),q=require("./elements/backtop/index.cjs"),O=require("./elements/upload/index.cjs"),T=require("./elements/rate/index.cjs"),h=require("./elements/slider/index.cjs"),I=require("./elements/tree/index.cjs"),A=require("./elements/coordinate-input/index.cjs"),k=require("./commands/message/index.cjs"),C=require("./commands/modal/index.cjs"),B=require("./commands/tooltip/index.cjs"),D=require("./commands/drawer/index.cjs"),N=require("./commands/popconfirm/index.cjs"),M=require("./commands/utils.cjs");exports.getTheme=e.getTheme,exports.initTheme=e.initTheme,exports.persistTheme=e.persistTheme,exports.setTheme=e.setTheme,exports.toggleTheme=e.toggleTheme,Object.defineProperty(exports,"SolelyButton",{enumerable:!0,get:()=>r.SolelyButton}),Object.defineProperty(exports,"SolelyInput",{enumerable:!0,get:()=>t.SolelyInput}),Object.defineProperty(exports,"SolelyFab",{enumerable:!0,get:()=>l.SolelyFab}),Object.defineProperty(exports,"SolelyCard",{enumerable:!0,get:()=>o.SolelyCard}),Object.defineProperty(exports,"SolelyTag",{enumerable:!0,get:()=>n.SolelyTag}),Object.defineProperty(exports,"SolelyBadge",{enumerable:!0,get:()=>s.SolelyBadge}),Object.defineProperty(exports,"SolelyAlert",{enumerable:!0,get:()=>i.SolelyAlert}),Object.defineProperty(exports,"SolelySwitch",{enumerable:!0,get:()=>a.SolelySwitch}),Object.defineProperty(exports,"SolelyCheckbox",{enumerable:!0,get:()=>p.SolelyCheckbox}),Object.defineProperty(exports,"SolelyRadio",{enumerable:!0,get:()=>c.SolelyRadio}),Object.defineProperty(exports,"SolelySelect",{enumerable:!0,get:()=>d.SolelySelect}),Object.defineProperty(exports,"SolelyProgress",{enumerable:!0,get:()=>m.SolelyProgress}),Object.defineProperty(exports,"SolelyDivider",{enumerable:!0,get:()=>y.SolelyDivider}),Object.defineProperty(exports,"SolelyTabs",{enumerable:!0,get:()=>x.SolelyTabs}),Object.defineProperty(exports,"SolelyTable",{enumerable:!0,get:()=>u.SolelyTable}),Object.defineProperty(exports,"SolelySkeleton",{enumerable:!0,get:()=>b.SolelySkeleton}),Object.defineProperty(exports,"SolelyEmpty",{enumerable:!0,get:()=>S.SolelyEmpty}),Object.defineProperty(exports,"SolelyPagination",{enumerable:!0,get:()=>j.SolelyPagination}),Object.defineProperty(exports,"SolelyBreadcrumb",{enumerable:!0,get:()=>g.SolelyBreadcrumb}),Object.defineProperty(exports,"SolelySteps",{enumerable:!0,get:()=>P.SolelySteps}),Object.defineProperty(exports,"SolelyTimeline",{enumerable:!0,get:()=>f.SolelyTimeline}),Object.defineProperty(exports,"SolelyBackTop",{enumerable:!0,get:()=>q.SolelyBackTop}),Object.defineProperty(exports,"SolelyUpload",{enumerable:!0,get:()=>O.SolelyUpload}),Object.defineProperty(exports,"SolelyRate",{enumerable:!0,get:()=>T.SolelyRate}),Object.defineProperty(exports,"SolelySlider",{enumerable:!0,get:()=>h.SolelySlider}),Object.defineProperty(exports,"SolelyTree",{enumerable:!0,get:()=>I.SolelyTree}),Object.defineProperty(exports,"SolelyCoordinateInput",{enumerable:!0,get:()=>A.SolelyCoordinateInput}),exports.Message=k.Message,exports.Modal=C.Modal,exports.Tooltip=B.Tooltip,exports.Drawer=D.Drawer,exports.Popconfirm=N.Popconfirm,exports.ANIMATION_DURATION=M.ANIMATION_DURATION,exports.Z_INDEX=M.Z_INDEX,exports.addClosingAnimation=M.addClosingAnimation,exports.calculatePosition=M.calculatePosition,exports.createElement=M.createElement,exports.generateId=M.generateId,exports.injectStyle=M.injectStyle,exports.removeStyle=M.removeStyle,exports.safeAsyncCallback=M.safeAsyncCallback;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme/index.cjs"),r=require("./elements/button/index.cjs"),t=require("./elements/icon/index.cjs"),o=require("./elements/input/index.cjs"),l=require("./elements/fab/index.cjs"),n=require("./elements/card/index.cjs"),s=require("./elements/tag/index.cjs"),i=require("./elements/badge/index.cjs"),c=require("./elements/alert/index.cjs"),p=require("./elements/switch/index.cjs"),d=require("./elements/checkbox/index.cjs"),a=require("./elements/radio/index.cjs"),m=require("./elements/select/index.cjs"),y=require("./elements/progress/index.cjs"),x=require("./elements/divider/index.cjs"),u=require("./elements/tabs/index.cjs"),b=require("./elements/table/index.cjs"),S=require("./elements/skeleton/index.cjs"),j=require("./elements/empty/index.cjs"),g=require("./elements/pagination/index.cjs"),P=require("./elements/breadcrumb/index.cjs"),f=require("./elements/steps/index.cjs"),q=require("./elements/timeline/index.cjs"),O=require("./elements/backtop/index.cjs"),T=require("./elements/upload/index.cjs"),I=require("./elements/rate/index.cjs"),h=require("./elements/slider/index.cjs"),A=require("./elements/tree/index.cjs"),k=require("./elements/coordinate-input/index.cjs"),C=require("./elements/not-found/index.cjs"),N=require("./commands/message/index.cjs"),B=require("./commands/modal/index.cjs"),D=require("./commands/tooltip/index.cjs"),R=require("./commands/drawer/index.cjs"),M=require("./commands/popconfirm/index.cjs"),v=require("./commands/utils.cjs");exports.getTheme=e.getTheme,exports.initTheme=e.initTheme,exports.persistTheme=e.persistTheme,exports.setTheme=e.setTheme,exports.toggleTheme=e.toggleTheme,Object.defineProperty(exports,"SolelyButton",{enumerable:!0,get:()=>r.SolelyButton}),Object.defineProperty(exports,"SolelyIcon",{enumerable:!0,get:()=>t.SolelyIcon}),exports.getIcon=t.getIcon,exports.getRegisteredIcons=t.getRegisteredIcons,exports.hasIcon=t.hasIcon,exports.registerIcon=t.registerIcon,exports.registerIcons=t.registerIcons,Object.defineProperty(exports,"SolelyInput",{enumerable:!0,get:()=>o.SolelyInput}),Object.defineProperty(exports,"SolelyFab",{enumerable:!0,get:()=>l.SolelyFab}),Object.defineProperty(exports,"SolelyCard",{enumerable:!0,get:()=>n.SolelyCard}),Object.defineProperty(exports,"SolelyTag",{enumerable:!0,get:()=>s.SolelyTag}),Object.defineProperty(exports,"SolelyBadge",{enumerable:!0,get:()=>i.SolelyBadge}),Object.defineProperty(exports,"SolelyAlert",{enumerable:!0,get:()=>c.SolelyAlert}),Object.defineProperty(exports,"SolelySwitch",{enumerable:!0,get:()=>p.SolelySwitch}),Object.defineProperty(exports,"SolelyCheckbox",{enumerable:!0,get:()=>d.SolelyCheckbox}),Object.defineProperty(exports,"SolelyRadio",{enumerable:!0,get:()=>a.SolelyRadio}),Object.defineProperty(exports,"SolelySelect",{enumerable:!0,get:()=>m.SolelySelect}),Object.defineProperty(exports,"SolelyProgress",{enumerable:!0,get:()=>y.SolelyProgress}),Object.defineProperty(exports,"SolelyDivider",{enumerable:!0,get:()=>x.SolelyDivider}),Object.defineProperty(exports,"SolelyTabs",{enumerable:!0,get:()=>u.SolelyTabs}),Object.defineProperty(exports,"SolelyTable",{enumerable:!0,get:()=>b.SolelyTable}),Object.defineProperty(exports,"SolelySkeleton",{enumerable:!0,get:()=>S.SolelySkeleton}),Object.defineProperty(exports,"SolelyEmpty",{enumerable:!0,get:()=>j.SolelyEmpty}),Object.defineProperty(exports,"SolelyPagination",{enumerable:!0,get:()=>g.SolelyPagination}),Object.defineProperty(exports,"SolelyBreadcrumb",{enumerable:!0,get:()=>P.SolelyBreadcrumb}),Object.defineProperty(exports,"SolelySteps",{enumerable:!0,get:()=>f.SolelySteps}),Object.defineProperty(exports,"SolelyTimeline",{enumerable:!0,get:()=>q.SolelyTimeline}),Object.defineProperty(exports,"SolelyBackTop",{enumerable:!0,get:()=>O.SolelyBackTop}),Object.defineProperty(exports,"SolelyUpload",{enumerable:!0,get:()=>T.SolelyUpload}),Object.defineProperty(exports,"SolelyRate",{enumerable:!0,get:()=>I.SolelyRate}),Object.defineProperty(exports,"SolelySlider",{enumerable:!0,get:()=>h.SolelySlider}),Object.defineProperty(exports,"SolelyTree",{enumerable:!0,get:()=>A.SolelyTree}),Object.defineProperty(exports,"SolelyCoordinateInput",{enumerable:!0,get:()=>k.SolelyCoordinateInput}),Object.defineProperty(exports,"SolelyNotFound",{enumerable:!0,get:()=>C.SolelyNotFound}),exports.Message=N.Message,exports.Modal=B.Modal,exports.Tooltip=D.Tooltip,exports.Drawer=R.Drawer,exports.Popconfirm=M.Popconfirm,exports.ANIMATION_DURATION=v.ANIMATION_DURATION,exports.Z_INDEX=v.Z_INDEX,exports.addClosingAnimation=v.addClosingAnimation,exports.calculatePosition=v.calculatePosition,exports.createElement=v.createElement,exports.generateId=v.generateId,exports.injectStyle=v.injectStyle,exports.removeStyle=v.removeStyle,exports.safeAsyncCallback=v.safeAsyncCallback;
@@ -1 +1 @@
1
- import{getTheme as e,initTheme as m,persistTheme as o,setTheme as t,toggleTheme as r}from"./theme/index.js";import{SolelyButton as i}from"./elements/button/index.js";import{SolelyInput as s}from"./elements/input/index.js";import{SolelyFab as n}from"./elements/fab/index.js";import{SolelyCard as d}from"./elements/card/index.js";import{SolelyTag as p}from"./elements/tag/index.js";import{SolelyBadge as l}from"./elements/badge/index.js";import{SolelyAlert as f}from"./elements/alert/index.js";import{SolelySwitch as x}from"./elements/switch/index.js";import{SolelyCheckbox as j}from"./elements/checkbox/index.js";import{SolelyRadio as a}from"./elements/radio/index.js";import{SolelySelect as c}from"./elements/select/index.js";import{SolelyProgress as b}from"./elements/progress/index.js";import{SolelyDivider as u}from"./elements/divider/index.js";import{SolelyTabs as g}from"./elements/tabs/index.js";import{SolelyTable as h}from"./elements/table/index.js";import{SolelySkeleton as k}from"./elements/skeleton/index.js";import{SolelyEmpty as w}from"./elements/empty/index.js";import{SolelyPagination as v}from"./elements/pagination/index.js";import{SolelyBreadcrumb as y}from"./elements/breadcrumb/index.js";import{SolelySteps as q}from"./elements/steps/index.js";import{SolelyTimeline as z}from"./elements/timeline/index.js";import{SolelyBackTop as A}from"./elements/backtop/index.js";import{SolelyUpload as B}from"./elements/upload/index.js";import{SolelyRate as C}from"./elements/rate/index.js";import{SolelySlider as D}from"./elements/slider/index.js";import{SolelyTree as E}from"./elements/tree/index.js";import{SolelyCoordinateInput as F}from"./elements/coordinate-input/index.js";import{Message as G}from"./commands/message/index.js";import{Modal as H}from"./commands/modal/index.js";import{Tooltip as I}from"./commands/tooltip/index.js";import{Drawer as J}from"./commands/drawer/index.js";import{Popconfirm as K}from"./commands/popconfirm/index.js";import{ANIMATION_DURATION as L,Z_INDEX as M,addClosingAnimation as N,calculatePosition as O,createElement as P,generateId as Q,injectStyle as R,removeStyle as S,safeAsyncCallback as T}from"./commands/utils.js";export{L as ANIMATION_DURATION,J as Drawer,G as Message,H as Modal,K as Popconfirm,f as SolelyAlert,A as SolelyBackTop,l as SolelyBadge,y as SolelyBreadcrumb,i as SolelyButton,d as SolelyCard,j as SolelyCheckbox,F as SolelyCoordinateInput,u as SolelyDivider,w as SolelyEmpty,n as SolelyFab,s as SolelyInput,v as SolelyPagination,b as SolelyProgress,a as SolelyRadio,C as SolelyRate,c as SolelySelect,k as SolelySkeleton,D as SolelySlider,q as SolelySteps,x as SolelySwitch,h as SolelyTable,g as SolelyTabs,p as SolelyTag,z as SolelyTimeline,E as SolelyTree,B as SolelyUpload,I as Tooltip,M as Z_INDEX,N as addClosingAnimation,O as calculatePosition,P as createElement,Q as generateId,e as getTheme,m as initTheme,R as injectStyle,o as persistTheme,S as removeStyle,T as safeAsyncCallback,t as setTheme,r as toggleTheme};
1
+ import{getTheme as e,initTheme as m,persistTheme as o,setTheme as t,toggleTheme as r}from"./theme/index.js";import{SolelyButton as i}from"./elements/button/index.js";import{SolelyIcon as s,getIcon as n,getRegisteredIcons as d,hasIcon as p,registerIcon as f,registerIcons as l}from"./elements/icon/index.js";import{SolelyInput as x}from"./elements/input/index.js";import{SolelyFab as j}from"./elements/fab/index.js";import{SolelyCard as a}from"./elements/card/index.js";import{SolelyTag as c}from"./elements/tag/index.js";import{SolelyBadge as b}from"./elements/badge/index.js";import{SolelyAlert as u}from"./elements/alert/index.js";import{SolelySwitch as g}from"./elements/switch/index.js";import{SolelyCheckbox as h}from"./elements/checkbox/index.js";import{SolelyRadio as k}from"./elements/radio/index.js";import{SolelySelect as w}from"./elements/select/index.js";import{SolelyProgress as v}from"./elements/progress/index.js";import{SolelyDivider as y}from"./elements/divider/index.js";import{SolelyTabs as q}from"./elements/tabs/index.js";import{SolelyTable as z}from"./elements/table/index.js";import{SolelySkeleton as A}from"./elements/skeleton/index.js";import{SolelyEmpty as B}from"./elements/empty/index.js";import{SolelyPagination as C}from"./elements/pagination/index.js";import{SolelyBreadcrumb as D}from"./elements/breadcrumb/index.js";import{SolelySteps as E}from"./elements/steps/index.js";import{SolelyTimeline as F}from"./elements/timeline/index.js";import{SolelyBackTop as G}from"./elements/backtop/index.js";import{SolelyUpload as H}from"./elements/upload/index.js";import{SolelyRate as I}from"./elements/rate/index.js";import{SolelySlider as J}from"./elements/slider/index.js";import{SolelyTree as K}from"./elements/tree/index.js";import{SolelyCoordinateInput as L}from"./elements/coordinate-input/index.js";import{SolelyNotFound as M}from"./elements/not-found/index.js";import{Message as N}from"./commands/message/index.js";import{Modal as O}from"./commands/modal/index.js";import{Tooltip as P}from"./commands/tooltip/index.js";import{Drawer as Q}from"./commands/drawer/index.js";import{Popconfirm as R}from"./commands/popconfirm/index.js";import{ANIMATION_DURATION as S,Z_INDEX as T,addClosingAnimation as U,calculatePosition as V,createElement as W,generateId as X,injectStyle as Y,removeStyle as Z,safeAsyncCallback as $}from"./commands/utils.js";export{S as ANIMATION_DURATION,Q as Drawer,N as Message,O as Modal,R as Popconfirm,u as SolelyAlert,G as SolelyBackTop,b as SolelyBadge,D as SolelyBreadcrumb,i as SolelyButton,a as SolelyCard,h as SolelyCheckbox,L as SolelyCoordinateInput,y as SolelyDivider,B as SolelyEmpty,j as SolelyFab,s as SolelyIcon,x as SolelyInput,M as SolelyNotFound,C as SolelyPagination,v as SolelyProgress,k as SolelyRadio,I as SolelyRate,w as SolelySelect,A as SolelySkeleton,J as SolelySlider,E as SolelySteps,g as SolelySwitch,z as SolelyTable,q as SolelyTabs,c as SolelyTag,F as SolelyTimeline,K as SolelyTree,H as SolelyUpload,P as Tooltip,T as Z_INDEX,U as addClosingAnimation,V as calculatePosition,W as createElement,X as generateId,n as getIcon,d as getRegisteredIcons,e as getTheme,p as hasIcon,m as initTheme,Y as injectStyle,o as persistTheme,f as registerIcon,l as registerIcons,Z as removeStyle,$ as safeAsyncCallback,t as setTheme,r as toggleTheme};