@typesafe-html5/typescript 0.2.61 → 0.2.72
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/build-all.mjs +54 -0
- package/dist/block/article/article.js +465 -0
- package/dist/block/article/article.js.map +7 -0
- package/dist/block/aside/aside.js +476 -0
- package/dist/block/aside/aside.js.map +7 -0
- package/dist/block/audio/audio.js +454 -0
- package/dist/block/audio/audio.js.map +7 -0
- package/dist/block/blockquote/blockquote.js +476 -0
- package/dist/block/blockquote/blockquote.js.map +7 -0
- package/dist/block/body/body.js +378 -0
- package/dist/block/body/body.js.map +7 -0
- package/dist/block/canvas/canvas.js +487 -0
- package/dist/block/canvas/canvas.js.map +7 -0
- package/dist/block/caption/caption.js +465 -0
- package/dist/block/caption/caption.js.map +7 -0
- package/dist/block/colgroup/colgroup.js +190 -0
- package/dist/block/colgroup/colgroup.js.map +7 -0
- package/dist/block/datalist/datalist.js +465 -0
- package/dist/block/datalist/datalist.js.map +7 -0
- package/dist/block/dd/dd.js +422 -0
- package/dist/block/dd/dd.js.map +7 -0
- package/dist/block/del/del.js +487 -0
- package/dist/block/del/del.js.map +7 -0
- package/dist/block/details/details.js +520 -0
- package/dist/block/details/details.js.map +7 -0
- package/dist/block/dialog/dialog.js +520 -0
- package/dist/block/dialog/dialog.js.map +7 -0
- package/dist/block/div/div.js +520 -0
- package/dist/block/div/div.js.map +7 -0
- package/dist/block/dl/dl.js +465 -0
- package/dist/block/dl/dl.js.map +7 -0
- package/dist/block/dt/dt.js +422 -0
- package/dist/block/dt/dt.js.map +7 -0
- package/dist/block/embed/embed.js +333 -0
- package/dist/block/embed/embed.js.map +7 -0
- package/dist/block/fieldset/fieldset.js +509 -0
- package/dist/block/fieldset/fieldset.js.map +7 -0
- package/dist/block/figcaption/figcaption.js +465 -0
- package/dist/block/figcaption/figcaption.js.map +7 -0
- package/dist/block/figure/figure.js +465 -0
- package/dist/block/figure/figure.js.map +7 -0
- package/dist/block/footer/footer.js +476 -0
- package/dist/block/footer/footer.js.map +7 -0
- package/dist/block/form/form.js +443 -0
- package/dist/block/form/form.js.map +7 -0
- package/dist/block/h1/h1.js +454 -0
- package/dist/block/h1/h1.js.map +7 -0
- package/dist/block/h2/h2.js +454 -0
- package/dist/block/h2/h2.js.map +7 -0
- package/dist/block/h3/h3.js +454 -0
- package/dist/block/h3/h3.js.map +7 -0
- package/dist/block/h4/h4.js +454 -0
- package/dist/block/h4/h4.js.map +7 -0
- package/dist/block/h5/h5.js +454 -0
- package/dist/block/h5/h5.js.map +7 -0
- package/dist/block/h6/h6.js +454 -0
- package/dist/block/h6/h6.js.map +7 -0
- package/dist/block/header/header.js +322 -0
- package/dist/block/header/header.js.map +7 -0
- package/dist/block/hgroup/hgroup.js +465 -0
- package/dist/block/hgroup/hgroup.js.map +7 -0
- package/dist/block/hr/hr.js +169 -0
- package/dist/block/hr/hr.js.map +7 -0
- package/dist/block/html/html.js +92 -0
- package/dist/block/html/html.js.map +7 -0
- package/dist/block/iframe/iframe.js +465 -0
- package/dist/block/iframe/iframe.js.map +7 -0
- package/dist/block/ins/ins.js +487 -0
- package/dist/block/ins/ins.js.map +7 -0
- package/dist/block/legend/legend.js +465 -0
- package/dist/block/legend/legend.js.map +7 -0
- package/dist/block/li/li.js +488 -0
- package/dist/block/li/li.js.map +7 -0
- package/dist/block/main/main.js +444 -0
- package/dist/block/main/main.js.map +7 -0
- package/dist/block/map/map.js +476 -0
- package/dist/block/map/map.js.map +7 -0
- package/dist/block/menu/menu.js +498 -0
- package/dist/block/menu/menu.js.map +7 -0
- package/dist/block/nav/nav.js +455 -0
- package/dist/block/nav/nav.js.map +7 -0
- package/dist/block/noscript/noscript.js +311 -0
- package/dist/block/noscript/noscript.js.map +7 -0
- package/dist/block/object/object.js +542 -0
- package/dist/block/object/object.js.map +7 -0
- package/dist/block/ol/ol.js +542 -0
- package/dist/block/ol/ol.js.map +7 -0
- package/dist/block/optgroup/optgroup.js +476 -0
- package/dist/block/optgroup/optgroup.js.map +7 -0
- package/dist/block/option/option.js +542 -0
- package/dist/block/option/option.js.map +7 -0
- package/dist/block/p/p.js +465 -0
- package/dist/block/p/p.js.map +7 -0
- package/dist/block/picture/picture.js +465 -0
- package/dist/block/picture/picture.js.map +7 -0
- package/dist/block/pre/pre.js +465 -0
- package/dist/block/pre/pre.js.map +7 -0
- package/dist/block/section/section.js +487 -0
- package/dist/block/section/section.js.map +7 -0
- package/dist/block/summary/summary.js +466 -0
- package/dist/block/summary/summary.js.map +7 -0
- package/dist/block/table/table.js +509 -0
- package/dist/block/table/table.js.map +7 -0
- package/dist/block/tbody/tbody.js +465 -0
- package/dist/block/tbody/tbody.js.map +7 -0
- package/dist/block/td/td.js +575 -0
- package/dist/block/td/td.js.map +7 -0
- package/dist/block/template/template.js +465 -0
- package/dist/block/template/template.js.map +7 -0
- package/dist/block/tfoot/tfoot.js +465 -0
- package/dist/block/tfoot/tfoot.js.map +7 -0
- package/dist/block/th/th.js +586 -0
- package/dist/block/th/th.js.map +7 -0
- package/dist/block/thead/thead.js +465 -0
- package/dist/block/thead/thead.js.map +7 -0
- package/dist/block/tr/tr.js +586 -0
- package/dist/block/tr/tr.js.map +7 -0
- package/dist/block/ul/ul.js +509 -0
- package/dist/block/ul/ul.js.map +7 -0
- package/dist/block/video/video.js +575 -0
- package/dist/block/video/video.js.map +7 -0
- package/dist/index.js +48830 -0
- package/dist/index.js.map +7 -0
- package/dist/inline/a/a.js +586 -0
- package/dist/inline/a/a.js.map +7 -0
- package/dist/inline/abbr/abbr.js +454 -0
- package/dist/inline/abbr/abbr.js.map +7 -0
- package/dist/inline/address/address.js +443 -0
- package/dist/inline/address/address.js.map +7 -0
- package/dist/inline/b/b.js +465 -0
- package/dist/inline/b/b.js.map +7 -0
- package/dist/inline/bdi/bdi.js +454 -0
- package/dist/inline/bdi/bdi.js.map +7 -0
- package/dist/inline/bdo/bdo.js +465 -0
- package/dist/inline/bdo/bdo.js.map +7 -0
- package/dist/inline/button/button.js +685 -0
- package/dist/inline/button/button.js.map +7 -0
- package/dist/inline/cite/cite.js +465 -0
- package/dist/inline/cite/cite.js.map +7 -0
- package/dist/inline/code/code.js +465 -0
- package/dist/inline/code/code.js.map +7 -0
- package/dist/inline/data/data.js +476 -0
- package/dist/inline/data/data.js.map +7 -0
- package/dist/inline/dfn/dfn.js +465 -0
- package/dist/inline/dfn/dfn.js.map +7 -0
- package/dist/inline/em/em.js +465 -0
- package/dist/inline/em/em.js.map +7 -0
- package/dist/inline/i/i.js +465 -0
- package/dist/inline/i/i.js.map +7 -0
- package/dist/inline/img/img.js +399 -0
- package/dist/inline/img/img.js.map +7 -0
- package/dist/inline/input/input.js +938 -0
- package/dist/inline/input/input.js.map +7 -0
- package/dist/inline/kbd/kbd.js +465 -0
- package/dist/inline/kbd/kbd.js.map +7 -0
- package/dist/inline/label/label.js +487 -0
- package/dist/inline/label/label.js.map +7 -0
- package/dist/inline/mark/mark.js +465 -0
- package/dist/inline/mark/mark.js.map +7 -0
- package/dist/inline/meter/meter.js +498 -0
- package/dist/inline/meter/meter.js.map +7 -0
- package/dist/inline/output/output.js +410 -0
- package/dist/inline/output/output.js.map +7 -0
- package/dist/inline/progress/progress.js +454 -0
- package/dist/inline/progress/progress.js.map +7 -0
- package/dist/inline/q/q.js +476 -0
- package/dist/inline/q/q.js.map +7 -0
- package/dist/inline/rp/rp.js +465 -0
- package/dist/inline/rp/rp.js.map +7 -0
- package/dist/inline/rt/rt.js +465 -0
- package/dist/inline/rt/rt.js.map +7 -0
- package/dist/inline/ruby/ruby.js +465 -0
- package/dist/inline/ruby/ruby.js.map +7 -0
- package/dist/inline/s/s.js +465 -0
- package/dist/inline/s/s.js.map +7 -0
- package/dist/inline/samp/samp.js +465 -0
- package/dist/inline/samp/samp.js.map +7 -0
- package/dist/inline/select/select.js +674 -0
- package/dist/inline/select/select.js.map +7 -0
- package/dist/inline/slot/slot.js +476 -0
- package/dist/inline/slot/slot.js.map +7 -0
- package/dist/inline/small/small.js +465 -0
- package/dist/inline/small/small.js.map +7 -0
- package/dist/inline/span/span.js +465 -0
- package/dist/inline/span/span.js.map +7 -0
- package/dist/inline/strong/strong.js +465 -0
- package/dist/inline/strong/strong.js.map +7 -0
- package/dist/inline/sub/sub.js +465 -0
- package/dist/inline/sub/sub.js.map +7 -0
- package/dist/inline/sup/sup.js +465 -0
- package/dist/inline/sup/sup.js.map +7 -0
- package/dist/inline/svg/svg.js +542 -0
- package/dist/inline/svg/svg.js.map +7 -0
- package/dist/inline/textarea/textarea.js +718 -0
- package/dist/inline/textarea/textarea.js.map +7 -0
- package/dist/inline/time/time.js +476 -0
- package/dist/inline/time/time.js.map +7 -0
- package/dist/inline/u/u.js +465 -0
- package/dist/inline/u/u.js.map +7 -0
- package/dist/inline/var/var.js +465 -0
- package/dist/inline/var/var.js.map +7 -0
- package/dist/void/area/area.js +388 -0
- package/dist/void/area/area.js.map +7 -0
- package/dist/void/base/base.js +37 -0
- package/dist/void/base/base.js.map +7 -0
- package/dist/void/br/br.js +135 -0
- package/dist/void/br/br.js.map +7 -0
- package/dist/void/col/col.js +135 -0
- package/dist/void/col/col.js.map +7 -0
- package/dist/void/head/head.js +37 -0
- package/dist/void/head/head.js.map +7 -0
- package/dist/void/link/link.js +213 -0
- package/dist/void/link/link.js.map +7 -0
- package/dist/void/meta/meta.js +147 -0
- package/dist/void/meta/meta.js.map +7 -0
- package/dist/void/param/param.js +146 -0
- package/dist/void/param/param.js.map +7 -0
- package/dist/void/script/script.js +213 -0
- package/dist/void/script/script.js.map +7 -0
- package/dist/void/source/source.js +168 -0
- package/dist/void/source/source.js.map +7 -0
- package/dist/void/style/style.js +147 -0
- package/dist/void/style/style.js.map +7 -0
- package/dist/void/title/title.js +37 -0
- package/dist/void/title/title.js.map +7 -0
- package/dist/void/track/track.js +190 -0
- package/dist/void/track/track.js.map +7 -0
- package/dist/void/wbr/wbr.js +124 -0
- package/dist/void/wbr/wbr.js.map +7 -0
- package/package.json +4 -4
- package/src/block/article/article.ts +649 -0
- package/{block → src/block}/aside/aside.ts +144 -1
- package/{block → src/block}/audio/audio.ts +128 -1
- package/src/block/blockquote/blockquote.ts +665 -0
- package/{block → src/block}/body/body.ts +91 -1
- package/{block → src/block}/canvas/canvas.ts +144 -1
- package/src/block/caption/caption.ts +649 -0
- package/{block → src/block}/colgroup/colgroup.ts +96 -1
- package/src/block/datalist/datalist.ts +649 -0
- package/{block/dialog/dialog.ts → src/block/dd/dd.ts} +114 -88
- package/{block → src/block}/del/del.ts +144 -1
- package/src/block/details/details.ts +729 -0
- package/src/block/dialog/dialog.ts +729 -0
- package/src/block/div/div.ts +729 -0
- package/src/block/dl/dl.ts +649 -0
- package/{block/details/details.ts → src/block/dt/dt.ts} +114 -88
- package/{block → src/block}/embed/embed.ts +144 -1
- package/{block → src/block}/fieldset/fieldset.ts +144 -1
- package/src/block/figcaption/figcaption.ts +649 -0
- package/src/block/figure/figure.ts +649 -0
- package/src/block/footer/footer.ts +665 -0
- package/{block → src/block}/form/form.ts +132 -5
- package/src/block/h1/h1.ts +633 -0
- package/src/block/h2/h2.ts +633 -0
- package/src/block/h3/h3.ts +633 -0
- package/src/block/h4/h4.ts +633 -0
- package/src/block/h5/h5.ts +633 -0
- package/src/block/h6/h6.ts +633 -0
- package/{block → src/block}/header/header.ts +144 -1
- package/src/block/hgroup/hgroup.ts +649 -0
- package/{block → src/block}/hr/hr.ts +59 -1
- package/{block → src/block}/html/html.ts +27 -1
- package/{block → src/block}/iframe/iframe.ts +112 -1
- package/{block → src/block}/ins/ins.ts +144 -1
- package/src/block/legend/legend.ts +649 -0
- package/{block → src/block}/li/li.ts +107 -1
- package/{block/div/div.ts → src/block/main/main.ts} +112 -54
- package/src/block/map/map.ts +665 -0
- package/{block → src/block}/menu/menu.ts +144 -1
- package/{block → src/block}/nav/nav.ts +107 -1
- package/{block → src/block}/noscript/noscript.ts +144 -1
- package/{block → src/block}/object/object.ts +144 -1
- package/{block → src/block}/ol/ol.ts +144 -1
- package/{block → src/block}/optgroup/optgroup.ts +144 -1
- package/{block → src/block}/option/option.ts +144 -1
- package/src/block/p/p.ts +649 -0
- package/src/block/picture/picture.ts +649 -0
- package/src/block/pre/pre.ts +649 -0
- package/{block → src/block}/section/section.ts +144 -1
- package/{block → src/block}/summary/summary.ts +107 -1
- package/{block → src/block}/table/table.ts +144 -1
- package/src/block/tbody/tbody.ts +649 -0
- package/{block → src/block}/td/td.ts +144 -1
- package/src/block/template/template.ts +649 -0
- package/src/block/tfoot/tfoot.ts +649 -0
- package/{block → src/block}/th/th.ts +144 -1
- package/src/block/thead/thead.ts +649 -0
- package/{block → src/block}/tr/tr.ts +144 -1
- package/{block → src/block}/ul/ul.ts +144 -1
- package/{block → src/block}/video/video.ts +144 -1
- package/{inline → src/inline}/a/a.ts +144 -1
- package/src/inline/abbr/abbr.ts +633 -0
- package/src/inline/address/address.ts +617 -0
- package/src/inline/b/b.ts +649 -0
- package/src/inline/bdi/bdi.ts +633 -0
- package/src/inline/bdo/bdo.ts +649 -0
- package/{inline → src/inline}/button/button.ts +145 -2
- package/src/inline/cite/cite.ts +649 -0
- package/src/inline/code/code.ts +649 -0
- package/src/inline/data/data.ts +665 -0
- package/src/inline/dfn/dfn.ts +649 -0
- package/src/inline/em/em.ts +649 -0
- package/src/inline/i/i.ts +649 -0
- package/{inline → src/inline}/img/img.ts +112 -1
- package/{inline → src/inline}/input/input.ts +145 -2
- package/src/inline/kbd/kbd.ts +649 -0
- package/{inline → src/inline}/label/label.ts +144 -1
- package/src/inline/mark/mark.ts +649 -0
- package/{inline → src/inline}/meter/meter.ts +144 -1
- package/{inline → src/inline}/output/output.ts +144 -1
- package/{inline → src/inline}/progress/progress.ts +144 -1
- package/src/inline/q/q.ts +665 -0
- package/src/inline/rp/rp.ts +649 -0
- package/src/inline/rt/rt.ts +649 -0
- package/src/inline/ruby/ruby.ts +649 -0
- package/src/inline/s/s.ts +649 -0
- package/src/inline/samp/samp.ts +649 -0
- package/{inline → src/inline}/select/select.ts +144 -1
- package/src/inline/slot/slot.ts +665 -0
- package/src/inline/small/small.ts +649 -0
- package/src/inline/span/span.ts +649 -0
- package/src/inline/strong/strong.ts +649 -0
- package/src/inline/sub/sub.ts +649 -0
- package/src/inline/sup/sup.ts +649 -0
- package/{inline → src/inline}/svg/svg.ts +144 -1
- package/{inline → src/inline}/textarea/textarea.ts +144 -1
- package/src/inline/time/time.ts +665 -0
- package/src/inline/u/u.ts +649 -0
- package/src/inline/var/var.ts +649 -0
- package/{void → src/void}/area/area.ts +144 -1
- package/{void → src/void}/base/base.ts +1 -1
- package/src/void/br/br.ts +172 -0
- package/src/void/col/col.ts +172 -0
- package/{void → src/void}/head/head.ts +1 -1
- package/{void → src/void}/link/link.ts +59 -1
- package/{void → src/void}/meta/meta.ts +59 -1
- package/src/void/param/param.ts +188 -0
- package/{void → src/void}/script/script.ts +59 -1
- package/src/void/source/source.ts +220 -0
- package/{void → src/void}/style/style.ts +59 -1
- package/{void → src/void}/title/title.ts +1 -1
- package/{void → src/void}/track/track.ts +96 -1
- package/src/void/wbr/wbr.ts +156 -0
- package/block/article/article.ts +0 -506
- package/block/blockquote/blockquote.ts +0 -522
- package/block/caption/caption.ts +0 -506
- package/block/datalist/datalist.ts +0 -506
- package/block/dd/dd.ts +0 -506
- package/block/dl/dl.ts +0 -506
- package/block/dt/dt.ts +0 -506
- package/block/figcaption/figcaption.ts +0 -506
- package/block/figure/figure.ts +0 -506
- package/block/footer/footer.ts +0 -522
- package/block/h1/h1.ts +0 -490
- package/block/h2/h2.ts +0 -490
- package/block/h3/h3.ts +0 -490
- package/block/h4/h4.ts +0 -490
- package/block/h5/h5.ts +0 -490
- package/block/h6/h6.ts +0 -490
- package/block/hgroup/hgroup.ts +0 -506
- package/block/legend/legend.ts +0 -506
- package/block/main/main.ts +0 -538
- package/block/map/map.ts +0 -522
- package/block/p/p.ts +0 -506
- package/block/picture/picture.ts +0 -506
- package/block/pre/pre.ts +0 -506
- package/block/tbody/tbody.ts +0 -506
- package/block/template/template.ts +0 -506
- package/block/tfoot/tfoot.ts +0 -506
- package/block/thead/thead.ts +0 -506
- package/inline/abbr/abbr.ts +0 -490
- package/inline/address/address.ts +0 -474
- package/inline/b/b.ts +0 -506
- package/inline/bdi/bdi.ts +0 -490
- package/inline/bdo/bdo.ts +0 -506
- package/inline/cite/cite.ts +0 -506
- package/inline/code/code.ts +0 -506
- package/inline/data/data.ts +0 -522
- package/inline/dfn/dfn.ts +0 -506
- package/inline/em/em.ts +0 -506
- package/inline/i/i.ts +0 -506
- package/inline/kbd/kbd.ts +0 -506
- package/inline/mark/mark.ts +0 -506
- package/inline/q/q.ts +0 -522
- package/inline/rp/rp.ts +0 -506
- package/inline/rt/rt.ts +0 -506
- package/inline/ruby/ruby.ts +0 -506
- package/inline/s/s.ts +0 -506
- package/inline/samp/samp.ts +0 -506
- package/inline/slot/slot.ts +0 -522
- package/inline/small/small.ts +0 -506
- package/inline/span/span.ts +0 -506
- package/inline/strong/strong.ts +0 -506
- package/inline/sub/sub.ts +0 -506
- package/inline/sup/sup.ts +0 -506
- package/inline/time/time.ts +0 -522
- package/inline/u/u.ts +0 -506
- package/inline/var/var.ts +0 -506
- package/void/br/br.ts +0 -77
- package/void/col/col.ts +0 -77
- package/void/param/param.ts +0 -93
- package/void/source/source.ts +0 -125
- package/void/wbr/wbr.ts +0 -61
- /package/{index.ts → src/index.ts} +0 -0
- /package/{tsconfig.json → src/tsconfig.json} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE IS AUTOGENERATED. DO NOT EDIT IT.
|
|
3
3
|
*
|
|
4
|
-
* @generated
|
|
4
|
+
* @generated January 2, 2026 15:45:45
|
|
5
5
|
* @component Svg
|
|
6
6
|
* @description
|
|
7
7
|
*/
|
|
@@ -11,10 +11,18 @@ export interface SvgProps {
|
|
|
11
11
|
* Child content or elements
|
|
12
12
|
*/
|
|
13
13
|
children?: string | HTMLElement | (string | HTMLElement)[];
|
|
14
|
+
/**
|
|
15
|
+
* Keyboard shortcut to activate or focus the element
|
|
16
|
+
*/
|
|
17
|
+
accessKey?: string;
|
|
14
18
|
/**
|
|
15
19
|
* specifies a shortcut key (or keys) to activate or focus an element
|
|
16
20
|
*/
|
|
17
21
|
accesskey?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Mapping of Alpine.js directives (shorthand or full) to their values (e.g., {@click: "do()"} or {"x-on:click":"do()"})
|
|
24
|
+
*/
|
|
25
|
+
'alpine-attributes'?: Record<string, string> | null | undefined;
|
|
18
26
|
/**
|
|
19
27
|
* Indicates whether assistive technologies should present the entire region as a whole when changes occur.
|
|
20
28
|
*/
|
|
@@ -71,10 +79,22 @@ export interface SvgProps {
|
|
|
71
79
|
* Indicates whether the element is hidden
|
|
72
80
|
*/
|
|
73
81
|
autofocus?: boolean | null | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* CSS class names
|
|
84
|
+
*/
|
|
85
|
+
className?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the element is editable
|
|
88
|
+
*/
|
|
89
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
74
90
|
/**
|
|
75
91
|
* Indicates whether the element can be edited in place
|
|
76
92
|
*/
|
|
77
93
|
contenteditable?: 'true' | 'false' | 'inherit' | boolean | null | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Mapping of data-* attributes to their values (e.g., {"test":"value"} -> data-test="value")
|
|
96
|
+
*/
|
|
97
|
+
'data-attributes'?: Record<string, string> | null | undefined;
|
|
78
98
|
/**
|
|
79
99
|
* Represents the text direction of the element
|
|
80
100
|
*/
|
|
@@ -95,6 +115,10 @@ export interface SvgProps {
|
|
|
95
115
|
* Indicates whether the element is hidden
|
|
96
116
|
*/
|
|
97
117
|
hidden?: boolean | null | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier
|
|
120
|
+
*/
|
|
121
|
+
id?: string;
|
|
98
122
|
/**
|
|
99
123
|
* used to specify the data entry mode for an input. It helps guide on-screen keyboards (especially on mobile devices) to show the appropriate layout for the expected input type
|
|
100
124
|
*/
|
|
@@ -127,6 +151,10 @@ export interface SvgProps {
|
|
|
127
151
|
* Represents the CSS inline style of the element
|
|
128
152
|
*/
|
|
129
153
|
style?: string | null | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* Tab order position
|
|
156
|
+
*/
|
|
157
|
+
tabIndex?: number;
|
|
130
158
|
/**
|
|
131
159
|
* Represents a tab order of the element
|
|
132
160
|
*/
|
|
@@ -168,9 +196,26 @@ export class Svg {
|
|
|
168
196
|
if (props.children !== undefined) {
|
|
169
197
|
this.setChildren(props.children);
|
|
170
198
|
}
|
|
199
|
+
if (props.accessKey !== undefined) {
|
|
200
|
+
this.element.setAttribute('accessKey', String(props.accessKey));
|
|
201
|
+
}
|
|
171
202
|
if (props.accesskey !== undefined) {
|
|
172
203
|
this.element.setAttribute('accesskey', String(props.accesskey));
|
|
173
204
|
}
|
|
205
|
+
if (props['alpine-attributes'] !== undefined) {
|
|
206
|
+
const __map = props['alpine-attributes'];
|
|
207
|
+
if (__map !== null && __map !== undefined) {
|
|
208
|
+
for (const __k in __map) {
|
|
209
|
+
const __v = (__map as any)[__k];
|
|
210
|
+
let __attr = __k;
|
|
211
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
212
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
213
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
214
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
215
|
+
this.element.setAttribute(__attr, String(__v));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
174
219
|
if (props['aria-atomic'] !== undefined) {
|
|
175
220
|
this.setAriaAtomic(props['aria-atomic']);
|
|
176
221
|
}
|
|
@@ -213,9 +258,23 @@ export class Svg {
|
|
|
213
258
|
if (props.autofocus !== undefined) {
|
|
214
259
|
this.element.setAttribute('autofocus', String(props.autofocus));
|
|
215
260
|
}
|
|
261
|
+
if (props.className !== undefined) {
|
|
262
|
+
this.element.setAttribute('className', String(props.className));
|
|
263
|
+
}
|
|
264
|
+
if (props.contentEditable !== undefined) {
|
|
265
|
+
this.element.setAttribute('contentEditable', String(props.contentEditable));
|
|
266
|
+
}
|
|
216
267
|
if (props.contenteditable !== undefined) {
|
|
217
268
|
this.setContenteditable(props.contenteditable);
|
|
218
269
|
}
|
|
270
|
+
if (props['data-attributes'] !== undefined) {
|
|
271
|
+
const __map = props['data-attributes'];
|
|
272
|
+
if (__map !== null && __map !== undefined) {
|
|
273
|
+
for (const __k in __map) {
|
|
274
|
+
this.element.setAttribute(`data-${__k}`, String((__map as any)[__k]));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
219
278
|
if (props.dir !== undefined) {
|
|
220
279
|
this.setDir(props.dir);
|
|
221
280
|
}
|
|
@@ -231,6 +290,9 @@ export class Svg {
|
|
|
231
290
|
if (props.hidden !== undefined) {
|
|
232
291
|
this.element.setAttribute('hidden', String(props.hidden));
|
|
233
292
|
}
|
|
293
|
+
if (props.id !== undefined) {
|
|
294
|
+
this.element.setAttribute('id', String(props.id));
|
|
295
|
+
}
|
|
234
296
|
if (props.inputmode !== undefined) {
|
|
235
297
|
this.setInputmode(props.inputmode);
|
|
236
298
|
}
|
|
@@ -255,6 +317,9 @@ export class Svg {
|
|
|
255
317
|
if (props.style !== undefined) {
|
|
256
318
|
this.element.setAttribute('style', String(props.style));
|
|
257
319
|
}
|
|
320
|
+
if (props.tabIndex !== undefined) {
|
|
321
|
+
this.element.setAttribute('tabIndex', String(props.tabIndex));
|
|
322
|
+
}
|
|
258
323
|
if (props.tabindex !== undefined) {
|
|
259
324
|
this.element.setAttribute('tabindex', String(props.tabindex));
|
|
260
325
|
}
|
|
@@ -275,6 +340,15 @@ export class Svg {
|
|
|
275
340
|
}
|
|
276
341
|
}
|
|
277
342
|
|
|
343
|
+
setAccessKey(value: string): this {
|
|
344
|
+
if (value === null || value === undefined) {
|
|
345
|
+
this.element.removeAttribute('accessKey');
|
|
346
|
+
} else {
|
|
347
|
+
this.element.setAttribute('accessKey', String(value));
|
|
348
|
+
}
|
|
349
|
+
return this;
|
|
350
|
+
}
|
|
351
|
+
|
|
278
352
|
setAccesskey(value: string | null | undefined): this {
|
|
279
353
|
if (value === null || value === undefined) {
|
|
280
354
|
this.element.removeAttribute('accesskey');
|
|
@@ -284,6 +358,25 @@ export class Svg {
|
|
|
284
358
|
return this;
|
|
285
359
|
}
|
|
286
360
|
|
|
361
|
+
setAlpineAttributes(value: string | null | undefined): this {
|
|
362
|
+
if (value === null || value === undefined) {
|
|
363
|
+
// Remove all x-* Alpine attributes (best-effort)
|
|
364
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
365
|
+
if ((__a as Attr).name.startsWith('x-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
366
|
+
}
|
|
367
|
+
} else {
|
|
368
|
+
for (const __k in value as Record<string, string>) {
|
|
369
|
+
let __attr = __k;
|
|
370
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
371
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
372
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
373
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
374
|
+
this.element.setAttribute(__attr, String((value as any)[__k]));
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return this;
|
|
378
|
+
}
|
|
379
|
+
|
|
287
380
|
setAriaAtomic(value: 'false' | 'true' | boolean | null | undefined): this {
|
|
288
381
|
if (value === null || value === undefined) {
|
|
289
382
|
this.element.removeAttribute('aria-atomic');
|
|
@@ -410,6 +503,24 @@ export class Svg {
|
|
|
410
503
|
return this;
|
|
411
504
|
}
|
|
412
505
|
|
|
506
|
+
setClassName(value: string): this {
|
|
507
|
+
if (value === null || value === undefined) {
|
|
508
|
+
this.element.removeAttribute('className');
|
|
509
|
+
} else {
|
|
510
|
+
this.element.setAttribute('className', String(value));
|
|
511
|
+
}
|
|
512
|
+
return this;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
setContentEditable(value: boolean | "true" | "false" | "inherit"): this {
|
|
516
|
+
if (value === true) {
|
|
517
|
+
this.element.setAttribute('contentEditable', '');
|
|
518
|
+
} else {
|
|
519
|
+
this.element.removeAttribute('contentEditable');
|
|
520
|
+
}
|
|
521
|
+
return this;
|
|
522
|
+
}
|
|
523
|
+
|
|
413
524
|
setContenteditable(value: 'true' | 'false' | 'inherit' | boolean | null | undefined): this {
|
|
414
525
|
if (value === null || value === undefined) {
|
|
415
526
|
this.element.removeAttribute('contenteditable');
|
|
@@ -419,6 +530,20 @@ export class Svg {
|
|
|
419
530
|
return this;
|
|
420
531
|
}
|
|
421
532
|
|
|
533
|
+
setDataAttributes(value: Record<string, string>): this {
|
|
534
|
+
if (value === null || value === undefined) {
|
|
535
|
+
// Remove all data-* attributes (best-effort)
|
|
536
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
537
|
+
if ((__a as Attr).name.startsWith('data-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
538
|
+
}
|
|
539
|
+
} else {
|
|
540
|
+
for (const __k in value as Record<string, string>) {
|
|
541
|
+
this.element.setAttribute(`data-${__k}`, String((value as any)[__k]));
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return this;
|
|
545
|
+
}
|
|
546
|
+
|
|
422
547
|
setDir(value: 'ltr' | 'rtl' | 'auto' | null | undefined): this {
|
|
423
548
|
if (value === null || value === undefined) {
|
|
424
549
|
this.element.removeAttribute('dir');
|
|
@@ -464,6 +589,15 @@ export class Svg {
|
|
|
464
589
|
return this;
|
|
465
590
|
}
|
|
466
591
|
|
|
592
|
+
setId(value: string): this {
|
|
593
|
+
if (value === null || value === undefined) {
|
|
594
|
+
this.element.removeAttribute('id');
|
|
595
|
+
} else {
|
|
596
|
+
this.element.setAttribute('id', String(value));
|
|
597
|
+
}
|
|
598
|
+
return this;
|
|
599
|
+
}
|
|
600
|
+
|
|
467
601
|
setInputmode(value: 'none' | 'text' | 'decimal' | 'numeric' | 'email' | 'tel' | 'url' | 'search' | null | undefined): this {
|
|
468
602
|
if (value === null || value === undefined) {
|
|
469
603
|
this.element.removeAttribute('inputmode');
|
|
@@ -536,6 +670,15 @@ export class Svg {
|
|
|
536
670
|
return this;
|
|
537
671
|
}
|
|
538
672
|
|
|
673
|
+
setTabIndex(value: number): this {
|
|
674
|
+
if (value === null || value === undefined) {
|
|
675
|
+
this.element.removeAttribute('tabIndex');
|
|
676
|
+
} else {
|
|
677
|
+
this.element.setAttribute('tabIndex', String(value));
|
|
678
|
+
}
|
|
679
|
+
return this;
|
|
680
|
+
}
|
|
681
|
+
|
|
539
682
|
setTabindex(value: number | null | undefined): this {
|
|
540
683
|
if (value === null || value === undefined) {
|
|
541
684
|
this.element.removeAttribute('tabindex');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE IS AUTOGENERATED. DO NOT EDIT IT.
|
|
3
3
|
*
|
|
4
|
-
* @generated
|
|
4
|
+
* @generated January 2, 2026 15:45:45
|
|
5
5
|
* @component Textarea
|
|
6
6
|
* @description
|
|
7
7
|
*/
|
|
@@ -11,10 +11,18 @@ export interface TextareaProps {
|
|
|
11
11
|
* Child content or elements
|
|
12
12
|
*/
|
|
13
13
|
children?: string | HTMLElement | (string | HTMLElement)[];
|
|
14
|
+
/**
|
|
15
|
+
* Keyboard shortcut to activate or focus the element
|
|
16
|
+
*/
|
|
17
|
+
accessKey?: string;
|
|
14
18
|
/**
|
|
15
19
|
* specifies a shortcut key (or keys) to activate or focus an element
|
|
16
20
|
*/
|
|
17
21
|
accesskey?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Mapping of Alpine.js directives (shorthand or full) to their values (e.g., {@click: "do()"} or {"x-on:click":"do()"})
|
|
24
|
+
*/
|
|
25
|
+
'alpine-attributes'?: Record<string, string> | null | undefined;
|
|
18
26
|
/**
|
|
19
27
|
* Indicates whether assistive technologies should present the entire region as a whole when changes occur.
|
|
20
28
|
*/
|
|
@@ -111,14 +119,26 @@ export interface TextareaProps {
|
|
|
111
119
|
* Indicates whether the element is hidden
|
|
112
120
|
*/
|
|
113
121
|
autofocus?: boolean | null | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* CSS class names
|
|
124
|
+
*/
|
|
125
|
+
className?: string;
|
|
114
126
|
/**
|
|
115
127
|
* Specifies the visible width of a text area, in average character widths.
|
|
116
128
|
*/
|
|
117
129
|
cols?: number | null | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the element is editable
|
|
132
|
+
*/
|
|
133
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
118
134
|
/**
|
|
119
135
|
* Indicates whether the element can be edited in place
|
|
120
136
|
*/
|
|
121
137
|
contenteditable?: 'true' | 'false' | 'inherit' | boolean | null | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Mapping of data-* attributes to their values (e.g., {"test":"value"} -> data-test="value")
|
|
140
|
+
*/
|
|
141
|
+
'data-attributes'?: Record<string, string> | null | undefined;
|
|
122
142
|
/**
|
|
123
143
|
* Represents the text direction of the element
|
|
124
144
|
*/
|
|
@@ -143,6 +163,10 @@ export interface TextareaProps {
|
|
|
143
163
|
* Indicates whether the element is hidden
|
|
144
164
|
*/
|
|
145
165
|
hidden?: boolean | null | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Unique identifier
|
|
168
|
+
*/
|
|
169
|
+
id?: string;
|
|
146
170
|
/**
|
|
147
171
|
* used to specify the data entry mode for an input. It helps guide on-screen keyboards (especially on mobile devices) to show the appropriate layout for the expected input type
|
|
148
172
|
*/
|
|
@@ -199,6 +223,10 @@ export interface TextareaProps {
|
|
|
199
223
|
* Represents the CSS inline style of the element
|
|
200
224
|
*/
|
|
201
225
|
style?: string | null | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Tab order position
|
|
228
|
+
*/
|
|
229
|
+
tabIndex?: number;
|
|
202
230
|
/**
|
|
203
231
|
* Represents a tab order of the element
|
|
204
232
|
*/
|
|
@@ -232,9 +260,26 @@ export class Textarea {
|
|
|
232
260
|
if (props.children !== undefined) {
|
|
233
261
|
this.setChildren(props.children);
|
|
234
262
|
}
|
|
263
|
+
if (props.accessKey !== undefined) {
|
|
264
|
+
this.element.setAttribute('accessKey', String(props.accessKey));
|
|
265
|
+
}
|
|
235
266
|
if (props.accesskey !== undefined) {
|
|
236
267
|
this.element.setAttribute('accesskey', String(props.accesskey));
|
|
237
268
|
}
|
|
269
|
+
if (props['alpine-attributes'] !== undefined) {
|
|
270
|
+
const __map = props['alpine-attributes'];
|
|
271
|
+
if (__map !== null && __map !== undefined) {
|
|
272
|
+
for (const __k in __map) {
|
|
273
|
+
const __v = (__map as any)[__k];
|
|
274
|
+
let __attr = __k;
|
|
275
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
276
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
277
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
278
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
279
|
+
this.element.setAttribute(__attr, String(__v));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
238
283
|
if (props['aria-atomic'] !== undefined) {
|
|
239
284
|
this.setAriaAtomic(props['aria-atomic']);
|
|
240
285
|
}
|
|
@@ -307,12 +352,26 @@ export class Textarea {
|
|
|
307
352
|
if (props.autofocus !== undefined) {
|
|
308
353
|
this.element.setAttribute('autofocus', String(props.autofocus));
|
|
309
354
|
}
|
|
355
|
+
if (props.className !== undefined) {
|
|
356
|
+
this.element.setAttribute('className', String(props.className));
|
|
357
|
+
}
|
|
310
358
|
if (props.cols !== undefined) {
|
|
311
359
|
this.element.setAttribute('cols', String(props.cols));
|
|
312
360
|
}
|
|
361
|
+
if (props.contentEditable !== undefined) {
|
|
362
|
+
this.element.setAttribute('contentEditable', String(props.contentEditable));
|
|
363
|
+
}
|
|
313
364
|
if (props.contenteditable !== undefined) {
|
|
314
365
|
this.setContenteditable(props.contenteditable);
|
|
315
366
|
}
|
|
367
|
+
if (props['data-attributes'] !== undefined) {
|
|
368
|
+
const __map = props['data-attributes'];
|
|
369
|
+
if (__map !== null && __map !== undefined) {
|
|
370
|
+
for (const __k in __map) {
|
|
371
|
+
this.element.setAttribute(`data-${__k}`, String((__map as any)[__k]));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
316
375
|
if (props.dir !== undefined) {
|
|
317
376
|
this.setDir(props.dir);
|
|
318
377
|
}
|
|
@@ -331,6 +390,9 @@ export class Textarea {
|
|
|
331
390
|
if (props.hidden !== undefined) {
|
|
332
391
|
this.element.setAttribute('hidden', String(props.hidden));
|
|
333
392
|
}
|
|
393
|
+
if (props.id !== undefined) {
|
|
394
|
+
this.element.setAttribute('id', String(props.id));
|
|
395
|
+
}
|
|
334
396
|
if (props.inputmode !== undefined) {
|
|
335
397
|
this.setInputmode(props.inputmode);
|
|
336
398
|
}
|
|
@@ -373,6 +435,9 @@ export class Textarea {
|
|
|
373
435
|
if (props.style !== undefined) {
|
|
374
436
|
this.element.setAttribute('style', String(props.style));
|
|
375
437
|
}
|
|
438
|
+
if (props.tabIndex !== undefined) {
|
|
439
|
+
this.element.setAttribute('tabIndex', String(props.tabIndex));
|
|
440
|
+
}
|
|
376
441
|
if (props.tabindex !== undefined) {
|
|
377
442
|
this.element.setAttribute('tabindex', String(props.tabindex));
|
|
378
443
|
}
|
|
@@ -387,6 +452,15 @@ export class Textarea {
|
|
|
387
452
|
}
|
|
388
453
|
}
|
|
389
454
|
|
|
455
|
+
setAccessKey(value: string): this {
|
|
456
|
+
if (value === null || value === undefined) {
|
|
457
|
+
this.element.removeAttribute('accessKey');
|
|
458
|
+
} else {
|
|
459
|
+
this.element.setAttribute('accessKey', String(value));
|
|
460
|
+
}
|
|
461
|
+
return this;
|
|
462
|
+
}
|
|
463
|
+
|
|
390
464
|
setAccesskey(value: string | null | undefined): this {
|
|
391
465
|
if (value === null || value === undefined) {
|
|
392
466
|
this.element.removeAttribute('accesskey');
|
|
@@ -396,6 +470,25 @@ export class Textarea {
|
|
|
396
470
|
return this;
|
|
397
471
|
}
|
|
398
472
|
|
|
473
|
+
setAlpineAttributes(value: string | null | undefined): this {
|
|
474
|
+
if (value === null || value === undefined) {
|
|
475
|
+
// Remove all x-* Alpine attributes (best-effort)
|
|
476
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
477
|
+
if ((__a as Attr).name.startsWith('x-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
478
|
+
}
|
|
479
|
+
} else {
|
|
480
|
+
for (const __k in value as Record<string, string>) {
|
|
481
|
+
let __attr = __k;
|
|
482
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
483
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
484
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
485
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
486
|
+
this.element.setAttribute(__attr, String((value as any)[__k]));
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return this;
|
|
490
|
+
}
|
|
491
|
+
|
|
399
492
|
setAriaAtomic(value: 'false' | 'true' | boolean | null | undefined): this {
|
|
400
493
|
if (value === null || value === undefined) {
|
|
401
494
|
this.element.removeAttribute('aria-atomic');
|
|
@@ -612,6 +705,15 @@ export class Textarea {
|
|
|
612
705
|
return this;
|
|
613
706
|
}
|
|
614
707
|
|
|
708
|
+
setClassName(value: string): this {
|
|
709
|
+
if (value === null || value === undefined) {
|
|
710
|
+
this.element.removeAttribute('className');
|
|
711
|
+
} else {
|
|
712
|
+
this.element.setAttribute('className', String(value));
|
|
713
|
+
}
|
|
714
|
+
return this;
|
|
715
|
+
}
|
|
716
|
+
|
|
615
717
|
setCols(value: number | null | undefined): this {
|
|
616
718
|
if (value === null || value === undefined) {
|
|
617
719
|
this.element.removeAttribute('cols');
|
|
@@ -621,6 +723,15 @@ export class Textarea {
|
|
|
621
723
|
return this;
|
|
622
724
|
}
|
|
623
725
|
|
|
726
|
+
setContentEditable(value: boolean | "true" | "false" | "inherit"): this {
|
|
727
|
+
if (value === true) {
|
|
728
|
+
this.element.setAttribute('contentEditable', '');
|
|
729
|
+
} else {
|
|
730
|
+
this.element.removeAttribute('contentEditable');
|
|
731
|
+
}
|
|
732
|
+
return this;
|
|
733
|
+
}
|
|
734
|
+
|
|
624
735
|
setContenteditable(value: 'true' | 'false' | 'inherit' | boolean | null | undefined): this {
|
|
625
736
|
if (value === null || value === undefined) {
|
|
626
737
|
this.element.removeAttribute('contenteditable');
|
|
@@ -630,6 +741,20 @@ export class Textarea {
|
|
|
630
741
|
return this;
|
|
631
742
|
}
|
|
632
743
|
|
|
744
|
+
setDataAttributes(value: Record<string, string>): this {
|
|
745
|
+
if (value === null || value === undefined) {
|
|
746
|
+
// Remove all data-* attributes (best-effort)
|
|
747
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
748
|
+
if ((__a as Attr).name.startsWith('data-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
749
|
+
}
|
|
750
|
+
} else {
|
|
751
|
+
for (const __k in value as Record<string, string>) {
|
|
752
|
+
this.element.setAttribute(`data-${__k}`, String((value as any)[__k]));
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
return this;
|
|
756
|
+
}
|
|
757
|
+
|
|
633
758
|
setDir(value: 'ltr' | 'rtl' | 'auto' | null | undefined): this {
|
|
634
759
|
if (value === null || value === undefined) {
|
|
635
760
|
this.element.removeAttribute('dir');
|
|
@@ -684,6 +809,15 @@ export class Textarea {
|
|
|
684
809
|
return this;
|
|
685
810
|
}
|
|
686
811
|
|
|
812
|
+
setId(value: string): this {
|
|
813
|
+
if (value === null || value === undefined) {
|
|
814
|
+
this.element.removeAttribute('id');
|
|
815
|
+
} else {
|
|
816
|
+
this.element.setAttribute('id', String(value));
|
|
817
|
+
}
|
|
818
|
+
return this;
|
|
819
|
+
}
|
|
820
|
+
|
|
687
821
|
setInputmode(value: 'none' | 'text' | 'decimal' | 'numeric' | 'email' | 'tel' | 'url' | 'search' | null | undefined): this {
|
|
688
822
|
if (value === null || value === undefined) {
|
|
689
823
|
this.element.removeAttribute('inputmode');
|
|
@@ -810,6 +944,15 @@ export class Textarea {
|
|
|
810
944
|
return this;
|
|
811
945
|
}
|
|
812
946
|
|
|
947
|
+
setTabIndex(value: number): this {
|
|
948
|
+
if (value === null || value === undefined) {
|
|
949
|
+
this.element.removeAttribute('tabIndex');
|
|
950
|
+
} else {
|
|
951
|
+
this.element.setAttribute('tabIndex', String(value));
|
|
952
|
+
}
|
|
953
|
+
return this;
|
|
954
|
+
}
|
|
955
|
+
|
|
813
956
|
setTabindex(value: number | null | undefined): this {
|
|
814
957
|
if (value === null || value === undefined) {
|
|
815
958
|
this.element.removeAttribute('tabindex');
|