@ktjs/core 0.15.5 → 0.15.6

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
@@ -98,7 +98,7 @@ interface KTBaseAttribute {
98
98
  title?: string;
99
99
  placeholder?: string;
100
100
  contenteditable?: boolean;
101
- value?: string;
101
+ value?: any;
102
102
  valueAsDate?: Date;
103
103
  valueAsNumber?: number;
104
104
  label?: string;
@@ -116,16 +116,36 @@ interface KTBaseAttribute {
116
116
  }
117
117
 
118
118
  type KTPrefixedEventHandlers = {
119
- [EventName in keyof HTMLElementEventMap as `on:${EventName}`]?: (ev: HTMLElementEventMap[EventName]) => void;
119
+ [EventName in keyof HTMLElementEventMap as `on:${EventName}`]?:
120
+ | ((ev: HTMLElementEventMap[EventName]) => void)
121
+ | (Function & {});
120
122
  };
121
123
 
122
124
  type KTSpecialEventHandlers = {
125
+ /**
126
+ * Directly extract `value` from the input element
127
+ */
123
128
  'on:ktchange'?: (value: string) => void;
129
+ /**
130
+ * Directly extract `value` and trim it
131
+ */
124
132
  'ontrim:ktchange'?: (value: string) => void;
133
+ /**
134
+ * Directly extract `value` and parse it to number
135
+ */
125
136
  'on:ktchangenumber'?: (value: number) => void;
126
137
 
138
+ /**
139
+ * Directly extract `value` from the input element
140
+ */
127
141
  'on:ktinput'?: (value: string) => void;
142
+ /**
143
+ * Directly extract `value` and trim it
144
+ */
128
145
  'ontrim:ktinput'?: (value: string) => void;
146
+ /**
147
+ * Directly extract `value` and parse it to number
148
+ */
129
149
  'on:ktinputnumber'?: (value: number) => void;
130
150
  };
131
151
 
@@ -150,7 +170,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
150
170
  * ## About
151
171
  * @package @ktjs/core
152
172
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
153
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
173
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
154
174
  * @license MIT
155
175
  * @link https://github.com/baendlorel/kt.js
156
176
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -206,7 +206,7 @@ var __ktjs_core__ = (function (exports) {
206
206
  * ## About
207
207
  * @package @ktjs/core
208
208
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
209
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
209
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
210
210
  * @license MIT
211
211
  * @link https://github.com/baendlorel/kt.js
212
212
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -231,7 +231,7 @@ var __ktjs_core__ = (function (exports) {
231
231
  * ## About
232
232
  * @package @ktjs/core
233
233
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
234
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
234
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
235
235
  * @license MIT
236
236
  * @link https://github.com/baendlorel/kt.js
237
237
  * @link https://baendlorel.github.io/ Welcome to my site!
package/dist/index.mjs CHANGED
@@ -203,7 +203,7 @@ let creator = defaultCreator;
203
203
  * ## About
204
204
  * @package @ktjs/core
205
205
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
206
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
206
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
207
207
  * @license MIT
208
208
  * @link https://github.com/baendlorel/kt.js
209
209
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -92,7 +92,7 @@ interface KTBaseAttribute {
92
92
  title?: string;
93
93
  placeholder?: string;
94
94
  contenteditable?: boolean;
95
- value?: string;
95
+ value?: any;
96
96
  valueAsDate?: Date;
97
97
  valueAsNumber?: number;
98
98
  label?: string;
@@ -110,16 +110,36 @@ interface KTBaseAttribute {
110
110
  }
111
111
 
112
112
  type KTPrefixedEventHandlers = {
113
- [EventName in keyof HTMLElementEventMap as `on:${EventName}`]?: (ev: HTMLElementEventMap[EventName]) => void;
113
+ [EventName in keyof HTMLElementEventMap as `on:${EventName}`]?:
114
+ | ((ev: HTMLElementEventMap[EventName]) => void)
115
+ | (Function & {});
114
116
  };
115
117
 
116
118
  type KTSpecialEventHandlers = {
119
+ /**
120
+ * Directly extract `value` from the input element
121
+ */
117
122
  'on:ktchange'?: (value: string) => void;
123
+ /**
124
+ * Directly extract `value` and trim it
125
+ */
118
126
  'ontrim:ktchange'?: (value: string) => void;
127
+ /**
128
+ * Directly extract `value` and parse it to number
129
+ */
119
130
  'on:ktchangenumber'?: (value: number) => void;
120
131
 
132
+ /**
133
+ * Directly extract `value` from the input element
134
+ */
121
135
  'on:ktinput'?: (value: string) => void;
136
+ /**
137
+ * Directly extract `value` and trim it
138
+ */
122
139
  'ontrim:ktinput'?: (value: string) => void;
140
+ /**
141
+ * Directly extract `value` and parse it to number
142
+ */
123
143
  'on:ktinputnumber'?: (value: number) => void;
124
144
  };
125
145
 
@@ -136,7 +156,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
136
156
  * ## About
137
157
  * @package @ktjs/core
138
158
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
139
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
159
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
140
160
  * @license MIT
141
161
  * @link https://github.com/baendlorel/kt.js
142
162
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -203,7 +203,7 @@ let creator = defaultCreator;
203
203
  * ## About
204
204
  * @package @ktjs/core
205
205
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
206
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
206
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
207
207
  * @license MIT
208
208
  * @link https://github.com/baendlorel/kt.js
209
209
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -86,7 +86,7 @@ interface KTBaseAttribute {
86
86
  title?: string;
87
87
  placeholder?: string;
88
88
  contenteditable?: boolean;
89
- value?: string;
89
+ value?: any;
90
90
  valueAsDate?: Date;
91
91
  valueAsNumber?: number;
92
92
  label?: string;
@@ -104,16 +104,36 @@ interface KTBaseAttribute {
104
104
  }
105
105
 
106
106
  type KTPrefixedEventHandlers = {
107
- [EventName in keyof HTMLElementEventMap as `on:${EventName}`]?: (ev: HTMLElementEventMap[EventName]) => void;
107
+ [EventName in keyof HTMLElementEventMap as `on:${EventName}`]?:
108
+ | ((ev: HTMLElementEventMap[EventName]) => void)
109
+ | (Function & {});
108
110
  };
109
111
 
110
112
  type KTSpecialEventHandlers = {
113
+ /**
114
+ * Directly extract `value` from the input element
115
+ */
111
116
  'on:ktchange'?: (value: string) => void;
117
+ /**
118
+ * Directly extract `value` and trim it
119
+ */
112
120
  'ontrim:ktchange'?: (value: string) => void;
121
+ /**
122
+ * Directly extract `value` and parse it to number
123
+ */
113
124
  'on:ktchangenumber'?: (value: number) => void;
114
125
 
126
+ /**
127
+ * Directly extract `value` from the input element
128
+ */
115
129
  'on:ktinput'?: (value: string) => void;
130
+ /**
131
+ * Directly extract `value` and trim it
132
+ */
116
133
  'ontrim:ktinput'?: (value: string) => void;
134
+ /**
135
+ * Directly extract `value` and parse it to number
136
+ */
117
137
  'on:ktinputnumber'?: (value: number) => void;
118
138
  };
119
139
 
@@ -130,7 +150,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
130
150
  * ## About
131
151
  * @package @ktjs/core
132
152
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
133
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
153
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
134
154
  * @license MIT
135
155
  * @link https://github.com/baendlorel/kt.js
136
156
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -203,7 +203,7 @@ let creator = defaultCreator;
203
203
  * ## About
204
204
  * @package @ktjs/core
205
205
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
206
- * @version 0.15.5 (Last Update: 2026.01.25 18:25:48.373)
206
+ * @version 0.15.6 (Last Update: 2026.01.27 15:41:57.932)
207
207
  * @license MIT
208
208
  * @link https://github.com/baendlorel/kt.js
209
209
  * @link https://baendlorel.github.io/ Welcome to my site!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/core",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
4
4
  "description": "Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",