solely 0.4.4 → 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.
@@ -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};