@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 Hr
|
|
6
6
|
* @description
|
|
7
7
|
*/
|
|
@@ -11,10 +11,18 @@ export interface HrProps {
|
|
|
11
11
|
* Specifies the horizontal alignment of the element.
|
|
12
12
|
*/
|
|
13
13
|
align?: 'center' | 'justify' | 'left' | 'right' | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* CSS class names
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
14
18
|
/**
|
|
15
19
|
*
|
|
16
20
|
*/
|
|
17
21
|
color?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Mapping of data-* attributes to their values (e.g., {"test":"value"} -> data-test="value")
|
|
24
|
+
*/
|
|
25
|
+
'data-attributes'?: Record<string, string> | null | undefined;
|
|
18
26
|
/**
|
|
19
27
|
* Represents the text direction of the element
|
|
20
28
|
*/
|
|
@@ -23,6 +31,10 @@ export interface HrProps {
|
|
|
23
31
|
* Indicates whether the element is hidden
|
|
24
32
|
*/
|
|
25
33
|
hidden?: boolean | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
26
38
|
/**
|
|
27
39
|
* Specifies the primary language for the element's content
|
|
28
40
|
*/
|
|
@@ -64,15 +76,29 @@ export class Hr {
|
|
|
64
76
|
if (props.align !== undefined) {
|
|
65
77
|
this.setAlign(props.align);
|
|
66
78
|
}
|
|
79
|
+
if (props.className !== undefined) {
|
|
80
|
+
this.element.setAttribute('className', String(props.className));
|
|
81
|
+
}
|
|
67
82
|
if (props.color !== undefined) {
|
|
68
83
|
this.element.setAttribute('color', String(props.color));
|
|
69
84
|
}
|
|
85
|
+
if (props['data-attributes'] !== undefined) {
|
|
86
|
+
const __map = props['data-attributes'];
|
|
87
|
+
if (__map !== null && __map !== undefined) {
|
|
88
|
+
for (const __k in __map) {
|
|
89
|
+
this.element.setAttribute(`data-${__k}`, String((__map as any)[__k]));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
70
93
|
if (props.dir !== undefined) {
|
|
71
94
|
this.setDir(props.dir);
|
|
72
95
|
}
|
|
73
96
|
if (props.hidden !== undefined) {
|
|
74
97
|
this.element.setAttribute('hidden', String(props.hidden));
|
|
75
98
|
}
|
|
99
|
+
if (props.id !== undefined) {
|
|
100
|
+
this.element.setAttribute('id', String(props.id));
|
|
101
|
+
}
|
|
76
102
|
if (props.lang !== undefined) {
|
|
77
103
|
this.element.setAttribute('lang', String(props.lang));
|
|
78
104
|
}
|
|
@@ -102,6 +128,15 @@ export class Hr {
|
|
|
102
128
|
return this;
|
|
103
129
|
}
|
|
104
130
|
|
|
131
|
+
setClassName(value: string): this {
|
|
132
|
+
if (value === null || value === undefined) {
|
|
133
|
+
this.element.removeAttribute('className');
|
|
134
|
+
} else {
|
|
135
|
+
this.element.setAttribute('className', String(value));
|
|
136
|
+
}
|
|
137
|
+
return this;
|
|
138
|
+
}
|
|
139
|
+
|
|
105
140
|
setColor(value: string | null | undefined): this {
|
|
106
141
|
if (value === null || value === undefined) {
|
|
107
142
|
this.element.removeAttribute('color');
|
|
@@ -111,6 +146,20 @@ export class Hr {
|
|
|
111
146
|
return this;
|
|
112
147
|
}
|
|
113
148
|
|
|
149
|
+
setDataAttributes(value: Record<string, string>): this {
|
|
150
|
+
if (value === null || value === undefined) {
|
|
151
|
+
// Remove all data-* attributes (best-effort)
|
|
152
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
153
|
+
if ((__a as Attr).name.startsWith('data-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
154
|
+
}
|
|
155
|
+
} else {
|
|
156
|
+
for (const __k in value as Record<string, string>) {
|
|
157
|
+
this.element.setAttribute(`data-${__k}`, String((value as any)[__k]));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
|
|
114
163
|
setDir(value: 'ltr' | 'rtl' | 'auto' | null | undefined): this {
|
|
115
164
|
if (value === null || value === undefined) {
|
|
116
165
|
this.element.removeAttribute('dir');
|
|
@@ -129,6 +178,15 @@ export class Hr {
|
|
|
129
178
|
return this;
|
|
130
179
|
}
|
|
131
180
|
|
|
181
|
+
setId(value: string): this {
|
|
182
|
+
if (value === null || value === undefined) {
|
|
183
|
+
this.element.removeAttribute('id');
|
|
184
|
+
} else {
|
|
185
|
+
this.element.setAttribute('id', String(value));
|
|
186
|
+
}
|
|
187
|
+
return this;
|
|
188
|
+
}
|
|
189
|
+
|
|
132
190
|
setLang(value: string | null | undefined): this {
|
|
133
191
|
if (value === null || value === undefined) {
|
|
134
192
|
this.element.removeAttribute('lang');
|
|
@@ -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 Html
|
|
6
6
|
* @description
|
|
7
7
|
*/
|
|
@@ -11,6 +11,10 @@ export interface HtmlProps {
|
|
|
11
11
|
* Child content or elements
|
|
12
12
|
*/
|
|
13
13
|
children?: string | HTMLElement | (string | HTMLElement)[];
|
|
14
|
+
/**
|
|
15
|
+
* Mapping of data-* attributes to their values (e.g., {"test":"value"} -> data-test="value")
|
|
16
|
+
*/
|
|
17
|
+
'data-attributes'?: Record<string, string> | null | undefined;
|
|
14
18
|
/**
|
|
15
19
|
* Represents the text direction of the element
|
|
16
20
|
*/
|
|
@@ -40,6 +44,14 @@ export class Html {
|
|
|
40
44
|
if (props.children !== undefined) {
|
|
41
45
|
this.setChildren(props.children);
|
|
42
46
|
}
|
|
47
|
+
if (props['data-attributes'] !== undefined) {
|
|
48
|
+
const __map = props['data-attributes'];
|
|
49
|
+
if (__map !== null && __map !== undefined) {
|
|
50
|
+
for (const __k in __map) {
|
|
51
|
+
this.element.setAttribute(`data-${__k}`, String((__map as any)[__k]));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
43
55
|
if (props.dir !== undefined) {
|
|
44
56
|
this.setDir(props.dir);
|
|
45
57
|
}
|
|
@@ -51,6 +63,20 @@ export class Html {
|
|
|
51
63
|
}
|
|
52
64
|
}
|
|
53
65
|
|
|
66
|
+
setDataAttributes(value: Record<string, string>): this {
|
|
67
|
+
if (value === null || value === undefined) {
|
|
68
|
+
// Remove all data-* attributes (best-effort)
|
|
69
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
70
|
+
if ((__a as Attr).name.startsWith('data-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
for (const __k in value as Record<string, string>) {
|
|
74
|
+
this.element.setAttribute(`data-${__k}`, String((value as any)[__k]));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
|
|
54
80
|
setDir(value: 'ltr' | 'rtl' | 'auto' | null | undefined): this {
|
|
55
81
|
if (value === null || value === undefined) {
|
|
56
82
|
this.element.removeAttribute('dir');
|
|
@@ -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 Iframe
|
|
6
6
|
* @description
|
|
7
7
|
*/
|
|
@@ -15,6 +15,10 @@ export interface IframeProps {
|
|
|
15
15
|
* Enables the iframe to be displayed in fullscreen mode.
|
|
16
16
|
*/
|
|
17
17
|
allowfullscreen?: boolean | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Mapping of Alpine.js directives (shorthand or full) to their values (e.g., {@click: "do()"} or {"x-on:click":"do()"})
|
|
20
|
+
*/
|
|
21
|
+
'alpine-attributes'?: Record<string, string> | null | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* Indicates whether assistive technologies should present the entire region as a whole when changes occur.
|
|
20
24
|
*/
|
|
@@ -63,6 +67,14 @@ export interface IframeProps {
|
|
|
63
67
|
* Provides a human-readable custom role description for assistive technologies.
|
|
64
68
|
*/
|
|
65
69
|
'aria-roledescription'?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* CSS class names
|
|
72
|
+
*/
|
|
73
|
+
className?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Mapping of data-* attributes to their values (e.g., {"test":"value"} -> data-test="value")
|
|
76
|
+
*/
|
|
77
|
+
'data-attributes'?: Record<string, string> | null | undefined;
|
|
66
78
|
/**
|
|
67
79
|
* Represents the text direction of the element
|
|
68
80
|
*/
|
|
@@ -75,6 +87,10 @@ export interface IframeProps {
|
|
|
75
87
|
* Indicates whether the element is hidden
|
|
76
88
|
*/
|
|
77
89
|
hidden?: boolean | null | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Unique identifier
|
|
92
|
+
*/
|
|
93
|
+
id?: string;
|
|
78
94
|
/**
|
|
79
95
|
* Specifies the primary language for the element's content
|
|
80
96
|
*/
|
|
@@ -119,6 +135,10 @@ export interface IframeProps {
|
|
|
119
135
|
* Represents the CSS inline style of the element
|
|
120
136
|
*/
|
|
121
137
|
style?: string | null | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Tab order position
|
|
140
|
+
*/
|
|
141
|
+
tabIndex?: number;
|
|
122
142
|
/**
|
|
123
143
|
* Represents a tab order of the element
|
|
124
144
|
*/
|
|
@@ -151,6 +171,20 @@ export class Iframe {
|
|
|
151
171
|
if (props.allowfullscreen !== undefined) {
|
|
152
172
|
this.element.setAttribute('allowfullscreen', String(props.allowfullscreen));
|
|
153
173
|
}
|
|
174
|
+
if (props['alpine-attributes'] !== undefined) {
|
|
175
|
+
const __map = props['alpine-attributes'];
|
|
176
|
+
if (__map !== null && __map !== undefined) {
|
|
177
|
+
for (const __k in __map) {
|
|
178
|
+
const __v = (__map as any)[__k];
|
|
179
|
+
let __attr = __k;
|
|
180
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
181
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
182
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
183
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
184
|
+
this.element.setAttribute(__attr, String(__v));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
154
188
|
if (props['aria-atomic'] !== undefined) {
|
|
155
189
|
this.setAriaAtomic(props['aria-atomic']);
|
|
156
190
|
}
|
|
@@ -187,6 +221,17 @@ export class Iframe {
|
|
|
187
221
|
if (props['aria-roledescription'] !== undefined) {
|
|
188
222
|
this.element.setAttribute('aria-roledescription', String(props['aria-roledescription']));
|
|
189
223
|
}
|
|
224
|
+
if (props.className !== undefined) {
|
|
225
|
+
this.element.setAttribute('className', String(props.className));
|
|
226
|
+
}
|
|
227
|
+
if (props['data-attributes'] !== undefined) {
|
|
228
|
+
const __map = props['data-attributes'];
|
|
229
|
+
if (__map !== null && __map !== undefined) {
|
|
230
|
+
for (const __k in __map) {
|
|
231
|
+
this.element.setAttribute(`data-${__k}`, String((__map as any)[__k]));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
190
235
|
if (props.dir !== undefined) {
|
|
191
236
|
this.setDir(props.dir);
|
|
192
237
|
}
|
|
@@ -196,6 +241,9 @@ export class Iframe {
|
|
|
196
241
|
if (props.hidden !== undefined) {
|
|
197
242
|
this.element.setAttribute('hidden', String(props.hidden));
|
|
198
243
|
}
|
|
244
|
+
if (props.id !== undefined) {
|
|
245
|
+
this.element.setAttribute('id', String(props.id));
|
|
246
|
+
}
|
|
199
247
|
if (props.lang !== undefined) {
|
|
200
248
|
this.element.setAttribute('lang', String(props.lang));
|
|
201
249
|
}
|
|
@@ -229,6 +277,9 @@ export class Iframe {
|
|
|
229
277
|
if (props.style !== undefined) {
|
|
230
278
|
this.element.setAttribute('style', String(props.style));
|
|
231
279
|
}
|
|
280
|
+
if (props.tabIndex !== undefined) {
|
|
281
|
+
this.element.setAttribute('tabIndex', String(props.tabIndex));
|
|
282
|
+
}
|
|
232
283
|
if (props.tabindex !== undefined) {
|
|
233
284
|
this.element.setAttribute('tabindex', String(props.tabindex));
|
|
234
285
|
}
|
|
@@ -249,6 +300,25 @@ export class Iframe {
|
|
|
249
300
|
return this;
|
|
250
301
|
}
|
|
251
302
|
|
|
303
|
+
setAlpineAttributes(value: string | null | undefined): this {
|
|
304
|
+
if (value === null || value === undefined) {
|
|
305
|
+
// Remove all x-* Alpine attributes (best-effort)
|
|
306
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
307
|
+
if ((__a as Attr).name.startsWith('x-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
308
|
+
}
|
|
309
|
+
} else {
|
|
310
|
+
for (const __k in value as Record<string, string>) {
|
|
311
|
+
let __attr = __k;
|
|
312
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
313
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
314
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
315
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
316
|
+
this.element.setAttribute(__attr, String((value as any)[__k]));
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return this;
|
|
320
|
+
}
|
|
321
|
+
|
|
252
322
|
setAriaAtomic(value: 'false' | 'true' | boolean | null | undefined): this {
|
|
253
323
|
if (value === null || value === undefined) {
|
|
254
324
|
this.element.removeAttribute('aria-atomic');
|
|
@@ -357,6 +427,29 @@ export class Iframe {
|
|
|
357
427
|
return this;
|
|
358
428
|
}
|
|
359
429
|
|
|
430
|
+
setClassName(value: string): this {
|
|
431
|
+
if (value === null || value === undefined) {
|
|
432
|
+
this.element.removeAttribute('className');
|
|
433
|
+
} else {
|
|
434
|
+
this.element.setAttribute('className', String(value));
|
|
435
|
+
}
|
|
436
|
+
return this;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
setDataAttributes(value: Record<string, string>): this {
|
|
440
|
+
if (value === null || value === undefined) {
|
|
441
|
+
// Remove all data-* attributes (best-effort)
|
|
442
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
443
|
+
if ((__a as Attr).name.startsWith('data-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
444
|
+
}
|
|
445
|
+
} else {
|
|
446
|
+
for (const __k in value as Record<string, string>) {
|
|
447
|
+
this.element.setAttribute(`data-${__k}`, String((value as any)[__k]));
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return this;
|
|
451
|
+
}
|
|
452
|
+
|
|
360
453
|
setDir(value: 'ltr' | 'rtl' | 'auto' | null | undefined): this {
|
|
361
454
|
if (value === null || value === undefined) {
|
|
362
455
|
this.element.removeAttribute('dir');
|
|
@@ -384,6 +477,15 @@ export class Iframe {
|
|
|
384
477
|
return this;
|
|
385
478
|
}
|
|
386
479
|
|
|
480
|
+
setId(value: string): this {
|
|
481
|
+
if (value === null || value === undefined) {
|
|
482
|
+
this.element.removeAttribute('id');
|
|
483
|
+
} else {
|
|
484
|
+
this.element.setAttribute('id', String(value));
|
|
485
|
+
}
|
|
486
|
+
return this;
|
|
487
|
+
}
|
|
488
|
+
|
|
387
489
|
setLang(value: string | null | undefined): this {
|
|
388
490
|
if (value === null || value === undefined) {
|
|
389
491
|
this.element.removeAttribute('lang');
|
|
@@ -483,6 +585,15 @@ export class Iframe {
|
|
|
483
585
|
return this;
|
|
484
586
|
}
|
|
485
587
|
|
|
588
|
+
setTabIndex(value: number): this {
|
|
589
|
+
if (value === null || value === undefined) {
|
|
590
|
+
this.element.removeAttribute('tabIndex');
|
|
591
|
+
} else {
|
|
592
|
+
this.element.setAttribute('tabIndex', String(value));
|
|
593
|
+
}
|
|
594
|
+
return this;
|
|
595
|
+
}
|
|
596
|
+
|
|
486
597
|
setTabindex(value: number | null | undefined): this {
|
|
487
598
|
if (value === null || value === undefined) {
|
|
488
599
|
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 Ins
|
|
6
6
|
* @description
|
|
7
7
|
*/
|
|
@@ -11,10 +11,18 @@ export interface InsProps {
|
|
|
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 InsProps {
|
|
|
71
79
|
* Specifies the URL of the cited work or the name of the cited creative work.
|
|
72
80
|
*/
|
|
73
81
|
cite?: string | 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
|
* Specifies the date and time of the change in the format 'YYYY-MM-DDThh:mm:ss' or a subset of it.
|
|
80
100
|
*/
|
|
@@ -91,6 +111,10 @@ export interface InsProps {
|
|
|
91
111
|
* Indicates whether the element is hidden
|
|
92
112
|
*/
|
|
93
113
|
hidden?: boolean | null | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Unique identifier
|
|
116
|
+
*/
|
|
117
|
+
id?: string;
|
|
94
118
|
/**
|
|
95
119
|
* 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
|
|
96
120
|
*/
|
|
@@ -119,6 +143,10 @@ export interface InsProps {
|
|
|
119
143
|
* Represents the CSS inline style of the element
|
|
120
144
|
*/
|
|
121
145
|
style?: string | null | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Tab order position
|
|
148
|
+
*/
|
|
149
|
+
tabIndex?: number;
|
|
122
150
|
/**
|
|
123
151
|
* Represents a tab order of the element
|
|
124
152
|
*/
|
|
@@ -148,9 +176,26 @@ export class Ins {
|
|
|
148
176
|
if (props.children !== undefined) {
|
|
149
177
|
this.setChildren(props.children);
|
|
150
178
|
}
|
|
179
|
+
if (props.accessKey !== undefined) {
|
|
180
|
+
this.element.setAttribute('accessKey', String(props.accessKey));
|
|
181
|
+
}
|
|
151
182
|
if (props.accesskey !== undefined) {
|
|
152
183
|
this.element.setAttribute('accesskey', String(props.accesskey));
|
|
153
184
|
}
|
|
185
|
+
if (props['alpine-attributes'] !== undefined) {
|
|
186
|
+
const __map = props['alpine-attributes'];
|
|
187
|
+
if (__map !== null && __map !== undefined) {
|
|
188
|
+
for (const __k in __map) {
|
|
189
|
+
const __v = (__map as any)[__k];
|
|
190
|
+
let __attr = __k;
|
|
191
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
192
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
193
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
194
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
195
|
+
this.element.setAttribute(__attr, String(__v));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
154
199
|
if (props['aria-atomic'] !== undefined) {
|
|
155
200
|
this.setAriaAtomic(props['aria-atomic']);
|
|
156
201
|
}
|
|
@@ -193,9 +238,23 @@ export class Ins {
|
|
|
193
238
|
if (props.cite !== undefined) {
|
|
194
239
|
this.element.setAttribute('cite', String(props.cite));
|
|
195
240
|
}
|
|
241
|
+
if (props.className !== undefined) {
|
|
242
|
+
this.element.setAttribute('className', String(props.className));
|
|
243
|
+
}
|
|
244
|
+
if (props.contentEditable !== undefined) {
|
|
245
|
+
this.element.setAttribute('contentEditable', String(props.contentEditable));
|
|
246
|
+
}
|
|
196
247
|
if (props.contenteditable !== undefined) {
|
|
197
248
|
this.setContenteditable(props.contenteditable);
|
|
198
249
|
}
|
|
250
|
+
if (props['data-attributes'] !== undefined) {
|
|
251
|
+
const __map = props['data-attributes'];
|
|
252
|
+
if (__map !== null && __map !== undefined) {
|
|
253
|
+
for (const __k in __map) {
|
|
254
|
+
this.element.setAttribute(`data-${__k}`, String((__map as any)[__k]));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
199
258
|
if (props.datetime !== undefined) {
|
|
200
259
|
this.element.setAttribute('datetime', String(props.datetime));
|
|
201
260
|
}
|
|
@@ -208,6 +267,9 @@ export class Ins {
|
|
|
208
267
|
if (props.hidden !== undefined) {
|
|
209
268
|
this.element.setAttribute('hidden', String(props.hidden));
|
|
210
269
|
}
|
|
270
|
+
if (props.id !== undefined) {
|
|
271
|
+
this.element.setAttribute('id', String(props.id));
|
|
272
|
+
}
|
|
211
273
|
if (props.inputmode !== undefined) {
|
|
212
274
|
this.setInputmode(props.inputmode);
|
|
213
275
|
}
|
|
@@ -229,6 +291,9 @@ export class Ins {
|
|
|
229
291
|
if (props.style !== undefined) {
|
|
230
292
|
this.element.setAttribute('style', String(props.style));
|
|
231
293
|
}
|
|
294
|
+
if (props.tabIndex !== undefined) {
|
|
295
|
+
this.element.setAttribute('tabIndex', String(props.tabIndex));
|
|
296
|
+
}
|
|
232
297
|
if (props.tabindex !== undefined) {
|
|
233
298
|
this.element.setAttribute('tabindex', String(props.tabindex));
|
|
234
299
|
}
|
|
@@ -240,6 +305,15 @@ export class Ins {
|
|
|
240
305
|
}
|
|
241
306
|
}
|
|
242
307
|
|
|
308
|
+
setAccessKey(value: string): this {
|
|
309
|
+
if (value === null || value === undefined) {
|
|
310
|
+
this.element.removeAttribute('accessKey');
|
|
311
|
+
} else {
|
|
312
|
+
this.element.setAttribute('accessKey', String(value));
|
|
313
|
+
}
|
|
314
|
+
return this;
|
|
315
|
+
}
|
|
316
|
+
|
|
243
317
|
setAccesskey(value: string | null | undefined): this {
|
|
244
318
|
if (value === null || value === undefined) {
|
|
245
319
|
this.element.removeAttribute('accesskey');
|
|
@@ -249,6 +323,25 @@ export class Ins {
|
|
|
249
323
|
return this;
|
|
250
324
|
}
|
|
251
325
|
|
|
326
|
+
setAlpineAttributes(value: string | null | undefined): this {
|
|
327
|
+
if (value === null || value === undefined) {
|
|
328
|
+
// Remove all x-* Alpine attributes (best-effort)
|
|
329
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
330
|
+
if ((__a as Attr).name.startsWith('x-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
331
|
+
}
|
|
332
|
+
} else {
|
|
333
|
+
for (const __k in value as Record<string, string>) {
|
|
334
|
+
let __attr = __k;
|
|
335
|
+
if (__k.startsWith('@')) { __attr = 'x-on:' + __k.slice(1); }
|
|
336
|
+
else if (__k.startsWith(':')) { __attr = 'x-bind:' + __k.slice(1); }
|
|
337
|
+
else if (__k.startsWith('.')) { __attr = 'x-model' + __k; }
|
|
338
|
+
else if (!__k.startsWith('x-') && ['show','text','html','if','for','cloak','init','data','effect','ignore','ref','transition','teleport'].includes(__k)) { __attr = 'x-' + __k; }
|
|
339
|
+
this.element.setAttribute(__attr, String((value as any)[__k]));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
return this;
|
|
343
|
+
}
|
|
344
|
+
|
|
252
345
|
setAriaAtomic(value: 'false' | 'true' | boolean | null | undefined): this {
|
|
253
346
|
if (value === null || value === undefined) {
|
|
254
347
|
this.element.removeAttribute('aria-atomic');
|
|
@@ -375,6 +468,24 @@ export class Ins {
|
|
|
375
468
|
return this;
|
|
376
469
|
}
|
|
377
470
|
|
|
471
|
+
setClassName(value: string): this {
|
|
472
|
+
if (value === null || value === undefined) {
|
|
473
|
+
this.element.removeAttribute('className');
|
|
474
|
+
} else {
|
|
475
|
+
this.element.setAttribute('className', String(value));
|
|
476
|
+
}
|
|
477
|
+
return this;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
setContentEditable(value: boolean | "true" | "false" | "inherit"): this {
|
|
481
|
+
if (value === true) {
|
|
482
|
+
this.element.setAttribute('contentEditable', '');
|
|
483
|
+
} else {
|
|
484
|
+
this.element.removeAttribute('contentEditable');
|
|
485
|
+
}
|
|
486
|
+
return this;
|
|
487
|
+
}
|
|
488
|
+
|
|
378
489
|
setContenteditable(value: 'true' | 'false' | 'inherit' | boolean | null | undefined): this {
|
|
379
490
|
if (value === null || value === undefined) {
|
|
380
491
|
this.element.removeAttribute('contenteditable');
|
|
@@ -384,6 +495,20 @@ export class Ins {
|
|
|
384
495
|
return this;
|
|
385
496
|
}
|
|
386
497
|
|
|
498
|
+
setDataAttributes(value: Record<string, string>): this {
|
|
499
|
+
if (value === null || value === undefined) {
|
|
500
|
+
// Remove all data-* attributes (best-effort)
|
|
501
|
+
for (const __a of Array.from(this.element.attributes)) {
|
|
502
|
+
if ((__a as Attr).name.startsWith('data-')) { (this.element as HTMLElement).removeAttribute((__a as Attr).name); }
|
|
503
|
+
}
|
|
504
|
+
} else {
|
|
505
|
+
for (const __k in value as Record<string, string>) {
|
|
506
|
+
this.element.setAttribute(`data-${__k}`, String((value as any)[__k]));
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
return this;
|
|
510
|
+
}
|
|
511
|
+
|
|
387
512
|
setDatetime(value: string | null | undefined): this {
|
|
388
513
|
if (value === null || value === undefined) {
|
|
389
514
|
this.element.removeAttribute('datetime');
|
|
@@ -420,6 +545,15 @@ export class Ins {
|
|
|
420
545
|
return this;
|
|
421
546
|
}
|
|
422
547
|
|
|
548
|
+
setId(value: string): this {
|
|
549
|
+
if (value === null || value === undefined) {
|
|
550
|
+
this.element.removeAttribute('id');
|
|
551
|
+
} else {
|
|
552
|
+
this.element.setAttribute('id', String(value));
|
|
553
|
+
}
|
|
554
|
+
return this;
|
|
555
|
+
}
|
|
556
|
+
|
|
423
557
|
setInputmode(value: 'none' | 'text' | 'decimal' | 'numeric' | 'email' | 'tel' | 'url' | 'search' | null | undefined): this {
|
|
424
558
|
if (value === null || value === undefined) {
|
|
425
559
|
this.element.removeAttribute('inputmode');
|
|
@@ -483,6 +617,15 @@ export class Ins {
|
|
|
483
617
|
return this;
|
|
484
618
|
}
|
|
485
619
|
|
|
620
|
+
setTabIndex(value: number): this {
|
|
621
|
+
if (value === null || value === undefined) {
|
|
622
|
+
this.element.removeAttribute('tabIndex');
|
|
623
|
+
} else {
|
|
624
|
+
this.element.setAttribute('tabIndex', String(value));
|
|
625
|
+
}
|
|
626
|
+
return this;
|
|
627
|
+
}
|
|
628
|
+
|
|
486
629
|
setTabindex(value: number | null | undefined): this {
|
|
487
630
|
if (value === null || value === undefined) {
|
|
488
631
|
this.element.removeAttribute('tabindex');
|