@geektech/tsone 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,5 +3,5 @@ import type { ComponentProps } from './core/component';
3
3
  export * from './core';
4
4
  export * from './router';
5
5
  export declare function createApp<TState extends object = Record<string, unknown>, TConfig extends object = Record<string, unknown>, TRootProps extends ComponentProps = ComponentProps>(options?: AppOptions<TState, TConfig, TRootProps>): OneApp<TState, TConfig, TRootProps>;
6
- export declare const version = "0.2.1";
6
+ export declare const version = "0.3.0";
7
7
  export declare const name = "@geektech/tsone";
package/dist/index.js CHANGED
@@ -1,269 +1,4 @@
1
- import {
2
- A,
3
- Article,
4
- Aside,
5
- Blockquote,
6
- Button,
7
- Code,
8
- Component,
9
- ComponentRenderStrategy,
10
- Div,
11
- ElementRenderStrategy,
12
- Em,
13
- Footer,
14
- Form,
15
- H1,
16
- H2,
17
- H3,
18
- H4,
19
- H5,
20
- H6,
21
- Header,
22
- Img,
23
- Input,
24
- Label,
25
- Li,
26
- Main,
27
- ModelBindingController,
28
- Nav,
29
- Ol,
30
- OneApp,
31
- Option,
32
- P,
33
- Pre,
34
- ReactiveSystem,
35
- RendererContext,
36
- Router,
37
- RouterLink,
38
- RouterView,
39
- Section,
40
- Select,
41
- SlotRenderStrategy,
42
- Small,
43
- Span,
44
- Strong,
45
- Table,
46
- Tag,
47
- Tbody,
48
- Td,
49
- TemplateEngine,
50
- TextRenderStrategy,
51
- Textarea,
52
- Th,
53
- Thead,
54
- Tr,
55
- Ul,
56
- computed,
57
- createComponent,
58
- createRouter,
59
- each,
60
- effect,
61
- getModelValue,
62
- h,
63
- isComponentNode,
64
- isHTMLNode,
65
- isReactive,
66
- isReadonly,
67
- isRef,
68
- isSlotProvider,
69
- modelPath,
70
- normalizeTransitionGroupProps,
71
- reactive,
72
- readonly,
73
- ref,
74
- renderHtmlDocument,
75
- setModelValue,
76
- slot,
77
- stop,
78
- unref,
79
- useRouter,
80
- validateTransitionGroupChildren
81
- } from "./index-1x4ectvr.js";
82
- import {
83
- renderStyleSheet
84
- } from "./index-ffzday7h.js";
85
- // lib/core/form.ts
86
- function errorMessage(error) {
87
- return error instanceof Error ? error.message : String(error);
88
- }
89
- function runRule(rule, value, model) {
90
- try {
91
- const result = rule(value, model);
92
- if (result === true) {
93
- return;
94
- }
95
- return result === false ? "Validation failed" : result;
96
- } catch (error) {
97
- return errorMessage(error);
98
- }
99
- }
100
- function required(message = "This field is required") {
101
- return (value) => {
102
- if (value === null || value === undefined) {
103
- return message;
104
- }
105
- if (typeof value === "string" && value.trim().length === 0) {
106
- return message;
107
- }
108
- if (Array.isArray(value) && value.length === 0) {
109
- return message;
110
- }
111
- return true;
112
- };
113
- }
114
- function minLength(length, message = `Must be at least ${length} characters`) {
115
- return (value) => typeof value === "string" && value.length >= length ? true : message;
116
- }
117
- function validate(rule) {
118
- return rule;
119
- }
120
- function createForm(model, rules) {
121
- const errors = {};
122
- const validateField = (path) => {
123
- const fieldRules = rules[path] ?? [];
124
- const value = getModelValue(model, path);
125
- const fieldErrors = fieldRules.map((rule) => runRule(rule, value, model)).filter((message) => message !== undefined);
126
- if (fieldErrors.length === 0) {
127
- delete errors[path];
128
- } else {
129
- errors[path] = fieldErrors;
130
- }
131
- return { valid: fieldErrors.length === 0, errors: fieldErrors };
132
- };
133
- return {
134
- model,
135
- errors,
136
- validate() {
137
- const allErrors = {};
138
- Object.keys(rules).forEach((path) => {
139
- const result = validateField(path);
140
- if (!result.valid) {
141
- allErrors[path] = result.errors;
142
- }
143
- });
144
- return { valid: Object.keys(allErrors).length === 0, errors: allErrors };
145
- },
146
- validateField,
147
- resetErrors() {
148
- Object.keys(errors).forEach((path) => delete errors[path]);
149
- }
150
- };
151
- }
152
- // lib/core/animation/TransitionGroup.ts
153
- class TransitionGroup extends Component {
154
- initState() {
155
- return {};
156
- }
157
- initStyles() {}
158
- render() {
159
- const { tag, type, duration } = normalizeTransitionGroupProps(this.props);
160
- const children = validateTransitionGroupChildren(this.props.children ?? []);
161
- return {
162
- tag,
163
- props: this.props.elementProps,
164
- listeners: this.props.listeners,
165
- children,
166
- transitionGroup: {
167
- type,
168
- duration
169
- }
170
- };
171
- }
172
- }
173
- // lib/index.ts
174
- function createApp(options = {}) {
175
- return new OneApp(options);
176
- }
177
- var version = "0.2.1";
178
- var name = "@geektech/tsone";
179
- export {
180
- A,
181
- Article,
182
- Aside,
183
- Blockquote,
184
- Button,
185
- Code,
186
- Component,
187
- ComponentRenderStrategy,
188
- Div,
189
- ElementRenderStrategy,
190
- Em,
191
- Footer,
192
- Form,
193
- H1,
194
- H2,
195
- H3,
196
- H4,
197
- H5,
198
- H6,
199
- Header,
200
- Img,
201
- Input,
202
- Label,
203
- Li,
204
- Main,
205
- ModelBindingController,
206
- Nav,
207
- Ol,
208
- OneApp,
209
- Option,
210
- P,
211
- Pre,
212
- ReactiveSystem,
213
- RendererContext,
214
- Router,
215
- RouterLink,
216
- RouterView,
217
- Section,
218
- Select,
219
- SlotRenderStrategy,
220
- Small,
221
- Span,
222
- Strong,
223
- Table,
224
- Tag,
225
- Tbody,
226
- Td,
227
- TemplateEngine,
228
- TextRenderStrategy,
229
- Textarea,
230
- Th,
231
- Thead,
232
- Tr,
233
- TransitionGroup,
234
- Ul,
235
- computed,
236
- createApp,
237
- createComponent,
238
- createForm,
239
- createRouter,
240
- each,
241
- effect,
242
- getModelValue,
243
- h,
244
- isComponentNode,
245
- isHTMLNode,
246
- isReactive,
247
- isReadonly,
248
- isRef,
249
- isSlotProvider,
250
- minLength,
251
- modelPath,
252
- name,
253
- reactive,
254
- readonly,
255
- ref,
256
- renderHtmlDocument,
257
- renderStyleSheet,
258
- required,
259
- setModelValue,
260
- slot,
261
- stop,
262
- unref,
263
- useRouter,
264
- validate,
265
- version
266
- };
1
+ import{$ as Qe,A as Ve,Aa as xr,B as he,Ba as Tr,C as be,D as Pe,E as je,F as ke,G as ve,H as Fe,I as Me,J as Ce,K as Ge,L as Ae,M as we,N as Ee,O as Oe,P as Se,Q as qe,R as Ne,S as ze,T as Le,U as $e,V as Be,W as De,X as He,Y as Ie,Z as Je,_ as Ke,a as U,aa as Ue,b as W,ba as We,c as X,ca as Xe,d as Y,da as Ye,e as Z,ea as Ze,f as _,fa as _e,g as ee,ga as er,h as re,ha as rr,i as te,ia as tr,j as oe,ja as d,k as ne,ka as or,l as ie,la as nr,m as se,ma as ir,n as le,na as p,o as ae,oa as u,p as de,pa as sr,q as pe,qa as lr,r as ue,ra as ar,s as ce,sa as dr,t as fe,ta as pr,u as me,ua as c,v as ge,va as cr,w as xe,wa as m,x as Te,xa as fr,y as Re,ya as mr,z as ye,za as gr}from"./index-p55hs6x8.js";import{Da as ur}from"./index-939sv8vt.js";function g(e){return e instanceof Error?e.message:String(e)}function x(e,r,t){try{let o=e(r,t);if(o===!0)return;return o===!1?"Validation failed":o}catch(o){return g(o)}}function R(e="This field is required"){return(r)=>{if(r===null||r===void 0)return e;if(typeof r==="string"&&r.trim().length===0)return e;if(Array.isArray(r)&&r.length===0)return e;return!0}}function y(e,r=`Must be at least ${e} characters`){return(t)=>typeof t==="string"&&t.length>=e?!0:r}function V(e){return e}function h(e,r){let t={},o=(n)=>{let i=r[n]??[],s=d(e,n),l=i.map((a)=>x(a,s,e)).filter((a)=>a!==void 0);if(l.length===0)delete t[n];else t[n]=l;return{valid:l.length===0,errors:l}};return{model:e,errors:t,validate(){let n={};return Object.keys(r).forEach((i)=>{let s=o(i);if(!s.valid)n[i]=s.errors}),{valid:Object.keys(n).length===0,errors:n}},validateField:o,resetErrors(){Object.keys(t).forEach((n)=>delete t[n])}}}class f extends c{initState(){return{}}initStyles(){}render(){let{tag:e,type:r,duration:t}=p(this.props),o=u(this.props.children??[]);return{tag:e,props:this.props.elementProps,listeners:this.props.listeners,children:o,transitionGroup:{type:r,duration:t}}}}function D(e={}){return new m(e)}var H="0.3.0",I="@geektech/tsone";export{$e as A,Pe as Article,je as Aside,qe as Blockquote,xe as Button,Se as Code,c as Component,ar as ComponentRenderStrategy,fe as Div,ir as ElementRenderStrategy,we as Em,he as Footer,De as Form,ke as H1,ve as H2,Fe as H3,Me as H4,Ce as H5,Ge as H6,Ve as Header,Be as Img,Te as Input,He as Label,Le as Li,ye as Main,nr as ModelBindingController,be as Nav,ze as Ol,m as OneApp,Ke as Option,ge as P,Oe as Pre,Y as ReactiveSystem,sr as RendererContext,mr as Router,gr as RouterLink,xr as RouterView,Re as Section,Je as Select,dr as SlotRenderStrategy,Ee as Small,me as Span,Ae as Strong,Qe as Table,ce as Tag,We as Tbody,Ze as Td,pr as TemplateEngine,lr as TextRenderStrategy,Ie as Textarea,Ye as Th,Ue as Thead,Xe as Tr,f as TransitionGroup,Ne as Ul,re as computed,D as createApp,_e as createComponent,h as createForm,Tr as createRouter,rr as each,ee as effect,X as flushSync,d as getModelValue,ue as h,ae as isComponentNode,de as isHTMLNode,se as isReactive,le as isReadonly,oe as isRef,pe as isSlotProvider,y as minLength,tr as modelPath,I as name,W as nextTick,Z as reactive,U as reactiveScheduler,_ as readonly,te as ref,cr as renderHtmlDocument,ur as renderStyleSheet,R as required,or as setModelValue,er as slot,ie as stop,ne as unref,fr as useRouter,V as validate,H as version};
267
2
 
268
- //# debugId=3AB4C2D17F44BF4B64756E2164756E21
3
+ //# debugId=8BE5D72DEC3451F664756E2164756E21
269
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -4,9 +4,9 @@
4
4
  "sourcesContent": [
5
5
  "import { getModelValue } from './model';\n\nexport type ValidationResult = boolean | string;\n\nexport type ValidationRule<T = unknown> = (\n value: T,\n model: object\n) => ValidationResult;\n\nexport type ValidationRules<TModel extends object> = {\n [TPath in keyof TModel & string]?: readonly ValidationRule[];\n} & Record<string, readonly ValidationRule[] | undefined>;\n\nexport interface FieldValidationResult {\n valid: boolean;\n errors: string[];\n}\n\nexport interface FormValidationResult {\n valid: boolean;\n errors: Record<string, string[]>;\n}\n\nexport interface FormController<TModel extends object> {\n readonly model: TModel;\n readonly errors: Record<string, string[]>;\n validate(): FormValidationResult;\n validateField(path: string): FieldValidationResult;\n resetErrors(): void;\n}\n\nfunction errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n\nfunction runRule(\n rule: ValidationRule,\n value: unknown,\n model: object\n): string | undefined {\n try {\n const result = rule(value, model);\n if (result === true) {\n return undefined;\n }\n return result === false ? 'Validation failed' : result;\n } catch (error) {\n return errorMessage(error);\n }\n}\n\nexport function required(message = 'This field is required'): ValidationRule {\n return (value) => {\n if (value === null || value === undefined) {\n return message;\n }\n if (typeof value === 'string' && value.trim().length === 0) {\n return message;\n }\n if (Array.isArray(value) && value.length === 0) {\n return message;\n }\n return true;\n };\n}\n\nexport function minLength(\n length: number,\n message = `Must be at least ${length} characters`\n): ValidationRule {\n return (value) =>\n typeof value === 'string' && value.length >= length ? true : message;\n}\n\nexport function validate(rule: ValidationRule): ValidationRule {\n return rule;\n}\n\nexport function createForm<TModel extends object>(\n model: TModel,\n rules: ValidationRules<TModel>\n): FormController<TModel> {\n const errors: Record<string, string[]> = {};\n\n const validateField = (path: string): FieldValidationResult => {\n const fieldRules = rules[path] ?? [];\n const value = getModelValue(model as Record<string, unknown>, path);\n const fieldErrors = fieldRules\n .map((rule) => runRule(rule, value, model))\n .filter((message): message is string => message !== undefined);\n\n if (fieldErrors.length === 0) {\n delete errors[path];\n } else {\n errors[path] = fieldErrors;\n }\n\n return { valid: fieldErrors.length === 0, errors: fieldErrors };\n };\n\n return {\n model,\n errors,\n validate(): FormValidationResult {\n const allErrors: Record<string, string[]> = {};\n Object.keys(rules).forEach((path) => {\n const result = validateField(path);\n if (!result.valid) {\n allErrors[path] = result.errors;\n }\n });\n return { valid: Object.keys(allErrors).length === 0, errors: allErrors };\n },\n validateField,\n resetErrors(): void {\n Object.keys(errors).forEach((path) => delete errors[path]);\n },\n };\n}\n",
6
6
  "import { Component } from '../component';\nimport {\n normalizeTransitionGroupProps,\n validateTransitionGroupChildren,\n type TransitionGroupNode,\n type TransitionGroupProps,\n} from './types';\n\nexport class TransitionGroup extends Component<TransitionGroupProps> {\n protected initState(): object {\n return {};\n }\n\n protected initStyles(): void {}\n\n protected render(): TransitionGroupNode {\n const { tag, type, duration } = normalizeTransitionGroupProps(this.props);\n const children = validateTransitionGroupChildren(this.props.children ?? []);\n\n return {\n tag,\n props: this.props.elementProps,\n listeners: this.props.listeners,\n children,\n transitionGroup: {\n type,\n duration,\n },\n };\n }\n}\n",
7
- "import { OneApp, AppOptions } from './core/app';\nimport type { ComponentProps } from './core/component';\n\n// 导出核心功能\nexport * from './core';\n\n// 导出路由功能\nexport * from './router';\n\n// 创建应用实例的主函数\nexport function createApp<\n TState extends object = Record<string, unknown>,\n TConfig extends object = Record<string, unknown>,\n TRootProps extends ComponentProps = ComponentProps,\n>(\n options: AppOptions<TState, TConfig, TRootProps> = {}\n): OneApp<TState, TConfig, TRootProps> {\n return new OneApp(options);\n}\n\n// 导出框架名称和版本\nexport const version = '0.2.1';\nexport const name = '@geektech/tsone';\n"
7
+ "import { OneApp, AppOptions } from './core/app';\nimport type { ComponentProps } from './core/component';\n\n// 导出核心功能\nexport * from './core';\n\n// 导出路由功能\nexport * from './router';\n\n// 创建应用实例的主函数\nexport function createApp<\n TState extends object = Record<string, unknown>,\n TConfig extends object = Record<string, unknown>,\n TRootProps extends ComponentProps = ComponentProps,\n>(\n options: AppOptions<TState, TConfig, TRootProps> = {}\n): OneApp<TState, TConfig, TRootProps> {\n return new OneApp(options);\n}\n\n// 导出框架名称和版本\nexport const version = '0.3.0';\nexport const name = '@geektech/tsone';\n"
8
8
  ],
9
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAS,YAAY,CAAC,OAAwB;AAAA,EAC5C,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAA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,OAAO,KAAK,CAAS,EAAE,SAAW,EAAG,OAAQ,CAAU,GAEzE,gBACA,WAAW,EAAS,CAClB,OAAO,KAAK,CAAM,EAAE,QAAQ,CAAC,IAAS,OAAO,EAAO,EAAK,EAE7D,EC7GK,MAAM,UAAwB,CAAgC,CACzD,SAAS,EAAW,CAC5B,MAAO,CAAC,EAGA,UAAU,EAAS,EAEnB,MAAM,EAAwB,CACtC,IAAQ,MAAK,OAAM,YAAa,EAA8B,KAAK,KAAK,EAClE,EAAW,EAAgC,KAAK,MAAM,UAAY,CAAC,CAAC,EAE1E,MAAO,CACL,MACA,MAAO,KAAK,MAAM,aAClB,UAAW,KAAK,MAAM,UACtB,WACA,gBAAiB,CACf,OACA,UACF,CACF,EAEJ,CCpBO,SAAS,CAIf,CACC,EAAmD,CAAC,EACf,CACrC,OAAO,IAAI,EAAO,CAAO,EAIpB,IAAM,EAAU,QACV,EAAO",
10
+ "debugId": "8BE5D72DEC3451F664756E2164756E21",
11
11
  "names": []
12
12
  }
@@ -1,18 +1,4 @@
1
- import {
2
- Router,
3
- RouterLink,
4
- RouterView,
5
- createRouter,
6
- useRouter
7
- } from "../index-1x4ectvr.js";
8
- import"../index-ffzday7h.js";
9
- export {
10
- Router,
11
- RouterLink,
12
- RouterView,
13
- createRouter,
14
- useRouter
15
- };
1
+ import{Aa as d,Ba as e,xa as a,ya as b,za as c}from"../index-p55hs6x8.js";import"../index-939sv8vt.js";export{b as Router,c as RouterLink,d as RouterView,e as createRouter,a as useRouter};
16
2
 
17
- //# debugId=692EAFC227AA6F3464756E2164756E21
3
+ //# debugId=1CE84942670B29C264756E2164756E21
18
4
  //# sourceMappingURL=index.js.map
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "692EAFC227AA6F3464756E2164756E21",
7
+ "debugId": "1CE84942670B29C264756E2164756E21",
8
8
  "names": []
9
9
  }
@@ -1,11 +1,4 @@
1
- import {
2
- StyleManager,
3
- renderStyleSheet
4
- } from "../index-ffzday7h.js";
5
- export {
6
- StyleManager,
7
- renderStyleSheet
8
- };
1
+ import{Ca as f,Da as m}from"../index-939sv8vt.js";export{f as StyleManager,m as renderStyleSheet};
9
2
 
10
- //# debugId=AF05CF14C261411864756E2164756E21
3
+ //# debugId=B39E2B65F74EF00464756E2164756E21
11
4
  //# sourceMappingURL=index.js.map
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "AF05CF14C261411864756E2164756E21",
7
+ "debugId": "B39E2B65F74EF00464756E2164756E21",
8
8
  "names": []
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geektech/tsone",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "TSone 是轻量级纯 TypeScript 前端框架,提供响应式系统、类组件、策略化渲染和路由功能",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",