tiny-essentials 1.28.1 → 1.28.2

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 (211) hide show
  1. package/changelog/1/28/2.md +43 -0
  2. package/dist/_/numbers.d.mts +91 -16
  3. package/dist/v1/TinyBasicsEs.min.js +1 -1
  4. package/dist/v1/TinyEssentials.min.js +1 -1
  5. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  6. package/dist/v1/TinyRadioFm.min.js +1 -1
  7. package/dist/v1/basics/array.d.mts +14 -14
  8. package/dist/v1/basics/clock.cjs +15 -15
  9. package/dist/v1/basics/clock.d.mts +21 -21
  10. package/dist/v1/basics/clock.mjs +15 -15
  11. package/dist/v1/basics/collision.d.mts +245 -104
  12. package/dist/v1/basics/deprecated/html.d.mts +33 -33
  13. package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
  14. package/dist/v1/basics/fullScreen.d.mts +47 -7
  15. package/dist/v1/basics/html.d.mts +52 -61
  16. package/dist/v1/basics/index.d.mts +11 -67
  17. package/dist/v1/basics/mediaContent.cjs +65 -23
  18. package/dist/v1/basics/mediaContent.d.mts +144 -73
  19. package/dist/v1/basics/mediaContent.mjs +65 -23
  20. package/dist/v1/basics/objChecker.d.mts +2 -2
  21. package/dist/v1/basics/objFilter.cjs +31 -7
  22. package/dist/v1/basics/objFilter.d.mts +10 -13
  23. package/dist/v1/basics/objFilter.mjs +31 -7
  24. package/dist/v1/basics/simpleMath.d.mts +21 -21
  25. package/dist/v1/basics/text.d.mts +34 -46
  26. package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
  27. package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
  28. package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
  29. package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
  30. package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
  31. package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
  32. package/dist/v1/build/TinyClassManager.d.mts +1 -1
  33. package/dist/v1/build/TinyClipboard.d.mts +1 -1
  34. package/dist/v1/build/TinyColorConverter.d.mts +1 -1
  35. package/dist/v1/build/TinyColorValidator.d.mts +1 -1
  36. package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
  37. package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
  38. package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
  39. package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
  40. package/dist/v1/build/TinyDragger.d.mts +1 -1
  41. package/dist/v1/build/TinyElementObserver.d.mts +1 -1
  42. package/dist/v1/build/TinyGamepad.d.mts +1 -1
  43. package/dist/v1/build/TinyHtml.d.mts +1 -1
  44. package/dist/v1/build/TinyI18.d.mts +1 -1
  45. package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
  46. package/dist/v1/build/TinyInventory.d.mts +1 -1
  47. package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
  48. package/dist/v1/build/TinyLevelUp.d.mts +1 -1
  49. package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
  50. package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
  51. package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
  52. package/dist/v1/build/TinyNeedBar.d.mts +1 -1
  53. package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
  54. package/dist/v1/build/TinyNotifications.d.mts +1 -1
  55. package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
  56. package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
  57. package/dist/v1/build/TinyRadioFm.d.mts +1 -1
  58. package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
  59. package/dist/v1/build/TinySimpleDice.d.mts +1 -1
  60. package/dist/v1/build/TinySmartScroller.d.mts +1 -1
  61. package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
  62. package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
  63. package/dist/v1/build/TinyTextarea.d.mts +1 -1
  64. package/dist/v1/build/TinyTimeout.d.mts +1 -1
  65. package/dist/v1/build/TinyToastNotify.d.mts +1 -1
  66. package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
  67. package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
  68. package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
  69. package/dist/v1/fileManager/index.d.mts +3 -29
  70. package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
  71. package/dist/v1/index.d.mts +53 -139
  72. package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
  73. package/dist/v1/libs/TinyAdvancedRaffle.d.mts +60 -103
  74. package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +11 -18
  75. package/dist/v1/libs/TinyAnalogClock.d.mts +8 -11
  76. package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
  77. package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
  78. package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
  79. package/dist/v1/libs/TinyClassManager.cjs +5 -7
  80. package/dist/v1/libs/TinyClassManager.d.mts +16 -16
  81. package/dist/v1/libs/TinyClassManager.mjs +5 -6
  82. package/dist/v1/libs/TinyClipboard.d.mts +8 -3
  83. package/dist/v1/libs/TinyColorConverter.d.mts +8 -31
  84. package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
  85. package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
  86. package/dist/v1/libs/TinyDayNightCycle.d.mts +85 -110
  87. package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
  88. package/dist/v1/libs/TinyDragDropDetector.d.mts +30 -30
  89. package/dist/v1/libs/TinyDragger.d.mts +82 -81
  90. package/dist/v1/libs/TinyElementObserver.d.mts +25 -28
  91. package/dist/v1/libs/TinyGamepad.cjs +0 -1
  92. package/dist/v1/libs/TinyGamepad.d.mts +50 -122
  93. package/dist/v1/libs/TinyGamepad.mjs +0 -1
  94. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
  95. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
  96. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
  97. package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
  98. package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
  99. package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
  100. package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
  101. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
  102. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
  103. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
  104. package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
  105. package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
  106. package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
  107. package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
  108. package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
  109. package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
  110. package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
  111. package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
  112. package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
  113. package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
  114. package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
  115. package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
  116. package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
  117. package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
  118. package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
  119. package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
  120. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
  121. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
  122. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
  123. package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
  124. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
  125. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
  126. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
  127. package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
  128. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
  129. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
  130. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
  131. package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
  132. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
  133. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
  134. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
  135. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
  136. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
  137. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
  138. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
  139. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
  140. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
  141. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
  142. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
  143. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
  144. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
  145. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
  146. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
  147. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
  148. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
  149. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
  150. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
  151. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
  152. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
  153. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
  154. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
  155. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
  156. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
  157. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
  158. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
  159. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
  160. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
  161. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
  162. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
  163. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
  164. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
  165. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
  166. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
  167. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
  168. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
  169. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
  170. package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
  171. package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
  172. package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
  173. package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
  174. package/dist/v1/libs/TinyHtml.cjs +3 -4
  175. package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
  176. package/dist/v1/libs/TinyHtml.mjs +3 -4
  177. package/dist/v1/libs/TinyI18.d.mts +23 -61
  178. package/dist/v1/libs/TinyIframeEvents.cjs +1 -1
  179. package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
  180. package/dist/v1/libs/TinyIframeEvents.mjs +1 -1
  181. package/dist/v1/libs/TinyInventory.d.mts +78 -141
  182. package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
  183. package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
  184. package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
  185. package/dist/v1/libs/TinyLocalStorage.d.mts +11 -36
  186. package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
  187. package/dist/v1/libs/TinyMediaPlayer.cjs +5 -3
  188. package/dist/v1/libs/TinyMediaPlayer.d.mts +102 -109
  189. package/dist/v1/libs/TinyMediaPlayer.mjs +5 -3
  190. package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
  191. package/dist/v1/libs/TinyNewWinEvents.d.mts +29 -32
  192. package/dist/v1/libs/TinyNotifications.d.mts +6 -6
  193. package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -21
  194. package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
  195. package/dist/v1/libs/TinyRadioFm.cjs +32 -12
  196. package/dist/v1/libs/TinyRadioFm.d.mts +44 -80
  197. package/dist/v1/libs/TinyRadioFm.mjs +29 -12
  198. package/dist/v1/libs/TinyRateLimiter.d.mts +26 -39
  199. package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
  200. package/dist/v1/libs/TinySmartScroller.d.mts +50 -60
  201. package/dist/v1/libs/TinyTextDiffer.d.mts +11 -14
  202. package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
  203. package/dist/v1/libs/TinyTextarea.d.mts +31 -31
  204. package/dist/v1/libs/TinyTimeout.d.mts +14 -14
  205. package/dist/v1/libs/TinyToastNotify.cjs +1 -1
  206. package/dist/v1/libs/TinyToastNotify.d.mts +15 -23
  207. package/dist/v1/libs/TinyToastNotify.mjs +1 -1
  208. package/dist/v1/libs/TinyUploadClicker.d.mts +38 -14
  209. package/dist/v1/libs/UltraRandomMsgGen.d.mts +44 -84
  210. package/dist/v1/libs/utils.d.mts +5 -1
  211. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- export default TinyHtmlButtonInput;
1
+ import TinyHtmlInput from '../../TinyHtmlInput.mjs';
2
2
  /**
3
3
  * TinyHtmlButtonInput is a helper class for managing `<input type="button">` elements.
4
4
  * It provides validation and easy configuration for standard and button-specific attributes.
@@ -19,7 +19,7 @@ declare class TinyHtmlButtonInput extends TinyHtmlInput {
19
19
  * @param {string} [config.placeholder] - Placeholder text (non-standard for buttons).
20
20
  * @param {string} [config.popovertarget] - The ID of the target popover.
21
21
  * @param {"show"|"hide"|"toggle"} [config.popovertargetaction] - The action applied to the popover.
22
- * @param {string|number} [config.value="Button"] - The label displayed on the button.
22
+ * @param {string} [config.value="Button"] - The label displayed on the button.
23
23
  * @param {boolean} [config.readonly=false] - Whether the input is read-only.
24
24
  * @param {boolean} [config.required=false] - Whether the input is required.
25
25
  * @param {string|string[]|Set<string>} [config.tags=[]] - Initial CSS classes.
@@ -27,18 +27,18 @@ declare class TinyHtmlButtonInput extends TinyHtmlInput {
27
27
  * @throws {TypeError} If attributes are of the wrong type.
28
28
  */
29
29
  constructor({ value, tags, placeholder, popovertarget, popovertargetaction, readonly, required, name, mainClass, }?: {
30
- name?: string | undefined;
31
- placeholder?: string | undefined;
32
- popovertarget?: string | undefined;
33
- popovertargetaction?: "hide" | "show" | "toggle" | undefined;
34
- value?: string | number | undefined;
35
- readonly?: boolean | undefined;
36
- required?: boolean | undefined;
37
- tags?: string | string[] | Set<string> | undefined;
38
- mainClass?: string | undefined;
30
+ name?: string;
31
+ placeholder?: string;
32
+ popovertarget?: string;
33
+ popovertargetaction?: "show" | "hide" | "toggle";
34
+ value?: string;
35
+ readonly?: boolean;
36
+ required?: boolean;
37
+ tags?: string | string[] | Set<string>;
38
+ mainClass?: string;
39
39
  });
40
- /** @param {string|number} value */
41
- set value(value: string | number);
40
+ /** @param {string} value */
41
+ set value(value: string);
42
42
  /** @returns {string|null} */
43
43
  get value(): string | null;
44
44
  /** @param {string} popovertarget */
@@ -50,5 +50,5 @@ declare class TinyHtmlButtonInput extends TinyHtmlInput {
50
50
  /** @returns {string|null} */
51
51
  get popovertargetaction(): string | null;
52
52
  }
53
- import TinyHtmlInput from '../../TinyHtmlInput.mjs';
53
+ export default TinyHtmlButtonInput;
54
54
  //# sourceMappingURL=TinyHtmlButtonInput.d.mts.map
@@ -19,7 +19,7 @@ class TinyHtmlButtonInput extends TinyHtmlInput {
19
19
  * @param {string} [config.placeholder] - Placeholder text (non-standard for buttons).
20
20
  * @param {string} [config.popovertarget] - The ID of the target popover.
21
21
  * @param {"show"|"hide"|"toggle"} [config.popovertargetaction] - The action applied to the popover.
22
- * @param {string|number} [config.value="Button"] - The label displayed on the button.
22
+ * @param {string} [config.value="Button"] - The label displayed on the button.
23
23
  * @param {boolean} [config.readonly=false] - Whether the input is read-only.
24
24
  * @param {boolean} [config.required=false] - Whether the input is required.
25
25
  * @param {string|string[]|Set<string>} [config.tags=[]] - Initial CSS classes.
@@ -34,15 +34,16 @@ class TinyHtmlButtonInput extends TinyHtmlInput {
34
34
  if (popovertargetaction !== undefined)
35
35
  this.popovertargetaction = popovertargetaction;
36
36
  }
37
- /** @param {string|number} value */
37
+ /** @param {string} value */
38
38
  set value(value) {
39
39
  if (typeof value !== 'string' && typeof value !== 'number')
40
- throw new TypeError('TinyHtmlButtonInput: "value" must be a string or number.');
40
+ throw new TypeError('TinyHtmlButtonInput: "value" must be a string.');
41
41
  this.setAttr('value', String(value));
42
+ this.setVal(String(value));
42
43
  }
43
44
  /** @returns {string|null} */
44
45
  get value() {
45
- return this.attrString('value');
46
+ return this.valTxt();
46
47
  }
47
48
  /** @param {string} popovertarget */
48
49
  set popovertarget(popovertarget) {
@@ -19,7 +19,7 @@ class TinyHtmlResetInput extends TinyHtmlInput {
19
19
  /**
20
20
  * Creates a new TinyHtmlResetInput instance.
21
21
  * @param {Object} config - Configuration object.
22
- * @param {string|number} [config.value] - The initial value of the reset button.
22
+ * @param {string} [config.value] - The initial value of the reset button.
23
23
  * @param {string} [config.name] - The name of the control.
24
24
  * @param {string} [config.placeholder] - Placeholder text (non-standard but supported).
25
25
  * @param {boolean} [config.readonly=false] - Whether the input is read-only.
@@ -46,13 +46,14 @@ class TinyHtmlResetInput extends TinyHtmlInput {
46
46
  /** @param {string|number} value */
47
47
  set value(value) {
48
48
  if (typeof value !== 'string' && typeof value !== 'number')
49
- throw new TypeError('TinyHtmlResetInput: "value" must be a string or number.');
49
+ throw new TypeError('TinyHtmlResetInput: "value" must be a string.');
50
50
  this.setAttr('value', value);
51
+ this.setVal(value);
51
52
  }
52
53
 
53
54
  /** @returns {string|null} */
54
55
  get value() {
55
- return this.attrString('value');
56
+ return this.valTxt();
56
57
  }
57
58
  }
58
59
 
@@ -1,4 +1,4 @@
1
- export default TinyHtmlResetInput;
1
+ import TinyHtmlInput from '../../TinyHtmlInput.mjs';
2
2
  /**
3
3
  * TinyHtmlResetInput is a helper class for managing `<input type="reset">` elements.
4
4
  * It allows configuring common attributes such as value, name, placeholder,
@@ -16,7 +16,7 @@ declare class TinyHtmlResetInput extends TinyHtmlInput {
16
16
  /**
17
17
  * Creates a new TinyHtmlResetInput instance.
18
18
  * @param {Object} config - Configuration object.
19
- * @param {string|number} [config.value] - The initial value of the reset button.
19
+ * @param {string} [config.value] - The initial value of the reset button.
20
20
  * @param {string} [config.name] - The name of the control.
21
21
  * @param {string} [config.placeholder] - Placeholder text (non-standard but supported).
22
22
  * @param {boolean} [config.readonly=false] - Whether the input is read-only.
@@ -26,18 +26,18 @@ declare class TinyHtmlResetInput extends TinyHtmlInput {
26
26
  * @throws {TypeError} If any attribute is of the wrong type.
27
27
  */
28
28
  constructor({ value, name, placeholder, readonly, required, tags, mainClass, }?: {
29
- value?: string | number | undefined;
30
- name?: string | undefined;
31
- placeholder?: string | undefined;
32
- readonly?: boolean | undefined;
33
- required?: boolean | undefined;
34
- tags?: string | string[] | Set<string> | undefined;
35
- mainClass?: string | undefined;
29
+ value?: string;
30
+ name?: string;
31
+ placeholder?: string;
32
+ readonly?: boolean;
33
+ required?: boolean;
34
+ tags?: string | string[] | Set<string>;
35
+ mainClass?: string;
36
36
  });
37
37
  /** @param {string|number} value */
38
38
  set value(value: string | number);
39
39
  /** @returns {string|null} */
40
40
  get value(): string | null;
41
41
  }
42
- import TinyHtmlInput from '../../TinyHtmlInput.mjs';
42
+ export default TinyHtmlResetInput;
43
43
  //# sourceMappingURL=TinyHtmlResetInput.d.mts.map
@@ -16,7 +16,7 @@ class TinyHtmlResetInput extends TinyHtmlInput {
16
16
  /**
17
17
  * Creates a new TinyHtmlResetInput instance.
18
18
  * @param {Object} config - Configuration object.
19
- * @param {string|number} [config.value] - The initial value of the reset button.
19
+ * @param {string} [config.value] - The initial value of the reset button.
20
20
  * @param {string} [config.name] - The name of the control.
21
21
  * @param {string} [config.placeholder] - Placeholder text (non-standard but supported).
22
22
  * @param {boolean} [config.readonly=false] - Whether the input is read-only.
@@ -34,12 +34,13 @@ class TinyHtmlResetInput extends TinyHtmlInput {
34
34
  /** @param {string|number} value */
35
35
  set value(value) {
36
36
  if (typeof value !== 'string' && typeof value !== 'number')
37
- throw new TypeError('TinyHtmlResetInput: "value" must be a string or number.');
37
+ throw new TypeError('TinyHtmlResetInput: "value" must be a string.');
38
38
  this.setAttr('value', value);
39
+ this.setVal(value);
39
40
  }
40
41
  /** @returns {string|null} */
41
42
  get value() {
42
- return this.attrString('value');
43
+ return this.valTxt();
43
44
  }
44
45
  }
45
46
  export default TinyHtmlResetInput;
@@ -20,7 +20,7 @@ class TinyHtmlSubmitInput extends TinyHtmlInput {
20
20
  /**
21
21
  * Creates a new TinyHtmlSubmitInput instance.
22
22
  * @param {Object} config - Configuration object.
23
- * @param {string|number} [config.value] - Initial value (button label).
23
+ * @param {string} [config.value] - Initial value (button label).
24
24
  * @param {string} [config.name] - Name of the input control.
25
25
  * @param {string} [config.placeholder] - Placeholder text (not common for submit inputs).
26
26
  * @param {'application/x-www-form-urlencoded'|'multipart/form-data'|'text/plain'} [config.formenctype] - Form encoding type.
@@ -58,16 +58,17 @@ class TinyHtmlSubmitInput extends TinyHtmlInput {
58
58
  if (formtarget !== undefined) this.formtarget = formtarget;
59
59
  }
60
60
 
61
- /** @param {string|number} value */
61
+ /** @param {string} value */
62
62
  set value(value) {
63
63
  if (typeof value !== 'string' && typeof value !== 'number')
64
64
  throw new TypeError('TinyHtmlSubmitInput: "value" must be a string or number.');
65
65
  this.setAttr('value', value);
66
+ this.setVal(value);
66
67
  }
67
68
 
68
69
  /** @returns {string|null} */
69
70
  get value() {
70
- return this.attrString('value');
71
+ return this.valTxt();
71
72
  }
72
73
 
73
74
  /** @param {string} formaction */
@@ -1,4 +1,4 @@
1
- export default TinyHtmlSubmitInput;
1
+ import TinyHtmlInput from '../../TinyHtmlInput.mjs';
2
2
  /**
3
3
  * TinyHtmlSubmitInput is a helper class for managing
4
4
  * <input type="submit"> elements with validation and attribute/property handling.
@@ -17,7 +17,7 @@ declare class TinyHtmlSubmitInput extends TinyHtmlInput {
17
17
  /**
18
18
  * Creates a new TinyHtmlSubmitInput instance.
19
19
  * @param {Object} config - Configuration object.
20
- * @param {string|number} [config.value] - Initial value (button label).
20
+ * @param {string} [config.value] - Initial value (button label).
21
21
  * @param {string} [config.name] - Name of the input control.
22
22
  * @param {string} [config.placeholder] - Placeholder text (not common for submit inputs).
23
23
  * @param {'application/x-www-form-urlencoded'|'multipart/form-data'|'text/plain'} [config.formenctype] - Form encoding type.
@@ -32,21 +32,21 @@ declare class TinyHtmlSubmitInput extends TinyHtmlInput {
32
32
  * @throws {TypeError} If any attribute is of the wrong type.
33
33
  */
34
34
  constructor({ formenctype, formmethod, formnovalidate, formtarget, formaction, readonly, required, value, tags, name, placeholder, mainClass, }?: {
35
- value?: string | number | undefined;
36
- name?: string | undefined;
37
- placeholder?: string | undefined;
38
- formenctype?: "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | undefined;
39
- formmethod?: "dialog" | "get" | "post" | undefined;
40
- formnovalidate?: boolean | undefined;
41
- formtarget?: string | undefined;
42
- formaction?: string | undefined;
43
- readonly?: boolean | undefined;
44
- required?: boolean | undefined;
45
- tags?: string | string[] | Set<string> | undefined;
46
- mainClass?: string | undefined;
35
+ value?: string;
36
+ name?: string;
37
+ placeholder?: string;
38
+ formenctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
39
+ formmethod?: 'get' | 'post' | 'dialog';
40
+ formnovalidate?: boolean;
41
+ formtarget?: '_self' | '_blank' | '_parent' | '_top' | string;
42
+ formaction?: string;
43
+ readonly?: boolean;
44
+ required?: boolean;
45
+ tags?: string | string[] | Set<string>;
46
+ mainClass?: string;
47
47
  });
48
- /** @param {string|number} value */
49
- set value(value: string | number);
48
+ /** @param {string} value */
49
+ set value(value: string);
50
50
  /** @returns {string|null} */
51
51
  get value(): string | null;
52
52
  /** @param {string} formaction */
@@ -54,11 +54,11 @@ declare class TinyHtmlSubmitInput extends TinyHtmlInput {
54
54
  /** @returns {string|null} */
55
55
  get formaction(): string | null;
56
56
  /** @param {'application/x-www-form-urlencoded'|'multipart/form-data'|'text/plain'} formenctype */
57
- set formenctype(formenctype: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain");
57
+ set formenctype(formenctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain');
58
58
  /** @returns {string|null} */
59
59
  get formenctype(): string | null;
60
60
  /** @param {'get'|'post'|'dialog'} formmethod */
61
- set formmethod(formmethod: "get" | "post" | "dialog");
61
+ set formmethod(formmethod: 'get' | 'post' | 'dialog');
62
62
  /** @returns {string|null} */
63
63
  get formmethod(): string | null;
64
64
  /** @param {boolean} formnovalidate */
@@ -70,5 +70,5 @@ declare class TinyHtmlSubmitInput extends TinyHtmlInput {
70
70
  /** @returns {string|null} */
71
71
  get formtarget(): string | null;
72
72
  }
73
- import TinyHtmlInput from '../../TinyHtmlInput.mjs';
73
+ export default TinyHtmlSubmitInput;
74
74
  //# sourceMappingURL=TinyHtmlSubmitInput.d.mts.map
@@ -17,7 +17,7 @@ class TinyHtmlSubmitInput extends TinyHtmlInput {
17
17
  /**
18
18
  * Creates a new TinyHtmlSubmitInput instance.
19
19
  * @param {Object} config - Configuration object.
20
- * @param {string|number} [config.value] - Initial value (button label).
20
+ * @param {string} [config.value] - Initial value (button label).
21
21
  * @param {string} [config.name] - Name of the input control.
22
22
  * @param {string} [config.placeholder] - Placeholder text (not common for submit inputs).
23
23
  * @param {'application/x-www-form-urlencoded'|'multipart/form-data'|'text/plain'} [config.formenctype] - Form encoding type.
@@ -45,15 +45,16 @@ class TinyHtmlSubmitInput extends TinyHtmlInput {
45
45
  if (formtarget !== undefined)
46
46
  this.formtarget = formtarget;
47
47
  }
48
- /** @param {string|number} value */
48
+ /** @param {string} value */
49
49
  set value(value) {
50
50
  if (typeof value !== 'string' && typeof value !== 'number')
51
51
  throw new TypeError('TinyHtmlSubmitInput: "value" must be a string or number.');
52
52
  this.setAttr('value', value);
53
+ this.setVal(value);
53
54
  }
54
55
  /** @returns {string|null} */
55
56
  get value() {
56
- return this.attrString('value');
57
+ return this.valTxt();
57
58
  }
58
59
  /** @param {string} formaction */
59
60
  set formaction(formaction) {
@@ -20,7 +20,7 @@ class TinyHtmlCheckboxInput extends TinyHtmlInput {
20
20
  * @param {Object} config - Configuration object.
21
21
  * @param {boolean} [config.checked=false] - Whether the checkbox is checked.
22
22
  * @param {string} config.name - Input name attribute.
23
- * @param {string|number} [config.value] - Input value when checked.
23
+ * @param {string} [config.value] - Input value when checked.
24
24
  * @param {boolean} [config.readonly=false] - Whether the checkbox is readonly.
25
25
  * @param {boolean} [config.required=false] - Whether the checkbox is required.
26
26
  * @param {string|string[]|Set<string>} [config.tags=[]] - Initial CSS classes.
@@ -59,17 +59,18 @@ class TinyHtmlCheckboxInput extends TinyHtmlInput {
59
59
  return this.hasProp('checked');
60
60
  }
61
61
 
62
- /** @param {string|number} value */
62
+ /** @param {string} value */
63
63
  set value(value) {
64
64
  if (typeof value !== 'string' && typeof value !== 'number') {
65
- throw new TypeError('TinyHtmlCheckboxInput: "value" must be a string or number.');
65
+ throw new TypeError('TinyHtmlCheckboxInput: "value" must be a string.');
66
66
  }
67
67
  this.setAttr('value', value);
68
+ this.setVal(value);
68
69
  }
69
70
 
70
71
  /** @returns {string|null} */
71
72
  get value() {
72
- return this.attrString('value');
73
+ return this.valTxt();
73
74
  }
74
75
 
75
76
  /**
@@ -1,4 +1,4 @@
1
- export default TinyHtmlCheckboxInput;
1
+ import TinyHtmlInput from '../../TinyHtmlInput.mjs';
2
2
  /**
3
3
  * TinyHtmlCheckboxInput is a helper class for managing <input type="checkbox"> elements.
4
4
  * It allows configuring standard attributes such as name, value, checked, readonly, and required,
@@ -17,7 +17,7 @@ declare class TinyHtmlCheckboxInput extends TinyHtmlInput {
17
17
  * @param {Object} config - Configuration object.
18
18
  * @param {boolean} [config.checked=false] - Whether the checkbox is checked.
19
19
  * @param {string} config.name - Input name attribute.
20
- * @param {string|number} [config.value] - Input value when checked.
20
+ * @param {string} [config.value] - Input value when checked.
21
21
  * @param {boolean} [config.readonly=false] - Whether the checkbox is readonly.
22
22
  * @param {boolean} [config.required=false] - Whether the checkbox is required.
23
23
  * @param {string|string[]|Set<string>} [config.tags=[]] - Initial CSS classes.
@@ -25,20 +25,20 @@ declare class TinyHtmlCheckboxInput extends TinyHtmlInput {
25
25
  * @throws {TypeError} If an attribute is of the wrong type.
26
26
  */
27
27
  constructor({ checked, name, value, readonly, required, tags, mainClass, }: {
28
- checked?: boolean | undefined;
28
+ checked?: boolean;
29
29
  name: string;
30
- value?: string | number | undefined;
31
- readonly?: boolean | undefined;
32
- required?: boolean | undefined;
33
- tags?: string | string[] | Set<string> | undefined;
34
- mainClass?: string | undefined;
30
+ value?: string;
31
+ readonly?: boolean;
32
+ required?: boolean;
33
+ tags?: string | string[] | Set<string>;
34
+ mainClass?: string;
35
35
  });
36
36
  /** @param {boolean} checked */
37
37
  set checked(checked: boolean);
38
38
  /** @returns {boolean} */
39
39
  get checked(): boolean;
40
- /** @param {string|number} value */
41
- set value(value: string | number);
40
+ /** @param {string} value */
41
+ set value(value: string);
42
42
  /** @returns {string|null} */
43
43
  get value(): string | null;
44
44
  /**
@@ -57,5 +57,5 @@ declare class TinyHtmlCheckboxInput extends TinyHtmlInput {
57
57
  */
58
58
  toggle(): this;
59
59
  }
60
- import TinyHtmlInput from '../../TinyHtmlInput.mjs';
60
+ export default TinyHtmlCheckboxInput;
61
61
  //# sourceMappingURL=TinyHtmlCheckboxInput.d.mts.map
@@ -17,7 +17,7 @@ class TinyHtmlCheckboxInput extends TinyHtmlInput {
17
17
  * @param {Object} config - Configuration object.
18
18
  * @param {boolean} [config.checked=false] - Whether the checkbox is checked.
19
19
  * @param {string} config.name - Input name attribute.
20
- * @param {string|number} [config.value] - Input value when checked.
20
+ * @param {string} [config.value] - Input value when checked.
21
21
  * @param {boolean} [config.readonly=false] - Whether the checkbox is readonly.
22
22
  * @param {boolean} [config.required=false] - Whether the checkbox is required.
23
23
  * @param {string|string[]|Set<string>} [config.tags=[]] - Initial CSS classes.
@@ -46,16 +46,17 @@ class TinyHtmlCheckboxInput extends TinyHtmlInput {
46
46
  get checked() {
47
47
  return this.hasProp('checked');
48
48
  }
49
- /** @param {string|number} value */
49
+ /** @param {string} value */
50
50
  set value(value) {
51
51
  if (typeof value !== 'string' && typeof value !== 'number') {
52
- throw new TypeError('TinyHtmlCheckboxInput: "value" must be a string or number.');
52
+ throw new TypeError('TinyHtmlCheckboxInput: "value" must be a string.');
53
53
  }
54
54
  this.setAttr('value', value);
55
+ this.setVal(value);
55
56
  }
56
57
  /** @returns {string|null} */
57
58
  get value() {
58
- return this.attrString('value');
59
+ return this.valTxt();
59
60
  }
60
61
  /**
61
62
  * Checks the checkbox.
@@ -24,7 +24,7 @@ class TinyHtmlRadioInput extends TinyHtmlInput {
24
24
  * Creates a new TinyHtmlRadioInput instance.
25
25
  * @param {Object} config - Configuration object.
26
26
  * @param {string} config.name - Radio group name (required).
27
- * @param {string|number} [config.value] - Value for this radio option.
27
+ * @param {string} [config.value] - Value for this radio option.
28
28
  * @param {boolean} [config.checked=false] - Whether this radio is selected.
29
29
  * @param {boolean} [config.readonly=false] - Whether the input is readonly.
30
30
  * @param {boolean} [config.required=false] - Whether the input is required.
@@ -62,17 +62,18 @@ class TinyHtmlRadioInput extends TinyHtmlInput {
62
62
  this.required = required;
63
63
  }
64
64
 
65
- /** @param {string|number} value */
65
+ /** @param {string} value */
66
66
  set value(value) {
67
67
  if (typeof value !== 'string' && typeof value !== 'number') {
68
68
  throw new TypeError('TinyHtmlRadioInput: "value" must be a string or number.');
69
69
  }
70
70
  this.setAttr('value', value);
71
+ this.setVal(value);
71
72
  }
72
73
 
73
74
  /** @returns {string|null} */
74
75
  get value() {
75
- return this.attrString('value');
76
+ return this.valTxt();
76
77
  }
77
78
 
78
79
  /** @param {string} name */
@@ -1,4 +1,4 @@
1
- export default TinyHtmlRadioInput;
1
+ import TinyHtmlInput from '../../TinyHtmlInput.mjs';
2
2
  /**
3
3
  * TinyHtmlRadioInput is a helper class for managing `<input type="radio">` elements.
4
4
  * It provides strict validation for attributes like `name`, `value`, `checked`, `readonly`,
@@ -21,7 +21,7 @@ declare class TinyHtmlRadioInput extends TinyHtmlInput {
21
21
  * Creates a new TinyHtmlRadioInput instance.
22
22
  * @param {Object} config - Configuration object.
23
23
  * @param {string} config.name - Radio group name (required).
24
- * @param {string|number} [config.value] - Value for this radio option.
24
+ * @param {string} [config.value] - Value for this radio option.
25
25
  * @param {boolean} [config.checked=false] - Whether this radio is selected.
26
26
  * @param {boolean} [config.readonly=false] - Whether the input is readonly.
27
27
  * @param {boolean} [config.required=false] - Whether the input is required.
@@ -31,17 +31,21 @@ declare class TinyHtmlRadioInput extends TinyHtmlInput {
31
31
  */
32
32
  constructor({ name, value, checked, readonly, required, tags, mainClass, }: {
33
33
  name: string;
34
- value?: string | number | undefined;
35
- checked?: boolean | undefined;
36
- readonly?: boolean | undefined;
37
- required?: boolean | undefined;
38
- tags?: string | string[] | Set<string> | undefined;
39
- mainClass?: string | undefined;
34
+ value?: string;
35
+ checked?: boolean;
36
+ readonly?: boolean;
37
+ required?: boolean;
38
+ tags?: string | string[] | Set<string>;
39
+ mainClass?: string;
40
40
  });
41
- /** @param {string|number} value */
42
- set value(value: string | number);
41
+ /** @param {string} value */
42
+ set value(value: string);
43
43
  /** @returns {string|null} */
44
44
  get value(): string | null;
45
+ /** @param {string} name */
46
+ set name(name: string);
47
+ /** @returns {string|null} */
48
+ get name(): string | null;
45
49
  /** @param {boolean} checked */
46
50
  set checked(checked: boolean);
47
51
  /** @returns {boolean} */
@@ -52,5 +56,5 @@ declare class TinyHtmlRadioInput extends TinyHtmlInput {
52
56
  */
53
57
  toggle(): this;
54
58
  }
55
- import TinyHtmlInput from '../../TinyHtmlInput.mjs';
59
+ export default TinyHtmlRadioInput;
56
60
  //# sourceMappingURL=TinyHtmlRadioInput.d.mts.map
@@ -21,7 +21,7 @@ class TinyHtmlRadioInput extends TinyHtmlInput {
21
21
  * Creates a new TinyHtmlRadioInput instance.
22
22
  * @param {Object} config - Configuration object.
23
23
  * @param {string} config.name - Radio group name (required).
24
- * @param {string|number} [config.value] - Value for this radio option.
24
+ * @param {string} [config.value] - Value for this radio option.
25
25
  * @param {boolean} [config.checked=false] - Whether this radio is selected.
26
26
  * @param {boolean} [config.readonly=false] - Whether the input is readonly.
27
27
  * @param {boolean} [config.required=false] - Whether the input is required.
@@ -46,16 +46,17 @@ class TinyHtmlRadioInput extends TinyHtmlInput {
46
46
  // --- required ---
47
47
  this.required = required;
48
48
  }
49
- /** @param {string|number} value */
49
+ /** @param {string} value */
50
50
  set value(value) {
51
51
  if (typeof value !== 'string' && typeof value !== 'number') {
52
52
  throw new TypeError('TinyHtmlRadioInput: "value" must be a string or number.');
53
53
  }
54
54
  this.setAttr('value', value);
55
+ this.setVal(value);
55
56
  }
56
57
  /** @returns {string|null} */
57
58
  get value() {
58
- return this.attrString('value');
59
+ return this.valTxt();
59
60
  }
60
61
  /** @param {string} name */
61
62
  set name(name) {