tiny-essentials 1.28.1 → 1.28.3
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/changelog/1/28/2.md +43 -0
- package/changelog/1/28/3.md +9 -0
- package/dist/_/numbers.d.mts +91 -16
- package/dist/v1/TinyBasicsEs.min.js +1 -1
- package/dist/v1/TinyEssentials.min.js +1 -1
- package/dist/v1/TinyMediaPlayer.min.js +1 -1
- package/dist/v1/TinyRadioFm.min.js +1 -1
- package/dist/v1/basics/array.d.mts +14 -14
- package/dist/v1/basics/clock.cjs +15 -15
- package/dist/v1/basics/clock.d.mts +21 -21
- package/dist/v1/basics/clock.mjs +15 -15
- package/dist/v1/basics/collision.d.mts +245 -104
- package/dist/v1/basics/deprecated/html.d.mts +33 -33
- package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
- package/dist/v1/basics/fullScreen.d.mts +47 -7
- package/dist/v1/basics/html.d.mts +52 -61
- package/dist/v1/basics/index.cjs +2 -0
- package/dist/v1/basics/index.d.mts +11 -67
- package/dist/v1/basics/index.mjs +2 -2
- package/dist/v1/basics/mediaContent.cjs +65 -23
- package/dist/v1/basics/mediaContent.d.mts +144 -73
- package/dist/v1/basics/mediaContent.mjs +65 -23
- package/dist/v1/basics/objChecker.d.mts +2 -2
- package/dist/v1/basics/objFilter.cjs +50 -16
- package/dist/v1/basics/objFilter.d.mts +34 -13
- package/dist/v1/basics/objFilter.mjs +48 -16
- package/dist/v1/basics/simpleMath.d.mts +21 -21
- package/dist/v1/basics/text.d.mts +34 -46
- package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
- package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
- package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
- package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
- package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
- package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
- package/dist/v1/build/TinyClassManager.d.mts +1 -1
- package/dist/v1/build/TinyClipboard.d.mts +1 -1
- package/dist/v1/build/TinyColorConverter.d.mts +1 -1
- package/dist/v1/build/TinyColorValidator.d.mts +1 -1
- package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
- package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
- package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
- package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
- package/dist/v1/build/TinyDragger.d.mts +1 -1
- package/dist/v1/build/TinyElementObserver.d.mts +1 -1
- package/dist/v1/build/TinyGamepad.d.mts +1 -1
- package/dist/v1/build/TinyHtml.d.mts +1 -1
- package/dist/v1/build/TinyI18.d.mts +1 -1
- package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
- package/dist/v1/build/TinyInventory.d.mts +1 -1
- package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
- package/dist/v1/build/TinyLevelUp.d.mts +1 -1
- package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
- package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
- package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
- package/dist/v1/build/TinyNeedBar.d.mts +1 -1
- package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
- package/dist/v1/build/TinyNotifications.d.mts +1 -1
- package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
- package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
- package/dist/v1/build/TinyRadioFm.d.mts +1 -1
- package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
- package/dist/v1/build/TinySimpleDice.d.mts +1 -1
- package/dist/v1/build/TinySmartScroller.d.mts +1 -1
- package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
- package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
- package/dist/v1/build/TinyTextarea.d.mts +1 -1
- package/dist/v1/build/TinyTimeout.d.mts +1 -1
- package/dist/v1/build/TinyToastNotify.d.mts +1 -1
- package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
- package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
- package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
- package/dist/v1/fileManager/index.d.mts +3 -29
- package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
- package/dist/v1/index.cjs +2 -0
- package/dist/v1/index.d.mts +53 -139
- package/dist/v1/index.mjs +2 -2
- package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
- package/dist/v1/libs/TinyAdvancedRaffle.d.mts +60 -103
- package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +11 -18
- package/dist/v1/libs/TinyAnalogClock.d.mts +8 -11
- package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
- package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
- package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
- package/dist/v1/libs/TinyClassManager.cjs +5 -7
- package/dist/v1/libs/TinyClassManager.d.mts +16 -16
- package/dist/v1/libs/TinyClassManager.mjs +5 -6
- package/dist/v1/libs/TinyClipboard.d.mts +8 -3
- package/dist/v1/libs/TinyColorConverter.d.mts +8 -31
- package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
- package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
- package/dist/v1/libs/TinyDayNightCycle.d.mts +85 -110
- package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
- package/dist/v1/libs/TinyDragDropDetector.d.mts +30 -30
- package/dist/v1/libs/TinyDragger.d.mts +82 -81
- package/dist/v1/libs/TinyElementObserver.d.mts +25 -28
- package/dist/v1/libs/TinyGamepad.cjs +0 -1
- package/dist/v1/libs/TinyGamepad.d.mts +50 -122
- package/dist/v1/libs/TinyGamepad.mjs +0 -1
- package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
- package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
- package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
- package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
- package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
- package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
- package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
- package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
- package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
- package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
- package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
- package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
- package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
- package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
- package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
- package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
- package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
- package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
- package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
- package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
- package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
- package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
- package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
- package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
- package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
- package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
- package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
- package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
- package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
- package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
- package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
- package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
- package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
- package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
- package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
- package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
- package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
- package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
- package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
- package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
- package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
- package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
- package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
- package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
- package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
- package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
- package/dist/v1/libs/TinyHtml.cjs +3 -4
- package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
- package/dist/v1/libs/TinyHtml.mjs +3 -4
- package/dist/v1/libs/TinyI18.d.mts +23 -61
- package/dist/v1/libs/TinyIframeEvents.cjs +1 -1
- package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
- package/dist/v1/libs/TinyIframeEvents.mjs +1 -1
- package/dist/v1/libs/TinyInventory.d.mts +78 -141
- package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
- package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
- package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
- package/dist/v1/libs/TinyLocalStorage.d.mts +11 -36
- package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
- package/dist/v1/libs/TinyMediaPlayer.cjs +5 -3
- package/dist/v1/libs/TinyMediaPlayer.d.mts +102 -109
- package/dist/v1/libs/TinyMediaPlayer.mjs +5 -3
- package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
- package/dist/v1/libs/TinyNewWinEvents.d.mts +29 -32
- package/dist/v1/libs/TinyNotifications.d.mts +6 -6
- package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -21
- package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
- package/dist/v1/libs/TinyRadioFm.cjs +32 -12
- package/dist/v1/libs/TinyRadioFm.d.mts +44 -80
- package/dist/v1/libs/TinyRadioFm.mjs +29 -12
- package/dist/v1/libs/TinyRateLimiter.d.mts +26 -39
- package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
- package/dist/v1/libs/TinySmartScroller.d.mts +50 -60
- package/dist/v1/libs/TinyTextDiffer.d.mts +11 -14
- package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
- package/dist/v1/libs/TinyTextarea.d.mts +31 -31
- package/dist/v1/libs/TinyTimeout.d.mts +14 -14
- package/dist/v1/libs/TinyToastNotify.cjs +1 -1
- package/dist/v1/libs/TinyToastNotify.d.mts +15 -23
- package/dist/v1/libs/TinyToastNotify.mjs +1 -1
- package/dist/v1/libs/TinyUploadClicker.d.mts +38 -14
- package/dist/v1/libs/UltraRandomMsgGen.d.mts +44 -84
- package/dist/v1/libs/utils.d.mts +5 -1
- package/docs/v1/basics/deprecated/objFilter.md +14 -0
- package/docs/v1/basics/objFilter.md +31 -17
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
31
|
-
placeholder?: string
|
|
32
|
-
popovertarget?: string
|
|
33
|
-
popovertargetaction?: "
|
|
34
|
-
value?: string
|
|
35
|
-
readonly?: boolean
|
|
36
|
-
required?: boolean
|
|
37
|
-
tags?: string | string[] | Set<string
|
|
38
|
-
mainClass?: string
|
|
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
|
|
41
|
-
set value(value: string
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
56
|
+
return this.valTxt();
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
30
|
-
name?: string
|
|
31
|
-
placeholder?: string
|
|
32
|
-
readonly?: boolean
|
|
33
|
-
required?: boolean
|
|
34
|
-
tags?: string | string[] | Set<string
|
|
35
|
-
mainClass?: string
|
|
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
|
-
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
71
|
+
return this.valTxt();
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
/** @param {string} formaction */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
36
|
-
name?: string
|
|
37
|
-
placeholder?: string
|
|
38
|
-
formenctype?:
|
|
39
|
-
formmethod?:
|
|
40
|
-
formnovalidate?: boolean
|
|
41
|
-
formtarget?:
|
|
42
|
-
formaction?: string
|
|
43
|
-
readonly?: boolean
|
|
44
|
-
required?: boolean
|
|
45
|
-
tags?: string | string[] | Set<string
|
|
46
|
-
mainClass?: string
|
|
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
|
|
49
|
-
set value(value: string
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
73
|
+
return this.valTxt();
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
28
|
+
checked?: boolean;
|
|
29
29
|
name: string;
|
|
30
|
-
value?: string
|
|
31
|
-
readonly?: boolean
|
|
32
|
-
required?: boolean
|
|
33
|
-
tags?: string | string[] | Set<string
|
|
34
|
-
mainClass?: string
|
|
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
|
|
41
|
-
set value(value: string
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
76
|
+
return this.valTxt();
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/** @param {string} name */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
35
|
-
checked?: boolean
|
|
36
|
-
readonly?: boolean
|
|
37
|
-
required?: boolean
|
|
38
|
-
tags?: string | string[] | Set<string
|
|
39
|
-
mainClass?: string
|
|
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
|
|
42
|
-
set value(value: string
|
|
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
|
-
|
|
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
|
|
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
|
|
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.
|
|
59
|
+
return this.valTxt();
|
|
59
60
|
}
|
|
60
61
|
/** @param {string} name */
|
|
61
62
|
set name(name) {
|